Skip to content

fix(qa): repair smoke scenario lane selection - #101187

Closed
RomneyDa wants to merge 1 commit into
mainfrom
dallin/fix-qa-smoke-scenarios
Closed

RomneyDa wants to merge 1 commit into
mainfrom
dallin/fix-qa-smoke-scenarios

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Jul 6, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

The channel-sharded QA Smoke experiment exposed three scenario-contract failures that were previously hidden behind mixed-channel suite planning:

  • channel-chat-baseline shared transport state with another Telegram scenario, so its silence assertion observed an unrelated outbound marker.
  • slack-restart-resume was selected for Crabline even though Crabline's Slack admin ingress does not deliver provider HTTP event callbacks into OpenClaw.
  • whatsapp-restart-resume was selected for Crabline even though WhatsApp requires a linked Baileys auth store and Crabline does not seed linked credentials.

Why This Change Was Made

  • Mark channel-chat-baseline isolated so its silence-sensitive assertion owns a fresh transport and gateway.
  • Mark the Slack and WhatsApp restart-resume scenarios requiredChannelDriver: live; they remain covered by real channel lanes instead of timing out in deterministic Crabline smoke.
  • Add catalog regression assertions for both ownership decisions.
  • Leave automatic QA Smoke disabled as established by ci: temporarily disable QA smoke #101185. Restoring CI belongs in the channel-compatible replacement for ci: shard automatic QA smoke by channel #101164, not this scenario-only repair.

User Impact

Deterministic QA no longer schedules channel scenarios on drivers that cannot satisfy their runtime prerequisites, and the Telegram baseline cannot fail from another scenario's outbound traffic. This PR does not re-enable the automatic QA Smoke workflow.

Evidence

  • Preserved CI artifacts from run 28820059322:
    • Telegram baseline failed after seeing QA-TELEGRAM-REPLY-CHAIN-OK from another shared scenario.
    • Slack recorded admin ingress twice but produced no Slack event callback or outbound delivery.
    • WhatsApp never reached a running account and timed out twice waiting for transport readiness.
  • node scripts/run-vitest.mjs extensions/qa-lab/src/scenario-catalog.test.ts extensions/qa-lab/src/suite-planning.test.ts — 61 tests passed.
  • Focused local fallback: channel-chat-baseline + telegram-reply-chain-exact-marker passed together with concurrency 2 after isolation.
  • Static profile check: deterministic smoke excludes Slack and WhatsApp restart scenarios; both remain available to live channel lanes.
  • git diff --check — passed.
  • Fresh autoreview — clean.

Remote Testbox proof was attempted first but Blacksmith remained queued; the focused Telegram repro used the documented local fallback.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation extensions: qa-lab size: S maintainer Maintainer-authored PR labels Jul 6, 2026
@clawsweeper

clawsweeper Bot commented Jul 6, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 6, 2026, 7:50 PM ET / 23:50 UTC.

Summary
The PR marks the channel baseline scenario as isolated, marks Slack and WhatsApp restart/resume scenarios as live-driver-only, and adds catalog assertions for those scenario contracts.

PR surface: Tests +8, Other +3. Total +11 across 4 files.

Reproducibility: yes. from source inspection and the PR's preserved CI evidence: current main's smoke-ci profile uses Crabline, Slack/WhatsApp restart scenarios lack live-driver requirements, and channel-chat-baseline lacks the isolation marker used by the suite scheduler. I did not rerun the live/CI scenario in this read-only review.

Review metrics: 1 noteworthy metric.

  • Scenario scheduling metadata: 2 live-driver requirements added, 1 isolation marker added. These metadata changes directly alter which QA scenarios are selected by Crabline smoke and how shared transport workers are partitioned.

Merge readiness
Overall: 🐚 platinum hermit
Proof: 🌊 off-meta tidepool
Patch quality: 🐚 platinum hermit
Result: ready for maintainer review.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • Decide whether this lands separately or is folded into the broader QA Smoke restoration PR.
  • [P2] Ensure exact-head required checks are acceptable before merge.

Risk before merge

  • [P1] This intentionally removes Slack and WhatsApp restart/resume from Crabline implicit selections, so maintainers should be comfortable that those contracts are owned by live channel lanes.
  • [P1] The broader automatic QA Smoke restoration remains in fix(qa): restore automatic smoke coverage across channels #101186; this PR should not be treated as restoring the required smoke workflow by itself.

Maintainer options:

  1. Land scenario metadata as the accepted coverage split (recommended)
    Merge the narrow metadata repair if maintainers accept live-channel ownership for Slack and WhatsApp restart/resume until automatic smoke is restored separately.
  2. Fold the metadata into the sharded smoke PR
    Defer this branch if maintainers want one PR to own both scenario contracts and the automatic QA Smoke workflow replacement.

Next step before merge

  • No automated repair is needed; maintainers need to choose whether this narrow scenario-only repair should land separately or be absorbed by the broader restoration PR.

Maintainer decision needed

  • Question: Should this narrow scenario-contract repair land separately, or should maintainers let the broader QA Smoke restoration PR carry the same metadata changes?
  • Rationale: The patch looks correct as a small repair, but it overlaps with a broader open replacement and intentionally shifts Slack/WhatsApp restart-resume coverage out of Crabline implicit smoke selection.
  • Likely owner: RomneyDa — RomneyDa authored the affected scenario metadata and the temporary QA Smoke disable path, so they are the closest owner for whether this narrow repair should land separately.
  • Options:
    • Land the narrow repair first (recommended): Merge this scenario-only PR after exact-head checks are acceptable, then let the broader PR focus on restoring automatic QA Smoke.
    • Fold into the broader restoration: Keep this PR open or close it manually after fix(qa): restore automatic smoke coverage across channels #101186 lands with the same scenario metadata and workflow restoration.

Security
Cleared: The diff only changes QA scenario YAML and catalog assertions; it does not add dependencies, secret handling, workflow permissions, or executable supply-chain surface.

Review details

Best possible solution:

Land or fold the scenario metadata repair while keeping automatic QA Smoke restoration in the separate channel-sharded workflow path.

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

Yes from source inspection and the PR's preserved CI evidence: current main's smoke-ci profile uses Crabline, Slack/WhatsApp restart scenarios lack live-driver requirements, and channel-chat-baseline lacks the isolation marker used by the suite scheduler. I did not rerun the live/CI scenario in this read-only review.

Is this the best way to solve the issue?

Yes for the narrow scenario-contract bug: using existing requiredChannelDriver and suiteIsolation metadata is the smallest maintainable fix. Restoring the automatic QA Smoke workflow remains a separate sharded-workflow problem, not something this PR should solve.

AGENTS.md: found and applied where relevant.

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

Label changes

Label changes:

  • 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 external-contributor proof gate does not apply to this maintainer-authored PR; the body still includes preserved CI artifact references plus focused local/static validation.
  • remove rating: 🧂 unranked krab: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P1: This PR addresses an urgent QA Smoke lane-selection regression affecting automatic channel validation and maintainer CI confidence.
  • merge-risk: 🚨 automation: The diff changes QA scenario scheduling metadata, which can alter automatic smoke selection and live-lane coverage even when unit tests pass.
  • 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 external-contributor proof gate does not apply to this maintainer-authored PR; the body still includes preserved CI artifact references plus focused local/static validation.
Evidence reviewed

PR surface:

Tests +8, Other +3. Total +11 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 8 0 +8
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 3 3 0 +3
Total 4 11 0 +11

What I checked:

  • Repository policy read and applied: Root AGENTS.md and the scoped extensions/AGENTS.md were read; their review-depth and QA scenario-source guidance shaped this review. (AGENTS.md:1, 054e3675e19a)
  • Smoke profile uses Crabline: The current smoke-ci maturity profile is explicitly a Crabline-backed deterministic lane, so scenario requiredChannelDriver metadata directly controls implicit smoke selection. (taxonomy.yaml:9, 054e3675e19a)
  • Lane filter contract: Suite planning filters implicit selections by scenario execution.config.requiredChannelDriver and rejects explicit scenarios that do not match the active lane. (extensions/qa-lab/src/suite-planning.ts:46, 054e3675e19a)
  • Isolation contract: Suite planning already treats execution.suiteIsolation: isolated as the flag that forces isolated flow workers, so adding that metadata to the silence-sensitive baseline uses an existing scheduler contract. (extensions/qa-lab/src/suite-planning.ts:245, 054e3675e19a)
  • Current main lacks the repaired metadata: On current main, channel-chat-baseline has no suiteIsolation marker and Slack/WhatsApp restart-resume configs have no requiredChannelDriver, which matches the PR's stated failure mode. (qa/scenarios/channels/channel-chat-baseline.yaml:23, 054e3675e19a)
  • PR diff is now scenario-only: Live PR diff shows only four QA scenario/catalog files with 11 additions and no workflow re-enable, so the prior monolithic smoke-job finding no longer applies to this head. (extensions/qa-lab/src/scenario-catalog.test.ts:814, c7d51804843f)

Likely related people:

  • RomneyDa: Current-main blame for the affected scenario YAML and suite-planning lane-filter lines points to Dallin Romney's recent QA Smoke revert, and the same person authored the temporary disable PR and this narrow repair. (role: recent feature owner and current area contributor; confidence: high; commits: 19491fe34c55, 6bffda416614, c7d51804843f; files: qa/scenarios/channels/channel-chat-baseline.yaml, qa/scenarios/channels/slack-restart-resume.yaml, qa/scenarios/channels/whatsapp-restart-resume.yaml)
  • steipete: Peter Steinberger owns the open broader replacement PR that explicitly supersedes this PR and carries the same scenario-contract repair into a sharded QA Smoke restoration path. (role: adjacent replacement PR owner; confidence: medium; commits: 2e8dfb2d9682; files: .github/workflows/ci.yml, extensions/qa-lab/src/ci-smoke-plan.ts, qa/scenarios/channels/channel-chat-baseline.yaml)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

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.

How this review workflow works
  • 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.
Review history (1 earlier review cycle)
  • reviewed 2026-07-06T21:30:35.935Z sha 4edc5f8691a65eb92a455020cf9bd0d3acbfc672 :: found issues before merge. :: [P1] Do not re-enable the monolithic smoke job

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. labels Jul 6, 2026
@RomneyDa
RomneyDa force-pushed the dallin/fix-qa-smoke-scenarios branch from 4edc5f8 to c7d5180 Compare July 6, 2026 23:29
@openclaw-barnacle openclaw-barnacle Bot added size: XS and removed docs Improvements or additions to documentation size: S labels Jul 6, 2026
@RomneyDa

RomneyDa commented Jul 6, 2026

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 6, 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: the existing ClawSweeper review comment will be edited in place when the review finishes.

@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. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Jul 6, 2026
@vincentkoc

Copy link
Copy Markdown
Member

Superseded by #101186, landed as aed2482.

The landed canonical repair includes this PR's four scenario/catalog changes, restores automatic QA Smoke through channel-compatible Matrix and Telegram shards, and passed exact-head full CI plus all shard and aggregate checks. Dallin's authorship is preserved in the landed commit via Co-authored-by.

Closing this overlapping branch so the QA Smoke contract has one canonical implementation.

@vincentkoc vincentkoc closed this Jul 7, 2026
@steipete

steipete commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Superseded by #101186, landed as aed24822923.

The landed replacement includes this PR's valid scenario-contract repairs: isolated channel-chat-baseline, live-only Slack/WhatsApp restart scenarios, and catalog regression coverage. It also restores automatic smoke as three bounded Matrix/Telegram shards with all 89 eligible scenarios and a fail-closed aggregate check.

Thank you, @RomneyDa — your fixes and co-author credit are preserved in the landed commit.

@RomneyDa
RomneyDa deleted the dallin/fix-qa-smoke-scenarios branch October 22, 2026 00:19
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 merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P1 High-priority user-facing bug, regression, or broken workflow. 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.

3 participants