Repository navigation
fix(qa): select the scenario's required provider before its models - #119491
Conversation
|
Codex review: found issues before merge. Reviewed August 5, 2026, 3:18 AM ET / 07:18 UTC. ClawSweeper reviewWhat this changesThe PR makes a single selected QA scenario supply the default provider and models before direct or unified QA suite planning, while rejecting conflicting provider declarations. Merge readiness⛔ Blocked by patch quality or review findings - 6 items remain Keep open for a protected maintainer decision: current main deliberately preserves run-owned provider defaults, while this PR would reintroduce scenario-driven provider and model selection. The attached Gateway output is real proof of the branch behavior, but not that the now-reverted behavior is desired. Priority: P2 Review scores
Verification
How this fits togetherQA Lab is OpenClaw’s private scenario runner: CLI inputs and scenario metadata determine a provider/model lane, then launch an ephemeral gateway and execute the selected flow. This PR changes which layer owns the default lane when an operator omits a provider. flowchart LR
A[QA CLI request] --> B[Scenario catalog]
A --> C[Run-level provider default]
B --> D[Scenario lane requirements]
C --> E[Model selection]
D --> E
E --> F[Suite planning]
F --> G[Ephemeral gateway run]
Decision needed
Why: This is a product-contract choice for private QA execution, not a mechanical correction: current main intentionally restores the opposite behavior. Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +8, Tests +222. Total +230 across 8 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep provider and model defaults run-owned; retain only a separately approved, narrow metadata-validation change if conflicting scenario declarations must be rejected. Do we have a high-confidence way to reproduce the issue? Yes—source-reproducible: current main initializes the direct and unified run-level defaults before scenario-derived selection, while the branch changes that ordering and the PR body shows the resulting Gateway run. Is this the best way to solve the issue? No. Current main’s newer contract keeps provider defaults at the run owner; scenario requirements remain eligibility constraints unless a maintainer explicitly adopts a different defaulting rule. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against ae54355087b7. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
|
Merged via squash.
|
…penclaw#119491) * fix(qa): resolve scenario provider requirements before selection * fix(qa): preserve validated scenario provider lane type * test(qa): isolate provider lane selection regressions * fix(qa): honor explicit scenario lanes in unified runtime suites
What Problem This Solves
Resolves a problem where selecting one QA scenario could choose the wrong provider/model or reject a supported scenario depending on which existing scenario field declared its provider lane. Explicitly conflicting lane declarations also had no single authoritative owner.
Why This Change Was Made
Resolve both existing scenario-provider declarations in one canonical QA owner before choosing models or planning scenarios. Preserve explicit operator selections and implicit single-scenario defaults, reject conflicting declarations, and remove the old late override and duplicated lane filter. This changes private QA selection only; it adds no product configuration, provider API, persisted state, or compatibility surface.
User Impact
QA operators get the intended mock or live provider consistently across direct runs, profile planning, and implicit single-scenario selection.
Evidence
extensions/qa-lab/src/scenario-lane.test.tsandextensions/qa-lab/src/suite-planning.test.ts, including explicit-override and implicit-singleton controls.Inspectable owner-path proof
Trusted Blacksmith Testbox exercised the real unified suite owner, not a selector-only mock:
The runtime-partitioned singleton reaches the injected real lab-start boundary and records
providerMode: live-frontierin the unified summary. Its explicit mock-override control does not start a lab and reports the actual provider-lane mismatch. Inference is limited to an omitted override plus exactly one selected flow scenario; native-only, mixed, profile, operator-explicit, and default provider behavior remain unchanged. Provider resolution happens before suite progress starts.Real Gateway provider-selection verdict
Trusted Testbox invoked the actual private-QA CLI with no provider override and a real config-only mock-pinned scenario:
The same run passed the real unified-suite owner regressions (8 tests) and 154 owner/sibling tests across nine files; unified scenario summary asserts live-frontier primary and alternate OpenAI models while explicit mock remains rejected. Exact touched PR files were verified byte-identical to the integration proof checkout. Testbox run: https://github.com/openclaw/openclaw/actions/runs/30983445783
Current-main and shipped-tag contract audit
The latest automated review's claim that merged #119519 deliberately reverted scenario-derived provider selection is factually incorrect:
The two automated P1 findings depend on a nonexistent "deliberate revert" and are rejected based on the exact shipped source, current source, merged commit file list, preserved operator intent, and real Gateway output. No provider-default policy or public configuration surface is added.