You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: SPEC.md
+25-25Lines changed: 25 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,21 +7,21 @@ This specification defines the formal, normative rules for the CommandLayer Comm
7
7
8
8
---
9
9
10
-
# **0. Normative Keywords**
10
+
##**0. Normative Keywords**
11
11
12
12
The key words **MUST**, **MUST NOT**, **REQUIRED**, **SHALL**, **SHALL NOT**, **SHOULD**, **SHOULD NOT**, **RECOMMENDED**, **MAY**, and **OPTIONAL** are to be interpreted as defined in **RFC 2119**.
13
13
14
14
---
15
15
16
-
# **1. Introduction**
16
+
##**1. Introduction**
17
17
18
18
1.1 The CommandLayer Protocol Commons defines the canonical verb layer and message shapes for **Agent‑to‑Agent (A2A)** communication.
19
19
1.2 The Commons is **minimal**, **domain‑agnostic**, and provides a universal base layer for all agent frameworks.
20
20
1.3 This specification is aligned with **x402** (agent invocation) and **ERC‑8004** (schema discovery + ENS TXT patterns).
21
21
22
22
---
23
23
24
-
# **2. Scope**
24
+
##**2. Scope**
25
25
26
26
The Commons standardizes:
27
27
@@ -40,7 +40,7 @@ Out of scope (defined in other repos):
40
40
41
41
---
42
42
43
-
# **3. Conformance**
43
+
##**3. Conformance**
44
44
45
45
A system **CONFORMS** to the CommandLayer Commons if it:
46
46
@@ -53,7 +53,7 @@ A “Commons‑Compatible Agent” is any agent capable of consuming a valid req
53
53
54
54
---
55
55
56
-
# **4. Canonical Verbs & (v1.0.0)**
56
+
## **4. Canonical Verbs & (v1.0.0)**
57
57
58
58
The following are the **ONLY canonical verbs** in v1.0.0:
59
59
@@ -77,11 +77,11 @@ Rules:
77
77
78
78
---
79
79
80
-
# **5. Message Model**
80
+
##**5. Message Model**
81
81
82
82
A message is either a **request** or **receipt**.
83
83
84
-
## **5.1 Request Requirements**
84
+
###**5.1 Request Requirements**
85
85
86
86
A request **MUST** include:
87
87
@@ -101,7 +101,7 @@ Minimal normative example:
101
101
}
102
102
```
103
103
104
-
## **5.2 Receipt Requirements**
104
+
###**5.2 Receipt Requirements**
105
105
106
106
A receipt **MUST** include:
107
107
@@ -123,9 +123,9 @@ Normative example:
123
123
124
124
---
125
125
126
-
# **6. Normative Field Definitions**
126
+
##**6. Normative Field Definitions**
127
127
128
-
## **6.1 `x402`**
128
+
###**6.1 `x402`**
129
129
```json
130
130
{
131
131
"verb": "<canonical-verb>",
@@ -137,14 +137,14 @@ Rules:
137
137
-`verb`**MUST** match the canonical verb folder.
138
138
-`version`**MUST** equal `"1.0.0"` for this specification.
139
139
140
-
## **6.2 `actor`**
140
+
###**6.2 `actor`**
141
141
The actor **MUST** be one of:
142
142
143
143
- ENS name (e.g., `agent.eth`)
144
144
- DID (e.g., `did:key:...`)
145
145
- Valid URI
146
146
147
-
## **6.3 `trace`**
147
+
###**6.3 `trace`**
148
148
```json
149
149
{
150
150
"requestId": "string",
@@ -155,14 +155,14 @@ The actor **MUST** be one of:
155
155
-`requestId`**MUST** be present in both request & receipt.
156
156
-`nonce`**MUST** prevent replay.
157
157
158
-
## **6.4 `status`**
158
+
###**6.4 `status`**
159
159
-`status`**MUST** be `"ok"` or `"error"`.
160
160
- If `"error"`, an error object **MUST** be present.
161
161
- If `"ok"`, result **MUST** be present.
162
162
163
163
---
164
164
165
-
# **7. Schema Requirements**
165
+
##**7. Schema Requirements**
166
166
167
167
7.1 Schemas **MUST** be JSON Schema Draft 2020‑12.
168
168
7.2 Validation **MUST** use strict mode (e.g., Ajv strict).
0 commit comments