Skip to content

test(qa): migrate channel streaming evidence to transport flow - #99310

Merged
RomneyDa merged 4 commits into
mainfrom
dallin/qa-channel-message-flows
Jul 3, 2026
Merged

RomneyDa merged 4 commits into
mainfrom
dallin/qa-channel-message-flows

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Jul 3, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

The channel-message-flows QA scenario linked a mock-only Telegram helper test. It claimed primary channels.streaming evidence without running a real gateway turn or observing provider-shaped channel requests, and its helper/test pair duplicated behavior already covered by lower-level Telegram tests.

Why This Change Was Made

This migrates the scenario to one transport-native QA flow:

  • QaTransportAdapter.waitForOutboundSequence exposes sent/edited/deleted lifecycle events without leaking QA-bus or provider-specific syntax into YAML.
  • QA Channel now represents partial replies as editable previews while preserving separate block deliveries, tool-call metadata, and failure cleanup.
  • Crabline Telegram normalizes real sendMessage, editMessageText, and deleteMessage recorder traffic and correlates unambiguous preview/final events by message.
  • The deterministic mock provider streams preview-only text, then exposes the asserted marker only in the completed final response, so a stalled preview cannot satisfy primary evidence.
  • The obsolete 616-line Telegram QA helper/test pair is deleted; focused Telegram draft-stream tests remain in place.
  • The repository channel-message-flows skill now runs the flow through QA Channel or Crabline Telegram.

No taxonomy entries or coverage IDs are added. The scenario claims primary channels.streaming and secondary runtime.delivery; the old unproven thread and reasoning secondary claims are removed.

User Impact

QA maturity evidence for channels.streaming now comes from a real gateway turn. The same YAML runs through the synthetic QA Channel for local/UI workflows and through the real Telegram plugin against Crabline for provider-shaped transport proof.

Evidence

  • OPENCLAW_HEAVY_CHECK_LOCK_SCOPE=worktree node scripts/run-vitest.mjs extensions/qa-lab/src/providers/mock-openai/server.test.ts extensions/qa-channel/src/inbound.test.ts extensions/qa-lab/src/qa-transport.test.ts extensions/qa-lab/src/crabline-transport.test.ts extensions/qa-lab/src/scenario-catalog.test.ts extensions/qa-lab/src/scenario-flow-runner.test.ts extensions/qa-lab/src/scenario-runtime-api.test.ts extensions/qa-lab/src/suite-runtime-flow.test.ts
    • 8 files, 182 tests passed before the final matcher guard.
  • OPENCLAW_HEAVY_CHECK_LOCK_SCOPE=worktree node scripts/run-vitest.mjs extensions/qa-lab/src/qa-transport.test.ts
    • 3 tests passed after adding the thread-event and final-marker false-positive guards.
  • QA Channel scenario:
    • OPENCLAW_BUILD_PRIVATE_QA=1 node scripts/run-node.mjs qa suite --provider-mode mock-openai --scenario channel-message-flows --concurrency 1 --fast --channel-driver qa-channel --output-dir .artifacts/channel-message-flows-qa
    • Passed with sent -> edited -> edited -> edited and primary channels.streaming evidence; the final marker first appears in the completed delivery.
  • Crabline Telegram scenario:
    • OPENCLAW_BUILD_PRIVATE_QA=1 node scripts/run-node.mjs qa suite --provider-mode mock-openai --scenario channel-message-flows --concurrency 1 --fast --channel-driver crabline --channel telegram --output-dir .artifacts/channel-message-flows-crabline
    • Passed with real Telegram sendMessage -> editMessageText traffic and sent -> edited evidence.
  • node scripts/crabbox-wrapper.mjs run --provider blacksmith-testbox -- env OPENCLAW_CHECK_CHANGED_REMOTE_CHILD=1 OPENCLAW_CHANGED_LANES_RAW_SYNC=1 corepack pnpm check:changed
    • Passed typecheck, lint, import-cycle, and repository guards on Testbox tbx_01kwjtmwswjkjzeeqaaewfd561 before the final matcher-only tightening; head CI provides the final broad gate.
  • .agents/skills/autoreview/scripts/autoreview --mode local --stream-engine-output
    • Clean after the final matcher guards: no accepted/actionable findings; confidence 0.86.

@openclaw-barnacle openclaw-barnacle Bot added channel: telegram Channel integration: telegram channel: qa-channel Channel integration: qa-channel extensions: qa-lab size: XL maintainer Maintainer-authored PR labels Jul 3, 2026
@clawsweeper

clawsweeper Bot commented Jul 3, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 3, 2026, 12:46 AM ET / 04:46 UTC.

Summary
The PR migrates channel streaming QA evidence from Telegram helper tests to a QA Lab transport flow spanning QA Channel, Crabline Telegram recorder events, mock OpenAI streaming, and the channel-message-flows skill.

PR surface: Source +23, Tests +109, Docs +9, Other +54. Total +195 across 19 files.

Reproducibility: yes. for the review context: current main still declares the scenario as a Telegram helper-backed Vitest path, while PR head declares a transport flow with waitForOutboundSequence. I did not execute the QA suite in this read-only review.

Review metrics: 1 noteworthy metric.

  • Scenario DSL surface: 1 flow transport action added. The new waitForOutboundSequence action must stay aligned across schema validation, the flow runner, QA Channel, and Crabline transports before merge.

Stored data model
Persistent data-model change detected: persistent cache schema: extensions/qa-lab/src/providers/mock-openai/server.ts, serialized state: extensions/qa-lab/src/crabline-transport.test.ts, serialized state: extensions/qa-lab/src/providers/mock-openai/server.test.ts, serialized state: extensions/qa-lab/src/providers/mock-openai/server.ts. Confirm migration or upgrade compatibility proof before merge.

Merge readiness
Overall: 🐚 platinum hermit
Proof: 🦞 diamond lobster
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:

  • Have a maintainer explicitly accept or narrow the waitForOutboundSequence QA flow contract.
  • Use current-head branch protection results as the final validation gate.

Risk before merge

  • [P1] The PR adds a reusable waitForOutboundSequence QA flow action and transport adapter method; if maintainers do not want that DSL/adapter contract, the sequence matcher should be narrowed before merge.
  • [P1] At check time, one routine current-head CI shard was still in progress, so branch protection should remain the final validation gate before landing.

Maintainer options:

  1. Accept the QA sequence contract (recommended)
    Maintainers can land the PR as-is if they want waitForOutboundSequence to become a reusable QA flow and transport adapter surface.
  2. Narrow the sequence matcher
    If the reusable DSL surface is too broad, keep sent/edited/deleted sequence matching local to channel-message-flows before merge.
  3. Pause for full current-head validation
    If branch protection or the remaining broad shard fails, pause landing until that head-specific failure is understood.

Next step before merge

  • [P2] No narrow ClawSweeper repair remains; the maintainer-labeled PR needs human acceptance of the reusable QA flow action and normal current-head validation.

Security
Cleared: The diff touches security-relevant logging, but the current head sanitizes dispatch and cleanup errors and the related CodeQL/security checks are clear.

Review details

Best possible solution:

Land the transport-native evidence path if maintainers accept waitForOutboundSequence as a reusable QA Lab flow contract; otherwise keep the scenario proof but narrow the sequence matcher to this flow.

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

Yes for the review context: current main still declares the scenario as a Telegram helper-backed Vitest path, while PR head declares a transport flow with waitForOutboundSequence. I did not execute the QA suite in this read-only review.

Is this the best way to solve the issue?

Yes, with a maintainer-owned contract caveat: moving the evidence to QA transport flow is the right layer for proving streaming delivery, provided maintainers accept the reusable sequence action surface.

AGENTS.md: found and applied where relevant.

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

Label changes

Label changes:

  • remove merge-risk: 🚨 security-boundary: Current PR review merge-risk labels are merge-risk: 🚨 compatibility, merge-risk: 🚨 automation.

Label justifications:

  • P2: This is a bounded QA evidence and transport-flow improvement with limited product-runtime blast radius but real maintainer contract review needed.
  • merge-risk: 🚨 compatibility: The diff expands the QA scenario/transport adapter contract with a reusable waitForOutboundSequence action.
  • merge-risk: 🚨 automation: The diff changes QA automation by replacing the channel-message-flows evidence path with a transport-native flow and sequence matcher.
  • 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. Not applicable: The external-contributor proof gate does not apply to this maintainer/member PR, though the PR body includes terminal evidence for QA Channel, Crabline Telegram, Testbox, and autoreview runs.
Evidence reviewed

PR surface:

Source +23, Tests +109, Docs +9, Other +54. Total +195 across 19 files.

View PR surface stats
Area Files Added Removed Net
Source 7 400 377 +23
Tests 10 379 270 +109
Docs 1 19 10 +9
Config 0 0 0 0
Generated 0 0 0 0
Other 1 66 12 +54
Total 19 864 669 +195

What I checked:

Likely related people:

  • RomneyDa: Recent merged history for qa-transport, Crabline transport, and QA flow scenarios is concentrated in Dallin Romney-authored QA transport work. (role: recent QA transport contributor; confidence: high; commits: e701dc76b060, 24ce672e06a8; files: extensions/qa-lab/src/qa-transport.ts, extensions/qa-lab/src/crabline-transport.ts, qa/scenarios/channels/channel-message-flows.yaml)
  • steipete: Commit 1507a97 broadly refactored channel inbound/runtime seams including QA Channel inbound and channel streaming surfaces this PR builds on. (role: channel-runtime history contributor; confidence: medium; commits: 1507a9701b83; files: extensions/qa-channel/src/inbound.ts, src/channels/turn/kernel.ts, src/plugin-sdk/channel-inbound.ts)
  • Peetiegonzalez: Commit b43687d recently maintained the Telegram channel-message-flows e2e test path that this PR removes. (role: recent Telegram flow test contributor; confidence: medium; commits: b43687d0b54d; files: extensions/telegram/src/channel-message-flows.qa.e2e.test.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: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Jul 3, 2026
@RomneyDa
RomneyDa force-pushed the dallin/qa-channel-message-flows branch from 0d56663 to 1dd8089 Compare July 3, 2026 04:19
@RomneyDa

RomneyDa commented Jul 3, 2026

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 3, 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. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. labels Jul 3, 2026
@RomneyDa
RomneyDa merged commit 8604dbd into main Jul 3, 2026
119 of 123 checks passed
@RomneyDa
RomneyDa deleted the dallin/qa-channel-message-flows branch July 3, 2026 04:48
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 3, 2026
…law#99310)

* test(qa): migrate channel streaming evidence to transport flow

* test(qa): enable Telegram previews for streaming smoke

* test(qa): stabilize streaming preview evidence

* fix(qa): sanitize channel dispatch logs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: qa-channel Channel integration: qa-channel channel: telegram Channel integration: telegram extensions: qa-lab maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. 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.

2 participants