Skip to content

test(qa): use qa flow for channel routing scenarios - #101076

Merged
RomneyDa merged 9 commits into
mainfrom
dallin/wave2-channel-canary-routing
Jul 7, 2026
Merged

RomneyDa merged 9 commits into
mainfrom
dallin/wave2-channel-canary-routing

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Jul 6, 2026

Copy link
Copy Markdown
Member

Closes #101073

What Problem This Solves

Resolves a problem where channel canary and routing QA behavior was duplicated across transport-specific imperative runners, allowing Telegram, Slack, WhatsApp, Matrix, QA Channel, and Crabline coverage to drift.

Why This Change Was Made

Adds seven canonical YAML/shared-flow scenarios for channel canary, DM/group routing, mention gating, sender allowlist block/override, top-level reply shape, secondary conversation isolation, and multi-actor ordering. Selected scenario IDs now reach the shared transport factory so QA Channel, Crabline, and live adapters configure the same behavior contract. Matrix's replaced imperative catalog owners and direct tests are removed after live parity; unrelated command, thread, restart/config, media, lifecycle, provider, and runtime scenarios remain unchanged.

User Impact

QA operators can run the same channel routing contract through the canonical qa suite host across normalized and live transports. Live adapter defaults select the canonical scenarios, and Matrix routing evidence now covers DM, primary/secondary rooms, mention gates, allowlists, reply shape, and actor ordering without duplicate imperative owners.

AI-assisted change. I understand the implementation and reviewed the transport/config ownership boundaries. No agent transcript is attached because explicit approval to publish sanitized session logs was not requested before creation.

Evidence

  • QA Channel: all seven canonical scenarios passed.
  • Crabline Telegram: channel-canary and channel-mention-gating passed.
  • Matrix live adapter: canary, DM/group routing, mention gating, sender allowlist, top-level reply shape, secondary isolation, and multi-actor ordering passed on Blacksmith Testbox.
  • Focused remote suites: QA catalog/transport/suite and Matrix catalog/runtime/config/sync tests passed after migration; Matrix sync regression covers per-room cursors.
  • Broad gate: pnpm check:changed passed on Testbox tbx_01kww83en3pjz27dh7g12njwk4 (types, lint, import cycles, guards).
  • Review: .agents/skills/autoreview/scripts/autoreview --mode local --stream-engine-output completed clean with no accepted/actionable findings.

@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.

@RomneyDa

RomneyDa commented Jul 6, 2026

Copy link
Copy Markdown
Member Author

Corrected the task-local QA Smoke failure at exact head 0080dbb0b14ed37f48fc9242c990a31028b76d01.

Root cause: Crabline Telegram collapsed canonical driver and observer actor ids to native sender 100001, while the canonical multi-actor scenario did not install the Telegram allowlist that the removed imperative owner relied on. The repair maps those actors to distinct provider-native ids (100001 / 100002) while retaining canonical ids in shared QA state, and enables the driver-only Telegram allowlist for the sender-allowlist and multi-actor scenarios.

Focused proof:

  • extensions/qa-lab/src/crabline-transport.test.ts: 16 passed
  • Crabline Telegram channel-multi-actor-ordering: passed
  • Crabline Telegram channel-sender-allowlist: passed
  • git diff --check: passed
  • Fresh Codex autoreview: clean, no accepted/actionable findings

New exact-head CI is running for 0080dbb0b14ed37f48fc9242c990a31028b76d01.

@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

Codex review: needs maintainer review before merge. Reviewed July 6, 2026, 9:26 PM ET / 01:26 UTC.

Summary
The branch moves seven channel routing QA behaviors into canonical YAML/shared-flow scenarios, threads a scenario-declared transportPolicy through QA Lab, Crabline, and live adapters, updates Matrix and WhatsApp routing adapters, and removes replaced Matrix imperative routing cases.

PR surface: Source +28, Tests -128, Other +494. Total +394 across 36 files.

Reproducibility: not applicable. as a runtime bug reproduction path. Source inspection shows current main lacks the seven canonical channel routing YAML scenarios and retains Matrix-specific imperative routing owners, while this PR adds the intended replacement path.

Review metrics: 2 noteworthy metrics.

  • Canonical routing flows: 7 added. The new YAML scenarios map directly to the requested canary, DM/group routing, mention gating, sender allowlist, reply-shape, secondary-isolation, and multi-actor ordering coverage.
  • QA runner adapter option: 1 optional field added. The transportPolicy adapter option changes a Plugin SDK subpath type shape, so maintainers should notice and accept that contract before merge.

Stored data model
Persistent data-model change detected: serialized state: extensions/qa-lab/src/crabline-transport.test.ts, serialized state: extensions/qa-lab/src/suite-planning.ts, serialized state: extensions/qa-matrix/src/substrate/sync.test.ts, vector/embedding metadata: extensions/qa-lab/src/suite.test.ts, vector/embedding metadata: qa/scenarios/channels/channel-top-level-reply-shape.yaml. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster
Relationship: fixed_by_candidate
Canonical: #101073
Summary: This PR is the active implementation candidate for the canonical channel canary/routing QA issue; adjacent QA canonicalization and smoke PRs cover neighboring behavior or validation infrastructure rather than the same root item.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge readiness
Overall: 🦞 diamond lobster
Proof: 🦞 diamond lobster
Patch quality: 🦞 diamond lobster
Result: ready for maintainer review.

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

Risk before merge

  • [P1] The PR adds an optional transportPolicy field to the public QA runner registration shape, so maintainers should intentionally accept that QA runner adapter contract before merge even though it is additive and scoped.
  • [P1] GitHub reports the branch as mergeable but behind; the final land path should refresh or validate the current-base merge result before merging.

Maintainer options:

  1. Accept the QA runner option after fresh base proof (recommended)
    Maintainers can treat transportPolicy as the intended additive QA runner adapter contract, refresh current-base validation, and land the PR.
  2. Move policy out of the public adapter shape
    If maintainers do not want the QA runner contract expanded, revise the branch so the policy stays inside QA Lab-owned scenario planning and adapter creation.
  3. Pause if base drift changes the merge result
    If the behind base produces new conflicts or scenario ownership overlap, pause this branch and replace it with a narrower current-main migration.

Next step before merge

  • [P2] No repair lane is needed because there are no actionable review findings; the remaining action is maintainer merge review after current-base validation and contract acceptance.

Maintainer decision needed

  • Question: Should maintainers land this branch after refreshing the current-base merge result while accepting the additive QA runner transportPolicy adapter option as part of the QA runner contract?
  • Rationale: The branch is maintainer-labeled and touches a Plugin SDK subpath type shape; automation should not treat that contract expansion as self-approved even though the patch appears correct.
  • Likely owner: RomneyDa — RomneyDa owns the active branch and the adjacent merged QA canonicalization history for this scenario family.
  • Options:
    • Land after current-base proof (recommended): Accept the narrow QA runner transportPolicy option, refresh or verify the current-base merge result, and land this PR to close the canonical routing issue.
    • Keep policy plugin-local: Ask for a revision that avoids changing the QA runner adapterOptions contract if maintainers do not want this policy visible through the Plugin SDK type.
    • Pause or replace: Keep the PR open or replace it if the moving base introduces conflicts or maintainers want the routing migration split differently.

Security
Cleared: No concrete security or supply-chain regression was found; the diff does not change workflows, lockfiles, dependency sources, publishing metadata, credentials, or downloaded code paths.

Review details

Best possible solution:

Land this PR or an equivalent maintainer-approved replacement after current-base checks are fresh and the QA runner adapter-option contract is accepted, then close the linked canonical routing issue.

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

Not applicable as a runtime bug reproduction path. Source inspection shows current main lacks the seven canonical channel routing YAML scenarios and retains Matrix-specific imperative routing owners, while this PR adds the intended replacement path.

Is this the best way to solve the issue?

Yes. Moving duplicated routing behavior into YAML/shared-flow scenarios with a narrow typed transport policy is the maintainable owner-boundary fix; keeping Matrix imperative owners or sniffing scenario IDs inside adapters would preserve drift.

AGENTS.md: found and applied where relevant.

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

Label changes

Label changes:

  • add merge-risk: 🚨 compatibility: The diff adds an optional field to the QA runner adapterOptions type exposed through a Plugin SDK subpath, which is a compatibility-sensitive contract surface even when additive.

Label justifications:

  • P3: This is maintainer-owned QA infrastructure cleanup with limited direct user impact and strong focused proof in the PR body, comments, and exact-head checks.
  • merge-risk: 🚨 compatibility: The diff adds an optional field to the QA runner adapterOptions type exposed through a Plugin SDK subpath, which is a compatibility-sensitive contract surface even when additive.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • 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-authored maintainer PR, and the body/comments still provide Testbox, QA Channel, Crabline, Matrix live, architecture, SDK-surface, CI, and autoreview proof.
Evidence reviewed

PR surface:

Source +28, Tests -128, Other +494. Total +394 across 36 files.

View PR surface stats
Area Files Added Removed Net
Source 20 276 248 +28
Tests 9 232 360 -128
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 7 494 0 +494
Total 36 1002 608 +394

What I checked:

  • Root and scoped policy read: The root AGENTS.md and scoped extensions/plugin-sdk guides were read fully; their QA YAML ownership and plugin SDK compatibility guidance shaped the review. (AGENTS.md:1, 82106a18b3be)
  • Current main lacks canonical routing files: Current main's qa/scenarios/channels listing does not include the seven channel routing YAML files, while the PR head does include them. (qa/scenarios/channels, 82106a18b3be)
  • Current main still has Matrix-specific routing owners: Current main still declares Matrix imperative routing scenarios such as matrix-top-level-reply-shape, matrix-mention-gating, matrix-allowlist-block, and matrix-multi-actor-ordering. (extensions/qa-matrix/src/runners/contract/scenario-catalog.ts:333, 82106a18b3be)
  • PR head adds typed scenario transport policy: The PR head parses transportPolicy in scenario YAML, collects compatible policy flags, and isolates scenarios whose gateway-fixed transport policy could leak into neighboring runs. (extensions/qa-lab/src/suite-planning.ts:266, fb6802b19afa)
  • PR head passes policy to transport adapters: The PR head merges scenario transportPolicy into adapterOptions and passes it through the built-in QA Channel and Crabline adapter creation paths. (extensions/qa-lab/src/suite.ts:146, fb6802b19afa)
  • PR head keeps QA runner option narrow: The PR head adds one optional transportPolicy field to the QA runner adapter options type without exporting a standalone convenience type, which avoids the earlier public export budget growth while still changing the QA runner contract shape. (src/plugin-sdk/qa-runner-runtime.ts:18, fb6802b19afa)

Likely related people:

  • RomneyDa: RomneyDa authored the linked canonical issue, this PR, and recent merged QA canonicalization PRs for restart/policy, command/session-context, and thread/DM isolation on the same suite and Matrix paths. (role: recent QA canonicalization owner; confidence: high; commits: 627f6988a07d, e3671e098044, c1b9e3622162; files: extensions/qa-lab/src/suite-planning.ts, extensions/qa-lab/src/suite.ts, extensions/qa-matrix/src/adapter.runtime.ts)
  • steipete: steipete authored the merged QA Smoke restoration that restored the Matrix and Telegram shard checks now proving this PR's exact head, and recent local history touches the same validation window. (role: adjacent QA smoke validation owner; confidence: medium; commits: aed24822923b, 68c85effcd1e; files: qa/scenarios/channels, extensions/qa-lab/src/suite-planning.ts, .github/workflows/ci.yml)
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 (6 earlier review cycles)
  • reviewed 2026-07-06T18:56:12.416Z sha 0080dbb0b14ed37f48fc9242c990a31028b76d01 :: needs maintainer review before merge. :: none
  • reviewed 2026-07-06T20:08:23.433Z sha 16907aa :: needs maintainer review before merge. :: none
  • reviewed 2026-07-06T21:13:37.130Z sha 2349769456ddd542c0040f5adadb62aa2819edc5 :: needs maintainer review before merge. :: none
  • reviewed 2026-07-06T23:58:16.364Z sha 975efdecb7569a219675d24589127da09b9ab7e0 :: needs maintainer review before merge. :: none
  • reviewed 2026-07-07T00:07:33.505Z sha 975efdecb7569a219675d24589127da09b9ab7e0 :: needs maintainer review before merge. :: none
  • reviewed 2026-07-07T00:39:12.070Z sha c54a32dc976fbb69e902f67eb09bbe90e9d16f12 :: needs maintainer review before merge. :: none

@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. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Jul 6, 2026
@RomneyDa
RomneyDa force-pushed the dallin/wave2-channel-canary-routing branch from 0080dbb to 0a08107 Compare July 6, 2026 19:02
@RomneyDa

RomneyDa commented Jul 6, 2026

Copy link
Copy Markdown
Member Author

Rebased PR #101076 onto current origin/main at 627f6988a07d83833eb5360525495fa7e0c62443 (merged PR #101063) and force-pushed with lease at exact head 0a0810786d45e76069d4b308bbe5a5af2badb901.

Conflict resolution preserves both canonical behavior families:

  • merged restart/policy YAML flows and their shared runtime-env contract;
  • this PR's canary/routing/mention/allowlist/reply-shape/isolation/ordering YAML flows and actor-policy fix;
  • both replaced Matrix imperative owner families remain deleted.

Post-rebase proof on Blacksmith Testbox tbx_01kwwccq46ynt16wma87a2xea7 (swift-barnacle):

  • QA Lab conflict surfaces: 126 passed
  • Matrix conflict surfaces: 110 passed
  • Crabline Telegram channel-multi-actor-ordering: passed
  • Crabline Matrix matrix-restart-resume: passed
  • after review fixes, Crabline transport: 17 passed
  • live Matrix matrix-allowlist-hot-reload: passed
  • final Codex autoreview: clean, no accepted/actionable findings

Exact-head CI is running for 0a0810786d45e76069d4b308bbe5a5af2badb901.

@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.

@RomneyDa

RomneyDa commented Jul 6, 2026 •

Copy link
Copy Markdown
Member Author

Fixed the task-local check-test-types failure at new exact head dd672cd0a475f4a8167c2a1261c8becd51be2d80.

Failure provenance:

  • CI run 28816150619, job 85456019174
  • extensions/qa-matrix/src/runners/contract/scenarios.test.ts:982
  • TS2322: deleted imperative id matrix-secondary-room-reply remained in a typed synthetic topology fixture after the canonical migration

The fixture now uses retained matrix-secondary-room-open-trigger; the topology-merge behavior under test is unchanged.

Proof on Blacksmith Testbox tbx_01kwwd7r9bgx3srn5c5qfzm59b (tidal-crayfish):

  • exact pnpm check:test-types: passed
  • Matrix scenario contract tests: 82 passed
  • fresh Codex autoreview: clean, no accepted/actionable findings

@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.

@RomneyDa
RomneyDa force-pushed the dallin/wave2-channel-canary-routing branch from dd672cd to f0a5e51 Compare July 6, 2026 19:22
@RomneyDa

RomneyDa commented Jul 6, 2026

Copy link
Copy Markdown
Member Author

Rebased PR #101076 onto current origin/main at e938461aa2eafb09252da9c3b749ad31d3bdfb7d after PR #101080 merged, then pushed corrected exact head 16907aa27a1e78251f80b96dab7c309d22d85ff3.

Conflict resolution keeps one shared canonical owner:

  • Telegram command/context and routing IDs coexist in the shared canonical registry.
  • WhatsApp routing IDs remain available through the live adapter factory.
  • WhatsApp operator CLI defaults remain DM-safe (help only) when optional groupJid is absent.
  • Telegram/WhatsApp CLIs remain thin delegates to shared canonical ID sets.

Conflict-focused Testbox proof on tbx_01kwwdxf6eqdw9kxgame9v7mtj (silver-barnacle):

  • exact pnpm check:test-types: passed before the lease later lost the private Mantis subtree during full sync
  • shared canonical registry + WhatsApp CLI + Crabline tests: 27 passed
  • Matrix scenario tests: 82 passed
  • Crabline Telegram telegram-help-command: passed
  • Crabline Telegram channel-multi-actor-ordering: passed
  • WhatsApp default-preservation focused tests: 14 passed
  • final Codex autoreview: clean, no accepted/actionable findings

Hosted exact-head CI is authoritative for the fresh head.

@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. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Jul 6, 2026
@RomneyDa

RomneyDa commented Jul 6, 2026

Copy link
Copy Markdown
Member Author

Corrected exact head: 78e7caede7efd4815edda0353fcdf4c215187cc7.

The QA Smoke failure was task-local. dm-chat-baseline shared a gateway transport with routing scenarios, while the transport inferred sender allowlist policy from the whole scenario-id set. That applied allowFrom: ["driver"] to the shared QA Channel and blocked Alice's DM.

Fix:

  • routing YAML now declares typed generic transport policy (requireGroupMention, senderAllowlist, topLevelReplies);
  • QA Channel, Crabline, and WhatsApp consume policy only and contain no assigned routing scenario-id branches;
  • transport-policy scenarios are isolated because gateway transport policy is startup-fixed;
  • caller-supplied adapter policy remains preserved and scenario policy overlays it only when declared.

Proof on Blacksmith Testbox through Crabbox:

  • tbx_01kwwfkaj1a5hxea6bj39d0ska: 115/115 focused catalog/planning/transport tests; hard-bounded dm-chat-baseline + channel-sender-allowlist + channel-multi-actor-ordering passed together.
  • tbx_01kwwg6ye9hng8q3d3v7516w60: all seven assigned QA Channel scenarios passed; Crabline Telegram mention gating + multi-actor ordering passed; final post-review focused tests 83/83; DM/allowlist/multi-actor regression passed again.
  • pnpm check:test-types caught one owned flow-union narrowing issue, fixed; the rerun then stopped only on the known Testbox checkout omission of private extensions/qa-lab/src/mantis/cli.js. Hosted exact-head CI remains authoritative for the complete type gate.
  • Final .agents/skills/autoreview/scripts/autoreview --mode local --stream-engine-output: clean, no accepted/actionable findings.

@RomneyDa
RomneyDa force-pushed the dallin/wave2-channel-canary-routing branch from 78e7cae to 2349769 Compare July 6, 2026 20:47
@RomneyDa

RomneyDa commented Jul 6, 2026

Copy link
Copy Markdown
Member Author

Rebased exact head: 2349769456ddd542c0040f5adadb62aa2819edc5 onto current main 6bffda416614780b1b129891615b4a43cadb4080 (#101185).

  • Rebase completed without conflicts or task-local edits.
  • git range-diff 19491fe..78e7cae 6bffda4..2349769 reports all six task commits equal; stable patch-id sets are identical.
  • git diff --check origin/main...HEAD passes.
  • The task diff contains neither .github/workflows/ci.yml nor the shared QA profile selector files.
  • Existing successful proof remains applicable: 115 focused tests, all seven assigned QA Channel scenarios, Crabline Telegram mention/multi-actor proof, and clean autoreview.
  • A fresh focused Testbox rerun remained queued and was stopped without spending further capacity. QA Smoke CI is intentionally disabled on current main by ci: temporarily disable QA smoke #101185, so no manual exact-smoke workaround or selector change was attempted.

@clawsweeper clawsweeper Bot added rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Jul 6, 2026
@RomneyDa
RomneyDa force-pushed the dallin/wave2-channel-canary-routing branch from 975efde to c54a32d Compare July 7, 2026 00:28
@RomneyDa

RomneyDa commented Jul 7, 2026

Copy link
Copy Markdown
Member Author

Latest-main rebase checkpoint for c54a32dc976fbb69e902f67eb09bbe90e9d16f12:

  • Rebased cleanly onto current origin/main c3c4d03f900ba2e55a2a338d0f275b799b0306d2; restored QA Smoke commit aed24822923 (fix(qa): restore automatic smoke coverage across channels #101186) is in ancestry.
  • Range-diff preserves all eight task commits patch-identically; no conflict/manual rebase edits occurred, so no new autoreview was required.
  • Blacksmith Testbox tbx_01kwwzbahsjhz3cwxeg13n76e0 (violet-hermit) passed the focused exact pnpm check:architecture guard with 0 runtime import cycles and 0 Madge cycles.
  • The SDK surface test now reports 10,458 source exports against main's 10,455 budget. A hard-reset clean current-main checkout reproduced the identical 10,455→10,458 failure, so this is current-main provenance and this routing PR does not change the budget or SDK surface further.
  • The patch-identical rebase was force-pushed with an explicit lease; hosted CI now owns restored QA Smoke selection.

@RomneyDa

RomneyDa commented Jul 7, 2026

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 7, 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.

@RomneyDa

RomneyDa commented Jul 7, 2026

Copy link
Copy Markdown
Member Author

Exact-head closeout for c54a32dc976fbb69e902f67eb09bbe90e9d16f12:

  • Restored hosted QA Smoke passed all shards: Telegram 1/2, Telegram 2/2, Matrix, and aggregate QA Smoke.
  • The sole CI failure is checks-node-compact-small-whole-2 at plugin-sdk-surface-report.test.ts (10,455 budget vs 10,458 current source exports). The identical failure was reproduced after hard-resetting the Testbox checkout to clean current origin/main, so it is not caused by this routing patch.
  • Exact-head ClawSweeper review is current, high-confidence, diamond/no actionable repair finding: test(qa): use qa flow for channel routing scenarios #101076 (comment)

No task-local code change is appropriate; branch remains patch-identical to its reviewed routing change.

@RomneyDa
RomneyDa force-pushed the dallin/wave2-channel-canary-routing branch from c54a32d to fb6802b Compare July 7, 2026 01:02
@RomneyDa

RomneyDa commented Jul 7, 2026

Copy link
Copy Markdown
Member Author

Rebased this PR onto c1b9e3622162483d544131f04ce7665f8ad169c6 after #101112 landed and resolved the overlapping QA scenario ownership semantically.

Preserved from current main:

  • Slack shared thread scenarios alongside the canonical routing flows.
  • Matrix shared topology plus native thread, DM-session, and secondary-room lifecycle scenarios.

Preserved from this PR:

  • The seven canonical YAML routing flows and their generic transport-policy plumbing.
  • Removal of the replaced Matrix imperative routing owners.
  • Generic Matrix conversation-to-room selection without channel-specific policy in QA core.

Proof on Blacksmith Testbox tbx_01kwx1335j0ht0pdhve69cxt1q (brisk-crayfish):

  • 94/94 focused QA Lab routing/factory tests.
  • 80/80 Matrix scenario/sync tests.
  • 22/22 Matrix runtime tests after removing stale references to the deleted imperative fixture.
  • 5/5 live transport factory tests.
  • pnpm check:architecture passed with zero runtime and Madge import cycles and all architecture subguards.
  • git diff --check origin/main...HEAD passed.
  • Fresh full-branch autoreview: clean, no accepted/actionable findings.

Current reviewed head: fb6802b19afac1b64e728e5ebb254691384986fb.

@RomneyDa

RomneyDa commented Jul 7, 2026

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 7, 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 the merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. label Jul 7, 2026
@RomneyDa
RomneyDa merged commit 253b784 into main Jul 7, 2026
112 checks passed
@RomneyDa
RomneyDa deleted the dallin/wave2-channel-canary-routing branch July 7, 2026 01:35
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 7, 2026
* test(qa): canonicalize channel routing scenarios

* test(qa): enforce Crabline actor allowlists

* test(qa): preserve canonical flow integration

* test(matrix): use retained topology fixture id

* test(qa): preserve WhatsApp live defaults

* QA: declare channel transport policy in scenarios

* refactor(qa): keep transport policy type local

* refactor(qa): keep transport policy on leaf contract

* test(matrix): use retained routing fixture
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: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦞 diamond lobster Very strong PR readiness with only minor 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 canary and routing scenarios

1 participant