Skip to content

fix(codex): repair coordination and approval evidence - #18

Merged
ancongui merged 5 commits into
mainfrom
release/26.11.14
Nov 11, 2026
Merged

ancongui merged 5 commits into
mainfrom
release/26.11.14

Conversation

@ancongui

@ancongui ancongui commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

What and why

Codex could retain a stopped crew member, lose actionable questions or late answers, and treat an expired wait as continued monitoring. This release repairs those coordination boundaries and recognizes corrected user approvals within one native turn while preserving Claude behavior.

Changes

  • Reconcile native interruptions and fresh admission with precise timestamps; preserve unfinished work and original child identity for replies.
  • Require a live wait process and keep pending human requests visible through continuity.
  • Preserve registered Codex scratch boundaries, native file-change evidence, proof wrappers, active test logs, and separate crew canary results.
  • Bind Codex approval evidence to the complete genuine user message, with strict replay and legacy-record protections.
  • Preserve legacy settlement reading and give same-turn settlements distinct message identities through pending queues.
  • Require fresh native Codex task identity for each new crew step and verify explicit completion against progress history.
  • Document actual host limits and update all release versions to 26.11.14; Claude manifest changes are version-only.

How to verify

  • Final local CI on d73da59: all seven stages passed using Python 3.13.18 in 27m44s. The affected-test resume ran 4,359 cases with one skip; the existing summary parser undercounts this as 4,345. The earlier full run on 18944d0 exposed the settlement regression; that failed run is retained separately and is not represented as passing evidence.
  • Actual PR CI run 44 passed all three jobs in 36m39s: 4,398 cases on each Python version, with 41 skips on 3.9.13 and 40 on 3.13.17. Skipped draft runs are excluded.
  • Automatic main CI run 45 passed both Python jobs and security on merge commit 9e4c77e in 37m24s. Its tree matches the local and PR checks.
  • Main raw results: 4,398 cases per Python, with 41 skips on 3.9.13 and 40 on 3.13.17. Its Semgrep run had six timeouts (guard.py 3, hooks.py 1, pipelines.py 1, progress.py 1), retained as a coverage limit.
  • Settlement correction: 380 affected tests passed on Python 3.13 and 3.9; six regressions fail on 18944d0 and pass five repetitions with the fix. Independent security review passed 37 focused tests on each interpreter and 123 adjacent tests on 3.13.
  • Approval regression: 123 affected tests passed on Python 3.13 and 3.9; seven regressions fail on baseline 6ac8eed and pass five repetitions with the fix.
  • Independent release review: 168 focused tests passed on each interpreter for the initial integration; the final nine-file settlement/guidance delta received a new independent approval and 37 focused tests on each interpreter. Test audit, stubs and whitespace checks passed.
  • Independent security review: 21 Codex tests and 11 Claude/provenance controls passed; source approval covers one pinned version after supported restart.
  • Packaging: all manifest versions equal VERSION; focused package checks and documentation links passed.
  • Published v26.11.14: the downloaded archive matches all 640 tag entries, including content and file modes; 73 Python files compile on 3.9.6 and 3.13.18. SHA-256: 84e564ce6409fc8a6fcae6b29eb1ad1ba5385424ad15e7ae2f9f8eed2db0ec96. No extraction or global installation occurred.
  • Manual check: installed-host acceptance after update/restart remains separate. Source tests and publication do not establish idle-host reactivation or complete installed parity.

Risk and rollback

Runtime changes are limited to Codex paths, with paired Claude controls. Restart Codex sessions after updating; concurrent old/new writers for one session are not certified. Final local Semgrep reported zero findings across 497 rules and 611 files, but five rule timeouts limit coverage (three in guard.py, one in hooks.py, one in progress.py). Remote security in run 44 also passed with zero findings and nine timeouts: cli.py 1, gitx.py 1, guard.py 3, hooks.py 1, pipelines.py 1, progress.py 2. Logs retain these limits; scanner exit zero is not exhaustive SAST. OSV/Trivy found no supported dependency/vulnerability inventory, and Zizmor reported one ignored and one suppressed result. No credentials, installed hooks, or managed approval records were changed for delivery.

An operator can return to the previous pinned release through the supported installer and restart affected sessions.

Links

Codex native lifecycle, file events and projectless app context did not consistently match the existing coordination and verification assumptions.

Root cause: Native interruptions were ignored or hidden by rounded observations; ended children lost question and reply ownership; transcript-tail attribution lost metadata; bounded waits and diagnostic artifacts were mistaken for persistent monitoring or delivered changes.

Reconcile native stops using precise admissions, retain Codex question and reply identity, show pending requests and crew scores, validate registered checkout scratch access, audit native changes with bounded metadata, recognize supported uv proof commands and protect active Codex logs. Preserve Claude behavior with provider-specific paths and paired controls. Document real host checks separately from source contracts.

Verified: Targeted red-green baseline proofs, affected Python 3.9 and 3.13 tests, independent source and scratch-security reviews, test audits and scanners passed. Full Python 3.9 and 3.13 validation is still running; installed-host acceptance remains partial.

Refs: #15
The full suite exposed a parity fixture that treated command text as an active Codex wake source after that behavior had been corrected.

Keep Claude foreground and background assertions. For Codex, prove command text alone still warns, synchronize a real registered child wait before checking Stop, and verify the reminder returns after bounded termination and cleanup.

Verified: The original case failed in the 4,385-test Python 3.13 run. The corrected case passes independently; 104 parity and gate tests pass, the changed case fails against 3a3bb8d, and independent review approves. Full Python 3.9 and resumed CI remain in progress.

Refs: #15
Corrected user grants and later decision answers can arrive in one Codex turn and must retain their own transcript-backed evidence.

Root cause: Codex steering messages share turn_id, but prompt evidence deduplicated that identifier as if it uniquely identified one user message.

Bind Codex evidence to the native turn and complete-message digest, confirm exact genuine transcript text, and retain atomic legacy replay protection. Keep Claude prompt identities unchanged and document the update/restart boundary.

Verified: 123 affected tests pass on Python3.13 and3.9;7 regressions fail baseline6ac8eed and pass5 repetitions; independent security controls and168 review tests pass on bothPythons; docs, test audit, stubs and diff checks pass.

Refs: https://github.com/fireflysoftwaresolutions/devkit
Ship the reviewed Codex coordination and approval evidence corrections together in one versioned release.

Synchronize the CLI, Claude and Codex plugin, and Desktop manifest versions with the changelog. Package metadata changes do not alter Claude behavior.

Verified: Release metadata tests pass on Python3.13 and3.9; Python3.9 reports108 raw tests. Three JSON versions match VERSION26.11.14;48 changelog links resolve; final independent review approves the26-file release diff.

Refs: https://github.com/fireflysoftwaresolutions/devkit
Distinct genuine user messages can share a Codex turn, while existing settlement evidence must remain readable after the grant identity upgrade.

Root cause: The strict grant identity decoder narrowed the shared settlement reader, and settlement hooks and queues still keyed distinct messages by the whole native turn.

Keep new grant admission strict, restore bounded legacy reading, propagate complete message identity through Codex settlement and queue consumption, and preserve legacy replay protection in both orders. Document fresh native step identity and explicit completion for Codex coordination.

Verified: 380 affected tests passed on Python3.13 and3.9; six regressions fail18944d0 and pass five repetitions. Independent security and code reviews each passed37focused tests on both runtimes; security review also passed123adjacent tests. Test audit, scoped stubs, docs structure/links and diff checks passed;15 historical changelog prose warnings remain. Final committed-tree CI follows.

Refs: #18
@ancongui
ancongui marked this pull request as ready for review November 11, 2026 06:40
@ancongui
ancongui merged commit 9e4c77e into main Nov 11, 2026
5 checks passed
@ancongui
ancongui deleted the release/26.11.14 branch November 11, 2026 07:19
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