|
18 | 18 |
|
19 | 19 | ---- |
20 | 20 |
|
21 | | -Autonomous agents are **breaking in the wild**: |
| 21 | +Autonomous agents fail at scale without shared meaning: |
22 | 22 |
|
23 | | -- Every agent reinventing verbs |
24 | | -- No shared validation contracts |
25 | | -- No trust in execution or receipts |
26 | | -- Interop collapses outside a single platform |
| 23 | +- New verbs reinvented everywhere |
| 24 | +- No trustable receipts |
| 25 | +- No cross-runtime interoperability |
| 26 | +- Closed ecosystems with fragile glue logic |
| 27 | + |
| 28 | +**Protocol-Commons** fixes this with a global action language: |
| 29 | +canonical verbs + JSON Schemas + strict validation. |
| 30 | + |
| 31 | +If agents can’t agree on what actions mean → **nothing works**. |
27 | 32 |
|
28 | | -**Protocol-Commons fixes this** — a **global action language** that lets any agent discover, collaborate, and verify execution across runtimes. |
29 | 33 |
|
30 | 34 | --- |
31 | 35 | ## Real verbs. Real receipts. |
@@ -75,31 +79,60 @@ SDKs → Runtimes → x402 → ENS → Receipts |
75 | 79 | npm install @commandlayer/protocol-commons |
76 | 80 |
|
77 | 81 | ``` |
78 | | -Import and inspect a canonical verb schema: |
| 82 | +**Validate a request against a canonical verb schema** |
| 83 | +``` |
| 84 | +npx cl-validate examples/v1.0.0/commons/summarize/request.json |
| 85 | +# ✓ VALID — trace: bafybeieoynknza... |
| 86 | +``` |
| 87 | +**Programmatic usage** |
79 | 88 | ``` |
80 | 89 | import Ajv from "ajv"; |
81 | | -import analyzeRequest from "@commandlayer/protocol-commons/schemas/v1.0.0/commons/analyze/requests/analyze.request.schema.json"; |
| 90 | +import req from "@commandlayer/protocol-commons/schemas/v1.0.0/commons/analyze/requests/analyze.request.schema.json"; |
82 | 91 |
|
83 | 92 | const ajv = new Ajv({ strict: true }); |
84 | | -const validate = ajv.compile(analyzeRequest); |
| 93 | +const validate = ajv.compile(req); |
85 | 94 |
|
86 | | -const input = { |
| 95 | +console.log(validate({ |
87 | 96 | verb: "analyze", |
88 | | - content: "CommandLayer defines the semantics of agent behavior." |
89 | | -}; |
| 97 | + content: "CommandLayer defines semantics." |
| 98 | +})); |
| 99 | +
|
90 | 100 |
|
91 | 101 | console.log(validate(input)); // true or false |
92 | 102 | console.log(validate.errors); // schema-aligned diagnostics if invalid |
93 | 103 | ``` |
94 | 104 |
|
95 | | -**What this gives you:** |
| 105 | +## What Commons enables |
| 106 | + |
| 107 | +- **Deterministic action contracts** |
| 108 | +- **Runtime-level validation** |
| 109 | +- **Trustable receipts** |
| 110 | +- **Cross-vendor interoperability** |
| 111 | +- **Future-proof machine intent** |
| 112 | + |
| 113 | +Protocol-Commons is the **semantic foundation** of the CommandLayer stack. |
| 114 | + |
| 115 | +--- |
| 116 | + |
| 117 | +## Why this exists |
| 118 | + |
| 119 | +Fragmented agents → isolated ecosystems → brittle automation. |
96 | 120 |
|
97 | | -- Deterministic action contracts |
98 | | -- Runtime-level validation |
99 | | -- Reliable cross-agent interoperability |
100 | | -- Immediate SDK/receipt predictability |
| 121 | +Protocol-Commons delivers: |
101 | 122 |
|
102 | | -### Protocol‐Commons is the **semantic foundation** of the CommandLayer stack. |
| 123 | +- **Shared semantics** |
| 124 | +- **Typed request/receipt envelopes** |
| 125 | +- **Receipt-level provability** |
| 126 | +- **Portable behavior across runtimes** |
| 127 | +- **Open standards alignment** |
| 128 | + - JSON Schema 2020-12 |
| 129 | + - x402 |
| 130 | + - ERC-8004 |
| 131 | + |
| 132 | +The **language** is open. |
| 133 | +Economics happen in higher layers. |
| 134 | + |
| 135 | +--- |
103 | 136 |
|
104 | 137 | ## Table of Contents |
105 | 138 | - [Overview](#overview) |
@@ -138,20 +171,6 @@ They form the universal foundation for: |
138 | 171 |
|
139 | 172 | --- |
140 | 173 |
|
141 | | -## **Why this exists** |
142 | | - |
143 | | -Modern autonomous agents face **fragmentation**: |
144 | | - |
145 | | -- Each system invents its own action vocabulary |
146 | | -- No consistent request/receipt semantics |
147 | | -- Interoperability breaks across products and platforms |
148 | | -- Validation behavior diverges without typed guarantees |
149 | | -- Trust depends on closed execution environments |
150 | | - |
151 | | -This creates isolated agent ecosystems — difficult to scale, govern, or integrate. |
152 | | - |
153 | | ---- |
154 | | - |
155 | 174 | **Protocol-Commons** provides a **neutral, versioned foundation** that ensures: |
156 | 175 |
|
157 | 176 | - **Shared semantics** across heterogeneous agent frameworks |
@@ -403,3 +422,4 @@ CommandLayer follows a clean separation of concerns: |
403 | 422 |
|
404 | 423 |
|
405 | 424 |
|
| 425 | + |
0 commit comments