Repository navigation
docs(building): SDK stack reference + decision page + version-adaptation + hand-rolled migration - #3980
Merged
Conversation
…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]>
3 tasks
…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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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: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/sdk6.7.0 GA, Pythonadcp4.x in flight,adcp-goin 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:adcpVersionpinning + bundle-gated runtime acceptance@adcp/sdk/server/legacy/v5and equivalents)supported_versionsdeclaration withVERSION_UNSUPPORTEDenvelope and typed pre-flight throwdocs/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.jsonnavigation: 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
protocol-overview.mdlink, the "no single SDK" / "95% start at L4" tone tension. All addressed.Note on prior PR
A TypeScript-flavored version of these docs was merged to
adcontextprotocol/adcp-client#1437earlier 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
/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.jsonnav renders the four new entries in the Building section🤖 Generated with Claude Code