Skip to content

improve(qa): allow scorecard generation from incomplete evidence - #117975

Merged
RomneyDa merged 1 commit into
mainfrom
codex/maturity-allow-failures
Aug 2, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
codex/maturity-allow-failures

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Aug 2, 2026

Copy link
Copy Markdown
Member

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_failures input to the maturity and reusable QA workflows. Strict behavior remains the default. The QA command still runs without its CLI --allow-failures option, preserves the genuine exit code and qaPassed=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_failures for 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

  • Focused tests: corepack pnpm test test/scripts/render-maturity-docs.test.ts test/scripts/ci-workflow-guards.test.ts — 103 passed (run).
  • Changed-check routing: node scripts/check-changed.mjs — scripts, test-root, docs, and tooling lanes passed (run).
  • Workflow/action validation: corepack pnpm check:workflows — actionlint, zizmor, and interpolation guards passed (run).
  • Targeted formatting and git diff --check passed.
  • autoreview --mode local reported no accepted/actionable findings.
  • Codex prompt/runtime contract inspected directly: ../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.
  • Local node scripts/check-workflows.mjs was 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.

@RomneyDa
RomneyDa marked this pull request as ready for review August 2, 2026 11:55
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: M maintainer Maintainer-authored PR labels Aug 2, 2026
@RomneyDa RomneyDa changed the title QA: allow scorecard generation from incomplete evidence improve(qa): allow scorecard generation from incomplete evidence Aug 2, 2026
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. labels Aug 2, 2026
@clawsweeper

clawsweeper Bot commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 2, 2026, 8:01 AM ET / 12:01 UTC.

ClawSweeper review

What this changes

Adds an opt-in allow_failures input to QA and maturity workflows so scorecards can render validated incomplete evidence while keeping pass-only Coverage and default failure behavior.

Merge readiness

⚠️ Ready for maintainer review - 4 items remain

This member-authored, maintainer-labeled PR must remain open for explicit maintainer handling. The workflow and renderer changes preserve a strict default and add focused guard coverage, but the proposed success result after a failed QA run is an intentional CI-policy choice; repository policy also requires a direct Codex-source check for the changed prompt, and ../codex is unavailable here.

Priority: P3
Reviewed head: 1b1c5a89233c58f68c735f8c5c35b039734e418b
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Focused tests and workflow validation support the implementation, while the changed CI-result contract remains for maintainer approval.
Proof confidence 🌊 off-meta tidepool Not applicable: This member-authored workflow PR includes linked remote validation; external-contributor real-behavior proof is not the applicable merge gate.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This member-authored workflow PR includes linked remote validation; external-contributor real-behavior proof is not the applicable merge gate.
Evidence reviewed 6 items Protected maintainer PR: The provided GitHub context identifies a member-authored PR carrying the maintainer label, which requires explicit maintainer handling rather than automated cleanup.
Strict renderer default: The renderer defaults allowFailures to false, accepts the CLI flag only when explicit, and emits an incomplete-evidence disclosure instead of awarding Coverage to non-passing entries.
Validated-evidence gate: The reusable workflow only suppresses a nonzero QA exit when allow_failures is true and the evidence-validation step succeeded; default behavior still exits with the QA command’s code.
Findings None None.
Security None None.

How this fits together

The 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]
Loading

Decision needed

Question Recommendation
Should an explicitly enabled allow_failures run be successful after a failed QA command once its evidence is validated? Approve marked incomplete runs: Permit the opt-in success conclusion after confirming every downstream consumer distinguishes the incomplete evidence marker from normal passing QA.

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

  • Resolve merge risk (P1) - With allow_failures enabled, the reusable QA workflow returns success after a failed QA command; maintainers need to confirm its callers and release/reporting consumers treat the artifact as incomplete evidence rather than a normal passing QA run.
  • Resolve merge risk (P1) - The changed Codex-facing prompt has not received the repository-required direct ../codex contract inspection because that sibling source checkout is absent.
  • Complete next step (P2) - A maintainer must decide the successful-workflow contract after QA failure and complete the required Codex-source check.
Agent review details

Security

None.

PR surface

Tests +119, Docs +2, Config +48, Other +25. Total +194 across 6 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 121 2 +119
Docs 1 2 0 +2
Config 2 53 5 +48
Generated 0 0 0 0
Other 1 26 1 +25
Total 6 202 8 +194

Review metrics

Metric Value Why it matters
Workflow policy surface 1 input added and propagated through 2 workflows The opt-in changes reusable GitHub Actions failure propagation after a nonzero QA exit.

Stored data model

Persistent data-model change detected: serialized state: .github/workflows/qa-profile-evidence.yml. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Audit success consumers before merge (recommended)
    Add focused evidence that all callers and release/reporting gates distinguish opt-in incomplete evidence from a passing QA run.
  2. Accept the CI-policy tradeoff
    Approve the current opt-in behavior and explicitly document that workflow success can mean validated incomplete evidence in this mode.
  3. Pause the policy change
    Keep the PR open until maintainers choose the operational contract for a successful reusable QA workflow after QA failure.

Technical review

Best 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.

Labels

Label changes:

  • add P3: This is a bounded, opt-in maintainer QA-reporting improvement with strict behavior preserved by default.
  • add merge-risk: 🚨 automation: The PR changes GitHub Actions result semantics and scorecard artifact rendering after QA failures.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This member-authored workflow PR includes linked remote validation; external-contributor real-behavior proof is not the applicable merge gate.

Label justifications:

  • P3: This is a bounded, opt-in maintainer QA-reporting improvement with strict behavior preserved by default.
  • merge-risk: 🚨 automation: The PR changes GitHub Actions result semantics and scorecard artifact rendering after QA failures.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This member-authored workflow PR includes linked remote validation; external-contributor real-behavior proof is not the applicable merge gate.

Evidence

What I checked:

  • Protected maintainer PR: The provided GitHub context identifies a member-authored PR carrying the maintainer label, which requires explicit maintainer handling rather than automated cleanup. (1b1c5a89233c)
  • Strict renderer default: The renderer defaults allowFailures to false, accepts the CLI flag only when explicit, and emits an incomplete-evidence disclosure instead of awarding Coverage to non-passing entries. (scripts/qa/render-maturity-docs.ts:103, 1b1c5a89233c)
  • Validated-evidence gate: The reusable workflow only suppresses a nonzero QA exit when allow_failures is true and the evidence-validation step succeeded; default behavior still exits with the QA command’s code. (.github/workflows/qa-profile-evidence.yml:439, 1b1c5a89233c)
  • Focused regression coverage: The branch tests both the incomplete-evidence renderer outcome and the shell failure gate’s allowed, rejected, and missing-exit-code cases. (test/scripts/ci-workflow-guards.test.ts:5377, 1b1c5a89233c)
  • Existing workflow provenance: The current execution-result, evidence-upload, and failure-gate lifecycle is attributed by blame to the foundational QA-evidence workflow implementation; this PR adds the opt-in branch to that owner boundary. (.github/workflows/qa-profile-evidence.yml:424, c4d355133f)
  • Codex source gate unavailable: The root policy requires direct inspection of sibling ../codex for a changed Codex-facing prompt. The specified files do not exist in this read-only environment, so no Codex prompt/runtime contract verdict is claimed. (.github/codex/prompts/maturity-scorecard-agent.md:19)

Likely related people:

  • Shakker: Git blame attributes the existing QA-result reporting, artifact upload, and final failure gate to this foundational workflow revision. (role: introduced the QA evidence workflow; confidence: high; commits: c4d355133f; files: .github/workflows/qa-profile-evidence.yml, .github/workflows/maturity-scorecard.yml)
  • RomneyDa: Authored the current renderer, workflow, prompt, and focused-test changes. (role: recent area contributor; confidence: high; commits: 1b1c5a89233c; files: scripts/qa/render-maturity-docs.ts, test/scripts/ci-workflow-guards.test.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Confirm all consumers distinguish a marked incomplete-evidence run from normal passing QA.
  • Complete the repository-required direct ../codex prompt/runtime contract inspection.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@RomneyDa
RomneyDa merged commit dea6fb3 into main Aug 2, 2026
158 of 171 checks passed
@RomneyDa
RomneyDa deleted the codex/maturity-allow-failures branch August 2, 2026 12:19
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant