Repository navigation
ci: emit typed early failure diagnostics - #817
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
Code Review
This pull request introduces a typed early-failure diagnostic system (ci-diagnostic-v1) for CI workflows, adding a new write_failure_diagnostic.py script, a test suite, and integrating diagnostic aggregation into aggregate_validation_summary.py and write_lane_summary.py. The review feedback correctly identifies a critical bug in write_failure_diagnostic.py where args.structured_input and args.log_file are checked directly for truthiness despite being Path objects; because empty Path objects are truthy, this leads to unintended directory-reading attempts and incorrect error classifications.
* ci: emit typed early failure diagnostics * ci: repair typed diagnostic input handling * ci: preserve explicit diagnostic identities * ci: allowlist diagnostic artifact filenames
Adds a bounded ci-diagnostic-v1 producer for Rust compiler, Clippy, rustfmt, and planner evidence. It preserves the existing ci-proof-v1 lane summary contract, projects only typed diagnostic fields into aggregation, and records missing/cancelled lane states without raw logs, commands, secrets, or absolute paths. rust-ci-full captures rustfmt and full-Clippy failures immediately after their commands, uploads typed artifacts, and preserves the original command exit status. Hosted fixture coverage runs in the existing full Rust general job.