Repository navigation
fix(codex): restore session, crew, and audit integration - #15
Merged
Merged
Conversation
Projectless Codex chats lost repository context and mid-turn requests, while shared host processes could misroute crew commands. Restore these workflows without changing Claude behavior. Root cause: Codex reused repository-only context checks and ambiguous process identity, omitted pending patches from attribution, and skipped its rollout during mid-turn capture. Wait delivery truncated consumed messages and classified expected exits as failures. Bind executed work to its own session, isolate app and CLI scratch, preserve patch and message provenance, and recover human steering with bounded reads. Add provider comparisons and regression proofs, document observed host limits, and package 26.11.12 on the merged installer hotfix. Verified: Independent review: 88 focused tests and 31 Python 3.9 compatibility tests pass; dev sec scan exits 0; changed documentation checks pass with historical prose warnings. Regression proofs and paired Claude controls pass. Refs: #14
Codex commands need accurate audit provenance without changing Claude behavior or relaxing crew restrictions. Root cause: Audit ignored native thread identity and shared context with backup restrictions, while Codex ownership refusals reached the generic CLI crash handler. Separate native record enrichment from public caller context, preserve explicit hook and process identity, explain Codex ownership refusals, and align existing contract fixtures with the corrected hooks. Verified: Python 3.13 and 3.9: audit identity plus shared-state acceptance, 9 passed each; schema and backup controls, 13 passed each; focused ownership checks, 62 passed each. Final proof: 8 audit cases pass twice, 7 fail on ce94953 and one preserves baseline restrictions. Independent code and security reviews approved; security scans exit 0; test audit and diff checks clean. Full local CI resume follows this commit. Refs: #14
This was referenced Nov 11, 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.
What and why
Codex chats started outside a repository could lose project context, route crew commands to another chat, and omit requests received during a turn. This hotfix restores those workflows, isolates scratch files and write attribution, and preserves complete crew messages. Runtime changes are specific to Codex, with paired tests preserving Claude behavior.
Changes
How to verify
13d9f8bcf8d2c42f25a191738e7d410638fd90f8(tree33f5ab79d076885e8bd77360cd011c3baf5344c6): Python 3.13.18,dev ci --run --resume --step-timeout 90, all seven stages passed in 27m45s. The supported affected-test selection covers 205 files: raw unittest output reports 4,303 cases, zero failures/errors, one transcript-dependent skip, and no expected failures. Compilation and all five pinned security scanner commands passed; OSV found no package sources to scan.dev ci --evidenceaccepts the exact clean commit. Its partial-run parser reports 4,288; the raw count is authoritative and the shared reporting discrepancy is tracked separately.ce94953: seven audit cases fail without the correction; the final eight-case proof selection passes twice, including a control that preserves existing backup and embargo restrictions. Actual ambiguouswatchandwatchescommands fail without the specific refusal handling and pass twice with it. Existing controls and fixture maintenance that pass on the baseline are not counted as newly proven fixes.c6d3eb0and pass with the correction. Admission coverage characterizes existing behavior; it is not presented as a fixed defect.Risk and rollback
The affected boundaries are Codex session identity, permission checks, concurrent attribution, and continuity. Paired Claude controls and negative Codex tests cover rejection paths. Running sessions keep their pinned hooks until the developer updates and restarts them; source tests do not certify every host UI or installed lifecycle. Codex still exposes no pre-launch hook, so an over-limit member can only be restricted after launch. Historical attribution flags require reconciliation with evidence and are not automatically erased.
Revert this PR through the normal review process if the new Codex behavior regresses. This preserves the preceding installer hotfix.
Links
Installer hotfix preserved: fix(install): keep dev on the PATH and pin on every Mac (26.11.11) #14
Surface evidence: https://github.com/fireflysoftwaresolutions/devkit/blob/hotfix/codex-integration/docs/surfaces.md
Published release: https://github.com/fireflysoftwaresolutions/devkit/releases/tag/v26.11.12