Repository navigation
Description
Context
ADCP #3690 security.mdx step 7 specifies the identity.key_origins consistency check is mandatory when the JWKS source was the operator brand.json and skipped for the specific (agent, purpose, role) tuple whose JWKS source was a publisher adagents.json signing_keys pin.
The check primitive landed in #775 as adcp.signing.check_key_origin_consistency(). It takes no source parameter — the docstring puts the carve-out on the caller. That's correct for the primitive, but Stage 5 needs the actual plumbing so the verifier integration can branch on the source.
What's missing
BrandJsonJwksResolver (and the upcoming verifier integration) need to expose which side of the chain resolved a given kid → JWK pair:
- brand_json source — the JWKS was fetched via brand.json's
agents[].jwks_uri. Consistency check applies. - publisher_pin source — the JWKS was fetched via a publisher's
adagents.json signing_keyspin. Consistency check must be skipped for this tuple, otherwise legitimate publisher-pinned keys are wrongly rejected.
Acceptance
BrandJsonJwksResolver(or an adjacent type) exposes the source per resolved key — proposed shape: a newResolvedKeydataclass returned alongside or in place of the bare JWK dict, with asource: Literal['brand_json', 'publisher_pin']discriminant.- The verifier integration in Stage 5 reads
sourceand gates the call tocheck_key_origin_consistency: call it onbrand_json, skip onpublisher_pin. - Conformance test exercises both sources end-to-end — brand-json-sourced mismatch raises
request_signature_key_origin_mismatch, publisher-pin-sourced mismatch does NOT raise (since the check is skipped).
Why now (Stage 5, not later)
Without this, Stage 5's wire-up either (a) calls the check unconditionally and rejects legitimate publisher-pinned keys, or (b) silently never calls the check, leaving the operator-brand-json side unenforced. Either way breaks #3690 conformance.
References
- ADCP #3690
docs/building/by-layer/L1/security.mdxstep 7 - adcp-client-python feat(signing): key_origins check + brand.json chain error codes (#350 stage 4) #775 (key_origins helper landed here)
- adcp-client-python feat(signing): BrandAuthorizationResolver (Tier 3, #350 stages 1-3) #770 (BrandAuthorizationResolver landed here; same chain)
- Issue feat(signing): BrandAuthorizationResolver — per-brand agent authorization (Tier 3, gated on ADCP #3690) #350 (the parent v3-identity roadmap; this is Stage 5 scope)
🤖 Generated with Claude Code
Activity
bokelley commentedon May 21, 2026
Triage
Classification: Feature request
Bucket(s): signing
Status: deferred
What the experts said:
Blocked-on pattern is unambiguous — skipped expert consultation to avoid wasted cycles on a dependency-gated issue.
My take: PR #775 (Stage 4) is still open; it introduces both
check_key_origin_consistency()and theBrandJsonJwksResolverchain that this issue'sResolvedKeydataclass must compose with. Executing #776 before #775 merges would build on a moving target or conflict onbrand_jwks.py. See fold suggestion on #775 — item 1 (ResolvedKeydataclass +sourcediscriminant) may fold cleanly into #775 before it merges, since it's the data shapecheck_key_origin_consistency()will need at the call site.Blocked-on: #775 — resurfaces on merge
Triaged by Claude Code. Session: https://claude.ai/code/session_01ES8anyj4MSMcq1n5TAL9RY
Generated by Claude Code
feat(decisioning): Tier 3 brand-authz dispatch gate (#350 stage 5)
feat(decisioning): Tier 3 brand-authz dispatch gate (#350 stage 5, cl…
feat(signing): plumb identity.key_origins check through verifier (closes
fix(signing): address #789 review — CVE pin + verify_from_agent_url w…
feat(signing): verifier key_origins check + IDNA-2008 canonicalization (