From the GPT review of R3 (row211-r3-gpt.md, R1 to R3 and Check 5):
- slot-busy.sh: every ancestor status read must give a numeric PPid. A
failed ancestor or cmdline read counts as gone only when a listing of
the proc root succeeds and lacks the pid; anything else is exit 2 with
no CLEAR. The [ -d ] and [ -e ] tests, which can't tell a denied lookup
from a missing one, are gone.
- slot-busy.sh: a shell-snapshot wrapper whose text sources (source or .)
a gate, test or mutant script is BUSY; one that only runs children is
still skipped.
- install-git-hooks.sh: the hook is staged in a mktemp file in the hooks
directory, not a pid-named path.
- mutants.sh: exit 1 on a survivor, NO MATCH, COPY FAILED or a timeout;
nine new mutants, 30 of 30 killed.
test-git-guard.sh: RED 90/14, GREEN 105/0. BUILD.md R4 has the details,
including a correction to the R3 bind-mount note.
scripts/git-hooks/pre-push refuses a delete, a remote tip missing locally and
any update whose remote tip isn't an ancestor of the local tip; a new branch
and a fast-forward pass. scripts/install-git-hooks.sh puts it in the common
.git/hooks, refuses a set core.hooksPath or a different hook without
--force-install, and runs a canary through git hook run. scripts/slot-busy.sh
exits 0 CLEAR, 1 BUSY, 2 error. scripts/test-git-guard.sh (61 cases) and the
mutant runner in agents/darkwing/work/queue-211; TOOLS.md gets the usage.
Not run yet: written during Gander's slot (sage-2801).
(cherry picked from commit 20e885dc35)