Skip to content

fix(gateway): regenerate the shared preview validator - #205332

Merged
RomneyDa merged 4 commits into
mainfrom
openclaw/quiet-lobster-ca9549
Nov 26, 2026
Merged

RomneyDa merged 4 commits into
mainfrom
openclaw/quiet-lobster-ca9549

Conversation

@tideclaw-bot

Copy link
Copy Markdown
Collaborator

Problem

Main #205257 added optional includePreviewImage to the shared catalog schema without refreshing the generated predicates. pnpm gateway:validators:check fails on the unchanged main base and in CI for #205313.

Change

Regenerate the Gateway validator from the existing schema. Only predicates.js changes. 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:check passed, and git diff --check passed.

Worked on by

tideclaw-bot and others added 2 commits November 25, 2026 12:10
Worked on by:
- @vincentkoc
- @RomneyDa

Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
OpenClaw-Publication: 3e609d1a-b70c-8e1f-9e6d-9e2ebaf9ca5e
@clawsweeper

clawsweeper Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui gateway Gateway runtime size: XS labels Nov 25, 2026
@tideclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 25, 2026
@clawsweeper

clawsweeper Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Updates the generated logout predicate to accept the schema’s existing optional revoke: true field.

Example: Validate {"provider":"acme","profileIds":["acme:user"],"revoke":true}.

  • Before: The generated predicate rejects revoke as an unknown property.
  • After: The generated predicate accepts the request; revoke: false remains invalid.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The minimal patch matches the authoritative schema, but direct runtime proof of the remaining change is absent and exact-head artifact validation was skipped.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR is outside the contributor proof gate; reported freshness checks support regeneration, while inspected Beam screenshots do not exercise the changed logout predicate.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Consumers of the exported logout validator cannot validate an otherwise valid disconnect request containing revoke: true.
Reason: This maintainer-authored regeneration restores an accepted contract with a minimal change.

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: 08ea8b8a92c5a2ba61846d64ce35759098a198c0

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: No supplied current-head runtime capture exercises the generated logout validator with revoke: true.
Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

Testing

Proof path: none.

Security

None.

Evidence

What I checked:

Likely related people:

  • Ayaan Zaidi: Raw commit 1a660f8 adds packages/gateway-protocol/src/schema/models-auth.ts:43 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 1a660f87c7f0; files: packages/gateway-protocol/src/schema/models-auth.ts)

PR surface

Source +1. Total +1 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 2 1 +1
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 2 1 +1

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

No label changes.

Label justifications:

  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (1 earlier review cycle)
  • reviewed 2026-11-25T12:16:17.563Z sha 050907d :: needs maintainer review before merge. :: none

Reviewed November 26, 2026, 3:00 AM ET / 08:00 UTC (Revision 2).

@tideclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@RomneyDa
RomneyDa merged commit 1c3de7e into main Nov 26, 2026
110 checks passed
@RomneyDa
RomneyDa deleted the openclaw/quiet-lobster-ca9549 branch November 26, 2026 08:14
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 27, 2026
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui gateway Gateway runtime P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants