Repository navigation
fix: align serial corpus contracts and codex-804 cursor shape - #4235
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7b9ede0031
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…#4236) ## Summary Closes the last corpus-red test: the codex-804 revision-recovery proof's missing append ledger decisions, plus the Codex mixed text/image parsing regression underneath it. ## Problem (evidence) `test_sanitized_codex_804_revision_recovery_proof` (storage-scale step, long-red and invisible until corpus run 7 first reached that step; first half fixed in #4235): - The fixture bound its raw revision under logical source key `codex:<native_id>` — the pre-identity-model spelling; the canonical key is `codex-session:<native_id>`, so replay found no chain and all 16 append raws lacked `raw_revision_applications` decisions. - Underneath: #4184's transport-representation change made `content_blocks_from_segments` skip `input_text`/`output_text` items (the owning parser lowers them) — but Codex's mixed text+image path relied on the shared converter for text, silently dropping it. ## Solution - Fixture key corrected to the canonical origin-prefixed spelling. - `content_blocks_from_segments` gains an explicit `lower_transport_text` opt-in; Codex's mixed-content path uses it. Default behavior unchanged for all other providers. Parser regression test added. ## Verification - Focused proof: 1 passed (all 16 append decisions present, `applied_append` each). - `devtools test tests/unit/scenarios/ tests/unit/sources/test_live_batch_support.py` + parser suite: 220 passed. - `devtools verify --quick`: all gates ok. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_014BQsaB1NBY8mTR6yZByfMA
|
Closing out open Codex review threads on this PR (evidence checked against master at bf68918):
Resolving every thread listed; confirmed defects are fixed under the named bead. |
Summary
Fixes the two serial-lane corpus failures exposed when corpus run 7 reached step 19 for the first time, and production-shapes the codex-804 fixture's cursor surgery (first half of that storage-scale failure).
Problem (evidence)
Corpus runs abort at the first failed step, so
pytest-native-serial-all(step 19) andstorage-scale(step 20) had not executed in any recent run; run 7 (c53460c8) was the first to reach them after the parallel parts went green. Serial failures:test_archive_facets_expose_provider_role_and_material_origin_split: runtime-protocol material now carries message typeprotocol(fix: classify provider system messages from envelope evidence #4173 vocabulary); the test pinnedmessage == 3. Its protective core — the authoredness split — is unchanged.test_select_returns_fzf_choice_in_json_in_a_real_pty: the enriched row JSON (feat(cli): unify session row rendering contracts #4201:cost_usd,outcome,relative_time) outgrew the 200-column PTY, hard-wrapping mid-token so the JSON parse hit the wrap control character. PTY widened to 400 columns; expected payload updated with the three fields.test_sanitized_codex_804_revision_recovery_proof(long-red: fails at least back to fix(devtools): require evidence and fail closed #4146, invisible for the same never-reached-step reason): the fixture's rewind cursor passedsource_revisionfor a JSONL file, routing it down the SQLite-snapshot branch where the NFC content hash was recorded as the byte-prefix authority — unmatchable byplan_append's sha256-of-bytes proof. Dropping it restores the JSONL branch, which derives the prefix authority from the rewound on-disk bytes; the planner now plans all 16 fragments.Verification
devtools teston both serial tests → 2 passed; full serial marker suite locally: 25→27 passed for the fixed pair.devtools verify --quick→ all 15 gates ok.Residuals
🤖 Generated with Claude Code
https://claude.ai/code/session_014BQsaB1NBY8mTR6yZByfMA