Orchestrata Ultimate › Plans › briefs › 2026-10-13-adr-0101-precommit-stage-walls-ledger

Brief: ADR-0101 rule 2 — the real pre-commit hook records its stage walls to an append-only ledger

Source: plans/briefs/2026-10-13-adr-0101-precommit-stage-walls-ledger.md at 8a2cb42ad · last changed 2026-10-13 · first committed 2026-10-13 · 38 lines.

Prose pending.

Plan text

Brief: ADR-0101 rule 2 — the real pre-commit hook records its stage walls to an append-only ledger

Date: 2026-10-13 · DESIGN_WAIVER: ADR-0101 (Accepted 2026-10-13 21:05: scripts/hooks/pre-commit records one line per commit with the wall of each stage and the per-file reviewer walls inside review-staged; placement is decided on ten measured commits; the hook's exit code and verdict are unchanged) · Executor: Kimi in worktree /home/mohamed/workspace/orchestrata-ultimate-worktrees/adr-0101-hook-ledger on branch feat/adr-0101-precommit-walls-ledger off origin/master 9447d4fcc · Design settled below; if a fork appears, STOP and report.

GOAL: every git commit appends one JSON line to reports/precommit-walls.ndjson with the wall of the secrets check, the ruff stage and gate.py review-staged, and the wall of each reviewer per staged file inside review-staged, whether the commit passes or fails; nothing else about the hook changes.

VERIFIED (coordinator, origin/master 9447d4fcc):

FILES (repo-relative): Modify:

CONSTRAINTS:

DONE WHEN:

  1. Both new tests and the existing review-staged tests are green, observed.
  2. Your own commit of this slice appended a line to reports/precommit-walls.ndjson through the real hook; quote it (with any path shortened) in the hand-back.
  3. shellcheck scripts/hooks/pre-commit clean if shellcheck is installed (say so if not); ruff and mypy clean on the Python you changed; git status --short empty.

VERIFY: the pytest summary line; the ledger line; git log --oneline -1.

Report back with those observed outputs and anything that stopped you.