Commit Graph

32 Commits

Author SHA1 Message Date
Sycun 41aea97735 fix(assets,assessments): sync classic chat precipitated assets into project scope 2026-11-30 22:01:38 +08:00
Sycun b5f4ab9071 feat(assessment): fuse global security base and deep assessment governance (v1.8.2)
- Add random-nonce CSAI_DATA prompt guard envelope and typed scanner surface ingest (nmap/nuclei/httpx/ffuf) with cross-path execution deduplication
- Add deterministic 3-axis vulnerability fingerprinting and 5-dimension adversarial review shared across record/status/retest/assessment review
- Extend project scope_json with structured allow/deny constraints, scanner noise profiles, and evidence-gated project lessons (off/shadow/inject)
- Bundle offline WSTG/CWE/ATT&CK lookup_security_taxonomy tool and Pi compact skill index + prompt_cache_prefix_split support
- Add deep assessment pre-plan goal decomposition, persistent coverage ledger & acceptance gate, optimistic-concurrency plan notes, and graceful segment wrap-up
- Bump personal version to v1.8.2 and update CHANGELOG.md
2026-11-27 19:21:04 +08:00
Sycun 480f1ae7e2 feat(projects): link project memory and vulnerability archives 2026-11-26 17:50:36 +08:00
Sycun 8aef32ab00 feat(assessments): share the project asset library across tasks
Deep assessment, chat, and batch work now use the same project assets, so a missing collection no longer leaves the scope empty.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-20 21:27:09 +08:00
Sycun f689e92678 feat(projects): share evidence across assets, assessments, and reports
Keep project facts, collections, retests, and exports on the same read boundary, and stop a manual fixed status or a blocked batch from looking complete.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-20 20:07:23 +08:00
Sycun e21ac52b62 test: make workspace inventory fixtures portable on Windows 2026-10-16 12:09:32 +08:00
Sycun 7bf9eb8511 Merge main and reconcile project resume with checkpoint index limits 2026-10-16 11:15:11 +08:00
Sycun 6f991167a4 fix: restore project artifacts and test outcomes when resuming tasks 2026-10-15 22:02:22 +08:00
Sycun 3d2dfdac36 feat: verify attack-chain nodes against real tool calls
A node claiming something ran must cite a tool_call_id the host issued in
the trajectory. A citation absent from the trajectory is invented, so the
node is dropped along with its edges; a missing citation counts as invented
only when every real ID survived budget fitting, so a trimmed payload cannot
silently empty a graph. Judging is skipped where the evidence cannot be
enumerated: the process-detail supplement dumps raw event JSON and the
messages-table fallback carries no call IDs. Verified citations land in node
metadata rather than tool_execution_id, which is foreign-keyed to
tool_executions.

Also close two smaller holes: fact text can no longer carry the host index
delimiters, which would close the block early and spill the remaining index
into the system prompt; and the console fact endpoints reject the reserved
note/context-* prefix, matching the MCP tool layer.
2026-10-13 00:10:33 +08:00
Sycun 16189e0b76 fix: close review findings in context memory, attack chain and blackboard
Attack chain: failure text goes to textContent, so opt out of i18next
interpolation escaping that rendered upstream errors as &#x2F;/&quot;;
give regenerate its own message key; keep the summary card expanded across
a 409 refresh; probe for a cached graph before parsing last_react_input so
polling no longer re-reads a multi-megabyte column; hide the card in the
node-details exclusive state and bound it on narrow screens; drop the dead
hardcoded Chinese title from the API payload.

Blackboard: stop mirroring note/context-* keys into the fact body links
section, which get_project_fact returns verbatim without scope filtering;
single-line category and confidence in index rows so a newline cannot inject
a fake row; make the path overview fail closed on an empty index set.

Provenance: reuse fitUserIntentLedgerText when sanitizing a ledger entry so
a single entry cannot exceed its cap by the three ellipsis runes.

The .cjs harness now escapes interpolated values like real i18next, so the
existing XSS test also pins the escapeValue opt-out.
2026-10-12 23:16:33 +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 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
公明 5aa2c382b0
Add files via upload 2026-08-18 20:34:53 +08:00
公明 55ee5fbac9
Delete internal directory 2026-08-18 20:14:29 +08:00
公明 9f38fda15f
Add files via upload 2026-08-15 02:12:18 +08:00
公明 2910289f0b
Delete internal directory 2026-08-15 01:54:26 +08:00
公明 3fab05c3b1
Add files via upload 2026-08-15 01:48:43 +08:00
Sunyc 3c54a67416
fix(project): 允许 fact_key 驼峰命名并澄清未绑定项目授权报错 (#200) (#217)
- fact_key 校验放开大写字母,支持驼峰命名(如 finding/info-disclosure-messageBundle):
  - internal/database/project.go: 正则 ^[a-z0-9]... 改为 ^[a-zA-Z0-9]...,并更新错误提示
  - internal/project/fact_body_links.go: body 解析正则(依赖事实/相关 fact_key)同步放开大写
- authorizeProjectTool 区分「未绑定项目 / 查询出错 / 真实无权限」三种情况:
  未绑定项目时返回明确可执行提示,替代误导性的 no access to project
  - internal/app/mcp_authorization.go

Co-authored-by: sycmacmini <sycmacmini@sycmacminis-Mac-mini.local>
2026-07-28 11:18:58 +08:00
公明 9fae9db906
Delete internal/project/user_verbatim_anchor_test.go 2026-07-01 10:48:29 +08:00
公明 7ecd8c61e8
Delete internal/project/user_verbatim_anchor.go 2026-07-01 10:48:09 +08:00
公明 eda75fb98f
Add files via upload 2026-06-25 14:55:10 +08:00
公明 1ae6930db1
Add files via upload 2026-06-24 23:26:01 +08:00
公明 ce73a7b3e4
Add files via upload 2026-06-21 01:55:25 +08:00
公明 90cd119a83
Add files via upload 2026-06-20 19:35:06 +08:00
公明 6a7e78a846
Add files via upload 2026-06-20 15:28:10 +08:00
公明 7eadccbff6
Add files via upload 2026-06-18 12:44:42 +08:00
公明 cf1f8515d9
Delete internal directory 2026-06-18 12:37:39 +08:00
公明 e606369e31
Add files via upload 2026-06-03 17:16:48 +08:00
公明 d913695303
Add files via upload 2026-05-27 11:45:51 +08:00
公明 e6506d00e8
Add files via upload 2026-05-26 17:56:52 +08:00
公明 dd3b1ae219
Add files via upload 2026-05-26 14:34:21 +08:00