Skip to content

training: 3.3 GA content refresh - #9237

Open
bokelley wants to merge 7 commits into
mainfrom
docs/3-3-ga-training-audit
Open

bokelley wants to merge 7 commits into
mainfrom
docs/3-3-ga-training-audit

Conversation

@bokelley

@bokelley bokelley commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Refreshes the Academy for AdCP 3.3 GA. It corrects lessons and criteria that teach superseded behaviour, adds the 3.3 material learners need, and makes two learner-reported fixes. It changes curriculum content in four new migrations, plus a two-line Addie fix. The full audit, including what this PR leaves for later and the open questions, is in the GA burn-down artifact training-3-3-audit.md.

Draft: Brian reviews before anything merges.

What's in it (one commit each)

  1. A1 opens from where the learner is (639). Every learner starts with A1, and Sage opened it by asking what's wrong with programmatic, which loses anyone outside advertising (raised by Christy Tanner). A new first concept has Sage ask in plain words what the learner does. Practitioners keep the "what's broken" opener. Everyone else starts from what advertising pays for, and "programmatic" comes in only when it helps. The demo concept no longer says to start with a demo, and "built on MCP" becomes "runs over MCP or A2A".
  2. S1 points at the sandbox fixtures (640), the four items from the fix(sandbox): S1 certification test agent missing exercise fixtures and capability support #9087 / fix(training-agent): unblock the S1 sandbox demonstrations (keyword buys, proposals, breakdowns, broadcast windows) #9216 notes:
    • it names the broadcast buy seed_mb_broadcast_q4;
    • controller calls need sandbox: true;
    • keyword buys need a search or retail-media product;
    • s1_ex1_sc1 and the "Refinement protocol" concept now teach refine_proposals before the buy and update_media_buy after it.
  3. 3.3 GA refresh (641):
    • version negotiation (A2, B1, C1) teaches adcp_version / supported_versions, the 3.3 major-only rule, and the VERSION_UNSUPPORTED retry;
    • accounts (A3, B3, C1, D1, S1, S7) teach the account_id returned by sync_accounts, and that discovery never provisions;
    • buying (A2, A3, C1) names the compact lifecycle, and C1's non-existent package tool becomes request_proposals;
    • campaign governance (D2, S4) drops the removed binding parameter, the non-existent escalated verdict, and governance_agents on sync_accounts;
    • D4 grades recovery, not recovery_type;
    • A2B adds expected_confirmation_at, and S2's tracker-slot criterion follows the 3.3 rule;
    • new 3.3 key concepts, taught and not graded, in S1, B3, D1, S2, S3, S4, S6, and S7.
  4. Storefront and inventory roles (642), non-normative, from RFC RFC: two roles for a sales agent, storefront and inventory #8993 for 4.0. The concept goes in B1, with a discussion prompt, and gets a two-sentence mention in A3. B1's "your storefront" catalog wording changes so the term isn't overloaded. It isn't graded, and it doesn't teach a role field, capability, or specialism as if one exists.
  5. Addie: prerequisite redirects don't throw on a key concept that has only an explanation. C2's "Relationship types" crashed the C1 → C2 redirect in start_certification_module and start_certification_exam.

Safety

  • Criterion IDs are unchanged, and no success criterion is added. Checkpoints store IDs, and completion requires every current ID, so recorded verification stays valid and nobody mid-module is blocked.
  • Historical migrations are untouched. Each new migration raises if its anchor text is missing and is a no-op on a second run.

Merge order

Verification

  • Applied every migration on main to a fresh Postgres 16, then 639–642, each twice. Each applies cleanly and the second run changes nothing. The 620–638 GCS-reporting migrations need a role that the throwaway DB lacked; they're unrelated.
  • Diffed every module before and after: 23 module fields changed, and every module's success-criterion ID list is identical.
  • Tests:
    • server/tests/integration/curriculum-3-3-ga-refresh-migrations.test.ts (22 passing) runs the shipped 639–642 SQL in a throwaway schema and checks:
      • each module's criterion-ID list is unchanged;
      • every rewrite, append and replacement lands as written;
      • other keys on a rewritten concept are preserved;
      • a second run is a no-op;
      • a missing anchor raises;
      • the helpers are dropped.
    • server/tests/unit/certification-specialist-catalog.test.ts (+2, 4 passing): the prerequisite redirect in both handlers carries an explanation-only concept without throwing.
    • The test-writer flagged that jsonb_agg over an empty array would null a column. The last commit guards both sites with COALESCE.
    • Typecheck and the pre-push lints passed.

🤖 Generated with Claude Code

bokelley and others added 7 commits November 26, 2026 14:07
Every learner starts with A1, and Sage opened it by asking what the learner
thinks is wrong with programmatic. Learners outside advertising (policy,
government, product, law) don't know what programmatic is, and the question
loses them in the first turn. Christy Tanner raised it after watching
non-industry people meet it.

Migration 639 adds a first A1 concept, "Start where the learner is": ask in
plain words what the learner does before using any industry term; keep the
"what's broken" opener for ad-industry practitioners; for everyone else,
start with what advertising pays for, then why agents buying and selling it
raises real questions, then where AdCP fits, and introduce "programmatic"
only when it helps. It points non-builders once to the free Decision-makers
track.

The demonstration concept no longer says to start with a demo (tools never
run on the first turn), and the protocol-hierarchy concept says AdCP runs
over MCP or A2A instead of "built on MCP". Teaching notes only; criterion
IDs, objectives, and assessment criteria are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… protocol"

The S1 sandbox fixes in #9216 (closes #9087) seed a broadcast buy, accept
keyword buys on the search and retail-media offers, and explain the
sandbox-account refusal on comply_test_controller, but nothing told the
learner or Sage where to find them. Migration 640:

- names seed_mb_broadcast_q4 and the get_media_buys status_filter that finds
  it, for s1_ex1_sc_broadcast_delivery_windows;
- tells the reporting lab that every controller call needs sandbox: true;
- tells the keyword exercise to use a search or retail-media product, since
  display, video, and audio correctly refuse keyword_targets;
- rewrites s1_ex1_sc1, the S1 "Refinement protocol" concept, and its
  objective for refine_proposals before the buy and update_media_buy after
  it. "Refinement protocol" was the 3.0 get_products refine[] flow.

The first three name fixtures that exist only once #9216 deploys, so this
ships with or after it. Criterion IDs are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Migration 641 corrects content that teaches superseded behaviour and adds
the 3.3 material learners need, without adding success criteria:

- Version negotiation (A2, B1, C1 criteria) taught only adcp_major_version.
  They now teach adcp_version pins, supported_versions and the echo, the
  3.3 rule that a major-only request is served the oldest release, unpinned
  discovery, and the VERSION_UNSUPPORTED retry.
- Accounts (A3, B3, C1, D1, S1, S7) taught the {brand, operator} natural key
  as the reference on every call. They now teach the account_id returned by
  sync_accounts, that discovery never provisions, and that the natural key
  after provisioning is deprecated.
- Buying (A2, A3, C1) taught get_products/create_media_buy as the only path.
  A2 gains a "Two ways to buy" note on the compact lifecycle; A3 and C1 teach
  request_proposals, refine_proposals, accept_proposal, and buy_products. C1's
  demo and sandbox action named a "package" tool that doesn't exist; it is
  now request_proposals.
- Campaign governance (D2, S4) taught a check_governance "binding" parameter,
  an "escalated" verdict, and governance_agents on sync_accounts. They now
  teach the inferred intent/execution check, the three verdicts, and
  sync_governance.
- D4 graded a recovery_type field; the field is recovery. A2B gains
  expected_confirmation_at. S2's tracker-slot criterion now reflects the 3.3
  "no slot, no claim" rule.
- New 3.3 key concepts, taught and not graded: S1 (scheduled and human-gated
  buying), B3 (delivery reporting), D1 (server rules), S2 (creative
  assignment), S3 (signals and audiences), S4 (governance), S6 (agent
  identity and bounds), S7 (identity rules).

Criterion IDs are unchanged, so verification already recorded stays valid.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
RFC #8993 (4.0) names two jobs a sales agent can do: a storefront agent
faces buyers, proposes, negotiates, and packages, and books through
inventory agents over AdCP; an inventory agent holds the catalogue and
avails, executes, and reports. Proposal work is a storefront capability,
not a third kind of agent.

Migration 642 adds the concept to B1, after product catalog design, with a
discussion prompt, and names it at survey depth in A3. Both say it is
non-normative in 3.3 and being standardized for 4.0, and tell Sage not to
teach a role field, capability, or specialism as if it exists. B1 called the
catalog "your storefront" and titled its exercise "Build your storefront";
both now use catalog wording so the term isn't overloaded. Not graded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…redirects

start_certification_module and start_certification_exam build a concept
summary for prerequisite redirects from c.teaching_notes.substring(...).
C2's "Relationship types" concept carries only an explanation, so a learner
who opens C2 before finishing C1 hit a TypeError instead of the redirect.
Both sites now fall back to the explanation, matching how the lesson plan is
rendered elsewhere.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…eq redirect

Integration test runs the shipped SQL against anchor-only module rows: criterion IDs unchanged, rewrites and appends land, other concept keys preserved, idempotent, raises on missing anchors, helpers dropped. Unit tests cover start_certification_module and start_certification_exam redirects with an explanation-only key concept.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rcises

jsonb_agg over zero rows is NULL, and jsonb_set with a NULL value returns
NULL, so an empty demo_scenarios or exercise_definitions array would have
nulled C1's lesson plan or B1's exercises. Neither array is empty today;
COALESCE to '[]' so the rebuild can't erase a column.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ladon verdict: Approve

Approve — curriculum-content refresh (migrations 639-642) plus a two-line Addie runtime fix; reviewer found no blocking issues.

What I checked:

  • No static/schemas/source/**, docs/reference/**, or dist/** changes — no protocol surface touched, so no changeset owed (migration/Addie-only, correctly out-of-scope per repo rules).
  • Addie fix (certification-tools.ts:1954/2480) addresses a real runtime crash: teaching_notes.substring() on an explanation-only concept (C2) now guarded with (c.teaching_notes || c.explanation || ''), matching safe sites and compiling against the optional-typed certification-db.ts:56. This is a fix, not a regression.
  • Migrations are production-facing (run on startup): helpers fail-closed (anchor misses RAISE), idempotent, dropped at end; jsonb_agg sites COALESCE-wrapped or guarded. Test asserts seeded anchors, criterion-ID preservation, idempotency, helper-drop.
  • No self-report cert REST route introduced (would be critical) — certification stays Addie-tool-gated.

Non-blocking (Low, not surfaced as blocking): 642:914-918 catalog rewording uses bare replace() without an anchor check, silently no-ops on passage drift. Worth a follow-up but Low. Integration test is skipIf(!DATABASE_URL) — confirm CI sets it.

Gate posture: high_risk is true, but all migration matches are (added) new files (normal scaffolding) and the single (modified) Addie file has no medium-or-higher finding. gated_paths is false. No no-auto-approve team match. No critical/high/medium findings → decision table falls through to row 9.

This branch has not been deployed

No deployments
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