Skip to content

storyboard-schema.yaml: allow generate field on context_outputs entries (companion to adcp-client#1006) #3216

Closed

Description

@bokelley

Context

adcp-client#1006 (in flight) adds a `generate` field to `context_outputs` entries on a storyboard step:

```yaml
context_outputs:

  • key: forced_task_id
    generate: uuid_v4
    ```

The runner mints a UUID v4 once per run and stores it under `context.`, so later steps' `$context.` resolves to the same value. This unblocks deterministic threading of `task_id` through multi-step flows like `force_create_media_buy_arm` register → `create_media_buy` → `force_task_completion` → buyer-side `tasks/get` poll without authors copy-pasting magic strings.

The gap

`static/compliance/source/universal/storyboard-schema.yaml` describes the `context_outputs` shape with only `{ name, path }` documented:

```yaml

context_outputs: array of ContextOutput objects (optional — capture values from

this step's response into the runner's context accumulator so later steps can

reference them via $context.). Each entry:

- name: string (the context variable to populate; MUST be unique within the

storyboard run)

path: string (JSON path against this step's response body, e.g.

"media_buy_id", "accounts[0].account_id", "plans[0].plan_id")

```

A storyboard using the new `generate:` form will pass the SDK runner once adcp-client#1006 lands but will fail any spec-side lint that enforces the documented shape.

Asks

  1. Update `storyboard-schema.yaml` to document the `generate` field as a sibling of `path` with mutual-exclusion ("exactly one of `path` or `generate` MUST be set"). Mirror the loader-level enforcement already shipped in adcp-client#1006.

  2. Document the supported generator names: `uuid_v4` and `opaque_id` (both produce a UUID v4; the two names exist for spec-vs-implementation framing).

  3. Add a worked example near the existing `context_outputs` block showing the `task_id` threading pattern that motivated the addition.

Storyboard authors who'd consume this

  • The training-agent's `create_media_buy_async.yaml` storyboard (currently captures `forced_task_id` from the controller's echoed response — a roundabout pattern the new `generate` shape simplifies)
  • Any future multi-step storyboard that needs deterministic correlation IDs

References

  • adcp-client#1006 — the SDK-side implementation
  • adcp-client#1001 — the issue that motivated the addition

Activity

  1. added
    claude-triaging
    on Apr 25, 2026
  2. bokelley commented on Apr 25, 2026

    @bokelley
    ContributorAuthor

    Triage

    Classification: Spec / compliance-schema update
    Bucket(s): compliance suite
    Status: deferred
    Blocked-on: adcp-client#1006 — resurfaces on merge


    Triaged by Claude Code. Session: https://claude.ai/code/session_01FM5adexVTKYmLoMZ9ErUNK


    Generated by Claude Code

  3. added
    claude-triaged
    and removed
    claude-triaging
    on Apr 25, 2026
  4. bokelley commented on May 13, 2026

    @bokelley
    ContributorAuthor

    /triage execute

    Blocker adcontextprotocol/adcp-client#1006 merged 2026-04-25. Resurfacing — please pick up the compliance-schema update (allow generate field on context_outputs entries) and ship.

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

    claude-triaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions