Repository navigation
sminos tests: a seat's fixture lists the transcript index again before a send - #590
Merged
Merged
Conversation
…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)
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
Two runs of
sminos-suites-aon 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) andtest_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
spawnand the send after it share one transcript index.cmd_spawnlooks 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 insideTRANSCRIPT_FRESH(5 s) was held fortranscript: nothing launched, andtranscriptwas answered before the directory was looked at.Wakers.seatandDeliveries.seat_innow list the index again once the seat is stopped, with the lines the other suites already use where a transcript is new. A realspawnand 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
Wokenseat 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.test_wake_senders(17 tests) andtest_wake_delivery(71 tests) pass; without it they had 19 and 3 failures.test_wake_delivery71,test_wake_senders17,test_wake_seat45, all OK.scripts/bump-version.sh --since origin/main: none), so no version moves.Review
Low rung of
doperpowers:review-codeon 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_ofacting on a stale index miss in a long-lived process).Sminos-Session: channel-dev#222553cd (doperpowers on macbook)