Skip to content

fix(schema): setup_url accepts query strings and percent-encoding (#8398) - #8548

Merged
bokelley merged 1 commit into
mainfrom
fix/setup-url-pattern-8398
Oct 29, 2026
Merged

bokelley merged 1 commit into
mainfrom
fix/setup-url-pattern-8398

Conversation

@bokelley

@bokelley bokelley commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Refs #8398. Fixes the actively-wrong pattern the maintainer called out on that issue (2026-10-28).

Change

  • core/agent-reporting-destination-state.json#/properties/setup/properties/setup_url: ^https://[!$&-;=@-~]+$ → ^https://. The old class refused %, # and ? (so no query string or percent-encoded path, and a normalizing URL library's own output failed) and accepted {.
  • Description no longer lists characters the schema stops refusing. The no-credential / no-userinfo / no-signed-component rule stays as a receiver MUST, which is where transport-errors.mdx (URL validation) and reporting-delivery-config-state.json#/x-adcp-validation/safe_setup_url already put it.
  • tests/principal-contract.test.cjs: the old negative case asserted that ?token=… fails the schema. It now asserts that a query string, fragment and percent-encoding validate, and that http:// still fails.
  • Changeset: minor.

Verification

  • npm run lint:additive-minor: pass, 0 new (loosening a pattern is additive; a value valid under 3.2.7 is valid here).
  • tests/principal-contract, reporting-status-contract, schema-validation, json-schema-validation: pass. Changeset scope gate and changesets status pass.

Deliberately not in this PR

Only the one pattern with a demonstrated defect. The other patterns in #8398's inventory state an intent that needs a maintainer call rather than a mechanical normalisation, so they stay:

  • Origin-shaped, documented (^https://[^/?#@]+$, 4 sites; …(?:/[^?#]*)?$, 2 sites). Also note Konstantin's finding that the 4-site pattern refuses the normalized https://host/; /?$ is the minimal repair if they stay.
  • core/macro-bearing-url.json (^https?://…): deliberate.
  • reference-renderer.source_repository (^https://github\.com/): an allowlist.
  • core/reporting-* SSRF-shaped pattern (8 sites) and the core/attestation-* userinfo/fragment pattern (9 sites): their descriptions promise a "hardened origin shape". Removing them means rewriting those descriptions, so it needs a decision first.

agent-reporting-destination.json location carries a similar character class but is not format: uri, and is out of scope.

🤖 Generated with Claude Code


Open workspace in Conductor

)

The setup_url pattern rejected %, # and ? and accepted {. Reduce it to ^https://;
the no-credential, no-userinfo rule stays normative for receivers.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ladon verdict: Escalate to human review

Escalate — gated path requires human/CODEOWNERS approval.

This PR modifies static/schemas/source/core/agent-reporting-destination-state.json, which matches the static/schemas/source/** hard approval gate (gated_paths: true). review_decision is REVIEW_REQUIRED, not APPROVED, so the gate is not satisfied (decision table row 2).

The change itself looks clean per the reviewer: it loosens setup_url from ^https://[!$&-;=@-~]+$ to ^https:// + format: uri, moving the no-credential/signed-component rule to a receiver MUST in prose. Loosening a pattern is a non-breaking superset change, correctly carrying a minor changeset for the beta line. Schema↔docs coherence checked, no oneOf/dist-artifact/3.1.x surface touched, and tests re-pointed appropriately. No blocking or medium findings.

Because this is a clean, non-breaking change, the gate lifts the moment a human/CODEOWNERS approval lands — nothing further is needed from the author.

Escalation reasons

  • Touches gated path static/schemas/source/core/agent-reporting-destination-state.json; human/CODEOWNERS review required (review_decision is REVIEW_REQUIRED, not APPROVED).

Why human review

  • Modifies gated path static/schemas/source/core/agent-reporting-destination-state.json (static/schemas/source/**); requires human/CODEOWNERS approval since review_decision is REVIEW_REQUIRED, not APPROVED
  • This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/core/agent-reporting-destination-state.json (modified) matches static/schemas/source/**) and the current GitHub review decision is 'REVIEW_REQUIRED', not APPROVED. This is a hard gate enforced in code — Ladon cannot auto-approve until a human/CODEOWNERS approval is recorded, regardless of how clean the diff is.

@aao-secretariat aao-secretariat Bot added the ladon/needs-human-review Ladon has escalated this PR for human review. label Oct 28, 2026

Copy link
Copy Markdown
Contributor Author

The TypeScript failure on this unchanged head was the shared TargetingOverlay.geo_countries array-bound generator bug, now fixed by merged SDK #3487/#3488. I reran only that failed job after the external fix landed.

Run 40690262213, attempt 2 now passes at protocol head 8d7af29b5df50851acada5e565da94f908fcd748, using SDK 46a8f2a61f03e6491cc82869998dfe60cbfd382a: all 1,638 validators, full library/declaration build, and 57 shape + 157 canonical creative checks. No protocol change was needed to fix that CI lane.

This clears the SDK integration gate only. The schema-owner review recorded by Ladon remains required; no approval or merge is implied.

@bokelley
bokelley merged commit 42dc246 into main Oct 29, 2026
62 of 63 checks passed
@bokelley
bokelley deleted the fix/setup-url-pattern-8398 branch October 29, 2026 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ladon/needs-human-review Ladon has escalated this PR for human review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant