Skip to content

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

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

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

Conversation

@bokelley

Copy link
Copy Markdown
Contributor

Summary

Backport of #8218 (main fbd354304) to 3.1.x via 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.1.x half; the 3.2.x backport is #8403.

What ships on 3.1.x:

  • 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 instead of the NXDOMAIN test-assets. host. 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 "Conformance verifier" section in get_creative_features.mdx.
  • The original patch changeset.

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 in training-agent/index.ts), its CSRF exemption, the JSON body cap, and their tests (training-agent-creative-features-verifier.test.ts, plus the csrf-middleware / json-body-limit additions). Reasons:

  • The verifier the storyboards name is served by the production training agent, which deploy.yml deploys from main only. 3.1.x server code is never deployed, so the route would be dead code here.
  • 3.1.x predates the pieces the route depends on. server/src/utils/json-body-limit.ts doesn't exist, and the CSRF middleware lacks main's EXEMPT_MCP_EXACT split. Porting them would mean restructuring http.ts and the CSRF lists on a maintenance branch for no deployed effect.
  • The 3.1.x seller's accepted_verifiers cross-check is URL-agnostic (it compares against the seeded fixture list), so the storyboards run against the 3.1.x training agent unchanged.
  • Leaving the server files out also keeps the 3.1.x → main forward 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)

  • Every test:storyboard-* and test:compliance-* script passes
  • node scripts/build-compliance.cjs: builds. 3.1.x's script has no --check mode, and the build leaves the tree clean
  • node scripts/check-changeset-protocol-scope.cjs origin/3.1.x: passes
  • npx --yes @changesets/cli@^3.0.0 status --since=origin/3.1.x: adcontextprotocol patch
  • Pre-commit hook passed. The 3.1.x pre-push hook ran the local storyboard matrix (it ignores ADCP_SKIP_STORYBOARD_MATRIX) and passed

🤖 Generated with Claude Code

…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]>
@bokelley
bokelley requested a review from a team as a code owner October 22, 2026 10:32

@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.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.

@bokelley
bokelley merged commit a7331e7 into 3.1.x Oct 22, 2026
12 checks passed
@bokelley
bokelley deleted the backport/3.1.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