Repository navigation
fix(gateway): regenerate the shared preview validator - #205332
Conversation
Co-authored-by: RomneyDa <[email protected]> Co-authored-by: vincentkoc <[email protected]>
Worked on by: - @vincentkoc - @RomneyDa Co-authored-by: vincentkoc <[email protected]> Co-authored-by: RomneyDa <[email protected]> OpenClaw-Publication: 3e609d1a-b70c-8e1f-9e6d-9e2ebaf9ca5e
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Codex review: needs maintainer review before merge. What this changesUpdates the generated logout predicate to accept the schema’s existing optional revoke: true field. Example: Validate {"provider":"acme","profileIds":["acme:user"],"revoke":true}.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR still repairs a concrete schema–validator mismatch, and no introduced defects were found. Its description still refers to the preview repair already merged separately. Reviewed head: Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Gateway protocol package generates predicates from canonical schemas and exposes them through public validation functions that return acceptance results and diagnostics. flowchart LR
A[Canonical logout schema] --> B[Validator generator]
B --> C[Generated predicate]
D[Logout parameters] --> E[Public protocol validator]
C --> E
E --> F[Acceptance and diagnostics]
Technical reviewBest possible solution: Keep the canonical schema authoritative and land the minimal generated predicate update through ordinary review. Do we have a high-confidence way to reproduce the issue? Source establishes the mismatch: main’s schema accepts revoke: true while its generated closed-object predicate rejects that property; no target code was executed. Is this the best way to solve the issue? Regenerating the existing predicate is the smallest complete fix and preserves schema ownership without adding policy, state, or parallel validation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b7bd237d0050. Provenance checked
TestingProof path: none. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +1. Total +1 across 1 file. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed November 26, 2026, 3:00 AM ET / 08:00 UTC (Revision 2). |
Co-authored-by: RomneyDa <[email protected]>
… main Co-authored-by: RomneyDa <[email protected]>
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
* fix(gateway): regenerate the shared preview validator Co-authored-by: RomneyDa <[email protected]> Co-authored-by: vincentkoc <[email protected]> * fix(gateway): regenerate the shared preview validator Worked on by: - @vincentkoc - @RomneyDa Co-authored-by: vincentkoc <[email protected]> Co-authored-by: RomneyDa <[email protected]> OpenClaw-Publication: 3e609d1a-b70c-8e1f-9e6d-9e2ebaf9ca5e * fix(gateway): regenerate the shared preview validator against current main Co-authored-by: RomneyDa <[email protected]> --------- Co-authored-by: vincentkoc <[email protected]> Co-authored-by: RomneyDa <[email protected]>
Problem
Main #205257 added optional
includePreviewImageto the shared catalog schema without refreshing the generated predicates.pnpm gateway:validators:checkfails on the unchanged main base and in CI for #205313.Change
Regenerate the Gateway validator from the existing schema. Only
predicates.jschanges. This does not change the schema and is not a beta backport.Verification
Reproduced the stale-predicates failure on the clean PR base. After regeneration on current main, all five checks in
pnpm validators:checkpassed, andgit diff --checkpassed.Worked on by