Repository navigation
fix(qa): keep profile runs aligned with scenario contracts - #119519
Conversation
Punchcard-Session: silver-valley-valley-dt
552e79c to
d66e785
Compare
|
Codex review: needs maintainer review before merge. Reviewed August 5, 2026, 3:03 AM ET / 07:03 UTC. ClawSweeper reviewWhat this changesThe PR preserves whether scenario IDs were explicitly requested when running a QA profile, pins strict scenarios to mock OpenAI, and updates compaction fixtures for staged summaries. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readinessNo blocking findings. Current main still has the QA profile-selection defect, and this focused repair keeps scenario contracts at their owning boundaries. Likely related people: steipete (high), vincentkoc (high), and Dallin Romney (medium). Priority: P2 Review scores
Verification
How this fits togetherQA Lab expands an operator’s profile into compatible scenario runs and produces release-evidence reports. Its mock OpenAI provider drives deterministic compaction and replay-safety scenarios without changing the shipped agent runtime. flowchart LR
A[QA profile request] --> B[Profile membership]
B --> C[Lane compatibility]
C --> D[QA suite execution]
D --> E[Mock compaction responses]
E --> F[Scenario assertions]
F --> G[QA evidence report]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +4, Tests +140, Other +13. Total +157 across 15 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Merge the QA-only repair after normal maintainer review, retaining explicit selection at the profile boundary and provider constraints in scenario metadata. Do we have a high-confidence way to reproduce the issue? Yes: current main expands a profile into nonempty scenario IDs and later infers that they were explicit; the focused PR test exercises the corrected implicit-versus-explicit skip behavior. Is this the best way to solve the issue? Yes: carrying the operator-origin fact into suite handling is better than inferring intent from an expanded list, while existing lane selectors own provider compatibility. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against db8e95f70ba3. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
Punchcard-Session: frost-brook-timber-mx * origin/main: fix: cap local tsgo CPU usage (#119517) fix(tool-search): normalize dotted call arguments (#119418) (#119464) fix(qa): retain child output on CLI timeouts (#119524) fix(discord): preserve authored block order in presentation components (#119506) fix: make plugin verification restart guidance install-neutral (#119508) fix(qa): preserve profile execution contracts (#119519) test(qa): cover managed OTEL runtime paths (#118965) Punchcard-Session: frost-brook-timber-mx
Punchcard-Session: silver-valley-valley-dt
Punchcard-Session: frost-brook-timber-mx * origin/main: fix: cap local tsgo CPU usage (openclaw#119517) fix(tool-search): normalize dotted call arguments (openclaw#119418) (openclaw#119464) fix(qa): retain child output on CLI timeouts (openclaw#119524) fix(discord): preserve authored block order in presentation components (openclaw#119506) fix: make plugin verification restart guidance install-neutral (openclaw#119508) fix(qa): preserve profile execution contracts (openclaw#119519) test(qa): cover managed OTEL runtime paths (openclaw#118965) Punchcard-Session: frost-brook-timber-mx
What Problem This Solves
Fixes an issue where release-style QA profile runs could execute scenarios on the wrong provider lane, treat profile-expanded scenarios as explicitly requested, and fail on intentional report-only skips. The compaction replay-safety scenario also modeled an obsolete summary format and assumed one provider request even though persisted compaction can use staged chunking, merging, and a quality retry.
Why This Change Was Made
The CLI now preserves whether scenario selection came from the operator or from profile expansion, so only genuinely explicit scenarios make optional skips blocking. Strict mock-only scenarios declare their required provider mode in scenario metadata.
The mock compaction fixture now emits the current five-section summary contract, preserves the latest summarized user ask through staged merges without leaking bulky or durable markers, and validates successful summary calls by causal position instead of invalid exact cardinality.
User Impact
No production runtime behavior changes. QA Lab release evidence can run profiles on each scenario's declared lane, keep unsupported optional lanes report-only, and verify compaction replay safety against the runtime's actual staged compaction behavior.
Evidence
d66e785a282fd60bb10d91197394aecc3fca3eb4.oxlintpassed all changed TypeScript files.oxfmt --check.git diff --checkclean; production delta is zero (215additions and58deletions, all under QA Lab or QA scenarios).runtime/compaction-retry-mutating-tool1/1 and completed the build.src/config/**exports. None of those files or symbols are in this diff; exact-head CI remains the merge gate.AI-assisted implementation and review; the maintainer has inspected the change and its evidence.
Punchcard-Session: silver-valley-valley-dt