Repository navigation
refactor(qa): drive Matrix lifecycle through channel drivers - #101055
Conversation
Dependency graph guard clearedThis PR no longer has blocked dependency graph changes. A future dependency graph change requires a fresh
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
Codex review: needs maintainer review before merge. Reviewed July 6, 2026, 10:30 PM ET / 02:30 UTC. Summary PR surface: Source +128, Tests +141. Total +269 across 4 files. Reproducibility: not applicable. This PR adds QA infrastructure coverage rather than fixing an end-user bug. Source review confirms current main lacks the new Review metrics: 1 noteworthy metric.
Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land the QA Lab lifecycle contract after maintainer review and exact-head validation if this exported runtime API is the intended Matrix parity seam. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR adds QA infrastructure coverage rather than fixing an end-user bug. Source review confirms current main lacks the new Is this the best way to solve the issue? Yes: driving Matrix lifecycle proof through the existing QA transport-adapter registry is the narrow owner-boundary fit; duplicating Matrix-only lifecycle helpers would be more likely to drift. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against b2cecd8ece47. Label changesLabel justifications:
Evidence reviewedPR surface: Source +128, Tests +141. Total +269 across 4 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
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
Review history (5 earlier review cycles)
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
f55aaa9 to
1826b11
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
1826b11 to
056ad75
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
…w#101055) * test(matrix): add substrate lifecycle contract * fix(matrix): satisfy lifecycle dependency gates * refactor(matrix): keep Crabline lifecycle in adapter * refactor(qa): select Matrix lifecycle by driver lane * refactor(matrix): keep lifecycle helpers test-only * refactor(qa): drive Matrix lifecycle through channel drivers
…w#101055) * test(matrix): add substrate lifecycle contract * fix(matrix): satisfy lifecycle dependency gates * refactor(matrix): keep Crabline lifecycle in adapter * refactor(qa): select Matrix lifecycle by driver lane * refactor(matrix): keep lifecycle helpers test-only * refactor(qa): drive Matrix lifecycle through channel drivers
Closes #101054
What Problem This Solves
Matrix lifecycle proof needs to follow the same channel-driver selection seam as the rest of QA Lab. Selecting
live:matrixshould create the existing Matrix live transport, which privately owns Tuwunel; selectingcrabline:matrixshould create Crabline through the same transport-adapter registry.Why This Change Was Made
This PR now puts the lifecycle foundation at the QA Lab transport-adapter boundary:
createQaChannelDriverLifecycle()owns generic start, idempotent start, restart, stop, and resume control aroundcreateQaTransportAdapter().live:matrixresolves the registered Matrix live adapter;crabline:matrixresolves the built-in Crabline adapter.qa-matrixlifecycle helpers and private test API are removed. The final PR diff has noqa-matrixfiles; full plugin migration/removal remains separate follow-up work.This is a test/runtime-control seam inside QA Lab, not an end-user Matrix runtime or configuration surface. It adds no environment variable and no Matrix-plugin policy.
User Impact
No end-user behavior or configuration changes. Maintainers get one channel-driver lifecycle contract and real parity proof for Tuwunel-backed live Matrix and Crabline without intertwining the foundation with the
qa-matrixplugin.The Matrix plugin bundle does not grow: the final diff contains no
extensions/qa-matrix/**changes. QA Lab's runtime entry gains only the lifecycle export; channel-driver factory discovery remains a lazy dynamic import.Evidence
Exact pushed head:
395b864d203.Blacksmith Testbox
tbx_01kwx3qb2wvp9x0mv9v3way3h1(golden-crab):OPENCLAW_BUILD_PRIVATE_QA=1 corepack pnpm buildpassed.corepack pnpm test extensions/qa-lab/src/channel-driver-lifecycle.test.tspassed 2/2 tests.node scripts/test-live.mjs -- extensions/qa-lab/src/matrix-channel-driver.lifecycle.live.test.tspassed both real drivers and all five lifecycle scenarios.corepack pnpm tsgo:extensionspassed.corepack pnpm tsgo:extensions:testpassed.git diff --checkpassed.Fresh canonical autoreview thread
019f3a53-cf96-7f22-bd96-219e9a99b1d1reported no accepted/actionable findings and judged the patch correct.Developed with AI assistance. A sanitized agent transcript is available but is not included without explicit approval.