Repository navigation
Conversation
…on-unit.json Item 4 of #7478. core/duration.json#/properties/unit and get_adcp_capabilities media_buy.frequency_capping.supported_window_units items now reference the shared enum instead of an inline copy / untyped string. The enum-drift lint allowlists the intentional maximum_age narrowing (evidence age excludes "campaign") and the MCP schema-analysis pinned counts move 622/168/117 -> 629/169/118 for the one added shared definition. Depends on adcp-client-python updating src/adcp/types/aliases.py: it imports `Unit as DurationUnit` from generated_poc.core.duration, and this change generates that enum as enums/duration_unit instead. Co-Authored-By: Claude Fable 5.1 <[email protected]>
b41c6dc to
64a7312
Compare
|
Refreshed this PR onto current The refresh also folds in the newer structured frequency-cap schemas: Validation completed locally:
The generated compliance projection initially crossed its 1.25 MB parity ceiling by 388 bytes because the shared enum carried verbose annotations at every expanded reference. I kept the enum description concise; the rebuilt projection is 1,249,953 bytes and the safety gate passes. Keeping this draft until the Python compatibility prerequisite, adcontextprotocol/adcp-client-python#1213, actually merges. That PR is approved, current, and fully green with auto-merge armed, but GitHub still reports its branch-protection state as blocked. |
Item 4 of #7478, split out of #7480.
Summary
Defines the duration unit vocabulary once in
enums/duration-unit.json.core/duration.json#/properties/unit(previously an inline enum) andget_adcp_capabilitiesmedia_buy.frequency_capping.supported_window_unitsitems (previously an untypedstring) now reference it, so the value type and the capability that advertises it cannot drift. Accepted values are unchanged;supported_window_unitsnow rejects strings outside the vocabulary its description already mandated.scripts/lint-schema-enum-drift.cjsallowlists the intentionalmaximum_agenarrowing in the two audience-evidence schemas (a campaign-relative evidence age is meaningless, socampaignis excluded on purpose).tests/mcp-schema-analysis.test.cjspinned counts move 622/168/117 → 629/169/118 for the one added shared definition.static/schemas/source/index.jsonregisters the enum next toreach-unit.Blocked on
adcp-client-pythonThe "Generate Python SDK" job in
validate-schema-bundle.ymlfails on this branch withImportError: cannot import name 'Unit' from 'adcp.types.generated_poc.core.duration'.src/adcp/types/aliases.py(line ~2109) importsUnit as DurationUnitfrom the inline enum this PR removes; the shared enum generates asadcp.types.generated_poc.enums.duration_unit.DurationUnit.tests/test_collision_aliases.pyalso lists("DurationUnit", "core.duration", "Unit"). The SDK needs to point both at the new module (or accept either) before this can merge. Opened as a draft until that lands.Coordination with #7438
mesa-verdeaddscore/frequency-cap-duration-unit.jsonwith the same five values and bumps the same pinned counts intests/mcp-schema-analysis.test.cjs. Whichever lands second should referenceenums/duration-unit.jsonand re-pin.Testing
node scripts/lint-schema-enum-drift.cjs,node tests/schema-validation.test.cjs,node --test tests/mcp-schema-analysis.test.cjs tests/mcp-schema-projection.test.cjs,npm run test:openapi,npm run test:sdk-response-conformance,npm run test:json-schema,npm run typecheck,node scripts/check-changeset-protocol-scope.cjs origin/main,npx @changesets/cli status --since=origin/main: all pass locally.🤖 Generated with Claude Code
Open workspace in Conductor
Draft disposition — 2026-10-09
This draft is retained for the stated workstream. Continue on this existing branch; no parallel PR is needed. This disposition does not waive CI, review, migration, or release gates.