Repository navigation
fix(compliance): stop read_tool_idempotency sending type to list_creative_formats - #7670
Conversation
…tive_formats The universal read_tool_idempotency storyboard sent the creative-agent-only `type` filter to list_creative_formats. Media-buy agents do not declare it, so the runner stripped it and raised an input_schema_field_stripped notice in every media-buy compliance report. The filter is not needed to test idempotency_key acceptance. Adds a test that fails when a universal list_creative_formats sample request sends a field outside the media-buy request schema and the AdCP envelope. Refs #7143 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
There was a problem hiding this comment.
Ladon verdict: Approve
Approve.
Clean, correctly-scoped compliance fix. Removes the creative-agent-only type field from the universal read_tool_idempotency list_creative_formats sample request so it matches media-buy/list-creative-formats-request.json (which does not declare it), stopping a spurious input_schema_field_stripped notice for media-buy agents. No wire-shape change, so the patch changeset is the correct type. A new regression test guards the fix; its account-field exemptions were verified against the real storyboard phase/step ids.
No blocking or Medium findings. gated_paths is false, high_risk is false, no no-auto-approve team match, and no critical/high/medium findings — falls through the decision table to row 9 (approve). review_decision is REVIEW_REQUIRED but that only forces escalation when gated_paths is true (row 2), which it is not here.
Why
Refs #7143. Media-buy agents get an
input_schema_field_strippednotice fortypeonlist_creative_formatsin every compliance report.The source is the universal
read_tool_idempotencystoryboard (list_creative_formats_with_idempotency_key), which sendstype: "display".typeis only declared bycreative/list-creative-formats-request.json, so the runner strips it for media-buy agents. The filter plays no part in what the step tests (thatidempotency_key,context, andextare accepted on a read).#7173 targeted this issue but changed the pagination storyboard, which never sends
type. It also only changed requestschema_ref, which the SDK storyboard runner does not read.What Changed
type: "display"from theread_tool_idempotencylist_creative_formatssample request.tests/lint-storyboard-sample-request-schema.test.cjsthat fails when a universallist_creative_formatssample request sends a field that is neither declared bymedia-buy/list-creative-formats-request.jsonnor an AdCP envelope field (ADCP_ENVELOPE_FIELDSfrom@adcp/sdk, the same set the runner keeps). Verified it fails on the unfixed storyboard and passes after.Not in this PR
account, which the media-buy schema does not declare either. Those two steps are exempted in the test pending a decision (drop it from the storyboard or declare it in the schema). This will be filed separately.3.1.x, where the same step sendstype: "display", follows after merge per the cherry-pick convention. list_creative_formats : type filter present in creative-agent request schema but absent from media-buy variant #7143 should stay open until then.Verification
npm run test:storyboard-sample-request-schema(14/14), plus storyboard response-schema, doc-parity, compliance-source-authority, and pagination-invariant testsnpm run build:compliancenode scripts/check-changeset-protocol-scope.cjs origin/mainandnpx @changesets/cli status --since=origin/mainADCP_SKIP_STORYBOARD_MATRIX=1): every tenant failed version negotiation before running any storyboard (Compliance cache version 3.2.0-rc.5 is not supported by this seller, training agent advertises up to3.2-rc.3). CI'straining-agent-storyboards.ymlis the authoritative gate.🤖 Generated with Claude Code