Repository navigation
Description
Background
adcp#4504 adds a compact form to publisher_properties[] selectors in adagents.json for managed-network scale:
{
"authorization_type": "publisher_properties",
"publisher_properties": [{
"publisher_domains": ["site1.example", "site2.example", "site3.example"],
"selection_type": "by_tag",
"property_tags": ["managed_network"]
}]
}Each publisher_properties[] entry now accepts either publisher_domain (singular string, existing) or publisher_domains (plural array, new), mutually exclusive. Semantics: the plural form is exactly equivalent to repeating the entry once per listed domain.
The spec PR also extends the managerdomain fallback safety rule so that every domain in publisher_domains[] counts as explicit scoping for that publisher.
Work for this SDK
Anywhere this codebase resolves or indexes publisher_properties[*].publisher_domain, it MUST also resolve publisher_properties[*].publisher_domains[] as the same selector fanned out per listed domain. Specifically:
- Parse / type model: accept either
publisher_domainorpublisher_domainson eachpublisher_properties[]entry. Reject entries that have both or neither (mirror the JSON Schema XOR). - Authorization index / lookup: when building per-publisher indices from an
adagents.json, an entry withpublisher_domains: [a, b, c]contributes the same selector predicate under all three publisher keys. managerdomainfallback validation: explicit-publisher-scoping checks must succeed when the source publisher domain appears anywhere inpublisher_properties[].publisher_domainorpublisher_properties[].publisher_domains[]. The fallback rule MUST still fail closed when the source publisher only appears under top-levelproperties[]or is reached by resolving a top-levelproperty_tagsselector throughproperties[].- Tests: add coverage for the compact form (single entry → N publisher matches) and for the XOR validation (both fields present, neither present).
Not in scope
Round-tripping: SDKs MAY choose to preserve the compact form on read/write or normalize to singular. Either is conformant. Recommend preserve-as-authored for diff stability.
Reference
- Spec PR: feat(adagents): managed-network scale — 20 MB authoritative cap + publisher_domains[] compact form adcp#4504
- Schema:
static/schemas/source/core/publisher-property-selector.json - Docs:
docs/governance/property/adagents.mdx(Pattern 4 + fallback safety rules)
Activity
bokelley commentedon May 14, 2026
Scope expanded — PR adcontextprotocol/adcp#4504 commit
9a9a91971cAfter expert-review pass, the spec PR now adds two more things SDKs need to honor on top of the original
publisher_domains[]work:1.
revoked_publisher_domains[](new top-level field onadagents.json)Top-level array on the inline variant:
{ "revoked_publisher_domains": [ { "publisher_domain": "site1.example", "revoked_at": "2026-05-01T00:00:00Z", "reason": "relationship_ended" } ] }SDK work:
publisher_domain+revoked_at(RFC 3339 / ISO 8601) and optionalreason(enum:relationship_ended|compliance_violation|publisher_request|other).revoked_publisher_domains[]is no-longer-authorized regardless of where else it appears in the file (publisher_properties[].publisher_domain/.publisher_domains[]/ top-levelproperties[].publisher_domain). Revocation precedence — apply after building the per-publisher index, before serving queries.revoked_at(which can be in the past for catch-up entries).2. Per-
authorized_agents[]last_updated(new optional field)Each item in
authorized_agents[]can now carry an optionallast_updatedtimestamp, independent of the file-level one. Advisory — enables partial-walk indexing for validators that key by adoption time. Type model addition only; treat as optional date-time.3. Conditional-refresh on the fetch path (SHOULD)
When the SDK fetches an
authoritative_location-pointed authoritative file:If-None-Match(preferred) orIf-Modified-Sinceheaders from the cached response'sETag/Last-Modified.304 Not ModifiedMUST be treated as a successful cache-lifetime refresh — same effect as a 200 body fetch for the 7-day cache window.4. Two-tier size cap
/.well-known/adagents.json: keep the 5 MB SSRF body cap.authoritative_locationindirection): recommended 20 MB cap.The SDK MUST pick the cap based on which hop it's on.
Reference
static/schemas/source/adagents.json(top-levelrevoked_publisher_domains+ per-entrylast_updated) andstatic/schemas/source/core/publisher-property-selector.json(thepublisher_domains[]compact form,by_idrestriction)docs/governance/property/managed-networks.mdx(security/fetch semantics),docs/governance/property/adagents.mdx(Pattern 4 + fallback safety rules)feat(validation): validate_publisher_properties_item accepts Pydantic…