Skip to content

agent-skill-storyboard harness: wire --auth through so skill-compliant agents don't fail auth_required #673

Closed

Description

@bokelley

Problem

The capstone harness at scripts/manual-testing/agent-skill-storyboard.ts doesn't configure authentication on either side of the test:

  • The prompt it gives Claude doesn't mention a test API key.
  • runGrader at scripts/manual-testing/agent-skill-storyboard.ts:223 calls adcp storyboard run <url> <id> --json --allow-http — no --auth token.

Result: whether a harness run succeeds or fails is non-deterministic across Claude instances:

  • If Claude ignores the skill's "Authentication is mandatory" directive and ships an unauthenticated agent, the storyboard runs (and the agent would fail security_baseline separately).
  • If Claude follows the skill correctly and wires verifyApiKey / verifyBearer per serve({ authenticate }), the grader can't get past auth → overall_status: "auth_required", 0 scenarios graded.

Observed on three runs: sales-guaranteed went one way (30/42 scenarios graded, no auth), sales-broadcast-tv and deterministic-testing went the other (auth_required, 0 graded). Same skill, same harness, different outcomes — non-determinism driven by Claude's per-run choice on how to honor the skill.

Fix

The harness should mirror what a real compliance test does — a registered counterparty with a known static API key. Two small changes:

  1. Update the prompt at buildPrompt() (scripts/manual-testing/agent-skill-storyboard.ts:82) to tell Claude:
    • Wire verifyApiKey({ keys: { 'compliance-runner': { principal: 'compliance-runner' } } }) as the authenticator.
    • Match the security_baseline requirement without blocking the grader.
  2. Pass --auth compliance-runner in runGrader() at scripts/manual-testing/agent-skill-storyboard.ts:223:
    spawnSync('node', [cliPath, 'storyboard', 'run', url, storyboardId,
                       '--json', '--allow-http', '--auth', 'compliance-runner'], ...)

With both changes, a fully-skill-compliant agent gets graded against the storyboard instead of bouncing on auth.

Alternative: introduce a --sandbox-unauth mode on serve({ authenticate }) that accepts a compliance-runner principal without a credential, so the harness doesn't need the key round-trip at all. Less clean — authentication is a real production concern worth exercising under compliance.

Discovered via

Running agent-skill-storyboard.ts across 5 skill × storyboard pairs after today's skill updates. Two of the runs (sales-broadcast-tv, deterministic-testing) hit auth_required despite the agents being correctly built. See @adcp/client/.context/harness-runs/*/output.json.

Activity

  1. added a commit that references this issue on May 23, 2026
    95ae9be
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