Skip to content

refactor(qa): share Matrix flows across channel drivers - #101253

Merged
RomneyDa merged 1 commit into
mainfrom
dallin/unify-matrix-release-qa
Jul 14, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
dallin/unify-matrix-release-qa

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Jul 7, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

QA Lab channel scenarios were tied to one driver, so the same Matrix DM behavior could not run unchanged through both the live Matrix adapter and Crabline's Matrix provider bridge.

Why This Change Was Made

  • Treat a scenario's execution.channel as the lane boundary: implicit qa-channel runs reject channel-specific scenarios, while matching live and crabline lanes accept them without a scenario-side driver whitelist.
  • Keep the two existing Matrix DM session flows portable (driver actor IDs and logical conversation IDs) while the normal Matrix plugin still owns behavior.
  • Isolate Crabline provider-native target normalization from shared transport orchestration, including native target preservation, encoded thread handling, standalone QA mention expansion, and fail-fast blank identifiers.
  • Select Crabline's actual default account from the effective channel driver while live Matrix continues to use sut.
  • Generate runnable coverage commands and split mixed-channel search results into separate channel lanes.

This remains stack PR 1 of 4. It does not migrate the legacy Matrix profile catalog, switch release workflows, or remove qa-matrix.

User Impact

No shipped Matrix channel behavior changes. QA maintainers can run the same shared/per-room Matrix DM scenarios against Crabline or the live Matrix adapter without a Matrix-specific scenario executor or a second scenario host.

Evidence

  • Rebased conflict-free onto main at df5097b6e70e6711f583f740a446b3b279cc092d; exact PR head c46453636198c2a59aa324ea362ebfb61dafaf6c.
  • ClawSweeper's awaited-reset finding is fixed.
  • Blacksmith Testbox through Crabbox tbx_01kxfj8f5vk73j5a6n21y1691n (quick-crab, run 29309155612): exact rebased-tree transport/planning/coverage/smoke/suite tests passed 94/94.
  • Exact-head CI run 29309742170 is active; dependency guard, workflow sanity, OpenGrep, critical CodeQL, and real-behavior proof already pass.
  • The identical two-scenario CLI proof previously passed 2/2 through Crabline and 2/2 through live Matrix/Tuwunel.
  • Fresh post-push whole-branch Codex autoreview on c46453636198c2a59aa324ea362ebfb61dafaf6c: clean, no accepted/actionable findings.

@RomneyDa
RomneyDa requested a review from a team as a code owner July 7, 2026 01:27
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation extensions: qa-lab size: M maintainer Maintainer-authored PR labels Jul 7, 2026
@RomneyDa
RomneyDa force-pushed the dallin/unify-matrix-release-qa branch 2 times, most recently from f18b4dd to d9724f8 Compare July 7, 2026 01:35
@clawsweeper

clawsweeper Bot commented Jul 7, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 13, 2026, 5:56 PM ET / 21:56 UTC.

Summary
The PR makes two Matrix DM scenarios portable across live and Crabline drivers by centralizing channel-lane matching, extracting provider-native target normalization, and generating channel-specific QA commands.

PR surface: Source +156, Tests +86, Other -10. Total +232 across 13 files.

Reproducibility: not applicable. this is a QA infrastructure refactor rather than a report of broken shipped behavior; focused and real-driver evidence demonstrates the intended parity path.

Review metrics: 1 noteworthy metric.

  • Portable channel scenarios: 2 Matrix DM flows shared across 2 drivers. These scenarios become common automation inputs for both live Matrix and Crabline, so lane-selection equivalence matters before the larger migration stack lands.

Stored data model
Persistent data-model change detected: serialized state: extensions/qa-lab/src/coverage-report.ts. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster
Relationship: canonical
Canonical: #101253
Summary: This PR is the canonical shared-flow foundation; the merged lifecycle PR is a prerequisite and the open scenario-migration PR is a dependent, distinct stack layer.

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 changes QA scenario selection, generated commands, and provider-native target normalization; an unnoticed mismatch could silently skip a lane or make Matrix parity evidence exercise the wrong target even when ordinary CI remains green.
  • [P1] The branch is behind current main, and this PR is the base of the open refactor(qa): migrate Matrix scenarios into QA Lab #103589 stack, so final review should confirm the refreshed foundation still composes with its dependent migration.

Maintainer options:

  1. Refresh and rerun both Matrix lanes (recommended)
    Rebase the stack foundation onto current main and repeat exact-head live Matrix and Crabline scenario proof before merge.
  2. Accept the existing proof window
    Merge after owner review while explicitly accepting that the latest real two-driver proof predates the final rebase and the branch is currently behind main.

Next step before merge

  • [P2] A protected maintainer-owned stack foundation needs refreshed exact-head validation and owner acceptance of the automation boundary, not an automated repair PR.

Maintainer decision needed

  • Question: Should the channel-lane matcher and Crabline target-normalization helpers become the canonical QA Lab foundation for the dependent Matrix migration stack?
  • Rationale: The patch is technically coherent and well tested, but it establishes an automation boundary used by a much larger dependent migration and carries a protected maintainer signal; accepting that ownership boundary requires normal owner judgment.
  • Likely owner: RomneyDa — They introduced the merged lifecycle prerequisite and own the adjacent migration stack, making them the strongest available technical-routing candidate for this boundary decision.
  • Options:
    • Refresh and accept the foundation (recommended): Rebase onto current main, repeat focused exact-head Matrix live and Crabline validation, then land this PR before refreshing the dependent stack.
    • Pause the migration stack: Keep this PR and its dependent work open while owners choose a different lane or target-normalization boundary.

Security
Cleared: The diff adds no dependency, workflow-permission, secret, publishing, or production authorization surface, and the new hashing and target normalization remain inside the QA harness.

Review details

Best possible solution:

Land one canonical QA Lab lane boundary where scenarios declare a channel, drivers own provider-native normalization, and refreshed live-plus-Crabline proof confirms both Matrix paths exercise equivalent flows.

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

Not applicable: this is a QA infrastructure refactor rather than a report of broken shipped behavior; focused and real-driver evidence demonstrates the intended parity path.

Is this the best way to solve the issue?

Yes, subject to owner acceptance: moving lane matching and provider-specific normalization into QA Lab boundaries is narrower and more maintainable than preserving Matrix-specific scenario executors or driver whitelists.

AGENTS.md: found and applied where relevant.

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

Label changes

Label justifications:

  • P2: This is a bounded QA infrastructure improvement with limited production blast radius but meaningful maintainer value for Matrix parity validation.
  • merge-risk: 🚨 automation: The diff changes which channel scenarios are selected and how runnable QA commands and provider targets are produced, so a mismatch could silently weaken or misdirect validation.
  • 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 PR; it nevertheless includes live two-driver Matrix results, exact-head Testbox output, and successful relevant CI evidence.
Evidence reviewed

PR surface:

Source +156, Tests +86, Other -10. Total +232 across 13 files.

View PR surface stats
Area Files Added Removed Net
Source 8 274 118 +156
Tests 3 95 9 +86
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 4 14 -10
Total 13 373 141 +232

What I checked:

Likely related people:

  • RomneyDa: Authored the merged Matrix channel-driver lifecycle foundation in refactor(qa): drive Matrix lifecycle through channel drivers #101055 and owns the current four-PR QA Lab migration stack, providing concrete prior merged history beyond this proposal. (role: feature owner and recent area contributor; confidence: high; commits: 3175d8e7423d; files: extensions/qa-lab/src/scenario-lane.ts, extensions/qa-lab/src/crabline-provider-targets.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.
Review history (19 earlier review cycles; latest 8 shown)
  • reviewed 2026-07-08T17:29:19.388Z sha 6d74148 :: found issues before merge. :: [P2] Keep omitted Matrix QA on mock-openai | [P3] Keep the Tailscale flag inside the list item
  • reviewed 2026-07-08T17:36:55.877Z sha 6d74148 :: found issues before merge. :: [P3] Indent the Tailscale flag under the checklist item
  • reviewed 2026-07-08T20:15:41.078Z sha 1f25e97 :: needs changes before merge. :: [P3] Indent the Tailscale flag under the checklist item
  • reviewed 2026-07-08T20:27:33.287Z sha 1f25e97 :: needs changes before merge. :: [P3] Indent the Tailscale flag under the checklist item | [P3] Split transport from the full Matrix profile
  • reviewed 2026-07-10T09:35:25.465Z sha 114bf82 :: needs maintainer review before merge. :: none
  • reviewed 2026-07-10T21:41:28.810Z sha 114bf82 :: needs changes before merge. :: [P2] Await the transport-state reset
  • reviewed 2026-07-13T21:12:44.158Z sha 4c775be :: needs maintainer review before merge. :: none
  • reviewed 2026-07-13T21:36:30.914Z sha 4c775be :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added 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. P1 High-priority user-facing bug, regression, or broken workflow. 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. labels Jul 7, 2026
@RomneyDa
RomneyDa force-pushed the dallin/unify-matrix-release-qa branch from d9724f8 to 73f0b8b Compare July 7, 2026 02:56
@RomneyDa
RomneyDa requested a review from a team as a code owner July 7, 2026 02:56
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts channel: qa-channel Channel integration: qa-channel size: XL and removed size: M labels Jul 7, 2026
@github-actions github-actions Bot added the dependencies-changed PR changes dependency-related files label Jul 7, 2026
@RomneyDa RomneyDa changed the title ci: unify Matrix release QA refactor(qa): retire the standalone Matrix QA runtime Jul 7, 2026
@github-actions

github-actions Bot commented Jul 7, 2026 •

Copy link
Copy Markdown
Contributor

Dependency graph guard cleared

This PR no longer has blocked dependency graph changes. A future dependency graph change requires a fresh /allow-dependencies-change comment after the guard blocks that new head SHA.

  • Current SHA: c46453636198c2a59aa324ea362ebfb61dafaf6c

@RomneyDa
RomneyDa force-pushed the dallin/unify-matrix-release-qa branch from 73f0b8b to c5aaf86 Compare July 7, 2026 03:02
@RomneyDa

RomneyDa commented Jul 7, 2026

Copy link
Copy Markdown
Member Author

@clawsweeper 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 proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. labels Jul 7, 2026
@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

@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

@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

@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 8, 2026

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

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

Copy link
Copy Markdown
Member Author

failing check is unrelated

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. P2 Normal backlog priority with limited blast radius. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: L 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