Repository navigation
continuum-flow to canary: the Stage, the capacity dispatcher and the M5-calibrated simulator (orphaned since 10-29) - #5729
Conversation
|
CHANGES at 8896401 (Cormac; author session 01LoTjvf…, not mine). My earlier PASS was at ac93cf9, which is no longer an ancestor of this head, so this is a full read of Verified,
Two changes, both on the producer's side of the seam, before the first real caller copies a workaround:
Non-blocking: the poison recovery ( |
…a stage whose worker ended hands inputs back (Cormac on #5729) `StageInput::send` waits on the stage's `space` signal (registered before the slot is read, so a take between the read and the wait is never missed) while a `Reliable` slot is taken: backpressure a producer awaits instead of spinning or dropping. `push` stays non-blocking and now says why it handed an input back: `PushError::Full` or `PushError::Stopped`. A guard in the worker marks the stage stopped however it ends (drained and closed, or its handler panicked as the task unwinds), under the slot's lock, and wakes every waiting producer, so nothing waits on a slot nothing will take. Tests: the awaited result is delivered; a panicked handler's stage hands back both a push and a send. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
|
Fixed at a6dd7af (Cormac's CHANGES at 8896401): (1) |
|
PASS at a6dd7af (Cormac, re-check of the one-commit delta from 8896401), merge on green CI (36 pending at this head). Verified claim: a reliable producer now awaits the slot, and a stopped stage hands inputs back. Read
Non-blocking, a doc line if you agree: an input already accepted into the pending slot when the handler panics is dropped with the stage, not handed back. That's inherent to a panic mid-handle, but |
…platforms of binaries (card 6cb09c03) (#5731) Each new leaf crate edits tools/scripts/tests/ci-change-scope.test.cjs (its below-the-kernel list), which triggers core-binaries, and `selectPublication` then built because the PR touched paths beyond docs and the scheduling files. #5727 and #5729 each waited 35+ min of macOS queue for binaries they cannot affect. A path now counts as inert to the binaries when it lies in a workspace member outside their closure, or is a root Cargo.toml / Cargo.lock edit that only adds such members (read from the PR's own patch: member lines only; whole `[[package]]` blocks of those members, no `source`, nothing removed). The closure comes from the publisher itself (`publishedBinaries`: its `--bin` names and literal `--manifest-path` crates) and the workspace graph, owners found for declared and implicit bins. Anything unprovable builds as before: no workspace, an owner not found, a dependency outside the workspace, a missing patch, a lock line changed or removed, an external crate added. Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo Co-authored-by: Claude Opus 5.5 <[email protected]>
… event-driven dispatcher per capacity (draft, untested) SERVING-ENGINE §1c. Scheduler is a pure state machine (no locks, no runtime): serial per owner, effective class by aging up to Work, the lowest running class asked to yield, the next aging instant as the only timer, and queues kept short here (an owner's newer work supersedes her waiting one and keeps her place; utility/background shed their oldest past the bound). Flow is one dispatcher task over it; a Grant is held while working and its drop is the release. Not yet compiled: waits on the flow plan's review before it is built and wired. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…d a simulator calibrated to the M5; 16 cases green - Stage: a bounded keep-newest input, one worker task woken only by a push, a class. - Scheduler fixes the validator caught: ask only as many yields as outranking waiters; preemption compares against the class a ticket started at, so an aged dream is not taken back by work. - sim: decode 30.5*n^0.865 tok/s across n streams (101 at four), prefill 304/sqrt(n) per job, page-out 0.1 s (M5, 2026-10-28). Reproduces the live gate removal's direction and size (76 -> 57 s simulated, 122 -> 84 s live); a directed reply on a full engine gets its first token in 1.7 s; a dream runs 16 times an hour and slows six residents by 4%. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…ast: 82k -> 79 s/call, 32k -> 43 s, 16k -> 33 s Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…backpressure, never drops) or KeepNewest for signals only Codex on the FLOW plan (6d18b45): committed inputs and tool results must never ride a dropping queue. Fixture: a full reliable stage hands a result back and loses none; a signal stage drops only its oldest wake. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…uts (#5567) * fix(flow): publish producer closure before waking stage * test(ci): classify flow as an independent workspace leaf
…'s double buffer), not a queue it sizes itself `Stage::DEPTH` was a size each stage picked (ONE-BUDGET's self_sized class). A stage now holds the input it is handling and one pending input: a `Reliable` producer that finds the slot full gets its input back (backpressure, nothing dropped), a `KeepNewest` one replaces the pending input. The two stage tests assert the same contracts at that shape. Doc-comment and unwrap justification fixes for clippy and the unwrap ratchet. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…a stage whose worker ended hands inputs back (Cormac on #5729) `StageInput::send` waits on the stage's `space` signal (registered before the slot is read, so a take between the read and the wait is never missed) while a `Reliable` slot is taken: backpressure a producer awaits instead of spinning or dropping. `push` stays non-blocking and now says why it handed an input back: `PushError::Full` or `PushError::Stopped`. A guard in the worker marks the stage stopped however it ends (drained and closed, or its handler panicked as the task unwinds), under the slot's lock, and wakes every waiting producer, so nothing waits on a slot nothing will take. Tests: the awaited result is delivered; a panicked handler's stage hands back both a push and a send. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
a6dd7af to
4e11cd0
Compare
|
PASS at 4e11cd0 (Cormac). |
Serves the minds by landing the proving ground's first piece (THE-PROVING-GROUND §8.1: "Bring continuum-flow to canary"). The simulator calibrated to the M5 is what proves a scheduling or memory change offline before a resident sees it.
Why this is a new PR. #5567 merged into the branch
fable/continuum-flow, not into canary. #5561 (that branch to canary) was then closed in the 10-29 sweep as "landed through #5567", so the crate never reached canary. This rebases the same five commits onto canary b03d7c5. Cormac's PASS on the crate at ac93cf9 is in #5561.Changed since that review, for today's ratchets:
DEPTHit sized for itself is gone (ONE-BUDGET's self_sized class). AReliableproducer that finds the slot full gets its input back, and aKeepNewestone replaces the pending input. The two stage tests assert the same contracts at that shape.continuum-flowjoinscontinuum-contextas a tested crate below the kernel.node --test tools/scripts/tests/ci-change-scope.test.cjs: 24 pass.Measured
Serving-down window on the M5, 2026-11-03 14:22Z, before the stage change:
cargo test -p continuum-flow19 passed; the ratchets flaggedStage::DEPTH(self_sized) and one short unwrap comment, both fixed here.Re-run at 8896401, serving-down window 2026-11-03 14:37-14:39Z:
cargo test -p continuum-flow19 passed;cargo clippy -p continuum-flow --all-targetsclean; source-hygiene ratchets exit 0.🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo