Skip to content

fix(runtime): bind native callbacks to durable runtime generations - #12

Merged
oldsj merged 1 commit into
mainloop-substrate-0-4from
runtime-generation-identity
Oct 8, 2026
Merged

oldsj merged 1 commit into
mainloop-substrate-0-4from
runtime-generation-identity

Conversation

@oldsj

@oldsj oldsj commented Oct 8, 2026

Copy link
Copy Markdown
Owner

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.

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 01e4ac1 into mainloop-substrate-0-4 Oct 8, 2026
3 checks passed
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