@@ -37,7 +37,7 @@ Autonomous clients need predictable, auditable policy and trust rails. With well
3737## At a glance
3838
3939- ** Discovery:** ` /.well-known/peac.txt ` (fallback ` /peac.txt ` )
40- - ** Wire version:** ` 0.9.11 ` (set header ` X-PEAC-Protocol : 0.9.11 ` ; emit lowercase on wire if you prefer )
40+ - ** Wire version:** ` 0.9.8 ` (set header ` x-peac-protocol : 0.9.8 ` )
4141- ** Headers:** lowercase ` x-peac-* ` ; parsers MUST treat header names case-insensitively
4242- ** Media:** ` application/peac+json ` (content), ` application/problem+json ` (errors), ` application/jwk-set+json ` (JWKS)
4343- ** Receipts:** detached JWS (` typ: application/peac-receipt+jws ` ) using JCS
@@ -76,7 +76,7 @@ Autonomous clients need predictable, auditable policy and trust rails. With well
7676pnpm add -g @peacprotocol/cli @peacprotocol/core
7777
7878npx peac init # scaffold peac.txt with defaults
79- npx peac validate peac.txt # Expected: Valid PEAC 0.9.11 policy
79+ npx peac validate peac.txt # Expected: Valid PEAC 0.9.8 policy
8080
8181# Preferred path
8282# /.well-known/peac.txt
@@ -117,7 +117,7 @@ Common pitfalls: invalid schema returns `application/problem+json` 400.
117117
118118---
119119
120- ## Minimal ` peac.txt ` (0.9.11 wire)
120+ ## Minimal ` peac.txt ` (docs train 0.9.11, wire 0.9.8 )
121121
122122``` txt
123123# /.well-known/peac.txt
@@ -171,14 +171,14 @@ More examples: [docs/examples.md](docs/examples.md)
171171
172172Adapters bridge PEAC to payment rails, agent protocols, provenance, and chains. Lifecycle: simulation → staging → production.
173173
174- | Adapter | Status (0.9.11) | Notes |
175- | ---------- | --------------- | ------------------------------ |
176- | ** MCP** | Beta | Agent protocol adapter |
177- | ** A2A** | Beta | Agent-to-Agent negotiation |
178- | ** x402** | Stable | Payment rail |
179- | ** Stripe** | Stable | Payment rail |
180- | Chainlink | Preview | Oracle/provenance integrations |
181- | peaq | Preview | DePIN/IoT sharing + receipts |
174+ | Adapter | Status (0.9.11 docs ) | Notes |
175+ | ---------- | -------------------- | ------------------------------ |
176+ | ** MCP** | Beta | Agent protocol adapter |
177+ | ** A2A** | Beta | Agent-to-Agent negotiation |
178+ | ** x402** | Stable | Payment rail |
179+ | ** Stripe** | Stable | Payment rail |
180+ | Chainlink | Preview | Oracle/provenance integrations |
181+ | peaq | Preview | DePIN/IoT sharing + receipts |
182182
183183Details & examples: [ docs/interop.md] ( docs/interop.md ) · Propose new adapters via [ PEIPs] ( docs/peips.md )
184184
@@ -221,6 +221,38 @@ if (access.granted) {
221221
222222## HTTP semantics & samples
223223
224+ ** Example API request with curl:**
225+
226+ ``` bash
227+ curl -X POST https://demo.peac.dev/peac/agreements \
228+ -H " x-peac-protocol: 0.9.8" \
229+ -H " content-type: application/json" \
230+ -H " x-api-key: your-key" \
231+ -d ' {
232+ "capabilities": ["read", "summarize"],
233+ "max_charge": "5.00",
234+ "currency": "USD"
235+ }'
236+ ```
237+
238+ ** JavaScript example:**
239+
240+ ``` javascript
241+ const response = await fetch (' https://demo.peac.dev/peac/agreements' , {
242+ method: ' POST' ,
243+ headers: {
244+ ' x-peac-protocol' : ' 0.9.8' ,
245+ ' content-type' : ' application/json' ,
246+ ' x-api-key' : apiKey,
247+ },
248+ body: JSON .stringify ({
249+ capabilities: [' read' , ' summarize' ],
250+ max_charge: ' 5.00' ,
251+ currency: ' USD' ,
252+ }),
253+ });
254+ ```
255+
224256** 400 Bad Request** (validation error)
225257
226258``` json
0 commit comments