Repository navigation
fix(qa-lab): include plural execution channels - #126140
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: found issues before merge. Reviewed August 19, 2026, 12:22 AM ET / 04:22 UTC. ClawSweeper reviewWhat this changesThe PR normalizes singular and plural QA Lab scenario channel declarations and repairs the QA Lab browser formatter build path. Merge readinessKeep open: the plural-channel repair is source-backed, but the unchanged P1 browser error-redaction finding still blocks merge because bearer credentials can reach rendered QA Lab errors. Priority: P1 Review scores
Verification
How this fits togetherQA Lab reads scenario catalog entries into selectable execution lanes, then launches the chosen lane from its browser UI. The same UI formats request and run failures for display to the operator. flowchart LR
A[Scenario catalog] --> B[Channel normalization]
B --> C[QA Lab bootstrap]
C --> D[Execution selector]
D --> E[Run planner]
E --> F[Execution lane]
F --> G[Browser error formatter]
G --> H[Rendered QA Lab error]
Before merge
Findings
Agent review detailsSecurityNeeds attention: The new browser error formatter can expose bearer credentials in QA Lab’s rendered error state. PR surfaceSource -1, Tests +69, Other +1. Total +69 across 17 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the single normalized channels flow, then make its browser error path use a browser-safe canonical secret redactor and cover bearer plus structured-secret failures at the rendered UI boundary. Do we have a high-confidence way to reproduce the issue? Yes—current-main source proves plural-only channels are omitted from bootstrap, and the PR-head browser source proves an Authorization bearer string can pass unchanged into rendered error state; no runtime execution was performed in this read-only review. Is this the best way to solve the issue? No—the channel normalization is a coherent owner-boundary repair, but the browser formatter must preserve bearer and structured-secret redaction before this is safe to merge. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 8c3b3c6ea8d3. LabelsLabel changes:
Label justifications:
EvidenceSecurity concerns:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
60d4ee4 to
0d85724
Compare
0d85724 to
e080cc5
Compare
|
Exact-head repair evidence for
Exact final-tree proof:
Branch delta versus current Exact-head CI is attached and running: https://github.com/openclaw/openclaw/actions/runs/32217998568 The unrelated |
|
CI repair is now pushed at e6e65f816456d19ef76755a104f4d11a8fba9951. Root cause: SQLite session writes used a private queue that state-dir teardown could not drain, so a late writer could reopen SQLite handles and recreate a temporary fixture while removal was in progress. The fix moves that queue to the session writer cleanup owner, drains both writer queues and file-lock work, then closes agent and shared SQLite handles. Proof: focused cleanup/consumer coverage passed 22/22 tests. The exact generated Repair LOC: production +17/-4 (net +13); tests and test support +61/-1 (net +60). One earlier local broad rerun hit a host-saturation timeout in @clawsweeper re-review — this post-review push changes the core test lifecycle beyond the earlier review finding. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Exact-head CI exposed one attributable lifecycle regression in the first repair: unscoped test cleanup closed an unrelated shared SQLite handle in both Linux and Windows node shards. Head 90abc2e66454c7f5f2848a0ea8c50f84f14a8007 scopes final handle closure to the retiring state directory while preserving writer-queue and file-lock drain ordering. Follow-up proof: the exact failing Cumulative CI repair LOC from the prior PR head: production +17/-4 (net +13); tests and test support +86/-7 (net +79). @clawsweeper re-review this current head; the follow-up changes the core test lifecycle beyond the earlier review. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
90abc2e to
d155f4c
Compare
|
Current head is d155f4c after one clean rebase onto origin/main 57a65de. Range-diff shows the six PR commits unchanged; the only added commit removes duplicate ownership of Post-rebase proof: full-suite ownership audit, canonical Codex dynamic-tool test, and session cleanup consumers passed 35/35 across three Vitest shards; targeted changed gates passed; fresh P1 autoreview is clean. Direct sibling Codex inspection confirmed dynamic tools remain the experimental @clawsweeper re-review this rebased current head. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Current head a3cea86 is land-ready. The moving-main test collision is resolved with exactly one Exact-head CI completed green: https://github.com/openclaw/openclaw/actions/runs/32228169316. Native review artifacts validate as ClawSweeper: the latest completed durable review is stale (reviewed head 60d4ee429c46) and requested browser bearer/structured-secret redaction plus rendered-error coverage; both moves are implemented on this branch. Fresh current-head review run https://github.com/openclaw/clawsweeper/actions/runs/32228186768 remained in progress past its 08:16 UTC lease and published no verdict or Rank-up moves. Explicit justified skip: there are no unpublished current-head moves that can be applied, and repository policy says late review publication does not block landing after actionable prior findings, exact-head CI, and native review are complete. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
* fix(qa-lab): include plural execution channels * chore(qa-lab): register browser error adapter * fix(qa-lab): keep browser errors within boundaries * fix(qa-lab): redact browser error credentials * fix(sessions): drain sqlite writers during test cleanup * fix(sessions): scope sqlite test handle cleanup * test(codex): dedupe run attempt tools shard * test(codex): converge run attempt tools shard
What Problem This Solves
Fixes an issue where QA Lab users could not see or launch a channel that was declared only through plural
execution.channels. Buzz was present in the scenario catalog but absent from the bootstrap/UI channel list, so selecting the plural-onlychannel-canaryscenario could not reach its live Buzz lane.This also restores the QA Lab browser build on current main. The UI imported the plugin SDK error formatter through an optional peer stub that did not export
formatErrorMessage, preventing any honest pre-fix UI capture.Why This Change Was Made
Scenario loading now normalizes singular
execution.channeland pluralexecution.channelsinto one canonical channels list exactly once. Singular declarations retain precedence and exact-pin behavior; plural declarations retain OR-list behavior, authored order, and existing deduplication validation. Bootstrap, validation, profile planning, CI selection, evidence sharding, and execution consume that normalized list consistently.The browser build now source-aliases the existing Plugin SDK formatter import to a package-internal browser shim that preserves the canonical normalization formatter. QA Lab applies its existing inline-secret redaction at the UI boundary before rendering the result, and the Knip entry list records the build-only shim as a real root. This avoids the optional peer stub without changing dependencies, SDK contracts, product configuration, or runtime behavior outside the repaired build.
User Impact
Buzz now appears in QA Lab's Execution channel selector and plural-only scenarios launch on Buzz. Existing singular channel declarations remain exact pins, while plural declarations continue to mean "any of these channels." The QA Lab UI builds again.
AI-assisted; the patch and evidence were reviewed and verified before publication.
Evidence
Before
The bootstrap regression failed because the channel catalog omitted
buzz.A true pre-fix UI screenshot is infeasible because current main cannot build QA Lab. The exact production build fails after transforming 40 modules with:
No baseline image was fabricated.
After
node scripts/run-vitest.mjs ...— 199/199 post-rebase owner tests passed across catalog, lane, profile/sharding, CI, server launch, and browser interaction. Earlier focused validation also passed 232 tests, with a separate key rerun at 134/134.pnpm check:changed— passed all selected core, extension, test, and tooling checks.pnpm deadcode:full— passed after registering the Vite alias target as an analyzed build entry.node --import tsx scripts/run-additional-boundary-checks.mts— passed the complete additional boundary suite, including plugin/Core import ownership and normalization facade rules.pnpm qa:lab:build— passed; Vite transformed 41 modules.buzz,discord,matrix,msteams,qa-channel,slack,telegram,whatsapp.subagent-completion-direct-fallbackscenario times out, matching the prior head. The repaired dependency and additional-boundary checks pass locally with the exact CI commands.