Repository navigation
fix(channels): accept documented configWrites across bundled schemas - #117206
vincentkoc merged 1 commit into
Conversation
There was a problem hiding this comment.
Pull request overview
Fixes a config-schema/documentation mismatch where channels.<id>.configWrites (and the per-account form) was documented and used by runtime policy resolution, but rejected by strict schema validation for 13 bundled channels—blocking gateway startup when the key is present.
Changes:
- Add
configWrites?: booleanto the affected channel config Zod schemas (channel-level and/or account-level, depending on the channel’s schema shape). - Add a contract test that asserts every bundled channel’s generated JSON schema accepts
configWritesat bothchannels.<id>andchannels.<id>.accounts.<account>when the schema is closed.
Reviewed changes
Copilot reviewed 14 out of 15 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/plugins/contracts/channel-config-writes.contract.test.ts | Adds a contract test to prevent future regressions in bundled channel schema support for configWrites. |
| extensions/buzz/src/config-schema.ts | Accept configWrites in Buzz channel config schema. |
| extensions/clickclack/src/config-schema.ts | Accept configWrites in ClickClack config schema (including account schema where applicable). |
| extensions/line/src/config-schema.ts | Accept configWrites in Line common config fields used by the channel/account schema. |
| extensions/matrix/src/config-schema.ts | Accept configWrites at the Matrix channel level (accounts remain schema-open). |
| extensions/nextcloud-talk/src/config-schema.ts | Accept configWrites in Nextcloud Talk account/base schema used for channel/accounts. |
| extensions/sms/src/config-schema.ts | Accept configWrites in SMS account/channel config schema. |
| extensions/nostr/src/config-schema.ts | Accept configWrites in Nostr channel config schema. |
| extensions/reef/src/config-schema.ts | Accept configWrites in Reef channel config schema. |
| extensions/raft/src/config-schema.ts | Accept configWrites in Raft account schema. |
| extensions/tlon/src/config-schema.ts | Accept configWrites in Tlon common config fields. |
| extensions/zalo/src/config-schema.ts | Accept configWrites in Zalo account schema. |
| extensions/zalouser/src/config-schema.ts | Accept configWrites in ZaloUser account schema. |
| extensions/qa-channel/src/config-schema.ts | Accept configWrites in QA channel account config schema. |
|
Codex review: needs maintainer review before merge. Reviewed August 1, 2026, 2:19 AM ET / 06:19 UTC. ClawSweeper reviewWhat this changesThe branch adds the documented optional Merge readinessThe PR is still necessary: current Priority: P2 Review scores
Verification
How this fits togetherChannel configuration is validated against each bundled plugin schema before the Gateway can use it. The shared channel policy then reads flowchart LR
A[Operator configuration] --> B[Bundled channel schema]
B --> C[Generated channel metadata]
C --> D[Gateway configuration validation]
D --> E[Shared config-write policy]
E --> F[Allowed or blocked channel config change]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +16, Tests +71, Generated 0. Total +87 across 18 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the schema-owner additions with the generated metadata and contract test after current-head CI is green, so all documented bundled-channel Do we have a high-confidence way to reproduce the issue? No live current-main run was established in this read-only review, but the source path is high-confidence: the shared policy reads this setting while all 14 affected strict bundled schemas omit it and can reject the documented input. Is this the best way to solve the issue? Yes. Adding the existing optional field at each bundled schema owner is the narrowest maintainable repair; changing the shared builder would broaden third-party plugin contracts unnecessarily. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against fe790ab64ef7. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
…figWrites on 13 channels
492f267 to
07dca07
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Maintainer validation update for the ClawSweeper rank-up moves:
Verdict: READY for maintainer merge review. No merge performed in this lane. |
|
Final maintainer landing gate for exact head
Landing via squash with contributor authorship preserved. |
|
Thanks for the detailed validation on this and on #112392. The exact-head verification made it easy to see exactly what you checked, and freezing the head rather than forcing a rebase saved the proof, which I appreciated. This closed the One loose end: #110624 is a small docs correction (stale 2gb session disk budget on the chrome extension page) that has been open since 18 July. If it is still wanted I will rebase it on current main, and if not I am glad to close it. Just say which. |
* origin/main: (41 commits) test(ci): update memory helper routing expectation (#117295) fix(canvas): emit successful control results in JSON mode (#117297) fix(imessage): settle native inbound reply delivery (#117282) fix(agents): reject invalid UTF-8 LSP responses (#117271) fix(line): centralize card and template message alt text (#117280) fix(release): validate candidates before Docker publication (#117252) fix(media): validate provider-owned generated media downloads (#117281) fix(feishu): restore custom HTTPS API domains (#117278) fix(models): reuse prepared plugin metadata (#117131) fix(agents): stop fallback after delivered-but-failed attempts (#114628) fix(memory): reuse targeted session corpus snapshot (#117247) fix(matrix): reconcile durable sends after response loss test(release): repair full validation regressions (#116931) fix(linux-canvas): report socket watcher fallback (#109502) fix(codex): preserve authoritative turn completion (#117185) fix(canvas): preserve widgets across derived-name collisions (#117132) fix(channels): config validation rejects documented channels.<id>.configWrites on 13 channels (#117206) fix(msteams): prevent duplicate final replies (#116398) fix(doctor): session SQLite restore installs an empty session index over the valid archive (#117221) fix(plugins): preserve workspace plugins across CLI and control UI (#117265) ...
…figWrites on 13 channels (openclaw#117206)
* origin/main: (41 commits) test(ci): update memory helper routing expectation (openclaw#117295) fix(canvas): emit successful control results in JSON mode (openclaw#117297) fix(imessage): settle native inbound reply delivery (openclaw#117282) fix(agents): reject invalid UTF-8 LSP responses (openclaw#117271) fix(line): centralize card and template message alt text (openclaw#117280) fix(release): validate candidates before Docker publication (openclaw#117252) fix(media): validate provider-owned generated media downloads (openclaw#117281) fix(feishu): restore custom HTTPS API domains (openclaw#117278) fix(models): reuse prepared plugin metadata (openclaw#117131) fix(agents): stop fallback after delivered-but-failed attempts (openclaw#114628) fix(memory): reuse targeted session corpus snapshot (openclaw#117247) fix(matrix): reconcile durable sends after response loss test(release): repair full validation regressions (openclaw#116931) fix(linux-canvas): report socket watcher fallback (openclaw#109502) fix(codex): preserve authoritative turn completion (openclaw#117185) fix(canvas): preserve widgets across derived-name collisions (openclaw#117132) fix(channels): config validation rejects documented channels.<id>.configWrites on 13 channels (openclaw#117206) fix(msteams): prevent duplicate final replies (openclaw#116398) fix(doctor): session SQLite restore installs an empty session index over the valid archive (openclaw#117221) fix(plugins): preserve workspace plugins across CLI and control UI (openclaw#117265) ...
What Problem This Solves
channels.<provider>.configWritesand the per-account form are documented and enforced by the shared channel config-write policy. Fourteen bundled channel schemas rejected that key, causing an otherwise valid config to fail validation and preventing the Gateway from starting.Affected channels:
buzz,clickclack,line,matrix,nextcloud-talk,nostr,qa-channel,raft,reef,sms,tlon,twitch,zalo, andzalouser.This is the remaining sibling repair to #112392.
Fix
configWritespolicy field at each affected bundled schema owner boundary.allOf,anyOf, andoneOfalternatives.The shared schema builders remain unchanged because injecting this field there would silently broaden third-party plugin contracts.
User Impact
Operators can set
configWrites: falseat the channel or account level on these channels without invalidating the entire config. Configs that omit the field retain the existing default behavior.Evidence
channel-config-writes.contract.test.ts: 55 passedextensions/twitch/src/config-schema.test.ts: 2 passedvalidation.channel-metadata.test.ts: 22 passedconfigWrites: falseAI-assisted: researched, written, and validated with coding agents under the contributor's and maintainers' direction. The change was reviewed and repaired against current
main.