Fix Private Lima Codex policy introspection - #323
Merged
Conversation
Co-authored-by: Codex <noreply@openai.com>
Co-authored-by: Codex <noreply@openai.com>
toku345
marked this pull request as ready for review
August 8, 2026 06:41
|
| Filename | Overview |
|---|---|
| tools/outer-loop-lima-calibration/runtime/codex.py | Implements deadline-bound, sequential JSONL communication and fail-closed indexed-origin normalization without an identified defect. |
| tests/outer_loop_lima/test_runtime_policy.py | Adds handshake-order and indexed-provenance regression coverage, including missing and mixed-origin rejection. |
| tools/outer-loop-lima-calibration/manifest.json | Refreshes the hashes for the modified runtime module and README. |
| tools/outer-loop-lima-calibration/README.md | Documents request sequencing and the complete indexed-origin requirement. |
| docs/design/codex-claude-outer-loop-private-lima-calibration-implementation.md | Updates the design contract to describe stateful reads and fail-closed list provenance. |
Sequence Diagram
sequenceDiagram
participant V as C00 Validator
participant C as Codex app-server
V->>C: initialize (id 1)
C-->>V: initialize result
V->>C: initialized notification
V->>C: config/read (id 2)
C-->>V: config result with indexed origins
V->>C: configRequirements/read (id 3)
C-->>V: requirements result
V->>V: Compare effective values and provenance
Reviews (1): Last reviewed commit: "Handle buffered Codex app-server JSONL" | Re-trigger Greptile
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.
Summary
Root cause
Codex 0.144.5 requires a stateful initialize handshake, but the validator sent the complete JSONL request stream before reading responses. In addition, list-valued config origins are reported per index (for example,
writable_roots.0) while the normalizer only accepted a parent origin key.Impact
The C00 runtime-policy validator can now inspect the pinned Codex guest without a false block while preserving fail-closed behavior for missing or mixed provenance.
Validation
PYTHONDONTWRITEBYTECODE=1 python3 -W error::ResourceWarning -m unittest discover -s tests/outer_loop_lima -p 'test_*.py'— 148 tests passed, 1 skippedgit diff --checkand bytecode absence checks — passedCANDIDATE_CODEX_POLICY_PASS(non-authoritative, candidate module loaded from guest/tmp)