Repository navigation
improve(qa): allow scorecard generation from incomplete evidence - #117975
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 2, 2026, 8:01 AM ET / 12:01 UTC. ClawSweeper reviewWhat this changesAdds an opt-in Merge readinessThis member-authored, Priority: P3 Review scores
Verification
How this fits togetherThe maturity scorecard workflow invokes the reusable QA-evidence workflow, validates its artifact, and renders scorecard documentation. The new per-run input changes whether validated non-passing evidence can proceed to rendering and how that scorecard is disclosed. flowchart LR
A[Maintainer dispatch input] --> B[Maturity scorecard workflow]
B --> C[Reusable QA evidence workflow]
C --> D[Validated QA evidence artifact]
D --> E[Scorecard renderer]
E --> F[Marked scorecard documentation]
Decision needed
Why: This is a maintainer-owned CI policy decision because workflow success is an operational contract for callers and reporting gates, not a fact that source inspection can resolve. Before merge
Agent review detailsSecurityNone. PR surfaceTests +119, Docs +2, Config +48, Other +25. Total +194 across 6 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain strict default behavior, preserve the marked incomplete-evidence path with pass-only Coverage, and accept it only after maintainers approve the reusable-workflow success semantics and the direct Codex contract check is completed. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR adds an opt-in maintainer workflow capability rather than fixing an existing user-facing defect; source inspection establishes the changed execution path. Is this the best way to solve the issue? Unclear: the evidence-validation and renderer boundaries are coherent, but allowing a reusable QA workflow to succeed after a failed QA run needs maintainer policy approval. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 4dedd5c77ebb. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
What Problem This Solves
Maturity scorecard generation currently stops whenever QA reports a failed or blocked check, even when maintainers need a temporary per-run scorecard from otherwise valid evidence. That makes incomplete evidence impossible to inspect without weakening the QA command or committing a workflow-policy change that must later be reverted.
Why This Change Was Made
This AI-assisted change adds an opt-in
allow_failuresinput to the maturity and reusable QA workflows. Strict behavior remains the default. The QA command still runs without its CLI--allow-failuresoption, preserves the genuine exit code andqaPassed=false, validates and uploads the evidence, and suppresses only the final QA-result failure after valid evidence has been confirmed.The renderer accepts valid incomplete evidence only when explicitly enabled. It continues to use the existing pass-only scorecard evidence calculation, so failed, blocked, and skipped checks provide no Coverage. Invalid or missing evidence, schema errors, wrong refs or profiles, setup failures, upload failures, and runtime crashes remain fatal.
Architectural ownership stays split at the existing boundaries: the reusable QA workflow owns execution truth and its final job result, the renderer owns evidence admissibility and disclosure, and the existing scorecard-evidence producer remains the single Coverage-policy owner. No compatibility path or duplicate coverage calculation was added.
Production/config delta: +81/-6 lines; tests: +121/-2 lines. The positive production delta is the explicit workflow input/propagation, integrity gate, renderer option, and operator-visible disclosure required for this per-run capability.
User Impact
Maintainers can enable
allow_failuresfor one workflow run and generate a visibly marked scorecard from valid incomplete evidence. QA failures remain recorded truthfully, and only passing evidence earns Coverage. The setting is temporary per run and requires no later re-enable or revert commit.Credential-unavailable lanes remain missing Coverage, but the agent prompt no longer treats that blockage alone as a reason to lower Quality or Completeness.
Evidence
corepack pnpm test test/scripts/render-maturity-docs.test.ts test/scripts/ci-workflow-guards.test.ts— 103 passed (run).node scripts/check-changed.mjs— scripts, test-root, docs, and tooling lanes passed (run).corepack pnpm check:workflows— actionlint, zizmor, and interpolation guards passed (run).git diff --checkpassed.autoreview --mode localreported no accepted/actionable findings.../codex/codex-rs/exec/src/cli.rs:81,../codex/codex-rs/exec/src/lib.rs:650,../codex/codex-rs/exec/src/lib.rs:1761, and../codex/codex-rs/core/tests/suite/prompt_debug_tests.rs:26.node scripts/check-workflows.mjswas not used as proof because the machine's Python 3.9.6 cannot run the pinned zizmor hook; the repository workflow check passed remotely with its supported toolchain.