refactor(container): report lifecycle phases as structured events - #2599
Merged
jonathanKingston merged 1 commit intoSep 9, 2026
Merged
jonathanKingston merged 1 commit into
jonathanKingston merged 1 commit into
Conversation
jonathanKingston
force-pushed
the
codex/container-phase-events
branch
from
September 9, 2026 01:56
866ac5a to
d55da93
Compare
Contributor
jonathanKingston
marked this pull request as ready for review
September 9, 2026 02:53
jonathanKingston
merged commit Sep 9, 2026
9b1bd3b
into
claude/copse-container-execution-nw4ln8
34 checks passed
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.
Container lifecycle state depended on matching human-readable diagnostic strings. Replace those matches with typed worker phase records, decoded at the pipe boundary and forwarded through an explicit runner callback. Ordinary logs no longer advance state, and the guest cannot declare a terminal outcome.
Follow-up to #2348, targeting its feature branch so this PR contains only the phase change. Also validated in an isolated checkout rebased onto
origin/mainat4253dfd0f.Validation: typecheck, lint, formatting, dead-code, oracle, and e2e-syntax checks passed; 48 focused tests passed, including split pipe writes and malformed/terminal records. The full sandboxed suite reported 8,824 passing, 42 failing, 41 cancelled, and 9 skipped tests; failures include denied loopback/Unix socket listeners (
EPERM). Existing phase labels and DOM are unchanged. All four changes were also integrated: 8,953 full-suite unit tests passed outside the sandbox, and the final 208-test targeted regression run passed after the additional cancellation fix.