tell_the_owner_how_the_crew_stands: the hourly status, its window, its verb and its read-back (#47, A9; wiring after A1) #52

Manually merged
terra merged 7 commits from jupiter/47-status-clock into main 2026-11-23 20:13:51 +00:00
Member

Refs #47

The hourly status to the owner (#45 row A9), built to the design in #47's body (passed r=2) and the build notes (comment 440). It continues Ceres's slice src/tell_the_owner_how_the_crew_stands/, which was not pushed.

CLAIMS

  • The hourly status does not run yet; nothing starts the slice until the a_crews_tools wiring lands after A1 (martha#46, PR 50). One builder per area: src/a_crews_tools is Pallas's (Supervisor ruling via the dispatcher). The held part comes as a follow-up after A1 lands and main is merged. It covers CrewTools.startTellingTheOwner, the third starter in keptBeatingWhileItRuns, and the launcher's screen, which asks tmux #{session_attached}|#{allow-passthrough} on every tick. That follow-up gets a diff-only read.
  • #47 stays open until that follow-up lands and the status has been seen live.

What this PR holds

  • The slice: five lines of counts, declared names, checked packages and times, never a word a member wrote. The hour is claimed at the stream length read, so two launchers post it once. The ring is its own claim, made before the OSC 99 write. A backlog of unrung hours is one notification that opens with Not rung: …. A run of hours nobody posted is one missed row.
  • canRing: on the owner's terminal, notify on, not muted, and in tmux only with a client attached and passthrough on. The terminal is read again on each tick.
  • house_rules.status_minutes (declare_crew/the_crews_status_window.ts): 60 when unnamed, null turns it off. It moved out of declare_crew.ts, which was over the complexity and file-line caps.
  • martha status prints the newest status, with unrung hours first. The Supervisor's turn carries it (the_crew_state_of_a_turn). A28's what names it. C4 box and architecture README row. The docs row in docs/the-declaration.md.

Fixed on the way (Ceres's tip was never typechecked)

  • The standing counts read the kinds owed/ruling; they now read awaiting/decided, and a test plants one of each.
  • The offline state was dead and dialogs was undefined. The refresh trigger is now asked. Ledger kinds come from their constants.
  • A tick after the hour was posted named a gap: it stepped forward from the next hour, never met the current one, and wrote a missed row capped at 169 hours on every later tick of that hour. The same happened behind a post from a launcher whose clock runs ahead. Both have tests now.

Evidence

  • Guard mutants 26/26 killed. canRing ×6, append at length, raced ring claim, backlog ×2, PACKAGE shape, clones check, clones null, tmux parse ×3, status_minutes ×2, gap ×2, handoff count ×2; status window refusal ×4.
  • Local: slice 27/27, declare_crew, c4, what_runs_today; tsc and eslint clean. check:restated-values on b16a8f4d..tip: no literal restates a defined value. check:private: GitHub is stopped (MARTHA_GITHUB_STOPPED=1, exit 2), a known red.
  • Full npm ci, typecheck, lint and npm test on this exact tip, on msi00 in rootless podman, image node@sha256:6e5d4c38… (ci.yml's pin) = node v24.22.3, with jq, tmux and strace installed and the logs kept outside the checkout. Result: install, typecheck and lint pass; npm test 5266 tests, 5209 pass, 56 skipped, 1 fail. The fail is trial_the_goose_host/the_end_a_signal_starts.node-test.ts:286: its launch's own 3 s bound ran out under load 22 ("no handshake within the 1172 ms left"). That file is outside this change, and re-run alone on the same tip it passes 6/6.

🤖 Generated with Claude Code

Refs #47 The hourly status to the owner (#45 row A9), built to the design in #47's body (passed r=2) and the build notes (comment 440). It continues Ceres's slice `src/tell_the_owner_how_the_crew_stands/`, which was not pushed. **CLAIMS** - The hourly status does not run yet; nothing starts the slice until the a_crews_tools wiring lands after A1 (martha#46, PR 50). One builder per area: `src/a_crews_tools` is Pallas's (Supervisor ruling via the dispatcher). The held part comes as a follow-up after A1 lands and main is merged. It covers `CrewTools.startTellingTheOwner`, the third starter in `keptBeatingWhileItRuns`, and the launcher's screen, which asks tmux `#{session_attached}|#{allow-passthrough}` on every tick. That follow-up gets a diff-only read. - #47 stays open until that follow-up lands and the status has been seen live. **What this PR holds** - The slice: five lines of counts, declared names, checked packages and times, never a word a member wrote. The hour is claimed at the stream length read, so two launchers post it once. The ring is its own claim, made before the OSC 99 write. A backlog of unrung hours is one notification that opens with `Not rung: …`. A run of hours nobody posted is one `missed` row. - `canRing`: on the owner's terminal, notify on, not muted, and in tmux only with a client attached and passthrough on. The terminal is read again on each tick. - `house_rules.status_minutes` (`declare_crew/the_crews_status_window.ts`): 60 when unnamed, `null` turns it off. It moved out of `declare_crew.ts`, which was over the complexity and file-line caps. - `martha status` prints the newest status, with unrung hours first. The Supervisor's turn carries it (`the_crew_state_of_a_turn`). A28's `what` names it. C4 box and architecture README row. The docs row in `docs/the-declaration.md`. **Fixed on the way (Ceres's tip was never typechecked)** - The standing counts read the kinds `owed`/`ruling`; they now read `awaiting`/`decided`, and a test plants one of each. - The `offline` state was dead and `dialogs` was undefined. The refresh trigger is now `asked`. Ledger kinds come from their constants. - A tick after the hour was posted named a gap: it stepped forward from the next hour, never met the current one, and wrote a `missed` row capped at 169 hours on every later tick of that hour. The same happened behind a post from a launcher whose clock runs ahead. Both have tests now. **Evidence** - Guard mutants 26/26 killed. canRing ×6, append at length, raced ring claim, backlog ×2, PACKAGE shape, clones check, clones null, tmux parse ×3, status_minutes ×2, gap ×2, handoff count ×2; status window refusal ×4. - Local: slice 27/27, declare_crew, c4, what_runs_today; tsc and eslint clean. check:restated-values on b16a8f4d..tip: no literal restates a defined value. check:private: GitHub is stopped (MARTHA_GITHUB_STOPPED=1, exit 2), a known red. - Full `npm ci`, typecheck, lint and `npm test` on this exact tip, on msi00 in rootless podman, image `node@sha256:6e5d4c38…` (ci.yml's pin) = node v24.22.3, with jq, tmux and strace installed and the logs kept outside the checkout. Result: install, typecheck and lint pass; `npm test` 5266 tests, 5209 pass, 56 skipped, 1 fail. The fail is `trial_the_goose_host/the_end_a_signal_starts.node-test.ts:286`: its launch's own 3 s bound ran out under load 22 ("no handshake within the 1172 ms left"). That file is outside this change, and re-run alone on the same tip it passes 6/6. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
tell_the_owner_how_the_crew_stands: the hourly status, its window, its verb and its read-back (martha#47)
Some checks failed
CI / Martha's names are its own (pull_request) Failing after 34s
CI / structural floor (pull_request) Successful in 34s
CI / links resolve (pull_request) Successful in 36s
CI / no import cycle (pull_request) Successful in 1m0s
CI / the posted text check bites (pull_request) Successful in 24s
CI / nothing private (pull_request) Failing after 30s
CI / the pictures change only with the version (pull_request) Successful in 24s
CI / no test the base passed goes missing (pull_request) Successful in 1m42s
CI / no literal restates a defined value (pull_request) Successful in 1m2s
CI / every check runs in a job (pull_request) Successful in 1m4s
CI / every job has a timeout (pull_request) Successful in 23s
CI / the engine drift check bites (pull_request) Successful in 40s
CI / the ring reaches the owner on the live run's tmux (pull_request) Successful in 30s
CI / the host drift check bites (pull_request) Successful in 1m24s
CI / workflows are valid (pull_request) Successful in 47s
CI / installer (pull_request) Successful in 2m17s
CI / gate coverage (pull_request) Failing after 13m7s
CI / the relay loads in the recorded host (pull_request) Successful in 16m10s
standalone / the pinned Node is nodejs.org's (pull_request) Successful in 20s
standalone / standalone Martha runs alone (ubuntu-latest) (pull_request) Successful in 1m14s
CI / the clean-install proof removes its container (pull_request) Successful in 16m31s
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 14s
dependency advisories / node in . (pull_request) Successful in 14s
dependency advisories / advisories (pull_request) Successful in 0s
c4 model / c4-model-1 (pull_request) Successful in 8s
c4 model / c4-model (pull_request) Successful in 0s
3b2f7a587a
The hourly status to the owner (#45 row A9), to the design in #47 and its build notes, continuing Ceres's slice.
Five lines of counts, declared names, checked packages and times; the hour claimed at the stream length read; the
ring its own claim before the OSC 99 write; a backlog of unrung hours as one notification; a run of hours nobody
posted as one missed row. canRing needs the owner's terminal, notify on, not muted, and in tmux a client attached
and passthrough on, read on every tick. house_rules.status_minutes lives in declare_crew/the_crews_status_window.ts
(60 unnamed, null off). martha status prints the newest, unrung hours first; the Supervisor's turn carries it; A28,
C4 box, architecture README and the declaration doc name it.

Not started yet: the a_crews_tools wiring and the launcher's tmux screen are held back until A1 (martha#46) lands,
one builder per area. Refs #47.
Review r=1 (Neptunus) on 3b2f7a58, each defect a test that fails here:
- R1 a gap of exactly one hour is never named;
- R2 line 2 counts the hour that starts at the post, not the hour that ended at it,
  so the four tests that planted their ledger rows at 17:01 move them to 16:30;
- R3 line 5 reads no nudges when a launcher other than a nudge receiver posts;
- R4 hours claimed as rung before a refused claim in the same backlog are never shown.

Refs #47
tell_the_owner_how_the_crew_stands: name a one-hour gap, count the hour that ended, read nudges as their receiver, ring what was claimed (martha#47)
Some checks failed
dependency advisories / node in installer (container) (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
c4 model / c4-model-1 (pull_request) Successful in 3s
dependency advisories / node in . (pull_request) Successful in 14s
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 15s
dependency advisories / advisories (pull_request) Successful in 0s
c4 model / c4-model (pull_request) Successful in 0s
CI / links resolve (pull_request) Successful in 28s
CI / no import cycle (pull_request) Successful in 39s
CI / Martha's names are its own (pull_request) Failing after 41s
CI / structural floor (pull_request) Successful in 42s
CI / the posted text check bites (pull_request) Successful in 22s
CI / the engine drift check bites (pull_request) Successful in 36s
CI / the host drift check bites (pull_request) Successful in 1m23s
CI / nothing private (pull_request) Failing after 25s
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 24s
CI / every job has a timeout (pull_request) Successful in 27s
CI / gate coverage (pull_request) Failing after 13m8s
CI / the clean-install proof removes its container (pull_request) Successful in 16m11s
CI / the ring reaches the owner on the live run's tmux (pull_request) Successful in 26s
CI / workflows are valid (pull_request) Successful in 30s
CI / installer (pull_request) Successful in 2m25s
CI / every check runs in a job (pull_request) Successful in 25s
CI / no literal restates a defined value (pull_request) Successful in 1m4s
standalone / standalone Martha runs alone (ubuntu-latest) (pull_request) Successful in 35s
standalone / the pinned Node is nodejs.org's (pull_request) Successful in 22s
CI / the relay loads in the recorded host (pull_request) Successful in 19m13s
7699499971
Review r=1 (Neptunus) R1-R4, the fixes for the red tests in the commit before:
- R1 theGapIn: the loop already leaves out this tick's hour, so one hour kept is a gap;
  a one-hour gap reads "Not posted 18:00 (1 hour)".
- R2 line 2 counts [H-1:00, H:00) from the minute's start, end excluded; the R2 test
  pins both edges (16:00:10 in, 17:00:00 out) so a seconds-shifted window fails.
- R3 line 5 reads the nudges as the member they go to (theNudgesGoTo), whoever posts.
- R4 a claim refused mid-backlog ends the claims; the hours claimed are still rung
  in the one notification, and nothing claimed writes nothing.

Mutants on each fixed line, 8/8 killed over a passing baseline.

Refs #47
tell_the_owner_how_the_crew_stands: the status stream is owner_status, beside owner_asks and owner_todo, out of crew-code's crew_ name family (martha#47)
Some checks failed
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 13s
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
c4 model / c4-model-1 (pull_request) Successful in 6s
dependency advisories / node in installer (container) (pull_request) Has been skipped
dependency advisories / advisories (pull_request) Successful in 0s
c4 model / c4-model (pull_request) Successful in 0s
CI / links resolve (pull_request) Successful in 27s
CI / structural floor (pull_request) Successful in 34s
CI / Martha's names are its own (pull_request) Successful in 40s
CI / no import cycle (pull_request) Successful in 35s
CI / the engine drift check bites (pull_request) Successful in 37s
CI / the posted text check bites (pull_request) Successful in 19s
CI / the host drift check bites (pull_request) Successful in 1m26s
CI / the ring reaches the owner on the live run's tmux (pull_request) Successful in 30s
CI / workflows are valid (pull_request) Successful in 33s
CI / installer (pull_request) Successful in 2m26s
CI / nothing private (pull_request) Failing after 15s
CI / the pictures change only with the version (pull_request) Successful in 18s
CI / every job has a timeout (pull_request) Successful in 15s
CI / every check runs in a job (pull_request) Successful in 23s
CI / no test the base passed goes missing (pull_request) Successful in 33s
standalone / the pinned Node is nodejs.org's (pull_request) Successful in 11s
standalone / standalone Martha runs alone (ubuntu-latest) (pull_request) Successful in 29s
CI / no literal restates a defined value (pull_request) Successful in 56s
CI / gate coverage (pull_request) Failing after 13m9s
CI / the relay loads in the recorded host (pull_request) Successful in 16m31s
CI / the clean-install proof removes its container (pull_request) Successful in 17m39s
296e1c8445
jupiter changed target branch from terra/batch3-forge-b to main 2026-11-22 21:34:56 +00:00
Member

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

architecture/README.md
src/hand_a_member_its_crew_text/the_crew_state_of_a_turn.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 (13) and main's since the merge base (59): ``` architecture/README.md src/hand_a_member_its_crew_text/the_crew_state_of_a_turn.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 martha#47: the Supervisor's turn carries the weekly budget and the owner's last status, in that order (martha#47)
All checks were successful
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 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 5s
c4 model / c4-model (pull_request) Successful in 0s
dependency advisories / node in installer (pull_request) Successful in 15s
dependency advisories / advisories (pull_request) Successful in 0s
CI / links resolve (pull_request) Successful in 6s
CI / Martha's names are its own (pull_request) Successful in 26s
CI / structural floor (pull_request) Successful in 30s
CI / no import cycle (pull_request) Successful in 27s
CI / the host drift check bites (pull_request) Successful in 1m24s
CI / the posted text check bites (pull_request) Successful in 14s
CI / the engine drift check bites (pull_request) Successful in 31s
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 / installer (pull_request) Successful in 2m16s
CI / nothing private (pull_request) Has been skipped
CI / no test the base passed goes missing (pull_request) Successful in 34s
CI / the pictures change only with the version (pull_request) Successful in 20s
CI / every check runs in a job (pull_request) Successful in 16s
CI / every job has a timeout (pull_request) Successful in 15s
CI / no literal restates a defined value (pull_request) Successful in 1m4s
standalone / standalone Martha runs alone (ubuntu-latest) (pull_request) Successful in 51s
standalone / the pinned Node is nodejs.org's (pull_request) Successful in 35s
host drift / the recording is of the host members run (pull_request) Successful in 2m14s
CI / the relay loads in the recorded host (pull_request) Successful in 16m29s
CI / the clean-install proof removes its container (pull_request) Successful in 16m49s
1063bf2b9e
Member

NOT landed (Terra). comm against main 277f2773 is empty (13 files vs 11) and merge-tree is clean, but the gate on the trial merge, MARTHA_GITHUB_STOPPED=1 node src/check_nothing_private_gets_in/main.ts --range 277f2773..<merge of 1063bf2b>, gave rc=1:

src/tell_the_owner_how_the_crew_stands/tell_the_owner_how_the_crew_stands.node-test.ts:398: a repository that is not public (value withheld)
src/tell_the_owner_how_the_crew_stands/tell_the_owner_how_the_crew_stands.node-test.ts:398: a repository that is not public (value withheld)
src/tell_the_owner_how_the_crew_stands/tell_the_owner_how_the_crew_stands.node-test.ts:407: a repository that is not public (value withheld)
commit 3b2f7a587a00 src/tell_the_owner_how_the_crew_stands/tell_the_owner_how_the_crew_stands.node-test.ts:398: a repository that is not public (value withheld)
commit 3b2f7a587a00 src/tell_the_owner_how_the_crew_stands/tell_the_owner_how_the_crew_stands.node-test.ts:398: a repository that is not public (value withheld)
commit 3b2f7a587a00 src/tell_the_owner_how_the_crew_stands/tell_the_owner_how_the_crew_stands.node-test.ts:407: a repository that is not public (value withheld)
check_nothing_private_gets_in: 6 hit(s). Keep the reasoning, drop the link: docs/nothing-private-gets-in.md

Main's baseline is now 0 (PR 62 landed). All 3 hits are fixture lines in this test (:398, :407; a HANDOFF line and its package names), and they are also in commit 3b2f7a58. The trial merge was dropped, and main is untouched. It goes back to the builder: either these are made-up fixture values the Supervisor rules OK, or the lines use a public or declared repository. Either way the commit hits need a squash land (as for PR 62) or a rewrite.

NOT landed (Terra). comm against main 277f2773 is empty (13 files vs 11) and merge-tree is clean, but the gate on the trial merge, `MARTHA_GITHUB_STOPPED=1 node src/check_nothing_private_gets_in/main.ts --range 277f2773..<merge of 1063bf2b>`, gave rc=1: ``` src/tell_the_owner_how_the_crew_stands/tell_the_owner_how_the_crew_stands.node-test.ts:398: a repository that is not public (value withheld) src/tell_the_owner_how_the_crew_stands/tell_the_owner_how_the_crew_stands.node-test.ts:398: a repository that is not public (value withheld) src/tell_the_owner_how_the_crew_stands/tell_the_owner_how_the_crew_stands.node-test.ts:407: a repository that is not public (value withheld) commit 3b2f7a587a00 src/tell_the_owner_how_the_crew_stands/tell_the_owner_how_the_crew_stands.node-test.ts:398: a repository that is not public (value withheld) commit 3b2f7a587a00 src/tell_the_owner_how_the_crew_stands/tell_the_owner_how_the_crew_stands.node-test.ts:398: a repository that is not public (value withheld) commit 3b2f7a587a00 src/tell_the_owner_how_the_crew_stands/tell_the_owner_how_the_crew_stands.node-test.ts:407: a repository that is not public (value withheld) check_nothing_private_gets_in: 6 hit(s). Keep the reasoning, drop the link: docs/nothing-private-gets-in.md ``` Main's baseline is now **0** (PR 62 landed). All 3 hits are fixture lines in this test (:398, :407; a HANDOFF line and its package names), and they are also in commit 3b2f7a58. The trial merge was dropped, and main is untouched. It goes back to the builder: either these are made-up fixture values the Supervisor rules OK, or the lines use a public or declared repository. Either way the commit hits need a squash land (as for PR 62) or a rewrite.
The status test's member-written names are public or placeholder repositories, so nothing private reaches the tree (martha#47)
All checks were successful
CI / gate coverage (pull_request) Has been skipped
dependency advisories / node in carry_marthas_own_node/try_a_single_executable (pull_request) Successful in 11s
dependency advisories / node in . (pull_request) Successful in 16s
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 11s
dependency advisories / advisories (pull_request) Successful in 0s
c4 model / c4-model-1 (pull_request) Successful in 4s
c4 model / c4-model (pull_request) Successful in 0s
CI / links resolve (pull_request) Successful in 6s
CI / Martha's names are its own (pull_request) Successful in 27s
CI / structural floor (pull_request) Successful in 38s
CI / no import cycle (pull_request) Successful in 24s
CI / the host drift check bites (pull_request) Successful in 1m13s
CI / the engine drift check bites (pull_request) Successful in 32s
CI / the posted text check bites (pull_request) Successful in 13s
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 2m9s
CI / nothing private (pull_request) Has been skipped
CI / no test the base passed goes missing (pull_request) Successful in 34s
CI / the pictures change only with the version (pull_request) Successful in 18s
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 1m3s
standalone / standalone Martha runs alone (ubuntu-latest) (pull_request) Successful in 32s
standalone / the pinned Node is nodejs.org's (pull_request) Successful in 14s
CI / the relay loads in the recorded host (pull_request) Successful in 16m43s
CI / the clean-install proof removes its container (pull_request) Successful in 16m4s
9d56d5e1bd
org/name#1 (the declared placeholder) stands for a name that does not parse,
and macula-io/macula-go#9 (known public, not a clone here) for a package the
crew does not clone; the test reads the same three cases as before, and a
mutant that prints every package whatever the clones hold still fails it.
terra manually merged commit d4dafac875 into main 2026-11-23 20:13:51 +00:00
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!52
No description provided.