Repository navigation
fix(runtime): bind native callbacks to durable runtime generations - #12
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.
Native TaskStore callbacks previously relied on unsigned runtime identity. Bind each newly created runtime to a durable generation, an immutable private capability and the exact Actor UID. Callback authentication checks current generation authority and an uncached Actor observation before task/workspace access; revoked and replaced runtimes fail closed.
The controller records issuance before external creation, binds the observed UID, installs policy, then resumes. A strict single-winner issuance transition prevents an already-prepared caller from repeating creation after an unknown outcome. Same-UID completion stays idempotent; DATA forks receive new generation authority. Runtime credentials remain outside public Session fields, actor configuration and logs. Legacy sessions remain ineligible.
Validation includes real PostgreSQL migration/retirement and workflow race coverage, TaskStore/gRPC/auth fixtures, SDK and fake Claude/Codex consumers, controller/native builds, lint and scoped RBAC rendering. All eight stale-preparer interleavings fail on the baseline and pass after repair; uncertain issuance replies also hold. CI now checks the exact published PR head and runs affected offline regressions while preserving refresh coverage. The catalog envtest requiring unavailable assets and the real pinned Codex CLI test remain explicitly deferred.
Installation is separate: matching provider selection, effective RBAC, compatible digest-pinned images, transport and live cross-Actor/stale-runtime proofs are required before admission. A late Secret creation after completed deletion remains a resource-retention follow-up; its capability is revoked. Fixtures do not establish live execution or deployment readiness.