martha#53: a GIT_DIR the line exports is read, so a push from the worktree place is judged at the clone #66

Manually merged
terra merged 6 commits from vesta/53-exported-git-dir into main 2026-11-24 02:35:50 +00:00
Member

Refs #53. Fixes the one hole #53 names: a GIT_DIR a shell exports was not read, so export GIT_DIR=<clone>/.git; git push from the worktree place reached the clone's default branch with no rule meeting it.

What the reader now carries

The shell's own GIT_DIR, from where a line exports it to the calls after it:

  • export GIT_DIR=<path> names the repository of every command after it, across separators and across the lines of one command string — including the words a shell's syntax puts a command after ({, then, else, elif, do, !, and command / builtin handing their command over).
  • declare -x and typeset -x export their names; a declare without -x keeps them to the shell alone and is not read.
  • An export is read after the prefix assignment that stands before it (X=1 export GIT_DIR=…), and the value such an assignment holds is the one GIT_DIR=… export GIT_DIR marks.
  • Once exported, a bare GIT_DIR=<path> standing as a command of its own updates it — also when only more assignments and redirections follow it — and export GIT_DIR marks the value the shell already holds.
  • A bare assignment the line never exported is not read: its children are given nothing, so neither is the guard.
  • The launch's environment is never read. A variable the line did not export itself is not followed.
  • The exported value is a path read where the call runs, so a cd moves it as it moves git; git's own --git-dir and an inline GIT_DIR= stand over it.

Nothing in the line takes the export back (r=2, the Supervisor's fail-closed ruling). unset GIT_DIR, export -n GIT_DIR and a declare's +x change nothing here, and a name only ever raises the export: Uranus's r=2 read showed that a drop a shell may not really make — in a branch that does not run, in a pipeline or a background command, in a case arm, or in a comment — let a line drop the export it made and push unseen. The subshell's own ) still drops it, because that shell really does end. The cost is a rare false refusal (export GIT_DIR=x; unset GIT_DIR; git push), which the refusal line names so the member can drop the export.

No rule, check or notice changes: the call carries the repository as gitDirectory, as the inline form already did, and a push with no refspec in the clone it names is refused as the push onto the default branch that it is.

Evidence

  • Red first at each round, on the tip before it: r=0's harm ('' where /main is the default branch/ was expected), r=1's eight shapes, and r=2's fail-closed tests — logs in Vesta's session directory (vesta-53-red.log, vesta-53-r1-red.log, vesta-53-r2-red.log).
  • Uranus's own attack scripts re-run against this tip (vesta-53-r2-check/): every line whose real bash reaches the clone is REFUSED, including all of his r=2 shapes. The lines that still pass are the $D variable forms, filed as #68.
  • 15 mutants on this tip, each killed by a named test, plus the ten of r=0 and the r=1 set at their rounds (logs in vesta-53-mutants/).
  • The three changed and neighbouring test files (reader, adapter, guard) 66/66; tsc, the full eslint, the restated-values check and the import cycle clean. One coincidence entry, with its reason: this leaf slice holds git's own variable word rather than load the guard that holds it.

Limits, stated rather than left to be discovered

  • The export and the call in one command string is what is read. An export in one tool call and a push in a later one is out of reach of a reader that reads one line and fails open; it is the same limit #49 meets from the other side.
  • set -a / allexport is a second way to export, filed as #67 with its probe, not folded in here.
  • An unresolvable value (export GIT_DIR=$D) is null, and the call is judged at the worktree: filed as #68.
  • A relative exported value is read before git's own -C, as a relative --git-dir already is (#53's note N3). No harm lands on it: git resolves it after -C and finds no repository there.
Refs #53. Fixes the one hole #53 names: a `GIT_DIR` a shell exports was not read, so `export GIT_DIR=<clone>/.git; git push` from the worktree place reached the clone's default branch with no rule meeting it. ## What the reader now carries The shell's own `GIT_DIR`, from where a line exports it to the calls after it: - `export GIT_DIR=<path>` names the repository of every command after it, across separators and across the lines of one command string — including the words a shell's syntax puts a command after (`{`, `then`, `else`, `elif`, `do`, `!`, and `command` / `builtin` handing their command over). - `declare -x` and `typeset -x` export their names; a `declare` without `-x` keeps them to the shell alone and is not read. - An export is read after the prefix assignment that stands before it (`X=1 export GIT_DIR=…`), and the value such an assignment holds is the one `GIT_DIR=… export GIT_DIR` marks. - Once exported, a bare `GIT_DIR=<path>` standing as a command of its own updates it — also when only more assignments and redirections follow it — and `export GIT_DIR` marks the value the shell already holds. - A bare assignment the line never exported is not read: its children are given nothing, so neither is the guard. - The launch's environment is never read. A variable the line did not export itself is not followed. - The exported value is a path read where the call runs, so a `cd` moves it as it moves git; git's own `--git-dir` and an inline `GIT_DIR=` stand over it. **Nothing in the line takes the export back (r=2, the Supervisor's fail-closed ruling).** `unset GIT_DIR`, `export -n GIT_DIR` and a `declare`'s `+x` change nothing here, and a name only ever raises the export: Uranus's r=2 read showed that a drop a shell may not really make — in a branch that does not run, in a pipeline or a background command, in a case arm, or in a comment — let a line drop the export it made and push unseen. The subshell's own `)` still drops it, because that shell really does end. The cost is a rare false refusal (`export GIT_DIR=x; unset GIT_DIR; git push`), which the refusal line names so the member can drop the export. No rule, check or notice changes: the call carries the repository as `gitDirectory`, as the inline form already did, and a push with no refspec in the clone it names is refused as the push onto the default branch that it is. ## Evidence - Red first at each round, on the tip before it: r=0's harm (`''` where /main is the default branch/ was expected), r=1's eight shapes, and r=2's fail-closed tests — logs in Vesta's session directory (`vesta-53-red.log`, `vesta-53-r1-red.log`, `vesta-53-r2-red.log`). - Uranus's own attack scripts re-run against this tip (`vesta-53-r2-check/`): every line whose real bash reaches the clone is REFUSED, including all of his r=2 shapes. The lines that still pass are the `$D` variable forms, filed as #68. - 15 mutants on this tip, each killed by a named test, plus the ten of r=0 and the r=1 set at their rounds (logs in `vesta-53-mutants/`). - The three changed and neighbouring test files (reader, adapter, guard) 66/66; tsc, the full eslint, the restated-values check and the import cycle clean. One coincidence entry, with its reason: this leaf slice holds git's own variable word rather than load the guard that holds it. ## Limits, stated rather than left to be discovered - The export and the call in one command string is what is read. An export in one tool call and a push in a later one is out of reach of a reader that reads one line and fails open; it is the same limit #49 meets from the other side. - `set -a` / `allexport` is a second way to export, filed as #67 with its probe, not folded in here. - An unresolvable value (`export GIT_DIR=$D`) is `null`, and the call is judged at the worktree: filed as #68. - A relative exported value is read before git's own `-C`, as a relative `--git-dir` already is (#53's note N3). No harm lands on it: git resolves it after `-C` and finds no repository there.
martha#53: a GIT_DIR the line exports is read, so a push from the worktree place is judged at the clone
Some checks failed
dependency advisories / node in . (pull_request) Successful in 10s
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (pull_request) Successful in 8s
dependency advisories / node in installer (pull_request) Successful in 10s
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 / 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 15s
CI / structural floor (pull_request) Successful in 24s
CI / Martha's names are its own (pull_request) Successful in 26s
CI / no import cycle (pull_request) Successful in 25s
CI / the host drift check bites (pull_request) Successful in 1m13s
CI / the posted text check bites (pull_request) Successful in 12s
CI / the engine drift check bites (pull_request) Successful in 26s
CI / the ring reaches the owner on the live run's tmux (pull_request) Successful in 14s
CI / workflows are valid (pull_request) Successful in 24s
CI / installer (pull_request) Successful in 2m3s
CI / nothing private (pull_request) Failing after 15s
CI / the pictures change only with the version (pull_request) Successful in 18s
CI / no test the base passed goes missing (pull_request) Successful in 31s
CI / every check runs in a job (pull_request) Successful in 17s
CI / every job has a timeout (pull_request) Successful in 16s
CI / no literal restates a defined value (pull_request) Successful in 54s
standalone / standalone Martha runs alone (ubuntu-latest) (pull_request) Successful in 29s
standalone / the pinned Node is nodejs.org's (pull_request) Successful in 13s
CI / the relay loads in the recorded host (pull_request) Successful in 15m50s
CI / gate coverage (pull_request) Has been cancelled
CI / the clean-install proof removes its container (pull_request) Has been cancelled
fc98233c25
The reader now carries the shell's own GIT_DIR from where a line exports it (`export GIT_DIR=<path>`) to the calls
after it, and drops it where the shell drops it: `export -n GIT_DIR`, `unset GIT_DIR`, and the end of a subshell's own
shell. Once exported, a bare `GIT_DIR=<path>` standing as a command of its own updates it, and `export GIT_DIR` marks
the value the line's shell already holds. A bare assignment the line never exported is not read, and the launch's
environment is never read: a variable this reader did not see exported is not one it follows.

The value is read where the call runs, so a `cd` moves it as it moves git, and git's own `--git-dir` or an inline
`GIT_DIR=` stands over it as git's option does over the environment. Nothing in the guard changes: the call carries the
repository as `gitDirectory`, and a push with no refspec in the clone it names is refused as the push onto the default
branch that it is.
martha#53 r=1: an export is read wherever a shell writes one, and only a drop that runs drops it
Some checks failed
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 8s
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 (pull_request) Successful in 8s
dependency advisories / node in installer (container) (pull_request) Has been skipped
dependency advisories / advisories (pull_request) Successful in 0s
c4 model / c4-model-1 (pull_request) Successful in 2s
c4 model / c4-model (pull_request) Successful in 0s
CI / links resolve (pull_request) Successful in 19s
CI / structural floor (pull_request) Successful in 26s
CI / Martha's names are its own (pull_request) Successful in 28s
CI / no import cycle (pull_request) Successful in 26s
CI / the engine drift check bites (pull_request) Successful in 35s
CI / the posted text check bites (pull_request) Successful in 16s
CI / the host drift check bites (pull_request) Successful in 1m15s
CI / the ring reaches the owner on the live run's tmux (pull_request) Successful in 17s
CI / workflows are valid (pull_request) Successful in 23s
CI / installer (pull_request) Successful in 2m1s
CI / nothing private (pull_request) Failing after 15s
CI / no test the base passed goes missing (pull_request) Successful in 32s
CI / the pictures change only with the version (pull_request) Successful in 18s
CI / no literal restates a defined value (pull_request) Successful in 52s
CI / every check runs in a job (pull_request) Successful in 17s
CI / every job has a timeout (pull_request) Successful in 16s
standalone / standalone Martha runs alone (ubuntu-latest) (pull_request) Successful in 28s
standalone / the pinned Node is nodejs.org's (pull_request) Successful in 14s
CI / gate coverage (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
4103cc5272
Uranus's r=1 read found the shapes the first version missed, each now read as the shell reads it:

- the words a shell puts a command after (`{`, `then`, `else`, `elif`, `do`, `!`) and the ones that hand the command
  over (`command`, `builtin`) begin a command, so the export written behind them is the shell's;
- `declare -x` and `typeset -x` export their names, and a `declare` without -x does not;
- an export is read after the prefix assignment that stands before it (`X=1 export GIT_DIR=…`), and the value such an
  assignment holds is the one `GIT_DIR=… export GIT_DIR` marks;
- `unset -f` names a function, not the variable; an option after the first name is a name; and a drop written in a
  command that may not run (`false && unset GIT_DIR`) is no drop, so the reader fails towards the refusal;
- a `)` with no subshell open (a case arm's own) closes nothing here and drops nothing;
- an assignment followed only by more assignments and redirections is the shell's own variable, not one command's.

A keyword puts a command after it without moving the directory a `cd` behind it names: that rule is unchanged, since the
branch may not run.
martha#53 r=2: once a line exports its repository, nothing in it takes that back
Some checks failed
CI / the pictures change only with the version (pull_request) Successful in 22s
CI / no test the base passed goes missing (pull_request) Successful in 29s
CI / the host drift check bites (pull_request) Successful in 1m33s
CI / every check runs in a job (pull_request) Successful in 13s
CI / every job has a timeout (pull_request) Successful in 32s
standalone / standalone Martha runs alone (ubuntu-latest) (pull_request) Successful in 26s
standalone / the pinned Node is nodejs.org's (pull_request) Successful in 23s
CI / installer (pull_request) Successful in 4m50s
CI / no literal restates a defined value (pull_request) Successful in 1m10s
CI / the clean-install proof removes its container (pull_request) Successful in 17m22s
dependency advisories / node in . (pull_request) Successful in 19s
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 installer (pull_request) Successful in 13s
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (pull_request) Successful in 9s
dependency advisories / advisories (pull_request) Successful in 0s
c4 model / c4-model-1 (pull_request) Successful in 7s
c4 model / c4-model (pull_request) Successful in 0s
CI / links resolve (pull_request) Successful in 34s
CI / structural floor (pull_request) Successful in 38s
CI / Martha's names are its own (pull_request) Successful in 36s
CI / the posted text check bites (pull_request) Successful in 14s
CI / no import cycle (pull_request) Successful in 1m7s
CI / the ring reaches the owner on the live run's tmux (pull_request) Successful in 14s
CI / the engine drift check bites (pull_request) Successful in 39s
CI / gate coverage (pull_request) Failing after 13m56s
CI / workflows are valid (pull_request) Successful in 23s
CI / the relay loads in the recorded host (pull_request) Failing after 9m28s
CI / nothing private (pull_request) Failing after 21s
e17f8bdb7f
The Supervisor's ruling of 2026-11-22, option 1: fail-closed. Uranus's r=2 read found drops that real bash never makes
still counting — an `unset` in a branch that does not run, in a pipeline or a background command, in a case arm, or in a
comment — so a line could drop the export it made and push onto the clone's default branch unseen.

No command in the line un-exports now: `unset`, `export -n` and a `declare`'s `+x` say nothing to this reader, and a name
only ever raises the export, never lowers it. The subshell's own end still drops it, because that shell really does end.
The cost is a rare false refusal — `export GIT_DIR=x; unset GIT_DIR; git push` — which the refusal line names, so the
member can drop the export. No new check, and no rule outside this one changed.
Member

Overlap check against main 611f48db (Terra): comm -12 of this PR's files (4) and main's since the merge base (56):

src/ask_git_what_a_member_is_about_to_change/ask_git_what_a_member_is_about_to_change.node-test.ts

git merge-tree --write-tree origin/main <head> conflicts. Under the landing rule (overlap: the builder merges main), this waits for a merge of main into the branch, and that merge gets a review read.

Overlap check against main 611f48db (Terra): `comm -12` of this PR's files (4) and main's since the merge base (56): ``` src/ask_git_what_a_member_is_about_to_change/ask_git_what_a_member_is_about_to_change.node-test.ts ``` `git merge-tree --write-tree origin/main <head>` **conflicts**. Under the landing rule (overlap: the builder merges main), this waits for a merge of main into the branch, and that merge gets a review read.
Merge main 611f48db into vesta/53-exported-git-dir: keep both ends of the test file
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 / 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
host drift / the recording is of the host members run (pull_request) Successful in 2m3s
3b490f9c5e
Both sides added tests at the end of ask_git_what_a_member_is_about_to_change.node-test.ts, and nothing else conflicted:
the four martha#53 tests (this branch) and the four martha#68 tests (main). Both are kept, #53's first: 22 tests, 22/22
green under a plain TMPDIR.

Under the linked TMPDIR the gate job uses for its second suite run, the martha#48 clone-notice test is red: that is
martha#98's flake, and PR 99 (478d6f1c) fixes it. Nothing in this merge touches it.
Merge main 1840e66c (PR 99, martha#98) into vesta/53-exported-git-dir
Some checks failed
CI / gate coverage (pull_request) Has been skipped
CI / links resolve (pull_request) Successful in 7s
dependency advisories / node in . (pull_request) Successful in 12s
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (pull_request) Successful in 12s
dependency advisories / node in . (container) (pull_request) Has been skipped
dependency advisories / node in installer (pull_request) Successful in 13s
dependency advisories / node in installer (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 / advisories (pull_request) Successful in 0s
c4 model / c4-model-1 (pull_request) Successful in 5s
c4 model / c4-model (pull_request) Successful in 0s
CI / Martha's names are its own (pull_request) Successful in 30s
CI / structural floor (pull_request) Successful in 32s
CI / no import cycle (pull_request) Successful in 27s
CI / the host drift check bites (pull_request) Successful in 1m18s
CI / the engine drift check bites (pull_request) Successful in 29s
CI / the posted text check bites (pull_request) Successful in 12s
CI / the ring reaches the owner on the live run's tmux (pull_request) Successful in 12s
CI / workflows are valid (pull_request) Successful in 11s
CI / installer (pull_request) Successful in 2m14s
CI / nothing private (pull_request) Has been skipped
CI / no test the base passed goes missing (pull_request) Successful in 50s
CI / the pictures change only with the version (pull_request) Successful in 19s
CI / no literal restates a defined value (pull_request) Successful in 1m5s
CI / every check runs in a job (pull_request) Successful in 15s
CI / every job has a timeout (pull_request) Successful in 14s
standalone / standalone Martha runs alone (ubuntu-latest) (pull_request) Successful in 32s
standalone / the pinned Node is nodejs.org's (pull_request) Successful in 17s
CI / the relay loads in the recorded host (pull_request) Successful in 15m5s
CI / the clean-install proof removes its container (pull_request) Has been cancelled
c44a97c8f3
No conflict: PR 99 changed the #48 test's fixture and added its own test, which meet this branch's #53 and main's #68
tests without overlapping them. 23 tests, 23/23 green under a plain TMPDIR and 23/23 under the linked TMPDIR the gate job's
second run uses — the martha#48 clone-notice flake this branch carried is gone with PR 99.
Merge main 277f2773 (PR 62, martha#60) into vesta/53-exported-git-dir
All checks were successful
CI / the ring reaches the owner on the live run's tmux (pull_request) Successful in 12s
CI / workflows are valid (pull_request) Successful in 14s
CI / nothing private (pull_request) Has been skipped
CI / no test the base passed goes missing (pull_request) Successful in 37s
CI / the pictures change only with the version (pull_request) Successful in 18s
CI / no literal restates a defined value (pull_request) Successful in 1m2s
CI / every check runs in a job (pull_request) Successful in 14s
CI / every job has a timeout (pull_request) Successful in 14s
CI / installer (pull_request) Successful in 4m1s
standalone / the pinned Node is nodejs.org's (pull_request) Successful in 20s
standalone / standalone Martha runs alone (ubuntu-latest) (pull_request) Successful in 32s
CI / the relay loads in the recorded host (pull_request) Successful in 16m45s
CI / the clean-install proof removes its container (pull_request) Successful in 18m27s
CI / gate coverage (pull_request) Has been skipped
dependency advisories / node in . (pull_request) Successful in 12s
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (pull_request) Successful in 12s
dependency advisories / node in . (container) (pull_request) Has been skipped
dependency advisories / node in installer (pull_request) Successful in 13s
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 / advisories (pull_request) Successful in 0s
c4 model / c4-model-1 (pull_request) Successful in 5s
CI / links resolve (pull_request) Successful in 6s
c4 model / c4-model (pull_request) Successful in 0s
CI / structural floor (pull_request) Successful in 27s
CI / Martha's names are its own (pull_request) Successful in 28s
CI / no import cycle (pull_request) Successful in 29s
CI / the host drift check bites (pull_request) Successful in 1m14s
CI / the engine drift check bites (pull_request) Successful in 30s
CI / the posted text check bites (pull_request) Successful in 14s
d5d2a257f9
No conflict: main declares the public repositories check:private reads offline, which touches no file of this branch.
23 tests, 23/23 green under a plain TMPDIR and 23/23 under the linked one.
terra manually merged commit 1363ce3e4a into main 2026-11-24 02:35:50 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 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!66
No description provided.