{"slug": "one-endpoint-eight-tools-a-keyless-agent-protocol-with-signed-webhooks-verified", "title": "One Endpoint, Eight Tools: A Keyless Agent Protocol With Signed Webhooks, Verified on Production", "summary": "Agentbadge.xyz launched a keyless agent-interaction protocol exposing eight live tools through a generated capability manifest at GET /.well-known/agent-interaction.json and a plain JSON-RPC endpoint at POST /mcp/agent-interaction, with reads keyless and an optional Bearer agb_ key raising the rate limit from 60/min to 120/min. create_task_request validates callback_url (HTTPS-only, every resolved IP must be public) and returns a per-request webhook_secret once, with terminal-state callbacks signed X-AgentBadge-Signature: t,v1 where v1 = HMAC(secret, t.body). An external audit returned BLOCK on 2 Criticals (first-safe-IP DNS pin, DNS-rebinding delivery window) plus 4 Highs; all were fixed and re-verified to APPROVE WITH NITS, and the manifest still prints webhooks.status: degraded because the outbox remains in-process.", "body_md": "# One Endpoint, Eight Tools: A Keyless Agent Protocol With Signed Webhooks, Verified on Production\n\nagentbadge.xyz now answers agents directly: one well-known manifest and one JSON-RPC endpoint expose a whitelist of eight live tools - keyless reads, optional agb_ keyed lane, idempotent submit with per-request whsec_ secrets, and terminal-state callbacks signed t,v1 over the raw body. The manifest is honest to a fault (webhooks.status: degraded), and an external audit went BLOCK on two criticals - all fixed and re-verified, receipts inside.\n\nagentbadge.xyz exposes an agent-interaction protocol: GET /.well-known/agent-interaction.json is a generated capability manifest, and POST /mcp/agent-interaction answers plain JSON-RPC (no SSE, no batch) with a whitelist of eight tools - discover, ask, get_request_status, create_task_request, search_knowledge, submit_feedback, request_review, report_problem - all status:live and all riding the same code paths and rate buckets as the REST endpoints they mirror. Reads are keyless; an optional Bearer agb_ lifts the lane from anon 60/min to keyed 120/min. create_task_request validates callback_url before persisting (HTTPS-only, every resolved IP must be public) and returns a per-request webhook_secret once; on terminal state the outbox delivers a POST signed X-AgentBadge-Signature: t,v1 where v1 = HMAC(secret, t.body) - verified byte-for-byte on a live delivery. External audit came back BLOCK (2 Criticals - first-safe-IP DNS pin, DNS-rebinding delivery window - plus 4 Highs); every Critical and High is fixed and re-verified, verdict APPROVE WITH NITS, and the manifest honestly prints webhooks.status degraded because the outbox is still in-process.\n\n## Why does a site need a protocol for agents at all?\n\n*Agents should not have to know your URL layout to use your site.*\n\nFor a junior: until now our public surface was a set of REST endpoints (`/api/requests`, `/api/requests/qa`, feedback, reviews). They work, but the agent has to discover them out-of-band - read our docs, guess the paths, hardcode them. That is exactly the \"go read the docs and wire a client\" option we said was bad. The fix is a contract the agent can find by itself: one file at a well-known address that lists what the site can do, and one endpoint that does it. That is what shipped:\n\n- `GET /.well-known/agent-interaction.json` - the capability manifest. Eight tools with per-tool`status` ,`auth` ,`rateClass` ,`channel` and`rest_equivalent` ; the auth model; the rate limits; the webhook contract. Machine-readable, no account needed to read it.\n- `POST /mcp/agent-interaction` - plain JSON-RPC over HTTP. No SSE, no sessions, no batch arrays.`tools/list` hands back the same roster the manifest describes - because both are generated from one registry in the codebase, they cannot drift apart by accident.\n- `GET /for-agents` - a carrier page for browser-side agents: five page-scoped WebMCP tools (a keyless subset) injected into`document.modelContext` , same registry, smaller shelf.\n\nThe interesting constraint is what is *not* there. There is no way to register, no OAuth dance, no \"contact sales for an API key\". The eight tools ride on services we already shipped (the request inbox, the knowledge search, the feedback pipeline) - the endpoint is a protocol surface, not a new backend pretending to be one.\n\n## What does an agent see when it knocks?\n\n*One registry generates the manifest, the tools/list answer and the WebMCP shelf - parity by construction, not by convention.*\n\nHere is the real manifest, fetched from production as we write this:\n\nThree details worth reading twice:\n\n- **`webhooks.status: \"degraded\"`** - the manifest admits the outbox is in-process: deliveries survive retries inside a running process but a restart drops queued rows. The durable Postgres adapter exists in the database package and is staged, but until it is wired in, the manifest says degraded rather than durable. An honest manifest is a feature: an agent that trusts us should know exactly where the floor is.\n- **Every tool is `status:\"live\"`** - no` planned` , no`beta` . When a tool cannot be served it answers a typed`NOT_AVAILABLE` , not silence or a 500.\n- **`rest_equivalent` per tool** - the agent learns that`ask` is the same call as`GET /api/requests/qa` . REST and the protocol share one code path and one rate bucket: there is no double-dip where a caller burns one allowance over REST and a second over JSON-RPC.\n\nAnd the roster is a whitelist. Calling `agentbadge_nuke` gets you a `-32601` that politely lists the eight names that do exist - discovery is a feature, everything outside the list is not.\n\n*The manifest that admits its floor. `degraded` is a promise about what is true, not a confession of weakness.*\n\n## How does an agent file a request - and get called back?\n\n*The request id is the capability: nobody can list requests, and a wrong id returns a typed `not_found`, not a 403 that admits it exists.*\n\nThe write path is keyless too. `create_task_request` takes a payload, an `idempotency_key` and an optional `callback_url`. The real answer from production:\n\nTwo things in that response deserve attention:\n\n- **`webhook_secret`** -` whsec_<base64url-43>` , returned*once* and never again. It is derived per request:`HMAC(master, \"request:\"+id)` - which means every requester gets a secret scoped to their own callback and cannot forge a signature for somebody else's request.\n- **Idempotent replay is free.** Same key and same body returns`duplicate:true` and the same`request_id` - the hard lane (one submit per ~2 hours per fingerprint) is not spent twice. The fingerprint is`HMAC(ip|UA|headers-digest)` : we verified this on production by submitting from a second egress IP - fresh fingerprint, fresh lane, instant accept - and from the same fingerprint, an honest`RATE_LIMITED` with`retry_after_seconds` .\n\nIf the agent passed `callback_url`, intake validates it *before* anything is persisted: HTTPS only, DNS resolved, and **every** resolved IP must be public - a callback pointing at `169.254.169.254` (cloud metadata, the classic SSRF prize) is rejected with a typed `INVALID_INPUT` before it costs a lane slot or a database row.\n\n*Two letters at the gate. The one addressed to the metadata service never makes it past intake.*\n\nThen the lifecycle runs: a human (or automation) moves the request to a terminal state, the outbox enqueues at the same commit point, and the worker delivers a signed POST. We triggered a break-glass `failed` transition on a real request and caught the letter on the wire:\n\nThe body is the frozen public projection - request id, state, the operator's response if any - and nothing internal. No fingerprints, no internal keys.\n\n## What does the signature actually prove?\n\n*A pretty header proves nothing. The math is the point.*\n\n`X-AgentBadge-Signature` carries `t=<unix-seconds>,v1=<hex>`, computed as `v1 = HMAC-SHA256(secret, \"<t>.<raw-body>\")`. The timestamp binds the signature to a delivery instant (300s tolerance), so a replayed letter with a stale `t` fails at the receiver.\n\nWe verified it ourselves, end to end, on the delivery above:\n\n- The raw body is exactly 166 bytes - the same as `content-length` , so the hash ran over the wire bytes, not a reformatted copy.\n- `HMAC(whsec_, \"1795769043.\" + body)` produced`143d85e2…5249c3` - identical to the`v1` in the header.\n- Tamper check: the same computation over a forged body (`\"failed\"` flipped to`\"completed\"` ) yields a different hash. Change one byte of the letter and the seal breaks.\n\nThis matters more than it looks. Before the audit fix, the plan was one shared platform key for all webhooks - which would have let any receiver forge deliveries for every other receiver. The per-request derived secret collapses that: your `whsec_` verifies your letters and only your letters.\n\n## What did the audit break?\n\n*We shipped it, then paid an auditor to break it. It broke - twice critically - and the receipts are in the article because that is the story.*\n\nAn external review (28 module files) came back **BLOCK** on the callback/webhook path, with 2 Criticals, 4 Highs and 17 Mediums. The two Criticals are the instructive ones:\n\n- **C1 - \"first safe IP wins\".** The DNS pin used to return the first public address from the resolution list. An attacker-controlled domain resolving to`[good-ip, evil-ip]` sailed through. The guard now requires*all* resolved IPs to be safe, with a proving test.\n- **C2 - the DNS-rebinding window.** Intake validated the hostname, but delivery re-resolved it later - a classic time-of-check/time-of-use hole. Delivery now fetches through the pinned IP per hop, and the validator hands the pinned address down the pipe.\n\nThe Highs read like a checklist of things that are easy to get \"almost right\": the shared HMAC key (now per-request `whsec_`), IPv6 prefixes that slipped the private-range guard (NAT64, 6to4, site-local, v4-compat - expanded and covered by compressed-form tests), an abuse guard that failed *open* when the body could not be read (now fail-closed, 413 pre-parse), and a manifest that claimed durability it did not have (now `degraded`, described above).\n\n*The stamp turned over. Two rounds of re-verification and a 42-test suite stand behind it.*\n\nRound two re-verified every Critical and High. Round three closed the remaining mediums and nits: **APPROVE WITH NITS, audit gate passed**, with a 42-test hardening suite standing guard over the fixes. The honest leftovers are named, not hidden: deferred mediums wait on the durable outbox adapter, and the keyed-lane path is proven in code and unit tests but not yet end-to-end on prod - we do not have an issued `agb_` key to probe with, and we say so rather than claim it.\n\n## Where is it deliberately less than perfect?\n\nThree seams we chose on purpose:\n\n- **In-process outbox.** Queued deliveries die on restart. The durable Postgres model exists (migration and repository shipped in the database package,`0.6.61` ), wiring it in is a follow-up - and the manifest says`degraded` until it is done.\n- **Per-machine buckets.** Rate limits are in-memory per machine, so a two-replica deployment roughly doubles the burst budget. That is documented in the manifest, not hidden in prose. A shared Redis lane is the upgrade path.\n- **One-submit-per-fingerprint.** The hard lane is intentionally harsh - about one request per two hours per`HMAC(ip|UA|headers)` . If your submit returns`RATE_LIMITED` with`retry_after_seconds` , that is the bouncer doing its job, not a bug. Idempotent replays stay free.\n\n## What can you verify right now?\n\nEverything above is live - check it with curl:\n\n```\n# the manifest - eight tools, honest \"degraded\" webhooks line\ncurl -s https://agentbadge.xyz/.well-known/agent-interaction.json\n\n# the roster over JSON-RPC - same eight names, generated from one registry\ncurl -s https://agentbadge.xyz/mcp/agent-interaction \\\n  -H 'content-type: application/json' \\\n  -d '{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"tools/list\"}'\n\n# a typed not_found - id is a capability, no enumeration\ncurl -s https://agentbadge.xyz/mcp/agent-interaction \\\n  -H 'content-type: application/json' \\\n  -d '{\"jsonrpc\":\"2.0\",\"id\":2,\"method\":\"tools/call\",\"params\":{\"name\":\"agentbadge_get_request_status\",\"arguments\":{\"request_id\":\"rq_no_such\"}}}'\n\n# the whole suite, if you want the receipts yourself:\n# hackathon/server/scripts/verify-epic-233.sh prod [--with-mutations]\n# 21 PASS / 0 FAIL / 1 SKIP on prod at publication time\n```\n\nHonest warnings before you burn your lane: `create_task_request` is one-per-fingerprint per ~2h, `callback_url` must be public HTTPS, and a human still reads the inbox - answers take hours, not milliseconds.\n\nA manifest is not a promise that the site is fast or durable - it is a promise that the agent can read the contract and check our signature. The door is one; the windows are eight; the seal is math.", "url": "https://wpnews.pro/news/one-endpoint-eight-tools-a-keyless-agent-protocol-with-signed-webhooks-verified", "canonical_source": "https://agentbadge.xyz/blog/arc-c66-agent-protocol", "published_at": "2026-11-27 00:00:00+00:00", "updated_at": "2026-11-27 09:44:43.823705+00:00", "lang": "en", "topics": ["ai-agents", "agent-protocols", "developer-tools", "ai-tools"], "entities": ["agentbadge.xyz", "/mcp/agent-interaction", "create_task_request", "X-AgentBadge-Signature", "WebMCP"], "also_reported_by": [], "takeaway": "agentbadge.xyz's manifest and tools/list are generated from one registry so they cannot drift, and its webhook callbacks are signed v1 = HMAC(secret, t.body) with a per-request whsec_ secret returned once at create_task_request time.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/one-endpoint-eight-tools-a-keyless-agent-protocol-with-signed-webhooks-verified", "markdown": "https://wpnews.pro/news/one-endpoint-eight-tools-a-keyless-agent-protocol-with-signed-webhooks-verified.md", "text": "https://wpnews.pro/news/one-endpoint-eight-tools-a-keyless-agent-protocol-with-signed-webhooks-verified.txt", "jsonld": "https://wpnews.pro/news/one-endpoint-eight-tools-a-keyless-agent-protocol-with-signed-webhooks-verified.jsonld"}}