Centralize CHASM scheduler lifecycle transitions - #38
Draft
chaptersix wants to merge 4 commits into
Draft
chaptersix wants to merge 4 commits into
chaptersix wants to merge 4 commits into
Conversation
chaptersix
force-pushed
the
sch-readable-lifecycle
branch
from
August 19, 2026 07:38
b92121f to
71bd95d
Compare
chaptersix
force-pushed
the
sch-readable-lifecycle
branch
from
August 19, 2026 07:52
71bd95d to
8fc058c
Compare
This was referenced Aug 19, 2026
chaptersix
force-pushed
the
sch-readable-lifecycle
branch
from
August 19, 2026 11:30
8fc058c to
5fd33f5
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?
BufferedStartlifecycle classifier with an explicit invalid state overAttempt,RunId,Completed,BackoffTime, and the retry evaluation time.internalpackage, shared directly by scheduler runtime and migration code without forwarding wrappers.chasmtest.Enginecoverage for the unprocessed-to-ready and ready-to-retrying persisted transitions.Production behavior is unchanged. Retry handling advances
Attemptexactly once and preserves its existing backoff deadline. A late start result still fillsRunIdandStartTimewithout erasing an earlier completion, and a backoff deadline equal to the evaluation time remains ready.Why?
This is PR 2 of the CHASM scheduler readability stack. It gives the compound
BufferedStarttuple one vocabulary and one production mutation boundary without introducing the buffer planner, execution-phase split, property generators, or unrelated test migrations planned for later PRs.Stack
main<-sch-readablesch-readable<-sch-readable-action-capacitysch-readable-action-capacity<-sch-readable-lifecycleHow did you test it?
Potential risks
The main risk is changing a compound lifecycle tuple while centralizing its writes. Direct classifier tests cover every named state, invalid tuples, and retry-time boundaries; engine and existing race tests protect persisted transition behavior. The migration assertions pin pending normalization and running/completed tuple construction.