Repository navigation
fix(compliance): backport the public provenance conformance verifier to 3.2.x (#8218) - #8403
Merged
Merged
Conversation
…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]>
Contributor
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean backport of #8218 to 3.2.x with no blocking findings.
What I checked:
- Changeset scope/type:
patchchangeset is correctly scoped. Nostatic/schemas/source/**, nodist/**, 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 TrainingContextcast 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.
This was referenced Oct 23, 2026
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.
Summary
Backport of #8218 (main
fbd354304) to3.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_claimandprovenance_audit_observationname the public conformance verifierhttps://test-agent.adcontextprotocol.org/governance/creative-features/mcpinaccepted_verifiers/verify_agent. They use the served fixtureshttps://adcontextprotocol.org/test-assets/acme-outdoor/ai-generated-{true,false}.jpg, the sentinel wording is gone, andaccept_consistent_claimdeclaresdepends_on: [discover_verifier].static/test-assets/acme-outdoor/.get_creative_features.mdx.patchchangeset.Adaptation
There was one conflict, in
server/src/training-agent/index.ts. Main mounts the verifier next to a/sales/reportingGCS reporting router that doesn't exist on 3.2.x. The backport adds only the verifier import andmountCreativeFeaturesVerifier(...)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 → mainforward merge will report a conflict inserver/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,handleGetCreativeFeaturesandadcpErrorall 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 passedtest:storyboard-*andtest:compliance-*script passesnode scripts/build-compliance.cjs --check: passesnode scripts/check-changeset-protocol-scope.cjs origin/3.2.x: passesnpx --yes @changesets/cli@^3.0.0 status --since=origin/3.2.x:adcontextprotocolpatchADCP_SKIP_STORYBOARD_MATRIX=1;training-agent-storyboards.ymlis the authoritative gate🤖 Generated with Claude Code