Repository navigation
fix(validator): match adagents agent URLs with spec canonicalization - #7829
Merged
Merged
Conversation
AgentValidator compared authorized_agents[].url after stripping trailing slashes, which is not the AdCP URL canonicalization algorithm: `/mcp` matched `/mcp/`, while host case and default-port variants did not match. Use the SDK's canonicalTargetUri, fail closed on uncanonicalizable agent URLs, and skip entries whose url is not a string. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Contributor
There was a problem hiding this comment.
Ladon verdict: Approve
Approve.
Clean, self-contained fix: AgentValidator.normalizeUrl now uses the SDK's canonicalTargetUri to match authorized_agents[].url per the AdCP URL-canonicalization spec, mirroring hosted-property-origin-verifier.ts, and fails closed on uncanonicalizable or non-string URLs at both call sites.
Checked:
- Scope is server/app code only (
server/src/validator.ts+ tests) — nostatic/schemas/source/**,docs/reference/**,dist/**, orpackage.jsonversion surface touched, so no changeset is required (correctly omitted). - No high-risk paths, no gated paths.
- Comprehensively tested; the
find_agents_for_propertyregistry-canonicalization divergence is an author-disclosed follow-up, not a blocker.
No Critical/High/Medium findings. gated_paths is false, so the REVIEW_REQUIRED status does not trigger row 2. No no-auto-approve team match. Falls through to row 9.
bokelley
added a commit
that referenced
this pull request
Oct 17, 2026
Maintainer decision on #7830: /mcp and /mcp/ are the same agent for registry identity. The production collision listing bears it out — every one of the 47 key collisions is a trailing-slash pair, root or non-root, and there is not a single case-only, port, http/https or fragment variant among them. registryAgentUrlKey now strips trailing slashes from the path, on top of canonicalTargetUri's scheme/host case, default port, dot segments and percent-encoding. The one exception is a root path carrying a query, where the slash stays so the query still reads as a query. This diverges from docs/reference/url-canonicalization deliberately, and only for identity. AUTHORIZATION MATCHING IS UNCHANGED. AgentValidator and everything that decides whether an adagents.json entry authorizes an agent keep comparing spec-exactly, with the trailing slash significant (#7829). The seam is AgentConfig.declared_url: set only where the key folded something away, and read through declaredAgentUrl() by find_agents_for_property and properties.ts. registry-identity-vs-authorization.test.ts pins both halves — a manifest listing /mcp/ authorizes /mcp/ and not /mcp, while the two key identically. Every store and code path the key touches is classified as identity, authorization or raw-matched in the helper's header. Collisions are now resolved rather than blocked. registry-key-stores.ts declares a per-table merge policy: which row survives and how each column composes. Compliance status follows the freshest check; registry metadata takes the conservative value for every gate it holds; a badge keeps the active one over a revoked one; a ban can never be downgraded to a correction; an authorization merge unions validity but never the grant. No value is dropped silently — every merge lists the surviving row, the rows that do not, and every field whose value the merged row does not carry. agent_contexts and member_profiles.agents still have no policy and still block, because a wrong merge there hands over credentials or ownership. The production gate is exact now. registry-agent-url-key-sql.ts is a SQL twin of the key, held to the TypeScript helper by a corpus test, and audit-registry-key-collisions.ts groups by it per table per unique index. The old coarse gate rtrimmed every trailing slash and so reported path-case variants as merge risks; this one reports exactly the groups Postgres would reject, labelled by whether the migration rewrites that store. Migration 625's CHECK follows the key: no trailing slash on the path anywhere, with the root-plus-query exception. `declared_url` is member-supplied and reaches the validator, so the visibility gate only accepts it when it keys back to the same agent. Otherwise a member could claim their own agent's identity and a well-authorized agent's declared URL, and the directory would report theirs as authorized wherever that one is. Refs #7830 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
bokelley
added a commit
that referenced
this pull request
Oct 18, 2026
* fix(registry): key agents by AdCP URL canonicalization The registry keyed agents by `lower(trim(agent_url))` with every trailing slash stripped. AdCP URL canonicalization lowercases only the scheme and host; path case and a non-root trailing slash are significant. The old key therefore merged agents the spec says are distinct — `/tenants/Acme/mcp` and `/tenants/acme/mcp` shared one key, so an authorization, a compliance badge or an ownership claim could attach to the wrong agent — and failed to merge agents the spec says are the same (`:443`, dot segments, `%7E`, IDN hosts). After #7829 it is also an active matching regression: an agent served at `/mcp/` stops matching in find_agents_for_property. registryAgentUrlKey (server/src/db/registry-agent-url-key.ts) is now the one implementation, delegating to canonicalTargetUri from @adcp/sdk/signing with one registry-local rule: a root-served agent with no query loses its `/`, so those keys stay byte-identical across the migration. canonicalizeAgentUrl is a re-export, so every call site moves together, and the read-only audit from #7968 imports the same function instead of carrying a copy. SQL no longer canonicalizes agent URLs anywhere — the spec algorithm needs IDN A-labels, dot-segment resolution and selective percent-decoding. Seven queries in federated-index-db.ts take an app-computed key parameter; four were restructured, including moving signing_keys_pinned out of the manifest JSONB walk and giving reconcileAdagentsAuthorizations a FOR UPDATE transaction in place of its single-statement form. Migration 625 relaxes both CHECK constraints (NOT VALID, so a legacy key the new shape rejects cannot fail the deploy), adds the key columns to caa_emit_event's modified-event detection so a rewrite reaches change-feed consumers, and folds both sides of the suppress join for bad_actor overrides — exact equality would let a publisher lift a ban by editing one character of path case. The data rewrite is migrate-registry-agent-url-keys.ts: dry-run by default, refusing to write while any store has a merge, a chain, an unkeyable row, an unmodelled unique index, or a stranded suppression. Tables are discovered from information_schema and must appear in REWRITE_STORES or REPORT_ONLY_STORES, so a new store can be neither silently rewritten nor silently left on the old key. Three deliberate divergences from the comparer rules in docs/reference/url-canonicalization, all because this is a producer-side key rather than a signature comparison: userinfo is rejected rather than stripped, a U-label host is converted rather than rejected, and query percent-encoding is normalized where the SDK's 3.2 profile preserves raw bytes for signature fidelity. Refs #7830 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * test(registry): repin the canonicalization tests to spec semantics Five integration tests asserted the pre-#7830 key: that a path-case or trailing-slash variant collapses onto the same agent. Under AdCP URL canonicalization it does not, so they now vary only what the key still folds — scheme and host case, a default port, surrounding whitespace — and member-agents-api gains a case proving `/mcp`, `/MCP` and `/mcp/` register as three separate agents rather than upserting onto each other. Regenerates static/openapi/registry.yaml for the agent_url parameter description. Refs #7830 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * fix(registry): fold a trailing slash into the agent identity key Maintainer decision on #7830: /mcp and /mcp/ are the same agent for registry identity. The production collision listing bears it out — every one of the 47 key collisions is a trailing-slash pair, root or non-root, and there is not a single case-only, port, http/https or fragment variant among them. registryAgentUrlKey now strips trailing slashes from the path, on top of canonicalTargetUri's scheme/host case, default port, dot segments and percent-encoding. The one exception is a root path carrying a query, where the slash stays so the query still reads as a query. This diverges from docs/reference/url-canonicalization deliberately, and only for identity. AUTHORIZATION MATCHING IS UNCHANGED. AgentValidator and everything that decides whether an adagents.json entry authorizes an agent keep comparing spec-exactly, with the trailing slash significant (#7829). The seam is AgentConfig.declared_url: set only where the key folded something away, and read through declaredAgentUrl() by find_agents_for_property and properties.ts. registry-identity-vs-authorization.test.ts pins both halves — a manifest listing /mcp/ authorizes /mcp/ and not /mcp, while the two key identically. Every store and code path the key touches is classified as identity, authorization or raw-matched in the helper's header. Collisions are now resolved rather than blocked. registry-key-stores.ts declares a per-table merge policy: which row survives and how each column composes. Compliance status follows the freshest check; registry metadata takes the conservative value for every gate it holds; a badge keeps the active one over a revoked one; a ban can never be downgraded to a correction; an authorization merge unions validity but never the grant. No value is dropped silently — every merge lists the surviving row, the rows that do not, and every field whose value the merged row does not carry. agent_contexts and member_profiles.agents still have no policy and still block, because a wrong merge there hands over credentials or ownership. The production gate is exact now. registry-agent-url-key-sql.ts is a SQL twin of the key, held to the TypeScript helper by a corpus test, and audit-registry-key-collisions.ts groups by it per table per unique index. The old coarse gate rtrimmed every trailing slash and so reported path-case variants as merge risks; this one reports exactly the groups Postgres would reject, labelled by whether the migration rewrites that store. Migration 625's CHECK follows the key: no trailing slash on the path anywhere, with the root-plus-query exception. `declared_url` is member-supplied and reaches the validator, so the visibility gate only accepts it when it keys back to the same agent. Otherwise a member could claim their own agent's identity and a well-authorized agent's declared URL, and the directory would report theirs as authorized wherever that one is. Refs #7830 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * fix(registry): keep the partial-index predicate through a key merge The merge re-read in planMerges fetched rows by key and scope columns but dropped the unique index's partial predicate. idx_caa_unique_active and idx_aao_unique_active only constrain live rows, so the plan counted the collision from active rows alone while the re-read pulled in every tombstoned and superseded row sharing the same key and scope. rankRows would then happily crown a dead row — a superseded bad_actor override outranks a live correction, a soft-deleted authorization with a fresh updated_at outranks the live grant — and applyMerges deleted the live rows as losers. That drops an authorization or lifts a ban. The DELETE and UPDATE omitted the predicate too, so they could reach rows the plan never looked at. MergeAction now carries the predicate and all three statements apply it, so the group the plan describes and the group the apply touches are the same set by construction. The regression test seeds two live catalog_agent_authorizations rows plus a tombstone on the same key and scope holding the freshest updated_at of the three — the exact ranking trap. Reverting the fix makes it fail with both live rows in loserKeys. Found by the PR reviewer. Refs #7830 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * fix(registry): answer directory authorization reads spec-exactly Maintainer decision on the open item in #8249. catalog_agent_authorizations keeps keying by identity — the indexes stay on agent_url_canonical and the folded key does the lookup work — but every per-agent read that answers "is this agent authorized" now restricts to the raw agent_url values that are spec-exactly the same agent. A publisher that authorized https://a.example/mcp/ has not authorized https://a.example/mcp, and the directory can no longer say otherwise in either direction. specExactAgentUrls(agentUrl) resolves it: one indexed read of the distinct raw spellings under the key, filtered through isSpecExactAgentMatch, passed to the query as AND v.agent_url = ANY($n::text[]). A single agent has a handful of spellings, so this is one small indexed read whatever the registry's size, and an empty result correctly matches nothing. Nine read sites carry it: getDomainsForAgent, getPublishersForAgentDetail, bulkGetFirstAuthForAgents, getPropertiesForAgent, getPropertiesForAgentDomain, getPublisherDomainsForAgent, getAuthorizationSource, isPropertyAuthorizedForAgent, and AuthorizationSnapshotDatabase.getNarrow. validator.ts's normalizeUrl now calls through to the same specExactAgentUrl the directory uses, so the two implementations cannot drift — which is the actual guarantee being asked for. getAllAgentDomainPairs is deliberately not filtered: it is the crawler's bulk snapshot for diffing agent.discovered / agent.removed, an identity enumeration rather than a per-agent authorization answer. registry-directory-spec-exact.test.ts covers one case per read site plus a cross-check that the directory and the AgentValidator agree. Neutering the filter makes all ten fail. The snapshot endpoint resolves against whichever relation its include mode reads: an include=effective pull surfaces phantom rows from the override layer that have no base row at all, so resolving against the base table would filter every one of them out. The existing sync-endpoint test caught exactly that. Read-side only: no key, migration, merge policy or stored value changes, so the collision gate and dry-run outputs are unaffected. Refs #7830 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> --------- Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
bokelley
added a commit
that referenced
this pull request
Oct 18, 2026
#8249 folded the non-root trailing slash into the registry identity key, so `https://x.example/mcp/` and `https://x.example/mcp` are one agent stored under the slashless key. The writers and the DB readers moved; the HTTP per-agent routes did not — they still looked the requested URL up raw. After the production rewrite, `GET /api/registry/agents/{…%2Fmcp%2F}/compliance` returned `status: unknown` with no data while the slashless spelling returned the merged agent (`degraded`, 3.1.29). Same for `interchange.io/` and `sell.nofluffadvisory.com/`: every badge embed or bookmark holding the slashed spelling went blank. Every route that takes `:encodedUrl` and resolves it to registry identity now keys the requested URL before the lookup, so either spelling resolves to the folded agent and the response echoes the canonical `agent_url` (19 routes: compliance, compliance/history, compliance/diagnostics, verification, the four badge routes, storyboard-status, the monitoring routes, lifecycle, grading-profile and the three storyboard POSTs). `?? rawAgentUrl` keeps the existing 404/empty behavior for inputs the key rejects. `GET /registry/lookup/agent/:agentUrl/domains` is deliberately NOT keyed and is now annotated as such: "which publishers authorize this agent" is an authorization answer, decided spec-exactly with the trailing slash significant (#7829). Keying it would make `/mcp/` inherit `/mcp`'s authorizations. Also records in the migration script runbook that `flyctl deploy --process-groups worker` recreated the worker group with 2 HA machines even though it had been scaled to 0, so pausing the workers does not survive a deploy. Refs #7830. Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
bokelley
added a commit
that referenced
this pull request
Oct 19, 2026
…lookup (#8314) * fix(registry): match agent_url spec-exactly on the directory inverse-lookup `GET /v1/agents/{agent_url}/publishers` ran its parameter through `canonicalizeAgentUrl` — the registry IDENTITY key, which folds a non-root trailing slash (#7830) — before calling `getPublishersForAgentDetail`. That DB helper is spec-exact by design (it keys for the index, then restricts to the raw `agent_url` spellings that match per #7829), but it was handed an already-folded URL, so the fold decided the authorization answer: - a request for `https://a.example/mcp/` was answered with `https://a.example/mcp`'s publishers — an authorization the publisher's adagents.json does not grant, and a direct disagreement with the validator and with the sibling `/domains` route; and - an agent whose publishers declared it WITH a trailing slash resolved for neither spelling, because the folded lookup never matched its raw rows. The key is now only a validity gate; the lookup takes the URL as the caller wrote it, exactly as `/registry/lookup/agent/:agentUrl/domains` does. The `agent_url` echo is the AdCP canonicalization of the request with the trailing slash preserved, which is what docs/aao/directory-api.mdx has always specified ("Canonicalized echo of the lookup key"). docs/aao/directory-api.mdx already documented slash-significant matching, so this brings the implementation to the spec rather than changing it; the page and the OpenAPI description now also record the behavior change for consumers that had adapted to the folded answers. Refs #7830, #7829. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * chore: drop changeset for registry-scoped directory fix scripts/check-changeset-protocol-scope.cjs excludes static/openapi/registry.yaml and docs/aao from the protocol surface, so this registry behavior fix must not carry an `adcontextprotocol` changeset. The behavior change is recorded in docs/aao/directory-api.mdx and in the OpenAPI description instead. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> --------- Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
bokelley
added a commit
that referenced
this pull request
Oct 19, 2026
…e can ask the directory (#8316) The registry lists an agent once, under its folded identity key: `/mcp` and `/mcp/` are one agent (#7830). The directory answers authorization questions spec-exactly, trailing slash significant (#7829, #8314). Both rules are right, and together they left a hole on the public agents page: it asked `GET /v1/agents/${agent.url}/publishers` with the listed (folded) URL, so an agent whose publishers declared it as `/mcp/` showed "No indexed publisher authorizations" — the page was asking about a spelling no publisher wrote. `GET /api/registry/agents` now returns `declared_urls[]` per agent: the listed URL first, then the owner's registered spelling, then every raw `agent_url` the directory has indexed under that identity. One bulk query (`bulkDeclaredAgentUrls`) over `v_effective_agent_authorizations` for the whole page; a failure logs and falls back to the identity URL rather than failing the listing. The legacy `agent_publisher_authorizations` arm is not consulted — it is raw-matched with no canonical column, so its rows can only be found by the exact spelling the caller already has. agents.html splits the directory call out of the renderer into `fetchPublisherRecords`, asks once per declared spelling, and merges by publisher_domain with `authorized` beating `revoked`. A 404 for one spelling is an empty page, not an error — with several spellings it is the normal answer for all but one. The same split applies to the listing's own property enrichment: `getPropertiesForAgent` and `getPublisherDomainsForAgent` are spec-exact reads too, so a slash-declared agent showed no properties either. Both now run per declared spelling and merge. Single-spelling agents — nearly all of them — make exactly the same calls as before. `/publishers` itself is unchanged and stays spec-exact. Refs #7830, #7829. Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
bokelley
added a commit
that referenced
this pull request
Oct 19, 2026
…ity key (#8325) * fix(registry): resolve notification owners through the registry identity key `resolveAgentOwnerUserIds` matched owners by the raw `agent_url` while the registry identity key folds a non-root trailing slash (#7830): `/mcp` and `/mcp/` are one agent. An owner profile holding the other spelling matched nothing, so compliance regression/recovery, verification badge changes, the heartbeat-timeout notice from #8319, and extended-outage alerts all failed closed and silently — no DM, no error. The notifiers now resolve recipients through every spelling that folds to the agent's identity key. SQL may not canonicalize agent URLs, so the stored side cannot be folded in the query; the new `registryAgentUrlKeySpellings` returns the key, the key's path carrying the slash the fold removed, and the caller's own spelling, each verified to key back to the same identity so a lookup can never reach a second agent. Org scoping is unchanged, and `declared_url` is not consulted — that is the spec-exact authorization spelling (#7829) and must never decide identity. `isAgentPublic` folds the same way: it gates the shared-channel post, and leaving it raw would suppress the post for exactly the agents this reaches. The owner lookup also gains `DISTINCT` (two orgs can co-claim one agent) and an `ORDER BY`, so the `LIMIT 5` cap no longer truncates planner-dependently, and its swallowed-error log moves from debug to warn — the callers read an empty result as "nobody owns this", so a silent query failure is indistinguishable from a correct silence. Unit tests pin which spellings are asked for; an integration test runs the real SQL against Postgres, including the negative case for a different agent sharing the URL prefix. Both fail if the fold is removed. Readers in `services/agent-ownership.ts`, `badge-issuance.ts`, `verification-profile-db.ts` and `compliance-db.ts` have the same shape, as does the admin `PUT /api/admin/member-profiles/:id` writer that still stores `agents[].url` unkeyed. Those are authorization predicates and a writer, not notification delivery, and are tracked in #8322 rather than widened here. Closes #8321 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> * test(notifications): match the owner-lookup spellings exactly, not by substring CodeQL's `js/incomplete-url-substring-sanitization` fired on `requestedAgentUrls(params).includes(URL)` in the #8321 unit test. The receiver is a `string[]`, so `includes` was already an exact element match and the alert is a false positive — but `some((url) => url === …)` says that unambiguously and costs nothing. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> --------- Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
bokelley
added a commit
that referenced
this pull request
Oct 19, 2026
…y identity key (#8350) The registry identity key folds a non-root trailing slash (#7830), so `…/mcp` and `…/mcp/` are one agent and every per-agent surface addresses it by the folded key. The ownership, badge and owner-credential predicates matched the stored `member_profiles.agents[].url` exactly, and the admin profile writer was still minting unfolded rows, so an owner who registered the other spelling was denied their own agent: no dashboard, no compliance refresh, badge fan-out revoking everything because the membership org "did not exist", and the owner's saved credentials ignored. Key `agents[].url` on `PUT /api/admin/member-profiles/:id`, preserving the registered spelling in `declared_url` like the other writers, and resolve the agent through the new shared `agentIdentityContainment` filter in every ownership, badge and owner-credential predicate. Org and role scoping are unchanged at every site, `declared_url` never decides identity, and authorization matching against a publisher's adagents.json stays spec-exact (#7829). Closes #8322 Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
AgentValidator(behind/api/validate, thevalidate_agent_authorizationandfind_agents_for_propertyMCP tools, and property verification) comparedauthorized_agents[].urlafter stripping trailing slashes, which is not the spec's comparison. URL canonicalization says a trailing slash is significant, while scheme/host case, default ports, dot segments, and percent-encoded unreserved characters are not. So the validator could disagree with a spec-conformant buyer:https://a.example/mcphttps://a.example/mcp/https://a.example/mcpHTTPS://A.Example/mcphttps://a.example/mcphttps://a.example:443/mcpThe validator now uses
canonicalTargetUrifrom@adcp/sdk/signing, the same implementationhosted-property-origin-verifier.tsalready uses forauthoritative_location. An agent URL that can't be canonicalized fails closed withInvalid agent URL. Manifest entries whoseurlisn't a string are skipped.Known interactions / follow-ups
canonicalizeAgentUrl(server/src/db/publisher-db.ts) lowercases the whole URL and strips trailing slashes, andchk_caa_agent_url_canonicalin migration 440 enforces that shape. Aligning it needs a data migration, so it's left out of this PR. Until then,find_agents_for_propertypasses registry-canonical URLs into the validator. An agent registered as/mcp/whose publisher also lists/mcp/will stop matching there, because the registry stored/mcp.canonicalTargetUri('https://a.example/p?')returnshttps://a.example/p, but spec step 7 keeps a bare trailing?. That's an edge case, to be reported upstream inadcp-client.No changeset: server/app code only.
Test plan
agent URL matchingcases inserver/tests/unit/validator.test.ts(fail on the old implementation, pass now)mcp-tools-viewer-context,addie-directory-tools-viewer-context,mcp-enrich-brand-context,check-publisher-authorization-tool)npm run typecheckaddie/fixed-trace-diagnostic-cliandaddie/fixed-trace-dormant-dispatch, which also fail on unmodifiedmainin a git worktree with a symlinkednode_modules(they assert the realpath). The commit used--no-verifyfor that reason; CI is the gate.🤖 Generated with Claude Code