Skip to content

Add Multipass mock channel foundation - #91487

Closed
RomneyDa wants to merge 1 commit into
mainfrom
dallin/multipass-channel-foundation
Closed

RomneyDa wants to merge 1 commit into
mainfrom
dallin/multipass-channel-foundation

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Jun 8, 2026

Copy link
Copy Markdown
Member

Summary

  • add a QA Lab mock-channel capability matrix artifact for future scorecard/QA wrapper consumption
  • register Telegram as the first single-channel mock upstream driver, selected with --transport telegram
  • carry channel metadata into qa-suite-summary.json and forward the selected channel through the Multipass guest command

Behavior

pnpm openclaw qa suite --runner multipass --transport telegram --provider-mode mock-openai now selects a Telegram mock-channel lane and forwards that selection into the Multipass guest run. The first driver records channelId: telegram, channelLive: false, and mockUpstreamDriverId: telegram-normalized-bus-v1 while using the existing QA Lab normalized bus/qa-channel runtime shim. The emitted channel-capability-matrix.json marks Telegram DM, group mention, and outbound transcript cells covered, and keeps Discord/Slack/WhatsApp gaps visible as planned rows.

Verification

  • pnpm install --frozen-lockfile
  • node scripts/run-vitest.mjs extensions/qa-lab/src/channel-capability-matrix.test.ts extensions/qa-lab/src/mock-channel-transport.test.ts extensions/qa-lab/src/qa-transport-registry.test.ts extensions/qa-lab/src/suite.summary-json.test.ts extensions/qa-lab/src/multipass.runtime.test.ts extensions/qa-lab/src/cli.runtime.test.ts
  • pnpm tsgo:extensions
  • pnpm exec oxfmt --check extensions/qa-lab/src/channel-capability-matrix.ts extensions/qa-lab/src/channel-capability-matrix.test.ts extensions/qa-lab/src/mock-channel-transport.ts extensions/qa-lab/src/mock-channel-transport.test.ts extensions/qa-lab/src/qa-channel-transport.ts extensions/qa-lab/src/qa-transport.ts extensions/qa-lab/src/qa-transport-registry.ts extensions/qa-lab/src/qa-transport-registry.test.ts extensions/qa-lab/src/suite.ts extensions/qa-lab/src/suite-summary.ts extensions/qa-lab/src/suite.summary-json.test.ts extensions/qa-lab/src/multipass.runtime.test.ts extensions/qa-lab/src/cli.ts extensions/qa-lab/src/cli.runtime.test.ts
  • git diff --check
  • .agents/skills/autoreview/scripts/autoreview --mode local -> clean, no accepted/actionable findings

Real Behavior Proof

Behavior addressed: QA Lab can select one mock messaging channel for a Multipass run and emit channel capability evidence for future scorecard work.

Real environment tested: Local OpenClaw checkout on branch dallin/multipass-channel-foundation, using the QA Lab Vitest project and extension typecheck.

Exact steps or command run after this patch: The verification commands above were run after the final patch and commit.

Evidence after fix: Focused QA Lab Vitest passed 6 files / 96 tests; pnpm tsgo:extensions, scoped oxfmt --check, and git diff --check passed.

Observed result after fix: The registry accepts --transport telegram, rejects all-mock-channels, Multipass forwards --transport telegram, and suite summary metadata includes the selected channel plus the capability matrix path.

What was not tested: A real Multipass VM execution was not run locally; this PR proves the selection, forwarding, artifact, summary, and type contracts with deterministic tests.

@clawsweeper

clawsweeper Bot commented Jun 8, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge. Reviewed June 8, 2026, 3:13 PM ET / 19:13 UTC.

Summary
Adds a QA Lab Telegram mock-channel transport and capability matrix, exposes telegram as a qa suite --transport option, writes channel metadata into suite summaries, and forwards the selected transport through Multipass command planning.

PR surface: Source +295, Tests +129. Total +424 across 14 files.

Reproducibility: not applicable. for the feature itself; the merge blocker is high-confidence from source inspection and the failing check-test-types run. The typed suite-runtime flow mock still satisfies the full adapter contract while missing the new required fields.

Review metrics: 2 noteworthy metrics.

  • QA transport IDs: 1 added (telegram). This changes the supported qa suite --transport values, so reviewers should check selection, help text, and forwarding behavior before merge.
  • QA summary channel metadata: 5 run fields added, 1 artifact path referenced. Downstream QA scorecard or wrapper consumers will depend on the new summary schema and capability matrix path staying intentional.

Merge readiness
Overall: 🦐 gold shrimp
Proof: 🌊 off-meta tidepool
Patch quality: 🦐 gold shrimp
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:

  • [P2] Add channelId and channelLive to typed QA Lab transport test doubles or a shared mock helper.
  • [P2] Rerun check-test-types and the focused QA Lab Vitest files after the repair.

Risk before merge

  • [P1] The PR currently fails check-test-types, so merging as-is would leave the QA Lab test type lane red until the adapter test double is updated.
  • [P1] The actual Multipass VM lane was not run; deterministic tests cover command construction and summary metadata, but guest execution remains unproven if maintainers want that proof before merge.

Maintainer options:

  1. Fix typed QA Lab mocks before merge (recommended)
    Add the new channelId and channelLive metadata to typed transport test doubles, or centralize them in a shared helper, then rerun the typecheck and focused QA Lab tests.
  2. Run real Multipass proof if required
    If maintainers want runtime guest confidence for this foundation PR, run the mock Telegram lane in a real Multipass VM before landing.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
Update QA Lab typed transport test doubles or a shared test helper so every full QaTransportAdapter test double includes channelId and channelLive, then rerun check-test-types and the focused QA Lab Vitest files covering suite-runtime flow, transport registry, mock-channel transport, and channel capability matrix.

Next step before merge

  • [P2] A narrow automated repair can update the typed QA Lab transport mock shape and rerun the relevant typecheck and focused tests.

Security
Cleared: The diff is confined to QA Lab TypeScript source and tests and adds no dependency, workflow, secret, package-resolution, or downloaded-code surface.

Review findings

  • [P2] Update typed transport mocks for new metadata — extensions/qa-lab/src/qa-transport.ts:162-164
Review details

Best possible solution:

Keep the adapter and registry approach once the new transport metadata contract is reflected in all typed QA Lab transport mocks and the test-type lane is green.

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

Not applicable for the feature itself; the merge blocker is high-confidence from source inspection and the failing check-test-types run. The typed suite-runtime flow mock still satisfies the full adapter contract while missing the new required fields.

Is this the best way to solve the issue?

No as submitted; the adapter and registry layer is a reasonable foundation, but the PR is not the best mergeable solution until the typed QA Lab transport mocks are updated with the new metadata.

Full review comments:

  • [P2] Update typed transport mocks for new metadata — extensions/qa-lab/src/qa-transport.ts:162-164
    QaTransportAdapter now requires channelId and channelLive, but the existing typed suite-runtime flow test double still matches the old adapter shape. Because that object satisfies the full runtime env type, check-test-types fails on this head; add the new fields to the typed mock or introduce a shared transport mock helper before merge.
    Confidence: 0.9

Overall correctness: patch is incorrect
Overall confidence: 0.88

AGENTS.md: found and applied where relevant.

Codex review notes: model gpt-5.5, reasoning high; reviewed against a7847ac484aa.

Label changes

Label changes:

  • add P3: This is a bounded QA Lab harness feature with a narrow typecheck repair needed, not an urgent user-facing runtime regression.
  • add merge-risk: 🚨 automation: The diff changes QA Lab runner and artifact automation, and the PR head currently leaves the test-type automation lane failing.

Label justifications:

  • P3: This is a bounded QA Lab harness feature with a narrow typecheck repair needed, not an urgent user-facing runtime regression.
  • merge-risk: 🚨 automation: The diff changes QA Lab runner and artifact automation, and the PR head currently leaves the test-type automation lane failing.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: This is a maintainer-labeled member PR, so the external contributor proof gate does not apply; the body records deterministic QA Lab checks and notes that no real Multipass VM run was performed.
Evidence reviewed

PR surface:

Source +295, Tests +129. Total +424 across 14 files.

View PR surface stats
Area Files Added Removed Net
Source 8 301 6 +295
Tests 6 130 1 +129
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 14 431 7 +424

Acceptance criteria:

  • [P1] pnpm check:test-types.
  • [P1] node scripts/run-vitest.mjs extensions/qa-lab/src/suite-runtime-flow.test.ts extensions/qa-lab/src/channel-capability-matrix.test.ts extensions/qa-lab/src/mock-channel-transport.test.ts extensions/qa-lab/src/qa-transport-registry.test.ts.

What I checked:

  • Root policy read: Root AGENTS.md was read fully and its OpenClaw PR review, protected-label, proof, and plugin-boundary guidance affected this review. (AGENTS.md:1, a7847ac484aa)
  • Scoped extension policy read: The scoped extensions policy was read fully; the PR stays within the QA Lab plugin boundary and does not add core imports or SDK surface. (extensions/AGENTS.md:1, a7847ac484aa)
  • PR diff adds required adapter metadata: The patch adds required channelId and channelLive fields, plus optional mockUpstreamDriverId, to QaTransportAdapter; typed full-adapter test doubles must now provide the required fields. (extensions/qa-lab/src/qa-transport.ts:162, 73fd2cb72adc)
  • Runtime env uses the full adapter contract: QaSuiteRuntimeEnv.transport aliases QaTransportAdapter, so tests satisfying suite-runtime env types are checked against the newly required adapter fields. (extensions/qa-lab/src/suite-runtime-types.ts:31, a7847ac484aa)
  • Existing typed transport mock lacks new fields: suite-runtime-flow.test.ts builds a transport object under a satisfies Parameters<typeof createQaSuiteScenarioFlowApi>[0]["env"] check, but the object still only includes the old adapter shape and lacks channelId and channelLive. (extensions/qa-lab/src/suite-runtime-flow.test.ts:169, a7847ac484aa)
  • Head check failure confirms the type break: GitHub check runs for the PR head show check-test-types completed with failure, while check-prod-types succeeded. (73fd2cb72adc)

Likely related people:

  • Shakker: Blame and git log -S tie the current QA Lab transport adapter, suite summary writer, typed runtime env test, and Multipass runtime surfaces to the same recent QA Lab feature commit. (role: feature-history owner and recent area contributor; confidence: high; commits: ca7047e460ce; files: extensions/qa-lab/src/qa-transport.ts, extensions/qa-lab/src/suite-runtime-flow.test.ts, extensions/qa-lab/src/suite.ts)
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.

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. labels Jun 8, 2026
@RomneyDa

RomneyDa commented Jun 8, 2026

Copy link
Copy Markdown
Member Author

This might be valid but it was a slop confusion of openclaw/multipass and multipass vm runner

@RomneyDa RomneyDa closed this Jun 8, 2026
@shakkernerd
shakkernerd deleted the dallin/multipass-channel-foundation branch October 19, 2026 23:33
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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: M status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant