Repository navigation
refactor(qa): consolidate scenario runtime helpers - #119623
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed August 5, 2026, 10:21 AM ET / 14:21 UTC. ClawSweeper reviewWhat this changesThis PR removes duplicated QA scenario-runtime dependency mappings, readiness wrappers, and error conversion while retaining the existing scenario aliases and strict transport readiness behavior. Merge readiness⛔ Blocked until real behavior proof from a real setup is added - 3 items remain The patch is a clean, behavior-preserving QA refactor with no blocking source or security finding. It remains open because the protected Priority: P3 Review scores
Verification
How this fits togetherQA Lab runs scenario YAML against an ephemeral OpenClaw gateway and transport adapters. The scenario runtime exposes those dependencies as action helpers, which then drive readiness checks, gateway lifecycle operations, and assertions. flowchart LR
Scenarios[QA scenario YAML] --> Runtime[Scenario runtime API]
Runtime --> Dependencies[Runtime dependencies]
Runtime --> Transport[Transport adapter]
Transport --> Readiness[Strict account readiness]
Dependencies --> Gateway[Ephemeral gateway]
Gateway --> Results[Scenario assertions and logs]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -161, Tests -2. Total -163 across 10 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the canonical dependency-owner refactor, preserving the existing scenario aliases, and attach a redacted after-fix QA scenario trace or Testbox artifact that shows the gateway and transport path completing. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR is a QA runtime refactor rather than a reported user defect; source inspection traces the preserved aliases through the strict transport-ready owner. Is this the best way to solve the issue? Yes: deriving the scenario API from its typed dependency owner and deleting equivalent wrappers is the narrowest canonical solution, while retaining the public alias used by existing scenarios. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 1b4a60be15a1. LabelsLabel changes:
Label justifications:
EvidenceWhat 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
|
|
Merged via squash.
|
* origin/main: (130 commits) refactor(qa): consolidate scenario runtime helpers (openclaw#119623) fix(telegram): bind Mini App auth to dashboard launches refactor(agent-core): unify session projection and compaction summaries (openclaw#119639) fix(codex): allow natural reactions in the current conversation (openclaw#119649) refactor(providers): deduplicate bundled model catalogs (openclaw#119627) fix(ui): observe the active service worker after asset refresh (openclaw#119622) fix(agents): strip echoed base64 image payloads so photo-heavy turns no longer hit the per-turn output cap (openclaw#119488) improve: make state-heavy test suites faster (openclaw#119617) perf(agents): add concurrency benchmark (openclaw#119569) fix(browser): visibly report failed pairing and tab-sharing actions (openclaw#119526) refactor(lobster): consolidate embedded workflow execution (openclaw#119630) fix(plugin-sdk): stabilize tuple-derived API baseline ordering (openclaw#119635) docs(skills): make full-authority maintainer runs unattended (openclaw#119629) fix(managed-child): honor process groups that vanish before cleanup (openclaw#119614) fix(ci): stop label-driven automation churn (openclaw#119610) fix(media): keep the ttl sweep out of the managed outgoing tree (openclaw#119127) fix(claws): remove owner-qualified skills (openclaw#119606) fix(clawrouter): show stable error for malformed usage responses (openclaw#119580) fix(gateway): claim malformed plugin icon routes (openclaw#119559) fix(telegram): preserve truthful empty-content delivery (openclaw#88810) ...
Summary
Root cause and architecture
The QA runtime mirrored each dependency in both its public scenario-context type and its constructed context, while carrying a separate readiness wrapper and a local error converter identical to the existing plugin SDK implementation. The scenario runtime now derives its dependency surface directly from the typed dependency owner; QA Channel and Crabline derive readiness parameter types from their shared adapter; gateway failures use the canonical SDK
toErrorObject; and the gateway-client type remains private to its only production consumer.Compatibility and safety
waitForQaChannelReadyYAML calls retain their public scenario alias and now use the same canonical transport-ready function.Validation
pnpm check:changedpassed, including production and extension-test typechecking, formatting, lint, zero dead exports, plugin boundaries, SDK contracts, and runtime import-cycle checks..agents/skills/autoreview/scripts/autoreview --mode local --engine codex --model gpt-5.6-sol --thinking xhigh— clean, confidence 0.98.tbx_01kz914prh51ny526hbz9eb658; remote validation run; lease stopped and independently verified completed.After-fix gateway and strict transport-readiness artifact
Executed the actual repo-backed
channel-chat-baselinescenario on exact PR headdeacd676bd72a86da9d5c492a5e5244fc3375c24after independently verifying all 10 changed Git blobs. The scenario starts a real ephemeral QA Lab, mock OpenAI provider, Gateway, and QA Channel; its existing YAML callswaitForGatewayHealthyandwaitForQaChannelReadyin both scenario steps. Loopback ports and runner paths below are redacted; no external provider, personal gateway, or real account was used.The same exact-head Testbox also exercised the real production readiness adapter with focused negative/positive lifecycle fixtures:
Runtime proof: trusted Blacksmith Testbox
tbx_01kz95e4r9765tv6mqk3t3hw3s; after-fix gateway scenario run; lease stopped and independently verified completed.