fix(fp-check): scope hooks and make Stop path-aware - #190
Conversation
|
Adding as a reviewer both @remiforall and @computerality since they both tried to solve this exact problem. EDIT: I cannot do that :ops: |
f9e3ad8 to
ba0a2d6
Compare
|
Thanks for this @GotenJBZ — the diagnosis is right on all three counts, and #205 now tracks the part that isn't covered elsewhere. Closing in favour of #188, and I want to be straight about why, because it isn't "ours over yours": Where #188 goes further. Your PR narrows the Where your PR goes further. #188 moves the Why #188 goes first. It is CI-validated and bumps 1.0.2 → 1.0.3 in both If you want to take #205, it's yours — and it's the more interesting half of the problem. |
Fixes #143. Supersedes #188.
Problems (in
main)StopandSubagentStopboth usematcher: "*", so they run on every subagent/agent stop in any session where fp-check is installed.Stopprompt demands the full deep-path output (5 phases, 13 questions, full PoC) for every bug. Standard-path verifications are rejected as "incomplete".Changes
Stophook moved into skill frontmatter. This way, the stop hooks will be executed only when the skill is loaded, avoiding the firing in unrelated sessions.Stophook prompt as ordered rules: (1) skip if not fp-check (2) skip if delegated to subagents/workflow, (3) check only the path actually used (standard vs deep)SubagentStopremains inhooks.json, narrowing the matcher to only support specific subagentsdata-flow-analyzer|exploitability-verifier|poc-builder