Repository navigation
refactor(qa): keep Crabline thread identity structured - #124467
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 17, 2026, 6:13 AM ET / 10:13 UTC (Revision 39). ClawSweeper reviewWhat this changesQA Channel and QA Lab carry conversation targets and thread IDs separately through provider correlation, session routing, message actions, and Gateway delivery. Merge readiness✅ Ready for maintainer review Keep open: this remains distinct, useful work beyond current main. The prior Mattermost delivery finding is resolved, earlier Discord and artifact-capture repairs remain intact, and no remaining actionable defect was identified. Priority: P2 Review scores
Verification
How this fits togetherQA Lab runs automated messaging scenarios through synthetic channels and Crabline’s local provider servers. Its transport layer translates scenario identities into provider destinations and correlates observed replies back to the correct conversation and thread. flowchart LR
A[QA scenarios] --> B[QA Lab transport]
B --> C[Crabline provider server]
C --> D[Channel plugin]
D --> E[Gateway agent run]
E --> D
D --> C
C --> F[Provider observations]
F --> G[Conversation and thread correlation]
G --> A
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +94, Tests +685, Config +1, Other +3. Total +783 across 31 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep logical QA identity structured while letting each provider adapter supply native delivery identifiers and the shared routing helpers construct session keys. Do we have a high-confidence way to reproduce the issue? Not applicable as a standalone bug reproduction: this is an ownership refactor with routing repairs. Source and regression paths were inspected; no runtime tests were executed in this read-only review. Is this the best way to solve the issue? Yes. The patch uses the existing correlated Crabline API and shared session-routing helpers, preserves the canonical parser, and resolves native thread identity at the provider boundary. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 847aef50adf6. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (38 earlier review cycles; latest 8 shown)
|
|
Exact dependency-contract proof for the remaining rank-up item:
This addresses the only rank-up gap in the current review. @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
07dde32 to
ba8b933
Compare
345cdd7 to
7cea159
Compare
|
Addressed the current exact-head ClawSweeper finding in Root cause: the task-tracking-disabled Canonical fix: preserve Proof:
The synchronize event automatically queued exact-head ClawSweeper review: https://github.com/openclaw/clawsweeper/actions/runs/32042236573. |
|
Rank-up disposition for exact review head
Exact-head ClawSweeper reports no actionable finding and rates the patch platinum. Native CI workflow https://github.com/openclaw/openclaw/actions/runs/32042227535 attempt 3 is successful; attempts 1 and 2 failed only on GitHub 429/503 action downloads before checkout. Stack integration remains a legitimate maintainer sequencing item. |
|
Addressed the remaining exact-head ClawSweeper items.
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper review Please review exact head This revision fixes the provider-thread correlation issue from Revision 31 by deriving distinct root and thread provider keys from the pinned Crabline adapter. Root provider events now map only to the root target; actual Matrix Validation: 67 focused tests pass after the latest-main rebase, and the full |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper review Please review exact head This resolves Revision 32: Matrix correlation now uses the same native-prefix normalization as delivery. The real provider-recording regression uses Validation: 25 focused Crabline target/correlation tests and full |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper review Please review exact head This revision resolves the current-main conflicts by collapsing the stale 18-commit stack into one current-owner patch. It preserves current Discord/Telegram QA support, the shared QA bus parser, structured Matrix/Mattermost thread correlation, and adapter-owned native Telegram identity; it removes the obsolete duplicated parser and fixed Telegram QA IDs. Validation: all 202 changed tests pass and the full |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
Rebased onto current The Discord provider test was using legacy Proof:
@clawsweeper review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review Exact-head repair at Validation: 7/7 focused Discord/Matrix/Mattermost routing tests pass; full |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review Exact head Validation: 7/7 focused routing tests, 10/10 extension-boundary tests, and full |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review Exact head Proof: real |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Dependency GuardThis PR changes dependency-related files. Maintainers should confirm these changes are intentional. Changed files:
Maintainer follow-up:
|
Closes #118007
Depends on #118008. Stack PR 3 of 3; review this PR against
refactor/crabline-server-terminologyuntil #118008 lands.What Problem This Solves
Resolves a problem where QA channel thread identity and provider correlation were serialized into target strings and then parsed back out downstream. That duplicated target grammar across QA Channel and QA Lab and made slash-containing conversation or thread ids fragile.
Why This Change Was Made
QA Lab now correlates Crabline's typed provider key directly to
{ conversation, threadId }. The bus receives the basedm:,group:, orchannel:target plus its existing explicitthreadId, and QA Channel derives threaded session routing without putting thread bytes intoto.This intentionally removes the temporary
/v1/target grammar instead of preserving an unreleased compatibility path. It does not change dependencies or readiness publication.User Impact
QA channel delivery preserves provider-native conversation and thread identity without an internal string protocol. Direct, group, and channel targets—including ids containing
/—round-trip through the same structured path.Evidence
node scripts/run-vitest.mjs extensions/qa-channel/src/inbound.test.ts extensions/qa-lab/src/crabline-transport-provider-identity.test.ts extensions/qa-lab/src/crabline-transport.test.ts extensions/qa-lab/src/qa-bus-protocol.test.ts src/plugin-sdk/qa-channel-protocol.test.ts— 61 tests passed.pnpm tsgo:extensions:allpassed.