Skip to content

sminos tests: a seat's fixture lists the transcript index again before a send - #590

Merged
SSFSKIM merged 2 commits into
mainfrom
sminos-wake-seat-index
Nov 21, 2026
Merged

SSFSKIM merged 2 commits into
mainfrom
sminos-wake-seat-index

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner

What and why

Two runs of sminos-suites-a on a branch under construction went red in the wake suites, a different subtest each time: test_wake_senders (Woken…(kind='seat', …), 0 != 1 : one launch) and test_wake_delivery (PlainSend…(why='cwd'), held for the transcript where the directory was gone).

One fault, in the fixtures, on main as well: the wake suites run every verb in one process, so spawn and the send after it share one transcript index. cmd_spawn looks again only when it read the seat's first turn as ended. When the engine stand-in was still inside that turn, the index kept a listing from before the transcript was written, and a send inside TRANSCRIPT_FRESH (5 s) was held for transcript: nothing launched, and transcript was answered before the directory was looked at.

Wakers.seat and Deliveries.seat_in now list the index again once the seat is stopped, with the lines the other suites already use where a transcript is new. A real spawn and the send after it are two processes, so this is the state a user's send sees.

What a long-lived process (the daemon, the TUI) can meet of the same miss is logged in docs/doperpowers/TECH-DEBT.md, with the fix it would take; it is not changed here.

Evidence

  • With the stand-in's first turn held 0.06 s and longer during spawns, the Woken seat subtests fail on main (13 of 36 at 0.06 s, 32 of 36 at 0.1 s and 0.2 s) and on the branch that showed the reds at the same rate; every spawn that read the first turn as still working failed, bar sends more than 5 s after a listing.
  • With the index listed again in the two fixtures and the first turn always read as working (0.2 s): test_wake_senders (17 tests) and test_wake_delivery (71 tests) pass; without it they had 19 and 3 failures.
  • On this branch, plain runs: test_wake_delivery 71, test_wake_senders 17, test_wake_seat 45, all OK.
  • Not verified: a natural reproduction without an injected delay (0 failures in plain repetition on a loaded machine, on either tree), and why the runner's first turn outlasts the gap.
  • No shipped file changes (scripts/bump-version.sh --since origin/main: none), so no version moves.

Review

Low rung of doperpowers:review-code on the test commit (merge base to its head). It found no wake assertion the fixtures' listing bypasses: they remove state a separate CLI call would not inherit and stub nothing of the hold or the wake. Two findings, both on the tech-debt entry and both taken in the second commit: when a stale miss clears (the listing's age and a cache generation begun since, not five seconds), and that the fix it names is at the delivery boundary only.

Residue

The tech-debt entry above (hold_of acting on a stale index miss in a long-lived process).

Sminos-Session: channel-dev#222553cd (doperpowers on macbook)

…e a send

The wake suites run every verb in one process, so `spawn` and the send after
it share one transcript index. `cmd_spawn` looks again only when it read the
seat's first turn as ended; when the engine stand-in was still in that turn,
the index kept a listing from before the transcript was written, and a send
inside TRANSCRIPT_FRESH (5 s) was held for `transcript`: no launch
(test_wake_senders, `0 != 1 : one launch`), or `transcript` answered before
the directory was looked at (test_wake_delivery, why='cwd'). Two reds of
sminos-suites-a on 2026-11-21 showed it; with the first turn held 0.06 s and
longer it fails on main and on the branch alike, and passes with the index
listed again in `Wakers.seat` and `Deliveries.seat_in`, as the other suites
do where a transcript is new.

What a long-lived process can meet of it is logged in TECH-DEBT.md.

Sminos-Session: channel-dev#222553cd (doperpowers on macbook)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-21T18:34:27.291890Z ab34bc1 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

…-boundary fix leaves

The low rung's two findings on the entry: the listing is taken again only
when it is TRANSCRIPT_FRESH old and a cache generation began since, so the
bound is the process's own forgetting, not five seconds; and passing fresh
through hold_now does not reach words_due and reach_due, which read the
cached hold_for.

Sminos-Session: channel-dev#222553cd (doperpowers on macbook)
@SSFSKIM
SSFSKIM enabled auto-merge November 21, 2026 18:30
@SSFSKIM
SSFSKIM merged commit 52cb776 into main Nov 21, 2026
13 checks passed
@SSFSKIM
SSFSKIM deleted the sminos-wake-seat-index branch November 21, 2026 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant