Repository navigation
feat(substrate): refuse memory-tier turns, suspend, resume and fork on a lost or replaced actor - #153
Merged
Anish Ramasekar (aramase) merged 11 commits intoOct 17, 2026
Conversation
Tom Gamble (gambtho)
left a comment
Member
There was a problem hiding this comment.
Site build fails on the two TODO(spike) lines in docs/substrate-conformance.md.
Anish Ramasekar (aramase)
force-pushed
the
aramase/f/substrate_actor_identity_guards
branch
from
October 16, 2026 17:33
8528e12 to
279b547
Compare
Anish Ramasekar (aramase)
marked this pull request as ready for review
October 16, 2026 21:46
Anish Ramasekar (aramase)
force-pushed
the
aramase/f/substrate_actor_identity_guards
branch
from
October 16, 2026 23:17
279b547 to
6dc59c0
Compare
Tom Gamble (gambtho)
approved these changes
Oct 16, 2026
Tom Gamble (gambtho)
left a comment
Member
There was a problem hiding this comment.
lgtm. The recorded-UID check covers the stale-ref case, and the site build is green.
…n a lost or replaced actor
…ctor is gone or replaced
…he unread-cleanup exception
…inds a replaced actor
…ts approval request
This was referenced Oct 17, 2026
Anish Ramasekar (aramase)
force-pushed
the
aramase/f/substrate_actor_identity_guards
branch
from
October 17, 2026 17:55
6dc59c0 to
20340ec
Compare
Anish Ramasekar (aramase)
merged commit Oct 17, 2026
14a6e2a
into
agent-primitives:main
17 checks passed
Anish Ramasekar (aramase)
deleted the
aramase/f/substrate_actor_identity_guards
branch
October 17, 2026 18:01
This was referenced Oct 17, 2026
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.
A
REQUIRES_MEMORY_SNAPSHOTsession's state lives in one actor's RAM, and nothing stopped the host from continuing the journal on a fresh or replaced actor. Split from #134, after #137.ExecandResumeareFAILED_PRECONDITION(ErrMemoryStateLost).EXECUTION_START.compute_instance. Exec, Resume, Suspend and stateful Fork refuse another UID with the same error and journal, suspend or clone nothing.ABORTED(ErrComputeBusy) where it used to beINTERNAL.ExecRequest.harnessoverride involving a memory-tier harness is refused (ErrStatefulOverride), also onResume, and before a missing approval request is repaired onto an interrupted override turn, so a refused turn gets no new record or fence.FORKmarker records its clone's UID (Lifecycle.compute_instance, design):ABORTEDand records no child; a clone that reports no UID is torn down.Verifyon such a child.How it was tested:
go test -race -count=1 ./...in the root module and inintegrations/substrate, run on Linux: both pass.go mod tidy, andbuf generate/ API reference drift checks pass on all 8 commits.