Repository navigation
fix(compliance): advance hosted 3.0 grading to the published 3.0.28 corpus - #8262
Merged
Merged
Conversation
…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]>
Contributor
There was a problem hiding this comment.
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.jsonis 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.
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.
Hosted grading resolves the
3.0alias to 3.0.27, whoseuniversal/deterministic-testing.yamlcarries nodepends_onon its later phases. The SDK runner treats an absentdepends_onas "depend on every prior phase" (@adcp/sdk/dist/lib/testing/storyboard/runner.js:phase.depends_on ?? prior), so for a seller without Sponsored Intelligencedeterministic_sessionskips on a missingsi_initiate_sessionanddeterministic_delivery+deterministic_budgetcascade toprerequisite_failed— even though both phases create their own media buy and never readsession_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 thedepends_on: []backport from #7908. Historical exact-version pin coverage for 3.0.27 is preserved;3.0.27stays in the manifest andserver/tests/unit/external-smoke.test.tsstill pins it exactly.This also closes a live drift on main:
dist/schemas/index.jsonalready resolvesaliases["v3.0"]to 3.0.28 while hosted grading still resolved 3.0.27.Closes #7824.
hosted_advancement_policypreconditionsdist/compliance/3.0.28anddist/schemas/3.0.28exist on main@adcp/[email protected]loads the bundleProvenance.
cosign verify-blobreturnsVerified OKfordist/protocol/3.0.28.tgzagainst its committed.sig/.crt, pinned to--certificate-identity https://github.com/adcontextprotocol/adcp/.github/workflows/release.yml@refs/heads/3.0.xand--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) isv3.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. Tagv3.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.tgzand diffing itscompliance/andschemas/trees againstdist/compliance/3.0.28anddist/schemas/3.0.28yields 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) anduniversal/deterministic-testing.yaml, whose entire diff is three addeddepends_on: []lines at the three named phases. The 587 schema files differ only by$id/$refversion rewriting and build timestamps — after normalizing3.0.28→3.0.27and excluding timestamps the residual diff is empty. The 213 unique URLs are set-identical, the credential grep output is byte-identical, andtest-kits/acme-outdoor.yamlis unchanged. No new outbound host, credential, or controller endpoint.End-to-end runner replay.
server/tests/manual/run-storyboards.ts --storyboard-id deterministic_testingagainst the non-SIsalestraining-agent tenant, same harness the 3.0-compat matrix uses:18 passed / 0 failed / 13 skipped24 passed / 0 failed / 7 skippedThe six recovered steps are exactly
deterministic_delivery+deterministic_budget. The three remaining skips aredeterministic_session, which still skips on the missingsi_initiate_session— fix(compliance): keep deterministic media-buy phases independent #7908 deliberately omitted the 3.1-onlyrequires_capability: { contains }operator that 3.0.x runners do not support, so that phase reportsmissing_toolrather 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 typecheckpasses.scripts/check-published-compliance-versions.cjs,tests/published-compliance-versions.test.cjs,tests/runtime-artifact-pruning.test.cjs,tests/immutable-release-artifacts.test.cjsandtests/patch-3-0-compat-bundle.test.cjspass.Tests fail if the registration is removed. Deleting
"3.0.28"from the manifest fails five assertions instoryboards.test.tsfor independent reasons — the default-version, alias-resolution and alias-cap expectations, the SDK bundle load, and thedepends_onassertion (expected undefined to deeply equal []).The manifest edit is byte-identical to what
scripts/register-published-compliance-version.cjsproduces (semver.compareordering, 2-space indent, trailing newline). Nodist/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.jsonis publication metadata and is not inPROTOCOL_SCOPED_PATHS.node scripts/check-changeset-protocol-scope.cjs origin/mainpasses. 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.jsonstill reportsv3.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:The latest heartbeat run should show
adcp_version: "3.0.28", and itstracks_jsonshould show thedeterministic_testingphases executing —deterministic_deliveryanddeterministic_budgetgraded rather thanprerequisite_failed, with skips confined todeterministic_session. Read-only; no mutation required.Notes for maintainers
deterministic_delivery/deterministic_budgetout ofdependency_failedinto real pass/fail (orsetup_gapwhen the agent exposes nocomply_test_controller). Perserver/src/compliance/step-disposition.tsneithermissing_test_controllernorprerequisite_failedcounts aspassed, so the alias advance cannot manufacture passes — but the reported totals change.depends_on: []removes all prior-phase gates, not just the SI one — includingcontroller_validation. A graded 3.0 seller whose controller failed validation will now still receive thecreate_media_buy+simulate_delivery/simulate_budget_spendsteps. Bounded in practice: every step in both phases isrequires_tool: comply_test_controllergated, and payloads use RFC 2606.exampledomains,test-productIDs, 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 shipdepends_on: []on these same phases, so this brings the 3.0 line to parity. Tightening it todepends_on: ['controller_validation']would be an upstream 3.0.x corpus change, not something to patch into this repo's immutabledist/.https://adcontextprotocol.org/protocol/3.0.28.tgz.sha256returns 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 maintainerworkflow_dispatchof Recover protocol release on CDN with version3.0.28. Hosted grading does not read that surface — it loadsdist/compliance/{version}anddist/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.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 toloadPublishedComplianceManifest. It is already enforced operationally byscripts/smoke-hosted-compliance-runtime.mjs, which iterates everypublished_versionsentry at image build and in CI, and tightening the loader is unrelated to this registration.🤖 Generated with Claude Code
Open workspace in Conductor