Run every tool's git through git_repo.git, with rule-hook's guards as an option #333

Merged
lilleman merged 11 commits from item-114 into main 2026-10-21 20:16:24 +02:00
Owner

bin/git_repo.py's git now runs git for rule-hook, metric-bench, reading-cost, review-replay and loop-claude. rule-hook's guards are its guarded=True option, listed one setting per line and each covered by a test. loop-claude's Effects.git is git_repo.git, typed by a Git Protocol, so review-replay's wrapper is gone.

Behaviour changes:

  • A git failure reads git <args> could not start: <error> or git <args>: <stderr> in every tool.
  • metric-bench leaves out, with a note, a file it can't read as UTF-8 through git. It exits 1 on a tracked file name that isn't UTF-8, and its help says so.

Plan:

  • Item 204 filed: the status line's own git runner.
  • Item 205 filed: the floor decision still says G 9.
  • Item 155's reading-cost figures refreshed.

Review: architecture BLOCK on round 1 (stood after a rerun one rung up), fixed and passed in round 2. Principles and stability passed in round 2. Product-owner, prose and /security-review each needed one round. No rule overrides. Paired ruling: better against fda48ac.

Stability's place bin/git_repo.py git (flat bin/ root) is left for item 124, which groups the root's shared modules.

`bin/git_repo.py`'s `git` now runs git for rule-hook, metric-bench, reading-cost, review-replay and loop-claude. rule-hook's guards are its `guarded=True` option, listed one setting per line and each covered by a test. loop-claude's `Effects.git` is `git_repo.git`, typed by a `Git` Protocol, so review-replay's wrapper is gone. Behaviour changes: - A git failure reads `git <args> could not start: <error>` or `git <args>: <stderr>` in every tool. - metric-bench leaves out, with a note, a file it can't read as UTF-8 through git. It exits 1 on a tracked file name that isn't UTF-8, and its help says so. Plan: - Item 204 filed: the status line's own git runner. - Item 205 filed: the floor decision still says G 9. - Item 155's reading-cost figures refreshed. Review: architecture BLOCK on round 1 (stood after a rerun one rung up), fixed and passed in round 2. Principles and stability passed in round 2. Product-owner, prose and `/security-review` each needed one round. No rule overrides. Paired ruling: better against fda48ac. Stability's place `bin/git_repo.py` `git` (flat `bin/` root) is left for item 124, which groups the root's shared modules.
lilleman added 1 commit 2026-10-21 19:35:27 +02:00
lilleman marked the pull request as work in progress 2026-10-21 19:35:31 +02:00
lilleman added 9 commits 2026-10-21 20:14:16 +02:00
lilleman marked the pull request as ready for review 2026-10-21 20:14:18 +02:00
lilleman added 1 commit 2026-10-21 20:16:15 +02:00
lilleman merged commit dec19c5595 into main 2026-10-21 20:16:24 +02:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: lilleman/claude-config#333