Skip to content

fix(qa): keep profile runs aligned with scenario contracts - #119519

Merged
vincentkoc merged 1 commit into
mainfrom
fix/qa-profile-lane-selection-20260805
Aug 5, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/qa-profile-lane-selection-20260805

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Aug 5, 2026 •

Copy link
Copy Markdown
Member

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

AI-assisted implementation and review; the maintainer has inspected the change and its evidence.

Punchcard-Session: silver-valley-valley-dt

@vincentkoc vincentkoc self-assigned this Aug 5, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review August 5, 2026 06:40
Punchcard-Session: silver-valley-valley-dt
@vincentkoc
vincentkoc force-pushed the fix/qa-profile-lane-selection-20260805 branch from 552e79c to d66e785 Compare August 5, 2026 06:46
@clawsweeper clawsweeper Bot added 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. P2 Normal backlog priority with limited blast radius. labels Aug 5, 2026
@clawsweeper

clawsweeper Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 5, 2026, 3:03 AM ET / 07:03 UTC.

ClawSweeper review

What this changes

The 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 provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

No 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
Reviewed head: d66e785a282fd60bb10d91197394aecc3fca3eb4

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused QA repair with owner-boundary alignment, meaningful regression coverage, and positive supplied exact-head validation.
Proof confidence 🌊 off-meta tidepool Not applicable: The author is a repository member, so the external-contributor proof gate does not apply; the supplied PR context additionally reports two successful exact-scenario runs.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The author is a repository member, so the external-contributor proof gate does not apply; the supplied PR context additionally reports two successful exact-scenario runs.
Evidence reviewed 7 items Current-main behavior: Current main passes profile-expanded scenario IDs to the suite without preserving their operator-selected origin, then treats a nonempty ID list as explicit selection for optional-skip handling.
Profile intent repair: The PR passes explicit selection separately from expanded scenario IDs, so only operator-selected scenarios make optional skips blocking.
Provider-lane owner boundary: Scenario metadata is filtered by the shared profile selector and revalidated by suite planning; the added mock-only metadata therefore prevents incompatible profile lanes before dispatch.
Findings None None.
Security None None.

How this fits together

QA 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]
Loading

Before merge

  • Complete next step (P2) - This protected, member-authored PR has no mechanical repair blocker; retain it for normal maintainer merge review.
Agent review details

Security

None.

PR surface

Source +4, Tests +140, Other +13. Total +157 across 15 files.

View PR surface stats
Area Files Added Removed Net
Source 2 43 39 +4
Tests 4 156 16 +140
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 9 16 3 +13
Total 15 215 58 +157

Review metrics

Metric Value Why it matters
QA runtime versus tests QA runtime +43/-39; tests +156/-16; scenarios +16/-3 The small net runtime increase implements the profile-origin and current summary contracts; the larger test and scenario delta supplies focused regression coverage.

Stored data model

Persistent data-model change detected: serialized state: extensions/qa-lab/src/cli.runtime.test.ts, vector/embedding metadata: qa/scenarios/memory/active-memory-cold-first-turn-trigger-recall.yaml. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best 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.

Labels

Label changes:

  • add P2: This repairs internal release-evidence QA behavior with limited blast radius and no shipped runtime change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The author is a repository member, so the external-contributor proof gate does not apply; the supplied PR context additionally reports two successful exact-scenario runs.

Label justifications:

  • P2: This repairs internal release-evidence QA behavior with limited blast radius and no shipped runtime 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 author is a repository member, so the external-contributor proof gate does not apply; the supplied PR context additionally reports two successful exact-scenario runs.

Evidence

What I checked:

Likely related people:

  • steipete: Blame attributes the profile-to-suite call that loses operator-selection provenance to this commit; recent QA fixture work is also attributed to the same area. (role: introduced current profile invocation; confidence: high; commits: 23c7981a73de, 702eb6eb5734; files: extensions/qa-lab/src/cli.runtime.ts, extensions/qa-lab/src/providers/mock-openai/server.ts)
  • vincentkoc: This member’s current-main QA coverage commit touches the adjacent mock-provider surface, in addition to the reviewed repair. (role: recent QA mock and lane contributor; confidence: high; commits: db8e95f70ba3, d66e785a282f; files: extensions/qa-lab/src/providers/mock-openai/server.ts, extensions/qa-lab/src/cli.runtime.ts)
  • Dallin Romney: History shows taxonomy-owned profile and live-lane selection refactors in this owner area. (role: profile-selection contributor; confidence: medium; commits: 9feb6ad16187, 714a46d7f216; files: extensions/qa-lab/src/profile-planning.ts, extensions/qa-lab/src/scenario-lane.ts)

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.

@vincentkoc
vincentkoc merged commit ae54355 into main Aug 5, 2026
133 of 135 checks passed
@vincentkoc
vincentkoc deleted the fix/qa-profile-lane-selection-20260805 branch August 5, 2026 07:07
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Aug 5, 2026
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
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 6, 2026
Punchcard-Session: silver-valley-valley-dt
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 6, 2026
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extensions: qa-lab maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M 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