Separate CHASM scheduler action capacity APIs - #36
Draft
chaptersix wants to merge 1 commit into
Draft
chaptersix wants to merge 1 commit into
chaptersix wants to merge 1 commit into
Conversation
5 tasks
chaptersix
force-pushed
the
sch-readable-action-capacity
branch
2 times, most recently
from
August 19, 2026 07:52
30787d0 to
461524a
Compare
This was referenced Aug 19, 2026
chaptersix
force-pushed
the
sch-readable-action-capacity
branch
from
August 19, 2026 11:30
461524a to
d0d4e47
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?
canTakeScheduledActionandconsumeScheduledAction.Production behavior is unchanged. Each successful limited-action consumption decrements
RemainingActionsexactly once and increments the conflict token exactly once; N successful consumptions preserve an N-token delta. Paused or exhausted attempts mutate neither counter, and unlimited consumption remains allowed without changing either counter.Why?
This is PR 1 of the CHASM scheduler readability stack. It removes the boolean mutation mode from
useScheduledAction(bool)so callers state whether they are querying capacity or consuming it, without introducing the lifecycle classifier, transition helpers, buffer planner, or later refactors.Stack
main<-sch-readablesch-readable<-sch-readable-action-capacityHow did you test it?
Potential risks
The risk is limited to accidentally changing action-limit or conflict-token accounting while separating the APIs. The focused tests pin the paused, unlimited, exhausted, single-consumption, and multi-consumption behavior and exact counter/token deltas.