Commit 1cc7e20
feat(creative): custom format_kind + format_shape registry + format_schema URI+digest
Reverses the wrong call from #3666 (which recommended ext-as-vehicle
for novel shapes). ext-only puts interesting structure in a free-form
bag with no schema, no required fields, no defined semantics — buyer
agents can see the blob but can't interpret it reliably, regressing
to human-in-the-loop. That breaks the load-bearing claim of v2:
buyer agents reason structurally without per-seller integration code.
Adds:
- canonical-format-kind.json: 'custom' added to the enum (12 values).
Description documents that custom requires format_shape +
format_schema and points at the promotion queue (#3666).
- New /schemas/core/format-shape-vocabulary.json registry. Same
pattern as asset-group-vocabulary.json: governance-light entries,
non-canonical values valid (soft-warn), promotion to canonical
happens when 2+ adopters land + 90 days. Seeded with 9 entries:
multi_placement_takeover, roadblock, branded_content,
cross_screen_sponsorship, sponsorship_lockup, newsletter_sponsorship,
ar_lens, playable, live_event_sponsorship. Each entry carries
description, typical_use, tracking_model_hint, promotion_status.
- product-format-declaration.json: format_shape (string, references
registry) and format_schema (URI+digest, $ref to
platform-extension-ref.json) fields. allOf / if/then enforces:
when format_kind=custom, format_shape AND format_schema are
required; when format_kind=anything-else, both MUST be absent.
New 'Custom Format Declaration' branch in the discriminator oneOf.
Worked example added (NYTimes Homepage Takeover narrowing
multi_placement_takeover with format_schema URI+digest).
Buyer agents fetch the schema by uri@digest (immutable per digest,
aggressive caching, same mechanic as platform_extensions),
validate params and slots against the fetched schema, reason
about manifests structurally. No per-seller integration code.
ext stays for genuinely experimental shapes that don't even fit a
format_shape registry entry — but that's the rare case. The
dominant path for novel shapes is custom + format_shape +
format_schema.
Doc additions:
- v2-overview.mdx: 'Custom formats' section between canonicals and
asset-group-vocabulary. Explains the mechanism, the three required
pieces when format_kind=custom, why custom + format_schema beats
ext for agentic-first protocols, the promotion path to canonical.
Glossary updated with three new entries.
- v2-migration.mdx: 'Shipping a custom format' subsection on
sales-agent server-side considerations. Three steps: pick
format_shape from registry (or PR a new entry), author a JSON
Schema describing your params/slots, host at a stable URI with
immutable caching. Open-ecosystem publishers host on their own
subdomain; walled-garden sellers route through AAO mirror.
Validation: all schema/example/v2-fixture tests green. The
worked-example fixture in the schema validates against the schema
itself (proves the discriminator + allOf if/then constraints work
as intended).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent b3c29bc commit 1cc7e20
5 files changed
Lines changed: 202 additions & 5 deletions
File tree
- docs/creative
- static/schemas/source/core
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
237 | | - | |
238 | | - | |
| 237 | + | |
| 238 | + | |
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
253 | 265 | | |
254 | 266 | | |
255 | 267 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
42 | 45 | | |
43 | 46 | | |
44 | 47 | | |
| |||
121 | 124 | | |
122 | 125 | | |
123 | 126 | | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
124 | 184 | | |
125 | 185 | | |
126 | 186 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
0 commit comments