Skip to content

test(qa): migrate channel thread and DM isolation scenarios - #101112

Merged
RomneyDa merged 8 commits into
mainfrom
dallin/wave2-channel-threads-isolation
Jul 7, 2026
Merged

RomneyDa merged 8 commits into
mainfrom
dallin/wave2-channel-threads-isolation

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Jul 6, 2026 •

Copy link
Copy Markdown
Member

Closes #101111

What Problem This Solves

Thread follow-up/isolation, reply override, subagent thread spawn, and direct-message session behavior were split across imperative Slack and Matrix scenario owners. That duplicated orchestration and made native relation evidence and cross-adapter parity harder to maintain.

Why This Change Was Made

This migrates the parity-proven behavior family to six canonical YAML flows hosted by the shared scenario runner. Slack and Matrix adapters now expose the required stable normalized observations, including native thread/reply identifiers where available, and the replaced imperative owners and obsolete tests are removed rather than retained behind compatibility layers. Distinct Telegram and WhatsApp scenarios remain where their behavior is not exact parity.

User Impact

No production channel behavior, routing, commands, restart/config surface, or infrastructure changes. QA ownership becomes canonical and shared across adapters, with less duplicated scenario code and clearer native relation evidence.

Evidence

  • Exact pushed head: 42470aa9c3830e59d1f69d87b8b656f9f64932b6.
  • Focused Testbox proof: 9 files / 208 tests passed across QA Lab and Matrix; rebased lint plus 205 focused tests passed; Matrix env-bridge repair lint plus 105 tests passed; Slack facade repair prod tsgo, bundled lint, and 41 tests passed.
  • qa-channel thread-follow-up and thread-isolation passed: .artifacts/qa-e2e/suite-mr9jlf2y-a24d200a/qa-suite-report.md.
  • Matrix Crabline thread-follow-up and thread-isolation passed with native relation evidence: .artifacts/qa-e2e/suite-mr9jlsag-934ec4cd/qa-suite-report.md.
  • Matrix live thread reply override passed.
  • Matrix live shared-DM passed: .artifacts/qa-e2e/suite-mr9ijndt-1b96c71f/qa-suite-report.md.
  • Matrix live per-room DM passed: .artifacts/qa-e2e/suite-mr9ikpna-ab6f4a58/qa-suite-report.md.
  • Telegram Crabline relation proof is inapplicable because its fake API does not echo message_thread_id; Matrix is the applicable bridge selected by the canonical thread flows.
  • QA Smoke on b47b2c9db1f2cc092d17b63c0492a27b1858ffd5 timed out only in thread-follow-up and thread-isolation because the default Telegram Crabline fake transport cannot preserve native topic relation. The scenarios now declare execution.channel: matrix, preserving qa-channel execution while selecting the proven native relation bridge for Crabline and current explicit-lane validation.
  • Post-rebase focused proof on current main: git diff --check passed and scenario catalog plus suite-planning tests passed 61/61 using the narrow local fallback because Testbox capacity was explicitly quiesced.
  • Current correction proof: scenario catalog and suite-planning tests pass 61/61; fresh Codex autoreview completed clean with no accepted/actionable findings (confidence 0.86).
  • QA Smoke CI is intentionally disabled upstream by ci: temporarily disable QA smoke #101185 / 6bffda416614780b1b129891615b4a43cadb4080 after Revert "fix(qa): keep smoke profile on one channel" #101184 reverted the selector experiment. This PR does not modify selector or CI workflow files.
  • ClawSweeper finding resolved: historical commit c3308b91955 made Matrix subagent thread spawn explicit-only; the canonical subagent-thread-spawn YAML remains explicitly selectable, but is removed from the default Matrix adapter set until live child-completion proof is stable. Focused Testbox proof passed Matrix CLI 4/4 and scenario catalog 36/36; four-file oxfmt check passed; fresh Codex autoreview was clean at 0.88.
  • Current ClawSweeper finding resolved: Matrix account-relative scenario patches use the canonical $selectedAccount key, resolved by the shared suite runner from adapterOptions.sutAccountId before merge. Focused proof covers --scenario thread-reply-override --sut-account matrix-alt, the real YAML patch resolves under accounts.matrix-alt, and all three affected Matrix patches use the same contract. Rebased Testbox run 28832185349 passed scoped oxfmt plus 69 focused tests; fresh exact-commit Codex autoreview was clean at 0.84.
  • Known bounded gap: Matrix emitted the native subagent session active thread intro immediately on both attempts, but the child completion did not arrive before either 360-second hard timeout.
  • AI-assisted implementation; no transcript attached.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation extensions: qa-lab size: XL maintainer Maintainer-authored PR labels Jul 6, 2026
@RomneyDa
RomneyDa force-pushed the dallin/wave2-channel-threads-isolation branch from f29ef62 to 76f5f1b Compare July 6, 2026 19:09
@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 commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Command router queued. I will update this comment with the next step.

@clawsweeper

clawsweeper Bot commented Jul 6, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 6, 2026, 8:38 PM ET / 00:38 UTC.

Summary
The PR migrates Slack and Matrix thread/DM QA coverage from imperative scenario owners into shared YAML flows, updates live adapters to expose normalized native relation evidence, and removes obsolete scenario code/tests.

PR surface: Source -424, Tests -444, Docs +15, Other +548. Total -305 across 33 files.

Reproducibility: not applicable. this is a QA cleanup/migration PR rather than a reported production bug, so source-level contract review plus focused QA/Testbox/CI evidence is the validation path.

Review metrics: 2 noteworthy metrics.

  • Live adapter default scenarios: Slack +2, Matrix +5. These default scenario-set changes affect what openclaw qa slack and openclaw qa matrix exercise before merge.
  • Matrix account-scoped patches: 3 resolved through $selectedAccount. These scenarios override Matrix account settings, so non-default --sut-account runs must receive the same patch behavior.

Stored data model
Persistent data-model change detected: vector/embedding metadata: qa/scenarios/channels/thread-isolation.yaml. Confirm migration or upgrade compatibility proof before merge.

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

  • none.

Risk before merge

  • [P1] Merging intentionally changes QA operator defaults: live Slack and Matrix adapter runs select canonical shared flow scenarios, so exact-head CI/Testbox or live proof should stay current before landing.
  • [P1] The PR removes old imperative Slack/Matrix scenario IDs, so private operator scripts that referenced those internal IDs must move to the canonical YAML scenario IDs.

Maintainer options:

  1. Land with current QA proof (recommended)
    Accept the intentional QA scenario ID/default migration once exact-head CI and the posted focused QA evidence remain green enough for maintainer standards.
  2. Preserve old scenario IDs first
    If maintainers need private operator-script compatibility, add documented aliases or a short deprecation path before merging the migration.
  3. Pause until QA lanes stabilize
    If live Matrix/Slack or QA Smoke evidence is not stable at exact head, keep the PR open until the automation lane is repaired or narrowed.

Next step before merge

  • Maintainer-owned PR with protected label has no ClawSweeper repair blocker; normal maintainer review and CI validation remain.

Security
Cleared: No concrete security or supply-chain concern found; the diff does not add dependencies, workflows, package scripts, secret handling, lockfiles, or publish paths.

Review details

Best possible solution:

Land after maintainer review confirms exact-head CI/live QA evidence and accepts the intentional scenario-ID and default-selection migration.

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

Not applicable; this is a QA cleanup/migration PR rather than a reported production bug, so source-level contract review plus focused QA/Testbox/CI evidence is the validation path.

Is this the best way to solve the issue?

Yes; moving parity behavior into shared YAML flows while keeping transport-specific native relation mapping in adapters is the maintainable boundary, and keeping the imperative Slack/Matrix owners would preserve drift.

AGENTS.md: found and applied where relevant.

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

Label changes

Label justifications:

  • P2: This is a normal-priority QA migration with limited production blast radius but meaningful channel automation coverage impact.
  • merge-risk: 🚨 compatibility: The PR removes old imperative scenario IDs and changes live QA default scenario selections that private operator scripts may reference.
  • merge-risk: 🚨 automation: The diff changes QA scenario routing, defaults, and live adapter observations that green unit tests alone cannot fully settle for Slack/Matrix automation.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit 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 MEMBER maintainer-labeled PR; the PR body and exact-head checks include focused QA, Matrix live, and Real behavior proof evidence for maintainer review.
Evidence reviewed

PR surface:

Source -424, Tests -444, Docs +15, Other +548. Total -305 across 33 files.

View PR surface stats
Area Files Added Removed Net
Source 13 217 641 -424
Tests 12 161 605 -444
Docs 2 29 14 +15
Config 0 0 0 0
Generated 0 0 0 0
Other 6 595 47 +548
Total 33 1002 1307 -305

What I checked:

Likely related people:

  • RomneyDa: Authored the linked maintainer issue, the current PR commits, and recent merged QA YAML migration work on the same shared QA scenario surface. (role: active QA migration owner; confidence: high; commits: bade7dd8af8a, 42470aa9c383, 627f6988a07d; files: extensions/qa-lab/src/suite-planning.ts, extensions/qa-matrix/src/adapter.runtime.ts, qa/scenarios/channels/thread-reply-override.yaml)
  • Gustavo Madeira Santana: Git history shows earlier Matrix contract/runtime scenario commits adding and expanding the imperative Matrix coverage that this PR migrates into shared YAML flows. (role: earlier Matrix QA scenario contributor; confidence: medium; commits: 9463f1c498bd, 7e659e168bbc, 5d8dceb37f18; files: extensions/qa-matrix/src/runners/contract/scenario-catalog.ts, extensions/qa-matrix/src/runners/contract/scenario-runtime.ts, extensions/qa-matrix/src/runners/contract/scenarios.test.ts)
  • Peter Steinberger: Recent shallow-boundary blame and history around Matrix/Slack scenario catalog lines point to adjacent QA scenario maintenance and subagent/default behavior context. (role: adjacent QA behavior contributor; confidence: medium; commits: 5a7c67682f07, c3308b919557; files: extensions/qa-matrix/src/runners/contract/scenario-catalog.ts, extensions/qa-lab/src/live-transports/slack/slack-live.runtime.ts, qa/scenarios/channels/subagent-thread-spawn.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 (3 earlier review cycles)
  • reviewed 2026-07-06T22:02:28.833Z sha 8bb9c57b9b6046d330d1774d02a41d3db1b14a65 :: found issues before merge. :: [P2] Keep the unproven subagent flow out of the default set
  • reviewed 2026-07-06T23:50:07.104Z sha 7b76d93474292d98c10a5afe2953385f1a3d6930 :: found issues before merge. :: [P2] Patch the selected Matrix account, not only sut
  • reviewed 2026-07-07T00:23:17.336Z sha 42470aa :: needs maintainer review before merge. :: none

@RomneyDa
RomneyDa force-pushed the dallin/wave2-channel-threads-isolation branch 2 times, most recently from 88d6b54 to 8bb9c57 Compare July 6, 2026 20:44
@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: 🦐 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. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. labels Jul 6, 2026
@RomneyDa
RomneyDa force-pushed the dallin/wave2-channel-threads-isolation branch from 8bb9c57 to 7b76d93 Compare July 6, 2026 23:32
@clawsweeper clawsweeper Bot added the merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. label Jul 6, 2026
@RomneyDa
RomneyDa force-pushed the dallin/wave2-channel-threads-isolation branch from 7b76d93 to 42470aa Compare July 7, 2026 00:15
@clawsweeper clawsweeper Bot removed the rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. label Jul 7, 2026
@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 status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Jul 7, 2026
@RomneyDa
RomneyDa merged commit c1b9e36 into main Jul 7, 2026
126 of 131 checks passed
@RomneyDa
RomneyDa deleted the dallin/wave2-channel-threads-isolation branch July 7, 2026 00:52
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 7, 2026
…#101112)

* test(qa): migrate channel thread isolation scenarios

* test(qa): remove stale Matrix scenario fixture

* test(qa): use canonical coverage taxonomy ids

* test(qa): preserve Matrix flow runtime identities

* test(qa): expose Slack thread polling helper

* test(qa): select Matrix for native thread smoke

* test(qa): keep Matrix subagent spawn opt-in

* test(qa): target selected live account in scenario patches
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation 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.

QA: canonicalize channel thread and DM session isolation scenarios

1 participant