Separate CHASM scheduler buffer planning - #39
Draft
chaptersix wants to merge 3 commits into
Draft
Conversation
chaptersix
force-pushed
the
sch-readable-buffer-planner
branch
5 times, most recently
from
August 19, 2026 09:41
730bdbd to
6bb09b2
Compare
5 tasks
chaptersix
force-pushed
the
sch-readable-buffer-planner
branch
from
August 19, 2026 11:30
6bb09b2 to
10de8bf
Compare
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 changed?
internalpackage. It consumes immutable value snapshots, uses an explicit evaluation time, and returns request-ID-keyed decisions without pointers into live CHASM state.scheduler.enableBufferPlanner.ALLOW_ALLstarts consume limited capacity before the selected non-overlapping start.Production behavior is intended to remain unchanged. Only one path applies mutations or emits tasks, and metrics are recorded from the applied outcome rather than speculative decisions.
Why?
This is PR 3 of the CHASM scheduler readability stack. It makes overlap, catch-up, action-capacity, and lifecycle decisions independently readable and testable. The bounded state-space comparison provides enough parity evidence to remove the runtime fallback while keeping the legacy implementation as executable proof.
Stack
main<-sch-readablesch-readable<-sch-readable-action-capacitysch-readable-action-capacity<-sch-readable-lifecyclesch-readable-lifecycle<-sch-readable-buffer-plannerDifferential coverage
The comparison seam deep-clones equivalent inputs and compares persisted Scheduler and Invoker state, emitted task identity and ordering, cancel/terminate requests, metrics and tags, named outcomes,
RemainingActions, and conflict-token deltas.The deterministic state-space tests perform 29,140 legacy-versus-planner comparisons across:
UNSPECIFIEDin every position;This is exhaustive over those bounded semantic classes, not over the unbounded input space. It found the limited-capacity ready-ordering divergence fixed in this PR.
How did you test it?
The functional suite was intentionally left to the PR checks.
Potential risks
There is no runtime fallback after this change. During a mixed-version rollout, older nodes continue to use the legacy implementation and newer nodes use the planner. The differential tests pin state, task, metric, action-count, conflict-token, duplicate-ID, and boundary behavior between those implementations.