Skip to content

fix(qa): bind coverage IDs to producer assertions - #144000

Merged
vincentkoc merged 1 commit into
mainfrom
fix/qa-assertion-attribution-20260910
Sep 13, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/qa-assertion-attribution-20260910

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 10, 2026 •

Copy link
Copy Markdown
Member
Additional instructions

MUST: Keep Allow edits from maintainers enabled for this PR so maintainers can help update the branch when needed.

What Problem This Solves

Fixes an issue where operators reviewing QA onboarding coverage would see all four capabilities fulfilled when only one onboarding boundary passed and the producer exited with a failure.

Why This Change Was Made

The onboarding producer now records an explicit, catalog-validated coverage ID for each boundary, and the importer intersects existing claims with catalog ownership while capping their roles. The net 19 production lines establish those ownership checks; empty diagnostics, secondary and nonstandard roles, execution metadata, and terminal-failure precedence remain intact.

User Impact

A run with one passing and three failing onboarding boundaries reports 1/4 coverage (25%), preserves all four boundary results, and retains the terminal failure. Full and slim evidence retain partial coverage and failures in diagnostic rendering; default rendering still rejects failed evidence.

Evidence

  • Before the fix: all four new regression cases failed against the original production files. Both full and slim onboarding cases incorrectly fulfilled 4/4 capabilities instead of 1/4.
  • The end-to-end attribution test runs the actual onboarding producer with controlled child markers and a nonzero exit, imports its fresh artifact, then checks the real scorecard and renderer. This boundary test does not require Docker.
  • Final-source proof: 32 tests in the two focused files and 51 sibling tests covering native runners, Docker batch evidence, the shared atomic writer, and scorecards passed. Six unchanged doctor-contract tests passed in the preceding gate stage: 89 unique passing tests across eight files and separate stages.
  • All 29 selected changed-surface gates passed collectively. After correcting one lint finding, the affected tests, production/test type checks, formatting, and targeted lint were refreshed; the previously unrun gate suffix also passed.
  • Verified commit: 45e9a302af30df33784cac8f2355f44021f8e4e8. Proof ran on Linux x64 with Node 24.19.0 and pnpm 12.3.4 after a frozen-lock dependency install. The complete materialized source was verified before and after each stage; final manifest SHA-256: bdcc64f18622a5be41730c7eb2025608907c493fe2ae5f6aef93f08498be3276. Independent source/proof review and structured review found no actionable issues.
  • This qualifies standalone assertion attribution. Separate combined-stack proof with the semantic identity change in fix(maturity): bind evidence to semantic taxonomy identity #143976 remains outstanding and requires later integration of its owner-supplied fixture identity. Full-suite, packaging, and live-provider qualification were not run.

Punchcard-Session: silver-brook-timber-ry

Punchcard-Session: silver-brook-timber-ry
@vincentkoc vincentkoc self-assigned this Sep 10, 2026
@clawsweeper

clawsweeper Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts extensions: qa-lab size: M maintainer Maintainer-authored PR labels Sep 10, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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. labels Sep 10, 2026
@clawsweeper

clawsweeper Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 13, 2026, 2:39 PM ET / 18:39 UTC (Revision 2).

ClawSweeper review

What this changes

The PR ties onboarding coverage to individual assertion results and prevents QA evidence imports from inventing or promoting coverage claims.

Merge readiness

⛔ Blocked before merge - 2 items remain

The fix remains necessary on current main, and no introduced correctness or security defect was found. The merged taxonomy-identity work addresses a different problem; combined renderer qualification remains outstanding.

Priority: P2
Reviewed head: 45e9a302af30df33784cac8f2355f44021f8e4e8

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused owner-level correction with meaningful regression coverage and one concrete integration-validation gap.
Proof confidence 🌊 off-meta tidepool Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate. Its reported Linux regression runs exercise the real producer/importer/renderer with controlled child output; they do not establish combined current-taxonomy rendering, which the body explicitly leaves outstanding.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The MEMBER-authored PR is exempt from the external-contributor proof gate. Its reported Linux regression runs exercise the real producer/importer/renderer with controlled child output; they do not establish combined current-taxonomy rendering, which the body explicitly leaves outstanding.
Evidence reviewed 8 items Current main still contains the defect: At fetched main, withScenarioCoverage replaces each producer entry's claims with every primary and secondary ID from the scenario. The scorecard counts IDs on passing primary entries, so one passing onboarding boundary can fulfill all four IDs.
Latest release retains the same assignment: Inspection of the supplied latest-release commit for v2026.9.4 also found coverageForScenario assigning all catalog claims to each imported entry; this release does not contain the proposed correction.
Bounded producer attribution: The reviewed importer intersects producer claims with catalog ownership, demotes primary claims owned only as secondary, and preserves results and execution metadata. Existing terminal-failure precedence remains intact.
Findings None None.
Security None None.

How this fits together

QA Lab runs scenarios and imports producer results into evidence artifacts. Scorecards use passing primary coverage claims to report which capabilities were exercised.

flowchart LR
  A[Onboarding assertions] --> B[Producer results and coverage]
  C[Scenario catalog ownership] --> D[Evidence importer]
  B --> D
  D --> E[Passing primary coverage]
  E --> F[Scorecard and maturity report]
Loading

Before merge

  • Resolve merge risk (P1) - Standalone attribution validation does not yet establish current numeric renderer coverage with the merged taxonomy-identity contract; historical output can satisfy the existing broad 25% assertion.
  • Complete next step (P2) - Complete the documented combined-stack qualification using a matching fixture taxonomy identity, asserting current 25% coverage and retained failures in full and slim modes.
Agent review details

Security

None.

PR surface

Source +4, Tests +298, Other +15. Total +317 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 1 14 10 +4
Tests 2 310 12 +298
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 16 1 +15
Total 4 340 23 +317

Review metrics

Metric Value Why it matters
Production versus regression coverage Production net +19 lines; tests net +298 lines Production growth supplies two ownership checks, while regression coverage exercises claim capping and the producer-to-renderer path.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep assertion-specific producer claims capped by catalog ownership, with current scorecard rendering qualified against a matching taxonomy identity.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep assertion-specific producer claims capped by catalog ownership, with current scorecard rendering qualified against a matching taxonomy identity.

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

Yes, from source: one passing onboarding producer entry receives all four catalog IDs on current main, and passing primary entries fulfill scorecard coverage. This review did not execute the regression.

Is this the best way to solve the issue?

Yes for the production repair: claim intersection and per-boundary attribution reuse existing owners without adding an API or configuration path. Renderer qualification should additionally distinguish current coverage from historical percentages.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 69213b315cb3.

Labels

Label justifications:

  • P2: Incorrect QA coverage attribution can mislead maturity reporting but has a bounded operational blast radius.
  • 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: The MEMBER-authored PR is exempt from the external-contributor proof gate. Its reported Linux regression runs exercise the real producer/importer/renderer with controlled child output; they do not establish combined current-taxonomy rendering, which the body explicitly leaves outstanding.

Evidence

What I checked:

  • Current main still contains the defect: At fetched main, withScenarioCoverage replaces each producer entry's claims with every primary and secondary ID from the scenario. The scorecard counts IDs on passing primary entries, so one passing onboarding boundary can fulfill all four IDs. (extensions/qa-lab/src/test-file-scenario-runner.ts:250, 69213b315cb3)
  • Latest release retains the same assignment: Inspection of the supplied latest-release commit for v2026.9.4 also found coverageForScenario assigning all catalog claims to each imported entry; this release does not contain the proposed correction. (extensions/qa-lab/src/test-file-scenario-runner.ts, 3a9d69db306c)
  • Bounded producer attribution: The reviewed importer intersects producer claims with catalog ownership, demotes primary claims owned only as secondary, and preserves results and execution metadata. Existing terminal-failure precedence remains intact. (extensions/qa-lab/src/test-file-scenario-runner.ts:243, 45e9a302af30)
  • Existing sibling producer contract: The shared script evidence writer already records catalog-derived coverage in its producer artifact. Those producers retain their claims under the new intersection; onboarding supplies its separate per-boundary claims. (test/e2e/qa-lab/runtime/script-evidence.ts:150, 45e9a302af30)
  • Focused regression evidence: The new full/slim cases exercise the actual onboarding producer with controlled child markers and exit 7, then the importer, scorecard, and renderer. They assert one fulfilled ID out of four and retained failures. The captured PR body reports pre-fix failures and 89 passing tests across separate validation stages at this head; no tests were executed during this read-only review. (extensions/qa-lab/src/test-file-scenario-runner.coverage.test.ts:107, 45e9a302af30)
  • Combined renderer qualification gap: The new fixture omits profilePlan.taxonomyIdentity and checks only that rendered Markdown contains 25%. Current main classifies such evidence as historical unknown, excludes it from current coverage, and still renders historical percentages. Thus that assertion alone cannot qualify current coverage after integration, matching the limitation explicitly recorded in the PR body. (scripts/qa/render-maturity-docs.ts:801, 69213b315cb3)

Likely related people:

  • vincentkoc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

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

  • Bind the renderer fixture to its taxonomy identity and verify that 25% appears as current coverage in both full and slim modes.

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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-09-10T11:50:00.281Z sha 45e9a30 :: needs maintainer review before merge. :: none

@vincentkoc
vincentkoc marked this pull request as ready for review September 13, 2026 18:29
@vincentkoc
vincentkoc merged commit 28887b5 into main Sep 13, 2026
183 checks passed
@vincentkoc
vincentkoc deleted the fix/qa-assertion-attribution-20260910 branch September 13, 2026 18:50
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Sep 13, 2026
* commit '28887b564210326174413d0d8ade72b38268d5f3': (1827 commits)
  fix(qa): bind coverage IDs to producer assertions (#144000)
  fix(linux): explain FreeBSD desktop setup prerequisites (#147211)
  fix(memory): split embedding batches rejected for an input array item cap (#139541)
  test: isolate timing metadata persistence from inherited settings (#147112)
  refactor(status): retire test-only helper publication (#147071)
  improve: reduce workspace agent lookup work for large fleets (#147144)
  refactor(macos): share connect credential selection (#144214)
  fix(plugins): restore Slack onboarding after core updates (#147109)
  refactor: share ANSI compatibility matching (#146998)
  fix(test): settle Models catalog before picker open (#147215)
  test(ui): reuse panel tab drag fixture (#147250)
  fix(install): use system Node for FreeBSD CLI setup (#147204)
  fix(cli): explain MCP probes with no enabled servers (#147216)
  docs: require UI screenshots in chat and PR (#147263)
  docs(skills): clarify remote gog OAuth setup for Gateway hosts (#145945)
  test: replace idle account catalog waits with synchronization (#147228)
  feat(qa): preserve maturity decision context (#147219)
  feat(macos): clarify agent activity in native chat (#147197)
  fix(runtime): complete Bun compatibility follow-ups (#147085)
  fix(ui): release closed chat panes after queued updates (#147240)
  ...
vincentkoc added a commit that referenced this pull request Sep 13, 2026
* commit 'ac59d5e09eb468dc23cf95e447608b57e71b52af': (176 commits)
  improve(gateway): avoid redundant startup preflight work (#147285)
  test(macos): observe readiness cancellation and deadline ownership (#145056)
  fix(ci): route QA Profile Evidence to its run-status owner test (#147293)
  fix(install): preserve runtime links when Node validation fails (#147221)
  test(auto-reply): reuse memory session fixtures (#147262)
  fix: hide subagent sessions from Activity (#147253)
  ci: record resources for slow runtime test commands (#147254)
  fix(update): recognize FreeBSD boot identities in triage leases (#147243)
  refactor(active-memory): share closing tag line scan (#147031)
  fix: resume Settings autosave after Reload Config (#147136)
  fix(cli): keep conversation context after cancellation (#147139)
  fix(channels): make system-agent approval cards actionable (#147152)
  refactor: retain shared database handles until their last worker closes (#147246)
  refactor(slack): share workspace-qualified target resolution (#147024)
  refactor(msteams): remove duplicate quoted-table test (#147270)
  fix(qa): bind coverage IDs to producer assertions (#144000)
  fix(linux): explain FreeBSD desktop setup prerequisites (#147211)
  fix(memory): split embedding batches rejected for an input array item cap (#139541)
  test: isolate timing metadata persistence from inherited settings (#147112)
  refactor(status): retire test-only helper publication (#147071)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extensions: qa-lab maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. 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