Skip to content

feat(session): register retained callers before suspended execution - #812

Merged
antropos17 merged 3 commits into
masterfrom
codex/caller-suspended-launch-20261008
Oct 9, 2026
Merged

antropos17 merged 3 commits into
masterfrom
codex/caller-suspended-launch-20261008

Conversation

@antropos17

Copy link
Copy Markdown
Owner

The caller primitive accepted an externally supplied retained process handle but had no native launch boundary that registered its own child before execution. An inactive internal launcher now pins the selected image and ancestors, creates the child suspended in an owned kill-on-close Job with arbitrary handle inheritance disabled, verifies the actual image and retained registration, and then resumes its initial thread.

Disposal revokes registration and requires retained root exit and queried Job-empty closure. Natural root exit and owner-death behavior have separate native controls. The fixed-image, expected-hash and session inputs belong to trusted native code; protected installation, principal policy, environment and dependency provenance remain unqualified. Program and production-launch flags remain inactive.

Validation: independent Astra requirements and engineering PASS on the eight-file freeze; eight native controls with actual wrong-image/registration refusals, inherited-sentinel and removed-suspension mutants, descendant cleanup, owner death and pin release. After merging current token master, the combined caller, endpoint and launcher suites passed63/63 without skips and the actual Windows session sidecar built. Final source/Git bindings and receipts are retained for integration review. The five required CI contexts must pass before merge.

@antropos17
antropos17 merged commit 888d946 into master Oct 9, 2026
5 checks passed
@antropos17
antropos17 deleted the codex/caller-suspended-launch-20261008 branch October 9, 2026 01:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant