Guard: a push or worktree remove/move naming an unread repository is refused (martha#68) #85

Manually merged
terra merged 5 commits from uranus/uranus-68-null-repo-guard into main 2026-11-23 11:31:45 +00:00
Member

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:

  1. push and worktree remove/move only;
  2. the message names the way through;
  3. no new CI job or check, and tests only in the guard's own test file;
  4. mutants on the new refusal only.

Change

  • theRepositoryACallWorksOn is 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 five gitDirectory ?? directory folds across the two files.
  • refusalOfAnUnreadRepository refuses push and worktree remove|move when the repository is named but unread (gitDirectory === null).
  • A call that names no repository (directory: null only) is NOT refused. The relay reads every line with no directory, and the shim judges it in the real cwd, which covers cd $D; git push.

Tests (real git, in ask_git_what_a_member_is_about_to_change.node-test.ts): red on a1dab83e, green at the tip.

  • Refused: GIT_DIR=$D git push origin HEAD, git --git-dir=$D push, git --git-dir $D push, GIT_DIR=$HOME/... git push, and GIT_DIR=$D git worktree remove|move, all typed in the member's worktree.
  • Pass, with no notice: a plain push with no directory, cd $D; git push, GIT_DIR=$D with status, checkout -b or worktree list, and a call typed in a clone that names another repository.
  • Mutants, all killed: M1 removes the refusal (2 tests red). M2 restores the ?? fold (1 red). M3 also refuses on a null directory (1 red).

Residuals, each filed or named separately:

  • Seam (b) never reads an exported GIT_DIR (export in one shell call, push in the next).
  • The reader reads ~ as a wrong path, not as null.
  • With an unread repository, an alias is not expanded, since the alias lives in that repository's config.

🤖 Generated with Claude Code

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: 1. push and worktree remove/move only; 2. the message names the way through; 3. no new CI job or check, and tests only in the guard's own test file; 4. mutants on the new refusal only. **Change** - `theRepositoryACallWorksOn` is 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 five `gitDirectory ?? directory` folds across the two files. - `refusalOfAnUnreadRepository` refuses `push` and `worktree remove|move` when the repository is named but unread (`gitDirectory === null`). - A call that names no repository (`directory: null` only) is NOT refused. The relay reads every line with no directory, and the shim judges it in the real cwd, which covers `cd $D; git push`. **Tests** (real git, in `ask_git_what_a_member_is_about_to_change.node-test.ts`): red on a1dab83e, green at the tip. - Refused: `GIT_DIR=$D git push origin HEAD`, `git --git-dir=$D push`, `git --git-dir $D push`, `GIT_DIR=$HOME/... git push`, and `GIT_DIR=$D git worktree remove|move`, all typed in the member's worktree. - Pass, with no notice: a plain push with no directory, `cd $D; git push`, `GIT_DIR=$D` with status, checkout -b or worktree list, and a call typed in a clone that names another repository. - Mutants, all killed: M1 removes the refusal (2 tests red). M2 restores the `??` fold (1 red). M3 also refuses on a null directory (1 red). **Residuals**, each filed or named separately: - Seam (b) never reads an exported GIT_DIR (export in one shell call, push in the next). - The reader reads `~` as a wrong path, not as null. - With an unread repository, an alias is not expanded, since the alias lives in that repository's config. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The reader marks a repository named with a value it cannot follow as null,
and every consumer folded that null into the place the line was typed, so
GIT_DIR=$D git push origin HEAD from a worktree was judged as the worktree's
own push and reached the clone's main. The repository a call works on is now
read once (theRepositoryACallWorksOn) and null stays null; a push or a
worktree remove/move naming such a repository is refused with the way
through. A call naming no repository at all is unchanged: the relay reads
every line with no directory and the shim judges it in the real one.

Supervisor ruling 2026-11-23 (A) under DECIDED 2026-11-20.
guard: the unread-repository refusal names its command by the guard's own words (macula-io/martha#68)
Some checks failed
CI / gate coverage (pull_request) Has been skipped
dependency advisories / node in . (container) (pull_request) Has been skipped
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (container) (pull_request) Has been skipped
dependency advisories / node in installer (container) (pull_request) Has been skipped
dependency advisories / node in . (pull_request) Successful in 9s
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (pull_request) Successful in 9s
CI / links resolve (pull_request) Successful in 4s
c4 model / c4-model-1 (pull_request) Successful in 7s
dependency advisories / node in installer (pull_request) Successful in 13s
c4 model / c4-model (pull_request) Successful in 0s
dependency advisories / advisories (pull_request) Successful in 0s
CI / structural floor (pull_request) Successful in 19s
CI / Martha's names are its own (pull_request) Successful in 20s
CI / the posted text check bites (pull_request) Successful in 8s
CI / the engine drift check bites (pull_request) Successful in 24s
CI / the ring reaches the owner on the live run's tmux (pull_request) Successful in 8s
CI / workflows are valid (pull_request) Successful in 9s
CI / the host drift check bites (pull_request) Successful in 1m5s
CI / nothing private (pull_request) Has been skipped
CI / no import cycle (pull_request) Successful in 1m13s
CI / the pictures change only with the version (pull_request) Successful in 21s
CI / no test the base passed goes missing (pull_request) Successful in 32s
CI / every check runs in a job (pull_request) Successful in 10s
CI / every job has a timeout (pull_request) Successful in 9s
standalone / standalone Martha runs alone (ubuntu-latest) (pull_request) Successful in 26s
CI / no literal restates a defined value (pull_request) Successful in 1m5s
CI / installer (pull_request) Has been cancelled
CI / the relay loads in the recorded host (pull_request) Has been cancelled
CI / the clean-install proof removes its container (pull_request) Has been cancelled
standalone / the pinned Node is nodejs.org's (pull_request) Has been cancelled
dc9ffe8857
guard: an unread repository's aliases are read where the line was typed (macula-io/martha#68 r=1 review fix)
Some checks failed
dependency advisories / advisories (pull_request) Has been cancelled
dependency advisories / node in . (pull_request) Has been cancelled
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (pull_request) Has been cancelled
dependency advisories / node in installer (pull_request) Has been cancelled
dependency advisories / node in . (container) (pull_request) Has been cancelled
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (container) (pull_request) Has been cancelled
dependency advisories / node in installer (container) (pull_request) Has been cancelled
c4 model / c4-model (pull_request) Has been cancelled
c4 model / c4-model-1 (pull_request) Has been cancelled
CI / links resolve (pull_request) Has been cancelled
CI / gate coverage (pull_request) Has been cancelled
CI / structural floor (pull_request) Has been cancelled
CI / Martha's names are its own (pull_request) Has been cancelled
CI / no import cycle (pull_request) Has been cancelled
CI / the relay loads in the recorded host (pull_request) Has been cancelled
CI / the host drift check bites (pull_request) Has been cancelled
CI / the engine drift check bites (pull_request) Has been cancelled
CI / the posted text check bites (pull_request) Has been cancelled
CI / the clean-install proof removes its container (pull_request) Has been cancelled
CI / the ring reaches the owner on the live run's tmux (pull_request) Has been cancelled
CI / workflows are valid (pull_request) Has been cancelled
CI / installer (pull_request) Has been cancelled
CI / nothing private (pull_request) Has been cancelled
CI / no test the base passed goes missing (pull_request) Has been cancelled
CI / the pictures change only with the version (pull_request) Has been cancelled
CI / no literal restates a defined value (pull_request) Has been cancelled
CI / every check runs in a job (pull_request) Has been cancelled
CI / every job has a timeout (pull_request) Has been cancelled
standalone / standalone Martha runs alone (ubuntu-latest) (pull_request) Has been cancelled
standalone / the pinned Node is nodejs.org's (pull_request) Has been cancelled
874cecd16c
With the fold gone, theCallThroughItsAliases returned before expanding any alias when the repository was unread, so a push typed through a config alias (alias.pu=push; D=<clone>/.git; GIT_DIR=$D git pu origin HEAD) was never read as a push and passed the new refusal. The place falls back to the typed directory for aliases only; the expanded call keeps its null repository, so no refusal is added outside push and worktree remove/move. Red 17/18 without it, green 18/18.
guard: the unread-repository refusal names a relative path too (macula-io/martha#68 r=1 note 3)
All checks were successful
dependency advisories / node in . (pull_request) Successful in 8s
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (pull_request) Successful in 8s
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (container) (pull_request) Has been skipped
dependency advisories / node in . (container) (pull_request) Has been skipped
dependency advisories / node in installer (container) (pull_request) Has been skipped
dependency advisories / node in installer (pull_request) Successful in 8s
dependency advisories / advisories (pull_request) Successful in 0s
c4 model / c4-model-1 (pull_request) Successful in 3s
c4 model / c4-model (pull_request) Successful in 0s
CI / links resolve (pull_request) Successful in 4s
CI / structural floor (pull_request) Successful in 20s
CI / Martha's names are its own (pull_request) Successful in 21s
CI / no import cycle (pull_request) Successful in 20s
CI / the host drift check bites (pull_request) Successful in 1m7s
CI / the clean-install proof removes its container (pull_request) Successful in 16m17s
CI / the posted text check bites (pull_request) Successful in 7s
CI / the engine drift check bites (pull_request) Successful in 22s
CI / the ring reaches the owner on the live run's tmux (pull_request) Successful in 9s
CI / workflows are valid (pull_request) Successful in 11s
CI / the relay loads in the recorded host (pull_request) Successful in 15m21s
CI / nothing private (pull_request) Has been skipped
CI / no test the base passed goes missing (pull_request) Successful in 36s
CI / the pictures change only with the version (pull_request) Successful in 18s
CI / installer (pull_request) Successful in 1m53s
CI / every check runs in a job (pull_request) Successful in 8s
CI / every job has a timeout (pull_request) Successful in 8s
standalone / standalone Martha runs alone (ubuntu-latest) (pull_request) Successful in 28s
CI / no literal restates a defined value (pull_request) Successful in 1m6s
standalone / the pinned Node is nodejs.org's (pull_request) Successful in 13s
CI / gate coverage (pull_request) Has been skipped
d6fea572b1
Member

Overlap check before landing at d6fea572 (Terra). Merge base a1dab83e, main 9f8d6451.

PR 85 files (git diff --name-only a1dab83e d6fea572, 3):

src/ask_git_what_a_member_is_about_to_change/ask_git_what_a_member_is_about_to_change.node-test.ts
src/ask_git_what_a_member_is_about_to_change/ask_git_what_a_member_is_about_to_change.ts
src/guard_workspace/guard_workspace.ts

main since base (git diff --name-only a1dab83e 9f8d6451, 27): kept at ~/.claude/sessions/terra-logs-0823/main-since-85.txt

comm -12 pr85-files main-since-85 output: (empty). No file overlap, so this lands --no-ff on main. Main red "gate coverage" 5706 is the #98 flake, not this PR.

Overlap check before landing at d6fea572 (Terra). Merge base a1dab83e, main 9f8d6451. PR 85 files (`git diff --name-only a1dab83e d6fea572`, 3): ``` src/ask_git_what_a_member_is_about_to_change/ask_git_what_a_member_is_about_to_change.node-test.ts src/ask_git_what_a_member_is_about_to_change/ask_git_what_a_member_is_about_to_change.ts src/guard_workspace/guard_workspace.ts ``` main since base (`git diff --name-only a1dab83e 9f8d6451`, 27): kept at ~/.claude/sessions/terra-logs-0823/main-since-85.txt `comm -12 pr85-files main-since-85` output: **(empty)**. No file overlap, so this lands --no-ff on main. Main red "gate coverage" 5706 is the #98 flake, not this PR.
terra manually merged commit c07c06509f into main 2026-11-23 11:31:45 +00:00
Member

Landed --no-ff at c07c0650 (parents 9f8d6451 main, d6fea572 PR head) by Terra. Before the push: all 32 jobs on 9f8d6451 had ended (5739 last, 11:07Z). Offline check_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.

Landed --no-ff at c07c0650 (parents 9f8d6451 main, d6fea572 PR head) by Terra. Before the push: all 32 jobs on 9f8d6451 had ended (5739 last, 11:07Z). Offline `check_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.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
martha-ai/martha!85
No description provided.