Repository navigation
refactor(config): derive tool contracts from schemas - #155484
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. |
|
|
Codex review: blocked before merge. Reviewed September 22, 2026, 3:05 AM ET / 07:05 UTC (Revision 4). ClawSweeper reviewWhat this changesDerive media-scope and web-tool configuration types from existing validation schemas and add compile-time coverage for partial web configuration. Merge readiness⛔ Blocked before merge - 1 item remains Keep open as a useful maintainer-authored cleanup. No blocking patch defect was found, and the prior test-timing follow-up is resolved. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw’s configuration schemas validate operator settings used by media processing and web tools. These TypeScript contracts let callers author and consume those settings without maintaining separate copies of their shapes. flowchart LR
A[Operator settings] --> B[Configuration schemas]
B --> C[Validated configuration]
B --> D[Derived TypeScript contracts]
E[Configuration authors] --> D
C --> F[Media and web tools]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -52, Tests +15. Total -37 across 2 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep configuration shapes owned by the canonical schemas while preserving optional authoring inputs and existing runtime validation. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR removes manual type mirrors rather than fixing a reported runtime failure; source inspection found no introduced defect. Is this the best way to solve the issue? Yes. Deriving contracts from existing schemas removes competing declarations, and the compile-time fixture protects partial web authoring without changing the parser. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b75538b72121. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles) |
20b7e10 to
16ab9f3
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
16ab9f3 to
8f4d0ab
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
* commit 'f3327bde3c6052a4ed6d487bb09fbe1e11c0cd35': (25 commits) fix(test): pass the fixture lifetime to launcher fixtures (#155825) fix(test): prepare history benchmark before child deadlines (#155780) refactor(config): derive tool contracts from schemas (#155484) chore(deps): update fs-safe to 0.18.1 (#155771) fix(doctor): allow repair with retained deleted-agent sessions (#155752) fix(setup): await inference probe cleanup (#155407) fix(mcp): recover expired SSE sessions and speed up parsing (#155497) fix(release): forward the stable soak waiver through the candidate helper (#155798) feat: calibrate Gateway plugin resources through retirement (#155792) fix: preserve the invoked launcher when restarting Node (#147621) fix(sessions): stop repeated failed worker exit cleanup (#154720) fix(ui): preserve active replies and tools after failed steering (#155746) fix(ci): retain missing-load-path baseline diagnostics (#154861) fix(gateway): keep session lists responsive during activity updates (#155767) fix: keep plugin queues bound to their selected session (#155714) chore(i18n): refresh native locales (#155571) fix(ci): wait for reset hook entry and join fixture cleanup (#155770) test: move subagent fixtures to module boundaries (#155727) fix(gateway): retain question requester authority through settlement (#155335) perf(gateway): move progress-card reads off the main thread (#153857) ...
Summary
Production delta: −52 LOC
Validation
pnpm check:changedpassed--maxWorkers=1Compatibility
No runtime schema, default, persisted value, or validation behavior changes. The derived types preserve existing partial web authoring inputs and parsed media-scope output, so no config migration or upgrade action is required.