Skip to content

Storyboard runner: property_list builders inject deprecated brand; need account migration #577

Closed

Description

@bokelley

Summary

The storyboard runner (`dist/lib/testing/storyboard/request-builder.js`, @adcp/client 5.1.0) has hardcoded request builders for property_list tools that inject `brand: resolveBrand(options)` and ignore the storyboard YAML's `sample_request`. AdCP `3.0` removed the deprecated identity field (previously `principal`, workaround-era `brand`) in favor of `account` on `list_property_lists`, `get_property_list`, `update_property_list`, and `delete_property_list`. The request-builder injection is now out of sync — the client strips `brand` against any training agent built to current spec, session keying collapses, and the property_lists storyboard fails end-to-end with `NOT_FOUND` on every post-create call.

Repro

Against a training agent built from AdCP main after adcontextprotocol/adcp#2336 (account migration):

```bash
ADCP_COMPLIANCE_DIR=$(pwd)/dist/compliance/latest \
npx tsx server/tests/manual/storyboard-smoke.ts --storyboard property_lists
```

Output:

```
[AdCP] Stripping fields not declared in agent "test" schema for list_property_lists: brand
[AdCP] Stripping fields not declared in agent "test" schema for get_property_list: brand
[AdCP] Stripping fields not declared in agent "test" schema for delete_property_list: brand
❌ 4P/4F/1S (221ms)
❌ get_property_list: not_found: No property list with id 'pl_3594701f'
❌ validate_property_delivery: not_found: No property list with id 'pl_3594701f'
❌ validate_all_compliant_delivery: not_found: No property list with id 'pl_3594701f'
⏭ validate_unauthorized_publisher: dependency_failed
❌ delete_property_list: not_found
```

The storyboard YAML itself passes `account: { brand: { domain }, operator }` correctly (post-#2336). The failure is purely in the hardcoded client-side request builder, which never reads `step.sample_request`.

Evidence (current code)

`dist/lib/testing/storyboard/request-builder.js` L375–408 (bundled; source lives at the equivalent `src/` path):

```js
get_property_list(_step, context, options) {
return {
list_id: context.property_list_id ?? 'unknown',
brand: (0, client_1.resolveBrand)(options), // ← deprecated
resolve: true,
};
},
update_property_list(_step, context, options) {
return {
list_id: context.property_list_id ?? 'unknown',
brand: (0, client_1.resolveBrand)(options), // ← deprecated
description: 'Updated by storyboard testing',
base_properties: [...],
};
},
list_property_lists(_step, _context, options) {
return {
brand: (0, client_1.resolveBrand)(options), // ← deprecated
};
},
delete_property_list(_step, context, options) {
return {
list_id: context.property_list_id ?? 'unknown',
brand: (0, client_1.resolveBrand)(options), // ← deprecated
};
},
```

Fix options

Option A — remove the builders (preferred, mirrors `collection_list`). There are no hardcoded builders for `collection_list` tools in request-builder.js; the runner falls through to `step.sample_request`. The property_lists storyboard YAML already contains a full, spec-correct `sample_request` for every step. Deleting these five builders (`get_property_list`, `update_property_list`, `list_property_lists`, `delete_property_list`, and optionally `create_property_list` which is still spec-aligned but also redundant) makes property-lists symmetrical with collection-lists and eliminates one place for the spec + runner to drift.

Option B — swap `brand` → `account`. Replace each `brand: resolveBrand(options)` with `account: resolveAccount(options)` (if `resolveAccount` exists; otherwise synthesize from resolved brand as `{ brand: { domain }, operator: domain }` for direct-operated test brands). Keeps the injection affordance but brings it to spec.

I'd ship A. The YAML storyboards are the source of truth for the wire contract; the request builder's job should be filling in context ids (`list_id` from prior `create` output), not materializing identity.

Spec references

Impact

Blocks end-to-end compliance verification for any agent built to AdCP 3.0 `property-lists` specialism. Workaround today is to run the property-lists storyboard via adcontextprotocol/adcp's in-process vitest test rather than `@adcp/client/testing runStoryboard`.

Also (optional, same PR): validate_property_delivery

`request-builder.js:514` also uses `brand:` for `validate_property_delivery` — same fix applies since that schema also now declares optional `account`.

Activity

  1. added a commit that references this issue on Apr 18, 2026
    3a35ad1
  2. added a commit that references this issue on Apr 18, 2026
    99ab36d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions