Skip to content

test(qa): embed profile scorecard evidence - #93109

Merged
RomneyDa merged 3 commits into
mainfrom
dallin/qa-scorecard-profile-report
Jun 15, 2026
Merged

RomneyDa merged 3 commits into
mainfrom
dallin/qa-scorecard-profile-report

Conversation

@RomneyDa

Copy link
Copy Markdown
Member

Summary

  • Embeds a taxonomy-backed profile scorecard into qa-evidence.json whenever qa run --qa-profile ... dispatches through qa suite.
  • Keeps per-test coverage evidence canonical in entries[]; the scorecard only adds aggregate feature/category counts plus missing coverage IDs for the selected profile slice.
  • Documents the profile scorecard evidence behavior and the current smoke-ci baseline.

Smoke-ci baseline

qa coverage --json currently reports the smoke-ci profile at 14 taxonomy categories, 214 selected coverage IDs, and 83 primary-fulfilled coverage IDs, roughly 38.8% by coverage ID. Missing coverage remains non-blocking but is now visible in the profile run evidence.

Verification

  • node scripts/run-vitest.mjs extensions/qa-lab/src/evidence-summary.test.ts extensions/qa-lab/src/cli.runtime.test.ts extensions/qa-lab/src/coverage-report.test.ts
  • pnpm check:test-types
  • pnpm check:docs
  • node scripts/run-node.mjs qa coverage --json
  • git diff --check
  • pnpm exec oxfmt --check extensions/qa-lab/src/cli.runtime.ts extensions/qa-lab/src/cli.runtime.test.ts extensions/qa-lab/src/evidence-summary.ts extensions/qa-lab/src/scorecard-evidence.ts extensions/qa-lab/src/scorecard-taxonomy.ts
  • .agents/skills/autoreview/scripts/autoreview --mode local clean after addressing two accepted P3 findings

Note: broad pnpm format:check still fails on pre-existing unrelated formatting issues outside this patch; the changed TypeScript files pass targeted oxfmt.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation extensions: qa-lab size: M maintainer Maintainer-authored PR labels Jun 15, 2026
@clawsweeper

clawsweeper Bot commented Jun 15, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed June 14, 2026, 11:50 PM ET / 03:50 UTC.

Summary
The PR adds an optional profile scorecard block to QA Lab qa-evidence.json for qa run --qa-profile, updates schema/helpers/tests, and documents the artifact behavior.

PR surface: Source +282, Tests +93, Docs +8. Total +383 across 7 files.

Reproducibility: not applicable. This PR adds QA evidence artifact behavior rather than fixing a reported runtime defect. Source inspection and CI checks cover the changed path, but there is no failing current-main bug to reproduce.

Review metrics: 1 noteworthy metric.

  • QA evidence schema surface: 1 optional top-level field added. The new scorecard object changes the machine-readable QA evidence artifact shape for profile-dispatched runs.

Stored data model
Persistent data-model change detected: database schema: extensions/qa-lab/src/cli.runtime.test.ts, serialized state: extensions/qa-lab/src/cli.runtime.test.ts. Confirm migration or upgrade compatibility proof before merge.

Merge readiness
Overall: 🐚 platinum hermit
Proof: 🌊 off-meta tidepool
Patch quality: 🐚 platinum hermit
Result: ready for maintainer review.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • none.

Risk before merge

  • [P1] The PR intentionally adds an optional top-level field to the serialized QA evidence artifact for profile runs; maintainers should be comfortable treating that documented schema addition as the current artifact contract.

Maintainer options:

  1. Accept the additive artifact schema (recommended)
    Maintainers can treat the optional profile scorecard as the documented QA evidence contract for profile runs and proceed with normal merge gates.
  2. Require downstream compatibility proof
    Maintainers can ask for an explicit check of any known strict qa-evidence.json consumers before merging the schema addition.

Next step before merge

  • The PR is maintainer-labeled and mainly needs normal maintainer review of the additive QA evidence artifact contract; no narrow automated repair remains.

Security
Cleared: No concrete security or supply-chain concern found; the diff changes QA Lab TypeScript, tests, and docs without dependency, workflow, permission, credential, or package-resolution changes.

Review details

Best possible solution:

Land this after maintainer review accepts the additive qa-evidence.json scorecard schema and the relevant CI remains green.

Do we have a high-confidence way to reproduce the issue?

Not applicable: this PR adds QA evidence artifact behavior rather than fixing a reported runtime defect. Source inspection and CI checks cover the changed path, but there is no failing current-main bug to reproduce.

Is this the best way to solve the issue?

Yes, with maintainer acceptance of the artifact contract. Attaching the scorecard after the profile-dispatched suite run keeps per-test evidence canonical in entries[] and localizes the aggregate view to QA Lab evidence handling.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 663fabbe30eb.

Label changes

Label changes:

  • add merge-risk: 🚨 compatibility: The diff changes a serialized QA artifact contract by adding a new optional top-level scorecard field to qa-evidence.json.
  • 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 is a maintainer-labeled MEMBER PR with local command verification and CI checks, so the external contributor real-behavior proof gate does not apply.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: This is normal-priority QA Lab evidence infrastructure work with limited runtime blast radius and no current user outage.
  • merge-risk: 🚨 compatibility: The diff changes a serialized QA artifact contract by adding a new optional top-level scorecard field to qa-evidence.json.
  • 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 is a maintainer-labeled MEMBER PR with local command verification and CI checks, so the external contributor real-behavior proof gate does not apply.
Evidence reviewed

PR surface:

Source +282, Tests +93, Docs +8. Total +383 across 7 files.

View PR surface stats
Area Files Added Removed Net
Source 4 286 4 +282
Tests 1 95 2 +93
Docs 2 10 2 +8
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 7 391 8 +383

What I checked:

  • PR head implements scorecard attachment at the QA profile boundary: At the latest head, runQaProfileCommand captures the suite evidence path, calls attachQaProfileScorecardEvidenceToFile, and prints the scorecard artifact path after qa suite returns. (extensions/qa-lab/src/cli.runtime.ts:667, a29a71384d73)
  • PR head keeps per-entry evidence canonical: The new scorecard helper builds aggregate category/feature counts from validated entries[] coverage roles and writes the optional top-level scorecard field back to the same evidence file. (extensions/qa-lab/src/scorecard-evidence.ts:71, a29a71384d73)
  • Schema and docs were updated for the new artifact field: The evidence schema accepts an optional scorecard object, and the docs explain that profile-dispatched qa suite evidence includes a profile scorecard while individual entries remain the source of truth. (extensions/qa-lab/src/evidence-summary.ts:199, a29a71384d73)
  • Current main does not already include this behavior: Current main dispatches qa run --qa-profile through runQaSuiteCommand without attaching a scorecard to the returned qa-evidence.json, so this PR still carries unique work. (extensions/qa-lab/src/cli.runtime.ts:622, 663fabbe30eb)
  • Prior lint blocker is cleared on latest head: Live PR checks show check-lint, check-test-types, check-docs, preflight, and Real behavior proof succeeded for the latest head after the return-shape follow-up commits. (a29a71384d73)
  • Related RFC tracker remains open: The related RFC implementation tracker is still open and describes scorecard consolidation as staged maintainer-owned QA work, which supports keeping this implementation PR open for review rather than cleanup closure.

Likely related people:

  • RomneyDa: Authored the current PR and the merged QA profile runner and unified evidence work that this PR extends; blame for runQaProfileCommand points to that feature commit. (role: feature owner / recent area contributor; confidence: high; commits: e8db9c3bc0df, a29a71384d73; files: extensions/qa-lab/src/cli.runtime.ts, extensions/qa-lab/src/evidence-summary.ts, docs/concepts/qa-e2e-automation.md)
  • iloveleon19: Local blame shows the current scorecard-taxonomy.ts implementation in commit 4892bbc10f46c1e85cb8873cb0a9960fb0cceb51, although the surrounding PR history makes ownership ambiguous. (role: adjacent current-line provenance; confidence: low; commits: 4892bbc10f46; files: extensions/qa-lab/src/scorecard-taxonomy.ts)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

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.

How this review workflow works
  • 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.

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. P2 Normal backlog priority with limited blast radius. labels Jun 15, 2026
@RomneyDa
RomneyDa force-pushed the dallin/qa-scorecard-profile-report branch from ab33247 to 5581413 Compare June 15, 2026 03:39
@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. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Jun 15, 2026
@RomneyDa
RomneyDa merged commit 3d38c9a into main Jun 15, 2026
180 of 188 checks passed
@RomneyDa
RomneyDa deleted the dallin/qa-scorecard-profile-report branch June 15, 2026 03:51
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jun 15, 2026
* test(qa): embed profile scorecard evidence

* test(qa): fix profile runner return lint

* test(qa): satisfy suite command lint return
wangmiao0668000666 pushed a commit to wangmiao0668000666/openclaw that referenced this pull request Jun 17, 2026
* test(qa): embed profile scorecard evidence

* test(qa): fix profile runner return lint

* test(qa): satisfy suite command lint return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation extensions: qa-lab maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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