Repository navigation
fix(compliance): backport the public provenance conformance verifier to 3.1.x (#8218) - #8405
Merged
Merged
Conversation
…provenance truth-of-claim (#8218) Closes #8199. Points provenance_truth_of_claim and provenance_audit_observation at the public conformance verifier and the served fixture JPEGs, and adds depends_on [discover_verifier] to accept_consistent_claim. Backport to 3.1.x: protocol content only. The storyboards, fixtures, docs section and changeset apply cleanly. The training-agent route, CSRF exemption, JSON body cap and their tests are dropped. Production serves the verifier from the main deployment, 3.1.x is never deployed, and 3.1.x predates the json-body-limit util and the restructured CSRF exemption lists the route depends on. The 3.1.x seller's accepted_verifiers check is URL-agnostic, so the storyboards run against the 3.1.x training agent unchanged. (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.1.x with no blocking or medium findings.
Checked:
- Storyboard YAMLs (provenance_audit_observation.yaml, provenance_truth_of_claim.yaml) and the changeset are byte-identical to main's source commit fbd3543 — faithful backport.
- The only get_creative_features.mdx divergence is pre-existing 3.1.x↔main doc drift (idempotency/retry contract, format_id vs format_kind), not backport infidelity; the added "Conformance verifier" section matches intent.
- New static/test-assets/acme-outdoor/*.jpg resolve at the documented /test-assets/... path (static/ is web root), replacing NXDOMAIN hosts.
- depends_on usage is a supported 3.1.x storyboard field and correctly decouples accept_consistent_claim from the tripped reject_contradicted_claim sibling.
- Dropped server verifier route is a sound 3.1.x adaptation (branch never deploys; cross-check is URL-agnostic).
Gates: high_risk=false, gated_paths=false, no no-auto-approve team match, no prior decision. No Critical/High/Medium findings → decision table 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.
Summary
Backport of #8218 (main
fbd354304) to3.1.xviagit 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.1.x half; the 3.2.x backport is #8403.What ships on 3.1.x:
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}.jpginstead of the NXDOMAINtest-assets.host. The sentinel wording is gone, andaccept_consistent_claimdeclaresdepends_on: [discover_verifier].static/test-assets/acme-outdoor/.get_creative_features.mdx.patchchangeset.Adaptation: protocol content only
All of the above applied cleanly. The storyboard hunks match main's exactly, and both phases they reference (
discover_verifier,accept_consistent_claim) exist on 3.1.x.Dropped: the training-agent route (
creative-features-verifier{,-path}.ts, the mount intraining-agent/index.ts), its CSRF exemption, the JSON body cap, and their tests (training-agent-creative-features-verifier.test.ts, plus thecsrf-middleware/json-body-limitadditions). Reasons:deploy.ymldeploys frommainonly.3.1.xserver code is never deployed, so the route would be dead code here.server/src/utils/json-body-limit.tsdoesn't exist, and the CSRF middleware lacks main'sEXEMPT_MCP_EXACTsplit. Porting them would mean restructuringhttp.tsand the CSRF lists on a maintenance branch for no deployed effect.accepted_verifierscross-check is URL-agnostic (it compares against the seeded fixture list), so the storyboards run against the 3.1.x training agent unchanged.3.1.x → mainforward merge free of add/add conflicts. Main already has them.Patch eligibility
These are conformance-harness fixes (storyboard fixture URLs and a cascade
depends_on) plus non-normative docs. There are no schema, enum or error-code changes.Verification (on this branch)
test:storyboard-*andtest:compliance-*script passesnode scripts/build-compliance.cjs: builds. 3.1.x's script has no--checkmode, and the build leaves the tree cleannode scripts/check-changeset-protocol-scope.cjs origin/3.1.x: passesnpx --yes @changesets/cli@^3.0.0 status --since=origin/3.1.x:adcontextprotocolpatchADCP_SKIP_STORYBOARD_MATRIX) and passed🤖 Generated with Claude Code