Repository navigation
fix(schema): setup_url accepts query strings and percent-encoding (#8398) - #8548
Conversation
) 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]>
There was a problem hiding this comment.
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_decisionis 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.
|
The TypeScript failure on this unchanged head was the shared Run 40690262213, attempt 2 now passes at protocol head This clears the SDK integration gate only. The schema-owner review recorded by Ladon remains required; no approval or merge is implied. |
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{.transport-errors.mdx(URL validation) andreporting-delivery-config-state.json#/x-adcp-validation/safe_setup_urlalready 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 thathttp://still fails.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 andchangesets statuspass.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:
^https://[^/?#@]+$, 4 sites;…(?:/[^?#]*)?$, 2 sites). Also note Konstantin's finding that the 4-site pattern refuses the normalizedhttps://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 thecore/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.jsonlocationcarries a similar character class but is notformat: uri, and is out of scope.🤖 Generated with Claude Code
Open workspace in Conductor