Repository navigation
fix: honor configured quiesce snapshot scope - #20
Merged
Merged
Conversation
Signed-off-by: James Olds <12104969+oldsj@users.noreply.github.com>
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.
After a completed turn, harnesses configured with
onQuiesce: Fullreturn a FULL snapshot. The controller previously required DATA, leaving the runtime boundary uncertain and blocking suspend/delete.Validate the returned scope against the pinned actor template's snapshot policy and preserve it for checkpoints and same-actor restoration. Re-observe already suspended actors without issuing another suspend. Checkpoint forks continue to require DATA.
Explicit suspension of an Actor already at its initial suspended state settles atomically only while the operation remains unclaimed, without demanding a new task-boundary snapshot. Previously issued captures retain strict template, identity and scope checks across retries and lost replies; completed-turn quiescence stays strict.
Previously stuck claims remain fenced across a restart. Document a guarded recovery procedure: hold dispatch and lifecycle traffic, stop all controller workers through GitOps, verify the exact suspended actor and pinned template/snapshot identity, release only the captured pending claim, then start the fixed controller. Verify the original task/event snapshot and matching history sequence before restoring traffic. No claim-expiry migration is added.
Validation: full Go build; vet of affected packages; race tests across
./core/... ./api/...with local envtest assets; configured lint (0 issues); focused policy/recovery tests and all three initial-suspension regression probes; diff and formatting checks. PostgreSQL tests use real databases with mocked Substrate boundaries. Production suspend/resume/delete proof follows controller-only GitOps rollout.