Skip to content

fix(protocol): accept config hint documentation URLs - #116063

Merged
steipete merged 1 commit into
mainfrom
fix/config-schema-docs-url-protocol
Jul 29, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/config-schema-docs-url-protocol

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where config schema lookup failed when canonical UI hints included a documentation URL. This blocked the Kitchen Sink RPC package lane during beta.6 validation because the gateway rejected its own hint.docsUrl output as an unexpected property.

Why This Change Was Made

The shared config hint contract already emits optional documentation URLs. This adds the same optional field to the additive Gateway protocol validator and covers both full-schema and lookup responses. No protocol version bump or compatibility shim is needed.

User Impact

Config schema consumers and official plugins can use documentation-linked hints without config.schema.lookup failing validation.

Evidence

  • Reproduced in Full Release Validation child run 30485133625: config.schema.lookup returned invalid payload at /hint because docsUrl was rejected.
  • Added focused TypeBox validation coverage for full schema hints and lookup hints.
  • Formatting and git diff --check passed.
  • Autoreview passed with no actionable findings.
  • Exact-head hosted CI is the execution proof because the isolated worktree intentionally had no dependency install.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui gateway Gateway runtime size: XS maintainer Maintainer-authored PR labels Jul 29, 2026
@steipete steipete self-assigned this Jul 29, 2026
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P2 Normal backlog priority with limited blast radius. labels Jul 29, 2026
@clawsweeper

clawsweeper Bot commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed July 29, 2026, 3:58 PM ET / 19:58 UTC.

ClawSweeper review

What this changes

The PR adds an optional documentation-URL field to Gateway config UI hints and tests that full-schema and path-lookup responses accept it.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

The patch is a narrow, correct additive repair: both config.schema and config.schema.lookup validate hints through the same closed Gateway schema, so admitting the already-emitted optional docsUrl fixes both response shapes without a protocol-version change. This PR remains open because it carries the protected maintainer label and exact-head CI is still running, not because of a code defect.

Priority: P2
Reviewed head: 126220550b06e71effe789b79a3ba3a9579e0285

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, shared-boundary fix with relevant regression coverage and no actionable correctness or security finding; remaining exact-head CI completion is the merge gate.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-labeled protocol repair is covered by focused validation and exact-head hosted checks; no chat or browser interaction is the changed user surface.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-labeled protocol repair is covered by focused validation and exact-head hosted checks; no chat or browser interaction is the changed user surface.
Evidence reviewed 5 items Shared protocol boundary: ConfigSchemaResponseSchema and ConfigSchemaLookupResultSchema both use the single ConfigUiHintSchema; adding docsUrl there covers the full response, resolved lookup hint, and child hints without parallel validators.
Focused coverage: The PR extends the existing full-schema validation fixture with docsUrl and adds a lookup-result assertion, exercising both protocol response entry points affected by the shared hint schema.
Protocol contract and compatibility: The Gateway documentation defines config.schema and config.schema.lookup as returning UI hints; repository policy requires additive protocol evolution before versioning. An optional response property follows that contract and does not remove or reinterpret an existing field.
Findings None None.
Security None None.

How this fits together

OpenClaw generates config schema and UI-hint metadata for the Control UI, CLI tooling, and plugin-aware consumers. The Gateway protocol validates those responses before clients receive them, so a hint property absent from the protocol schema causes the otherwise valid response to be rejected.

flowchart LR
  A[Config schema generator] --> B[UI hint metadata]
  B --> C[Gateway response validator]
  C --> D[Full schema response]
  C --> E[Path lookup response]
  D --> F[Control UI and tooling]
  E --> F
Loading

Before merge

  • Add real behavior proof - Not applicable: This maintainer-labeled protocol repair is covered by focused validation and exact-head hosted checks; no chat or browser interaction is the changed user surface.
  • Resolve merge risk (P1) - Exact-head CI had not completed when reviewed; merge should wait for the remaining required lanes, especially build and lint, to finish green.
  • Complete next step (P2) - The protected maintainer label requires explicit maintainer handling; no mechanical repair is needed from ClawSweeper.
Agent review details

Security

None.

PR surface

Source +1, Tests +14. Total +15 across 2 files.

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

Review metrics

Metric Value Why it matters
Gateway response hint surface 1 optional response-hint field added The new field crosses the Gateway protocol boundary, but it is optional and shared by both documented config-schema response forms.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Merge the additive shared-schema change after the exact-head required checks complete, preserving docsUrl as optional so existing clients and hint producers remain compatible.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Merge the additive shared-schema change after the exact-head required checks complete, preserving docsUrl as optional so existing clients and hint producers remain compatible.

Do we have a high-confidence way to reproduce the issue?

Yes, from source: closedObject validation rejects properties absent from ConfigUiHintSchema, while both documented config-schema response paths reuse that schema. The supplied report and focused TypeBox cases identify docsUrl as the rejected property; this review did not execute the hosted release-validation child run itself.

Is this the best way to solve the issue?

Yes. Adding the optional field at the shared response-schema boundary is the narrowest maintainable fix because it covers full schema, resolved lookup, and child-hint validation without duplicating policy or changing the protocol version.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 0021e51f22fc.

Labels

Label changes:

  • add P2: This repairs a bounded config-schema protocol validation failure for Control UI and plugin consumers without evidence of data loss, security exposure, or runtime unavailability.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-labeled protocol repair is covered by focused validation and exact-head hosted checks; no chat or browser interaction is the changed user surface.

Label justifications:

  • P2: This repairs a bounded config-schema protocol validation failure for Control UI and plugin consumers without evidence of data loss, security exposure, or runtime unavailability.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-labeled protocol repair is covered by focused validation and exact-head hosted checks; no chat or browser interaction is the changed user surface.

Evidence

What I checked:

  • Shared protocol boundary: ConfigSchemaResponseSchema and ConfigSchemaLookupResultSchema both use the single ConfigUiHintSchema; adding docsUrl there covers the full response, resolved lookup hint, and child hints without parallel validators. (packages/gateway-protocol/src/schema/config.ts:80, 0021e51f22fc)
  • Focused coverage: The PR extends the existing full-schema validation fixture with docsUrl and adds a lookup-result assertion, exercising both protocol response entry points affected by the shared hint schema. (packages/gateway-protocol/src/schema/config.test.ts:7, 126220550b06)
  • Protocol contract and compatibility: The Gateway documentation defines config.schema and config.schema.lookup as returning UI hints; repository policy requires additive protocol evolution before versioning. An optional response property follows that contract and does not remove or reinterpret an existing field. Public docs: docs/gateway/protocol.md. (docs/gateway/protocol.md:1, 0021e51f22fc)
  • Exact-head checks: The supplied exact-head check rollup reports the focused bundled-protocol lane and protocol-adjacent guard lanes successful; broader build, lint, compact, and QA lanes were still in progress at review time. (126220550b06)
  • Maintainer review policy: The repository policy requires additive-first Gateway protocol changes and treats the maintainer label as protected handling rather than an auto-close candidate. (AGENTS.md:355, 0021e51f22fc)

Likely related people:

  • steipete: The PR is assigned to steipete, carries the repository's maintainer label, and its sole commit implements the focused Gateway schema repair. (role: current protocol-fix owner; confidence: medium; commits: 126220550b06; files: packages/gateway-protocol/src/schema/config.ts, packages/gateway-protocol/src/schema/config.test.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Wait for the in-progress exact-head build, lint, compact, and QA lanes before merging.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete
steipete merged commit 25d3c39 into main Jul 29, 2026
134 of 143 checks passed
@steipete
steipete deleted the fix/config-schema-docs-url-protocol branch July 29, 2026 20:09
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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 maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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.

1 participant