Skip to content

fix(compliance): backport the public provenance conformance verifier to 3.2.x (#8218) - #8403

Merged
bokelley merged 1 commit into
3.2.xfrom
backport/3.2.x-provenance-public-verifier
Oct 22, 2026
Merged

bokelley merged 1 commit into
3.2.xfrom
backport/3.2.x-provenance-public-verifier

Conversation

@bokelley

@bokelley bokelley commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Backport of #8218 (main fbd354304) to 3.2.x, following the cherry-pick convention (git cherry-pick -x). #8218 says hosted grading only picks up the fix once the 3.1.x and 3.2.x patches ship. This is the 3.2.x half; the 3.1.x backport is a separate PR.

What ships:

  • provenance_truth_of_claim and provenance_audit_observation name the public conformance verifier https://test-agent.adcontextprotocol.org/governance/creative-features/mcp in accepted_verifiers / verify_agent. They use the served fixtures https://adcontextprotocol.org/test-assets/acme-outdoor/ai-generated-{true,false}.jpg, the sentinel wording is gone, and accept_consistent_claim declares depends_on: [discover_verifier].
  • The two fixture JPEGs under static/test-assets/acme-outdoor/.
  • The training-agent verifier route, its CSRF exemption and 16 KB body cap, and their tests. These keep 3.2.x's server code in parity with main. The production route is served by the main deployment.
  • The "Conformance verifier" section in get_creative_features.mdx.
  • The original patch changeset.

Adaptation

There was one conflict, in server/src/training-agent/index.ts. Main mounts the verifier next to a /sales/reporting GCS reporting router that doesn't exist on 3.2.x. The backport adds only the verifier import and mountCreativeFeaturesVerifier(...) call, in the same position: after the auth/rate-limit setup and before the per-tenant routes. Every other file applied cleanly.

Forward-merge note: the 3.2.x → main forward merge will report a conflict in server/src/training-agent/index.ts, because both sides add the same import and mount next to different neighbours. The resolution is to take main's side. Putting the 3.2.x lines somewhere else would merge silently with a duplicate import and mount, which is worse than a conflict that fails loudly. The new files, CSRF, body-limit, storyboards, docs and fixtures are identical to main and merge cleanly.

The two storyboards and the docs page end up byte-identical to main after #8218. Before the backport, the two scenarios on 3.2.x matched main's pre-#8218 content, so nothing 3.3-only comes in. get_creative_features, handleGetCreativeFeatures and adcpError all exist on 3.2.x.

Patch eligibility

These are conformance-harness fixes: storyboard fixture URLs, a cascade depends_on, and non-normative docs. There are no schema, enum or error-code changes. The new prerequisite sentence ("sellers MUST NOT call a verifier URL that is not on their own allowlist") is storyboard setup guidance, not a new protocol requirement.

Verification (on this branch)

  • npx vitest run --config server/vitest.config.ts tests/unit/training-agent-creative-features-verifier.test.ts tests/unit/csrf-middleware.test.ts tests/unit/json-body-limit.test.ts: 111 passed
  • Every test:storyboard-* and test:compliance-* script passes
  • node scripts/build-compliance.cjs --check: passes
  • node scripts/check-changeset-protocol-scope.cjs origin/3.2.x: passes
  • npx --yes @changesets/cli@^3.0.0 status --since=origin/3.2.x: adcontextprotocol patch
  • Pre-commit hook (unit tests, full server unit suite, typecheck): passed
  • Pushed with ADCP_SKIP_STORYBOARD_MATRIX=1; training-agent-storyboards.yml is the authoritative gate

🤖 Generated with Claude Code

…provenance truth-of-claim (#8218)

Closes #8199. Registers get_creative_features on a public, unauthenticated, per-IP rate-limited training-agent route, publishes the two fixture JPEGs at the served test-assets path, points provenance_truth_of_claim and provenance_audit_observation at them, and adds depends_on [discover_verifier] to accept_consistent_claim.

Backport to 3.2.x. Conflict in server/src/training-agent/index.ts only:
3.2.x has no GCS reporting router, so the verifier import and mount are
added without main's `/sales/reporting` route.

(cherry picked from commit fbd3543)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
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 backport of #8218 to 3.2.x with no blocking findings.

What I checked:

  • Changeset scope/type: patch changeset is correctly scoped. No static/schemas/source/**, no dist/**, and no wire-shape changes — purely conformance-harness fixtures (storyboard verifier URLs, served JPEG fixtures, depends_on: [discover_verifier]), a sandbox verifier route, and non-normative docs. Patch-eligible.
  • Schema↔docs coherence: N/A — no schema source modified.
  • Released-artifact immutability: No files inside existing semver dist/ artifacts touched.
  • Security surface: The new unauthenticated verifier route is intentionally cookie-less/stateless with a CSRF exemption, a 16KB body cap across every reachable spelling, and per-IP rate limiting. The 279-line test exhaustively covers exemption narrowness, body-cap spellings, tool restriction, and fixture validity (real JPEGs).
  • Handler safety: Handler at task-handlers.ts:20892 ignores ctx, so the verifier's {} as TrainingContext cast at creative-features-verifier.ts:152 is safe.
  • Normative-docs wording: The "sellers MUST NOT call a verifier URL not on their allowlist" wording is storyboard prerequisite/docs guidance, not a schema requirement — patch-eligible.

Gates: gated_paths false; high_risk false; no no-auto-approve team match; no prior decision. Reviewer reported no Critical/High/Medium findings.

Decision table: rows 1–8 do not fire → row 9 approve.

@bokelley
bokelley merged commit 2bab865 into 3.2.x Oct 22, 2026
91 of 93 checks passed
@bokelley
bokelley deleted the backport/3.2.x-provenance-public-verifier branch October 22, 2026 12:17
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