Repository navigation
feat: verify agent changes through native hooks - #106
Merged
Merged
Conversation
furedea
added a commit
that referenced
this pull request
Sep 16, 2026
The codex wrapper calls `exec -a codex <path> "$@"`, so the intercepted exec receives three fixed tokens before the user arguments; measured directly against the installed wrapper (argc=6 for three user args, argc=8 with the Herdr `-c tui.notifications=false` prefix). #106 changed the test from `shift 3` to `shift 6` without touching the wrapper, which dropped the user arguments and failed all three cases. CI only runs tests/esa/zsh.bats, so the regression was never caught there. Co-Authored-By: Claude Fable 5.1 <[email protected]>
furedea
added a commit
that referenced
this pull request
Sep 17, 2026
## Summary Audit of files no longer referenced anywhere in the repository. - Remove the legacy standalone verification runner and everything only it used: `agents/hooks/run_verification.py`, `agents/hooks/lib/verification_reuse.py`, `agents/hooks/lib/verification_log.py`, the `.agents/hooks/rules/verification_reuse.json` opt-in, their four test modules, and the `~/.config/agent-harness/bin/timeout` link in `nix/home/default.nix`. The native Stop gate from #106 (`verification_session.py` -> `session_gate` -> `session_checks`) never called them and carries its own receipt reuse and log limits. - Remove the reference copies `atuin/config.toml`, `gh/config.yml`, `git/.gitconfig`, `yazi/keymap.toml`, and `yazi/yazi.toml`; `nix/home/default.nix` is the single source for those programs. - Prune `related_test_extensions.json` mappings that pointed at the removed tests and the `agents/claude/statusline/*.json` key that matched no tracked file; drop the `RUN_RELATED_TESTS_REUSE` / `RUN_RELATED_TESTS_FORCE` exclusions in `session_gate.py` and the deptry first-party entries; align the README timeout note with the native gate (300 seconds per check). `verification_selection.py` and `verification_output.py` stay: `session_gate` and `session_checks` import them. ## Verification - `uv run --frozen pytest`: 961 passed - `deptry`, `vulture`, ruff format/check, ty, dprint, autocorrect, nixfmt, statix, deadnix via lefthook ## Rollout Mac: rebuild (the timeout link disappears and the hooks directory loses the removed modules). Server: `git pull` and re-run `install_server.sh`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Fable 5.1 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Verification now records each worktree's starting state through native Codex and Claude Code SessionStart hooks, checks registration before tools run, and verifies session changes at Stop. Identical inputs reuse prior results, including unresolved failures. Session IDs preserve evidence across restarts, and retention and log limits bound stored state. This removes the verification launcher and its CLI restrictions; provider hook delivery and timeout semantics remain the enforcement limit.
Skill entry points use task-specific references. Operator instructions live in the README, with the native-hook decision recorded in ADR-0029.
Validation: 77 related Python tests passed, including generated provider hooks; both Nix/Bats checks passed; pre-commit formatting, lint, and type checks passed.