Skip to content

chore: remove the legacy verification runner and config copies - #117

Merged
furedea merged 1 commit into
mainfrom
chore/remove-legacy-verification-runner
Sep 17, 2026
Merged

furedea merged 1 commit into
mainfrom
chore/remove-legacy-verification-runner

Conversation

@furedea

@furedea furedea commented Sep 16, 2026

Copy link
Copy Markdown
Owner

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 feat: verify agent changes through native hooks #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

Copilot AI lite review requested due to automatic review settings September 16, 2026 14:03

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

The native Stop gate replaced run_verification.py in #106.

Its reuse cache, log module, opt-in file, tests, and coreutils timeout link had no callers left.

Drop the reference copies of atuin, gh, git, and yazi configs that Nix already owns.

Prune the stale statusline mapping and the timeout note that described the old runner.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@furedea
furedea force-pushed the chore/remove-legacy-verification-runner branch from 66be8e3 to 35bf7cf Compare September 17, 2026 03:08
@furedea
furedea merged commit e71c3fb into main Sep 17, 2026
11 checks passed
@furedea
furedea deleted the chore/remove-legacy-verification-runner branch September 17, 2026 03:10
furedea added a commit that referenced this pull request Sep 17, 2026
## Summary

Stacked on #117. Behavior-preserving rename so the Stop gate uses one
vocabulary: `session_*` for session state, `check_*` for the helpers
that plan, run, and interpret one check.

| Before | After | Responsibility |
| --- | --- | --- |
| `agents/hooks/lib/verification_selection.py` | `check_selection.py` |
select `Invocation`s from changed paths |
| `agents/hooks/lib/verification_output.py` | `check_evidence.py` |
interpret runner output as `Evidence` |
| `agents/hooks/lib/session_checks.py` | `check_execution.py` | execute
one check with a bounded budget |
| `tests/agents/hooks/test_verification_selection.py` |
`test_check_selection.py` | |
| `tests/agents/hooks/test_verification_output.py` |
`test_check_evidence.py` | |

`verification_*` was the prefix of the standalone runner removed in
#117; `session_checks.py` never depended on session state. Follow-ups:
imports in `session_gate.py` and `check_execution.py`, the
`related_test_extensions.json` key (`check_*.py`, now also mapping to
the gate tests that exercise execution), `test_verification_rule.py`,
and the deptry first-party list.

`verification_session.py` (provider-facing entry point) and the
`related_test_*.json` / `RUN_RELATED_TESTS_*` names stay: they are
documented, deployed names.

## Verification

- `uv run --frozen pytest`: 961 passed
- `deptry`, `vulture`, ruff format/check, ty, dprint via lefthook

## Rollout

Mac: rebuild. 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]>
furedea added a commit that referenced this pull request Nov 10, 2026
## 概要

agent-config を最新にして,編集のたびに共通の ast-grep
規則(agent-config#117,#121)が動くようにする.`ast-grep` は #427 で PATH に入っている.

| 項目 | 前 | 後 |
| --- | --- | --- |
| agent-config | eae1408(共通の規則なし) | #117 まで |
| 編集後の hook | ast-grep を動かさない | 共通の規則で ast-grep を動かし,指摘を返す(止めない) |

## 検証

- [x] `darwin-rebuild switch` で適用済み(ユーザー)
- [x] 配られた `hooks/lint/sgconfig.yml` で,`@staticmethod` を含む試しのファイルに
`py_no_staticmethod` が出ることを確認

Refs furedea/agent-config#74

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: furedea <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants