A host request that beats the launcher's first line is waited out, not failed (martha#246) #278

Manually merged
terra merged 0 commits from pluto/246-first-request-before-journal-line into main 2026-11-27 01:15:05 +00:00
Member

Refs martha-ai/martha#246

Purpose (bug): a recorded-host case reds only for a real fault and never because the box was busy, so a red on main means a broken main; and when it does red, the red names which side was silent.

What changes

  • journalNeverWritten now takes the run's clock and the run's own silence_ms. "No line in the journal" is read as "no journal" only once a whole silence budget has passed since the host's first model request, so the ordering a loaded box produces (the request landing before the launcher's first line, across a socket) is waited out instead of failed.
  • A launcher that keeps no journal at all is still named, by the same budget the wait itself spends, and the message says the budget it waited: "in the <silence_ms> ms since the host's first model request".
  • aWaitOfTheRun hands the wait's own now and silence_ms in, so the check spends the same clock and the same bound as the wait it stands beside.
  • a_silent_host_fails_by_name.node-test.ts gains the case where the request lands first (red before this change) and keeps the launcher that never writes a journal (still named, with the budget in the message).

Checks, local, on the merged tip e0d54d18 (b478e03f plus this patch):

  • gate, npm test through the namespace wrapper: 5612 tests, 5574 pass, 0 fail, 38 skipped, recorded-host and installer stages included;
  • npm run verify rc 0 (lint, base-tests, private check "nothing private", restated-values, the rest); npm run typecheck clean;
  • git diff b478e03f e0d54d18 -- .github is 0 bytes;
  • the push ran nothing: this tip has 0 runs, by the coordinator.
Refs martha-ai/martha#246 Purpose (bug): a recorded-host case reds only for a real fault and never because the box was busy, so a red on `main` means a broken `main`; and when it does red, the red names which side was silent. **What changes** - `journalNeverWritten` now takes the run's clock and the run's own `silence_ms`. "No line in the journal" is read as "no journal" only once a whole silence budget has passed since the host's first model request, so the ordering a loaded box produces (the request landing before the launcher's first line, across a socket) is waited out instead of failed. - A launcher that keeps no journal at all is still named, by the same budget the wait itself spends, and the message says the budget it waited: "in the <silence_ms> ms since the host's first model request". - `aWaitOfTheRun` hands the wait's own `now` and `silence_ms` in, so the check spends the same clock and the same bound as the wait it stands beside. - `a_silent_host_fails_by_name.node-test.ts` gains the case where the request lands first (red before this change) and keeps the launcher that never writes a journal (still named, with the budget in the message). **Checks**, local, on the merged tip `e0d54d18` (`b478e03f` plus this patch): - gate, `npm test` through the namespace wrapper: 5612 tests, 5574 pass, 0 fail, 38 skipped, recorded-host and installer stages included; - `npm run verify` rc 0 (lint, base-tests, private check "nothing private", restated-values, the rest); `npm run typecheck` clean; - `git diff b478e03f e0d54d18 -- .github` is 0 bytes; - the push ran nothing: this tip has 0 runs, by the coordinator.
terra manually merged commit 61ec8da029 into main 2026-11-27 01:15:05 +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!278
No description provided.