Repository navigation
fix(devtools): require evidence and fail closed - #4146
Conversation
Carry render-all diagnosis tokens through verification receipts, translate surface SystemExit failures, and explain every emitted render diagnosis. Extend focused coverage across real subprocess extraction, check-mode input failures, invalid results, and stamp ordering.
|
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: a7741d6b50
ℹ️ 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".
## 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) and `storage-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 type `protocol` (#4173 vocabulary); the test pinned `message == 3`. Its protective core — the authoredness split — is unchanged. - `test_select_returns_fzf_choice_in_json_in_a_real_pty`: the enriched row JSON (#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. - Storage-scale `test_sanitized_codex_804_revision_recovery_proof` (long-red: fails at least back to #4146, invisible for the same never-reached-step reason): the fixture's rewind cursor passed `source_revision` for a JSONL file, routing it down the SQLite-snapshot branch where the NFC content hash was recorded as the byte-prefix authority — unmatchable by `plan_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 test` on both serial tests → 2 passed; full serial marker suite locally: 25→27 passed for the fixed pair. - codex-804: planner phase now completes; the test still fails downstream (append revision-application decisions missing for deferred appends) — dispatched to a dedicated fix lane, tracked for corpus closure. - `devtools verify --quick` → all 15 gates ok. ## Residuals - codex-804's remaining ledger gap is the sole known corpus-red; lane in flight. 🤖 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 64a9bd0):
Resolving every thread listed; confirmed defects are fixed under the named bead. |
Summary
Require positive complete verification evidence and make every render failure fail closed.
Problem
A process could exit zero after incomplete collection or execution, and callers could record a successful step before durable evidence evaluation rewrote the result. Required gates could also misclassify missing or semantic evidence. Separately, render pages could report failure while the aggregate command exited successfully, SystemExit could bypass ordinary handling, and punctuation could make a recorded diagnosis unreachable from its explanation.
Solution
Verification
Ref polylogue-empnr.
Ref polylogue-bsxoh.