Skip to content

Commit c4c8734

Browse files
authored
Merge pull request #13 from commandlayer/codex/move-readme-table-of-contents-to-top
docs: surface README TOC, clarify receipt `agent` optionality, add v1.0.0 changelog, split CONTRIBUTING, remove redundant ajv entrypoint
2 parents f4a08db + fd00fa2 commit c4c8734

File tree

4 files changed

+91
-33
lines changed

4 files changed

+91
-33
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,9 @@
1010
- Established Commons v1.1.0 as the active in-repo schema surface for new integrations
1111
- Retained v1.0.0 as the last pinned canonical release until v1.1.0 pinning is completed
1212
- Preserved earlier schema versions for compatibility and historical reference
13+
14+
## 1.0.0
15+
16+
- Initial Protocol-Commons release with versioned Commons schemas, shared primitives, and example vectors under `schemas/v1.0.0` and `examples/v1.0.0`
17+
- Introduced the canonical Commons verb set and request/receipt validation model for cross-runtime interoperability
18+
- Established the historical pinned release line that `v1.1.0` now extends as the current in-repo schema family

CONTRIBUTING.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Contributing — Protocol Commons
2+
3+
Protocol-Commons contributions must be small, traceable, and validation-complete.
4+
5+
## Pull Request Spine
6+
7+
Every PR should:
8+
9+
1. Open from a focused branch for one change set
10+
2. Explain the semantic, schema, or documentation impact
11+
3. Include schema/example updates together when contracts change
12+
4. Pass the required validation commands before review
13+
5. Update release notes when the visible contract changes
14+
15+
## Commit Convention
16+
17+
Use a clear imperative subject line. Prefer conventional-style prefixes when they fit, for example:
18+
19+
- `docs: tighten README contract language`
20+
- `feat: add new commons verb schema family`
21+
- `fix: correct receipt validation example`
22+
23+
## Required Checks
24+
25+
Run the canonical validation command before opening a PR:
26+
27+
```bash
28+
npm install
29+
npm run validate
30+
```
31+
32+
Run additional checks when packaging behavior changes:
33+
34+
```bash
35+
npm run test:smoke:import
36+
npm run test:smoke:pack
37+
```
38+
39+
## When Schemas Change
40+
41+
If you change a schema or semantic contract, you must also:
42+
43+
- Add or update matching examples/tests
44+
- Preserve immutability of published version directories unless the change is explicitly historical documentation only
45+
- Review `SCHEMAS.md` and `SPEC.md` for versioning implications
46+
- Update `CHANGELOG.md` when the externally visible contract changes
47+
- Update `RESOLUTION.md`, provenance, or checksum artifacts if the release process requires it
48+
49+
## Versioning Expectations
50+
51+
- Treat published release lines as append-only history
52+
- Use a new version directory for semantic changes
53+
- Keep `v1.1.0` documented as the current in-repo line until a newer line is intentionally introduced
54+
55+
## Review Standard
56+
57+
A contribution is ready for review when a maintainer can understand the intent quickly, reproduce validation locally, and see exact schema/example/doc alignment without extra interpretation.

ONBOARDING.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,7 @@ If a change is not reflected here → **not canonical.**
7272
Protocol-Commons governs TXT keys that resolve schema semantics.
7373
Canonical definitions → `SPEC.md`.
7474

75-
## 4. Contribution Flow
76-
1. Open an Issue describing context + verb(s)
77-
2. Design change per `SCHEMAS.md`
78-
3. Update schemas + examples
79-
4. Validate:
75+
## 4. Working Norms
8076

8177
```
8278
npm install
@@ -92,7 +88,7 @@ npm run validate:examples
9288
5. Update `RESOLUTION.md`, provenance
9389
6. Submit PR with version class (MAJOR/MINOR/PATCH)
9490

95-
Once approved → tagged + pinned.
91+
If you are preparing a contribution, follow `CONTRIBUTING.md`.
9692

9793
## 5. What “Good” Looks Like
9894

README.md

Lines changed: 26 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,28 @@ If agents cannot agree on what actions mean, interoperability breaks.
5959
6060
---
6161
62+
## Table of Contents
63+
- [Real verbs. Real receipts.](#real-verbs-real-receipts)
64+
- [Quickstart](#quickstart)
65+
- [Commons v1.1.0](#commons-v110)
66+
- [What Commons enables](#what-commons-enables)
67+
- [Why this exists](#why-this-exists)
68+
- [Canonical Verbs](#canonical-verbs)
69+
- [Overview](#overview)
70+
- [Key Principles](#key-principles)
71+
- [This is not…](#this-is-not)
72+
- [CommandLayer Protocol Stack](#commandlayer-protocol-stack)
73+
- [Status](#status)
74+
- [Repository Structure](#repository-structure)
75+
- [Manifest](#manifest)
76+
- [Immutability & Checksums](#immutability--checksums)
77+
- [Validation](#validation)
78+
- [License](#license)
79+
- [Next Layers](#next-layers)
80+
- [References](#references)
81+
82+
---
83+
6284
## Real verbs. Real receipts.
6385
6486
```jsonc
@@ -89,14 +111,13 @@ Every v1.1.0 Commons receipt uses the same evidence-oriented spine:
89111
90112
- `status`
91113
- `timestamp`
92-
- `agent`
93114
- `request_hash`
94-
- `result_hash` *(optional)*
95-
- `result_cid` *(optional)*
96115
- `summary` *(required on success)*
97116
- `signature`
98117
- `error` *(required on error)*
99118
119+
`result_hash` and `result_cid` are optional evidence fields. `agent` is optional and may be included when the actor/provider identity needs to be surfaced.
120+
100121
---
101122
102123
## Quickstart
@@ -196,7 +217,7 @@ The receipt contract is proof-oriented rather than transport-oriented:
196217
"version": "1.1.0",
197218
"status": "ok | error",
198219
"timestamp": "<RFC 3339 date-time>",
199-
"agent": "<stable signer identity>",
220+
"agent": "<optional stable signer identity>",
200221
"request_hash": "sha256:<64 lowercase hex chars>",
201222
"result_hash": "sha256:<64 lowercase hex chars>",
202223
"result_cid": "<optional content identifier>",
@@ -208,28 +229,6 @@ The receipt contract is proof-oriented rather than transport-oriented:
208229
209230
These fields let consumers verify that a signer attested to a specific request hash and, when present, a specific result hash or result CID. Commons does not define transport settlement, execution proofs beyond these fields, or any x402-specific wrapping.
210231
211-
## Table of Contents
212-
- [Real verbs. Real receipts.](#real-verbs-real-receipts)
213-
- [Quickstart](#quickstart)
214-
- [Commons v1.1.0](#commons-v110)
215-
- [What Commons enables](#what-commons-enables)
216-
- [Why this exists](#why-this-exists)
217-
- [Canonical Verbs](#canonical-verbs)
218-
- [Overview](#overview)
219-
- [Key Principles](#key-principles)
220-
- [This is not…](#this-is-not)
221-
- [CommandLayer Protocol Stack](#commandlayer-protocol-stack)
222-
- [Status](#status)
223-
- [Repository Structure](#repository-structure)
224-
- [Manifest](#manifest)
225-
- [Immutability & Checksums](#immutability--checksums)
226-
- [Validation](#validation)
227-
- [License](#license)
228-
- [Next Layers](#next-layers)
229-
- [References](#references)
230-
231-
---
232-
233232
## Why this exists
234233
235234
Fragmented agents create isolated ecosystems and brittle automation.
@@ -419,7 +418,7 @@ Published version directories must not be edited in place.
419418
420419
## Validation
421420
422-
Available commands:
421+
Use `npm run validate` as the canonical repo-wide validation command. For targeted checks, the repo also exposes:
423422
424423
```bash
425424
npm run validate

0 commit comments

Comments
 (0)