Skip to content

fix(qa): preserve required scenario isolation in serial suites - #119439

Merged
steipete merged 1 commit into
mainfrom
codex/autoqa-suite-isolation-20260805
Aug 5, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/autoqa-suite-isolation-20260805

Conversation

@steipete

@steipete steipete commented Aug 5, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where QA scenarios that explicitly require their own worker could silently share a Gateway and scenario state whenever suites ran serially, with fail-fast, or with concurrency one.

Why This Change Was Made

The serial worker-selection owner now reuses the existing canonical scenario-isolation predicate instead of maintaining an incomplete second policy. Provider-mode isolation remains unchanged.

User Impact

Plugin lifecycle, gateway runtime, memory, image-generation, mutating-flow, and explicitly isolated QA scenarios retain their promised environment isolation even in serial suites.

Evidence

  • Six authentic regression cases failed before the fix and passed afterward, including the real plugin-lifecycle-hot-reload catalog scenario.
  • Full QA-focused test group passed 98 tests.
  • Full pnpm check:changed passed all five typecheck lanes, lint, formatting, and architecture guards.
  • Fresh isolated autoreview of this exact branch: clean.
  • Production code decreases by two lines by deleting duplicate isolation policy.

Inspectable exact-head runtime proof

Exact-head required CI passed: https://github.com/openclaw/openclaw/actions/runs/30970537417

The actual isolated-worker QA artifact is https://github.com/openclaw/openclaw/actions/runs/30970537417/artifacts/8916372622. Its primary/flow/isolated/qa-suite-summary.json proves the real plugin-lifecycle-hot-reload scenario was dispatched to its own isolated Gateway worker and passed:

{
  "head": "cf246d5b053420cbfaf47ba8cdfb0cd676544bab",
  "artifactPath": "primary/flow/isolated/qa-suite-summary.json",
  "providerMode": "mock-openai",
  "channelDriver": "crabline",
  "scenarioIds": ["plugin-lifecycle-hot-reload"],
  "counts": {"total": 1, "passed": 1, "failed": 0, "skipped": 0}
}

The exact-head hosted runtime log also records:

[qa-suite] scenario start (1/1): plugin-lifecycle-hot-reload
[qa-suite] scenario pass (1/1): plugin-lifecycle-hot-reload

The same artifact contains a separate six-scenario shared suite, proving the isolated plugin scenario did not share its Gateway worker with ordinary scenarios.

@steipete
steipete marked this pull request as ready for review August 5, 2026 02:51
@steipete

steipete commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper review

@clawsweeper

clawsweeper Bot commented Aug 5, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. 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 4, 2026, 11:21 PM ET / August 5, 2026, 03:21 UTC.

ClawSweeper review

What this changes

The branch makes serial QA suites use the canonical scenario-isolation predicate and adds six regression cases for omitted isolation triggers.

Regression provenance

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

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

Keep open: this remains a necessary, focused QA repair. Current main still uses an incomplete serial-worker predicate, while the branch reuses the existing canonical isolation rule and supplies exact-head runtime proof.

Priority: P2
Reviewed head: cf246d5b053420cbfaf47ba8cdfb0cd676544bab

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused canonical-policy repair with strong exact-head QA proof and no actionable correctness finding.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (linked_artifact): The PR body provides exact-head hosted runtime artifact and log evidence that an isolated QA worker ran and passed the affected plugin-lifecycle scenario.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (linked_artifact): The PR body provides exact-head hosted runtime artifact and log evidence that an isolated QA worker ran and passed the affected plugin-lifecycle scenario.
Evidence reviewed 7 items Current-main defect: Current main's serial selector checks only config patches, provider mode, runtime, and transport policy, but the adjacent canonical predicate also covers explicit isolation, gateway runtime settings, plugins, memory, image setup, and mutating flow calls.
Runtime owner and consequence: The direct flow runner selects isolated versus standard execution from this predicate; isolated execution launches each selected scenario through a separate worker invocation.
Sibling path already uses the canonical rule: The unified suite planner already partitions canonical-isolation scenarios separately, so the branch aligns the direct flow-runner path instead of adding a parallel policy.
Findings None None.
Security None None.

How this fits together

QA Lab runs scenario suites against Gateway workers and selects either a shared worker or isolated workers. That choice controls whether scenario-specific plugins, runtime options, and mutable state can leak into another scenario.

flowchart TD
A[QA scenario catalog] --> B[Flow suite runner]
B --> C[Worker-selection decision]
C --> D[Canonical isolation rule]
D --> E[Shared or isolated Gateway workers]
E --> F[Scenario results and artifacts]
Loading

Before merge

  • Complete next step (P2) - No repair job is needed: the branch is correct, has sufficient runtime proof, and remains open for normal protected maintainer PR review.
Agent review details

Security

None.

PR surface

Source -2, Tests +39. Total +37 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 2 4 -2
Tests 1 39 0 +39
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 41 4 +37

Review metrics

Metric Value Why it matters
Production versus test delta production -2 net (2 added, 4 removed); tests +39 The repair removes duplicate production policy while adding coverage for the six omitted isolation triggers.

Technical review

Best possible solution:

Land the canonical-predicate reuse with its serial regression matrix so every direct QA flow path honors the same worker-isolation contract.

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

Yes—source reproducible: current main sends multi-scenario serial suites with several canonical isolation triggers to the standard shared-worker path.

Is this the best way to solve the issue?

Yes—the selector should reuse the canonical isolation predicate already used by the unified planner, avoiding a second policy that can drift.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against a8caab5c3d3c.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient. The PR body provides exact-head hosted runtime artifact and log evidence that an isolated QA worker ran and passed the affected plugin-lifecycle scenario.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (linked_artifact): The PR body provides exact-head hosted runtime artifact and log evidence that an isolated QA worker ran and passed the affected plugin-lifecycle scenario.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: 📣 needs proof: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: This corrects bounded QA-suite state isolation rather than a user-facing production runtime outage.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (linked_artifact): The PR body provides exact-head hosted runtime artifact and log evidence that an isolated QA worker ran and passed the affected plugin-lifecycle scenario.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body provides exact-head hosted runtime artifact and log evidence that an isolated QA worker ran and passed the affected plugin-lifecycle scenario.

Evidence

What I checked:

  • Current-main defect: Current main's serial selector checks only config patches, provider mode, runtime, and transport policy, but the adjacent canonical predicate also covers explicit isolation, gateway runtime settings, plugins, memory, image setup, and mutating flow calls. (extensions/qa-lab/src/suite-planning.ts:282, a8caab5c3d3c)
  • Runtime owner and consequence: The direct flow runner selects isolated versus standard execution from this predicate; isolated execution launches each selected scenario through a separate worker invocation. (extensions/qa-lab/src/suite-run.runtime.ts:123, a8caab5c3d3c)
  • Sibling path already uses the canonical rule: The unified suite planner already partitions canonical-isolation scenarios separately, so the branch aligns the direct flow-runner path instead of adding a parallel policy. (extensions/qa-lab/src/suite-launch.runtime.ts:320, a8caab5c3d3c)
  • Focused regression coverage: The branch verifies all six missing canonical triggers at concurrency one and retains the plain serial shared-worker case. (extensions/qa-lab/src/suite-planning.test.ts:752, cf246d5b0534)
  • Behavior provenance: Blame ties both the incomplete selector and canonical predicate to the current module-introduction commit, establishing the duplicated-policy boundary the branch removes. (extensions/qa-lab/src/suite-planning.ts:282, 6293b54250fc)
  • Still needed and unshipped: The branch commit is not an ancestor of current main, and no release tag contains it; the requested behavior is therefore neither on main nor released. (cf246d5b0534)

Likely related people:

  • vincentkoc: Introduced the current suite-planning module containing both the serial selector and canonical isolation predicate. (role: introduced current decision surface; confidence: high; commits: 6293b54250fc; files: extensions/qa-lab/src/suite-planning.ts, extensions/qa-lab/src/suite-launch.runtime.ts)
  • steipete: Has recent merged QA runtime work and authored the focused repair after the duplicate decision boundary became visible. (role: recent QA runtime contributor; confidence: high; commits: f15120c6d19b, cf246d5b0534; files: extensions/qa-lab/src/suite-planning.ts, extensions/qa-lab/src/suite-run.runtime.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.

History

Review history (2 earlier review cycles)
  • reviewed 2026-08-05T03:03:20.689Z sha cf246d5 :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-05T03:09:09.890Z sha cf246d5 :: needs real behavior proof before merge. :: none

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. 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. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 5, 2026
@steipete
steipete merged commit b5237ac into main Aug 5, 2026
200 of 214 checks passed
@steipete
steipete deleted the codex/autoqa-suite-isolation-20260805 branch August 5, 2026 03:26
@steipete

steipete commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Aug 5, 2026
* origin/main:
  fix(channels): honor explicit preview streaming settings
  refactor(telegram): consolidate outbound contracts and targets (#119438)
  fix(qa): retry transport cleanup and always stop owned labs (#119442)
  fix(mcp): guard stdio stdout frame parsing against oversized-buffer crash (#119379)
  refactor(auto-reply): centralize delivery deduplication and routing (#119436)
  fix(qa): preserve scenario isolation in serial suites (#119439)
  perf(xai): lazy-load optional capability runtimes (#119374)
  refactor(browser): consolidate browser CLI and normalization helpers (#119432)
  fix(qa): require ready transport accounts (#119431)
  refactor(media): share image and video geometry normalization (#119416)
  fix(config): preserve plugin metadata for missing config (#119421)
  fix: retry delivery when outbound adapter is unavailable (#119371)
  fix(cli): retire invalid secret flags and prove doctor recovery (#118926)
  refactor(signal): share outbound and reaction transport (#119415)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 5, 2026
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. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS 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