Skip to content

fix(compliance): advance hosted 3.0 grading to the published 3.0.28 corpus - #8262

Merged
bokelley merged 1 commit into
mainfrom
conductor/p0-7824-hosted-3028
Oct 16, 2026
Merged

bokelley merged 1 commit into
mainfrom
conductor/p0-7824-hosted-3028

Conversation

@bokelley

@bokelley bokelley commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Hosted grading resolves the 3.0 alias to 3.0.27, whose universal/deterministic-testing.yaml carries no depends_on on its later phases. The SDK runner treats an absent depends_on as "depend on every prior phase" (@adcp/sdk/dist/lib/testing/storyboard/runner.js: phase.depends_on ?? prior), so for a seller without Sponsored Intelligence deterministic_session skips on a missing si_initiate_session and deterministic_delivery + deterministic_budget cascade to prerequisite_failed — even though both phases create their own media buy and never read session_id.

Register 3.0.28, whose immutable compliance and schema artifacts are already on main (restored by #7990 at a7b41f52ae), so 3.0 sellers receive the depends_on: [] backport from #7908. Historical exact-version pin coverage for 3.0.27 is preserved; 3.0.27 stays in the manifest and server/tests/unit/external-smoke.test.ts still pins it exactly.

This also closes a live drift on main: dist/schemas/index.json already resolves aliases["v3.0"] to 3.0.28 while hosted grading still resolved 3.0.27.

Closes #7824.

hosted_advancement_policy preconditions

Precondition Status
Immutable dist/compliance/3.0.28 and dist/schemas/3.0.28 exist on main ✅ 182 + 587 tracked files, restored by #7990
Release provenance available ✅ see below
Pinned hosted @adcp/[email protected] loads the bundle ✅ asserted by the new test, replayed end-to-end below

Provenance. cosign verify-blob returns Verified OK for dist/protocol/3.0.28.tgz against its committed .sig/.crt, pinned to --certificate-identity https://github.com/adcontextprotocol/adcp/.github/workflows/release.yml@refs/heads/3.0.x and --certificate-oidc-issuer https://token.actions.githubusercontent.com — the same identity and Sigstore intermediate as the 3.0.27 and 3.1.27 precedents. The cert's source-repository digest (bf838858) is v3.0.28^, matching RELEASING.md's "original producer commit (the original release merge's first parent)"; 3.0.27 and 3.1.27 show the identical tag/parent relationship, so there is no anomaly here. Tag v3.0.28 → 12f2d0d91ad4, GitHub Release published 2026-10-07 with all four signed tuple assets.

Critically, the signature attests the exact bytes the grader loads: extracting 3.0.28.tgz and diffing its compliance/ and schemas/ trees against dist/compliance/3.0.28 and dist/schemas/3.0.28 yields zero differences. The tarball is pure data (1530 .json, 99 .yaml, 11 .md, zero executables).

Validation

  • Corpus delta is exactly the backport. The only compliance files differing between 3.0.27 and 3.0.28 are index.json (version + generated_at) and universal/deterministic-testing.yaml, whose entire diff is three added depends_on: [] lines at the three named phases. The 587 schema files differ only by $id/$ref version rewriting and build timestamps — after normalizing 3.0.28→3.0.27 and excluding timestamps the residual diff is empty. The 213 unique URLs are set-identical, the credential grep output is byte-identical, and test-kits/acme-outdoor.yaml is unchanged. No new outbound host, credential, or controller endpoint.

  • End-to-end runner replay. server/tests/manual/run-storyboards.ts --storyboard-id deterministic_testing against the non-SI sales training-agent tenant, same harness the 3.0-compat matrix uses:

    Bundle Result
    3.0.27 18 passed / 0 failed / 13 skipped
    3.0.28 24 passed / 0 failed / 7 skipped

    The six recovered steps are exactly deterministic_delivery + deterministic_budget. The three remaining skips are deterministic_session, which still skips on the missing si_initiate_session — fix(compliance): keep deterministic media-buy phases independent #7908 deliberately omitted the 3.1-only requires_capability: { contains } operator that 3.0.x runners do not support, so that phase reports missing_tool rather than a capability N/A. That is the intended backport scope.

  • Unit suites: storyboards, hosted-compliance-version, hosted-compliance-3-0-27, compliance-heartbeat, compliance-target-discovery, compliance-testing-route-storyboard, external-smoke — all green. Root unit suite: 1139 passed across 75 files. npm run typecheck passes. scripts/check-published-compliance-versions.cjs, tests/published-compliance-versions.test.cjs, tests/runtime-artifact-pruning.test.cjs, tests/immutable-release-artifacts.test.cjs and tests/patch-3-0-compat-bundle.test.cjs pass.

  • Tests fail if the registration is removed. Deleting "3.0.28" from the manifest fails five assertions in storyboards.test.ts for independent reasons — the default-version, alias-resolution and alias-cap expectations, the SDK bundle load, and the depends_on assertion (expected undefined to deeply equal []).

  • The manifest edit is byte-identical to what scripts/register-published-compliance-version.cjs produces (semver.compare ordering, 2-space indent, trailing newline). No dist/ or released artifact is touched. No hooks skipped; the pre-push storyboard matrix self-skipped because no training-agent or compliance source changed.

  • No protocol changeset: static/compliance/published-versions.json is publication metadata and is not in PROTOCOL_SCOPED_PATHS. node scripts/check-changeset-protocol-scope.cjs origin/main passes. Matches fix(compliance): advance hosted 3.1 grading to the published 3.1.27 corpus #8242.

Read-only production check after deploy

Production is currently several deploys behind (/schemas/index.json still reports v3.0 → 3.0.26, v3.1 → 3.1.24), so neither #7990 nor #8242 has shipped yet. Once this deploys, for a 3.0-target non-SI seller:

GET /api/registry/agents/{encodedUrl}/compliance/history

The latest heartbeat run should show adcp_version: "3.0.28", and its tracks_json should show the deterministic_testing phases executing — deterministic_delivery and deterministic_budget graded rather than prerequisite_failed, with skips confined to deterministic_session. Read-only; no mutation required.

Notes for maintainers

  • Member-visible scores will shift on deploy. 3.0-target sellers move deterministic_delivery / deterministic_budget out of dependency_failed into real pass/fail (or setup_gap when the agent exposes no comply_test_controller). Per server/src/compliance/step-disposition.ts neither missing_test_controller nor prerequisite_failed counts as passed, so the alias advance cannot manufacture passes — but the reported totals change.
  • depends_on: [] removes all prior-phase gates, not just the SI one — including controller_validation. A graded 3.0 seller whose controller failed validation will now still receive the create_media_buy + simulate_delivery / simulate_budget_spend steps. Bounded in practice: every step in both phases is requires_tool: comply_test_controller gated, and payloads use RFC 2606 .example domains, test-product IDs, 2099 flight dates and freshly generated idempotency keys. This is also not new behaviour for the platform — hosted 3.1 (3.1.27) and 3.2 (3.2.4) already ship depends_on: [] on these same phases, so this brings the 3.0 line to parity. Tightening it to depends_on: ['controller_validation'] would be an upstream 3.0.x corpus change, not something to patch into this repo's immutable dist/.
  • Separate follow-up, not a blocker: the 3.0.28 protocol tuple is missing from R2/CDN. https://adcontextprotocol.org/protocol/3.0.28.tgz.sha256 returns 404 while 3.0.26, 3.0.27, 3.1.27 and 3.2.4 all return 200; the 3.0.28 schema and compliance objects are present. This is the partial-publication mode RELEASING.md describes, and the documented recovery is a maintainer workflow_dispatch of Recover protocol release on CDN with version 3.0.28. Hosted grading does not read that surface — it loads dist/compliance/{version} and dist/schemas/{version} from the committed tree inside the image — so it does not gate this registration, but external consumers pinning 3.0.28 cannot fetch the signed bundle until it is recovered.
  • Reviewed by code-reviewer and security-reviewer subagents before opening. Both findings sets are addressed above or in the diff: the per-version test file was folded into storyboards.test.ts (matching fix(compliance): advance hosted 3.1 grading to the published 3.1.27 corpus #8242, which added no new file), and the comment on the new assertion now claims only what it proves — that the alias resolves to a bundle carrying the backport — with the runner behaviour evidenced by the replay above. One security suggestion was deliberately not taken: adding a version-shape regex to loadPublishedComplianceManifest. It is already enforced operationally by scripts/smoke-hosted-compliance-runtime.mjs, which iterates every published_versions entry at image build and in CI, and tightening the loader is unrelated to this registration.

🤖 Generated with Claude Code


Open workspace in Conductor

…orpus

Hosted grading resolves the `3.0` alias to 3.0.27, whose
`universal/deterministic-testing.yaml` has no `depends_on` on its later
phases. For a seller without Sponsored Intelligence, `deterministic_session`
skips on a missing `si_initiate_session` and the default "depend on all prior
phases" cascade marks `deterministic_delivery` and `deterministic_budget` as
`prerequisite_failed`, even though those phases create their own media buy.

Register 3.0.28, whose immutable compliance and schema artifacts are already
on main, so 3.0 sellers receive the `depends_on: []` backport that hosted 3.1
and 3.2 sellers already run against. Historical exact-version pin coverage for
3.0.27 is preserved.

Co-Authored-By: Claude Opus 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 — registers 3.0.28 in the hosted compliance manifest and advances test expectations (2 files, +35/-3).

Verified against repo-specific rules:

  • No critical/high/medium findings.
  • No static/schemas/source/** change → no schema↔docs coherence concern.
  • No released dist/ artifact modified — the reviewer confirmed dist/compliance/3.0.28 and dist/schemas/3.0.28 are present (pre-existing, append-only intact); 3.0.27 exact pin preserved.
  • No changeset required: static/compliance/published-versions.json is publication metadata, not in PROTOCOL_SCOPED_PATHS (matches #8242).
  • Manifest insertion correctly ordered after 3.0.27; resolution floor correctly advances the 3.0 alias / DEFAULT_HOSTED_COMPLIANCE_VERSION; no oneOf or breaking-class change.
  • New test imports getComplianceStoryboardById from the correct source and asserts the #7908 backport shape.

Gate checks: gated_paths is false, so row 2 does not apply despite review_decision=REVIEW_REQUIRED. high_risk is false. No no-auto-approve team match. No prior decision. Zero findings → rows 1–8 do not fire; falls through to row 9.

@bokelley
bokelley merged commit 2cd5944 into main Oct 16, 2026
34 checks passed
@bokelley
bokelley deleted the conductor/p0-7824-hosted-3028 branch October 16, 2026 23:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant