martha#98: the clone-notice test names its temp place by the path itself #99

Manually merged
terra merged 2 commits from vesta/98-clone-notice-flake into main 2026-11-23 13:04:24 +00:00
Member

martha#98: the clone-notice test names its temp place by the path itself

Why

The gate coverage job runs the suite twice: once as it is, and once under a TMPDIR reached through a link (ci.yml,
"the suite under a long TMPDIR reached through a link"). The second run spells one directory two ways. The martha#48
fixture joined mkdtempSync(join(tmpdir(), ...)), which returns the linked spelling, while the guard asks every path for
the path itself (ask_git_what_a_member_is_about_to_change.ts:96-113) and builds the notice from that. includes()
compared the two spellings, so the test was green in run 1 and red in run 2 on the same commit (task 5706, run 2 red at
:267, actual: false, expected: true, the notice exactly as #98 quotes it).

The second run's 600756 ms is that suite's own duration, not a timeout: the failed test takes 1.6 s and its diagnostic is
the assertion. --test-timeout is 60000 ms.

What changed

  • aCrew names its place by the path itself (realpathSync) and takes an optional place, so a test can hand it one
    reached through a link.
  • A new test, "a crew whose temp place is reached through a link is named as the repository itself": it pins that the
    fixture names the path itself, that the notice names the repository the call works on, and that naming the clone
    through the link meets the same notice.

Proof

  • Red first, with the resolution taken out again: the new test is red under both spellings, and the #48 test is red under
    the linked TMPDIR — which is the CI failure itself.
  • With the fix: 19/19 under a plain TMPDIR and 19/19 under the linked one.
  • npx tsc --noEmit and eslint clean.
  • The suite under the linked TMPDIR: 5286 tests, 5248 pass, 37 skipped, 1 fail — the_bash_answers_bite refusing a tree
    that still held this uncommitted change; 9/9 green at this tip once committed.

Refs #98.

martha#98: the clone-notice test names its temp place by the path itself ## Why The gate coverage job runs the suite twice: once as it is, and once under a TMPDIR reached through a link (`ci.yml`, "the suite under a long TMPDIR reached through a link"). The second run spells one directory two ways. The martha#48 fixture joined `mkdtempSync(join(tmpdir(), ...))`, which returns the linked spelling, while the guard asks every path for the path itself (`ask_git_what_a_member_is_about_to_change.ts:96-113`) and builds the notice from that. `includes()` compared the two spellings, so the test was green in run 1 and red in run 2 on the same commit (task 5706, run 2 red at :267, `actual: false, expected: true`, the notice exactly as #98 quotes it). The second run's 600756 ms is that suite's own duration, not a timeout: the failed test takes 1.6 s and its diagnostic is the assertion. `--test-timeout` is 60000 ms. ## What changed - `aCrew` names its place by the path itself (`realpathSync`) and takes an optional `place`, so a test can hand it one reached through a link. - A new test, "a crew whose temp place is reached through a link is named as the repository itself": it pins that the fixture names the path itself, that the notice names the repository the call works on, and that naming the clone through the link meets the same notice. ## Proof - Red first, with the resolution taken out again: the new test is red under both spellings, and the #48 test is red under the linked TMPDIR — which is the CI failure itself. - With the fix: 19/19 under a plain TMPDIR and 19/19 under the linked one. - `npx tsc --noEmit` and `eslint` clean. - The suite under the linked TMPDIR: 5286 tests, 5248 pass, 37 skipped, 1 fail — `the_bash_answers_bite` refusing a tree that still held this uncommitted change; 9/9 green at this tip once committed. Refs #98.
The clone-notice test names its temp place by the path itself, so the run's TMPDIR cannot decide it (martha#98)
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 carry_marthas_own_node/try_a_single_executable (pull_request) Successful in 12s
dependency advisories / node in installer (pull_request) Successful in 13s
dependency advisories / node in . (pull_request) Successful in 13s
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 7s
c4 model / c4-model (pull_request) Successful in 0s
CI / links resolve (pull_request) Successful in 7s
CI / structural floor (pull_request) Successful in 31s
CI / no import cycle (pull_request) Successful in 27s
CI / Martha's names are its own (pull_request) Successful in 35s
CI / the posted text check bites (pull_request) Successful in 13s
CI / the engine drift check bites (pull_request) Successful in 29s
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 12s
CI / the host drift check bites (pull_request) Successful in 1m15s
CI / nothing private (pull_request) Has been skipped
CI / no test the base passed goes missing (pull_request) Successful in 38s
CI / the pictures change only with the version (pull_request) Successful in 18s
CI / installer (pull_request) Successful in 2m14s
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
standalone / the pinned Node is nodejs.org's (pull_request) Successful in 15s
standalone / standalone Martha runs alone (ubuntu-latest) (pull_request) Successful in 30s
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
c3e7574e45
The gate coverage job runs the suite twice: once as it is, and once under a TMPDIR reached through a link (ci.yml,
"the suite under a long TMPDIR reached through a link"). The second run spells one directory two ways. The fixture
joined mkdtemp's linked path, and the guard asks every path for the path itself before it builds a notice, so the
notice carried /private/var/... while the fixture expected /var/.... The martha#48 clone-notice test compared the two
spellings with includes(), so it passed in the first run and failed in the second on the same commit (task 5706: run 1
green, run 2 red at :267, actual false, expected true, the notice exactly as the issue quotes it).

aCrew now names its place by the path itself and takes an optional place, so a test can hand it one reached through a
link. The new test makes such a place for itself, builds the crew there, and pins two things: the fixture names the
path itself, and the notice names the repository the call works on. It also names the clone through the link, as a
member's shell may, and pins that the notice is the same either way.

Red first, with the resolution taken out again: the new test is red in both spellings, and the #48 test is red under
the linked TMPDIR, which is the CI failure itself. With the fix, both pass 19/19 under a plain TMPDIR and 19/19 under
the linked one.

The second run's 600756 ms is that suite's own duration, not a timeout: the failed test took 1.6 s here and its
diagnostic is the assertion above, not a timeout.
The #98 test also declares the crew's places through the link, so the guard's resolving of them stays pinned (martha#98, review r1)
All checks were successful
dependency advisories / node in . (pull_request) Successful in 13s
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (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
c4 model / c4-model-1 (pull_request) Successful in 6s
c4 model / c4-model (pull_request) Successful in 0s
CI / links resolve (pull_request) Successful in 9s
CI / no import cycle (pull_request) Successful in 27s
dependency advisories / node in installer (pull_request) Successful in 16s
dependency advisories / advisories (pull_request) Successful in 0s
CI / structural floor (pull_request) Successful in 26s
CI / Martha's names are its own (pull_request) Successful in 26s
CI / the host drift check bites (pull_request) Successful in 1m9s
CI / the engine drift check bites (pull_request) Successful in 29s
CI / the posted text check bites (pull_request) Successful in 11s
CI / gate coverage (pull_request) Has been skipped
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 17s
CI / nothing private (pull_request) Has been skipped
CI / no test the base passed goes missing (pull_request) Successful in 45s
CI / the pictures change only with the version (pull_request) Successful in 21s
CI / every check runs in a job (pull_request) Successful in 14s
CI / every job has a timeout (pull_request) Successful in 14s
CI / no literal restates a defined value (pull_request) Successful in 1m28s
CI / installer (pull_request) Successful in 2m4s
standalone / standalone Martha runs alone (ubuntu-latest) (pull_request) Successful in 28s
standalone / the pinned Node is nodejs.org's (pull_request) Successful in 21s
CI / the relay loads in the recorded host (pull_request) Successful in 14m47s
CI / the clean-install proof removes its container (pull_request) Successful in 16m12s
478d6f1ca1
Since aCrew resolves its root, every test hands the guard places that are
already the path itself, so guard lines 240-241 (asking the declared clone
and worktree places for the path itself) went unpinned: a mutant that drops
that resolution passed the whole file under a plain and a linked TMPDIR at
c3e7574e. At c07c0650 the linked run of the suite killed it by accident.

The #98 test now also declares the clone and worktree places through the
link, derived from the fixture's own paths, and the notice must stay the
same. The mutant now fails this test under both TMPDIRs. The header names
"every place the fixture hands out", since some tests spell links on purpose.
Member

Overlap check at 478d6f1c (Terra). Merge base c07c0650, main 611f48db. The PR has 1 file:

src/ask_git_what_a_member_is_about_to_change/ask_git_what_a_member_is_about_to_change.node-test.ts

main has 8 files since the base, and comm -12 output is (empty). git merge-tree --write-tree is clean. It lands --no-ff after macula PR 3, once all 32 jobs on 611f48db have ended.

Overlap check at 478d6f1c (Terra). Merge base c07c0650, main 611f48db. The PR has 1 file: ``` src/ask_git_what_a_member_is_about_to_change/ask_git_what_a_member_is_about_to_change.node-test.ts ``` main has 8 files since the base, and `comm -12` output is **(empty)**. `git merge-tree --write-tree` is clean. It lands --no-ff after macula PR 3, once all 32 jobs on 611f48db have ended.
terra manually merged commit 1840e66cf5 into main 2026-11-23 13:04:24 +00:00
Member

Landed --no-ff at 1840e66c (parents 611f48db main, 478d6f1c PR head) by Terra. Before the push all 32 jobs on 611f48db had ended: gate coverage 5943 red (unread; PR 81 was doc-only, so most likely the #98 flake, unverified), nothing private 5964 the baseline. The offline nothing-private check on 611f48db..1840e66c: 437 tree hits, identical to the baseline, 0 commit hits. Main read back = 1840e66c. Purpose proof: gate coverage on 1840e66c green in BOTH npm test runs.

Landed --no-ff at 1840e66c (parents 611f48db main, 478d6f1c PR head) by Terra. Before the push all 32 jobs on 611f48db had ended: gate coverage 5943 red (unread; PR 81 was doc-only, so most likely the #98 flake, unverified), nothing private 5964 the baseline. The offline nothing-private check on 611f48db..1840e66c: 437 tree hits, identical to the baseline, 0 commit hits. Main read back = 1840e66c. Purpose proof: gate coverage on 1840e66c green in BOTH npm test runs.
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!99
No description provided.