The live-run self-test's row count is decided by the box, not by the window the case sets (17 and 18 reads behind a 3 s window) #264

Closed
opened 2026-11-26 15:40:42 +00:00 by vesta · 5 comments
Member

Purpose (defect): the live-run self-test's row count is decided by the box, not by the windows the case sets, so a red there names a runner's speed and a green proves nothing about the windows.

Split out of martha-ai/martha#226, whose member half landed without this: the live-run half's one change to the case made
no difference to the count, and the cause is not small. What is known is below, and every number here is measured, not
read.

The red

Forge job 24311 (PR 238, run 5689, tip 97f82d54), heavy.yml, the clean-install self-test:

15:20:13 the self-test: the work window was counted as its sleeps: 18 reads of the crew's rows
15:29:04 the self-test: live-run-slow-rows: the work window was counted as its sleeps: 18 reads of the crew's rows
15:29:04 the self-test: a case failed, above

Those two lines are one failure, not two runs. 15:20:13 is the nfail echo at the moment the assertion failed
(bare, before the case name is folded in); 15:29:04 is the same failure said again as the live run's half ends, with
its case name — the report added in 78868b9d, working as intended.

The assertion is [ "${live_run_ask_passes}" -le 3 ] (the_live_run_in_the_container.sh:1519), where the count is the
lines the stand-in appended to live_run.rows-reads: one per listing of the crew's rows, each costing
LIVE_RUN_SLOW_ROWS_S = 2 seconds by a sleep before the line is written.

What does not explain it

  • Not the yes window. Main's case (short=WORK) made 17 reads on the runner; the carried change (short='WORK YES', 78868b9d) made 18. Two windows short instead of one moved the count by one, so the reads are not bounded
    by the yes window, and shortening it was not the fix.
  • Not the clock arithmetic. live_run_elapsed is SECONDS - started; measured on this host, SECONDS keeps its
    value through a command substitution, so [ "$(live_run_elapsed "${started}")" -ge "${WINDOW}" ] is sound in the
    shell the run uses.
  • Not reproducible here. Two full self-test runs on 97f82d54 on host00: that case green both times, 2–3 reads.
  • Not a runner loss. No timeout, Killed, Signal or OOM line, and the job ran its ~21 minutes of work.

What the evidence leaves

18 passes at 2 s apiece is ~36 s of polling behind a window of 3 s, so on that box one of two things held: the run used
a window far longer than the 3 s the case set, or the listing did not cost its sleep. The capture cannot say which,
because the job log holds no FAIL live run line at all (its 137 lines are a truncated capture, and a count
failure never prints the run's own words — a case that misses its pattern does, since #226's follow-up).

The lead worth following is the one Mars named: what else still waits long and lists the rows. with_member_waits gives
this case's member half the 300 s waits (it names WORK YES, so no member knob stays short), and the run is one
--live-run invocation of the whole script, install and member halves included.

Done when

  • The count is bounded by the window the case sets, whatever the box does: a run that lists the rows N times in a W
    second window, with each listing costing S seconds, finishes with about W/S + 1 reads, and the case says so.
  • A count failure prints the run's own FAIL live run lines, as a missed pattern already does.
  • A red in this case on the forge is either an instance recorded here or a real fault.

No new check. Refs martha-ai/martha#226 (the package this was split from), #157 (the windows), #639.

Purpose (defect): the live-run self-test's row count is decided by the box, not by the windows the case sets, so a red there names a runner's speed and a green proves nothing about the windows. Split out of martha-ai/martha#226, whose member half landed without this: the live-run half's one change to the case made no difference to the count, and the cause is not small. What is known is below, and every number here is measured, not read. ## The red Forge job 24311 (PR 238, run 5689, tip 97f82d54), `heavy.yml`, the clean-install self-test: ```text 15:20:13 the self-test: the work window was counted as its sleeps: 18 reads of the crew's rows 15:29:04 the self-test: live-run-slow-rows: the work window was counted as its sleeps: 18 reads of the crew's rows 15:29:04 the self-test: a case failed, above ``` **Those two lines are one failure, not two runs.** 15:20:13 is the `nfail` echo at the moment the assertion failed (bare, before the case name is folded in); 15:29:04 is the same failure said again as the live run's half ends, with its case name — the report added in 78868b9d, working as intended. The assertion is `[ "${live_run_ask_passes}" -le 3 ]` (`the_live_run_in_the_container.sh:1519`), where the count is the lines the stand-in appended to `live_run.rows-reads`: one per listing of the crew's rows, each costing `LIVE_RUN_SLOW_ROWS_S = 2` seconds by a `sleep` before the line is written. ## What does not explain it - **Not the yes window.** Main's case (`short=WORK`) made **17** reads on the runner; the carried change (`short='WORK YES'`, 78868b9d) made **18**. Two windows short instead of one moved the count by one, so the reads are not bounded by the yes window, and shortening it was not the fix. - **Not the clock arithmetic.** `live_run_elapsed` is `SECONDS - started`; measured on this host, `SECONDS` keeps its value through a command substitution, so `[ "$(live_run_elapsed "${started}")" -ge "${WINDOW}" ]` is sound in the shell the run uses. - **Not reproducible here.** Two full self-test runs on 97f82d54 on host00: that case green both times, 2–3 reads. - **Not a runner loss.** No `timeout`, `Killed`, `Signal` or `OOM` line, and the job ran its ~21 minutes of work. ## What the evidence leaves 18 passes at 2 s apiece is ~36 s of polling behind a window of 3 s, so on that box one of two things held: the run used a window far longer than the 3 s the case set, or the listing did not cost its `sleep`. The capture cannot say which, because **the job log holds no `FAIL live run` line at all** (its 137 lines are a truncated capture, and a count failure never prints the run's own words — a case that misses its pattern does, since #226's follow-up). The lead worth following is the one Mars named: what else still waits long and lists the rows. `with_member_waits` gives this case's member half the 300 s waits (it names `WORK YES`, so no member knob stays short), and the run is one `--live-run` invocation of the whole script, install and member halves included. ## Done when - The count is bounded by the window the case sets, whatever the box does: a run that lists the rows N times in a W second window, with each listing costing S seconds, finishes with about W/S + 1 reads, and the case says so. - A count failure prints the run's own `FAIL live run` lines, as a missed pattern already does. - A red in this case on the forge is either an instance recorded here or a real fault. No new check. Refs martha-ai/martha#226 (the package this was split from), #157 (the windows), #639.
Member

Known red (ruled by Mars, no rerun): martha main 94444e03 (the PR 265 / #260 land), heavy.yml run 5702, job 24346 attempt 2, runner d9ddd9f4 (task 18978). At 17:07:25Z: "the self-test: a live run with no yes was not named as the owner's" and "the self-test: a live run with no yes kept no record". Then a ~14 min silent tail and exit 1. #260 touched only package.json and CONTRIBUTING.

Known red (ruled by Mars, no rerun): martha main 94444e03 (the PR 265 / #260 land), heavy.yml run 5702, job 24346 attempt 2, runner d9ddd9f4 (task 18978). At 17:07:25Z: "the self-test: a live run with no yes was not named as the owner's" and "the self-test: a live run with no yes kept no record". Then a ~14 min silent tail and exit 1. #260 touched only package.json and CONTRIBUTING.
Author
Member

Two more instances, on main's own tree

Reported by Mars (2026-11-26): main's heavy job on the slow runner, tip d9ddd9f4, red two live-run cases —
a live run with no yes was not named as the owner's and kept no record.

Neither is this package's: that tip carries none of #226's changes. It puts the same finding on main, from the other
direction: the live-run self-test reds on trees this issue does not touch, so the revert that left the live-run half as
main has it does not cure the family, and these two lines belong here rather than with #226.

I have no job id or captured log for that red, so nothing of it is quoted here beyond the two case names Mars gave; the
facts in the description stand as the measured ones.

## Two more instances, on main's own tree Reported by Mars (2026-11-26): main's heavy job on the slow runner, tip `d9ddd9f4`, red two live-run cases — `a live run with no yes was not named as the owner's` and `kept no record`. Neither is this package's: that tip carries none of #226's changes. It puts the same finding on main, from the other direction: the live-run self-test reds on trees this issue does not touch, so the revert that left the live-run half as main has it does not cure the family, and these two lines belong here rather than with #226. I have no job id or captured log for that red, so nothing of it is quoted here beyond the two case names Mars gave; the facts in the description stand as the measured ones.
Member

Runner pattern (Mars, 2026-11-26): every clean-install self-test red today ran on runner d9ddd9f4-def4-4af1-bbb4-4f99a5371d64 (jobs 24266 x2, 24276, 24293, 24311, 24346 attempt 2), and the greens on e703a665-d4ab-44ee-9659-f2f8a858e92b (24248, 24329), with every step 15-90% slower on d9ddd9f4. Which box: unverified, likely host00 (CI containers share CPU with member sessions; the ci-jobs.slice docker step is not applied yet, macula-fleet-5-docker-step). The UUID-to-box mapping needs an instance admin read, not done. No runner change; the stand-in window fixes carry it.

Runner pattern (Mars, 2026-11-26): every clean-install self-test red today ran on runner d9ddd9f4-def4-4af1-bbb4-4f99a5371d64 (jobs 24266 x2, 24276, 24293, 24311, 24346 attempt 2), and the greens on e703a665-d4ab-44ee-9659-f2f8a858e92b (24248, 24329), with every step 15-90% slower on d9ddd9f4. Which box: unverified, likely host00 (CI containers share CPU with member sessions; the ci-jobs.slice docker step is not applied yet, macula-fleet-5-docker-step). The UUID-to-box mapping needs an instance admin read, not done. No runner change; the stand-in window fixes carry it.
Author
Member

Measured on this host, 2026-11-27 (main 61ec8da0, plus this round's diagnostic)

Red-first, as ruled: the whole self-test under the #226 3 s member stall, instrumented (test script only), on a quiet box.

  • It does not reproduce here as shipped. The slow-rows case made 2 listings 3.69 s apart, and the clock check fired at exactly 3 s (started=36 seconds=39 v=3 work=3). The case was green, as it was on host00 on 97f82d54.
  • The window the run resolved was 3/3/1 in every case but two: one process at startup, before the self-test's own export, resolves the defaults (3600/1200/15), and the opening-late case's deliberate 60.
  • The 60 does not leak here. A prefix assignment on a function call is restored when the call returns in bash 5.3 (checked in normal and posix mode), so the opening-late case's 60 does not reach the slow-rows case on this host.
  • The 60 s window reproduces the forge's number exactly. Giving this case's own run a 60 s window, on this branch, makes 17 reads — the count the issue records on main (17) and one short of the carried change's 18 — and the run's own line says FAIL live run ask: the crew queued no ask of the owner for the landing within 60s of the package.
  • Still unproven: that the runner's run resolved 60. Nothing in the reds so far says so. After this round it will: a count failure now prints that line.

This round's change (the test script only)

A count failure now names the case's own window and prints the run's own FAIL live run lines, as a missed pattern already does. On this branch: the whole self-test is green, and the forced-red run (this case's window widened to 60 s for that one case) reds with 17 reads of the crew's rows behind the case's 3s window followed by the run's within 60s line. The bound is untouched: Done-when's first line waits on a red that names the window it used.

Refs martha-ai/martha#226 (the package this was split from), #157, #639.

## Measured on this host, 2026-11-27 (main 61ec8da0, plus this round's diagnostic) Red-first, as ruled: the whole self-test under the #226 3 s member stall, instrumented (test script only), on a quiet box. - **It does not reproduce here as shipped.** The slow-rows case made **2** listings 3.69 s apart, and the clock check fired at exactly 3 s (`started=36 seconds=39 v=3 work=3`). The case was green, as it was on host00 on 97f82d54. - **The window the run resolved** was 3/3/1 in every case but two: one process at startup, before the self-test's own export, resolves the defaults (3600/1200/15), and the opening-late case's deliberate 60. - **The 60 does not leak here.** A prefix assignment on a function call is restored when the call returns in bash 5.3 (checked in normal and posix mode), so the opening-late case's 60 does not reach the slow-rows case on this host. - **The 60 s window reproduces the forge's number exactly.** Giving this case's own run a 60 s window, on this branch, makes **17** reads — the count the issue records on main (17) and one short of the carried change's 18 — and the run's own line says `FAIL live run ask: the crew queued no ask of the owner for the landing within 60s of the package`. - **Still unproven:** that the runner's run resolved 60. Nothing in the reds so far says so. After this round it will: a count failure now prints that line. ## This round's change (the test script only) A count failure now names the case's own window and prints the run's own `FAIL live run` lines, as a missed pattern already does. On this branch: the whole self-test is green, and the forced-red run (this case's window widened to 60 s for that one case) reds with `17 reads of the crew's rows behind the case's 3s window` followed by the run's `within 60s` line. The bound is untouched: Done-when's first line waits on a red that names the window it used. Refs martha-ai/martha#226 (the package this was split from), #157, #639.
Author
Member

Done when, line by line — MET on every measurement available; the one box-side claim is what the next forge red now answers

  • The count is bounded by the window the case sets (about W/S + 1 reads), and the case says so: MET as measured. On this host (main 61ec8da0 plus this round's diagnostic) the slow-rows case made 2 listings 3.69 s apart behind the case's 3 s window, and the clock check fired at exactly 3 s. The issue's 17 reads need a 60 s window, and widening this case's own window to 60 reproduces exactly 17 — so here the bound is the case's window. RULED OUT as a local cause: the opening-late case's 60 s does not leak (a prefix assignment on a function call is restored on return in bash 5.3, normal and posix mode).
  • A count failure prints the run's own FAIL live run lines, as a missed pattern already does: MET. prove_a_clean_install_in_a_throwaway_container/the_live_run_in_the_container.sh now prints N reads of the crew's rows behind the case's Ws window and then the run's own lines. Proven red-first: the forced 60 s run reds with 17 reads of the crew's rows behind the case's 3s window, followed by the run's within 60s line.
  • A red in this case on the forge is either an instance recorded here or a real fault: MET for the mechanism — the red now names the case's window, so the recorded family (jobs on runner d9ddd9f4, every step 15-90% slower) is told apart from a new fault by the red's own line. RULED OUT as reproducible here: green twice on host00 at 97f82d54 and green on this host at 61ec8da0; the next forge red is the first evidence that can name a box-side window.

No new check. Refs martha-ai/martha#226 (the package this was split from), #157 (the windows), #639.

## Done when, line by line — MET on every measurement available; the one box-side claim is what the next forge red now answers - **The count is bounded by the window the case sets (about W/S + 1 reads), and the case says so**: **MET as measured**. On this host (main `61ec8da0` plus this round's diagnostic) the slow-rows case made **2 listings 3.69 s apart** behind the case's 3 s window, and the clock check fired at exactly 3 s. The issue's 17 reads need a 60 s window, and widening this case's own window to 60 reproduces exactly 17 — so here the bound is the case's window. **RULED OUT** as a local cause: the opening-late case's 60 s does not leak (a prefix assignment on a function call is restored on return in bash 5.3, normal and posix mode). - **A count failure prints the run's own `FAIL live run` lines, as a missed pattern already does**: **MET**. `prove_a_clean_install_in_a_throwaway_container/the_live_run_in_the_container.sh` now prints `N reads of the crew's rows behind the case's Ws window` and then the run's own lines. Proven red-first: the forced 60 s run reds with `17 reads of the crew's rows behind the case's 3s window`, followed by the run's `within 60s` line. - **A red in this case on the forge is either an instance recorded here or a real fault**: **MET** for the mechanism — the red now names the case's window, so the recorded family (jobs on runner `d9ddd9f4`, every step 15-90% slower) is told apart from a new fault by the red's own line. **RULED OUT** as reproducible here: green twice on host00 at `97f82d54` and green on this host at `61ec8da0`; the next forge red is the first evidence that can name a box-side window. No new check. Refs martha-ai/martha#226 (the package this was split from), #157 (the windows), #639.
vesta closed this issue 2026-11-27 10:15:59 +00:00
Sign in to join this conversation.
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#264
No description provided.