This document preserves the original port’s results and environment. Counts, paths, runtime versions and unverified claims below describe that historical candidate, not version 1.1.0. For current source behavior and evidence boundaries, use CURRENT-VERIFICATION.md, COMPATIBILITY.md, INSTALLATION.md and DIAGNOSTICS.md. Historical CLI receipts do not prove current Desktop activation or async delivery.
All nine original hooks passed their behavioral tests. One combined check also invoked every original hook with --codex and a triggering event, verifying the actual JSON response. This is direct hook execution, not Desktop activation.
| Original hook | Observed check |
|---|---|
| inject-rules | Configured rules appear in event context; missing rules are silent |
| deploy-gate | Missing/wrong commit gate blocks; complete fixture gate allows |
| walk-brief-guard | Required/missing and banned brief text distinguish allow/deny |
| read-ledger-gate | Missing/wrong rows block; accurate rows allow; real CLI write blocked/allowed |
| db-write-guard | Recognized SQL writes block without fresh marker; reads allow |
| no-idle | Unhandled/stalled workers block; handled work allows |
| double-check | First Stop requests review; continuation allows |
| measure-gate | Missing/stale receipt blocks; fresh receipt allows; retry cap ends |
| wake | Delayed worker classifications and lock work; does not wake idle Codex |
The first baseline run encountered sandbox write restrictions in Git fixtures and snippet generation. An unrestricted fixture run passed 104/104 without source changes. After adding the completion gate, the final npm test passed 109/109, zero failed/skipped, exit 0, in 14.4 seconds. No repeated full suite followed that pass.
Four focused completion tests cover actual command execution/caching, fake receipt rejection, retained-region proof, cross-process/session retry limits, timeout and input mutation. An accurate read ledger alone failed the reuse check. A matching retained region passed; changed upstream bytes failed.
completion-probe.json records real CLI Stop behavior with a deterministic loopback model fixture: failed acceptance caused continuation; a corrected product passed after two checks; unchanged failure ran only once and ended at three failure decisions. No external model call. The prior native shell probe was also rerun successfully (PIDs 19536/42032).
All owned CLI subprocesses exited. No active home install, commit, push or app restart. Desktop activation and native apply_patch remain unverified. The kit now contains ten hooks and four examples; the new example starts disabled pending real project configuration. See COMPLETION.md for the explicit limits. The original delivery evidence below is historical.
Local source at C:\Users\scott\Desktop\Code\codex-hook-kit.
Nine named hooks; installer, uninstaller and project initializer; three examples;
generated registration snippet; manual and key reference; landing page; preserved
reference source and provenance; parity and Codex protocol tests; native CLI probe.
No live installation, commit, push, public release or Desktop restart.
| Check | Result | Evidence |
|---|---|---|
Complete final npm test |
PASS: 104 tests, 104 passed, 0 failed, 0 skipped; exit 0 | final-tests.txt |
| Installer preservation/backup/uninstall correction | PASS: 10 tests | install-recheck.tap |
| Native shell write, no ledger | BLOCKED; marker did not exist; tool result named read-ledger-gate | native-probe.json |
| Same native shell write, valid ledger | ALLOWED; marker existed | native-probe.json |
| Native probe processes | PIDs 38852 and 39456 closed; subsequent Get-Process found neither | Direct process check |
| Original Claude kit | All 46 source-manifest files hash-identical | SOURCE.json |
| Preserved source snapshot | All 18 snapshot files hash-identical to source | reference/claude-hook-kit/ |
| Required deliverables | All listed files exist | Direct filesystem inventory |
Node: 24.21.0. Native Codex CLI: 0.162.0-alpha.2. Platform: Windows. The local fixture uses synthetic inputs and an isolated Codex home, not a real model.
test-results.tap is an intermediate failed run, superseded by final-tests.txt.
The separate final passing result is retained so the history is not rewritten.
See COMPATIBILITY.md and ADDITIONS.md. File counts do not prove reading/reuse; fresh timestamps do not prove valid measurement; regex shell guards and ordinary user-writable policy files are not a security boundary.