Skip to content

refactor(qa-lab): deslop qa-lab - #164643

Merged
steipete merged 3 commits into
mainfrom
deslop/l360-qa-lab2-simplify
Oct 4, 2026
Merged

steipete merged 3 commits into
mainfrom
deslop/l360-qa-lab2-simplify

Conversation

@steipete

@steipete steipete commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

QA Lab still has redundant forwarding, duplicated type declarations, and internal options that every caller sets identically after the first cleanup pass in #164030.

User Impact

No intended user-visible change. Scenario semantics, lane names, CLI options/help/output, report and evidence formats, credential ownership, and cleanup ordering stay the same. No dependency, plugin SDK, protocol, or schema changes.

Why This Change Was Made

This second pass keeps each decision with its existing owner and removes the surrounding plumbing:

  • CLI registration uses Commander's existing option inventory, shared credential flags, and concrete command-owner types; profile selection performs one lookup.
  • The unified suite calls the test-file runner directly with its already-resolved inputs. Runtime scenario helpers import the canonical model/error/timeout functions while retaining the YAML API names. Parity results publish directly after cleanup.
  • Report types derive from their builders; scorecard status, missing-primary warnings, artifact rebasing, and discovery receipts no longer travel through one-use wrappers or repeat successful validation.
  • Bus setup, kickoff injection, Node lookup, transport event normalization, replay extraction, and staged symlinks use their concrete owners without redundant adapters or parameter objects.
  • Mantis removes single-use quoted aliases, assertion DTOs and artifact/error forwarding while retaining subprocess settlement, rollback, cleanup deadlines, and redaction.
  • Telegram config no longer merges an always-empty base or exposes never-selected DM modes. Slack and WhatsApp construct their actual config fragments directly and drop unused flags. Discord serializes its evidence record directly. Matrix removes always-enabled thread switches and flattens bootstrap cleanup error handling.
  • Provider setup removes one-use extraction helpers and repeated model fields. Workspace seeding uses one admitted catalog and owns its private Markdown renderer.

The production reduction is 936 net lines (846 added, 1,782 deleted), excluding tests, fixtures, docs, and generated files. This is the single below-1,000 completion batch after exhausting sound changes in the subtree; the complete size-sorted READ log follows below. No code was moved out of QA Lab. Protected recovery/staging state and files reserved by other open lanes were left alone. One SSH-helper cleanup was withheld because its shrink-only assertion-inventory update overlaps other active lanes.

Evidence

  • The vision-role correction passed independent P2 review, a full pnpm build, the exact vision-offload E2E (1 test, 112.17 seconds with --maxWorkers=1; 67.23 seconds test execution), and renewed zero-cycle checks. The E2E wrapper also rebuilt its prepared runtime; no extra test processes or timers were added.
  • Independent Codex autoreview through P2 is clean. A result-field-order finding was fixed; the reported duration-normalization concern was rejected after checking the already-normalizing sole caller.
  • Blacksmith Testbox tbx_01m421bfe5rjhvfaxvm5vq6wz0 (run): 114 QA Lab files / 1,658 tests passed in 92.55 seconds; the separate QA CLI script file passed 11 tests.
  • Plugin contracts: 48 files / 1,132 tests passed in 45.74 seconds. Both import-cycle checks reported zero cycles.
  • Final affected and changed-test selection with --maxWorkers=1: 6 files / 54 tests passed in 20.55 seconds. No new real timers, sleeps, retries, or process boots were added.
  • The initial hosted CI run stopped at check-dependencies because the now-internal identity Markdown constant was still exported. It is private now; all dead-export scans and a full dead-code scan pass. Existing test callers were updated to stop passing removed internal helpers.
  • AWS Crabbox cbx_b55e3c3199e6: extension test types, 21 catalog/identity/WhatsApp tests, and 1,132 plugin contract tests passed. The final lint corrections passed focused lint and 42 affected tests in 27.52 seconds with --maxWorkers=1; both import-cycle checks report zero cycles. The corrections preserve shallow cloning and cleanup error-cause ordering, with fresh clean P2 review.
  • The complete node scripts/check-changed.mjs gate passed on the final corrected source in AWS Crabbox run run_2185a6143413f99416bc169eacd72e9a.
  • Broad extension lint passed with zero errors; its one warning is the pre-existing line count in extensions/crabbox/src/crabbox-worker-provider.ts, outside this diff.
  • Hosted run 37173364893 also exposed two unrelated failures reproduced in current unrelated run 37173313459: checks-fast-baseline-ratchets fails in check-test-mock-exports.mts with spawnSync git ENOBUFS (jobs 111351019072 and 111350834771); the tooling shard fails type-suppression-inventory.test.ts with 18 entries versus 16, from two annotations in untouched src/plugin-sdk/plugin-config-runtime.test.ts (jobs 111351019722 and 111350835940). These files are outside this diff.
  • The removed SSH helper was restored to avoid editing the shared assertion inventory while other lanes own it. No inventory exception was added.

Fixes found along the way

The QA vision-offload E2E still expected runtime context as a user input. The existing Responses provider owner deliberately emits that carrier as developer for reasoning models. The exact role assertion is updated; image offload, summary content, request ordering, and single visible reply remain asserted. CI run 37173364893 reproduced the stale expectation before the correction.

The read-through also identified an existing Multipass guest output-path mismatch. Its executed-argv regression fails on fresh main at the real CLI path resolver; the focused repair is in #164754, with passing real Linux bind-mount evidence.

Complete second-pass coverage (BELOW-1000)

l360 QA Lab second-pass coverage

Baseline: 8db9539ee84a9c89f535c70fd39aa8fcaebc1bb9. Every production source file over 200 lines is listed below, sorted by baseline size. Test files/support are excluded; production fixture modules are included in coverage but excluded from the LOC reduction measurement.

Previous l343 merged as #164030 (dfc3f649f2c43f54783cf4e0b2c4bc28b4c27c63). Its files:

extensions/qa-lab/src/agentic-parity-report.ts
extensions/qa-lab/src/bundled-plugin-staging.ts
extensions/qa-lab/src/character-eval.test.ts
extensions/qa-lab/src/character-eval.ts
extensions/qa-lab/src/cli-paths.ts
extensions/qa-lab/src/cli.runtime.ts
extensions/qa-lab/src/cli.ts
extensions/qa-lab/src/evidence-summary.ts
extensions/qa-lab/src/live-transports/matrix/scenarios/scenario-runtime-allowbots.ts
extensions/qa-lab/src/live-transports/matrix/scenarios/scenario-runtime-e2ee-room.test.ts
extensions/qa-lab/src/live-transports/matrix/scenarios/scenario-runtime-e2ee-room.ts
extensions/qa-lab/src/live-transports/matrix/scenarios/scenario-runtime-media.ts
extensions/qa-lab/src/live-transports/matrix/scenarios/scenario-runtime-reaction.ts
extensions/qa-lab/src/live-transports/matrix/scenarios/scenario-runtime-room.ts
extensions/qa-lab/src/live-transports/matrix/scenarios/scenario-runtime-shared.ts
extensions/qa-lab/src/live-transports/whatsapp/scenario-runtime.ts
extensions/qa-lab/src/live-transports/whatsapp/whatsapp-live.contracts.ts
extensions/qa-lab/src/mantis/cli.ts
extensions/qa-lab/src/mantis/crabbox-runtime.ts
extensions/qa-lab/src/mantis/desktop-browser-smoke.runtime.ts
extensions/qa-lab/src/mantis/discord-smoke.runtime.ts
extensions/qa-lab/src/mantis/run-evidence.runtime.ts
extensions/qa-lab/src/mantis/run.runtime.ts
extensions/qa-lab/src/mantis/slack-desktop-smoke.runtime.ts
extensions/qa-lab/src/mantis/visual-task.runtime.ts
extensions/qa-lab/src/profile-evidence-sharding.ts
extensions/qa-lab/src/providers/mock-openai/mock-anthropic-wire.ts
extensions/qa-lab/src/providers/mock-openai/mock-openai-contracts.ts
extensions/qa-lab/src/providers/mock-openai/server.ts
extensions/qa-lab/src/qa-cli-process.ts
extensions/qa-lab/src/runtime-parity.ts
extensions/qa-lab/src/scenario-catalog.ts
extensions/qa-lab/src/scorecard-taxonomy.ts
extensions/qa-lab/src/suite-runtime-types.ts
extensions/qa-lab/src/tool-coverage-report.ts
extensions/qa-lab/web/src/app.ts
extensions/qa-lab/web/src/ui-render-capture-format.ts
extensions/qa-lab/web/src/ui-render-content.ts
qa/scenarios/channels/channel-top-level-reply-shape.yaml
qa/scenarios/runtime/qa-bus-tool-trace-visibility.yaml
Lines File Decision
3686 extensions/qa-lab/web/src/styles.css READ — Current shell, chat, results, evidence, capture, timeline, responsive, and theme rules encode distinct visible contracts; no obsolete subsystem or structural owner duplication found.
2421 extensions/qa-lab/src/providers/mock-openai/server.ts READ: scenario dispatch ordering, exact fixture replies, replay suppression, and per-session lifecycle are meaningful; no broad registry/context refactor justified.
1671 extensions/qa-lab/src/cli.runtime.ts READ — Removed duplicate profile-ID validation followed by lookup, one-use report-selection/lease-label forwarders, and repeated manual/credential/Docker command option types. Retained validation and normalization at the programmatic boundary, candidate-root detection, live adapter concurrency, profile environment lifetime, output/evidence shapes, and signal shutdown contracts.
1601 extensions/qa-lab/src/suite-launch.runtime.ts READ — Inlined the one-caller test-file launcher and reuse the unified owner's admitted paths/model/provider; preserved directory containment, evidence ownership, weighted/exclusive scheduling, retries and failure aggregation.
1504 extensions/qa-lab/web/src/app.ts READ — Polling, draft editing, capture filters, saved views, timeline interactions, and focus/scroll handling are live; l343 already removed the unused forced-scroll knob and one-item Promise result machinery.
1381 extensions/qa-lab/src/runtime-parity.ts READ — SKIP edits: heartbeat closure. Transcript/trajectory matching, per-session evidence correlation, usage provenance, forced-runtime validation and outcome ordering are substantive contracts.
1307 extensions/qa-lab/src/scorecard-taxonomy.ts READ: Removed duplicate report/profile DTOs in favor of the report builder type; inlined the one-caller missing-primary warning adapter at the category owner. Schema validation, ordering, IDs and identity hashing retained.
1189 extensions/qa-lab/src/live-transports/matrix/scenarios/scenario-runtime-e2ee-destructive.ts READ — Shared recovery helper already owns repeated login/disposal; remaining cases exercise distinct backup loss, device invalidation and sync-state recovery contracts.
1189 extensions/qa-lab/src/mantis/slack-desktop-smoke.runtime.ts READ — removed one-use quoted aliases; interpolation still emits the same remote script. The remaining bootstrap, approval watcher, timeout, credential lease and artifact settlement steps own observed contracts.
1071 extensions/qa-lab/src/live-transports/discord/discord-live.runtime.ts READ — Removed unused artifact-path fields and identity-copy serialization; evidence now writes its exact typed record with the existing key order. Polling and transport-specific deadlines remain.
995 extensions/qa-lab/src/evidence-gallery.ts READ: contained-file/allowlist checks, UTF-8 preview limits, sanitization and producer binding enforce distinct filesystem/presentation contracts; no sound deletion.
966 extensions/qa-lab/src/lab-server.ts READ: keep kickoff state and bootstrap defaults inside the server owner; remove duplicate helper argument object/type and single-use scenario-count wrapper. Preserve routes, report/output shapes, admission fences, and teardown order.
942 extensions/qa-lab/src/runtime-tool-fixture.ts READ — Replaced copied session/prompt dependency signatures with types from their canonical runtime owners. Live and mock linking/patch/denial checks remain separate because their evidence inputs and diagnostics differ. Fixture file excluded from production reduction count.
803 extensions/qa-lab/src/gateway-process-boundary.ts READ: evidence copy closes over the accepted generation and evidence root; remove fixed-mode knob and single-use JSON reader. Keep all process identity, command digest, environment, file mode, containment, UID quiescence, lease retention, and durability checks.
777 extensions/qa-lab/src/confidence-report.ts READ: Removed hand-maintained report DTO; the concrete builder owns the return shape. Distinct evidence evaluators and unknown/failure/skip precedence retained.
717 extensions/qa-lab/src/crabline-transport.ts READ — Provider ID correlation, Telegram event lineage, Signal dependency-shape normalization, transport policies, lazy Discord setup, and phased cleanup each retain a current boundary contract; no further sound simplification found.
712 extensions/qa-lab/src/live-transports/shared/credential-lease.runtime.ts READ — Acquisition, bounded chunk decoding, lease health, retry classification and release settlement protect live credential ownership; retained all boundaries.
688 extensions/qa-lab/src/live-transports/telegram/adapter.runtime.ts READ — Removed fixed config-builder arguments and the empty-base type cast; participant identity, update ordering and quarantine cleanup remain required.
677 extensions/qa-lab/src/tool-search-gateway.fixture.ts READ — The YAML scenario actively stages a catalog, restarts one owned Gateway across normal/structured lanes, and checks provider/session/plugin-identity evidence; previous passes already removed the obsolete lane and duplicated projections, while remaining guards validate external responses. Fixture-only coverage, excluded from production LOC.
656 extensions/qa-lab/src/providers/mock-openai/mock-openai-input.ts READ: raw, authored, continuation, runtime-carrier, historical, and current-turn extractors have distinct fencing contracts; retained.
651 extensions/qa-lab/src/test-file-scenario-runner.ts READ — Native execution, Docker batching, current-run producer evidence and ordered occurrence selection implement different contracts; no sound further simplification.
643 extensions/qa-lab/src/character-eval.ts READ — Candidate/judge concurrency already uses the canonical concurrency owner after l343. Input/judge validation, transcript-failure checks and report layout each enforce distinct evidence contracts; no sound larger simplification found.
643 extensions/qa-lab/src/live-transports/matrix/substrate/config.ts READ — Owned-field baseline restoration and scenario configuration snapshots carry explicit config/reload semantics; kept the current canonical owner.
638 extensions/qa-lab/src/live-transports/matrix/scenarios/scenario-runtime-approval.ts READ — Approval metadata, reaction observation, DM targeting and deadlines are distinct evidence contracts; no behavior-neutral shared runner removed meaningful complexity.
630 extensions/qa-lab/src/cli.ts READ — Removed the duplicate profile-only option-name/flag inventory; validation uses Commander's registered options in their existing order. Consolidated identical credential broker options without changing command or option order. Other option chains encode distinct help/default/validation contracts; no additional sound deletion identified.
629 extensions/qa-lab/src/mantis/visual-task.runtime.ts READ — folded the one-use expectation DTO into the concrete assertion/result flow; removed impossible undefined match-index filtering. Recording output recovery and structured visual assertion semantics remain.
625 extensions/qa-lab/src/evidence-summary-schema.ts READ: v2/v3 schemas and containment/attempt validations are named persisted evidence and ownership contracts, not obsolete compatibility.
607 extensions/qa-lab/src/evidence-summary.ts READ: producers retain different artifact-source and coverage contracts. Kept unconditional v2 profile admission because skipping it would change malformed-taxonomy errors.
606 extensions/qa-lab/src/live-transports/matrix/substrate/recording-proxy.ts READ — Redaction, principal-scoped sync continuity, retry fingerprints and ordering projections each protect the evidence format.
597 extensions/qa-lab/src/agentic-parity-report.ts READ: Removed duplicate metrics/comparison DTOs and infer concrete report output; drift, usage and required coverage gates retained.
590 extensions/qa-lab/src/scenario-catalog.ts READ: Removed unused bootstrap DTO export after whole-repo name search and public-facade review; infer the concrete bootstrap projection. Catalog schema, defaults and caches retained.
589 extensions/qa-lab/src/providers/mock-openai/mock-openai-tool-routing.ts READ: native and guest Code Mode plus direct/catalog calls need different wire encodings and lifecycle evidence; retained.
573 extensions/qa-lab/src/suite-runtime-agent-session.ts READ — Retained transcript cursor admission, chronological bounded evidence, reset-recall provenance, and the narrowly classified FTS settle retry. The transcript is untyped input, so record validation is required.
571 extensions/qa-lab/src/live-transports/matrix/substrate/client.ts READ — Registration UIAA, media upload, event sends and room provisioning already share request/send owners; retained transport-specific response checks.
567 extensions/qa-lab/src/multipass.runtime.ts READ — Removed the private single-field redaction option bag; VM/bootstrap/retry/mount/secret-redaction/cleanup contracts retained. Found an existing guest absolute output-dir vs CLI-relative-only conflict; regression patch retained separately for parent remote proof and follow-up decision.
559 extensions/qa-lab/src/live-transports/slack/channel-e2e.ts READ — Native receipt ownership, uncertain write evidence and post-Gateway cleanup carry distinct tested contracts; retained.
539 extensions/qa-lab/src/live-transports/matrix/scenarios/scenario-runtime-shared.ts READ — Prior l343 already consolidated top-level and no-reply flows; retained actor cursors and proof assertions.
529 extensions/qa-lab/src/providers/mock-openai/mock-openai-contracts.ts READ: most lines are wire unions, scenario constants, exact fixture strings, and stream semantics; retained.
518 extensions/qa-lab/src/evidence-invocation.ts READ: scheduling anchors, immutable child proposals, retries and whole-attempt selection enforce explicit custody contracts; no sound simplification.
517 extensions/qa-lab/src/mantis/run.runtime.ts READ — no further sound reduction; baseline/candidate scheduling, process cleanup settlement, rollback and reporting each carry distinct ordering/ownership contracts.
515 extensions/qa-lab/src/live-transports/discord/channel-e2e.ts READ — Thread/message ownership and late native receipt settlement protect shared-channel cleanup; no generic flow can replace those differences safely.
514 extensions/qa-lab/src/live-transports/slack/slack-live.observations.ts READ — Message history, native table/chart equality and invalid_blocks fallback completeness prove distinct output boundaries; preserved.
512 extensions/qa-lab/src/gateway-child-setup.ts READ: no sound additional simplification; configuration staging, installed-candidate bootstrap, private environment isolation, per-attempt port ownership, and July candidate capability detection are distinct contracts.
507 extensions/qa-lab/src/live-transports/matrix/scenarios/scenario-runtime-state-files.ts READ — SQLite plus JSON probes have tagged-fixture identity and mutation contracts; could not establish that every remaining JSON shape predates July 2026.
505 extensions/qa-lab/src/suite-summary.ts READ — Completion, counts, canonical evidence, unresolved instances and optional report-only skips are distinct admission checks; historical evidence remains a current persisted-data contract.
498 extensions/qa-lab/src/qa-transport.ts READ — Folded outbound event discrimination into the canonical normalizer and expressed conversation/thread selection directly; account-scoped failure checks, cursor semantics, and settlement remain.
497 extensions/qa-lab/src/suite-planning.ts READ — Preserve ordered merge patches, selected-account rewriting, isolation triggers, concurrency and stagger settlement.
496 extensions/qa-lab/src/live-transports/matrix/substrate/fault-proxy.ts READ — Bounded request draining, SSRF forwarding, live fault registrations and observer settlement each carry tested protocol/lifecycle invariants.
494 extensions/qa-lab/src/suite-run-standard.ts READ — Preserve prepared runtime, per-attempt recording, retry attribution, metrics and terminal publication after owned cleanup; closure captures required terminal facts.
493 extensions/qa-lab/src/mantis/run-cleanup.runtime.ts READ — inlined the single-use registration parser and used path.resolve directly; retained the aggregate-error constructor to preserve removal-cause attribution under the caught-error lint rule. Deadlines, receipt checks, Git ownership and preserved-path semantics remain.
492 extensions/qa-lab/src/profile-evidence-sharding.ts READ: l343 already simplified grouping. Affinity, budget ordering and downloaded-artifact containment remain distinct required contracts.
489 extensions/qa-lab/src/live-transports/matrix/substrate/e2ee-client.ts READ — Native SDK adapters, namespace TTL/eviction and encrypted-operation fencing are concrete contracts; changing in-memory state to persistent storage would change behavior.
484 extensions/qa-lab/src/live-transports/slack/adapter.runtime.ts READ — Native writes and observer polling have deliberately different cancellation and deadline semantics; retained capture/lease ownership.
481 extensions/qa-lab/src/live-transports/matrix/scenarios/scenario-environment.ts READ — Config patch ownership, array replacement intent, reload generations and interruption windows are required per-scenario boundaries.
477 extensions/qa-lab/src/coverage-report.ts READ: Removed duplicate inventory DTO; infer concrete builder output. Theme/surface grouping and generated commands retained.
477 extensions/qa-lab/src/live-transports/slack/slack-live.scenario-implementations.ts READ — Removed preserveGatewayDebug, a dead flag with no reader after the old scenario registry was removed; all inputs and assertions remain.
474 extensions/qa-lab/src/live-transports/matrix/scenarios/scenario-runtime-tool-progress.ts READ — Preview/final ordering alternatives correspond to live streaming modes and keep distinct diagnostics; no optional modes proved unused.
469 extensions/qa-lab/src/live-transports/matrix/adapter.runtime.ts READ — Shared-message translation and independent observation devices serve separate responsibilities; cursor/replacement mapping remains required.
468 extensions/qa-lab/src/bus-server.ts READ: inline single-caller server creation wrapper into startup. Keep request schemas, cursor validation, shutdown fencing, media-body bounds, and long-poll behavior.
466 extensions/qa-lab/src/live-transports/matrix/scenarios/scenario-runtime-e2ee-room.ts READ — Prior l343 already owns shared encrypted-room setup and fault flows; recovery and config restoration have independent failure contracts.
464 extensions/qa-lab/src/mantis/discord-smoke.runtime.ts READ — inlined one-use channel assertion and artifact-write forwarding into the concrete flow; exact diagnostics, bounded API reads and redaction remain.
461 extensions/qa-lab/src/suite.ts READ — Removed redundant helper forwarding after the runtime owner adopted canonical imports. Retain phased cleanup, confirmed Gateway exit, metrics and same-process heap-capture fences.
459 extensions/qa-lab/src/scenario-flow-runner.ts READ — Generic DSL execution is used across YAML/module scenarios; callable fences, finally cleanup API, dynamic import mapping and RTT normalization have real callers/contracts. No sound simplification found.
459 extensions/qa-lab/web/src/ui-render-content.ts READ — Chat, attachment, results, live transcript, report, and event views have distinct output contracts; l343 already inlined the redundant conversation/message-filter wrappers.
456 extensions/qa-lab/src/qa-credentials-admin.runtime.ts READ — Credential fingerprint derivation now belongs to the record parsing boundary; removed three repeated response projections, a one-use doctor-status helper, duplicate result DTO, and Number.isFinite already implied by Number.isInteger. Retained broker response validation, error mapping, request bounds, authentication, and environment behavior.
446 extensions/qa-lab/web/src/ui-render-evidence.ts READ — Evidence artifacts, retained observations, producer context, matrix cells, and selection/filter behavior are separate live projections; no removable compatibility branch found.
441 extensions/qa-lab/src/live-transports/matrix/scenarios/scenario-runtime-e2ee-shared.ts READ — Native verification sequencing and joined driver/observer cleanup remain necessary; retry applies only to identified backup failures.
441 extensions/qa-lab/src/live-transports/matrix/scenarios/scenario-runtime-media.ts READ — Prior l343 consolidated media coverage; remaining flows check distinct caption, no-trigger, voice and image-generation evidence.
441 extensions/qa-lab/web/src/ui-render-capture-model.ts READ — Shared derived state is consumed by controls, summary, workspace, detail, and timeline; filters, windows, pairing, bursts, and preferred/recommended view behavior each have current callers.
438 extensions/qa-lab/src/providers/mock-openai/mock-openai-assistant-text.ts READ: repeated-looking replies also serve early dispatcher branches and direct fork-context proof; deleting them would require changing dispatch precedence.
435 extensions/qa-lab/src/tool-activity.ts READ — Receipt shape/correlation validation protects evidence from uncorrelated or contradictory calls; replay ordering, run/cell identity, and shell pending-state classification are current contracts, not obsolete compatibility.
434 extensions/qa-lab/src/token-efficiency-report.ts READ: measured/derived/unavailable telemetry and zero-result aggregate are observable contracts with different handling; no sound deletion.
432 extensions/qa-lab/src/run-config.ts READ — Return the already-resolved profile instead of looking it up again. Retain raw request validation, lane selection and diagnostic ordering.
430 extensions/qa-lab/web/src/ui-render-capture-timeline.ts READ — Marker packing, flow connectors, lane movement, focus thresholds, pinning, collapsed mode, and previews are current UI features, not speculative strategies.
420 extensions/qa-lab/src/suite-runtime-agent-process.ts READ — Retained distinct live gateway polling/retry contracts, task-tracking versus chat delivery routes, and persisted tool-evidence admission; these are not interchangeable waits.
399 extensions/qa-lab/src/live-transports/matrix/scenarios/scenario-runtime-e2ee-cli-account.ts READ — Simplified bootstrap-failure settlement to one recorded outcome followed by joined cleanup, preserving failure ordering and undefined rejection values.
397 extensions/qa-lab/src/live-transports/matrix/scenarios/scenario-runtime-e2ee-messages.ts READ — Each scenario uses existing encrypted room helpers and preserves different secrecy/thread/restart evidence.
396 extensions/qa-lab/src/mantis/run-artifacts.runtime.ts READ — removed single-use rollback error constructor and output-remapping parameter forwarding. Stable-set rollback and old-ref evidence formats remain required by explicit before/after lanes.
395 extensions/qa-lab/src/suite-runtime-flow.ts READ — Removed four redundant injected helpers and their forwarding option bag; use canonical model, error, and timeout owners directly while retaining YAML API names. Removed redundant transport type intersection.
390 extensions/qa-lab/src/providers/mock-openai/mock-openai-events.ts READ: event builders already use one stream owner; metadata getters intentionally preserve distinct selection criteria.
376 extensions/qa-lab/src/suite-runtime-gateway.ts READ — Config mutation no-op/restart/hash-conflict/rate-limit paths preserve different failure semantics; clone/comparison, restart intent and readiness sequencing remain unchanged.
373 extensions/qa-lab/src/live-transports/discord/discord-transcripts-authorization.runtime.ts READ — Negative and positive authorization phases, emergency stop and owned message deletion preserve voice consent and evidence; retained.
372 extensions/qa-lab/src/providers/mock-openai/mock-openai-tooling.ts READ: argument fixtures and native-tool setup contain distinct required values; retained.
371 extensions/qa-lab/src/suite-runtime-parity-runner.ts READ — Removed one-shot deferred terminal-publication callback and unreachable missing-callback guard; terminal evidence publishes directly only after successful cleanup, preserving artifact-capture admission.
368 extensions/qa-lab/src/providers/mock-openai/mock-openai-directives.ts READ: replaced repeated session-key trim/type/empty handling with the existing normalizeOptionalString owner while preserving selection order.
365 extensions/qa-lab/src/qa-gateway-config.ts READ — Runtime/provider/plugin selection and transport config carry separate ownership contracts; no change to Codex behavior or mock isolation.
364 extensions/qa-lab/src/live-transports/whatsapp/whatsapp-live.observations.ts READ — Removed an unused message-count-range branch; no scenario or other caller sets it. Exact count and complete-text assertions remain.
364 extensions/qa-lab/src/providers/mock-openai/mock-anthropic-wire.ts READ: conversion orders roles before tool results and retains partial failure text; l343 already simplified event construction.
358 extensions/qa-lab/src/gateway-child-lifecycle.ts READ: no sound additional simplification; per-spawn settlement, joined pipe drain, stop admission, retry cleanup, and artifact retention independently cover real lifecycle states.
358 extensions/qa-lab/src/live-transports/whatsapp/whatsapp-live.scenario-implementations.conversation.ts READ — Shared quote runner already owns DM/group duplicates; remaining activation/history/broadcast flows exercise distinct user behavior.
356 extensions/qa-lab/src/mantis/slack-desktop-smoke.artifacts.ts READ — no sound deletion; the checks bind copied screenshot/ack evidence to the correct approval interaction and owned staging generation.
356 extensions/qa-lab/src/providers/aimock/server.ts READ: removed five single-use request extraction wrappers; request-facts owner now selects the user and tool message directly and reuses its message list. Retained bounded evidence projection and pairing-before-window selection.
354 extensions/qa-lab/src/live-transports/slack/slack-live.scenario-fixtures.ts READ — Native accessible text and progress identity diagnostics encode exact independent rendering contracts; retained rather than weaken.
354 extensions/qa-lab/src/live-transports/whatsapp/whatsapp-live.scenario-implementations.capabilities.ts READ — Poll reuse already consolidated; document, serialization, group media and structured inbound assertions have distinct evidence.
354 extensions/qa-lab/src/test-file-scenario-docker-batch.ts READ — Candidate manifests, environment admission, duplicate lane scheduling and producer-result attribution remain required.
353 extensions/qa-lab/src/live-transports/matrix/scenarios/scenario-runtime-e2ee-cli-gateway.ts READ — Multi-account isolation and CLI-to-Gateway restart acceptance prove distinct contracts; kept their explicit sequencing.
353 extensions/qa-lab/src/live-transports/telegram/userbot-driver.runtime.ts READ — TDLib protocol validation, UTF-16 bounds, ordered callback delivery and process-exit confirmation protect a real child boundary.
352 extensions/qa-lab/src/mantis/crabbox-runtime.ts READ — SSH cleanup withheld because it requires shrinking config/assertion-safety-baseline.txt, which is reserved by open PRs #164320 and #164265. Existing SSH selection and cleanup behavior retained.
350 extensions/qa-lab/src/live-transports/slack/slack-live.contracts.ts READ — Removed unused preserveGatewayDebug field; external Slack schemas and scenario run unions remain canonical.
350 extensions/qa-lab/src/web-runtime.ts READ: no sound additional simplification; browser/context acquisition and close joining prevent late handles from leaking, and diagnostic bounds plus timeout behavior are independent requirements.
349 extensions/qa-lab/src/gateway-child.ts READ: no sound additional simplification; initial vs replacement readiness, mutation restart, sent-RPC replay avoidance, and verified vs ordinary signals require distinct paths.
349 extensions/qa-lab/src/mantis/desktop-browser-smoke.runtime.ts READ — removed one-use remote-script aliases and repeated duration normalization; returns the already-owned artifact/result projection after lifecycle settlement.
346 extensions/qa-lab/src/live-transports/matrix/scenarios/scenario-runtime-room.ts READ — Removed fixed nested-thread options from the threaded-reaction caller; left prior l343 lifecycle and membership recovery owners intact.
343 extensions/qa-lab/src/tool-coverage-report.ts READ: Removed duplicate report DTO while keeping concrete row contract and recent native-receipt fix intact.
340 extensions/qa-lab/src/bundled-plugin-staging.ts READ — Removed the unnecessary symlink option object/optional directory flag; retained the single Windows-junction policy owner. Source discovery and manifest precedence remain unchanged.
339 extensions/qa-lab/src/docker-harness.ts READ — Removed the unused includeQaLabUi=false path and its option plumbing. Full repository caller search found only default/true calls, no SDK/public export, no false test case. Scaffold always includes its dashboard; generated bytes preserved.
338 extensions/qa-lab/src/live-transports/matrix/scenarios/scenario-runtime-cli.ts READ — CLI child settlement, redaction, private temp paths and cleanup ownership already have shared concrete owners.
336 extensions/qa-lab/src/live-transports/whatsapp/whatsapp-live.config.ts READ — Removed a single-caller agent identity wrapper, unreachable empty-agent guard and spread-only optional tools wrapper objects; retained override precedence.
332 extensions/qa-lab/src/lab-server-ui.ts READ: no sound additional simplification; HTTP vs websocket/TLS proxy adapters and content/CSP/auth handling have different contracts; preserve UI bytes and opening-only connection timeout.
331 extensions/qa-lab/src/suite-run-isolated.ts READ — Preserve exclusive child instance IDs, evidence import, partial-artifact queue, credential release before workers and cleanup settlement.
330 extensions/qa-lab/web/src/ui-render-capture-format.ts READ — JSON, SSE, form, plain-text, header, and startup projections serve different real formats; l343 already removed the SSE option translation and unused frame ID.
321 extensions/qa-lab/src/live-transports/matrix/substrate/events.ts READ — Normalization differentiates transport relation inheritance, mentions, attachment inference and approval redaction; retained exact object shapes.
320 extensions/qa-lab/src/gateway-log-sentinel.ts READ: no sound additional simplification; transcript normalization and sentinel ownership/verdict rules preserve evidence formats.
318 extensions/qa-lab/src/live-transports/discord/channel-e2e-recorder.ts READ — Continuous Gateway observation requires heartbeat failure handling, scoped storage and native reply correlations; retained.
317 extensions/qa-lab/src/crabline-discord-replies.ts READ — Proxy URL rewriting, reply generation fence, final retained receipt validation, and socket cleanup each serve active Discord paths; helper boundaries are reused or protocol-specific.
316 extensions/qa-lab/src/harness-parity.ts READ — Prompt/schema hashing, usage estimates and drift priority protect report contracts; transcript structural parity intentionally accepts more shapes than the runtime message iterator. No sound consolidation found.
316 extensions/qa-lab/src/live-transports/slack/slack-live.capture.ts READ — Message draft capture and uncertain native-write classification have deliberately different acceptance rules; preserved both evidence contracts.
315 extensions/qa-lab/src/gateway-child-process.ts READ: no sound additional simplification; redacted and raw cursor reads have different safety semantics, and process-tree vs leader settlement is essential.
315 extensions/qa-lab/src/profile-evidence-plan.ts READ: taxonomy attestation, qualified receipt alternatives and retry acceptance have distinct ownership contracts; no sound deletion.
312 extensions/qa-lab/src/confidence-self-test.ts READ — Inlined single-use detection results into the canary descriptors that own them; description and schema probes still both execute, in the same order. Canary IDs, verdicts, details, ordering and artifact bytes remain identical.
312 extensions/qa-lab/src/live-transports/slack/slack-live.codex-approval.ts READ — Agent acceptance, native approval route identity, transcript success and quiescence checks are distinct boundaries; no Codex behavior edits.
305 extensions/qa-lab/src/bus-state.ts READ: consume canonical parseQaTarget directly, removing a one-caller projection in bus-queries. Keep account/conversation identity, clone isolation, monotonic cursors, and thread checks.
301 extensions/qa-lab/src/live-transports/whatsapp/whatsapp-live.scenario-implementations.user-path.ts READ — DM/group action builders already consolidate shared flows; remaining media and reply-isolation probes have different outputs.
299 extensions/qa-lab/src/live-transports/matrix/scenarios/scenario-runtime-streaming-preview.ts READ — Draft retention fault injection and healthy-turn replacement have deliberately different observation windows and artifact formats.
298 extensions/qa-lab/src/live-transports/matrix/scenarios/scenario-runtime-e2ee-cli-shared.ts READ — CLI JSON parsing, SAS matching, artifacts and setup account helpers already have explicit reusable contracts.
296 extensions/qa-lab/src/fixture-utils.ts READ — HTTP bounds/timeouts, ASCII identifier counting, user-message exclusion and JSONL/SQLite diagnostic traversal each have real callers. No sound simplification found. Fixture file excluded from production count.
295 extensions/qa-lab/src/live-transports/matrix/scenarios/scenario-runtime-e2ee-verification.ts READ — Device SAS, QR and room SAS have different protocol sequences and corresponding trust assertions.
294 extensions/qa-lab/src/providers/live-frontier/auth.ts READ: SKIPPED changes because #164269 owns this file.
292 extensions/qa-lab/web/src/ui-render-capture-controls.ts READ — Repeated select/filter markup already has small shared renderers; every remaining control maps to application state and active event handlers.
288 extensions/qa-lab/src/runtime-tool-native-workspace.ts READ — Replaced copied runAgentPrompt argument type with the canonical owner signature. Containment, exact mutation, sentinel cleanup and receipt evidence unchanged.
286 extensions/qa-lab/src/live-transports/slack/slack-live.message-observations.ts READ — Thread fallback, no-reply observation and stable connection readiness use distinct timing/error contracts; retained.
281 extensions/qa-lab/web/src/ui-render-capture-detail.ts READ — Flow, payload, headers, and overview panels are live with differing output/security contracts; radio variants already share an owner.
279 extensions/qa-lab/src/live-transports/matrix/scenarios/scenario-runtime-e2ee-recovery.ts READ — Bootstrap reset, recovery restore and blocked signature upload require distinct owner cleanup/error behavior.
278 extensions/qa-lab/web/src/ui-render-shell.ts READ — Header, configuration, scenario selector, run summary, and tabs are current rendered surfaces; model selection already shares its repeated renderer.
277 extensions/qa-lab/src/mantis/cli.ts READ — SKIPPED for overlapping open PR #164520. Public option/command names retained.
276 extensions/qa-lab/src/live-transports/slack/slack-live.config.ts READ — Replaced intermediate agent-default and optional tools wrapper objects with direct configuration construction; retained allowlist precedence and optional keys.
274 extensions/qa-lab/src/process-tree-cpu.ts READ — Removed single-use Windows metric parsers and redundant pre-trimming already owned by the strict numeric parser; retained PS time validation and Linux descendant VmRSS requirements.
267 extensions/qa-lab/src/live-transports/slack/slack-live.approvals.ts READ — Shared pending/resolved observation and completion already own approval flow; per-state native-button checks remain necessary.
265 extensions/qa-lab/src/scenario-module-flow.ts READ — Replaced Object.fromEntries builder for the static access-control DSL branch with a direct object; computed positive-branch key and action arrays remain identical.
264 extensions/qa-lab/src/live-transports/matrix/scenarios/scenario-runtime-thread.ts READ — Removed never-used non-nested mode, fixed report knob, redundant missing-trigger guard and a single-caller reply-target assertion wrapper.
263 extensions/qa-lab/src/posix-command-settlement.ts READ — Separate primary outcome, cleanup, and stdio-drain state is necessary to settle exited leaders and escaped descendants; timers and retry-free force-kill ordering are justified by platform lifecycle contracts.
262 extensions/qa-lab/web/src/ui-types.ts READ — Types represent HTTP projections, capture state, and persisted saved views; preserving explicit wire/state contracts is clearer than introducing mapped-type machinery to compress them.
261 extensions/qa-lab/src/qa-cli-process.ts READ — Simplified last-payload/last-diagnostic selection without reversing or maintaining redundant intermediate branches. Balanced parsing and independent child settlement/Windows cleanup retained.
260 extensions/qa-lab/src/live-transports/discord/adapter.runtime.ts READ — Admission, native readiness and cleanup errors preserve separate lease and Gateway ownership; retained.
258 extensions/qa-lab/src/live-transports/matrix/scenarios/scenario-runtime-e2ee-cli-verification.ts READ — Interactive SAS prompts, confirmation ordering, device cleanup and final backup proof are part of real CLI acceptance.
252 extensions/qa-lab/src/live-transports/discord/discord-live.evidence.ts READ — Normalized observations and two HTML evidence layouts encode different stable artifact formats; retained.
251 extensions/qa-lab/src/live-transports/discord/scenario-runtime.ts READ — Run-kind branches each exercise different native command/voice/progress/reaction evidence; retained exact dispatch and timing.
250 extensions/qa-lab/src/profile-planning.ts READ: profile membership, selected execution lanes and explicit-selection errors have different eligibility semantics; no sound deletion.
246 extensions/qa-lab/src/jsonl-replay.ts READ — Removed single-use message/role/content-type forwarding helpers and redundant unknown assertion; accepted input shapes, sorted traversal, transcript prefixes, and drift output remain unchanged.
244 extensions/qa-lab/src/providers/mock-openai/mock-openai-responses-websocket.ts READ: connection-local delta inheritance, cache invalidation, warmup metadata, preview pauses, and response-local sequencing each implement transport contracts.
242 extensions/qa-lab/web/src/ui-render-capture-timeline-model.ts READ — Lane sorting, severity, sparklines, focus thresholds, and previous ordering are all exposed by current controls and consumed by timeline rendering; no unused knob found.
241 extensions/qa-lab/src/qa-transport-registry.ts READ — Removed unused adapter-result generic and inlined one-use factory lookup; cleanup memoization/retry release and serial two-phase aggregation are required ownership behavior.
241 extensions/qa-lab/src/runtime-tool-evidence.ts READ: Removed local one-use call/result DTOs; infer their concrete normalized projection. Wire adapters, failure classification and tool settlement remain unchanged.
240 extensions/qa-lab/src/live-transports/matrix/scenarios/scenario-runtime-restart.ts READ — Catchup, homeserver restart and stale-cursor dedupe exercise separate restart boundaries; retained persisted evidence and no-reply timing.
239 extensions/qa-lab/src/qa-credentials-bootstrap.ts READ — Reserved by open PR #164269; no edits. Auth discovery, redacted diagnostics and subprocess settlement remain required.
235 extensions/qa-lab/src/live-transports/matrix/scenarios/scenario-runtime-e2ee-cli-recovery.ts READ — Valid/invalid recovery-key CLI paths intentionally differ in expected exit, secret-leak assertion and readiness requirements.
232 extensions/qa-lab/src/live-transports/telegram/cli.runtime.ts READ — Private process boundary paths/UID/GID and selected-scenario dispatch are real operator contracts; retained.
232 extensions/qa-lab/src/live-transports/whatsapp/adapter.runtime.ts READ — Sequential credential unpack and cleanup-after-Gateway-stop ordering protect shared auth state and leases; retained.
232 extensions/qa-lab/src/suite-evidence.ts READ: immutable occurrence/result receipts, retained child bundles and selected-result hash checks are required custody contracts.
229 extensions/qa-lab/src/live-transports/slack/scenario-runtime.ts READ — Removed duplicated scenario id/title/timeout argument bag; message runner now reads the existing environment owner directly.
225 extensions/qa-lab/src/gateway-child-env.ts READ: no sound additional simplification; post-patch scrubbing, model catalog staging and Codex auth/runtime handoff are actual isolation contracts.
225 extensions/qa-lab/src/live-transports/matrix/substrate/e2ee-client-internals.ts READ — Shutdown settlement joins non-abortable operations before crypto discard, while relation enrichment must append cursor-visible records.
225 extensions/qa-lab/src/live-transports/matrix/substrate/sync.ts READ — Per-room cursors and shared in-flight polls preserve independent observers and retryable interruption semantics.
225 extensions/qa-lab/src/providers/env.ts READ: removed nested live CLI env IIFE and duplicated configured/default-home return construction; explicit missing-home early return and auth-mode behavior preserved.
220 extensions/qa-lab/src/mantis/run-command.runtime.ts READ — no sound deletion; command-stage deadlines, process-tree extinction, owner-bound cwd and interrupted/uncertain settlement are distinct safety contracts.
219 extensions/qa-lab/src/live-transports/whatsapp/scenario-runtime.ts READ — Prior l343 simplified targets; retries intentionally rebuild marker/callback state while retaining prepared Gateway config; retained.
218 extensions/qa-lab/src/live-transports/slack/channel-e2e-observations.ts READ — Sanitized errors, OAuth-scope admission, paginated readback and ready-once ownership remain required transport boundaries.
217 extensions/qa-lab/src/native-workspace-behavior.ts READ — Static behavior descriptors carry distinct commands, receipts and denied-path sentinels; data compression would hide the independent proof inputs. No change.
216 extensions/qa-lab/src/live-transports/telegram/private-production.runtime.ts READ — Private local-app descriptor validation and acknowledgment binding retain sender/destination ownership and artifact secrecy.
213 extensions/qa-lab/src/live-transports/matrix/substrate/harness.runtime-internals.ts READ — Health probes race host/container paths within one deadline and abort losing work; composed image/port values are live configuration.
212 extensions/qa-lab/src/live-transports/whatsapp/whatsapp-live.approvals.ts READ — RPC and real reaction decisions have different execution paths; pending/resolved diagnostics retain their exact formats.
212 extensions/qa-lab/src/test-file-scenario-script-evidence.ts READ: Inlined the one-caller artifact rebasing adapter, removing its unused optional-policy surface. Kept exact v2 absolute-path and v3 token-path behavior.
205 extensions/qa-lab/src/browser-runtime.ts READ: no sound additional simplification; adapters correspond to scenario API operations and explicitly project supported query fields.
205 extensions/qa-lab/src/ci-smoke-plan.ts READ — Removed impossible empty/out-of-range partition guards after the same function validates the part count and index. Packing and lane names unchanged.
203 extensions/qa-lab/src/live-transports/matrix/scenarios/scenario-runtime-e2ee-destructive-recovery.ts READ — Destructive proof helpers retain precise backup failure classification and isolate private CLI state.
202 extensions/qa-lab/src/live-transports/whatsapp/whatsapp-live.scenario-implementations.delivery.ts READ — Long reply chunk correlation and reaction lifecycle assertions are separate output contracts; builders already share native approval setup.

Remove redundant command and scenario forwarding, fixed internal knobs, duplicated report types, and repeated evidence projections. Preserve scenario names, output formats, cleanup ordering, and credential ownership.

Second QA Lab pass after #164030. The complete large-file coverage log accompanies the PR; production reduction is 950 lines after excluding an assertion-inventory change reserved by other lanes.
@clawsweeper

clawsweeper Bot commented Oct 4, 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.

@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 Oct 4, 2026
@clawsweeper

clawsweeper Bot commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed October 4, 2026, 12:15 AM ET / 04:15 UTC (Revision 3).

ClawSweeper review

What this changes

QA Lab, OpenClaw’s scenario-testing harness, removes redundant forwarding, duplicated types, and unused internal options while preserving commands, scenario behavior, and evidence outputs.

Merge readiness

⛔ Blocked before merge - 1 item remains

Useful maintainer-authored cleanup remains distinct from the merged first pass. No actionable introduced defect was found, and the previous migration-proof blocker is unsupported by the unchanged stored-data contracts.

Priority: P3
Reviewed head: 7ecfc8a9409c4050d3fb89b706082ea8c286c2c8

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Coherent internal cleanup with no actionable findings and successful focused exact-head checks.
Proof confidence 🌊 off-meta tidepool Not applicable: The repository-admin-authored QA Lab refactor is exempt from external-contributor proof; supplied suite and vision-offload results are supplemental. Source comparison establishes no stored-data contract change requiring migration proof.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The repository-admin-authored QA Lab refactor is exempt from external-contributor proof; supplied suite and vision-offload results are supplemental. Source comparison establishes no stored-data contract change requiring migration proof.
Evidence reviewed 12 items Pinned introduction boundary: Reviewed the introduced merge-base-to-head hunks across the supplied file inventory. The checkout and original head are 7ecfc8a, with recorded parent bc44278. The supplied test merge is stale and was not used to attribute removal of current-main behavior.
Complete captured body inspected: Retrieved and read the complete 50,789-unit PR body. Its SHA-256 matches the supplied snapshot identity, 4cee9b1e8e3d77e0f6d7e9c8ce0e94a81e2ae7a56ba1955fb70796635de536cc, resolving the omitted-body context gap.
Verified trusted-author status: GitHub’s repository permission endpoint confirms steipete has admin access, establishing the trusted-author proof exemption despite the REST PR association being CONTRIBUTOR.
Findings None None.
Security None None.

How this fits together

QA Lab consumes scenario definitions, provider settings, and isolated channel credentials to exercise OpenClaw. Its execution owners coordinate Gateway processes and transports, then publish reports and evidence after cleanup.

flowchart TD
  A[Scenario definitions] --> C[QA Lab planning]
  B[Provider and channel settings] --> C
  C --> D[Isolated Gateway and transport execution]
  D --> E[Scenario observations]
  E --> F[Cleanup and settlement]
  F --> G[Reports and evidence]
Loading

Before merge

  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Source -947, Tests -77. Total -1024 across 75 files.

View PR surface stats
Area Files Added Removed Net
Source 68 855 1802 -947
Tests 7 34 111 -77
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 75 889 1913 -1024

Review metrics

None.

Stored data model

Persistent data-model change detected: database schema: extensions/qa-lab/src/test-file-scenario-script-evidence.ts, serialized state: extensions/qa-lab/src/gateway-process-boundary.ts, serialized state: extensions/qa-lab/src/live-transports/discord/discord-live.runtime.ts, serialized state: extensions/qa-lab/src/mantis/discord-smoke.runtime.ts, serialized state: extensions/qa-lab/src/multipass.runtime.ts, unknown-data-model-change: extensions/qa-lab/src/gateway-process-boundary.ts, and 2 more. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best possible solution:

Keep QA Lab’s existing execution and evidence owners while removing private plumbing that adds no behavior.

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

Not applicable: this is a behavior-preserving cleanup, and no introduced failure was established during source review.

Is this the best way to solve the issue?

Yes: direct calls to existing owners and derived types remove duplication without adding a competing implementation or public contract.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This is internal QA harness cleanup with no intended user-visible behavior change.
  • 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 repository-admin-authored QA Lab refactor is exempt from external-contributor proof; supplied suite and vision-offload results are supplemental. Source comparison establishes no stored-data contract change requiring migration proof.

Evidence

What I checked:

  • Pinned introduction boundary: Reviewed the introduced merge-base-to-head hunks across the supplied file inventory. The checkout and original head are 7ecfc8a, with recorded parent bc44278. The supplied test merge is stale and was not used to attribute removal of current-main behavior. (7ecfc8a9409c)
  • Complete captured body inspected: Retrieved and read the complete 50,789-unit PR body. Its SHA-256 matches the supplied snapshot identity, 4cee9b1e8e3d77e0f6d7e9c8ce0e94a81e2ae7a56ba1955fb70796635de536cc, resolving the omitted-body context gap. (7ecfc8a9409c)
  • Verified trusted-author status: GitHub’s repository permission endpoint confirms steipete has admin access, establishing the trusted-author proof exemption despite the REST PR association being CONTRIBUTOR.
  • Cleanup remains necessary on current main: The inspected current-main CLI, suite launcher, workspace seeder, and Telegram config builder remain unchanged from the pinned baseline; they retain the plumbing removed here. The merged first pass at refactor(qa-lab): deslop qa-lab #164030 is preceding work, not an implementation of this second pass. (extensions/qa-lab/src/suite-launch.runtime.ts, 8a0b0c458bbd)
  • Previous compatibility blocker resolved by source: Artifact rebasing retains the existing v3 repository-token representation and v2 relative-or-absolute representation, followed by the same validator. Credential fingerprint generation moves into response parsing without changing request bodies or final responses. No database DDL, persisted schema, migration, or serialized-format contract changes were introduced. (extensions/qa-lab/src/test-file-scenario-script-evidence.ts:42, 7ecfc8a9409c)
  • Removed Telegram modes preserve production authority: The original builder’s sole production caller supplied an empty base and enableDirectMessages=true. The replacement retains the same tester allowlist, account identity, group restrictions, and mention requirement. The changed helpers are private and absent from QA Lab’s public barrel. (extensions/qa-lab/src/live-transports/telegram/adapter.runtime.ts:584, 7ecfc8a9409c)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • joshavant: 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.

History

Review history (2 earlier review cycles)
  • reviewed 2026-10-04T00:52:53.678Z sha 7523355 :: blocked before merge. :: none
  • reviewed 2026-10-04T03:18:45.052Z sha bc44278 :: blocked before merge. :: none

@steipete
steipete enabled auto-merge (squash) October 4, 2026 03:12
@steipete
steipete merged commit 2e76e31 into main Oct 4, 2026
157 of 159 checks passed
@steipete
steipete deleted the deslop/l360-qa-lab2-simplify branch October 4, 2026 04:19
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 4, 2026
Remove redundant QA Lab forwarding, duplicated internal types, fixed private options, and repeated projections. Preserve scenario semantics, lane names, CLI output, evidence formats, lifecycle ordering, and public SDK contracts.

Reviewed through P2 with focused and broad QA Lab tests, plugin contract tests, type checks, dependency scans, lint, and both zero-cycle gates.
RomneyDa added a commit that referenced this pull request Oct 8, 2026
Restore verified main test companions for image offload context and web-search schema rejection. Join deferred read-only update discovery before the unchanged plugin watchdog checks.

Release provenance: 2e76e31 -> #164643; cc43c8c -> #164925; b9bed02 -> #165223.
wheakerd pushed a commit to wheakerd/clawdbot that referenced this pull request Oct 22, 2026
Restore verified main test companions for image offload context and web-search schema rejection. Join deferred read-only update discovery before the unchanged plugin watchdog checks.

Release provenance: 2e76e31 -> openclaw#164643; cc43c8c -> openclaw#164925; b9bed02 -> openclaw#165223.

(cherry picked from commit 756a515)
Co-authored-by: RomneyDa <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extensions: qa-lab P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL 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