Skip to content

refactor(qa): remove live-channel scenario registries and wrappers - #115752

Merged
RomneyDa merged 5 commits into
mainfrom
fix/qa-slack-portable-scenarios
Jul 30, 2026
Merged

RomneyDa merged 5 commits into
mainfrom
fix/qa-slack-portable-scenarios

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Jul 29, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Live Slack, Discord, and WhatsApp QA scenarios duplicated canonical YAML identity in channel-owned TypeScript registries and execution.config.*ScenarioId fields. They also required one exported runtime wrapper for every scenario, making YAML routing depend on 62 redundant functions.

Why This Change Was Made

  • Pass canonical YAML scenario ID and title into transport flow preparation.
  • Treat execution.channel / execution.channels as the source of channel eligibility.
  • Remove the Slack, Discord, and WhatsApp scenario-ID unions, registry maps, lookup helpers, and duplicated channel-specific scenario-ID config fields.
  • Route every channel flow through one shared channel runner: runSlackScenario, runDiscordScenario, or runWhatsAppScenario.
  • Add the generic { moduleExport: exportName } flow argument so YAML can reference an implementation exported by its already-loaded scenario module without embedding dynamic-import expressions.
  • Re-export each channel's implementation objects from its scenario runtime and migrate all 62 affected YAML flows to the shorthand.
  • Delete all 62 one-function-per-scenario runtime wrappers; parity tests verify every YAML binding resolves to a real implementation export.
  • Preserve main's exact Slack account/channel replacePaths behavior after rebasing.
  • Rebuild WhatsApp run markers/callback state for every transient-driver retry while retaining the gateway config prepared for the first attempt.

User Impact

Portable channel flows no longer need channel-private scenario IDs or runtime wrapper exports. YAML remains the source of scenario identity, eligibility, title, timeout, runtime, and plugins. Each flow names a channel-owned implementation export using a concise, validated argument, and the shared channel runner executes that behavior.

Evidence

AI-assisted: yes. Agent transcript omitted unless requested.

@RomneyDa RomneyDa self-assigned this Jul 29, 2026
@RomneyDa
RomneyDa force-pushed the fix/qa-slack-portable-scenarios branch from 2ac1170 to 1396b07 Compare July 29, 2026 08:44
@RomneyDa RomneyDa changed the title fix(qa): portable Slack flows fail during preparation refactor(qa): remove duplicate live-channel scenario registries Jul 29, 2026
@RomneyDa RomneyDa changed the title refactor(qa): remove duplicate live-channel scenario registries refactor(qa): remove live-channel scenario registries and wrappers Jul 29, 2026
@RomneyDa
RomneyDa force-pushed the fix/qa-slack-portable-scenarios branch from 899ae3e to c4730e6 Compare July 29, 2026 09: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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels Jul 29, 2026
@clawsweeper

clawsweeper Bot commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 30, 2026, 1:43 AM ET / 05:43 UTC.

ClawSweeper review

What this changes

The PR replaces per-scenario Slack, Discord, and WhatsApp QA wrappers and registries with YAML-selected implementation exports executed through shared channel runners.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

This is a maintainer-owned QA Lab refactor with a coherent shared-runner design, focused parity coverage, and no concrete patch defect identified from the supplied current-head evidence. Keep it open for normal maintainer review and completion of the remaining current-head checks.

Priority: P3
Reviewed head: 6f7a52b10afb6f29b7b8f93e8b7da8c3f26f2a7a

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch has focused coverage and a coherent simplification, with final readiness depending on completion of the current-head check suite.
Proof confidence 🌊 off-meta tidepool Not applicable: This member-authored internal QA refactor is exempt from the external-contributor real-behavior-proof gate; the PR body nevertheless links focused Testbox and CI evidence for the changed paths.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This member-authored internal QA refactor is exempt from the external-contributor real-behavior-proof gate; the PR body nevertheless links focused Testbox and CI evidence for the changed paths.
Evidence reviewed 4 items Shared binding design: The branch adds a validated moduleExport argument form, resolves it against the already loaded scenario module, and passes scenario ID and title through suite preparation so channel implementations no longer depend on duplicated registry identity.
Cross-channel parity coverage: The changed parity test checks YAML scenario-module calls, shared runner names, context expressions, and exported implementation bindings across Discord, Slack, and WhatsApp.
Current-head check state: The supplied check data reports successful build, production/test type, dependency, boundary, and security checks; QA Smoke, lint, and several compact-node lanes were still in progress at review time.
Findings None None.
Security None None.

How this fits together

QA Lab reads YAML scenario definitions, prepares a channel-specific test environment, and invokes scenario code to exercise live channel behavior. This refactor changes how scenario metadata and implementation objects flow from YAML through the shared runner into Slack, Discord, and WhatsApp executions.

flowchart LR
  A[QA scenario YAML] --> B[Scenario module flow]
  B --> C[Shared suite runner]
  C --> D[Channel environment]
  D --> E[Shared channel runner]
  E --> F[Scenario implementation]
  F --> G[QA evidence and result]
Loading

Before merge

  • Resolve merge risk (P1) - This large internal QA migration changes every affected YAML binding at once; complete the still-running current-head QA Smoke and lint lanes before merging so an unresolved binding or channel preparation regression is not carried into the QA suite.
Agent review details

Security

None.

Review metrics

None.

Stored data model

Persistent data-model change detected: serialized state: extensions/qa-lab/src/scenario-module-flow.ts, unknown-truncated-pull-files. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Retain one validated YAML-to-module-export path with all-scenario parity coverage, then merge after the remaining current-head QA Smoke and lint checks complete successfully.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Retain one validated YAML-to-module-export path with all-scenario parity coverage, then merge after the remaining current-head QA Smoke and lint checks complete successfully.

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

Not applicable: this PR refactors QA Lab execution and does not report a standalone user-facing bug. The supplied evidence instead covers the affected scenario preparation and runner paths.

Is this the best way to solve the issue?

Yes, based on the supplied diff: resolving a named implementation from the already loaded scenario module removes duplicated scenario identity while retaining YAML as the source of routing metadata. The all-YAML parity check is the appropriate guard against a missing export or mismatched runner binding.

AGENTS.md: unclear because the file could not be read completely.

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

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.

Label justifications:

  • P3: The PR is a QA Lab maintainability refactor without evidence of a current production-user regression.
  • 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: This member-authored internal QA refactor is exempt from the external-contributor real-behavior-proof gate; the PR body nevertheless links focused Testbox and CI evidence for the changed paths.

Evidence

What I checked:

  • Shared binding design: The branch adds a validated moduleExport argument form, resolves it against the already loaded scenario module, and passes scenario ID and title through suite preparation so channel implementations no longer depend on duplicated registry identity. (extensions/qa-lab/src/scenario-module-flow.ts:1, 6f7a52b10afb)
  • Cross-channel parity coverage: The changed parity test checks YAML scenario-module calls, shared runner names, context expressions, and exported implementation bindings across Discord, Slack, and WhatsApp. (extensions/qa-lab/src/live-transports/scenario-module-parity.test.ts:1, 6f7a52b10afb)
  • Current-head check state: The supplied check data reports successful build, production/test type, dependency, boundary, and security checks; QA Smoke, lint, and several compact-node lanes were still in progress at review time. (6f7a52b10afb)
  • Contributor-provided behavior evidence: The PR body links focused Testbox coverage for channel suite preparation, Slack, Discord, WhatsApp, Matrix, and module routing, including an all-YAML module-binding parity run. (6f7a52b10afb)

Likely related people:

  • RomneyDa: The supplied history shows this member authored all five commits in the current refactor and is assigned to the PR; deeper current-main provenance could not be established from the available read-only inspection session. (role: current QA Lab refactor contributor; confidence: medium; commits: 0570ba28aee7, c577ba854611, 8dce56b7fa35; files: extensions/qa-lab/src/scenario-module-flow.ts, extensions/qa-lab/src/live-transports/scenario-module-parity.test.ts, extensions/qa-lab/src/live-transports/slack/scenario-runtime.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Wait for the in-progress QA Smoke and lint lanes to complete successfully before merge.

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-07-29T13:00:25.700Z sha c4730e6 :: needs maintainer review before merge. :: none
  • reviewed 2026-07-30T05:35:14.321Z sha a8a1337 :: needs maintainer review before merge. :: none

@RomneyDa
RomneyDa force-pushed the fix/qa-slack-portable-scenarios branch from c4730e6 to a8a1337 Compare July 30, 2026 05:30
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Jul 30, 2026
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Jul 30, 2026
@RomneyDa
RomneyDa merged commit 7df05d5 into main Jul 30, 2026
125 of 127 checks passed
@RomneyDa
RomneyDa deleted the fix/qa-slack-portable-scenarios branch July 30, 2026 05:56
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 30, 2026
…penclaw#115752)

* refactor(qa): remove duplicate channel scenario registries

* refactor(qa): route live scenarios through shared runners

* fix(qa): isolate WhatsApp driver retries

* refactor(qa): add module export flow arguments

* test(qa): include scenario metadata in matrix fixture
vincentkoc added a commit to Hackerismydream/openclaw that referenced this pull request Jul 30, 2026
* origin/main: (24 commits)
  fix(e2e): apply default service identity per flow (openclaw#116265)
  chore(android): record 2026.7.4 Play metadata
  fix(ci): accept one verified Telegram SUT launch (openclaw#116267)
  chore(android): prepare 2026.7.4 Play release
  fix(e2e): align service account state (openclaw#116254)
  refactor(qa): remove live-channel scenario registries and wrappers (openclaw#115752)
  fix(ci): let trusted Telegram QA stage runtime (openclaw#116252)
  fix(plugins): plugin install survives pnpm-only overrides (openclaw#116245)
  test(qa): recognize internal image completions (openclaw#116234)
  fix(test): review Codex runtime scan chunks (openclaw#116212)
  fix(systemd): clear start-limit latch before gateway start (openclaw#116178)
  fix(security): expose every executable call in plugin scans (openclaw#116222)
  chore(sdk): repin the API baseline after the resolver signature change
  test(e2e): delay the draft-proof final answer past the start gate
  fix(channels): resolve tool progress against the caller's stream mode
  fix(ci): satisfy docs formatting, lint, and the SDK API baseline
  test(e2e): add a progress-draft scenario to the mock provider
  docs(telegram): call out the changed default preview on upgrade
  refactor(channels): render the progress label as a block, not a line
  fix(channels): show tool lines under the progress status headline
  ...
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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL 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