Skip to content

refactor(qa): share unknown confidence results - #148200

Merged
vincentkoc merged 2 commits into
mainfrom
refactor/qa-confidence-unknown-results-20260914
Sep 14, 2026
Merged

vincentkoc merged 2 commits into
mainfrom
refactor/qa-confidence-unknown-results-20260914

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 14, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

QA Lab repeats the same unknown-evidence result in 19 branches across its confidence evaluators. This specific consolidation is part of the maintainer-requested maintainability and duplication-reduction deliverable.

User Impact

No user-visible behavior changes. Incomplete evidence remains unknown; failures with an explicit outcome retain their configured classification.

Why This Change Was Made

A private unknownLaneEvaluation(details) constructor now owns the repeated result shape. Each branch retains its conditions, message and evaluation order. Results remain fresh objects with the same property order and no added verdict or skipped-count fields.

Production: −61 lines. Tests: +128 lines, in the existing Markdown report suite.

Evidence

  • Signed head: 9a865516d0a0815b043bf7be558d36e1e42cfd50.
  • Eight added report-builder cases cover malformed suite/generic/replay/self-test evidence, replay error precedence and two classified-failure controls. Assertions cover complete serialized report JSON, property order, omitted fields and Markdown rows.
  • The added cases use the existing Markdown report fixtures and remain within the active test-file lint limit.
  • Scoped formatting and git diff --check passed. Exact-head static review passed with no findings.
  • Normal exact-head CI passed: all three QA shards, 257 files and 3,795 tests, including all 15 Markdown cases (all eight additions) and 39 existing confidence-report cases. Selected types, lint, formatting and required gates passed.
  • Exact-head ClawSweeper review reports no findings or remaining before-merge items.
  • No live provider or before/after production replay is claimed.

@vincentkoc vincentkoc self-assigned this Sep 14, 2026
@clawsweeper

clawsweeper Bot commented Sep 14, 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.

@vincentkoc
vincentkoc marked this pull request as ready for review September 14, 2026 11:12
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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 14, 2026
@clawsweeper

clawsweeper Bot commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 14, 2026, 7:31 AM ET / 11:31 UTC.

ClawSweeper review

What this changes

QA Lab consolidates repeated unknown-evidence results into a private helper and adds report-level checks that preserve classification and error precedence.

Merge readiness

✅ Ready for maintainer review

Keep open: this is a focused, behavior-preserving cleanup with no actionable findings. Current main still contains the repetition, and the maintainer-authored PR remains useful.

Priority: P3
Reviewed head: 9a865516d0a0815b043bf7be558d36e1e42cfd50

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, behavior-preserving consolidation with useful report-boundary coverage and no actionable findings.
Proof confidence 🌊 off-meta tidepool Not applicable: This MEMBER-authored internal refactor is exempt from external-contributor runtime proof; report-builder tests are supplemental, and no live execution is claimed.
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 internal refactor is exempt from external-contributor runtime proof; report-builder tests are supplemental, and no live execution is claimed.
Evidence reviewed 7 items Introduced production change: The complete merge-base-to-head production diff replaces identical unknown-result literals while preserving conditions, messages, evaluation order, and fresh object allocation.
Classification boundary: Explicit unknown status bypasses configured failure classification; status-less failures retain that classification. The report builder and CLI consumer preserve this distinction, with no public API, persistent-format, or authority changes.
Report-level coverage: Eight added cases exercise malformed evidence, competing replay errors, and classified-failure controls through the real report builder, asserting serialized output and Markdown rows. Existing sibling coverage also checks incomplete suites, skipped evidence, and self-test canaries. Tests were inspected, not executed under this read-only review.
Findings None None.
Security None None.

How this fits together

QA Lab reads test artifacts and a lane manifest to classify available evidence. Its confidence report produces JSON, Markdown, and a pass/fail result for the reporting command.

flowchart LR
  A[Lane manifest] --> C[Confidence evaluator]
  B[QA artifacts] --> C
  C --> D[Unknown evidence result]
  C --> E[Pass or classified failure]
  D --> F[Report aggregation]
  E --> F
  F --> G[JSON and Markdown reports]
  F --> H[Command verdict]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source -61, Tests +128. Total +67 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 34 95 -61
Tests 1 128 0 +128
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 162 95 +67

Review metrics

None.

Technical review

Best possible solution:

Keep one private constructor for unknown evidence while preserving the existing classification rules and report output.

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

Not applicable: this is a behavior-preserving refactor, not a reported runtime defect; source inspection confirms the repeated result shape.

Is this the best way to solve the issue?

Yes: a private constructor removes repetition without introducing another classification owner or changing callers.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P3: This internal consolidation preserves established behavior and adds no user-facing capability or configuration.
  • 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 internal refactor is exempt from external-contributor runtime proof; report-builder tests are supplemental, and no live execution is claimed.

Label justifications:

  • P3: This internal consolidation preserves established behavior and adds no user-facing capability or configuration.
  • 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 internal refactor is exempt from external-contributor runtime proof; report-builder tests are supplemental, and no live execution is claimed.

Evidence

What I checked:

  • Introduced production change: The complete merge-base-to-head production diff replaces identical unknown-result literals while preserving conditions, messages, evaluation order, and fresh object allocation. (extensions/qa-lab/src/confidence-report.ts:363, 9a865516d0a0)
  • Classification boundary: Explicit unknown status bypasses configured failure classification; status-less failures retain that classification. The report builder and CLI consumer preserve this distinction, with no public API, persistent-format, or authority changes. (extensions/qa-lab/src/confidence-report.ts:723, 9a865516d0a0)
  • Report-level coverage: Eight added cases exercise malformed evidence, competing replay errors, and classified-failure controls through the real report builder, asserting serialized output and Markdown rows. Existing sibling coverage also checks incomplete suites, skipped evidence, and self-test canaries. Tests were inspected, not executed under this read-only review. (extensions/qa-lab/src/confidence-report.markdown.test.ts:19, 9a865516d0a0)
  • Current-main necessity: Both affected files are identical between fetched main and the pinned merge base, so the proposed consolidation is not already present on fetched main. (extensions/qa-lab/src/confidence-report.ts, ee0cf1662306)
  • Release comparison: The latest supplied release retains inline unknown-result construction; this is cleanup of existing behavior, not a newly shipped bug fix. (extensions/qa-lab/src/confidence-report.ts:364, 3a9d69db306c)
  • Area history and inspection limits: Available main history records recent confidence-report work by Peter Steinberger and earlier type-localization and classification work by Vincent Koc. Deeper follow/blame inspection failed while retrieving historical objects, so no source-line introduction attribution is claimed. GitHub canonical search also returned a limited-mode 403; no replacement PR was established. (extensions/qa-lab/src/confidence-report.ts, ee0cf1662306)

Likely related people:

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

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.

@vincentkoc
vincentkoc merged commit 1a751f6 into main Sep 14, 2026
178 checks passed
@vincentkoc
vincentkoc deleted the refactor/qa-confidence-unknown-results-20260914 branch September 14, 2026 16:41
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Sep 14, 2026
* commit '3c08384584f57787a26da9998488233fc15ccf7e': (122 commits)
  fix(agents): keep tool result summaries when middleware details exceed shape limits (#147805)
  test: make full-suite fixtures portable across runtimes (#148247)
  refactor(qa): share unknown confidence results (#148200)
  chore(android): remove unused test dependencies and duplicate Wear settings (#148231)
  test: reuse compiled preflight in startup fixtures (#148330)
  test(wizard): route recovery integration through database forks (#148337)
  refactor(plugins): simplify provider auth patch recursion (#147933)
  fix(cli): drain failed web capability output (#148234)
  refactor(android): remove unused production helpers (#148233)
  fix(plugins): scope feed integrity to hosted ClawHub (#148220)
  test(qa): compare Telegram entities semantically (#148219)
  test(qa): recognize native Slack exec progress rows (#148217)
  test(cron): distinguish repeated delivery incidents (#148151)
  test(qa): preserve restart command ownership (#148218)
  test(qa): isolate bundled skill CLI gateway state (#148150)
  test(qa): align process lifecycle contracts (#148149)
  improve(media): reduce metadata fetched during orphan cleanup (#148244)
  fix(matrix): retain sync state runtime for deferred persistence (#148152)
  test: deduplicate gateway watch exit fixtures (#148237)
  refactor(cli): derive daemon status contract from gatherer (#148108)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 15, 2026
* refactor(qa): share unknown confidence results

* test(qa): keep confidence fixtures within file limits
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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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