Files
d5f7d0d001 feat(engine): default data isolation + leak-proof attack metrics (#230)
Governance fix (Security): the autopilot ledger (engine/memory.py) wrote
host/url findings, negatives, and per-target rollups to the shared
~/.claude/bughunter/memory/ store on EVERY run, while its reads were
already gated behind --use-memory. That asymmetry persisted
target-identifying data by default. record_finding and record_run are
now gated behind --use-memory too: a default run pools NOTHING
target-identifying across engagements. Opt-in --use-memory preserves the
ledger and /pickup exactly as before — no behaviour removed, no data
relocated. Confirmed no other default-on reader breaks (/pickup,
/remember, /autopilot docs updated to say recall is opt-in).

New (Added): engine/attack_metrics.py + --use-metrics. A leak-proof,
per-operator store of GENERIC COUNTERS ONLY — attempts/successes/cost
keyed by tech-stack signature + vuln-class (+ generic technique) — that
never stores a host, url, payload, or body (fail-closed allowlist). On a
new target it ranks class suggestions by past hit-rate in arsenal.md;
advisory only — never auto-fires, and scope + the corroborator + the 7-Q
gate still apply. No engagement/host field exists, so cross-engagement
leak is impossible by construction.

Tests: engine/test_attack_metrics.py (8), engine/test_memory_write_gate.py
(4). engine 103 OK, tests 129 OK, lint/doc-count/leak/skill_index clean.
Docs: engine/README.md, USAGE.md, /pickup, /remember, /autopilot,
.gitignore, CHANGELOG. Engine code only — no skill added, counts unchanged.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-24 07:22:27 +05:30
..