Batch 2: martha#225, #227, #222, #248, #246, #220, #226 #280

Manually merged
terra merged 25 commits from terra/batch2 into main 2026-11-27 01:15:03 +00:00
Member

Batch landing (crew_land_batch) on main 5d3c4813 of martha-ai/martha#225 (PR 247, PASS r=2), #227 (PR 243, PASS r=2), #222 (PR 274, PASS r=3), #248 (PR 275, PASS r=3), #246 (PR 278, PASS r=2), #220 (PR 276, PASS r=2), #226 (PR 277, PASS r=3). Refs #225, Refs #227, Refs #222, Refs #248, Refs #246, Refs #220, Refs #226.

Batch landing (crew_land_batch) on main 5d3c4813 of martha-ai/martha#225 (PR 247, PASS r=2), #227 (PR 243, PASS r=2), #222 (PR 274, PASS r=3), #248 (PR 275, PASS r=3), #246 (PR 278, PASS r=2), #220 (PR 276, PASS r=2), #226 (PR 277, PASS r=3). Refs #225, Refs #227, Refs #222, Refs #248, Refs #246, Refs #220, Refs #226.
A recorded-host run that ended before its switch fails by name, not at a missing record (martha#227)
Some checks failed
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
CI / nothing private (pull_request) Has been skipped
dependency advisories / node in . (pull_request) Successful in 22s
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (pull_request) Successful in 15s
dependency advisories / node in installer (pull_request) Successful in 12s
dependency advisories / advisories (pull_request) Successful in 0s
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 7s
CI / structural floor (pull_request) Successful in 32s
CI / Martha's names are its own (pull_request) Successful in 31s
CI / no import cycle (pull_request) Successful in 30s
CI / the posted text check bites (pull_request) Successful in 9s
CI / the engine drift check bites (pull_request) Successful in 49s
CI / the ring reaches the owner on the live run's tmux (pull_request) Successful in 13s
CI / the host drift check bites (pull_request) Successful in 1m25s
CI / workflows are valid (pull_request) Successful in 17s
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 37s
CI / every check runs in a job (pull_request) Successful in 11s
CI / every job has a timeout (pull_request) Successful in 20s
standalone / the pinned Node is nodejs.org's (pull_request) Successful in 20s
standalone / standalone Martha runs alone (ubuntu-latest) (pull_request) Successful in 35s
CI / no literal restates a defined value (pull_request) Successful in 1m4s
CI / installer (pull_request) Successful in 3m47s
CI / the relay loads in the recorded host (pull_request) Successful in 16m7s
CI / gate coverage (pull_request) Successful in 21m28s
CI / the clean-install proof removes its container (pull_request) Has been cancelled
a0b60fef53
Run 5176's red on martha#197 read as a code red: `theRecordOf` threw
`readFileSync`'s ENOENT at model/builder.model.json, in a case that had
asserted only that the owner's settings were unchanged — which is true of a
run that did nothing. The case took 5.8 s where its neighbours in the same
file took 35 s and 38 s: `martha start` exited at once, no model request was
ever made, and the case went on to read a record no run had owed.

Three changes, all in that one file:

- `whatTheRunSaw` is handed the request count its script gives, and refuses a
  run that answered fewer — on a normal early return with the member's exit
  code, or by re-throwing the stop a wait named. A stop after every request
  is answered is still the observation the case wants: that is the host
  holding its own confirmation open.
- The case with no model in the owner's settings now asserts the host
  answered its model command, as its two neighbours already did, so its
  premise — a switch that was made — is checked before anything is read.
- `theRecordOf` says "no model record was written at <path>" instead of
  letting the read raise ENOENT, so an absence is the case's own assertion.

Proved by driving the file with a host that exits at once, on the relay
script's own command: main's file reproduces the flake exactly (ENOENT at
builder.model.json, 2.6 s), this file fails all three cases with the run's
own words — "the run ended after 0 of the 2 model requests … martha start
exited with 1. The terminal last showed: The member is not started: …".
Every child this file starts is waited for to its end, so a loaded box cannot report the file as one that left a child running (martha#225)
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
cda072ac50
The tear-down killed the child and returned: a kill is sent, not delivered, and the
run judges what a file left running only a few turns of the loop after its last hook,
so on a slower box the child could still be a live handle. One helper now registers the
exit before the signal and waits for it, and a child that has already ended is left
alone, as end_a_launch.ts leaves a child that is not running.

The red-first case spawns a child that would outlive the tear-down and asserts it has
ended when the tear-down returns: with the wait removed it fails, with it in place it
passes.
Mars's r=1 note B: the name and the comment said the child's exit was delayed, which it is
not -- any child still running when its end is asked for gives the same assertion. The
constant is the child's lifetime, and the comment says what it is for.
theCommandsSessionsOf collects each session with its leader's identity, read while the terminal still ran. The
teardown re-reads /proc/<session> at every look and ends only a session it can still place there: a leader the kernel
no longer holds (the run's own, ended), or one held with the identity the run recorded. A leader that answers with
another identity, one the kernel will not answer for, and one that was never read are all unplaceable: nothing in that
session is killed, nothing in it is called left, and the teardown names it and leaves the directory.

Four cases pin it, each given the finder, the signaller and the leader seam before anything could signal, so no case
hands a real pid to a killer. Four mutants of the guard are each killed by name, the end-to-end pty case among them.
TEAR_DOWN_DEADLINE_MS was RUN_DEADLINE_MS, the deadline a wrapped command gets before the run is called hung. But
the tear-down runs only after the command has ended, and it may give that session two graces of its own
(THE_COMMANDS_SESSION_ENDS_MS each) before what is left is killed; and a process SIGKILLed under a full suite can sit
in uninterruptible sleep until the kernel lets it go. Job 24229 consumed the whole of the old bound (30354 ms) where
the same case takes 277 ms on a quiet box.

The wait is now twice the command's deadline, and the case carries a timeout above that wait, so a process that
outlives it fails by name instead of being cancelled by the runner. A failed check now names the process's kernel
state and prints what the run said, so the next instance says which of those it was. With the tear-down's kill
dropped, the case reds by name at 60278 ms — and the hard-killed-loop case beside it too.
The loop starts as `setsid … &`, and the shell writes its pid as soon as the fork returns — before the child has
called setsid. The case then killed the run's group at once and asserted the loop had survived, so on a loaded box the
kill could take a loop that had not left yet (red as "the loop went with the killed run", which is the check saying it
proved nothing). It now waits, bounded, until the loop's process group is no longer the run's, and fails by name if it
never leaves.

The tail after the next run's sweep read the loop once after a fixed wait; it now waits bounded, the shape the
neighbour took in martha#222. With the detach dropped the case reds by name at the wait (5248 ms); with the sweep's
kill dropped it reds by name at the tail (30474 ms).
The self-test's stand-in podman hands the whole command line to the member stand-in with `exec member "$*"`, so the end
line member_script writes after `martha start` is never run there. The stand-in says it itself on every ending it
models but one, and the folder-question path was that one: a case standing for a member that ends there was the only
member whose end its terminal never said, so no reader of the terminal could see it. It says it now, as the command's
own line does, and no case's expectation moves.

With the end read off the terminal, a run that is waiting for the owner's turn stops waiting when the member is gone and
names what happened — a member that ended at the folder question — instead of spending both windows on a turn a member
that is gone will never take and calling it "typed twice".

A case that wants a line the run never said now prints the run's own FAIL lines, or says it said none, so a reader of a
red has what the run decided and can tell a real fault from a case that should have held.

Proved under a 3 s stall: every case holds with this, and the folder-question case reds with "typed twice" with the
detection blinded to `return 1`, which is what makes the green the guard's rather than the harness's.
asked_for now says what the run said where the line a case wanted is missing, which is what a reader of a red needs. But
three checks are not assertions: two ask that a line be ABSENT, on the claude-code calls file, where absence is the
pass, and one only branches on the line. Through those, a green run printed "the run said: FAIL …" and "the run said no
FAIL line at all" — the noise that sent readers wrong the day the first round was written.

Those three call holds_line, a silent grep. Everything that is an assertion keeps asked_for and its own failure line:
46 sites in this file and 33 in the live run's. A self-test line pins that a check whose verdict is an absent line
prints nothing.

Proved: the whole self-test under a 3 s stall holds, and its log carries no "the run said" line at all.
THE_CASES_TIMEOUT_MS is what martha#222 gave the loop case: above the run's deadline, the tear-down behind it, and one
more deadline, so a case that would hang fails by its own name inside the job rather than as a bare timeout with no case.
The hard-killed case makes the same waits — the run's, its tear-down's, then the next run's — so it takes the same room.
Land martha-ai/martha#226 (PASS r=3)
All checks were successful
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (container) (push) Has been skipped
dependency advisories / node in installer (container) (push) Has been skipped
dependency advisories / node in . (container) (push) Has been skipped
c4 model / c4-model-1 (push) Successful in 3s
c4 model / c4-model (push) Successful in 0s
CI / links resolve, workflows are valid (push) Successful in 5s
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (push) Successful in 16s
dependency advisories / node in . (push) Successful in 16s
dependency advisories / node in installer (push) Successful in 16s
dependency advisories / advisories (push) Successful in 0s
heavy / installer (push) Successful in 2m37s
standalone / standalone Martha runs alone (ubuntu-latest) (push) Successful in 36s
suite / the ring reaches the owner on the live run's tmux (push) Successful in 15s
CI / checks (push) Successful in 4m7s
heavy / the relay loads in the recorded host (push) Successful in 15m47s
suite / gate coverage (push) Successful in 18m11s
heavy / the clean-install proof removes its container (push) Successful in 20m2s
61ec8da029
Collaborator

CI coordinator: round r=1: dispatched ci.yml on 61ec8da029, run 5762 (base 5d3c4813e3).

CI coordinator: round r=1: dispatched ci.yml on 61ec8da029482fa3325cb45c760de51d04a4ce23, run 5762 (base 5d3c4813e35df599b1953164077a91fa24c94d0c).
Collaborator

CI coordinator: round r=1: dispatched suite.yml on 61ec8da029, run 5763 (base 5d3c4813e3).

CI coordinator: round r=1: dispatched suite.yml on 61ec8da029482fa3325cb45c760de51d04a4ce23, run 5763 (base 5d3c4813e35df599b1953164077a91fa24c94d0c).
Collaborator

CI coordinator: round r=1: dispatched heavy.yml on 61ec8da029, run 5764 (base 5d3c4813e3).

CI coordinator: round r=1: dispatched heavy.yml on 61ec8da029482fa3325cb45c760de51d04a4ce23, run 5764 (base 5d3c4813e35df599b1953164077a91fa24c94d0c).
Collaborator

CI coordinator: round r=1: dispatched c4-model.yml on 61ec8da029, run 5765 (base 5d3c4813e3).

CI coordinator: round r=1: dispatched c4-model.yml on 61ec8da029482fa3325cb45c760de51d04a4ce23, run 5765 (base 5d3c4813e35df599b1953164077a91fa24c94d0c).
Collaborator

CI coordinator: round r=1: dispatched standalone.yml on 61ec8da029, run 5766 (base 5d3c4813e3).

CI coordinator: round r=1: dispatched standalone.yml on 61ec8da029482fa3325cb45c760de51d04a4ce23, run 5766 (base 5d3c4813e35df599b1953164077a91fa24c94d0c).
terra manually merged commit 61ec8da029 into main 2026-11-27 01:15:03 +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!280
No description provided.