← LinkedIn demo

§ topic

AILANG × agent-ready

When agents start transacting on your behalf — and they will — make your site speak their protocols. ailang serve-api takes typed AILANG functions and exposes them as REST + MCP + A2A + OpenAPI 3.1 in one command. Your catalogue, your pricing engine, your customer-facing API: contract-verified, agent-discoverable, no glue code.

trigger Comment your URL with #ailangAgentReady on any Sunholo LinkedIn post. Comment on LinkedIn

Leaderboard

refreshed daily · last update 2026-06-02 · 18 sketches

The protocols agents reach for

Six surfaces an agent looks for on your site. The rubric detects whether you ship each one; ailang serve-api generates most of them from your typed function signatures.

01A2AAgent discovery card

Auto-generated metadata that any agent scanning /.well-known/ will find.

/.well-known/agent.json

Rubric — how we score it

Body mentions /.well-known/agent.json or quotes agent.json.

2 pts max

AILANG ships

ailang serve-api writes the A2A agent card automatically from your module exports — capabilities, skills, schemas, authentication metadata. Agents following the A2A discovery convention land on a complete description of what you offer.

02APIOpenAPI 3.1 + Swagger/ReDoc

Machine-readable spec generated from Hindley-Milner signatures.

openapi.json · /api/_meta/

Rubric — how we score it

Body mentions openapi.json, openapi.yaml, "swagger", "redoc", or a public API docs route (/api/docs, developers., etc.). Two signals; up to 4 pts combined.

4 pts max

AILANG ships

Function types are the spec. Parameters, return type, and effect row determine paths, request bodies, response schemas, and security requirements automatically. Swagger UI lives at /api/_meta/docs; ReDoc at /api/_meta/redoc. No separate spec file to drift.

03MCPModel Context Protocol

Your typed functions become tools Claude Desktop, Cursor, and Cline can call.

POST /mcp/

Rubric — how we score it

Body mentions /mcp/, /mcp/sse, mcp-server, or "model context protocol".

2 pts max

AILANG ships

Same module, exposed as MCP tools. Arguments are validated against the same requires contracts the REST endpoint enforces. Run as HTTP at /mcp/ or stdio for desktop hosts.

04WHKWebhooks

Event subscriptions modelled as typed handler functions with declared side effects.

/webhooks/...

Rubric — how we score it

Body mentions webhook, /webhooks, "callback url", or callback_url.

2 pts max

AILANG ships

ailang serve-api handles webhooks as typed handler functions. Each handler's effect row declares exactly what it can do; payload schemas come from the input type; retry semantics belong to the handler, not the framework.

05RTLRate-limit contract

Capability budgets are the symmetric server-side primitive for what agents see as 429s.

429 · X-RateLimit-*

Rubric — how we score it

Body mentions "rate limit", "rate-limit", x-ratelimit, 429, or "throttl…".

2 pts max

AILANG ships

Net @limit=N caps each function's outbound calls at compile time. The runtime enforces it, surfacing as 429s. Agents reading your docs get the same contract the type system enforces server-side.

06SSEStreaming / live events

Server-Sent Events and WebSockets as a single typed Stream effect.

text/event-stream

Rubric — how we score it

Body mentions "server-sent events", text/event-stream, /sse, EventSource, or "streaming endpoint".

2 pts max

AILANG ships

std/stream exposes SSE and WebSocket through one Stream effect. Handlers receive typed event values, not raw bytes; back-pressure is in the effect signature. Agents reading incrementally get the same contract as a single-shot request.

Moonshot protocols — emerging in 2026

Four next-generation agent protocols, each scored 1pt in the rubric. Pre-mass-adoption today; the AILANG primitives they map to are already shipping.

07AGUIAG-UI streaming events

Agent-User Interaction Protocol — 16 typed lifecycle / text / tool-call / state events streamed from agent backend to frontend.

RUN_STARTED · TEXT_MESSAGE_CONTENT · TOOL_CALL_RESULT

Rubric — how we score it

Body mentions ag-ui, "agent-user interaction", ag-ui-protocol, or agentcore-runtime-ag-ui.

1 pts max

AILANG ships

The 16 AG-UI event types map directly to an ADT. std/stream handles SSE/WebSocket transport; AILANG's exhaustive pattern matching makes a skipped event a compile error. AWS Bedrock AgentCore added support in March 2026.

08X402x402 HTTP-native payments

HTTP 402 Payment Required revival — agents pay APIs via signed crypto payment payloads. $600M+ annualised volume on Base/Solana.

PAYMENT-REQUIRED · PAYMENT-SIGNATURE

Rubric — how we score it

Body mentions x402, x402.org, or "payment-required header".

1 pts max

AILANG ships

Net @endpoint-scoped capability budgets bound where the payment payload can flow; requires { amount <= budget } gates the signature; IFC labels keep the signing key tainted away from public sinks. Strong AILANG mapping; high volume on crypto rails today.

09AP2AP2 Agent Payments Protocol

Google + Mastercard + 60 orgs — cryptographically signed Mandates (Intent + Cart) authorise agents to spend with price/timing/condition bounds.

intent mandate · cart mandate

Rubric — how we score it

Body mentions ap2-protocol, "agent payments protocol", "intent mandate", "cart mandate", or "payment mandate".

1 pts max

AILANG ships

Mandates are contracts. requires { intent.price <= mandate.maxPrice } + ensures { cart.total <= intent.price } is a one-to-one translation of AP2's Mandate semantics into AILANG. Z3 verifies the bounds at compile time, not at settlement.

10UTCPUTCP universal tool calling

MCP alternative. Tools described in a JSON UTCPManual and called via their native protocols (HTTP, gRPC, CLI) — no proxy server.

UTCPManual.json

Rubric — how we score it

Body mentions utcp, "universal tool calling protocol", or utcpmanual.

1 pts max

AILANG ships

AILANG function signatures + ailang serve-api emit metadata equivalent to a UTCPManual — name, input/output schema, native endpoint — so consumers can discover and call directly without a proxy in between. Positioned vs MCP; adoption thinner today.