Repository navigation
refactor(qa-lab): deslop QA Lab fourth pass - #159582
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed September 27, 2026, 7:02 PM ET / 23:02 UTC (Revision 17). ClawSweeper reviewWhat this changesQA Lab, OpenClaw’s scenario-testing plugin, removes retired Matrix runners and redundant QA code, consolidates suite and live-transport helpers, and adds focused QA fixes and regression tests. Merge readiness⛔ Blocked before merge - 3 items remain Keep open: the QA Lab cleanup and focused fixes remain absent from current main. The changed QA source matches the earlier proved and reviewed head, and this review found no blocking patch defect. Priority: P3 Review scores
Verification
How this fits togetherQA Lab takes scenario definitions and transport settings, runs them through a Gateway and channel adapters, then writes evidence and reports. Its viewer presents those results to QA operators. flowchart LR
A[Scenario definitions] --> B[QA Lab suite planner]
B --> C[Gateway and QA Channel]
B --> D[Live transport adapters]
C --> E[Scenario assertions]
D --> E
E --> F[Evidence and reports]
F --> G[QA Lab viewer]
Before merge
Agent review detailsSecurityNone. PR surfacePR surface statistics unavailable: the file list is incomplete. Review metrics
Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep one owner for each QA scenario and report contract, with portable YAML registrations intact and the proved suite behavior carried through landing. Do we have a high-confidence way to reproduce the issue? Not applicable to the cleanup as a whole. The PR records negative controls for its four incidental defects, but this read-only review did not execute a current-main reproduction. Is this the best way to solve the issue? Yes. The branch removes retired handlers and forwarding code while retaining the registered YAML scenarios and using existing QA owners. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against f651a47ed73d. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (16 earlier review cycles; latest 8 shown)
|
074804e to
5a36d06
Compare
9f38b5a to
34c7e6f
Compare
34c7e6f to
e92861e
Compare
e92861e to
cf3e571
Compare
cf3e571 to
0370085
Compare
Head branch was modified
* refactor(qa-lab): deslop QA Lab fourth pass * test(qa-lab): defer planning selector repair to existing PR * test(qa-lab): isolate mock request linkage coverage * chore(qa-lab): shrink removed assertion baseline entries * refactor(qa-lab): make scenario and dependency ownership explicit
What Problem This Solves
QA Lab still retained forwarding layers, duplicated result projection, and unregistered Matrix implementations after its earlier cleanup passes.
User Impact
Keeps registered QA scenarios, assertions, live-transport behavior, and report contracts intact while removing 1,050 net production lines. Also repairs four small QA defects found during the sweep. No operator configuration, schema, protocol, or release changes.
Why This Change Was Made
Fixes found along the way
$HOME/and~/browser profile paths on the remote host while keeping the suffix literal.The dormant planning-lane selector defect is already owned by #156908; its duplicate repair was removed from this PR.
Evidence
Current head:
0370085c72d004f32fd403f4c18c27467a2c4f51. Fresh independent review of the full rebased diff found no actionable P0–P2 issue. Main's Tasks/TaskFlow retirement addedreadNativeQaSubagentRunsto the removed forwarding barrel; the resolved cutover imports it from its existing owner and retains it in the scenario dependency map.Blacksmith Testbox
tbx_01m3j1a27w4s1bpzh3bzqg3va1(run, stopped) completed:pnpm test:extensions:batch qa-lab qa-channel: 4,195 tests in 329 files pass.src/infra/fs-safe-import-boundary.test.tsand its three sibling suites.pnpm buildandpnpm qa:lab:buildpass.Current landing blocker:
node scripts/check-changed.mjsand current-head CI 36341623358 fail the inherited type error atsrc/agents/tools/media-generate-background-retention.test.ts:233: the spy forwardsconsume(result)instead of the reader's required(result, owner). Existing #159819 and #159836 both own the exact repair, so this PR does not duplicate it. The fix is not yet on main as of the latest check. After it lands, rebase and refresh the type/check and CI gates before landing this PR.Before that main rebase, full
check-changedand CI 36335764787 were green (151 successful jobs, 22 intentional skips). The refreshed QA, consumer, boundary, build, and runtime proofs above are current; the inherited type gate remains red.Regression negative controls remain valid for the unchanged fixes: original source fails two mock-evidence cases, three Matrix cases, and three Mantis home-relative-path cases. The candidate passes the focused suites; the absolute-path shell control passes on both revisions. Production is 1,050 net lines smaller; test/support code grows by 263 lines.
Registered suite accounting proof
4 requested, 4 passed, 0 failed, 0 skipped. This exercises shared and isolated suite partitions, actual Gateway/QA Channel turns, visible message-tool delivery, and the newly preserved native-subagent helper before and after a Gateway restart.
qa-suite-summary.jsonrecords a completed run, the four requested IDs, and matching counts. Schema-v3qa-evidence.jsonprojects exactly the same four passing scheduled instances, each with its selected occurrence ID matching the summary result.qa-suite-report.mdcontains all four passing sections and matching totals. All artifacts were verified under.artifacts/qa-e2e/l118-native-registered-suite/. No live account or credential was used.Changed-test cost
Testbox wall time uses
pnpm test <file> --maxWorkers=1and includes cold transform/import startup. CI seconds sum verbose per-case durations in the last green run's QA jobs 97–100, excluding shared startup. These measurements predate the final main rebase; the test files listed here are unchanged.src/runtime-tool-fixture.test.tssrc/runtime-tool-fixture.mock-linking.test.tssrc/live-transports/matrix/scenarios/scenario-runtime-e2ee-cli-runtime.test.tssrc/live-transports/matrix/scenarios/scenario-runtime-tool-progress-diagnostics.test.tssrc/live-transports/matrix/scenarios/scenario-runtime-thread.test.tssrc/suite-runtime-flow.test.tssrc/mantis/desktop-browser-smoke.runtime.test.tsweb/src/app.browser.test.tssrc/live-transports/whatsapp/whatsapp-live.config.test.tsEarlier inherited failures are repaired in this base: Gateway line cap (#159473), ACP observer typing (
e9af8ebcde6), File Transfer's filesystem import boundary (#159654), stale shared-worker reuse (e52420e1eea6), ended schema-scope classification (601bb5ba37e5), and Workboard's generated asset paths (559b4f84f615). Independent candidates for the last two matched the landed fixes byte-for-byte and were discarded without duplicate PRs.All task-owned Testbox leases are stopped. The Matrix config changes only construct and clean disposable private CLI state; no operator config, persistent data format, migration contract, or default changes. Rendered appearance is unchanged. No live account or operator Gateway was modified.