Skip to content

docs(building): SDK stack reference + decision page + version-adaptation + hand-rolled migration - #3980

Merged
bokelley merged 2 commits into
mainfrom
bokelley/sdk-stack-doc
May 3, 2026
Merged

bokelley merged 2 commits into
mainfrom
bokelley/sdk-stack-doc

Conversation

@bokelley

@bokelley bokelley commented May 3, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds four pages to docs/building/ that orient AdCP adopters around how much of L0–L3 they inherit from an SDK vs. write themselves. Targets two recurring wrong conclusions:

  1. Early implementers who built before the SDKs were mature and have a frozen-in-time picture of "what an SDK does." Most of L3 (lifecycle state machines, idempotency, conformance test surface, RFC 9421, expanded error catalog) was added with AdCP 3.0.
  2. New implementers who treat AdCP as a thin protocol and don't see the L0–L3 scope.

What's in it

Four new pages (all language-agnostic; cross-link into the spec):

  • docs/building/sdk-stack.mdx — L0–L4 layered reference. Each layer: what it does, what's in it, what an SDK at that layer should provide, what you give up by skipping it. Includes the live SDK coverage matrix (@adcp/sdk 6.7.0 GA, Python adcp 4.x in flight, adcp-go in active dev), per-component cost decomposition (~14–18 weeks for one senior eng to mock-mode conformance), and the "what early implementers underestimate" punch list.
  • docs/building/where-to-start.mdx — short decision page. Three questions (caller vs. agent / value-add / pre-existing hand-rolled), recommended path for ~95% of adopters, "what you give up by going lower" cost table.
  • docs/building/version-adaptation.mdx — code-level recipes for the three version-handling mechanisms:
    1. Per-call adcpVersion pinning + bundle-gated runtime acceptance
    2. SDK-major co-existence imports (@adcp/sdk/server/legacy/v5 and equivalents)
    3. Wire-level supported_versions declaration with VERSION_UNSUPPORTED envelope and typed pre-flight throw
  • docs/building/migrate-from-hand-rolled.mdx — eight-section incremental migration guide for adopters with a working agent in production. Inventory step, lowest-risk-first swap order, six conflict modes (idempotency, account-mode, webhook signing, state-machine drift, webhook transport, schema validation), per-step rollback playbook with 2 a.m. on-call recipe, multi-buyer worked example, intermediate conformance states, when-not-to-migrate.

Wiring:

  • docs.json navigation: entries added in both top-level occurrences.
  • docs/building/index.mdx: top-of-page callout to where-to-start; Quick Start now routes hand-rolled adopters and multi-version peers.

Cross-links to existing spec pages: lifecycle, idempotency, error handling, RFC 9421, comply_test_controller, conformance, sandbox, versioning.

Reviewed by

  • DX expert + docs expert in flight: caught signature/semantics errors in code samples, redundant tables, the broken protocol-overview.md link, the "no single SDK" / "95% start at L4" tone tension. All addressed.
  • Three builder personas walked the doc set as their archetype:
    • Early implementer (frozen-at-2.5 SSP eng): EVALUATE → ADOPT (pilot steps 1–2 next sprint). Moved by storyboard-as-backlog framing, no-payload-echo security argument, and the "you can stop at step 6" exit clause.
    • Greenfield builder (skeptical staff eng): ADOPT → ADOPT, conviction tightened. Cost decomposition closed the "trust me" gap.
    • SSP product manager: EVALUATE FURTHER → GO to pilot. Migration guide §5 ("what you can leave hand-rolled") killed the eng-leads-will-say-we-lose-flexibility objection.

Note on prior PR

A TypeScript-flavored version of these docs was merged to adcontextprotocol/adcp-client#1437 earlier today. That was the wrong target — these docs belong on the protocol site where the audience that needs them actually lands. The adcp-client PR can either stand as an SDK-specific implementer's guide or be reverted; this PR is the canonical, language-agnostic version intended for the protocol docs site.

Test plan

  • All four pages render in Mintlify with correct frontmatter
  • Internal links resolve (/docs/building/sdk-stack, /docs/building/where-to-start, /docs/building/version-adaptation, /docs/building/migrate-from-hand-rolled, plus all the spec-page cross-links)
  • docs.json nav renders the four new entries in the Building section
  • No broken anchors in the cost-decomposition / coverage-matrix in-page links

🤖 Generated with Claude Code

…ion guide + hand-rolled migration guide

Adds four pages to docs/building/ that orient AdCP adopters around how much of
L0–L3 they inherit from an SDK vs. write themselves. Targets two recurring
wrong conclusions: early implementers whose mental model of SDK coverage is
frozen at AdCP 2.5, and new implementers who treat AdCP as a thin protocol
without seeing the L3 scope.

- New: docs/building/sdk-stack.mdx — L0–L4 layered reference, what each layer
  should provide, version-adaptation summary, per-component cost decomposition
  (~14–18 weeks), filled SDK coverage matrix (@adcp/sdk 6.7.0 GA, Python
  4.x in flight, Go in dev).
- New: docs/building/where-to-start.mdx — decision page with three questions
  and a "what you give up by going lower" cost table.
- New: docs/building/version-adaptation.mdx — code-level recipes for the three
  mechanisms: per-call adcpVersion pinning, SDK-major co-existence imports,
  wire-level supported_versions + VERSION_UNSUPPORTED + typed pre-flight throw.
- New: docs/building/migrate-from-hand-rolled.mdx — incremental migration path
  with inventory step, lowest-risk-first swap order, six conflict modes,
  per-step rollback playbook + 2 a.m. recipe, multi-buyer worked example,
  intermediate conformance states, when-not-to-migrate.
- docs.json: navigation entries added in both occurrences.
- docs/building/index.mdx: top-of-page callout to where-to-start; Quick Start
  routes for hand-rolled adopters and multi-version peers.

Cross-links into existing spec pages (lifecycle, idempotency, error handling,
security/RFC 9421, comply_test_controller, conformance, sandbox, versioning).

Reviewed by DX and docs experts in flight; persona-tested by three builder
archetypes — verdicts: EVALUATE → ADOPT (pilot), ADOPT (conviction tightened),
EVALUATE FURTHER → GO to pilot.

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

Three persona-driven additions surfaced by walking real-world adopter cases
(Prebid SalesAgent lead engineer; Netflix Ads architect):

- Top-of-page Note clarifying AdCP is the transaction/control plane, not a
  serve-time protocol. Routes serve-time readers to TMP. Prevents
  millisecond-budget framing errors before they start.
- Publisher-scale cost multiplier (~2× to ~3×) called out next to the
  ~14–18 week single-engineer estimate. Names the SRE, security review,
  KMS/HSM, load-testing, and on-call burden that L3 doesn't capture.
- New "Hosted implementations" section listing the AdCP mock-server and
  Prebid SalesAgent. Distinct shape from the SDK coverage matrix:
  hosted = deployable agent you run; SDK = library you import. Acknowledges
  the community implementation that's already live in production.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@bokelley
bokelley merged commit 427d664 into main May 3, 2026
18 checks passed
@bokelley
bokelley deleted the bokelley/sdk-stack-doc branch May 3, 2026 15:26
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