Repository navigation
refactor(channels): unify bundled channel setup contracts - #117106
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 31, 2026, 7:41 PM ET / 23:41 UTC. ClawSweeper reviewWhat this changesThis PR removes duplicate Merge readiness⛔ Blocked until real behavior proof from a real setup is added - 5 items remain Keep this PR open for human review. The supplied diff consistently moves bundled channels to the channel-owned setup contract and retains the public legacy adapter fallback, but the PR head was unavailable in the local promisor checkout and GitHub DNS was unavailable, so this review could not verify the complete 84-file diff, the exact three-way merge result, or the linked runtime artifacts. Priority: P2 Review scores
Verification
How this fits togetherBundled channel plugins provide account setup rules to onboarding, configuration writes, root-to-account promotion, and agent binding. Those flows persist channel settings that the channel runtime later uses to authenticate and route messages. flowchart LR
Plugin[Bundled channel plugin]
Contract[Channel-owned setup contract]
Onboarding[CLI onboarding and setup wizard]
Promotion[Account promotion]
Binding[Agent account binding]
Config[Persisted channel configuration]
Runtime[Channel runtime]
Plugin --> Contract
Contract --> Onboarding
Contract --> Promotion
Contract --> Binding
Onboarding --> Config
Promotion --> Config
Binding --> Config
Config --> Runtime
Before merge
Agent review detailsSecurityNone. Review metricsNone. Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land only after a maintainer verifies the exact head preserves both contract-only bundled-channel behavior and the documented legacy Do we have a high-confidence way to reproduce the issue? Not applicable: this PR refactors established setup behavior rather than reporting a standalone failure. The supplied patch adds focused contract-only promotion and binding coverage, but the exact branch tests could not be run or inspected from this checkout. Is this the best way to solve the issue? Unclear: consolidating bundled channels on AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 83e0be6efee6. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
…17106) * refactor(channels): canonicalize bundled setup contracts * test(matrix): use scoped environment fixtures
What Problem This Solves
Bundled channel plugins exposed two competing setup surfaces, while modern contract-only channels could lose account promotion and agent-binding behavior.
Why This Change Was Made
Use the channel-owned setup contract as the single bundled runtime, onboarding, and test surface. Preserve the published legacy setup adapter and the exact public Plugin SDK API at explicit compatibility boundaries for existing third-party plugins.
User Impact
Contract-only channels preserve account promotion and agent binding, including Signal multi-account routes and Matrix plugin-owned binding hooks. Existing onboarding commands, configuration, CLI flags, and third-party legacy plugins continue to work unchanged.
Evidence
Real production runtime proof: exact reviewed head
Blacksmith Testbox
tbx_01kyx9eqb3t96g1vfng9rcaxcyexecuted the actual production Signal and Matrix bundled plugins, production setup resolver, promotion helper, account configuration owner, and agent-binding owner, plus the released external-plugin legacy-only adapter shape. No mocked owner or fabricated channel result; all assertions passed (exitCode: 0): https://github.com/openclaw/openclaw/actions/runs/30674024132Exact head was fully materialized and all 84 changed files inspected; GitHub reports the head mergeable against current
main. All 50 channel-contract files / 481 tests pass, the published Plugin SDK API hash and export surface are unchanged, no config/default or persisted schema is changed, and the exact-head required CI and security scans are green:openclaw/ci-gate: https://github.com/openclaw/openclaw/actions/runs/30673283720Both completed ClawSweeper rank-up moves are addressed: the redacted real production promotion/binding/legacy trace is above, and exact-head materialization, current-main mergeability, and completed required checks have been refreshed without changing the reviewed commit.