CyberStrikeAI/internal/project
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
..
blackboard.go feat: verify attack-chain nodes against real tool calls 2026-10-13 00:10:33 +08:00
blackboard_budget_test.go feat: verify attack-chain nodes against real tool calls 2026-10-13 00:10:33 +08:00
blackboard_memory_scope_test.go fix: close review findings in context memory, attack chain and blackboard 2026-10-12 23:16:33 +08:00
blackboard_refresh.go feat: verify attack-chain nodes against real tool calls 2026-10-13 00:10:33 +08:00
blackboard_refresh_test.go Add files via upload 2026-08-18 20:34:53 +08:00
fact_body_links.go fix: close review findings in context memory, attack chain and blackboard 2026-10-12 23:16:33 +08:00
fact_body_links_test.go Add files via upload 2026-08-18 20:34:53 +08:00
fact_edges.go Add files via upload 2026-08-18 20:34:53 +08:00
fact_edges_apply.go Add files via upload 2026-08-18 20:34:53 +08:00
fact_edges_test.go Add files via upload 2026-08-18 20:34:53 +08:00
fact_index_links.go fix: close review findings in context memory, attack chain and blackboard 2026-10-12 23:16:33 +08:00
fact_index_links_test.go fix: close review findings in context memory, attack chain and blackboard 2026-10-12 23:16:33 +08:00
fact_recording_prompt.go Add files via upload 2026-08-18 20:34:53 +08:00
fact_template.go Add files via upload 2026-08-18 20:34:53 +08:00
fact_template_test.go Add files via upload 2026-08-18 20:34:53 +08:00
scope_block.go feat: scope automatic working memory to the current conversation 2026-10-12 09:59:15 +08:00
scope_block_test.go Add files via upload 2026-08-18 20:34:53 +08:00
stats.go Add files via upload 2026-08-18 20:34:53 +08:00
vision_image_prompt.go Add files via upload 2026-08-18 20:34:53 +08:00
workspace.go Add files via upload 2026-08-18 20:34:53 +08:00
workspace_test.go Add files via upload 2026-08-18 20:34:53 +08:00