Skip to content

Commit 51e9802

Browse files
authored
Update POLICY.md
1 parent 96bf970 commit 51e9802

1 file changed

Lines changed: 55 additions & 100 deletions

File tree

POLICY.md

Lines changed: 55 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -1,150 +1,105 @@
11

2-
# Protocol Commons Policy
2+
# Protocol-Commons Policy
33

4-
This document defines the canonical rules for creating, validating, and publishing verb schemas in the CommandLayer Protocol Commons.
4+
This document defines the canonical rules for creating, validating, versioning, and publishing verb schemas in the CommandLayer Protocol Commons.
55

6-
The Protocol Commons provides the universal language foundation for all agents and autonomous workflows.
6+
The Commons is the universal grammar for autonomous agents.
77

88
---
99

10-
## 1. Canonical Rules
11-
12-
All canonical verbs MUST:
13-
14-
- Be lowercase, single-word identifiers
15-
- Define both:
16-
```
17-
<verb>.request.schema.json
18-
<verb>.receipt.schema.json
19-
```
20-
- Validate under **strict Ajv** with:
21-
- Draft 2020-12
22-
- strict mode enabled
23-
- no additionalProperties
24-
- no union types beyond explicitly allowed structures
25-
----
26-
- Use deterministic `$id` URLs:
27-
```
28-
https://commandlayer.org/schemas/v1.0.0/commons/<verb>/requests/<verb>.request.schema.json
29-
```
30-
- Follow fixed directory structure:
31-
```
32-
/schemas/v1.0.0/commons/<verb>/...
33-
```
34-
- Remain **immutable** once published
35-
36-
Schemas MUST be domain-neutral and free of vendor-specific semantics.
10+
## 1. Verbs Must Remain Canonical
11+
12+
- Single lowercase word
13+
- One meaning; no semantic overload
14+
- Domain-neutral
15+
- Published only after governance review
16+
17+
Common verbs **SHALL NOT** model:
18+
- Payments
19+
- Contracts / transfers
20+
- Authentication
21+
- Business logic
22+
23+
Those belong in the _Commercial_ layer.
3724

3825
---
3926

40-
## 2. Required Files Per Verb
27+
## 2. Required Artifacts Per Verb
4128

42-
Each verb MUST contain:
29+
Each canonical verb MUST define:
4330

4431
- `requests/<verb>.request.schema.json`
4532
- `receipts/<verb>.receipt.schema.json`
33+
34+
And MUST ship:
35+
-
4636
- `examples/valid/*.json`
4737
- `examples/invalid/*.json`
4838

49-
Request + receipt schemas MUST reference:
50-
51-
```
52-
schemas/v1.0.0/_shared/*.schema.json
53-
```
5439

5540
---
5641

57-
## 3. ENS TXT Requirements
42+
## 3. JSON Schema Requirements
5843

59-
All canonical verbs MUST have resolvable ENS TXT entries:
44+
- Draft **2020-12**
45+
- Ajv **strict mode**
46+
- `"additionalProperties": false` at top level
47+
- Deterministic `$id` and directory structure:
6048

61-
```
62-
cl.verb=<verb>
63-
cl.version=1.0.0
49+
/schemas/v1.0.0/commons/<verb>/
6450

65-
cl.entry=x402://<verbagent>.eth/<verb>/v1
6651

67-
cl.schema.request=https://commandlayer.org/schemas/v1.0.0/commons/<verb>/requests/<verb>.request.schema.json
68-
cl.schema.receipt=https://commandlayer.org/schemas/v1.0.0/commons/<verb>/receipts/<verb>.receipt.schema.json
69-
70-
cl.cid.schemas=<cid-schemas>
71-
cl.schemas.mirror.ipfs=https://ipfs.io/ipfs/<cid-schemas>
72-
73-
cl.agentcard=https://commandlayer.org/agent-cards/agents/v1.0.0/commons/<verbagent>.eth.json
74-
cl.cid.agentcard=<cid-agentcard>
75-
cl.agentcard.mirror.ipfs=https://ipfs.io/ipfs/<cid-agentcard>/agents/<verbagent>.eth.json
52+
---
7653

77-
cl.checksum.request=<sha256-request>
78-
cl.checksum.receipt=<sha256-receipt>
79-
cl.checksum.agentcard=<sha256-agentcard>
54+
## 4. x402 Alignment
8055

81-
cl.owner=commandlayer.eth
56+
All requests:
57+
`x402.verb = <verb>`
58+
`x402.version = "1.0.0"`
8259

83-
```
8460

85-
ENS bindings are **critical protocol resources** and may only be modified through governance.
61+
All receipts:
62+
`x402.status = "ok" | "error"`
8663

8764
---
8865

89-
## 4. Versioning Policy
90-
91-
Version bumps follow:
66+
## 5. Immutability
9267

93-
- **MAJOR** — Breaking changes to request/receipt shape, trace semantics, or $id structure
94-
- **MINOR** — Additive fields that do not break interoperability
95-
- **PATCH** — Documentation or example fixes
96-
97-
Once a directory is versioned (e.g., `v1.0.0`), it is **frozen forever**.
98-
99-
Upgrades require a parallel directory:
100-
101-
```
102-
/schemas/v1.1.0/commons/<verb>/...
103-
```
68+
Once published:
69+
- **No changes** in-place
70+
- Any update requires a new version directory
71+
- New CID + new checksums
72+
- ENS TXT updates
10473

10574
---
10675

107-
## 5. Integrity & Provenance
108-
109-
All schema files MUST be represented in:
76+
## 6. Breaking Change Rules
11077

111-
- `checksums.txt`
112-
- `SECURITY_PROVENANCE.md`
78+
### Requires MAJOR version bump:
79+
- Removing fields
80+
- Changing requiredness
81+
- New semantics for success/error
82+
- Trace model changes
11383

114-
Every release MUST:
84+
### Requires MINOR:
85+
- Additive `input.*` or `result.*`
11586

116-
- Update the IPFS CID
117-
- Update checksums
118-
- Update ENS TXT if applicable
87+
### PATCH:
88+
- Example or documentation fixes
11989

12090
---
12191

122-
## 6. Immutability Principle
92+
## 7. Governance Compliance
12393

124-
The Protocol Commons operates under a strict immutability rule:
125-
126-
No schema changes, once published in a versioned directory, may be altered in-place.
127-
128-
All corrective or breaking changes MUST be handled via new versioned directories.
129-
130-
---
94+
Every change MUST:
95+
- Have an issue link
96+
- Be recorded in `RESOLUTION.md`
13197

132-
## 7. Deprecation Policy
13398

134-
Deprecated verbs or schemas MUST be:
13599

136-
1. Logged in `RESOLUTION.md` (with rationale and timestamp)
137-
2. Documented in `SPEC.md`
138-
3. Preserved for backward compatibility
139100

140-
Removal is only permitted for verified security risks and MUST include a migration path.
141101

142-
## Links
143102

144-
- [SECURITY POLICY](./SECURITY.md) — responsible disclosure and vulnerability handling
145-
- [RESOLUTION](./RESOLUTION.md) — governance and deprecation log
146-
- [POLICY](./POLICY.md) — verbs and ENS binding rules
147-
- [GOVERNANCE](./GOVERNANCE.md) — decision-making and multisig control
148103

149104

150105

0 commit comments

Comments
 (0)