CI flake: a recorded-host run types the owner's turn but the Enter never submits it (guess: a stalled host reads text + Enter as one paste) #182

Open
opened 2026-11-25 11:37:07 +00:00 by saturnus · 0 comments
Member

Purpose (bug): a recorded-host run whose owner's turn is typed into the host's box is also submitted, so the turn is taken; a red for "no model request at all" then names a host that refused the turn, not a keystroke the host never acted on.

Instance. ci.yml run 1479 (task 4424's job "the relay loads in the recorded host"), tip e9a8bc37 (PR 178, martha#171), 2026-11-25 ~11:03-11:07Z, src/drive_the_recorded_host/a_menu_answer_on_the_recorded_host.node-test.ts:86 ("the owner's answer to the host's menu, ticked at the terminal, ..."):

ALaunchThatStopped: No the host drawing the menu for 120000 ms: the stand-in has been sent no model request at all, so the host never took the turn, and the run has taken 248384 ms in all. The launcher last answered owner_dialog 120055 ms ago.

The terminal's last screen still showed ❯ Ask me. in the input box, with requests: []. driveTheRecordedHost writes run.owner_turn, waits 500 ms, then writes '\r'; the turn's text arrived and the Enter did nothing visible.

What it is not.

  • Not the relay load miss (#171): PR 178's new wait for the relay's session start passed in that run (its refusal "The host started its session without Martha's relay" is absent), so the relay was loaded.
  • Not the host idling past its 60 s idle notice: with a 65 s sleep forced before the typing, the same case passed 2/2 on a quiet box (unchanged tree 2/2 too).
  • A single re-run of the job on the same tip (run 1488, workflow_dispatch) was green.

Guess, not proven. The pre-turn stretch took ~128 s on the CI box (against ~35 s for the whole case on a quiet one), i.e. the box was stalled. If the host's event loop was held past the 500 ms gap, it may read Ask me. and \r in one chunk and take it as a paste, so the Enter becomes a newline in the box rather than a submit. Nothing in the saved log proves this.

Fix direction (when picked up). After the Enter, wait until the turn is seen taken (the box cleared, or the first model request); if it is not, send '\r' once more, and name in the red which of the two happened. A test drives a host stand-in that swallows the first Enter.

Refs #19 (the relay job's flips), #171.

Done when: a turn typed but not taken is either submitted by the driver or named as such in the red, with a test that shows it.

Purpose (bug): a recorded-host run whose owner's turn is typed into the host's box is also submitted, so the turn is taken; a red for "no model request at all" then names a host that refused the turn, not a keystroke the host never acted on. **Instance.** ci.yml run 1479 (task 4424's job "the relay loads in the recorded host"), tip e9a8bc37 (PR 178, martha#171), 2026-11-25 ~11:03-11:07Z, `src/drive_the_recorded_host/a_menu_answer_on_the_recorded_host.node-test.ts:86` ("the owner's answer to the host's menu, ticked at the terminal, ..."): > ALaunchThatStopped: No the host drawing the menu for 120000 ms: the stand-in has been sent no model request at all, so the host never took the turn, and the run has taken 248384 ms in all. The launcher last answered owner_dialog 120055 ms ago. The terminal's last screen still showed `❯ Ask me.` in the input box, with `requests: []`. `driveTheRecordedHost` writes `run.owner_turn`, waits 500 ms, then writes `'\r'`; the turn's text arrived and the Enter did nothing visible. **What it is not.** - Not the relay load miss (#171): PR 178's new wait for the relay's session start passed in that run (its refusal "The host started its session without Martha's relay" is absent), so the relay was loaded. - Not the host idling past its 60 s idle notice: with a 65 s sleep forced before the typing, the same case passed 2/2 on a quiet box (unchanged tree 2/2 too). - A single re-run of the job on the same tip (run 1488, workflow_dispatch) was green. **Guess, not proven.** The pre-turn stretch took ~128 s on the CI box (against ~35 s for the whole case on a quiet one), i.e. the box was stalled. If the host's event loop was held past the 500 ms gap, it may read `Ask me.` and `\r` in one chunk and take it as a paste, so the Enter becomes a newline in the box rather than a submit. Nothing in the saved log proves this. **Fix direction (when picked up).** After the Enter, wait until the turn is seen taken (the box cleared, or the first model request); if it is not, send `'\r'` once more, and name in the red which of the two happened. A test drives a host stand-in that swallows the first Enter. Refs #19 (the relay job's flips), #171. Done when: a turn typed but not taken is either submitted by the driver or named as such in the red, with a test that shows it.
Sign in to join this conversation.
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#182
No description provided.