Skip to content

fix(qa): restore QA Lab web build - #127310

Merged
steipete merged 1 commit into
mainfrom
codex/autoqa-qalab-time-runtime-alias
Aug 21, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/autoqa-qalab-time-runtime-alias

Conversation

@steipete

@steipete steipete commented Aug 21, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where developers starting or building QA Lab would hit a Vite missing-export failure after the web UI's duration formatter moved behind the Plugin SDK time-runtime seam.

pnpm qa:lab:build failed on current main with:

[MISSING_EXPORT] "formatDurationCompact" is not exported by "__vite-optional-peer-dep:openclaw/plugin-sdk/time-runtime:@openclaw/qa-lab"

Because the standard QA Lab Docker startup builds this UI unless explicitly skipped, the missing resolver also blocked the default qa:lab:up path when no prebuilt UI was available.

Why This Change Was Made

The QA Lab Vite source resolver now maps openclaw/plugin-sdk/time-runtime through the canonical workspace @openclaw/plugin-sdk facade, matching its existing browser aliases for the error and text-utility SDK runtimes. This keeps extension production code on the public SDK seam and preserves the dependency centralization from #126119 instead of restoring a direct pretty-ms dependency.

No config-string unit test was added: the real pnpm qa:lab:build command is the authoritative regression boundary and failed before this change for the exact missing alias.

User Impact

Developers can build and start QA Lab normally again. The generated UI and runtime behavior are unchanged; this only restores source-time resolution for the existing SDK import.

Evidence

  • Authentic pre-fix reproduction on current main: pnpm qa:lab:build failed with the missing formatDurationCompact export shown above.
  • Post-fix, post-rebase pnpm qa:lab:build passed: Vite transformed 46 modules and emitted the complete production bundle in 108 ms.
  • QA Lab web owner suite passed: 5 files, 35/35 tests.
  • Full node scripts/check-changed.mjs passed, including the extension-to-core source boundary guard; the exact production build, boundary guard, and all 35 owner tests passed again after rebase.
  • Patch ID is 88588345576dac9659006c4118ca51dbd83c584d on current origin/main.
  • Deslop pass found no cleanup; two fresh Codex autoreviews were clean and rated the original patch and CI follow-up correct at 0.99 confidence.
  • Four live duplicate searches found no exact open issue or PR.

Production LOC: +4/-0; tests: +0/-0. The four lines add the missing canonical resolver capability at the existing Vite alias owner.

AI-assisted implementation and verification; no agent transcript is attached.

@clawsweeper

clawsweeper Bot commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@steipete
steipete marked this pull request as ready for review August 21, 2026 17:40
@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 Aug 21, 2026
@clawsweeper

clawsweeper Bot commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 21, 2026, 1:46 PM ET / 17:46 UTC.

ClawSweeper review

What this changes

The PR adds a QA Lab Vite alias so its browser build can resolve the existing public Plugin SDK duration formatter.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

Keep open. Current main imports the public time-runtime facade in QA Lab’s web source but lacks its Vite alias; this PR restores that owner-boundary mapping with no correctness finding. The branch is mergeable, but the supplied exact-head status still has one failed and several pending checks, so it is not merge-ready yet.

Priority: P2
Reviewed head: fb00ad6071c75a40c26674daf0fd2242b725094f
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused source-level repair with credible production-build evidence; merge readiness depends only on completing and clearing exact-head CI.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: This maintainer-authored PR records before/after production-build behavior in its body; the external-contributor proof gate does not apply.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored PR records before/after production-build behavior in its body; the external-contributor proof gate does not apply.
Evidence reviewed 7 items Current-main failure path: QA Lab web rendering imports the duration formatter from the public time-runtime SDK subpath, while current main’s Vite aliases cover only error and text runtimes.
Patch restores the missing resolver: The branch adds the matching time-runtime alias at the existing browser-alias owner.
Facade and formatter contract: The resolved SDK facade exports formatDurationCompact, whose implementation is a browser-compatible formatting helper backed by the repository’s pinned pretty-ms dependency.
Findings None None.
Security None None.

Live Verification

Command: pnpm qa:lab:build

Result: PASS (completed)

pnpm qa:lab:build
runner@runnervm76f27:/tmp/clawsweeper-live-proof-127310-qY2p6O/target$ pnpm qa:lab:build
$ vite build --config extensions/qa-lab/web/vite.config.ts
vite v8.1.5 building client environment for production...
transforming...✓ 45 modules transformed.
rendering chunks...
computing gzip size...
extensions/qa-lab/web/dist/index.html                   0.44 kB │ gzip:  0.28 kB
extensions/qa-lab/web/dist/assets/index-25PiUOfv.css   57.48 kB │ gzip:  9.70 kB
extensions/qa-lab/web/dist/assets/index-0-z7K9nU.js   158.75 kB │ gzip: 37.68 kB

✓ built in 75ms
runner@runnervm76f27:/tmp/clawsweeper-live-proof-127310-qY2p6O/target$ pnpm qa:lab:build
$ vite build --config extensions/qa-lab/web/vite.config.ts
vite v8.1.5 building client environment for production...
transforming...✓ 45 modules transformed.
rendering chunks...
computing gzip size...
extensions/qa-lab/web/dist/index.html                   0.44 kB │ gzip:  0.28 kB
extensions/qa-lab/web/dist/assets/index-25PiUOfv.css   57.48 kB │ gzip:  9.70 kB
extensions/qa-lab/web/dist/assets/index-0-z7K9nU.js   158.75 kB │ gzip: 37.68 kB

✓ built in 74ms
runner@runnervm76f27:/tmp/clawsweeper-live-proof-127310-qY2p6O/target$



























Assertions:

  • PASS expect_output: built in

How this fits together

QA Lab’s web UI is bundled by Vite, which maps selected public Plugin SDK runtime imports to source facades during local and Docker startup builds. The resolved formatter produces duration text in the generated QA Lab UI bundle.

flowchart LR
A[QA Lab web source] --> B[Vite module resolver]
B --> C[Plugin SDK time facade]
C --> D[Duration formatter]
D --> E[QA Lab browser bundle]
Loading

Decision needed

Question Recommendation
Once exact-head CI is complete, should this maintainer-authored QA Lab build repair be landed? Land after exact-head green: Resolve or verify the failed boundary job, wait for the pending required checks, and merge this focused alias repair.

Why: The protected maintainer label and incomplete check state require an explicit human merge decision even though the source repair is sound.

Before merge

  • Resolve merge risk (P1) - The supplied exact-head status still includes a failed boundary check and pending jobs; resolve or verify that failure before landing.
  • Resolve merge risk (P1) - Production code grows by four lines; the explicit third alias is justified by the distinct public facade target, but a generic abstraction would add more surface than it removes.
Agent review details

Security

None.

PR surface

Source +4. Total +4 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 1 4 0 +4
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 4 0 +4

Review metrics

Metric Value Why it matters
Production versus test LOC production +4, tests +0 The only growth is one explicit resolver mapping; the authoritative regression proof is the QA Lab production build.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep the explicit public-SDK alias, then land after the exact-head failed check is resolved or shown unrelated and all required checks complete green.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep the explicit public-SDK alias, then land after the exact-head failed check is resolved or shown unrelated and all required checks complete green.

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

Yes, at source level: current main imports the time-runtime SDK subpath but omits its Vite resolver alias; the PR body also records the resulting production-build error. This review did not execute the build because the checkout is read-only.

Is this the best way to solve the issue?

Yes. Resolving the already-public SDK facade at the existing browser alias owner preserves plugin boundary and dependency ownership; restoring a plugin-local formatter dependency would duplicate that ownership.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 10a3df4fb699.

Labels

Label changes:

  • add P2: This repairs a concrete developer-facing QA Lab build failure with limited product-runtime blast radius.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit 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 maintainer-authored PR records before/after production-build behavior in its body; the external-contributor proof gate does not apply.

Label justifications:

  • P2: This repairs a concrete developer-facing QA Lab build failure with limited product-runtime blast radius.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit 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 maintainer-authored PR records before/after production-build behavior in its body; the external-contributor proof gate does not apply.

Evidence

What I checked:

Likely related people:

  • steipete: Current-main history ties Peter Steinberger to the QA Lab web configuration, the time-runtime facade, and the preceding dependency consolidation. (role: feature owner; confidence: high; commits: 085044cd5f41, baefd067bb23, bb60b5312489; files: extensions/qa-lab/web/vite.config.ts, extensions/qa-lab/web/src/ui-render-utils.ts, src/plugin-sdk/time-runtime.ts)
  • Amp: Amp authored the proposed resolver repair and co-authored the current-main change that created the connected QA Lab web surface. (role: recent area contributor; confidence: medium; commits: fb00ad6071c7, 085044cd5f41; files: extensions/qa-lab/web/vite.config.ts, extensions/qa-lab/web/src/ui-render-utils.ts)

Rank-up moves

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

  • Resolve or confirm the failed boundary-check result, then wait for all required exact-head checks to finish green.

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.

@steipete
steipete force-pushed the codex/autoqa-qalab-time-runtime-alias branch from fb00ad6 to eec8f81 Compare August 21, 2026 18:03
@steipete
steipete force-pushed the codex/autoqa-qalab-time-runtime-alias branch from eec8f81 to 2509996 Compare August 21, 2026 18:05

Copy link
Copy Markdown
Contributor Author

Land-ready proof for 2509996ac1e2266b3bbc037931ac6f341f4b945f:

  • Fixed the prior boundary-check failure by resolving openclaw/plugin-sdk/time-runtime through the workspace @openclaw/plugin-sdk facade; no extension production file imports core src/** directly.
  • pnpm qa:lab:build passed: Vite transformed 46 modules and emitted the complete production bundle.
  • node scripts/run-vitest.mjs extensions/qa-lab/web passed: 5 files, 35/35 tests.
  • pnpm run lint:plugins:no-extension-src-imports passed: 4,880 production extension files checked.
  • node scripts/check-changed.mjs passed.
  • Fresh Codex autoreview returned no actionable findings and rated the CI follow-up correct at 0.99 confidence.
  • Exact-head CI run 32511538925 is green.
  • Native review artifacts validated, and OPENCLAW_TESTBOX=1 scripts/pr prepare-run 127310 passed using hosted exact-head gates.

ClawSweeper's rank-up move (resolve the boundary job and obtain exact-head green CI) is complete. No proof gaps remain for this source-time build repair.

@steipete
steipete merged commit f33952e into main Aug 21, 2026
110 checks passed
@steipete
steipete deleted the codex/autoqa-qalab-time-runtime-alias branch August 21, 2026 18:20

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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. size: XS 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.

2 participants