Repository navigation
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 18, 2026, 1:41 AM ET / 05:41 UTC. Summary PR surface: Source +4, Tests +78. Total +82 across 2 files. Reproducibility: yes. —the pre-patch shortcut is clear in the shared loader, and the supplied exact-head production-path transcript demonstrates the affected pattern and conditional cases after the fix. Review metrics: 1 noteworthy metric.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Merge the focused shared-loader correction once an owner accepts the intended upgrade semantics for constrained plugin configuration schemas. Do we have a high-confidence way to reproduce the issue? Yes—the pre-patch shortcut is clear in the shared loader, and the supplied exact-head production-path transcript demonstrates the affected pattern and conditional cases after the fix. Is this the best way to solve the issue? Yes—the shared empty-schema classifier is the narrowest maintainable boundary because both loader callers already converge on AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 893196483d22. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +4, Tests +78. Total +82 across 2 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
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. How this review workflow works
Review history (5 earlier review cycles)
|
f2b1056 to
e0c3d4f
Compare
|
Addressed the conditional-semantics finding, added loader-level regression coverage, rebuilt on current @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Fixed the exact-head Oxlint failure ( @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Route pattern, dependency, and active conditional schemas through the real plugin config validator while keeping standalone conditional annotations on the empty-config path. Co-Authored-By: Claude <[email protected]>
5b0e801 to
ad9481f
Compare
|
Rebuilt the lint-clean patch on latest @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
The PR body now references only the current exact head @clawsweeper re-review |
|
Merged via squash.
|
* origin/main: fix: CJK replies are silently dropped instead of recovered when the model skips message(action=send) (openclaw#115556) fix(gateway): stop managed crash loops for pending agent DB migrations (openclaw#115631) fix(plugins): validate constrained empty config schemas (openclaw#109569) fix(cli-runner): scope bundle-MCP cleanup to the run's session, not the process-wide loopback server (openclaw#110251) fix(feishu): log message content JSON parse failures instead of silently swallowing (openclaw#107947) docs(vision,agents): layer calibration, interface-on-demand, telemetry opt-in, whole-document guidance rules
* origin/main: fix: CJK replies are silently dropped instead of recovered when the model skips message(action=send) (openclaw#115556) fix(gateway): stop managed crash loops for pending agent DB migrations (openclaw#115631) fix(plugins): validate constrained empty config schemas (openclaw#109569) fix(cli-runner): scope bundle-MCP cleanup to the run's session, not the process-wide loopback server (openclaw#110251) fix(feishu): log message content JSON parse failures instead of silently swallowing (openclaw#107947) docs(vision,agents): layer calibration, interface-on-demand, telemetry opt-in, whole-document guidance rules fix(memory): preserve Windows session ownership (openclaw#115851) fix(compaction): drop context-engine fallback on codex ownership skip (openclaw#114155) (openclaw#115666) fix(msteams): ignore blank certificate settings (openclaw#109112)
) Route pattern, dependency, and active conditional schemas through the real plugin config validator while keeping standalone conditional annotations on the empty-config path. Co-authored-by: Claude <[email protected]> Co-authored-by: Peter Steinberger <[email protected]>
* origin/main: fix: CJK replies are silently dropped instead of recovered when the model skips message(action=send) (openclaw#115556) fix(gateway): stop managed crash loops for pending agent DB migrations (openclaw#115631) fix(plugins): validate constrained empty config schemas (openclaw#109569) fix(cli-runner): scope bundle-MCP cleanup to the run's session, not the process-wide loopback server (openclaw#110251) fix(feishu): log message content JSON parse failures instead of silently swallowing (openclaw#107947) docs(vision,agents): layer calibration, interface-on-demand, telemetry opt-in, whole-document guidance rules fix(memory): preserve Windows session ownership (openclaw#115851) fix(compaction): drop context-engine fallback on codex ownership skip (openclaw#114155) (openclaw#115666) fix(msteams): ignore blank certificate settings (openclaw#109112)
…t validation
Two paths reached an unusable manifest schema before validateManifestSchemaValue
could turn it into a diagnostic, so the isolation added earlier in this PR never
ran for them.
channel-config-metadata.ts owns the first handling of a non-bundled channel
schema. collectChannelSchemaMetadataWithOwnership prepares every external
channelConfigs.*.schema in two steps that each deep-clone and recursively walk it:
normalizeCoreOwnedChannelSchema, and widenOfficialExternalChannelSecretSchema for
official external channels with a secret contract or host schema overlay (qqbot).
A deeply nested schema overflows the stack in either step, inside the
ensureChannelSchemas() metadata pass, before any validator sees it. Both steps now
live behind one containment point, prepareChannelConfigSchema: preparation is
best-effort, so an unpreparable schema is surfaced raw and
validateManifestSchemaValue stays the single owner of the diagnostic. This also
covers collectChannelSchemaMetadataCore, the docs/UI reader of the same producer.
RED (pre-fix, both channels, and the qqbot case also fails against a
normalization-only containment — the escape codex review caught):
feishu: RangeError: Maximum call stack size exceeded
at normalizeCoreOwnedChannelSchema src/config/channel-config-metadata.ts:44:22
at collectChannelSchemaMetadataWithOwnership .../channel-config-metadata.ts:203
at ensureChannelSchemas src/config/validation.ts:350:27
at validateConfigObjectWithPluginsBase src/config/validation.ts:622:29
qqbot: RangeError: Maximum call stack size exceeded
at cloneSchema src/config/schema.shared.ts:20:10
at widenOfficialExternalChannelSecretSchema .../official-external-channel-secret-schema.ts:52
at collectChannelSchemaMetadataWithOwnership .../channel-config-metadata.ts:212:28
loader-shared.ts answered from isEmptyPluginConfigJsonSchema's shortcut before
compiling the schema at all, and that shortcut gated on a denylist of constraining
keywords. Anything the denylist had not enumerated — an unresolvable $ref, an
unknown keyword — was accepted as an empty config with no diagnostic. The
shortcut is only sound for schemas built purely from keywords it accounts for, so
the denylist is replaced with an allowlist; everything else falls through to
validateManifestSchemaValue.
RED (pre-fix):
expected { ok: true, value: {} } to match object { ok: false }
Both regressions were verified RED against stashed production files and GREEN
after. The standalone-conditional case from openclaw#109569 keeps its invariant (a closed
empty schema stays closed) but now gets its rejection from validation rather than
the shortcut, so it no longer pins the shortcut's message.
Production delta for this commit: +43/-21 across two files, of which 8 lines are
invariant comments; the empty-config allowlist is net-neutral against the
denylist it replaces.
Co-Authored-By: Claude Opus 5 <[email protected]>
What Problem This Solves
Fixes an issue where plugin config schemas with an empty explicit
propertiesmap were classified as empty even whenpatternProperties,dependentSchemas, or an activeifplusthen/elseconditional imposed real validation rules. Valid pattern-keyed plugin configuration could therefore be rejected as “config must be empty,” while active conditional constraints could be skipped.Why This Change Was Made
The empty-schema shortcut now recognizes pattern and dependency constraints and only treats conditionals as active when
ifis paired withthenorelse. Standaloneif,then, andelseremain on the empty-config path because JSON Schema gives them no independent validation effect.The implementation was checked against the repository's actual validator dependency, TypeBox 1.3.3: its coverage table and compiler source support
patternProperties,dependentSchemas, andif/then/else, and its conditional engine defaults missing branches totrue.User Impact
Plugin authors can use pattern-keyed and active conditional config schemas without the loader incorrectly requiring an empty config. Semantically inactive standalone conditional keywords do not bypass the empty-config guard.
Evidence
Exact PR head
ad9481fcfc88711b8cc352bd9a9377044b94827f, directly invoking the productionvalidatePluginConfigintegration path:Focused loader regression test:
Additional checks:
Fresh autoreview was attempted before commit, but the engine failed before producing findings because the Responses WebSocket returned HTTP 403. No autoreview-clean claim is made.
AI-assisted: yes. I reviewed the complete empty-schema decision, both loader callers, the production schema validator, and TypeBox's direct dependency contract.