Guard: a push or worktree remove/move naming an unread repository is refused (martha#68) #85
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "uranus/uranus-68-null-repo-guard"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Refs macula-io/martha#68.
Purpose (defect): a push, or a worktree remove or move, that names its repository with a value the guard cannot read is refused, and is no longer judged at the place the line was typed.
Ruling: Supervisor ruling 2026-11-23 (A), under DECIDED 2026-11-20 "Yes, list then cut (Recommended)". It is quoted in full on #68 and in the threat model. Raf can overrule it. Its four conditions:
Change
theRepositoryACallWorksOnis the one reading of a call's repository. A repository named with a value the reader cannot follow stays null; it is no longer folded into the typed directory. It replaces fivegitDirectory ?? directoryfolds across the two files.refusalOfAnUnreadRepositoryrefusespushandworktree remove|movewhen the repository is named but unread (gitDirectory === null).directory: nullonly) is NOT refused. The relay reads every line with no directory, and the shim judges it in the real cwd, which coverscd $D; git push.Tests (real git, in
ask_git_what_a_member_is_about_to_change.node-test.ts): red ona1dab83e, green at the tip.GIT_DIR=$D git push origin HEAD,git --git-dir=$D push,git --git-dir $D push,GIT_DIR=$HOME/... git push, andGIT_DIR=$D git worktree remove|move, all typed in the member's worktree.cd $D; git push,GIT_DIR=$Dwith status, checkout -b or worktree list, and a call typed in a clone that names another repository.??fold (1 red). M3 also refuses on a null directory (1 red).Residuals, each filed or named separately:
~as a wrong path, not as null.🤖 Generated with Claude Code
Overlap check before landing at
d6fea572(Terra). Merge basea1dab83e, main9f8d6451.PR 85 files (
git diff --name-only a1dab83e d6fea572, 3):main since base (
git diff --name-only a1dab83e 9f8d6451, 27): kept at ~/.claude/sessions/terra-logs-0823/main-since-85.txtcomm -12 pr85-files main-since-85output: (empty). No file overlap, so this lands --no-ff on main. Main red "gate coverage" 5706 is the #98 flake, not this PR.Landed --no-ff at
c07c0650(parents9f8d6451main,d6fea572PR head) by Terra. Before the push: all 32 jobs on9f8d6451had ended (5739 last, 11:07Z). Offlinecheck_nothing_private_gets_in --range 9f8d6451..c07c0650: 437 tree hits, identical to the 5453 baseline, 0 commit hits. Main read back by ls-remote =c07c0650.