Repository navigation
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. |
|
Closing and reopening to force a clean CI run after the draft-to-ready transition dropped the pull_request CI wave. |
|
Codex review: blocked before merge. Reviewed September 4, 2026, 1:52 PM ET / 17:52 UTC. ClawSweeper reviewWhat this changesThis PR makes channel validation, schema output, CLI reads, and system-agent redaction follow the plugin selected to serve a configured channel under Regression provenancePossible regression — probable (reviewed change; failure trace). No predecessor PR is attributed. Merge readiness⛔ Blocked before merge - 5 items remain The patch fixes the reported active-channel case, but its new selection path omits the Gateway’s explicit channel-disable gate. An explicitly enabled plugin can still become schema and redaction owner after Priority: P1 Review scores
Verification
How this fits togetherChannel plugin manifests feed Gateway startup and configuration metadata. That metadata then controls config validation, Gateway and CLI schema output, and which values system-agent commands redact. flowchart LR
A[Operator configuration] --> B[Plugin manifests]
A --> C[Gateway startup plan]
B --> C
C --> D[Serving channel owner]
D --> E[Validation and schema API]
D --> F[CLI config reads]
D --> G[System-agent redaction]
Before merge
Findings
Agent review detailsSecurityNeeds attention: The owner-selection change can omit a sensitive redaction hint for retained configuration of a channel explicitly disabled at startup. PR surfaceSource +130, Tests +179, Other -1. Total +308 across 19 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: Derive per-channel schema and redaction ownership from the complete Gateway startup-plan decision, including explicit channel disablement, and add reversed-order validation plus redaction coverage for that disabled-channel case. Do we have a high-confidence way to reproduce the issue? Yes—source establishes the path: explicitly enable one non-bundled channel plugin, set its shared channel entry to enabled:false, and arrange a same-origin alternate claimant with a sensitive-only field. Gateway’s existing test proves the first plugin does not start, while the new selector still chooses it. Is this the best way to solve the issue? No: sharing only the inner eligibility predicate is insufficient because Gateway startup also gates that predicate on channel presence and explicit channel disablement. The complete startup-plan owner decision is the narrower canonical source of truth. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 606d9ab82afd. LabelsLabel changes:
Label justifications:
EvidenceSecurity concerns:
Acceptance 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 (5 earlier review cycles)
|
40b4acd to
f029058
Compare
When two same-origin plugins claim the same channel, channel schema ownership was decided by registry iteration order (last wins), so a plugin displaced by a sibling's declared preferOver could still own the channel and validate the running replacement against the wrong schema keys. Honor replacement precedence at equal origin: a claimant another plugin lists in its channel preferOver is displaced and must not publish its schema, mirroring shouldSkipPreferredPluginAutoEnable. Ambiguous or absent declarations keep the existing deterministic last-wins overwrite. Fixes openclaw#132133
f029058 to
287a452
Compare
CI statusAll checks touched by this change are green on the latest head (
The sole remaining failure is the vitest ownership audit This is a pre-existing regression inherited from
Happy to help land a separate fix for the codex shard registration if maintainers want one; it is out of scope for this config-ownership change. |
|
@clawsweeper re-review Repaired and tested at The updated body records real CLI and Gateway red/green proof in both discovery orders, including disabled and denied replacements, explicit dual-selection, and serving-owner sensitive canaries. Schema selection now reuses the existing channel-candidate materializer and scoped owner eligibility. It does not execute plugin setup probes. The prior fallback/redaction finding and duplicate-policy concern are addressed. The persistent-data warning does not apply: there is no stored schema or migration change. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review New tested head: This also fixes the static-import CI failure by moving existing candidate/materialization logic into leaf modules. A further real allowlist control found that setup-import eligibility was not identical to Gateway startup; schema selection now shares the Gateway's existing predicate directly. All 12 real CLI/Gateway cases pass, including restrictive allowlists with explicit entries and a config-only negative control. There are 487 passing focused/sibling tests, clean lint, and zero cycles in both import checks. Runtime grants, operator settings, stored schemas, and protocols are unchanged. The updated body records the full scope and production/test deltas. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
The repair is verified at CI run 33898744434 finished with one failed child, The remaining check is inherited:
Named follow-up: restore the main Control UI startup budget. The guarded merge tool does not support an unrelated-red exception for this standalone budget check, so no merge or CI bypass was attempted. The repair, proof, and review remain retained. |
|
The disabled-channel finding does not reproduce on the reviewed head The shared predicate already reaches the disable gate:
I also ran the real CLI/Gateway fixture with With no selected runtime owner, metadata uses the pre-existing catalog path. Plus-first selects the legacy schema and redacts the legacy canary; core-first selects the preferred schema and redacts the preferred canary. The other inactive schema's canary remains visible in each order. Adding the proposed outer startup check changes neither result. The inactive-catalog ambiguity is therefore retained existing behavior, not introduced explicit-plugin suppression. It needs a separate ownership/redaction policy decision; this repair does not merge schemas or hints. Disabled-plugin metadata itself is intentional in the plugin architecture. Disposition: the proposed gate change and its matching rank-up test expectation are not applied because the gate is already enforced transitively. The complete source and real diagnostic capture are included in fresh independent review. No stored representation, database schema, migration, or protocol changes exist. |
|
Thanks @xydt-juyaohui! Landed as 3fa8cf3ccb23. Fresh exact-head independent review and CI run 33908595783 passed. Proof: All 12 real CLI/Gateway cases passed on the tested head. All 487 focused tests, lint, and assertion guards passed. The integrated UI measures 348,957 bytes and passes the original 350,141-byte startup limit.
No operator setting, runtime grant, selection policy, stored schema, migration, or protocol changed. The repair is AI-assisted. The disabled-channel review claim was checked against the transitive disable gate and real two-order CLI/Gateway evidence; the disposition is recorded here. Existing inactive-catalog behavior remains unchanged. |
…enclaw#132729) Keep channel validation, Gateway schema output, and config redaction aligned with the channel owner selected by existing activation policy. Reuse auto-enable and the existing Gateway channel-startup predicate, preserve explicit dual-selection and install-origin precedence, and bind sensitive-hint caching to configuration snapshots. Real CLI and Gateway proof covers both discovery orders, disabled and denied replacements, duplicate registration, and synthetic sensitive values. Regression and sibling tests cover metadata consumers and owner changes within the same inventory. Fixes openclaw#132133. Co-authored-by: Ayaan Zaidi <[email protected]>
Closes #132133.
What Problem This Solves
Fixes an issue where channel settings were checked against a displaced plugin's schema. The Gateway could serve the preferred plugin while validation rejected its fields, the Control UI schema described another plugin, and config reads used the wrong sensitive-field hints.
Why This Change Was Made
The metadata collector previously chose the last same-origin schema without the activation context. The repair reuses existing channel auto-enable candidates and the Gateway's configured-channel activation predicate, then selects schema, labels, and sensitive hints together. It does not add another
preferOverrule or execute plugin setup probes during validation.Explicit dual-selection remains explicit: runtime keeps its first eligible registration and reports the duplicate. Metadata follows that owner. Disabled and denied replacements cannot take ownership from the serving fallback. Existing install-origin precedence is retained.
The redaction cache now distinguishes configuration snapshots as well as the process-stable plugin inventory. No configuration option, grant, migration, persistent-store schema, or protocol changed.
User Impact
Evidence
Baseline:
6505c061f012f21d24af99c7d53e2b250039afe1.Tested repair:
b5b882b31cc69aea0e6f20005aa226e1caadd561.Real product proof used two local fixture plugins loaded through
plugins.load.paths, ordinary manifests, andregisterChannel. The replacement declarespreferOverand addsnewFieldto the legacy schema. Only the replacement is explicitly enabled in the normal case. Each case uses isolated config/state and a restarted Gateway.No direct collector import or mocked Gateway response was used as product proof.
newFieldforproof-core; Gateway servesproof-plusbut publishes the legacy schemaproof-plusAdditional controls cover an explicit plugin entry combined with a restrictive allowlist, and a config-only entry that must not gain runtime activation. Effective allowlists and authored activation intent remain separate inputs to the existing Gateway policy.
Commands exercised:
Gateway calls used the isolated server URL and a synthetic local token.
The new owner and redaction regressions failed on baseline production code. Focused and sibling coverage includes metadata, runtime schema, config validation, malformed channel schemas, auto-enable, loader duplicate diagnostics, CLI integration, closer-origin precedence, ineligible workspace claimants, and owner changes within one metadata snapshot.
The UI-facing schema was checked through the real Gateway API; no browser-rendering claim is made.
All 12 real CLI/Gateway cases passed on this exact head. All 487 focused/sibling tests, lint, and the assertion-safety ratchet pass on the new main integration. The earlier config/CLI test-type graph and source-contract checks passed before this mechanical main refresh; fresh CI checks the integrated head.
The integration includes main's Model Providers lazy-copy repair. Its startup payload measures 348,957 bytes and passes the original 350,141-byte enforcement limit. Main also contains a later stored-baseline adjustment, but this repair does not rely on that increase and changes no budget.
Review disposition
The latest ClawSweeper disabled-channel claim is not reproduced. The shared predicate already reaches
resolveChannelConfigEnablementbefore explicit plugin enablement. A real two-order diagnostic with the shared channel disabled confirms neither external plugin starts. With no selected runtime owner, the unchanged catalog fallback chooses the last same-origin schema. Adding another startup gate would not alter that result.The alternate inactive schema's synthetic canary remains visible under the existing catalog behavior. That pre-existing inactive-catalog ambiguity is a separate policy question; this repair does not merge schemas or sensitivity hints. The proposed extra gate and its matching rank-up test expectation are not applied because the existing transitive gate already enforces channel disablement.
Other review notes:
Production: +680/-550, net +130. Tests: +179/-0. Most of the larger diff moves existing activation logic into acyclic leaf modules. The shared auto-enable module is now below the line limit, and its grandfathered exception is removed. Four unnecessary type assertions are removed and the old allowance shrinks accordingly. Catalog-only schema generation retains its existing behavior.
Original contribution by @xydt-juyaohui; maintainer repair is AI-assisted.