Skip to content

chore(version): add 3.0.6 to COMPATIBLE_ADCP_VERSIONS + bump schema citations - #1526

Merged
bokelley merged 2 commits into
mainfrom
bokelley/bump-schema-citations
May 3, 2026
Merged

bokelley merged 2 commits into
mainfrom
bokelley/bump-schema-citations

Conversation

@bokelley

@bokelley bokelley commented May 3, 2026

Copy link
Copy Markdown
Contributor

Summary

Code-reviewer flagged this in PR #1519 as an "optional follow-up": cross-cutting.md and SHAPE-GOTCHAS §7 cite schemas/cache/3.0.5/... while the repo pinned 3.0.6 today (PR #1510). Investigating turned up a real gap — PR #1510 bumped ADCP_VERSION to 3.0.6 but didn't add 3.0.6 to the COMPATIBLE_ADCP_VERSIONS literal union in scripts/sync-version.ts.

What changed

Real fix: scripts/sync-version.ts — appended '3.0.6' to COMPATIBLE_ADCP_VERSIONS. Without this, callers passing { adcpVersion: '3.0.6' } fell through the literal-union autocomplete to the (string & {}) escape hatch — still accepted at runtime but no editor completion or compile-time signal. src/lib/version.ts regenerated via npm run sync-version.

Citation bumps (3.0.5 → 3.0.6):

  • skills/cross-cutting.md § Spec reference — schemas/cache/3.0.5/bundled/<protocol>/
  • skills/SHAPE-GOTCHAS.md §7 — schemas/cache/3.0.5/enums/signal-catalog-type.json
  • examples/hello_seller_adapter_social.ts — /schemas/3.0.5/core/audience.json comment
  • src/lib/server/decisioning/runtime/from-platform.ts — schemas/cache/3.0.5/core/account-ref.json comment

docs/migration-6.6-to-6.7.md 3.0.5 references are historical (the migration target was 3.0.5) and stay unchanged.

Spec follow-ups tracked

While doing this sweep, filed two local tracking issues for the upstream spec gaps from earlier PRs:

Both upstream issues remain OPEN. Each local tracking issue lists the SDK call sites that need updating when the upstream lands.

Test plan

  • npm run compliance:fork-matrix — 23/23 in ~12s
  • npm run typecheck clean
  • npm run format:check clean

Adopter impact

Pure additive at wire and type level. COMPATIBLE_ADCP_VERSIONS extends backward compatibility — no existing strings change. Citation bumps are docs-only.

🤖 Generated with Claude Code

bokelley and others added 2 commits May 3, 2026 18:38
…3.0.6 schema citations

PR #1510 bumped ADCP_VERSION to 3.0.6 but didn't add 3.0.6 to the
COMPATIBLE_ADCP_VERSIONS literal union in scripts/sync-version.ts. Callers
passing { adcpVersion: '3.0.6' } fell through to the (string & {}) escape
hatch — still accepted at runtime, but no editor completion. Closes the gap
by appending '3.0.6' to the list; src/lib/version.ts regenerated via
npm run sync-version.

Plus 4 schema-citation bumps so user-facing surfaces line up with the pinned
version:
- skills/cross-cutting.md (§ Spec reference)
- skills/SHAPE-GOTCHAS.md (§7 signal_type)
- examples/hello_seller_adapter_social.ts (audience.json comment)
- src/lib/server/decisioning/runtime/from-platform.ts (account-ref.json comment)

docs/migration-6.6-to-6.7.md 3.0.5 references are historical (the migration
target was 3.0.5) and stay unchanged.

Local tracking issues filed for the upstream spec gaps the team is waiting on:
- adcp-client#1523 (waits on adcp#4015 — audio variant phase for
  creative_template storyboard)
- adcp-client#1525 (waits on adcp#4021 — output_only flag on format.assets[])

Both upstream issues remain OPEN.

Validated: fork-matrix 23/23, typecheck + format clean. Pure additive at wire
and type level — COMPATIBLE_ADCP_VERSIONS extends backward compat, no existing
strings change.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
… schema

code-reviewer caught a pre-existing broken schema citation in
examples/hello_seller_adapter_social.ts:188. The comment cited
/schemas/3.0.6/core/audience.json — a file that has never existed in either
3.0.5 or 3.0.6. The surrounding prose describes SyncAudiencesRow's
matched_count + effective_match_rate fields, which actually live at
schemas/cache/3.0.6/media-buy/sync-audiences-response.json. Repointed.

Pure comment-only fix.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@bokelley

bokelley commented May 3, 2026

Copy link
Copy Markdown
Contributor Author

Expert review summary (one round, one reviewer)

Verdict: ship. No blockers.

  • code-reviewer: clean on the version-list fix, generated version.ts, three of four citation bumps, and the migration-doc preserve. One concern: the examples/hello_seller_adapter_social.ts comment cited /schemas/3.0.6/core/audience.json — but that file has never existed (not in 3.0.5 either; PR was bumping a pre-existing broken citation). Repointed to /schemas/3.0.6/media-buy/sync-audiences-response.json (where matched_count + effective_match_rate actually live) in commit 59d37160. Verified by grep.

Final state

  • fork-matrix 23/23 still green
  • typecheck + format clean
  • All four citations now point at files that exist in schemas/cache/3.0.6/
  • COMPATIBLE_ADCP_VERSIONS in version.ts includes '3.0.6' so callers get autocomplete on the new version

@bokelley

bokelley commented May 3, 2026

Copy link
Copy Markdown
Contributor Author

Acknowledged — thanks for the review summary. All citations verified against schemas/cache/3.0.6/, fork-matrix green, and the examples/hello_seller_adapter_social.ts citation corrected to sync-audiences-response.json in 59d37160. Ready for merge when you are.


Generated by Claude Code

@bokelley

bokelley commented May 3, 2026

Copy link
Copy Markdown
Contributor Author

Noted — thanks for the follow-up commit and confirming the fork-matrix is green. No further action from triage.


Generated by Claude Code

@bokelley

bokelley commented May 3, 2026

Copy link
Copy Markdown
Contributor Author

Acknowledged — ready for review when you are.


Generated by Claude Code

@bokelley
bokelley merged commit 8361c7e into main May 3, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant