Commit Graph

181 Commits

Author SHA1 Message Date
Sycun 6815645a3f fix(chat): persist human approval for the conversation 2026-11-19 10:45:23 +08:00
Sycun e8ad42ac2c feat(assessments): connect asset and acceptance evidence reviews 2026-11-19 00:09:43 +08:00
Sycun ffc15f4402 feat(assessments): add live workbench and scoped intent controls 2026-11-15 17:09:30 +08:00
Sycun 24fad19a4b fix(vulnerabilities): paginate findings independently of full navigation 2026-11-15 10:48:13 +08:00
Sycun 950f183056 feat(vulnerabilities): show timestamps and support oldest-first ordering 2026-11-15 10:14:01 +08:00
Sycun c5f797c521 feat(assessments): add shared asset graph and durable intent exploration 2026-11-15 09:20:09 +08:00
Sycun e6f80618f3 feat(assessments): link findings to tasks and source evidence 2026-11-14 09:45:01 +08:00
Sycun 3097d5f9ff feat(assessments): make exploration continuous with graph memory 2026-11-14 02:29:50 +08:00
Sycun 1ebfac570c feat(assessments): add Pi-native long-running assessment workspace 2026-11-14 01:18:43 +08:00
Sycun 1c0c6b9c91 revert(tasks): restore v1.8.0 batch queue workflow 2026-11-14 00:10:44 +08:00
Sycun 310007fab3 fix(tasks): paginate compact task lists and preserve scroll on refresh 2026-11-13 23:20:58 +08:00
Sycun ed427505a8 feat(tasks): unify task management and redesign the creation dialog 2026-11-13 22:01:00 +08:00
Sycun e1c4551b64 feat(tasks): replace deep assessments with durable goal tasks 2026-11-13 20:20:05 +08:00
Sycun 9c5dce5656 refactor(vulnerabilities): use the shared list for raw findings 2026-11-13 17:00:00 +08:00
Sycun b77c8cda27 fix(vulnerabilities): prefer domains and unify task tree navigation 2026-11-13 16:47:17 +08:00
Sycun a125d749e7 feat(vulnerabilities): add review workspace and persistent finding cases 2026-11-13 16:11:36 +08:00
Sycun 2e2ed49158 feat(vulnerabilities): add domain browser and risk overview 2026-11-13 15:31:21 +08:00
Sycun 63aa0a1307 fix(vulnerabilities): paginate grouped views by group 2026-11-13 15:12:32 +08:00
Sycun 2c4364ad47 feat(vulnerabilities): add host, task, and raw list views 2026-11-13 15:04:06 +08:00
Sycun 9a0ea174b1 fix(vulnerabilities): recognize host in historical target descriptions 2026-11-13 14:51:04 +08:00
Sycun 72042749e3 feat(vulnerabilities): group findings by target host 2026-11-13 14:45:28 +08:00
Sycun 335c985516 test(pi): inject invalid persisted root after path validation 2026-11-12 21:29:58 +08:00
Sycun 0186cc64b4 test(pi): make cleanup failure regression portable 2026-11-12 21:24:54 +08:00
Sycun cfe3f82dd4 fix(pi): invalidate deleted sessions and prepare legacy upgrades 2026-11-12 21:19:09 +08:00
Sycun 0dd997ca01 refactor(runtime): remove Eino and make Pi the sole agent engine 2026-11-11 12:45:32 +08:00
Sycun ef89d9e464 fix(assessment): bind approvals and enforce scoped execution boundaries 2026-11-02 22:32:11 +08:00
Sycun 07864b355f feat(assessment): add durable deep assessment workbench independent of chat 2026-11-02 21:17:03 +08:00
Ed1s0nZ c0d5c8460b feat(api): add durable asynchronous conversation runs 2026-10-23 11:45:15 +08:00
Ed1s0nZ be2c8c04e5 fix(rbac): protect built-in administrator from losing access 2026-10-19 16:44:14 +08:00
Ed1s0nZ 63955c4d30 docs: remove internal process journals and organize public guides 2026-10-16 16:59:01 +08:00
Sycun 51d78fda91 fix: bound SQLite lock waits and strengthen PR 329 coverage 2026-10-16 12:22:42 +08:00
Ordinary 9891b04215 fix: wait out SQLite busy on concurrent asset upserts
Deep mode fires many create_asset calls at once. UpsertAssets used a
DEFERRED transaction (SELECT then INSERT) on a 25-connection pool, so
writers hit SQLITE_BUSY immediately and returned "database is locked"
in a few milliseconds instead of waiting.

Open SQLite with _txlock=immediate and a 30s busy timeout, shrink the
pool, and retry locked upserts. Add a 32-way concurrent upsert test.
2026-10-16 12:20:21 +08:00
Sycun 0fb5484657 Merge upstream main and resolve context memory asset conflicts 2026-10-16 11:02:49 +08:00
Sycun 983c981b92 fix: preserve human intent through planning and restart while keeping legacy edits
Mark generated execution prompts, populate deterministic user sections from actual human entries, preserve canonical ledger on overflow/transient restarts, fit long human entries under their formatted budget, and keep unchanged historical keys editable. Add real reduction-to-snapshot Cookie recovery and production entry-point regression tests.
2026-10-12 19:34:24 +08:00
Sycun b642fc7c83 fix: preserve compaction provenance through resume and harden memory retrieval
Carry allowlisted summary origin and host user ledger across the trace recovery boundary. Keep immutable snapshot links after alias failures, scope legacy padded keys, remove stale indexes under small budgets, reuse retrieval clues for labels, and add cross-platform memory CI.
2026-10-12 17:56:43 +08:00
Sycun 2c311a6ab1 fix: harden checkpoint provenance, scope and atomic binding 2026-10-12 10:49:23 +08:00
Sycun 6b8bbbe91b feat: scope automatic working memory to the current conversation 2026-10-12 09:59:15 +08:00
Sycun 616726d452 feat: persist compaction checkpoints in the project blackboard 2026-10-11 23:08:54 +08:00
Sycun b3d3f48c40 feat: add detailed token usage monitoring and cache write metrics 2026-10-11 22:30:30 +08:00
Ed1s0nZ 7f8dab4ec9 feat: reconcile SQLite tables and columns at startup 2026-10-10 20:45:39 +08:00
Ed1s0nZ 9f111a1389 fix: normalize missing deletes and empty REST lists 2026-10-10 18:02:02 +08:00
Sycun 6a67364947 feat: add vulnerability retest branches with an isolated evidence log
Retesting a finding creates an independent conversation branch that
snapshots the source history and model trace, so verification can run
multi-turn without writing to the original session.

- POST /api/vulnerabilities/:id/retest creates the branch and persists the
  prompt, so a lost response, navigation or refresh can resume it
- new update_vulnerability_status tool closes the loop; a retest branch may
  only read and update its own finding
- {{vulnerability_id}}, {{conversation_id}} and {{source_conversation_id}}
  resolve on send, in the first turn and in follow-ups
- evidence appends to a read-only vulnerabilities.retest_log column instead
  of retest_notes: that field is operator-authored and the edit form
  rewrites it wholesale, so a routine edit used to erase the retest trail
- the retest prompt is prefilled with the operator's retest_notes, which
  already states how to verify the fix
- copied messages are re-bound as time.Time. Scanning a DATETIME column into
  a string yields RFC3339Nano while AddMessage writes the driver's
  space-separated format, and messages sort on the raw created_at text, so a
  branch rendered its new turn above the inherited history
2026-10-10 07:21:20 +08:00
Ed1s0nZ 338dcdbc17 fix: authenticate individual HTTP sessions for tasks and files 2026-10-06 03:37:39 +08:00
Ed1s0nZ 8550325dfe fix: validate workflows and preserve execution outcomes 2026-10-06 02:32:32 +08:00
Ed1s0nZ bdefa535b0 fix: validate form edits and enforce task result ownership 2026-10-06 02:20:28 +08:00
Ed1s0nZ 4a5b177947 fix: preserve task terminal state and file navigation paths 2026-10-06 01:48:12 +08:00
Sycun 470eb5ead1
feat: add runtime storage cleanup with per-category retention (#310) (#313)
Runtime artifacts (agent workspaces, tool-output spill, C2 payloads, chat
uploads, workflow checkpoints, diagnostic logs) previously accumulated
without bound: most were only removed when a conversation or project was
deleted, and tmp/c2 plus workflow checkpoints were never removed at all.

Add a storage cleaner with named per-category tasks (Gitea-style), a
settings page tab, and a background sweep that is off by default so
upgrading never deletes existing data.

Safety properties, since mis-deleting live task data costs far more than
the disk saved:
- dry-run is the default; a real cleanup requires dry_run=false together
  with confirm=true at the API layer, not just a frontend dialog
- sessions active within active_grace_hours are always skipped, and a
  failed activity lookup skips conservatively (fail closed)
- directories whose conversation/project no longer exists are reclaimed
  as orphans after orphan_grace_days
- scanners never follow symlinks and every candidate path is confined to
  its category root; deletion renames to a .tmp-for-deletion marker first
  so a crash leaves recoverable residue instead of a half-deleted dir
- storage:* permissions are admin-only; without the grantSystemRolePermissions
  skip the default branch would have given operators an irreversible
  file-deletion right

Also fix two confirmed leaks: DeleteConversation left chat_uploads files
on disk (their rows already vanished via ON DELETE CASCADE), and workflow
checkpoints had no deletion path at all.

Co-authored-by: Parallels <parallels@kali-linux-2025-2.localdomain>
2026-09-25 14:46:23 +08:00
Ed1s0nZ ac101d8476 feat: add batch task approval settings and fix modal dropdown scrolling 2026-09-13 18:02:43 +08:00
Ed1s0nZ 6ad9ea2d13 feat: add configurable tool call blocking and monitoring 2026-09-08 09:44:32 +08:00
temp c70da22de7 Remove conversation grouping feature 2026-08-26 15:00:09 +08:00