Repository navigation
Description
Problem
The runtime (runStoryboard in src/lib/testing/storyboard/runner.ts) accepts a webhook_receiver option that binds an ephemeral HTTP listener for outbound-webhook conformance grading. Storyboards with expect_webhook / expect_webhook_retry_keys_stable / expect_webhook_signature_valid pseudo-tasks inject the receiver URL into push_notification_config.url via {{runner.webhook_base}} / {{runner.webhook_url:<step_id>}} substitutions.
The CLI (bin/adcp.js storyboard run) doesn't expose this. Result: any storyboard whose grading requires the webhook receiver marks its whole track as status: "skipped":
idempotencystoryboard — 6/6 scenarios pass individually, overall_status"partial", track skipped with"Test-kit contract 'webhook_receiver_runner' is not configured on this runner."webhook_emissionstoryboard — 4/4 scenarios pass individually, overall_status"partial", all 7 steps skipped,"No applicable tracks found for this agent".- Sales specialisms that grade
window_update/ IO-completion webhook flows inherit the same skip.
Effect: an agent emitting fully spec-compliant signed RFC 9421 webhooks with stable idempotency_key across retries gets no grading credit from adcp storyboard run. The storyboard runner's webhook-signing verifier (verifyWebhookSignature) never actually runs against the agent.
Fix
Add a --webhook-receiver CLI option that wires the runtime's existing webhook_receiver plumbing. Suggested shape:
```
--webhook-receiver [mode] Enable the ephemeral webhook receiver. mode:
"loopback" (default) binds on 127.0.0.1;
"proxy" uses --webhook-receiver-public-url.
--webhook-receiver-port (optional) Force a specific port; defaults to auto.
--webhook-receiver-public-url (optional, proxy mode only) Operator-supplied
public base URL (e.g. ngrok).
```
Maps 1:1 to the existing runStoryboardOptions.webhook_receiver: { mode, host, port, public_url } option. Defaulting to loopback mode matches the agent-skill-storyboard.ts harness's own needs (local-only runs).
Alternative: opt-in automatically when the storyboard contains `expect_webhook*` steps, logging a line noting the receiver is up. Simpler for first-time users.
Impact
Closes the last tool-chain gap between skill → agent → grade on webhook surfaces. Combined with #673 (auth) this makes the capstone harness a true end-to-end conformance check. Without it, `webhook_emission` and `idempotency` storyboards are effectively ungraded via CLI even when the underlying storyboards and verifiers are complete and correct.
Discovered via
Running `scripts/manual-testing/agent-skill-storyboard.ts` against 5 skill × storyboard pairs after today's webhook + idempotency skill updates. Agents ship correctly-signed, correctly-keyed webhooks end-to-end (manually verified against a local sink) but `adcp storyboard run` can't observe them. Reports in `.context/harness-runs/*/output.json`.
Activity
feat(cli): --webhook-receiver flag so expect_webhook* steps can grade (…