Repository navigation
quest: plan kio follow-ups (send-credit machine, sim sweep, Verus) - #9761
Conversation
Narrow miri-seeds-tsan to moq-net now that kio#25 shipped kio's half, and add send-credit-machine, send-credit-reset-wake, sim-adversarial-sweep (m4) and verus-subscribe (m5), from the 2026-11-27 /quest-plan interview. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… reset wake Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. WalkthroughThe changes revise an Miri and ThreadSanitizer quest and add quest documents for simulated-schedule testing, send-credit model checking, reset-stream wake analysis, and a proposed Verus proof. The documents specify planned test approaches, scope, prerequisites, and recorded decisions. They do not change public APIs or wire behavior. Merge Risk:
|
…::preempt Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
moq-dev/moq#9761 planned the send-credit port as quest/m4/send-credit-machine.md, so the wait has cleared. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Problem
kio's state-machine spikes (kixel-ai/kio#26), its Miri-seeds and TSan recipes (kixel-ai/kio#25), and its Verus proof of
kio::log(kixel-ai/kio#12) left moq-side follow-ups that no quest owns. This plans them from the maintainer's 2026-11-27/quest-planinterview.Approach
quest/m4/miri-seeds-tsan.md: narrowed to moq-net. kio#25 shipped kio's half; itsmiri-seedsandtsanrecipes are the pattern to copy, so the effort drops to S.quest/m4/send-credit-machine.md:open.rs's send credit becomes a pureStateMachinedriven by the I/O code, andcargo testruns kio's BFS checker and asserts TLC's state counts on all fourSendCredit*configs. kio#26 showed the spike machine matches TLC exactly, 250–2,900× faster. Waits on a crates.io kio release with themodelfeature (kixel-ai/kioquest/m2/model-check.md), since after the cut moq depends on kio from crates.io; requiresquest/m0/kio-crates-io.md.quest/m4/sim-adversarial-sweep.md: moq's sim tests also run underKIO_SIM_SCHEDULE(random, PCT) withKIO_SIM_PROBE=1, copying kio'sjust sweep. That covers every#[kio::test]as well as the 107 files that nameclock::sim. Requiresquest/m0/kio-main.mdfor kio#10.quest/m5/verus-subscribe.md: Verus provesSubscribeAccounting.tla's invariants onlite/publisher.rs,lite/subscriber.rs, andtail.rs, with kio#12's cost as the reference. Speculative, and it starts after moq-dev/moq#9719 and moq-dev/moq#9743 land or close.quest/m4/send-credit-reset-wake.md, planned in the interview and dropped at the merge pick (see Decisions). Alsoquest/m0/kio-main.md's Plan already coversdoc/lib/rs/kio.md'sMOQ_SIM_SEED(its "updatedoc/lib/rs/kio.md" line), so it is unchanged.Decisions
SendCredit.tlaas the design doc and run TLC only when the spec changes (rejected: retire TLC and delete the spec once the Rust machine matches).sh/tla.shalready skips an exhaustive config whose spec, config, and TLC are unchanged, and all fourSendCredit*configs are exhaustive, so Nightly'screditleg already behaves this way and needs no workflow change.modelfeature (rejected: a copy in moq-net).Listed::preempt, which wakes the stream's writer, a child task of its subscription, so the spec'sMakeRoomwake is faithful and removing it would only make the model less accurate.Impact
None: quest files only. No public API or wire change.
Alternatives
Recorded with each decision above.
Follow-ups
Waitingitem in kixel-ai/kio'squest/m2/model-check.md(a moq quest ports send credit) clears; kio's next planning PR should remove it.Validation
quest check: 567 documents ok.just ci: passed (quest, markdown, and the other selected modules).Models
Size: S
Implementer: Claude Code, claude-opus-5-5, high
(Written by Claude Opus 5.5 with high)
🤖 Generated with Claude Code
Review
Rewritten by
quest reviewafter each round.Head: 672a8ee
Base: origin/main at 86faa33
Risk: medium,
Under RISK.md this change is low, since it only edits quest plans, and a revert undoes it fully. The schema accepts only medium or high, so I used medium as the nearest tier, and it does not mean the change is medium by the file's rules. If the plans are wrong, the worst case is an agent planning or doing the wrong verification work on moq-net (Miri/TSan, a send-credit state machine, a sim sweep, a Verus proof). No consumer or deployed peer reads quest plans, and the repository's checks and reviewers would catch the mistake before any release.Classified: medium by Claude Code, claude-haiku-5-5, low effort, session
ec18d3ec-954e-49c8-9fb2-12cafd0e8167Risk file: bb7b1c0de60b
Reviewer: Codex, gpt-6.2-sol, medium effort
Session:
01a21cd7-cd60-78e0-8809-4e1fe34bd023, round 3Score: 10/10,
Removing the reset-wake quest and its companion link leaves the send-credit machine plan intact, with no new findings.Rounds: 3; first round 2 (medium 2); findings 2 (medium 2): fixed 2, refuted 0, open 0
Findings: none