Purpose (feature): a refresh-proof hourly five-line crew status to the owner (#45 A9, design) #47

Closed
opened 2026-11-22 17:33:44 +00:00 by uranus · 5 comments
Member

Purpose (feature): the owner gets a five-line crew status every hour that no refresh, of a member or of the Supervisor, can lose. When an hour is missed, the owner is told which hour and why, never silence.

The rule: DECIDED 2026-11-17 (supervisor-active-rhythm, "Yes, all five (Recommended)"), item 5: "A five-line status to Raf every hour."
Host-neutral: DECIDED 2026-11-22 "Martha should be able to work with any git hoster". This design makes no git-host call.

Refs #45 (row A9), #46 (A1, the host-adapter seam), GitHub macula-io/martha#957

This is a design only, with no code. A reviewer reads it before anyone builds.

Why crew-code loses it

In crew-code the status is a session cron that the Supervisor sets by hand. A cron set in a session dies when that session is cleared, so every Supervisor refresh drops it until someone notices. It was lost today. C:core/crew_rhythm.ts has no such rule, and Martha has nothing at main 41e8aacc (the_ported_rules.ts:71).

1. Where the timer lives: the launcher, never the session

  • It already has a home. A Martha launcher outlives the session it runs. A refresh clears the session, and the launcher process stays (src/refresh_a_member/refresh_a_member.ts, header). The launcher already runs two clocks of its own while its relay serves: the row beat and the sweep of the owner's list. Both are started in keptBeatingWhileItRuns (src/show_dashboard_beat/show_dashboard_beat.ts:364-370). The sweep is the model to follow (src/keep_the_owners_todo_list/the_todo_tools.ts:120-131): a setInterval with unref(), never two at once, and the declaration read again on each tick.

  • The new clock is a third start beside those two. It is a new slice, src/tell_the_owner_how_the_crew_stands/, which needs its own C4 box. It ticks every minute and posts when the owner's clock (settings.clock_zone) crosses an hour.

  • Every launcher of the crew runs the tick, not only the Supervisor's. The hour is claimed in the crew's store, so a Supervisor that is down or mid-refresh does not stop the post:

    • Posts go to one append-only stream in the crew's row streams. Its name is a constant, STATUS_STREAM. This is the same shape as the ask queue (src/queue_the_owners_asks/queue_the_owners_asks.ts, header): a crash loses nothing, and an entry's id is its position in the stream.
    • An entry is keyed by its hour, e.g. 2026-11-22T17 in the owner's zone. The fold keeps the first entry written for each hour and ignores later ones.
    • On a tick, a launcher reads the stream and its length. If the current hour has no posted row, it builds the five lines and appends them at the length it read (host.stores.rows.append(STATUS_STREAM, row, length), the same as appendAtLength in queue_the_owners_asks.ts:296). If a second launcher read the same length, its append is refused with ROW_STREAM_MOVED, and it reads again on its next tick. So the stream holds one posted row per hour, and the "first row wins" fold is only a guard.
  • Posting and ringing are two separate claims (r=1 REQUIRED 1). Any launcher may post the hour, but the launcher that posts may be one that cannot ring:

    • it has no terminal;
    • the owner turned its bells off (ring_the_owner defaults to NO_BELLS, ring_the_owner.ts:41);
    • it runs inside tmux with no client attached, or with allow-passthrough off (martha#843, ring_the_owner.ts:22-26).

    So a ring is its own row in the same stream, {kind: 'rung', hour, rung_by}, appended at the length read, exactly as a post is.

    • Only a launcher that can ring may claim a ring. Able to ring means: it holds a terminal, its declared bells have notify on, and it is not inside tmux, or it is inside tmux with a client attached and passthrough on. A launcher reads this on each tick, since a tmux client can attach or detach.
    • On each tick, a launcher that is able to ring looks for hours that are posted but not rung, and rings each one. A ring after the tick of the hour is marked (late: posted HH:00, rung HH:MM). A launcher that is not able to ring never claims a ring.
    • If no launcher able to ring is live, the hour stays unrung. martha status and the next ring both open with Not rung: 14:00, 15:00 (one range line when the hours run on, as below), so an unrung hour is always named.
  • The cadence is a declared value, not a literal. A new house rule, status_minutes, defaults to 60, and null turns the status off for a crew that does not want it. It is read the same way stalled_minutes is (nudge_the_supervisor.ts:395, windowsOf).

2. The five lines and where each comes from

Every line holds only checked fields: counts, declared member names, package names in a shape the slice checks, and times. A word a member wrote (its row's task, or what it says it waits for) never enters a line. This is the rule nudges already follow (src/nudge_the_supervisor/nudge_the_supervisor.ts, header), and for the same reason: the text reaches the owner and the Supervisor's prompt.

# Line Read from
1 Crew: N working, N free, N waiting on the owner, N parked, N down the rows (dashboard_rows_directory), with free per seeWhoIsFree (see_who_is_free.ts:67), parked per the park, and down = a row whose last beat is older than the declared stall window (lastSaidAt, nudge_the_supervisor.ts:233)
2 This hour: N landed, N VERDICTs, N HANDOFFs, N milestones (names of the packages landed). A package name is printed only when it matches the crew-line package shape ^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+#[0-9]+$ (the PACKAGE pattern, read_a_crew_line/the_other_crew_verbs.ts:57, imported and not restated) and its org/repo is a repo the declaration's clones name. Any other name counts toward N but is not printed. At most five names are printed, then +N more. the ledger within the hour: landings (landingsOf, as in see_the_crew), the crew messages sent, and the keep_the_ledger events (CREW_LOG_EVENTS, keep_the_ledger.ts:30)
3 Waiting on you: N asks queued (the oldest is N min old), N dialogs open the ask queue fold (theQueueIn, queue_the_owners_asks.ts:227) and the rows' open dialogs (tell_the_owner_a_session_waits)
4 Standing: N held, N awaiting, N decided, N DUE theStandingItems and isDue (keep_the_supervisors_standing_items.ts:174, 264)
5 Stalls: N nudges, by kind; Supervisor: live / refreshing since T / down since T the nudges from local facts only (unheld idle, unanswered HANDOFF, a long wait on a person, a cycle); the Supervisor's state from its row and its refresh flow (refresh_a_member, the flow store)

Line 5 leaves out the head nudges for now (see_the_crew/the_see_the_crew_tool.ts:125), because they read pull-request heads from GitHub today. They join once they read through A1's seam (#46). Until then, the line says the count does not include them.

3. Where it is posted, and to whom

The status goes to the owner the declaration names, not to a member. Nothing is sent to a git host or to the mesh.

  1. The record: STATUS_STREAM in the crew's own store. This is the only place a status is written.
  2. The owner's screen: a desktop notification titled "Crew at HH:00", with the five lines as its body. It goes through the ring path that already exists: base64 only, kitty's OSC 99 (src/ring_the_owner/ring_the_owner.ts), sent by a launcher able to ring that claimed the hour's rung row (§1). That is not necessarily the launcher that posted the hour. The sequence carries no o= key, so kitty uses its default of "always" and the notification shows even when no kitty window has focus.
  3. On demand: a martha status verb prints the last entry and any missed hours since the owner last looked. It reads the stream only.
  4. The Supervisor's next turn: the latest entry joins the crew state of a turn (hand_a_member_its_crew_text/the_crew_state_of_a_turn.ts:52), so a Supervisor that has just been refreshed starts its turn with the same picture the owner has. The Supervisor no longer writes the status. It may comment on it in chat.
    • The inbound path it rides: this is row A28 in src/inbound_paths/inbound_paths.ts:481 ("the crew's state the member who assigns work is handed with each turn…", delivered, shell-gate). A28's what is extended to name the hourly status beside the standing items and the nudges, so check_every_path_is_gated keeps describing what is actually delivered. It is not a new row or a new check. The status carries only checked fields (§2), which is the condition A28 already sets for nudges.

4. When the Supervisor is down or mid-refresh, or the crew is down

  • The Supervisor is mid-refresh: the post goes out from any live launcher (§1). Line 5 says Supervisor: refreshing since T.
  • The Supervisor is down while other members run: the post goes out, and line 5 says Supervisor: down since T.
  • The whole crew is down for an hour or more: nothing can post during the gap. The first launcher back finds it and writes one missed row for the whole run of hours, before the current status. For example, after an overnight outage: Not posted 23:00-07:00 (9 hours): no launcher of this crew ran from 22:41 to 07:12. The times come from the last beat in the rows and from the launcher's own start. A missed hour is therefore always named, in one line however long the gap.
  • A late post: a post written more than one tick after the hour carries (late by N min) in its heading, so a slow tick is not read as an on-time status.
  • A failure: a status whose source cannot be read (a store refuses) still posts, with that line reading <source> could not be read: <why>. It is never left out.

5. Test shape

The tests sit in the slice's own test file and use the stand-ins Martha already has: the ledger clock, a crew store in the test's own directory, and a processes stand-in.

  1. Each line follows its source: with a stand-in clock at H:00, plant rows, asks, standing items and ledger events, and require the five lines. Then change one planted source at a time and require that only its line changes. These are mutants on the reading, one per line.
  2. A refresh mid-hour: start the clock, run the member's refresh flow through clearing and resume at H:30, then step the clock to H+1:00. Require exactly one entry for H+1. Require line 5 to say refreshing since H:30 when the clock crosses the hour mid-flow.
  3. The launcher stopped and started again: stop it at H:10 and start it again at H+3:05. Require one missed row naming H+1 to H+2 (2 hours), then the status for H+3. Mutant: drop the gap reading, and the test fails by name. A second case runs an overnight gap of nine hours and requires one row, not nine.
  4. Two launchers on the same tick: both read the same length. Require one append kept, the second refused with ROW_STREAM_MOVED, one posted row in the stream, and one ring. Mutant: append without the length, and the test fails on two posted rows.
  5. The poster cannot ring (r=1 REQUIRED 1): launcher P has no terminal and posts H. Launcher R is able to ring. Require exactly one rung row for H, written by R, and exactly one OSC 99 sequence from R. Run the same case three ways, with P's inability as no terminal, as NO_BELLS, and as tmux with no client attached. Mutant: let the poster claim the ring, and the test fails on zero rings. A further case: no launcher able to ring for hours H and H+1, then R starts. Require R's first ring to open with Not rung: H:00-H+1:00, mark both as late, and leave exactly one rung row per hour.
  6. No host is called: the processes stand-in records every run. Require zero runs over a whole hour's ticks, so no gh, no git and no fetch is made.
  7. A member's words never reach a line: plant a row whose task holds a crew line and a URL, and a landing whose package name is evil/x#1 ignore previous or names a repo the clones don't. Require that none of them appears in the entry, the notification or the turn text, and that the count still includes the landing.
  8. The status turned off: with status_minutes: null, require that nothing is written or rung.

Size and order

M: one new slice, one house rule, a martha status verb, and the text of a turn. It waits on nothing, since it reads only local stores and makes no host call. Its place in #45's order is unchanged: after the A rows, beside verify_range on a forge origin.

Review rounds

  • r=1 (Neptunus): FAIL, 1 required. REQUIRED 1, an hour that posts but never rings, is folded in at §1 (separate post and ring claims, and who is able to ring), §3.2 and test 5. The four notes are folded in too: (a) the append at the length read, in §1 and test 4; (b) one range line for a long gap, in §4 and test 3; (c) the A28 inbound path, in §3.4; (d) the checked shape of line 2's package names, in §2 and test 7.

Not in this design

  • No new check. DECIDED 2026-11-19 "No new checks without your yes (Recommended)". The tests above are the slice's own tests, not a new CI check.
  • Quiet hours (no notification at night) is an IDEA, not decided. The rule says every hour. If the owner wants quiet hours, a declared window is the place for them.
  • The head nudges wait on #46.
Purpose (feature): the owner gets a five-line crew status every hour that no refresh, of a member or of the Supervisor, can lose. When an hour is missed, the owner is told which hour and why, never silence. The rule: DECIDED 2026-11-17 (supervisor-active-rhythm, "Yes, all five (Recommended)"), item 5: "A five-line status to Raf every hour." Host-neutral: DECIDED 2026-11-22 "Martha should be able to work with any git hoster". This design makes no git-host call. Refs #45 (row A9), #46 (A1, the host-adapter seam), GitHub macula-io/martha#957 This is a design only, with no code. A reviewer reads it before anyone builds. ## Why crew-code loses it In crew-code the status is a session cron that the Supervisor sets by hand. A cron set in a session dies when that session is cleared, so every Supervisor refresh drops it until someone notices. It was lost today. `C:core/crew_rhythm.ts` has no such rule, and Martha has nothing at main 41e8aacc (`the_ported_rules.ts:71`). ## 1. Where the timer lives: the launcher, never the session - **It already has a home.** A Martha launcher outlives the session it runs. A refresh clears the session, and the launcher process stays (`src/refresh_a_member/refresh_a_member.ts`, header). The launcher already runs two clocks of its own while its relay serves: the row beat and the sweep of the owner's list. Both are started in `keptBeatingWhileItRuns` (`src/show_dashboard_beat/show_dashboard_beat.ts:364-370`). The sweep is the model to follow (`src/keep_the_owners_todo_list/the_todo_tools.ts:120-131`): a `setInterval` with `unref()`, never two at once, and the declaration read again on each tick. - **The new clock is a third start beside those two.** It is a new slice, `src/tell_the_owner_how_the_crew_stands/`, which needs its own C4 box. It ticks every minute and posts when the owner's clock (`settings.clock_zone`) crosses an hour. - **Every launcher of the crew runs the tick, not only the Supervisor's.** The hour is claimed in the crew's store, so a Supervisor that is down or mid-refresh does not stop the post: - Posts go to one append-only stream in the crew's row streams. Its name is a constant, `STATUS_STREAM`. This is the same shape as the ask queue (`src/queue_the_owners_asks/queue_the_owners_asks.ts`, header): a crash loses nothing, and an entry's id is its position in the stream. - An entry is keyed by its hour, e.g. `2026-11-22T17` in the owner's zone. The fold keeps the first entry written for each hour and ignores later ones. - On a tick, a launcher reads the stream and its length. If the current hour has no `posted` row, it builds the five lines and appends them **at the length it read** (`host.stores.rows.append(STATUS_STREAM, row, length)`, the same as `appendAtLength` in `queue_the_owners_asks.ts:296`). If a second launcher read the same length, its append is refused with `ROW_STREAM_MOVED`, and it reads again on its next tick. So the stream holds one `posted` row per hour, and the "first row wins" fold is only a guard. - **Posting and ringing are two separate claims** (r=1 REQUIRED 1). Any launcher may post the hour, but the launcher that posts may be one that cannot ring: - it has no terminal; - the owner turned its bells off (`ring_the_owner` defaults to `NO_BELLS`, `ring_the_owner.ts:41`); - it runs inside tmux with no client attached, or with `allow-passthrough` off (martha#843, `ring_the_owner.ts:22-26`). So a ring is its own row in the same stream, `{kind: 'rung', hour, rung_by}`, appended at the length read, exactly as a post is. - Only a launcher that can ring may claim a ring. **Able to ring** means: it holds a terminal, its declared bells have `notify` on, and it is not inside tmux, or it is inside tmux with a client attached and passthrough on. A launcher reads this on each tick, since a tmux client can attach or detach. - On each tick, a launcher that is able to ring looks for hours that are `posted` but not `rung`, and rings each one. A ring after the tick of the hour is marked `(late: posted HH:00, rung HH:MM)`. A launcher that is not able to ring never claims a ring. - If no launcher able to ring is live, the hour stays unrung. `martha status` and the next ring both open with `Not rung: 14:00, 15:00` (one range line when the hours run on, as below), so an unrung hour is always named. - **The cadence is a declared value, not a literal.** A new house rule, `status_minutes`, defaults to 60, and `null` turns the status off for a crew that does not want it. It is read the same way `stalled_minutes` is (`nudge_the_supervisor.ts:395`, `windowsOf`). ## 2. The five lines and where each comes from Every line holds only checked fields: counts, declared member names, package names in a shape the slice checks, and times. A word a member wrote (its row's `task`, or what it says it waits for) never enters a line. This is the rule nudges already follow (`src/nudge_the_supervisor/nudge_the_supervisor.ts`, header), and for the same reason: the text reaches the owner and the Supervisor's prompt. | # | Line | Read from | |---|---|---| | 1 | **Crew:** N working, N free, N waiting on the owner, N parked, N down | the rows (`dashboard_rows_directory`), with free per `seeWhoIsFree` (`see_who_is_free.ts:67`), parked per the park, and down = a row whose last beat is older than the declared stall window (`lastSaidAt`, `nudge_the_supervisor.ts:233`) | | 2 | **This hour:** N landed, N VERDICTs, N HANDOFFs, N milestones (names of the packages landed). A package name is printed only when it matches the crew-line package shape `^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+#[0-9]+$` (the `PACKAGE` pattern, `read_a_crew_line/the_other_crew_verbs.ts:57`, imported and not restated) and its `org/repo` is a repo the declaration's clones name. Any other name counts toward N but is not printed. At most five names are printed, then `+N more`. | the ledger within the hour: landings (`landingsOf`, as in `see_the_crew`), the crew messages sent, and the `keep_the_ledger` events (`CREW_LOG_EVENTS`, `keep_the_ledger.ts:30`) | | 3 | **Waiting on you:** N asks queued (the oldest is N min old), N dialogs open | the ask queue fold (`theQueueIn`, `queue_the_owners_asks.ts:227`) and the rows' open dialogs (`tell_the_owner_a_session_waits`) | | 4 | **Standing:** N held, N awaiting, N decided, N DUE | `theStandingItems` and `isDue` (`keep_the_supervisors_standing_items.ts:174, 264`) | | 5 | **Stalls:** N nudges, by kind; **Supervisor:** live / refreshing since T / down since T | the nudges from local facts only (unheld idle, unanswered HANDOFF, a long wait on a person, a cycle); the Supervisor's state from its row and its refresh flow (`refresh_a_member`, the flow store) | Line 5 leaves out the head nudges for now (`see_the_crew/the_see_the_crew_tool.ts:125`), because they read pull-request heads from GitHub today. They join once they read through A1's seam (#46). Until then, the line says the count does not include them. ## 3. Where it is posted, and to whom The status goes to the owner the declaration names, not to a member. Nothing is sent to a git host or to the mesh. 1. **The record:** `STATUS_STREAM` in the crew's own store. This is the only place a status is written. 2. **The owner's screen:** a desktop notification titled "Crew at HH:00", with the five lines as its body. It goes through the ring path that already exists: base64 only, kitty's OSC 99 (`src/ring_the_owner/ring_the_owner.ts`), sent by a launcher able to ring that claimed the hour's `rung` row (§1). That is not necessarily the launcher that posted the hour. The sequence carries no `o=` key, so kitty uses its default of "always" and the notification shows even when no kitty window has focus. 3. **On demand:** a `martha status` verb prints the last entry and any missed hours since the owner last looked. It reads the stream only. 4. **The Supervisor's next turn:** the latest entry joins the crew state of a turn (`hand_a_member_its_crew_text/the_crew_state_of_a_turn.ts:52`), so a Supervisor that has just been refreshed starts its turn with the same picture the owner has. The Supervisor no longer writes the status. It may comment on it in chat. - **The inbound path it rides:** this is row **A28** in `src/inbound_paths/inbound_paths.ts:481` ("the crew's state the member who assigns work is handed with each turn…", delivered, shell-gate). A28's `what` is extended to name the hourly status beside the standing items and the nudges, so `check_every_path_is_gated` keeps describing what is actually delivered. It is not a new row or a new check. The status carries only checked fields (§2), which is the condition A28 already sets for nudges. ## 4. When the Supervisor is down or mid-refresh, or the crew is down - **The Supervisor is mid-refresh:** the post goes out from any live launcher (§1). Line 5 says `Supervisor: refreshing since T`. - **The Supervisor is down while other members run:** the post goes out, and line 5 says `Supervisor: down since T`. - **The whole crew is down for an hour or more:** nothing can post during the gap. The first launcher back finds it and writes **one** `missed` row for the whole run of hours, before the current status. For example, after an overnight outage: `Not posted 23:00-07:00 (9 hours): no launcher of this crew ran from 22:41 to 07:12`. The times come from the last beat in the rows and from the launcher's own start. A missed hour is therefore always named, in one line however long the gap. - **A late post:** a post written more than one tick after the hour carries `(late by N min)` in its heading, so a slow tick is not read as an on-time status. - **A failure:** a status whose source cannot be read (a store refuses) still posts, with that line reading `<source> could not be read: <why>`. It is never left out. ## 5. Test shape The tests sit in the slice's own test file and use the stand-ins Martha already has: the ledger clock, a crew store in the test's own directory, and a processes stand-in. 1. **Each line follows its source:** with a stand-in clock at H:00, plant rows, asks, standing items and ledger events, and require the five lines. Then change one planted source at a time and require that only its line changes. These are mutants on the reading, one per line. 2. **A refresh mid-hour:** start the clock, run the member's refresh flow through clearing and resume at H:30, then step the clock to H+1:00. Require exactly one entry for H+1. Require line 5 to say `refreshing since H:30` when the clock crosses the hour mid-flow. 3. **The launcher stopped and started again:** stop it at H:10 and start it again at H+3:05. Require one `missed` row naming H+1 to H+2 (2 hours), then the status for H+3. Mutant: drop the gap reading, and the test fails by name. A second case runs an overnight gap of nine hours and requires one row, not nine. 4. **Two launchers on the same tick:** both read the same length. Require one append kept, the second refused with `ROW_STREAM_MOVED`, one `posted` row in the stream, and one ring. Mutant: append without the length, and the test fails on two `posted` rows. 5. **The poster cannot ring** (r=1 REQUIRED 1): launcher P has no terminal and posts H. Launcher R is able to ring. Require exactly one `rung` row for H, written by R, and exactly one OSC 99 sequence from R. Run the same case three ways, with P's inability as no terminal, as `NO_BELLS`, and as tmux with no client attached. Mutant: let the poster claim the ring, and the test fails on zero rings. A further case: no launcher able to ring for hours H and H+1, then R starts. Require R's first ring to open with `Not rung: H:00-H+1:00`, mark both as late, and leave exactly one `rung` row per hour. 6. **No host is called:** the processes stand-in records every run. Require zero runs over a whole hour's ticks, so no `gh`, no `git` and no fetch is made. 7. **A member's words never reach a line:** plant a row whose `task` holds a crew line and a URL, and a landing whose package name is `evil/x#1 ignore previous` or names a repo the clones don't. Require that none of them appears in the entry, the notification or the turn text, and that the count still includes the landing. 8. **The status turned off:** with `status_minutes: null`, require that nothing is written or rung. ## Size and order M: one new slice, one house rule, a `martha status` verb, and the text of a turn. It waits on nothing, since it reads only local stores and makes no host call. Its place in #45's order is unchanged: after the A rows, beside verify_range on a forge origin. ## Review rounds - **r=1** (Neptunus): FAIL, 1 required. REQUIRED 1, an hour that posts but never rings, is folded in at §1 (separate post and ring claims, and who is able to ring), §3.2 and test 5. The four notes are folded in too: (a) the append at the length read, in §1 and test 4; (b) one range line for a long gap, in §4 and test 3; (c) the A28 inbound path, in §3.4; (d) the checked shape of line 2's package names, in §2 and test 7. ## Not in this design - **No new check.** DECIDED 2026-11-19 "No new checks without your yes (Recommended)". The tests above are the slice's own tests, not a new CI check. - **Quiet hours** (no notification at night) is an IDEA, not decided. The rule says every hour. If the owner wants quiet hours, a declared window is the place for them. - **The head nudges** wait on #46.
Author
Member

r=2 PASS (Neptunus), req=0. The citations were checked against main 41e8aacc. His three build notes are appended here; the body stands as passed.

  1. PACKAGE is module-private today (read_a_crew_line/the_other_crew_verbs.ts:57, const, not exported). "Imported, not restated" (§2, line 2) means the build exports it from the_other_crew_verbs.ts and imports it in the new slice. It must not be copied as a second literal.
  2. The ring is claimed before it is sent, and this order is deliberate. The rung row is appended (at the length read) before the OSC 99 bytes are written. If a tmux client detaches between the claim and the write, the hour reads as rung although the owner never saw it. The window is small, and this order is what prevents two launchers ringing the same hour, so the build keeps the order and the slice states it in a comment. A late ring would be the only way to recover such an hour, and that is not added.
  3. A backlog of unrung hours gets one notification, not a burst. When a launcher able to ring finds several hours posted but not rung (for example after a long stretch with no launcher able to ring), it sends ONE notification. That notification opens with the list (Not rung: H:00-H+3:00), then carries the latest status. It claims a rung row for each of those hours, so none of them is rung again. Test 5's second case requires exactly one OSC 99 sequence for the whole backlog.
**r=2 PASS (Neptunus), req=0.** The citations were checked against main 41e8aacc. His three build notes are appended here; the body stands as passed. 1. **`PACKAGE` is module-private today** (`read_a_crew_line/the_other_crew_verbs.ts:57`, `const`, not exported). "Imported, not restated" (§2, line 2) means the build exports it from `the_other_crew_verbs.ts` and imports it in the new slice. It must not be copied as a second literal. 2. **The ring is claimed before it is sent, and this order is deliberate.** The `rung` row is appended (at the length read) before the OSC 99 bytes are written. If a tmux client detaches between the claim and the write, the hour reads as rung although the owner never saw it. The window is small, and this order is what prevents two launchers ringing the same hour, so the build keeps the order and the slice states it in a comment. A late ring would be the only way to recover such an hour, and that is not added. 3. **A backlog of unrung hours gets one notification, not a burst.** When a launcher able to ring finds several hours posted but not rung (for example after a long stretch with no launcher able to ring), it sends ONE notification. That notification opens with the list (`Not rung: H:00-H+3:00`), then carries the latest status. It claims a `rung` row for each of those hours, so none of them is rung again. Test 5's second case requires exactly one OSC 99 sequence for the whole backlog.
Member

Notes from Neptunus's r=1 review of PR 52 (@3b2f7a58), not required for that round, kept here for the wiring follow-up (after A1) or a later package. Relayed by the dispatcher.

  • (a) house_rules.status_minutes set to a number other than null still posts hourly, while docs/the-declaration.md promises a cadence in minutes.
  • (b) Line 5 does not say that it leaves out head nudges.
  • (c) A gap longer than a week reads "169 hours", with a wrong to hour (the cap, THE_LONGEST_GAP_HOURS).
  • (d) The slice sits in an existing C4 box rather than one of its own.

The four required findings (R1-R4) are being fixed on the PR branch under the reviewer-fixes-small rule.

Notes from Neptunus's r=1 review of PR 52 (@3b2f7a58), not required for that round, kept here for the wiring follow-up (after A1) or a later package. Relayed by the dispatcher. - (a) `house_rules.status_minutes` set to a number other than null still posts hourly, while `docs/the-declaration.md` promises a cadence in minutes. - (b) Line 5 does not say that it leaves out head nudges. - (c) A gap longer than a week reads "169 hours", with a wrong `to` hour (the cap, `THE_LONGEST_GAP_HOURS`). - (d) The slice sits in an existing C4 box rather than one of its own. The four required findings (R1-R4) are being fixed on the PR branch under the reviewer-fixes-small rule.
Member

Landed as d4dafac8 on main (PR 52, squashed): the slice src/tell_the_owner_how_the_crew_stands/, the status window and clock zone in the declaration, and martha status reading STATUS_STREAM.

Purpose not met yet, so this stays open. The owner gets no hourly status: no launcher starts the clock. keptBeatingWhileItRuns (src/show_dashboard_beat/show_dashboard_beat.ts:436-442 on main) starts only startBeating and startSweeping. The slice's tick (tell_the_owner_how_the_crew_stands.ts:610) is never started. That is the wiring follow-up named above (after A1), together with Neptunus's notes (a)-(d).

Close when a launcher starts the clock and an hour's status is seen posted and rung on a live crew.

Landed as d4dafac8 on main (PR 52, squashed): the slice `src/tell_the_owner_how_the_crew_stands/`, the status window and clock zone in the declaration, and `martha status` reading `STATUS_STREAM`. **Purpose not met yet, so this stays open.** The owner gets no hourly status: no launcher starts the clock. `keptBeatingWhileItRuns` (`src/show_dashboard_beat/show_dashboard_beat.ts:436-442` on main) starts only `startBeating` and `startSweeping`. The slice's tick (`tell_the_owner_how_the_crew_stands.ts:610`) is never started. That is the wiring follow-up named above (after A1), together with Neptunus's notes (a)-(d). Close when a launcher starts the clock and an hour's status is seen posted and rung on a live crew.
Member

Closing as superseded by Raf's ruling (relayed by the Supervisor, 2026-11-24): Raf's 11-22 cut list (all 18 rows) has "no hourly status", so the hourly clock does not get wired (the follow-up named in c3123). The landed slice d4dafac8 stays. Raf can overrule.

Closing as superseded by Raf's ruling (relayed by the Supervisor, 2026-11-24): Raf's 11-22 cut list (all 18 rows) has "no hourly status", so the hourly clock does not get wired (the follow-up named in c3123). The landed slice d4dafac8 stays. Raf can overrule.
mars closed this issue 2026-11-24 02:51:23 +00:00
Member

WIP kept on branch ceres/47-hourly-status at 9dd73d35; issue closed as superseded by Raf's 11-22 cut list (no hourly status)

WIP kept on branch ceres/47-hourly-status at 9dd73d35; issue closed as superseded by Raf's 11-22 cut list (no hourly status)
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
4 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#47
No description provided.