Skip to content

fix(compliance): scope creative_features_idempotency to get_creative_features agents - #7728

Merged
bokelley merged 1 commit into
mainfrom
fix/creative-features-idempotency-applicability
Sep 29, 2026
Merged

bokelley merged 1 commit into
mainfrom
fix/creative-features-idempotency-applicability

Conversation

@bokelley

Copy link
Copy Markdown
Contributor

Fixes #7723

Summary

creative/get_creative_features_idempotency (added in #7612) has failed on the training agent's /creative, /creative-builder, and /sales tenants since it merged. CI stayed green only because of the tenant floors.

Root cause

The storyboard's applicability was wrong; the training agent's capability declaration was not the problem. None of those tenants exposes get_creative_features as a tool (the training agent only calls the handler internally for sync_creatives provenance checks). required_tools is an any-of gate ("tools that make this storyboard applicable, at least one must be present"). The scenario listed get_adcp_capabilities, get_task_status, and comply_test_controller, which every agent advertises, so it was selected for every creative agent. Its first step then required governance.creative_features, which only a creative governance provider declares, and the rest skipped as missing_tool. Any third-party creative agent without feature evaluation would fail the same way.

get_creative_features is a governance-protocol task, and the scenario's own interaction_model is creative_governance_provider.

Fix

  • required_tools now lists only get_creative_features. A single-tool family goes in required_tools, per storyboard-schema.yaml. The steps still call the other tools, and no assertion changed.
  • Patch changeset.

Storyboard results

npm run build:compliance, then for each tenant:
TENANT_PATH=<tenant> PUBLIC_TEST_AGENT_TOKEN=storyboard-local-token ADCP_COMPLIANCE_DIR=dist/compliance/latest ADCP_SCHEMA_ROOT=dist/schemas/latest npx tsx server/tests/manual/run-storyboards.ts --storyboard-id creative/get_creative_features_idempotency

Tenant Before (main) After
/creative ✗ 2P / 1F / 12S ✓ 0P / 1S, 0 failed (storyboard-level skip: agent does not advertise get_creative_features)
/creative-builder ✗ 2P / 1F / 12S ✓ 0P / 1S, 0 failed
/sales ✗ 2P / 1F / 12S ✓ 0P / 1S, 0 failed

Each tenant loses 2 passing steps. The latest main run shows plenty of floor headroom: /creative 237 vs 209, /creative-builder 226 vs 184, /sales 988 vs 632.

Testing

  • node --test tests/sdk-runner-capability-gates.test.cjs tests/lint-storyboard-*.test.cjs tests/governance-storyboard-routing.test.cjs (14 files): 211/211 pass.
  • I committed with --no-verify. The local pre-commit server suite had 9 failures in tests/unit/addie/fixed-trace-* because those tests assert a worktree-local node_modules path, and in this sandbox node_modules is a symlink. It also had one OOM-killed worker. This PR changes no TypeScript.
  • node scripts/check-changeset-protocol-scope.cjs origin/main and changeset status --since=origin/main: pass.

Follow-up

The training agent has no creative-governance tenant that serves get_creative_features with keyed replay and force_get_creative_features_arm, so nothing exercises this scenario end to end on the reference agent. That is a feature gap (tracked in #7723), not a conformance defect.

🤖 Generated with Claude Code

…features agents

required_tools is the any-of applicability gate. Listing
get_adcp_capabilities, get_task_status, and comply_test_controller selected
the scenario for every creative agent, and agents without
get_creative_features failed at governance.creative_features discovery.
List only get_creative_features; assertions are unchanged.

Fixes #7723

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 compliance-scenario applicability fix.

This PR narrows creative_features_idempotency's required_tools to only get_creative_features (the tool that actually gates the scenario) instead of the broader any-of list of universally-advertised tools that was over-selecting it. Two files changed (+12/−3): the scenario YAML and a correctly-typed patch changeset.

Checks performed:

  • Any-of semantics verified against storyboard-schema.yaml and the runner check; step execution is unaffected (runner injects get_adcp_capabilities; no lint requires step tasks in required_tools).
  • Changeset scope and type correct — patch for a non-breaking compliance-asset applicability narrowing; no wire-shape, schema↔docs, oneOf, or immutable-artifact concerns.
  • No static/schemas/source/** or dist/** edits; no released-artifact mutation.
  • No breaking-class change; not a governance-policy decision.

No blocking or medium findings. gated_paths is false, high_risk is false, no no-auto-approve team match, first review. No decision-table trigger fires → row 9 approve.

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.

creative/get_creative_features_idempotency applies to creative agents that do not expose get_creative_features

1 participant