Repository navigation
Description
Why
Both specs/catalog-change-feed.md (landed in PR #4767) and specs/registry-change-feed.md (shipped) define event payload shapes in markdown prose + examples only — there is no static/schemas/source/core/catalog-event.json or per-event-type schema for product.priced, signal.priced, *.removed, catalog.bulk_change, applies_to, removal_reason, previous_pricing_option_ids, etc.
Surfaced during second-pass review of PR #4767. Quote: "the capability stanza enumerates event types but no schema exists. Without a schema, conformance runs can't validate event payloads and removal_reason is unenforced."
The catalog feed and registry feed share this gap. Spec'ing them together keeps the two surfaces parallel.
Scope
Catalog feed (PR #4767 surface)
Define a discriminated core/catalog-event.json keyed on event_type:
product.created,product.updated,product.priced,product.removedsignal.created,signal.updated,signal.priced,signal.removedcatalog.bulk_change
Each event payload needs:
event_id(UUID v7),event_type,entity_type,entity_id,created_at- Type-specific payload union, validating fields like:
applies_to: { scope: \"public\" | \"account\", account_ids?: string[] }— discriminator onscoperemoval_reasonenum:withdrawn/cancellation/expired/depublication/policy_takedownprevious_pricing_option_ids: string[]changed_fields: string[]effective_at: string (date-time)- For
*.updated/*.priced: full or partial entity payload - For
catalog.bulk_change:summary,affected_entity_types[],affected_count,recommendation
Conformance: response from GET /catalog/events validates against the schema; SDKs (@adcp/client's CatalogSync) consume the schema rather than parsing prose.
Registry feed (existing, parallel work)
Same treatment for the events in specs/registry-change-feed.md:
property.created,property.updated,property.merged,property.stale,property.reactivatedagent.discovered,agent.removed,agent.profile_updated,agent.compliance_changedpublisher.adagents_changedauthorization.granted,authorization.revoked
The registry feed's agent.compliance_changed and authorization.granted payloads are the most field-heavy (tracks, storyboards, full authorization scoping model) — those are the priority for schema treatment because consumers (TMP routers, RegistrySync clients) make routing decisions off them.
Acceptance
core/catalog-event.json+ per-event-type variants live instatic/schemas/source/core/core/registry-event.json+ per-event-type variants dittoGET /catalog/eventsandGET /api/registry/feedresponses cite the event schemas- Conformance assertion: events in storyboard fixtures validate against schemas
- SDK type generation picks up the new schemas (TS first, then Go and Python)
Dependencies
- PR feat(catalog-sync): v3.1 catalog sync cluster (#4761, #4762, #4763) #4767 (catalog change-feed spec) merged
- Catalog-sync storyboards (Catalog sync storyboards + scenarios (wholesale, conditional fetch, change feed) #4787) — schema validation lands as a storyboard assertion
- Catalog-sync SDK (SDK: CatalogSync in @adcp/client (TS, Go, Python) + webhook delivery worker #4789) — consumes the schemas for typed event handling
Related
- PR feat(catalog-sync): v3.1 catalog sync cluster (#4761, #4762, #4763) #4767 — catalog feed spec landing
- Catalog sync storyboards + scenarios (wholesale, conditional fetch, change feed) #4787 — storyboards
- Training agent: implement catalog sync (wholesale + conditional fetch + change feed) #4788 — training agent
- SDK: CatalogSync in @adcp/client (TS, Go, Python) + webhook delivery worker #4789 — SDK
- Registry change feed: webhook anti-replay (timestamp + delivery sequence in HMAC) #4772 — registry-feed anti-replay (security parity)
Activity
feat(catalog-sync): JSON Schema for catalog feed event payload
bokelley commentedon May 19, 2026
Triage
Classification: Feature request (schema addition)
Bucket(s): spec / protocol, registry / discovery
Status: deferred
Blocked-on: #4767 — resurfaces on merge
Triaged by Claude Code. Session: https://claude.ai/code/session_01DZRgqy3RL17LepL6pBaSqo
Generated by Claude Code
feat(catalog-sync): v3.1 catalog sync cluster (#4761, #4762, #4763)
bokelley commentedon May 27, 2026
Status update after the v3.1 catalog-sync merge:
mainbystatic/schemas/source/core/wholesale-feed-event.jsonplusstatic/schemas/source/core/wholesale-feed-webhook.json. Those schemas coverproduct.*,signal.*,wholesale_feed.bulk_change,applies_to,removal_reason,previous_pricing_option_ids, and the enclosing account-level webhook payload.specs/registry-change-feed.mdstill definesproperty.*,agent.*,publisher.adagents_changed,authorization.*, andagent.compliance_changedpayloads in prose/examples, but there is no corresponding registry feed event schema understatic/schemas/source/.Leaving this open, narrowed to the registry payload schema work. The title has been updated accordingly.
[-]JSON Schemas for change-feed event payloads (catalog + registry)[/-][+]JSON schemas for registry change-feed event payloads (wholesale feed covered)[/+]bokelley commentedon May 27, 2026
Triage
Classification: Feature request (schema addition)
Bucket(s): spec / protocol, registry / discovery
Status: ready-to-implement
Milestone: 3.1.0
What the experts said:
change_kindplacement (two spec files conflict),authorization_typeenum scope (v1-emitting variants unclear),tracks{}typing strategy inagent.compliance_changed.authorization.granted/authorization.revokedshapes must be validated againstserver/tests/integration/registry-feed-authorization.test.ts— triggers emitagent_url_canonical,override_applied,override_reasonabsent from spec prose examples, so the schema must either include them or setadditionalProperties: true.My take: Both experts confirm the approach and 3.1.0 placement are sound. Three spec questions need @bokelley's answer before authoring to prevent implementer divergence on the most field-heavy payload branches.
Scope:
static/schemas/source/core/registry-event.json— 12-branch discriminated union keyed onevent_type, followingwholesale-feed-event.jsonexactly; noapplies_to(registry events are member-scoped)signing_keysinauthorization.granted→$ref agent-signing-key.json; MUST-NOT-trust language in descriptionminor(new normative schema);mainonly, no 3.0.x cherry-pickThree questions before the PR opens:
change_kindplacement:registry-change-feed.mdputs it insidepayload;registry-authorization-model.mdputs it at the envelope level alongsideevent_type. Which spec is authoritative?authorization_typeenum: 6 variants are defined; which actually emit events in the 3.1.0 implementation — restrict the schema enum to those, or use an open string with a note?tracks{}shape: constrain track names to a defined enum, or keeprecord(string, string)with the enum only on per-track status values (pass/fail/degraded)?Triaged by Claude Code. Session: https://claude.ai/code/session_01RrNmCqxriUK1iFdpFx9KuM
Generated by Claude Code