A local run of the tests gets a pid namespace of its own, mapped to the member, with a pid one that reaps (martha#207) #214

Manually merged
terra merged 2 commits from vesta/207-reaping-pid-one into main 2026-11-26 01:03:21 +00:00
Member

Purpose (defect): a member who re-proves martha's suite inside the required pid namespace gets only red they caused, never red that is not theirs.

Refs #207

Every local run of the suite on the crew's host runs in a pid namespace, per the Supervisor's ruling of 2026-11-25. The shape every member hand-wrote so far was unshare --user --map-root-user --pid --fork --mount-proc — mapped to root, with no pid one of its own — and it is red for reasons that have nothing to do with the change being proved.

What changed:

  • prove_the_relay_loads/run_the_tests_in_a_namespace_of_their_own.sh — one local run, in a pid namespace of its own, mapped to the member who started it (--map-user/--map-group, never --map-root-user), with a pid one that reaps: catatonit where the machine has one, a_pid_one_that_reaps.sh beside it where it does not. A machine that will not make the namespace starts nothing at all; there is no plain-run fallback.
  • prove_the_relay_loads/a_pid_one_that_reaps.sh — that pid one in a few lines, taking the same -- catatonit takes.
  • CONTRIBUTING.md — the two commands a local run goes through, and why each half of the shape is there.

The run is what holds the shape: a run that goes around the wrapper is a review finding, not a gate of its own.

Why both halves, measured on unmodified main 37fb64bb in the old shape and in this one:

inside unshare … --pid --fork --mount-proc old shape this shape
the 13 files holding the named reds (#207 comments 5198, 5214, 5227) 17 red (process, reap and mode families) 397 pass, 0 fail, 1 skipped
the installer stage (run_the_installer_job) 12 red 0 fail

--map-user/--map-group is what the mode family needed: as namespace root the run is uid 0 inside, so a case that makes a folder 0o500 or a store 0o000 passes without the refusal ever being made. The reaping pid one is what the installer's tear-down needed: a member that ended stayed Z and read as still there. No test was changed for either family.

CI runs npm test plainly, as before; nothing here changes what a CI job does.

## Purpose (defect): a member who re-proves martha's suite inside the required pid namespace gets only red they caused, never red that is not theirs. Refs #207 Every local run of the suite on the crew's host runs in a pid namespace, per the Supervisor's ruling of 2026-11-25. The shape every member hand-wrote so far was `unshare --user --map-root-user --pid --fork --mount-proc` — mapped to root, with no pid one of its own — and it is red for reasons that have nothing to do with the change being proved. What changed: - **`prove_the_relay_loads/run_the_tests_in_a_namespace_of_their_own.sh`** — one local run, in a pid namespace of its own, mapped to the member who started it (`--map-user`/`--map-group`, never `--map-root-user`), with a pid one that reaps: catatonit where the machine has one, `a_pid_one_that_reaps.sh` beside it where it does not. A machine that will not make the namespace starts nothing at all; there is no plain-run fallback. - **`prove_the_relay_loads/a_pid_one_that_reaps.sh`** — that pid one in a few lines, taking the same `--` catatonit takes. - **`CONTRIBUTING.md`** — the two commands a local run goes through, and why each half of the shape is there. The run is what holds the shape: a run that goes around the wrapper is a review finding, not a gate of its own. Why both halves, measured on unmodified main 37fb64bb in the old shape and in this one: | inside `unshare … --pid --fork --mount-proc` | old shape | this shape | |---|---|---| | the 13 files holding the named reds (#207 comments 5198, 5214, 5227) | 17 red (process, reap and mode families) | 397 pass, 0 fail, 1 skipped | | the installer stage (`run_the_installer_job`) | 12 red | 0 fail | `--map-user`/`--map-group` is what the mode family needed: as namespace root the run is uid 0 inside, so a case that makes a folder `0o500` or a store `0o000` passes without the refusal ever being made. The reaping pid one is what the installer's tear-down needed: a member that ended stayed `Z` and read as still there. No test was changed for either family. CI runs `npm test` plainly, as before; nothing here changes what a CI job does.
a local run of the tests gets a pid namespace of its own, mapped to the member, with a pid one that reaps (martha#207)
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
96a09d0ddb
The namespace every local proof ran in was mapped to root and had no pid one of its own. Under root the suite's
mode-based cases pass without the refusal ever being made, and with no reaping pid one an ended member stays a
zombie that a tear-down reads as still there. Both were measured red on main inside that namespace, and the same
cases are green with the shape this adds: mapped to the member who started the run, and catatonit (or a few lines
beside it where the machine has none) as pid one. There is no plain run behind it.

The run is now a script of the repository's own, so no member hand-writes the shape again.
the shape is held by the run the repository starts, not by a new check (martha#207)
All checks were successful
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (pull_request) Successful in 12s
dependency advisories / node in . (pull_request) Successful in 13s
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 3s
c4 model / c4-model (pull_request) Successful in 0s
dependency advisories / node in installer (pull_request) Successful in 12s
dependency advisories / advisories (pull_request) Successful in 0s
CI / links resolve (pull_request) Successful in 6s
CI / structural floor (pull_request) Successful in 27s
CI / Martha's names are its own (pull_request) Successful in 30s
CI / no import cycle (pull_request) Successful in 27s
CI / the host drift check bites (pull_request) Successful in 1m3s
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 14s
CI / workflows are valid (pull_request) Successful in 13s
CI / installer (pull_request) Successful in 2m15s
CI / nothing private (pull_request) Has been skipped
CI / no test the base passed goes missing (pull_request) Successful in 35s
CI / the pictures change only with the version (pull_request) Successful in 18s
CI / no literal restates a defined value (pull_request) Successful in 59s
CI / every check runs in a job (pull_request) Successful in 14s
CI / every job has a timeout (pull_request) Successful in 15s
standalone / standalone Martha runs alone (ubuntu-latest) (pull_request) Successful in 31s
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 15m34s
CI / the clean-install proof removes its container (pull_request) Successful in 19m35s
CI / gate coverage (pull_request) Successful in 16m47s
2f49c805db
A check pinning the shape and a variable making CI require the namespace are both new checks, and a new check
needs the owner's yes. So they come out: what stays is the script every local run goes through, the few lines
beside it for a machine without catatonit, and the paragraph in CONTRIBUTING that says what each half of the
shape is for. A run that goes around the wrapper is a review finding, not a gate.
terra manually merged commit 6ae2f3e3e7 into main 2026-11-26 01:03:21 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
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!214
No description provided.