Skip to content

refactor(qa): keep Crabline thread identity structured - #124467

Merged
RomneyDa merged 4 commits into
mainfrom
refactor/crabline-structured-identity
Sep 17, 2026
Merged

RomneyDa merged 4 commits into
mainfrom
refactor/crabline-structured-identity

Conversation

@RomneyDa

Copy link
Copy Markdown
Member

Closes #118007

Depends on #118008. Stack PR 3 of 3; review this PR against refactor/crabline-server-terminology until #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 base dm:, group:, or channel: target plus its existing explicit threadId, and QA Channel derives threaded session routing without putting thread bytes into to.

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:all passed.
  • The provider-identity regression covers Telegram private topics and channels plus Mattermost and Matrix correlation, including slash-containing ids.
  • Production delta: +133/-205 (net -72). Test delta: +238/-38.

@clawsweeper

clawsweeper Bot commented Aug 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added channel: qa-channel Channel integration: qa-channel extensions: qa-lab size: L maintainer Maintainer-authored PR labels Aug 16, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 16, 2026
@clawsweeper

clawsweeper Bot commented Aug 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 17, 2026, 6:13 AM ET / 10:13 UTC (Revision 39).

ClawSweeper review

What this changes

QA 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
Reviewed head: 883403f849d8725bc54e2e78e436d88dc5c551af

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A coherent implementation with resolved prior findings, directly checked dependency contracts, and focused provider-boundary regressions.
Proof confidence 🌊 off-meta tidepool Not applicable: The ordinary contributor proof gate is exempt for this MEMBER-authored PR. The supplied discussion reports a real Discord-plugin/Crabline roundtrip; the latest Mattermost regression exercises production outbound delivery against Crabline, but was only source-inspected here.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The ordinary contributor proof gate is exempt for this MEMBER-authored PR. The supplied discussion reports a real Discord-plugin/Crabline roundtrip; the latest Mattermost regression exercises production outbound delivery against Crabline, but was only source-inspected here.
Evidence reviewed 8 items Distinct work remains on current main: The pinned main implementation retains string-valued provider-target correlation and a separate logical-route map. The introduced patch replaces these with structured conversation/thread records; the merged prerequisite PRs explicitly exclude this routing work.
Previous Mattermost finding resolved: Delivery now takes the native Mattermost root from providerCorrelation.threadId. The added regression injects symbolic post-root, passes the captured Gateway destination through mattermostPlugin.outbound.sendText, and checks the resulting logical threaded observation.
Delivery and correlation coverage: The Mattermost regression exercises the production outbound plugin against Crabline. Separate tests cover Discord native IDs through both agent and chat.send, and reject root or other-thread observations as evidence for a selected Matrix/Mattermost thread. These tests were inspected, not executed during this review.
Findings None None.
Security None None.

How this fits together

QA 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
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +94, Tests +685, Config +1, Other +3. Total +783 across 31 files.

View PR surface stats
Area Files Added Removed Net
Source 12 225 131 +94
Tests 16 846 161 +685
Docs 0 0 0 0
Config 1 1 0 +1
Generated 0 0 0 0
Other 2 4 1 +3
Total 31 1076 293 +783

Review metrics

Metric Value Why it matters
Production versus regression coverage Production net +94 lines; tests net +685 lines Production growth supports structured correlation and provider-native delivery; most added code exercises routing and provider boundaries.
Runner callback contract 2 optional threadId fields; 0 new required fields Existing adapter implementations remain source-compatible while callers can consume provider-resolved thread IDs.

Technical review

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

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The ordinary contributor proof gate is exempt for this MEMBER-authored PR. The supplied discussion reports a real Discord-plugin/Crabline roundtrip; the latest Mattermost regression exercises production outbound delivery against Crabline, but was only source-inspected here.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove merge-risk: 🚨 message-delivery: Current PR review selected no merge-risk labels.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: This improves thread routing and evidence accuracy in source-only QA infrastructure with a limited operational blast radius.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool 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 ordinary contributor proof gate is exempt for this MEMBER-authored PR. The supplied discussion reports a real Discord-plugin/Crabline roundtrip; the latest Mattermost regression exercises production outbound delivery against Crabline, but was only source-inspected here.

Evidence

What I checked:

  • Distinct work remains on current main: The pinned main implementation retains string-valued provider-target correlation and a separate logical-route map. The introduced patch replaces these with structured conversation/thread records; the merged prerequisite PRs explicitly exclude this routing work. (extensions/qa-lab/src/crabline-transport.ts:218, 883403f849d8)
  • Previous Mattermost finding resolved: Delivery now takes the native Mattermost root from providerCorrelation.threadId. The added regression injects symbolic post-root, passes the captured Gateway destination through mattermostPlugin.outbound.sendText, and checks the resulting logical threaded observation. (extensions/qa-lab/src/crabline-transport.ts:537, 883403f849d8)
  • Delivery and correlation coverage: The Mattermost regression exercises the production outbound plugin against Crabline. Separate tests cover Discord native IDs through both agent and chat.send, and reject root or other-thread observations as evidence for a selected Matrix/Mattermost thread. These tests were inspected, not executed during this review. (extensions/qa-lab/src/crabline-transport-thread-routing.test.ts:239, 883403f849d8)
  • Pinned dependency contract inspected: The direct @openclaw/crabline imports and provider-correlation claims establish this dependency boundary. GitHub resolves v0.1.27 to this commit; its Mattermost bridge rejects threaded createAgentDelivery input, resolves symbolic roots in createInbound, and exposes the native root as threadId. Telegram, Matrix, and shared correlated-adapter contracts were also inspected. (src/openclaw/bridges/mattermost.ts, ee538cd0f777)
  • SDK compatibility discussion: The existing runner callback gains optional threadId input and output fields without removing its existing fields. The maintainer explicitly discusses this additive contract alignment at refactor(qa): keep Crabline thread identity structured #124467 (comment); Gateway callers preserve the existing input fallback when an adapter supplies no thread. (src/plugin-sdk/qa-runner-runtime.ts:166, 883403f849d8)
  • Latest release comparison: The supplied latest release, v2026.9.4, still uses the string correlation map and createOutboundFromRecorderEvent. It does not contain the structured implementation under review. (extensions/qa-lab/src/crabline-transport.ts:211, 3a9d69db306c)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

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

History

Review history (38 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-14T04:00:53.742Z sha baed27ae68e5cef6d882dfc1a1e6e51096c317e5 :: blocked before merge. :: [P2] [P2] Keep threaded correlation off the provider root key
  • reviewed 2026-09-14T04:30:36.687Z sha 9e0b625afe4ecfcbb1ec7f456c082b05daaf5c53 :: blocked before merge. :: [P2] [P2] Normalize native Matrix rooms before deriving correlation keys
  • reviewed 2026-09-14T05:06:25.018Z sha 293cf92 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-15T10:52:31.716Z sha 8a6f3ae :: blocked before merge. :: [P2] [P2] Return the native Discord thread ID to the Gateway | [P2] [P2] Preserve conversation kind when registering a known thread
  • reviewed 2026-09-17T06:49:48.063Z sha be28bcb :: blocked before merge. :: [P2] Return the native Discord thread ID to the Gateway
  • reviewed 2026-09-17T07:46:18.105Z sha 3f1d29314966fcc6e4bdfdb5ae92c7d16cee53d5 :: blocked before merge. :: [P2] Preserve the running adapter when capturing Crabline artifacts
  • reviewed 2026-09-17T08:06:07.000Z sha 37c1f5ebeed5147f23006e296d3726ab3062dfe9 :: blocked before merge. :: [P2] Preserve the running adapter when capturing Crabline artifacts
  • reviewed 2026-09-17T08:43:39.617Z sha 9c0d6107b7db0cd2fa5d5577110a1fe2de7e9d16 :: blocked before merge. :: [P2] Forward the native Mattermost root ID to Gateway

@RomneyDa

Copy link
Copy Markdown
Member Author

Exact dependency-contract proof for the remaining rank-up item:

  • Installed dependency is exactly @openclaw/[email protected].
  • Its correlated-adapter type contract returns providerTargetKey from createAgentDelivery({ target, threadId }), exposes resolveInboundProviderTargetKey({ inbound, response }), and returns ordered providerTargetKeys from createOutboundObservation({ event }); it does not require OpenClaw to serialize logical thread identity into to.
  • The 0.1.17 runtime parses delivery as structured { target, threadId }, delegates provider-native delivery/key creation, and resolves inbound correlation from the provider callback or authoritative inbound.providerTargetKey.
  • The old string-map createOutboundFromRecorderEvent path is explicitly a deprecated compatibility wrapper. This PR uses the modern key contract and keeps the logical providerTargetKey -> { conversation, threadId } map in QA Lab, which owns that identity.
  • The branch is stacked on the exact prerequisite head 07dde32bcda1d63c83105b3ddf8464b878f64b75.
  • Exact-head verification: 61 focused tests passed and pnpm tsgo:extensions:all passed.

This addresses the only rank-up gap in the current review.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 16, 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 exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 16, 2026
@RomneyDa
RomneyDa force-pushed the refactor/crabline-server-terminology branch from 07dde32 to ba8b933 Compare August 16, 2026 07:47
@RomneyDa
RomneyDa requested a review from a team as a code owner August 16, 2026 07:47
@RomneyDa
RomneyDa force-pushed the refactor/crabline-structured-identity branch from 345cdd7 to 7cea159 Compare August 16, 2026 07:50
@clawsweeper clawsweeper Bot added merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. 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. and removed 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. labels Aug 16, 2026
@RomneyDa

Copy link
Copy Markdown
Member Author

Addressed the current exact-head ClawSweeper finding in 53dc0b30dda099a88a66a263c5cb8c6ed577e1c8.

Root cause: the task-tracking-disabled chat.send path forwarded the originating channel and target but dropped the independent originatingThreadId protocol field, so a threaded QA message could reply at the conversation root.

Canonical fix: preserve params.threadId as originatingThreadId at the chat.send owner boundary. No fallback or target-string inference was added.

Proof:

  • pre-fix reproduction: the existing interactive-run test failed on the missing originatingThreadId
  • post-fix focused test: 36/36
  • agent-process, QA Channel inbound, and Crabline identity siblings: 61/61
  • targeted format, oxlint, and diff checks: pass
  • fresh local autoreview: clean, patch correct (0.99)
  • production delta: +2; test delta: +5 net
  • the queued Testbox lease never acquired a runner and was stopped; exact-head native CI is now the broader gate

The synchronize event automatically queued exact-head ClawSweeper review: https://github.com/openclaw/clawsweeper/actions/runs/32042236573.

@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 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. labels Aug 17, 2026
@RomneyDa

RomneyDa commented Aug 17, 2026 •

Copy link
Copy Markdown
Member Author

Rank-up disposition for exact review head 53dc0b30dda099a88a66a263c5cb8c6ed577e1c8:

  • Directly inspected the installed package: @openclaw/[email protected].
  • dist/src/openclaw/shared.d.ts:50-52 requires the correlated delivery providerTargetKey.
  • shared.d.ts:84-88,105-125 defines ordered providerTargetKeys, createOutboundObservation, and the authoritative resolveInboundProviderTargetKey({ inbound, response }) contract; the old recorder conversion is explicitly deprecated.
  • dist/src/openclaw.js:314-335 delegates delivery/observation to the provider adapter and resolves the successful inbound provider key with the documented fallback.
  • This PR consumes those owners at extensions/qa-lab/src/crabline-transport.ts:259-305, while extensions/qa-lab/src/suite-runtime-agent-process.ts:80-95 now preserves the independent Gateway thread field.
  • Focused routing/identity proof remains 61/61.

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.

@RomneyDa

Copy link
Copy Markdown
Member Author

Addressed the remaining exact-head ClawSweeper items.

  • Rebased onto current main and resolved the QA Channel/QA Lab conflicts while preserving main's newer inbound media/preview behavior. The PR remains one structured route: base conversation target plus independent threadId; no second target-string parser or fallback path was added.
  • Directly inspected the installed, pinned @openclaw/[email protected] types and runtime. StartedOpenClawCrablineCorrelatedAdapter.createAgentDelivery({ target, threadId }) returns a providerTargetKey; outbound observations expose ordered providerTargetKeys; inbound correlation resolves through the provider callback or the authoritative inbound key. The deprecated string-map wrapper remains unused by this PR. QA Lab is the single owner of the logical providerTargetKey -> { conversation, threadId } mapping.
  • Fixed the rebase-related max-lines lint failure by moving three unchanged structured-thread routing tests into a focused test file; no production behavior or test assertions changed.
  • Verification: 139 focused contract/routing tests passed before the test-only split; afterward the affected QA Channel tests passed 25/25, extension test typechecking passed, targeted lint passed, and local autoreview was clean (0.99).
  • Exact-head openclaw/ci-gate is green at da9232b2855a2d733708980a2d31324409fc51de. The PR is mergeable and conflict-free.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 28, 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 exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper review

@clawsweeper

clawsweeper Bot commented Sep 14, 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 exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 14, 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 exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper review

Please review exact head 9e0b625afe4ecfcbb1ec7f456c082b05daaf5c53.

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 m.thread / Mattermost root_id events map to the logical threaded target. Real local Matrix and Mattermost provider tests prove an unrelated root event cannot satisfy a threaded assertion, while the matching threaded event can.

Validation: 67 focused tests pass after the latest-main rebase, and the full pnpm check:changed gate passed before that conflict-free rebase.

@clawsweeper

clawsweeper Bot commented Sep 14, 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 exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper review

Please review exact head 293cf92553e0c097c0b96946da69d5865e97cd70.

This resolves Revision 32: Matrix correlation now uses the same native-prefix normalization as delivery. The real provider-recording regression uses matrix:room:!qa:matrix.test, proves root events satisfy neither thread, proves the first thread cannot satisfy the second, and proves both actual m.thread events retain their independent logical thread IDs.

Validation: 25 focused Crabline target/correlation tests and full pnpm check:changed passed before the latest conflict-free, owner-disjoint rebase; the exact post-rebase target/thread set is 6/6 green.

@clawsweeper

clawsweeper Bot commented Sep 14, 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 exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper review

Please review exact head 8a6f3ae00ae4e40f4f30e667efff87ab0c2ec87d.

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 pnpm check:changed gate passes on the rebased patch.

@clawsweeper

clawsweeper Bot commented Sep 15, 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 exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@RomneyDa

Copy link
Copy Markdown
Member Author

Rebased onto current main and repaired the exact CI regression at be28bcb3623fdcca40d8a131c27345e5570bc394.

The Discord provider test was using legacy thread:conversation/thread syntax, which intentionally parses as a channel thread, while asserting a group conversation. It now uses the canonical typed target (group:conversation plus threadId), preserving group identity through provider correlation.

Proof:

  • 203 changed-owner tests passed, including the real Crabline Discord API path.
  • Full pnpm check:changed passed through all structural, type, dead-code, lint, SDK, and runtime guards; the final root-test lint was also run directly and passed.
  • git diff --check passes.

@clawsweeper review

@clawsweeper

clawsweeper Bot commented Sep 17, 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 exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Exact-head repair at 3f1d2931496 addresses the Discord thread-delivery finding. buildAgentDelivery now preserves logical thread identity only in QA correlation state and returns the provider-native Discord thread ID to Gateway delivery. New root integration proof exercises both agent and chat.send, then passes their captured native IDs through the production Discord outbound target resolver.

Validation: 7/7 focused Discord/Matrix/Mattermost routing tests pass; full pnpm check:changed passes on the rebased owner surface.

@clawsweeper

clawsweeper Bot commented Sep 17, 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 exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Exact head 37c1f5ebeed keeps the native Discord thread fix and moves its proof under QA Lab, where it exercises discordPlugin.outbound.sendText through the public channel-plugin API for both agent and chat.send. This resolves the prior root-test plugin-boundary CI failure while strengthening final-send proof.

Validation: 7/7 focused routing tests, 10/10 extension-boundary tests, and full pnpm check:changed pass.

@clawsweeper

clawsweeper Bot commented Sep 17, 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 exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Exact head 9c0d6107b7d restores adapter: this.#adapter using the lockfile-pinned Crabline 0.1.27 contract, preserving the running suite recorder during terminal artifact capture. The worktree dependency had been stale at 0.1.24; it is now lockfile-exact.

Proof: real OPENCLAW_QA_DISCORD_CRABLINE_E2E=1 roundtrip passes and asserts the published readiness snapshot contains the actual outbound scenario marker; 6/6 structured thread-routing tests pass; full pnpm check:changed passes with Crabline 0.1.27. Rebased onto current main; the only overlap was the generated assertion-safety baseline, whose ratchet passes.

@clawsweeper

clawsweeper Bot commented Sep 17, 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 exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@github-actions

Copy link
Copy Markdown
Contributor

Dependency Guard

This PR changes dependency-related files. Maintainers should confirm these changes are intentional.

Changed files:

  • extensions/qa-lab/package.json
  • pnpm-lock.yaml

Maintainer follow-up:

  • Review whether the dependency changes are intentional.
  • Inspect resolved package deltas when lockfiles or workspace dependency policy changes are present.
  • Treat pnpm-lock.yaml and package-lock.json diffs as dependency security-review surfaces.
  • Run pnpm deps:changes:report -- --base-ref origin/main --markdown /tmp/dependency-changes.md --json /tmp/dependency-changes.json locally for detailed release-style evidence.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: qa-channel Channel integration: qa-channel dependencies-changed PR changes dependency-related files extensions: qa-lab maintainer Maintainer-authored PR 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.

[Feature]: Align QA Lab with Crabline 0.1.13 server artifacts

1 participant