Skip to content

chore(release): move hosted surfaces to AdCP 3.2.1 - #7841

Merged
bokelley merged 6 commits into
mainfrom
chore/hosted-surfaces-3-2-1
Oct 1, 2026
Merged

bokelley merged 6 commits into
mainfrom
chore/hosted-surfaces-3-2-1

Conversation

@bokelley

@bokelley bokelley commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Post-GA hosted surfaces for AdCP 3.2.1 (cut-minor-ga.md Phase 8 step 21, plus the post-publish and post-GA follow-ups in the 3.2 release plan). Based on main after the 3.2.1 Version Packages merge (#7712).

Draft. Do not merge while main is frozen for the v3.2.1 tag. The PR is also gated on two other events, below.

What this PR changes

Item Status in this PR
SUPPORTED_BADGE_VERSIONS = ['3.2', '3.1', '3.0'] Done. Badge fan-out, revocation and selection already iterate this list.
Hosted grading (#7689) Done. hosted-compliance-version.ts now drives its preference and its candidate list from one newest-first line list (3.2, 3.1). Each line is tried as stable, then -rc, then -beta. Canonical (badge) selection grades agents that advertise 3.2 on 3.2.1 and keeps 3.1-only agents on 3.1.24. The unpinned default stays 3.0. A new test loads the 3.2.1 bundle through hostedComplianceOptions.
Selectable badges (verification-profile-db.ts) Done. Derived from SUPPORTED_BADGE_VERSIONS rather than a second hard-coded set.
OpenAPI and compliance_target examples Done. registry-api.ts, schemas/registry.ts, member-tools.ts; static/openapi/registry.yaml regenerated.
BURNDOWN_MILESTONE_TITLE Done. '3.3.0' (milestone 10).
Addie tool descriptions (search_docs, get_doc, validate_json, get_schema, list_schemas, compare_schema_versions) Done. "Omission means stable 3.1; use 3.2 for the current preview" now reads stable 3.2.
Paid smoke-eval admission fingerprint Reissued on purpose, following migration 583. The isolated search_docs/get_doc descriptors snapshot the same text. Aggregate fingerprint 817ab57d… becomes fa331c38…. Private authority, budget ladder and unit pins updated. Migration 614 adds the new fingerprint to the authorization CHECK and replaces the plan-group guard with the new fingerprint and plan-manifest digest (bda91890…). Plans from 582 and 583 stay readable but fail closed on their next dispatch intent. The ledger integration test covers the 583 → 614 upgrade. Tool-surface inventory regenerated; the reviewed profile_contract_sha256 is updated in the budget. 614 is the next free number on main and in open PRs (613 is the GA curriculum migration).
package.json @adcp/sdk → 14.0.0 Not in this PR yet. Stays on 14.0.0-rc.53 until 14.0.0 is on npm. See the follow-up commit below.
Training agent TRAINING_AGENT_CURRENT_ADCP_VERSION = '3.2' In the follow-up commit. The SDK stamps its own bundle label on responses, so this flips together with the SDK. '3.2' is already in TRAINING_AGENT_SUPPORTED_RELEASE_VERSIONS (via TRAINING_AGENT_CURRENT_ADCP_RELEASE). The unpinned default stays '3.0'.
Certification C4 pins In the follow-up commit. certification-module-methodology.test.ts ties the pins to the installed SDK and to TRAINING_AGENT_CURRENT_ADCP_VERSION, so they flip together with the dependency.
Conformance-script defaults In the follow-up commit. The TypeScript default moves from 3.2.0-rc.7 to 3.2.1 (run.sh, probe-sdk-response-conformance.cjs, README), and the TypeScript entry in known-findings.json is re-baselined. The job reruns on any package-lock.json change.
published-versions.json npm_tags += adcp-3.2 In a separate follow-up commit. build-check runs check:published-compliance, which runs npm pack @adcp/sdk@<tag> for every listed tag. Listing adcp-3.2 before the dist-tag exists breaks CI. Apply it after npm dist-tag add @adcp/[email protected] adcp-3.2 (a human step).

Merge gates

  1. v3.2.1 tagged and the freeze lifted.
  2. Docs snapshot PR merged (auto/docs-v3.2.1, which moves the docs.json default to 3.2). The new tool descriptions say "stable 3.2". schema-tools.test.ts now checks each description against DEFAULT_SCHEMA_VERSION, so it fails until that docs default flips.
  3. test: stop assuming the 3.2 line has no stable release #7839 merged. server/tests/unit/hosted-compliance-version.test.ts (the evaluate_agent_quality silently resolves stable version request to a pre-release tag #7356 guard that used 3.2 as its RC-only line) fails on main since Version Packages #7712 merged. This PR leaves that file alone and relies on test: stop assuming the 3.2 line has no stable release #7839.
  4. @adcp/[email protected] on npm → apply follow-up commit A. adcp-3.2 dist-tag set → apply follow-up commit B.

Follow-up commits (prepared on chore/hosted-surfaces-3-2-1-sdk14)

Branch chore/hosted-surfaces-3-2-1-sdk14 is this PR plus two commits. Cherry-pick them onto this branch when their triggers happen:

A. adce5973e chore(deps): move hosted surfaces to @adcp/sdk 14.0.0. Apply once @adcp/[email protected] is on npm:

git cherry-pick adce5973e
npm install --save-exact --ignore-scripts @adcp/[email protected]
git commit --amend --no-edit package-lock.json

What flips in A:

  • package.json: "@adcp/sdk": "14.0.0-rc.53" → "14.0.0". The lockfile is refreshed by the npm install above.
  • server/src/training-agent/types.ts: TRAINING_AGENT_CURRENT_ADCP_VERSION = '3.2'. This makes release-line-echo.ts inert, as designed.
  • server/src/addie/mcp/certification-tools.ts: the C4 build and validate phases use @adcp/[email protected] and the "3.2" wire pin.
  • Conformance: run.sh and probe-sdk-response-conformance.cjs default to 3.2.1. The README is updated. The TypeScript entry in known-findings.json now records SDK 14.0.0 and protocol 3.2.1 with digest dc2cd5fd…. Counts and the single catalog:list_products finding are unchanged.
  • A change the rehearsal found. SDK 14.0.0 bundles only the 3.0, 3.1 and 3.2 GA schemas. Without a fix, an exact "3.2-rc.7" pin on an SDK-dispatched /sales tool (list_products, request_proposals, …) is served as 3.1. The agent would still advertise rc.7, so 4 tenant-smoke tests failed. Fix: the sales platform declares supported_versions, and schema-compat.ts registers the committed dist/schemas/3.2.0-rc.7 bundle next to beta.6. The other tenants (signals, creative, brand, SI, governance) do not declare supported_versions, so an rc.7 pin there still downshifts to 3.1. Say if they should declare it too.
  • Training-agent tests updated for GA release-pin semantics. A "3.2" pin on a route without 3.2 (the legacy signing profiles) now downshifts to 3.1 instead of returning VERSION_UNSUPPORTED. The exact rc.7 pin is still refused there. Please review this as a behavior change.

B. 586d61819 chore(compliance): check the adcp-3.2 npm dist-tag. Adds adcp-3.2 to npm_tags. Apply only after npm dist-tag add @adcp/[email protected] adcp-3.2. Before that, build-check fails because check:published-compliance packs every listed tag.

Verification

Run in a sparse worktree with node_modules symlinked. Without Postgres, the DB integration tests (including the ledger migration test) run only in CI.

On this branch (rc.53), after rebasing onto #7712:

  • npm run typecheck: pass
  • npm run test:addie-tools, npm run test:addie-fixed-traces (76), npm run test:openapi (no diff), npm run test:migrations: pass
  • tests/hosted-compliance-version.test.ts, tests/addie/member-tools.test.ts: 97/97
  • Server unit tests for storyboards, badge fan-out, heartbeat, target discovery, verification profiles, secretariat queues, taxonomy and all of tests/unit/addie: 2883 passed, 17 failed. Of the 17:
    • 14 come from this environment: the sparse checkout lacks some dist/schemas versions, and the tsx-path assertions break because node_modules is symlinked.
    • schema-tools waits on merge gate 2.
    • hosted-compliance-version (unit) waits on merge gate 3.
  • The new admission fingerprint was recomputed from the admission module. The plan-manifest digest was recomputed by mirroring the SQL addie_fixed_trace_component_smoke_plan_manifest_digest; that mirror reproduces 583's c9b2b821… for the old fingerprint.
  • check-changeset-protocol-scope.cjs origin/main: pass

Follow-up A, rehearsed against a packed local @adcp/sdk 14.0.0 preview build (adcp-client chore/adopt-adcp-3.2.1-stable @ 17df9bc5, ADCP_VERSION 3.2.1) installed in a node_modules overlay:

  • npm run typecheck, npm run test:addie-tools: pass
  • Full server unit suite (tests/unit + src): 11649 passed, 13 failed. Every one of the 13 is in the categories above: the sparse-checkout and symlinked node_modules environment, merge gate 2, or merge gate 3. Each also fails on rc.53. Without the rc.7 fix, the same run had 25 failures.
  • TypeScript conformance probe against 3.2.1: the findings and summary match the new baseline. The preview build reports version 14.0.0-rc.53, so the baseline's "14.0.0" is confirmed only once CI runs on the real package.

Not changed

🤖 Generated with Claude Code

bokelley and others added 4 commits October 1, 2026 12:57
- SUPPORTED_BADGE_VERSIONS = ['3.2', '3.1', '3.0'], so canonical hosted
  selection grades agents that advertise 3.2 on the 3.2.1 bundle and
  keeps 3.1-only agents on the latest 3.1 bundle (3.1.24).
- Hosted target preference and candidates are driven by one
  newest-first line list (3.2, 3.1), each tried as stable, rc, then
  beta. The unpinned default stays 3.0.
- Selectable verification badges derive from SUPPORTED_BADGE_VERSIONS
  instead of a separate hard-coded set.
- Registry OpenAPI examples name 3.2 targets and bundles.

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

The search_docs, get_doc, and schema tool version parameters said
"Omission means stable 3.1; use 3.2 for the current preview". They now
say stable 3.2, matching the docs default after the v3.2.1 docs
snapshot. The schema-tools test now ties each description to
DEFAULT_SCHEMA_VERSION, so it passes only once docs.json defaults to 3.2.
Member compliance_target descriptions name 3.2 targets.

The isolated search_docs/get_doc smoke descriptors snapshot the same
text, so the paid component-smoke admission fingerprint changes on
purpose (817ab57d... -> fa331c38...). This reissues it the way
migration 583 did:
- private authority, budget ladder, and unit pins move to the new value
- migration 614 adds the new fingerprint to the authorization CHECK and
  replaces the plan-group guard with the new fingerprint and plan
  manifest digest (bda91890...); 582/583 plans stay readable but fail
  closed on their next dispatch intent
- the ledger migration integration test covers the 583 -> 614 upgrade
- tool-surface inventory regenerated; the reviewed profile contract
  sha256 is updated in the budget

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Apply once @adcp/[email protected] is on npm, then refresh the lockfile:
  npm install --save-exact --ignore-scripts @adcp/[email protected]
  git commit --amend --no-edit package-lock.json

- package.json pins @adcp/sdk 14.0.0 (the 3.2.1 GA bundle).
- Training agent: TRAINING_AGENT_CURRENT_ADCP_VERSION = '3.2'. '3.2' was
  already a supported release; the unpinned default stays '3.0'.
- SDK 14.0.0 bundles only the 3.0/3.1/3.2 GA schemas, so an exact
  "3.2-rc.7" pin on an SDK-dispatched /sales tool would downshift to
  3.1. The sales platform now declares its supported releases, and the
  committed dist/schemas/3.2.0-rc.7 bundle is registered next to beta.6.
- Training-agent tests: GA release-pin semantics ("3.2" downshifts to
  the highest stable release a route offers; the exact rc.7 pin is still
  refused there) and the unpinned capabilities echo is now "3.2".
- Certification C4 build/validate instructions pin @adcp/[email protected] and
  the "3.2" wire pin (certification-module-methodology ties both to the
  installed SDK and the training agent).
- SDK response conformance: the TypeScript default release is 3.2.1 and
  its known-findings entry is re-baselined (same counts and the same
  single list_products finding; new artifact digest).

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@bokelley
bokelley force-pushed the chore/hosted-surfaces-3-2-1 branch from 0e1d4b4 to a861c7c Compare October 1, 2026 12:58
@bokelley
bokelley marked this pull request as ready for review October 1, 2026 12:58

@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: Request changes

Request changes — 1 blocking finding.

Blocking findings

  • server/src/db/migrations/614_reissue_addie_fixed_trace_component_smoke_3_2_ga.sql — Migration version 614 collides with 614_compliance_inconclusive_backoff.sql, already on main via #7844. loadMigrations() (migrate.ts:281-297) throws on duplicate versions, which crashes server startup on every deploy. Migrations run automatically on startup in production, so this is a reproducible happy-path crash on a load-bearing path. Renumber to 615.

Context
The rest of the 3.2.1 hosted-surface adoption is clean and well-tested: the migration-614 reissue logic (fail-closed), the hosted-compliance preferred-lines refactor, and the schema-compat bundle registration are all sound, with no schema-source or dist-artifact changes. The duplicate migration version is the sole blocker and is mechanically fixable by renumbering.

Non-blocking note: the PR body is stale — follow-up commit A (sdk 14.0.0, training '3.2', conformance 3.2.1) is already merged into the diff.

Blocking findings

  • server/src/db/migrations/614_reissue_addie_fixed_trace_component_smoke_3_2_ga.sql — Migration version 614 collides with existing 614_compliance_inconclusive_backoff.sql on main; loadMigrations() throws on duplicate versions, crashing server startup on every deploy. Renumber to 615.

…ease lines

#7844 took migration 614 on main. The training-agent/SDK version check now
compares release lines: a stable wire pin ("3.2") tracks every patch of
its line (3.2.1), and a prerelease pin still tracks its exact candidate.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@aao-secretariat
aao-secretariat Bot dismissed their stale review October 1, 2026 13:46

Superseded by a later Ladon review that rechecked and resolved its blocking findings.

aao-secretariat[bot]
aao-secretariat Bot previously approved these changes Oct 1, 2026

@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 — prior blocker resolved, no new findings.

This is a subsequent review. The prior request-changes decision flagged a migration version collision (614 duplicated by 614_compliance_inconclusive_backoff.sql), which would crash loadMigrations() on startup. The developer renamed the migration to 615_reissue_addie_fixed_trace_component_smoke_3_2_ga.sql (slot 615 is unoccupied), and updated the corresponding test path/comment to match. The sole prior blocker is addressed.

The reviewer also confirmed the sdk-runtime-compat assertion was correctly loosened to release-line equality per documented wire-pin semantics (stable 3.2 tracks patch releases; prerelease pins stay exact). No schema-source or dist/** changes — released-artifact immutability is intact. No changeset-scope concern surfaced (migration/app-only surface).

Decision-table walk:

  • Row 1 (critical/high): no findings.
  • Row 2 (gated_paths): false.
  • Row 3 (high-risk deleted): the new migration is (added) — inherently low risk; the other high-risk matches are (modified) with no medium-or-worse findings, so presumed safe.
  • Row 4/5 (medium findings): none.
  • Row 6 (sticky escalate): prior was request-changes, not escalate; and no fresh findings exist regardless.
  • Row 7 (no-auto-approve team): no match.
  • Row 8 (≥3 medium): zero medium findings.
  • Row 9: approve.

Net improvement: the load-bearing startup-crash blocker is gone and the current run surfaces nothing actionable.

…SDK 14.0.0

- Provenance expectations record the exact runner, now @adcp/sdk 14.0.0.
- Buyer certification text names the current stable 3.2 wire pin.
- Reporting lab cases dedupe the GA pin (current version == release line
  at GA) so repeated idempotency keys no longer replay sync_accounts
  against a cleared account store, and cover the retained 3.2-rc.7 pin.

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

@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 — clean subsequent pass with no actionable findings.

This is a GA-bump bookkeeping delta. The reviewer surfaced no critical/high/medium findings. Changes update sdk_version test expectations 14.0.0-rc.53 → 14.0.0 (consistent with LIBRARY_VERSION from the package.json pin to @adcp/sdk 14.0.0), dedupe now-identical 3.2/3.2 pins via a Set and retain the 3.2-rc.7 pin in the training-agent reporting test, plus two non-substantive comment/wording edits.

Decision-table walk:

  • Row 1 (critical/high): none.
  • Row 2 (gated_paths + not APPROVED): gated_paths is false — does not fire.
  • Row 3 (high_risk + deleted): high_risk is true, but the migration is (added) and all other high-risk entries are (modified)/(added); no deletions.
  • Row 4 (medium data-loss/schema/infra): no medium findings.
  • Row 5 (high_risk modified + medium finding): no medium findings.
  • Row 6 (sticky escalate): prior decision was approve, not escalate.
  • Row 7 (no-auto-approve team): no team match.
  • Row 8 (≥3 medium): zero medium findings.
  • Row 9: approve.

The high_risk flag is heuristic; the modified addie/registry files carry no medium-or-higher concerns, and the migration is a new file (low risk on its own). review_decision is REVIEW_REQUIRED but gated_paths is false, so no hard gate applies. Falls through to row 9.

bokelley commented Oct 1, 2026

Copy link
Copy Markdown
Contributor Author

Merging the post-GA hosted-surfaces PR (runbook Phase 8) under the maintainer's authorization. It moves to @adcp/sdk 14.0.0, the training agent to 3.2, 3.2 badges, hosted grading on 3.2.1, and Addie descriptions reissued (migration 615). All 58 checks pass. The adcp-3.2 npm_tags commit follows once the maintainer adds the dist-tag.

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.

Hosted compliance grading still on bundle 3.1.20 / sdk 14.0.0-rc.35; move to stable 3.1.24 + @adcp/sdk 13.1.x

1 participant