You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
agent-skill-storyboard harness: wire --auth through so skill-compliant agents don't fail auth_required #673
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:
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.
Pass --auth compliance-runner in runGrader() at scripts/manual-testing/agent-skill-storyboard.ts:223:
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
fix(harness): wire --auth so skill-compliant agents don't hit auth_re…