Repository navigation
fix(channels): honor trusted plugin activation contracts - #114492
Conversation
|
Codex review: needs changes before merge. Reviewed August 26, 2026, 1:36 AM ET / 05:36 UTC. ClawSweeper reviewWhat this changesThe PR moves channel activation checks to trusted channel-plugin packages and requires complete credentials before ambient environment variables activate a channel. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readinessKeep open: the latest head still regresses established Microsoft Teams blank-config environment fallback behavior, so a runnable channel can be hidden from activation. Priority: P1 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherChannel discovery turns configuration and environment signals into activation candidates for installed and bundled channel plugins. Those candidates affect onboarding, status, and which channel integrations OpenClaw treats as configured. flowchart LR
A[Config and environment] --> B[Channel discovery]
B --> C[Trusted plugin metadata]
C --> D[Channel-owned credential check]
D --> E[Activation policy]
E --> F[Onboarding and channel status]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +306, Tests +206, Config -9, Generated 0, Other +3. Total +506 across 22 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Make the lightweight Teams probe preserve the runtime’s nonblank config-or-environment fallback contract, then keep the activation checks plugin-owned and lazy. Do we have a high-confidence way to reproduce the issue? Yes — source reproducible: blank Teams config fields plus complete environment credentials activate in the current resolver but return false in the new checker. Is this the best way to solve the issue? No — plugin-owned lightweight discovery is the right boundary, but it must match the existing runtime fallback instead of treating blank fields as overrides. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against f61ae1193d0c. LabelsLabel justifications:
EvidenceAcceptance criteria:
What 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
HistoryReview history (21 earlier review cycles; latest 8 shown)
|
5dd5dfa to
978b78d
Compare
387c265 to
2ad6746
Compare
2ad6746 to
4e55533
Compare
83e9a5e to
a05fa58
Compare
|
Land-ready exact head 088949c: Incomplete bundled channel credentials were accepted and trusted installed external plugins were misclassified. Use manifest-owned channel credential probes and canonical installed-plugin provenance, preserving complete account contracts and current generated metadata. Incomplete LINE, Synology, Zalo and sibling credentials fail honestly while genuinely trusted installed plugin packages remain recognized. 219 owner/account/plugin sibling tests, real external package installation, generated catalog and metadata checks, full exact hosted TypeScript and CI gate, and fresh full-branch P1 review pass. |
|
Merged via squash.
|
Problem
Partially configured channel credentials could falsely activate Slack, Teams, SMS, LINE, or Zalo, while installed official channels and explicit configured intent were mishandled.
Repair
Keep credential-completeness decisions in their channel owners and apply the same trusted activation contract to bundled and officially installed plugin packages. Preserve explicit configuration when ambient credentials are incomplete.
Verification
237 focused owner/sibling tests passed. A clean hosted machine completed a full source build, tarball integrity verification, separately packed Slack plugin installation, onboarding, channel add/status, Doctor, and an agent turn. Independent review and touched-file lint passed.