Skip to content

fix(compliance): stop read_tool_idempotency sending type to list_creative_formats - #7670

Merged
bokelley merged 1 commit into
mainfrom
fix/read-tool-idempotency-creative-formats-type
Sep 24, 2026
Merged

bokelley merged 1 commit into
mainfrom
fix/read-tool-idempotency-creative-formats-type

Conversation

@andybevan-scope3

Copy link
Copy Markdown
Collaborator

Why

Refs #7143. Media-buy agents get an input_schema_field_stripped notice for type on list_creative_formats in every compliance report.

The source is the universal read_tool_idempotency storyboard (list_creative_formats_with_idempotency_key), which sends type: "display". type is only declared by creative/list-creative-formats-request.json, so the runner strips it for media-buy agents. The filter plays no part in what the step tests (that idempotency_key, context, and ext are accepted on a read).

#7173 targeted this issue but changed the pagination storyboard, which never sends type. It also only changed request schema_ref, which the SDK storyboard runner does not read.

What Changed

  • Remove type: "display" from the read_tool_idempotency list_creative_formats sample request.
  • Add a test in tests/lint-storyboard-sample-request-schema.test.cjs that fails when a universal list_creative_formats sample request sends a field that is neither declared by media-buy/list-creative-formats-request.json nor an AdCP envelope field (ADCP_ENVELOPE_FIELDS from @adcp/sdk, the same set the runner keeps). Verified it fails on the unfixed storyboard and passes after.
  • Patch changeset.

Not in this PR

Verification

  • npm run test:storyboard-sample-request-schema (14/14), plus storyboard response-schema, doc-parity, compliance-source-authority, and pagination-invariant tests
  • npm run build:compliance
  • node scripts/check-changeset-protocol-scope.cjs origin/main and npx @changesets/cli status --since=origin/main
  • Pre-commit hook passed on Node 24
  • Local pre-push storyboard matrix skipped (ADCP_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 to 3.2-rc.3). CI's training-agent-storyboards.yml is the authoritative gate.

🤖 Generated with Claude Code

…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]>

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

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.

2 participants