Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review blockedAutomated review did not run, so no review verdict was produced. Reason: The input-safety check could not safely complete for this revision. Automatic review is on hold, including after source changes. Request a fresh re-review after resolving the failure; maintainers can also release the hold through an intentional scanner-policy update. Next step: No contributor action is requested. Maintainers should inspect the linked workflow run. |
|
Codex review: needs real behavior proof before merge. Reviewed September 28, 2026, 8:15 AM ET / 12:15 UTC. ClawSweeper reviewWhat this changesThe branch makes OpenClaw's shared JSON Schema validator return a structured error when schema compilation throws a RangeError. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness⛔ Blocked before merge - 5 items remain The linked bug remains open and current main still lets compiler errors escape. This PR addresses that path, but it misclassifies an unusable schema as an ordinary value failure, and the contributor has supplied no after-fix runtime proof. Priority: P2 Review scores
Verification
How this fits togetherPlugins and other integrations supply JSON Schemas to the shared validator. Its result feeds config readiness, SDK validation, and tool input handling. flowchart LR
A[Plugin or tool schema] --> B[Schema shape check]
B --> C[Compile validator]
C --> D{Compilation succeeds?}
D -->|Yes| E[Validate value]
D -->|No| F[Schema diagnostic]
E --> G[Config or tool result]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +18. Total +18 across 1 file. View PR surface stats
Review metricsNone. 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: Reject excessive schema depth or size at the shared validator boundary, preserve the unusable-schema classification for manifest callers, and verify the published-package failure path. Do we have a high-confidence way to reproduce the issue? No current-main execution was performed. The linked report gives a concrete installed-package trigger, and current-main source shows the unguarded compiler call. Is this the best way to solve the issue? No. Catching compiler RangeError is useful, but the shared validator should reject excessive schemas before recursive processing and retain the distinction between schema and value failures. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 2da0e9a4c85b. 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
|
|
Independent review: the compiler-overflow result must remain distinguishable from ordinary value validation failures. Otherwise validatePluginSchemaValue can mark an unusable schema as schemaError:false, and config enablement may report “missing” even though no supplied value can make the schema compile. Please preserve that classification and add synthetic coverage for both bundled and external origins. I found no credentials or private data in this review. |
|
Thanks @Ayushdevo. We tested this through a real built Gateway on current main (50d7eb1), and with your branch merged onto main:
So the crash loop from #160426 doesn't reproduce on main, and this PR doesn't change the failure that remains. Closing this one. If you'd like to take the remaining case (deep tool schemas overflowing |
Closes #160426
What Problem This Solves
Fixes: deeply nested external JSON Schemas overflow during preparation instead of producing a usable validation diagnostic.
User Impact
External plugin schemas report invalid schema rather than missing setup. Bundled schema overflows remain loud programming errors.
Why This Change Was Made
Contain RangeError across fingerprinting, schema inspection, normalization, compilation, and defaults metadata. Preserve the unusable-schema classification through plugin config enablement; ordinary value validation and other schema exceptions retain their contracts. No arbitrary size/depth threshold is introduced.
Evidence
Real TypeBox and fingerprint overflows reproduced on main (depth 3,000 and 10,000 fixtures); no compiler mocks. All 82 tests across six schema suites passed (109.32s including cold worker preparation). Final isolated regression suite: 7 passed, 4.72s wall, test execution 51–149ms per case. Actual external config enablement reports invalid; both bundled/external origins are covered. The previously reported smaller shapes now compile on current main, so those old limits are not claimed reproduced. No installed third-party package or live Gateway scenario was exercised.
Independent reviews of the touched contracts found no actionable P0/P1/P2 findings. The repository Auto Review helper was attempted but its source upload was rejected by the host approval review; no external review verdict is claimed.
Core source typing and all core test-type graphs passed in the original checkout. Extension production typing, scoped lint for all touched core/extension TypeScript files, formatting, and git diff --check passed. Restored source files were verified against their submitted commits.
The broader local changed-check completion was lost when the temporary workspace reset, so a complete local changed-check pass is not claimed. The full extension test-type graph and full/qaRuntime builds were OOM-killed on an 8 GiB host; the runtime attempt also failed with compiler threads bounded to two. No successful local full/runtime build or real Gateway/provider proof is claimed.
Hosted CI is green for head 395e32e: https://github.com/openclaw/openclaw/actions/runs/37138266641 . The old-head schema-error classification finding is addressed by this revision and covered by both manifest origins. Fresh ClawSweeper review is on hold because its repository input-safety check could not complete; the bot requests maintainer workflow inspection and no contributor action.