Skip to content

fix: honor configured quiesce snapshot scope - #20

Merged
oldsj merged 1 commit into
mainloop-substrate-0-4from
quiesce-scope
Oct 8, 2026
Merged

oldsj merged 1 commit into
mainloop-substrate-0-4from
quiesce-scope

Conversation

@oldsj

@oldsj oldsj commented Oct 8, 2026

Copy link
Copy Markdown
Owner

After a completed turn, harnesses configured with onQuiesce: Full return 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.

Signed-off-by: James Olds <12104969+oldsj@users.noreply.github.com>
@github-actions github-actions Bot added the bug Something isn't working label Oct 8, 2026
@oldsj
oldsj merged commit d6de0e4 into mainloop-substrate-0-4 Oct 8, 2026
3 checks passed
@oldsj
oldsj deleted the quiesce-scope branch October 8, 2026 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant