Skip to content

bug(v3-ref-seller): storyboard terminal-error codes mismatch on three update / create scenarios #701

Closed

Description

@bokelley

Surfaced by #693 (which made the storyboard CI gate actually assert on results).

Failures

The AdCP storyboard runner — v3 reference seller (translator) job fails three scenarios with terminal-code mismatches at /adcp_error/code:

  1. media_buy_seller/measurement_terms_rejected/create_media_buy_aggressive_terms — storyboard expects TERMS_REJECTED
  2. media_buy_seller/invalid_transitions/update_unknown_media_buy — storyboard expects MEDIA_BUY_NOT_FOUND
  3. media_buy_seller/invalid_transitions/update_unknown_package — storyboard expects PACKAGE_NOT_FOUND

Each is a terminal code that cascade rules can't mask — the seller is returning some other error code in adcp_error.code (or returning success). These are real spec-conformance regressions in the v3 reference seller, not storyboard fixture issues.

Run

ci run 25732467897, job 75560889145

Full step output:

- create_media_buy_aggressive_terms [media_buy]: Error code is TERMS_REJECTED at /adcp_error/code
- update_unknown_media_buy [media_buy]: Error code is MEDIA_BUY_NOT_FOUND at /adcp_error/code
- update_unknown_package [media_buy]: Error code is PACKAGE_NOT_FOUND at /adcp_error/code

What to investigate

For each failure: pull the request/response from the storyboard run artifact (v3-storyboard-result-1.zip), confirm what code the seller actually returns, then map that to either:

  • a seller-side bug: handler returns the wrong code → fix handler
  • a translator-side bug: upstream code translation dropping/remapping the wrong code → fix the translation map
  • a spec-vs-code drift: the canonical AdCP error-code enum changed and the seller hasn't caught up → bump

Why these block #693

#693's whole purpose is to make the storyboard gate assert on results. Until these three are resolved, the v3 storyboard CI job stays red, blocking #693 from landing or making main permanently red on merge.

Acceptance

Activity

  1. added
    bug
    on May 12, 2026
  2. bokelley commented on May 14, 2026

    @bokelley
    ContributorAuthor

    Manual triage.

    Verdict: ready-to-investigate-then-fix. Three real spec-conformance bugs in the v3-ref-seller translator path.

    Investigation first (required before drafting): pull v3-storyboard-result-1.zip from run 25732467897, inspect actual adcp_error.code returned for each of the 3 steps, then categorize:

    • create_media_buy_aggressive_terms → expected TERMS_REJECTED
    • update_unknown_media_buy → expected MEDIA_BUY_NOT_FOUND
    • update_unknown_package → expected PACKAGE_NOT_FOUND

    Most likely: handler-side bug in examples/v3_reference_seller/src/platform.py mapping seller-internal errors to wire codes. Translator (examples/v3_reference_seller/src/upstream.py) is the secondary suspect.

    Coupled with #703 (same storyboard run, blocks the same gate). Likely worth one combined investigation pass even if separate PRs.

  3. bokelley commented on May 14, 2026

    @bokelley
    ContributorAuthor

    Closing as duplicate of #703 based on investigation.

    Evidence

    Pulled the CI artifact v3-storyboard-result.json from run 25732467897. All three failing steps return the identical wire payload:

    { "adcp_error": { "code": "PERMISSION_DENIED", "message": "<registry-miss boilerplate from _resolve_buyer_agent>" } }
    Step Expected Actual
    create_media_buy_aggressive_terms TERMS_REJECTED PERMISSION_DENIED
    update_unknown_media_buy MEDIA_BUY_NOT_FOUND PERMISSION_DENIED
    update_unknown_package PACKAGE_NOT_FOUND PERMISSION_DENIED

    The handler logic that would emit the spec-correct terminal codes never runs — the request is rejected at the commercial-identity gate in _resolve_buyer_agent (src/adcp/decisioning/handler.py:441-552) before reaching the handler. get_adcp_capabilities works because it explicitly bypasses auth (handler.py:1279).

    Fixing the auth regression in #703 resolves all three terminal-code mismatches here. Tracking the root cause + fix at #703.

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

    bugclaude-triaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions