You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
gate(owner): hook precision — 50 pre-tool blocks from the frozen logs, stratified by rule, labelled true or false; counts per rule published, block text kept private #1654
D-5: hand-label 50 of the pre-tool blocks before any hook change. The pre-tool hook (1,701 lines) is in the "in use, unmeasured" bin: it blocks often and no block has ever been labelled true or false. The 538 blocks the 2026-10-27 inventory counted are no longer on disk: ~/.sequant/logs/claude-hook.log rotates and now holds 442 blocks from 2026-11-02 and 11-03. Three logs were frozen on 2026-11-04 (founding doc §4): 662 blocks over 11 rules (corrected 2026-11-07: the plan said 663 over 14; one counted line was prose inside a logged command, not a block record). The sample frame is those copies. Founding doc P-11.
The gate
Artifact reviewed: a 50-row sheet in admarble/smpl-sequant at evidence/hook-precision-2026-11/sample.md, one row per block: source log, rule, the redacted command line, the runner's proposed label (true = the hook stopped something that should be stopped; false = it stopped legitimate work; unsure) and a one-line reason.
Question the owner answers, per row: is the proposed label right? The owner edits any row they disagree with and signs the sheet.
Reject route: a disputed sampling frame reopens this node's sampling step with a new seed recorded; labels never move a hook in this graph (D-5, §3).
Procedure
Verify the three copies against their sha256 in founding doc §4.
Draw 50 blocks with a fixed, recorded seed, stratified by rule across all 662: proportional allocation, at least 2 for any rule with 2 or more blocks and 1 for a singleton, remainder by largest share.
The runner proposes a label for each from the block line and, where it exists, the transcript around it.
The owner confirms or corrects each row.
Publish counts only: docs/evidence/hook-precision-2026-11.md in sequant, one row per rule (blocks in frame, sampled, true, false, unsure) and the seed. No command text.
Acceptance Criteria
AC-1: The sheet has 50 rows and the owner's sign-off. Evidence: grep -cE '^\| [0-9]+ \|' ~/Projects/smpl-sequant/evidence/hook-precision-2026-11/sample.md → 50
AC-2: The published counts cover every sampled rule and sum to 50. Evidence: awk -F'|' '/^\| [a-z-]+ \|/{s+=$4} END{print s}' docs/evidence/hook-precision-2026-11.md → 50
AC-3: The published page carries no command text from the logs. Evidence: grep -cE 'BLOCKED|git push|cat |printenv' docs/evidence/hook-precision-2026-11.md → 0
May touch
admarble/smpl-sequant: evidence/hook-precision-2026-11/ (new). sequant-io/sequant: docs/evidence/hook-precision-2026-11.md (new; lands through a docs PR).
Non-Goals
Changing any hook or rule (D-5).
Publishing block text (I-6).
Done when
Each rule's sampled precision exists as an owner-confirmed count in sequant's docs.
Runner, 2026-11-07: the sampling frame changed before any label was shown.
469 of the 662 frozen block records are test fixtures, not agent actions. 434 came from matcha-maps' hook tests (e.g. __tests__/integration/hook-test-isolation.integration.test.ts), which ran during E2c's runs. 35 came from sequant's own src/lib/workflow/drivers/opencode-hooks.test.ts, which runs the real pre-tool.sh without overriding the log directory, so its blocks land in the user's real hook log. That flood is also what rotated the 2026-10-27 inventory's 538 blocks out of ~/.sequant/logs/claude-hook.log.
Real frame: 193 blocks over 9 rules (env-dump 83, no-changes 64, commit-format 15, git-reset-hard 10, background-task 9, checkout-lock 5, force-push 3, workflow-trigger 2, worktree-boundary 2). staged-secret and sensitive-file have no real block in the frame, so their precision can't be measured from these logs.
Activity
admarble commentedon Nov 8, 2026
Runner, 2026-11-07: the sampling frame changed before any label was shown.
__tests__/integration/hook-test-isolation.integration.test.ts), which ran during E2c's runs. 35 came from sequant's ownsrc/lib/workflow/drivers/opencode-hooks.test.ts, which runs the realpre-tool.shwithout overriding the log directory, so its blocks land in the user's real hook log. That flood is also what rotated the 2026-10-27 inventory's 538 blocks out of~/.sequant/logs/claude-hook.log.staged-secretandsensitive-filehave no real block in the frame, so their precision can't be measured from these logs.evidence/hook-precision-2026-11/sample.md, waiting for the owner's confirmation. Proposed: 9 true, 32 false, 9 unsure. All 19 env-dump rows are the qa and exec skills' ownenv | grep SEQUANTpreflight, which the bug(test): suite isn't hermetic against the SEQUANT_* env phases inject — exec sees red tests it didn't cause and opens no PR #1086 carve-out misses because it needs a^anchor.CLAUDE_PLUGIN_DATAorHOMEso they never write the real log.