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
This document defines the contributor workflow for the current release line. Keep changes minimal, validation-preserving, and explicit about whether they affect the current line (`v1.1.0`) or retained legacy artifacts.
4
+
5
+
## Pull request expectations
6
+
7
+
- Describe the exact problem being fixed and the exact files changed.
8
+
- Keep protocol semantics unchanged unless the change is intentionally normative and documented.
9
+
- Prefer deletion over vestigial compatibility scaffolding.
10
+
- When docs change, keep them precise and avoid restating the full validation command block outside `README.md#validation-commands`.
11
+
- If you touch checksum-covered machine artifacts (`schemas/v1.1.0/`, `examples/v1.1.0/`, `manifest.json`), regenerate `checksums.txt` before merge.
12
+
13
+
## Commit convention
14
+
15
+
Use concise, imperative commit subjects. Prefer a scope when it clarifies intent, for example:
16
+
17
+
-`docs: clarify current-line validation policy`
18
+
-`tooling: route npm test through validation aggregate`
19
+
-`validation: reuse strict JSON loader across scripts`
20
+
21
+
Avoid mixed-purpose commits when a focused change is practical.
22
+
23
+
## Required validation before merge
24
+
25
+
Run the canonical commands from `README.md#validation-commands` that match your change set. In normal contributor flow, this means at least:
26
+
27
+
```bash
28
+
npm test
29
+
npm run validate:schemas
30
+
npm run validate:examples
31
+
npm run validate:integrity
32
+
```
33
+
34
+
Also run `sha256sum -c checksums.txt` whenever you changed checksum-covered artifacts or regenerated the checksum ledger.
35
+
36
+
## When changing schemas, examples, or docs
37
+
38
+
### Schemas
39
+
40
+
- Preserve flat, self-contained `v1.1.0` schemas; do not reintroduce current-line cross-file schema dependencies.
41
+
- Keep file paths and `$id` values aligned exactly.
42
+
- Treat same-named local `$defs` as canonical repeated shapes and keep them consistent across verbs.
43
+
44
+
### Examples
45
+
46
+
- Keep valid fixtures conformant and invalid fixtures narrowly targeted.
47
+
- Ensure request and receipt coverage remains present in both `valid/` and `invalid/` for each current-line verb.
48
+
- Do not add a current-line `examples/v1.1.0/**/ts/` surface unless the repository deliberately restores and governs it.
49
+
50
+
### Documentation
51
+
52
+
- Keep onboarding content orientation-focused and contributor policy in this file.
53
+
- Use explicit JSON path imports in examples by default, with any bare-package import labeled as environment-dependent.
54
+
- State clearly when guidance applies only to the current line and when legacy `v1.0.0` artifacts are mentioned for compatibility or audit history.
The package root resolves to `schemas/v1.1.0/index.json`. That index is the current machine-readable map of every canonical verb schema in the release.
13
+
That path is the current machine-readable map of every canonical verb schema in the release and is the most portable documented import for ESM-first consumers. The bare package import `@commandlayer/commercial` currently resolves to the same file, but treat it as an environment-dependent shortcut rather than the default example.
14
14
15
15
## What is normative vs illustrative
16
16
@@ -37,11 +37,7 @@ Normative interpretive docs:
37
37
1. Confirm the package version is `1.1.0` and that `manifest.json` reports `status: current`.
38
38
2. Load `schemas/v1.1.0/index.json` and select the request and receipt schema paths you need.
39
39
3. Configure your validator from the flat per-verb schema files under `schemas/v1.1.0/commercial/<verb>/`.
40
-
4. Run checksum verification before mirroring or vendoring artifacts:
41
-
```bash
42
-
npm run validate:integrity
43
-
sha256sum -c checksums.txt
44
-
```
40
+
4. Run checksum verification before mirroring or vendoring artifacts using the canonical commands in `README.md#validation-commands`.
45
41
5. Use `examples/v1.1.0/` as conformance fixtures, not as a substitute for schema requirements.
46
42
47
43
## Choosing between v1.1.0 and v1.0.0
@@ -65,4 +61,4 @@ The checksum-covered payload for this release is intentionally narrow:
65
61
66
62
## TypeScript guidance
67
63
68
-
There is no public `examples/v1.1.0/**/ts/` teaching surface in the current release. If a future release restores TypeScript examples, they should be explicitly governed, validated, and documented before they are treated as part of the public implementer surface.
64
+
There is no current-line TypeScript compile target or public `examples/v1.1.0/**/ts/` teaching surface in this release. The retained `v1.0.0` TypeScript example files are legacy compatibility artifacts, not an active build surface. If a future release restores a TypeScript surface, it should be explicitly governed, validated, and documented before it is treated as part of the public implementer surface.
The bare package import `@commandlayer/commercial` resolves to the same file today, but treat that shortcut as environment-dependent rather than the default documentation path.
66
67
2. Treat `schemas/v1.1.0/index.json` as the authoritative map of current schemas and verb inventory.
67
68
3. Prefer `schemas/v1.1.0/commercial/<verb>/<verb>.request.schema.json` and `...receipt.schema.json` directly for validator configuration.
68
-
4. Verify the machine-artifact set before mirroring or vendoring:
69
-
```bash
70
-
npm run validate:integrity
71
-
sha256sum -c checksums.txt
72
-
```
73
-
5. Ignore `v1.0.0` unless you are maintaining compatibility with historical nested paths.
69
+
4. Verify the machine-artifact set before mirroring or vendoring using the canonical command surface in [Validation commands](#validation-commands).
70
+
5. Ignore `v1.0.0` unless you are maintaining compatibility with historical nested paths. Current automated validation targets `v1.1.0`; retained `v1.0.0` artifacts remain published for compatibility and audit without equal current-line guarantees.
74
71
6. Treat schemas and `manifest.json` as normative machine artifacts. Treat examples as illustrative conformance fixtures. Treat prose docs as normative interpretation and release-process guidance.
75
72
76
73
A longer external-consumer workflow lives in `INTEGRATOR.md`.
@@ -159,6 +156,15 @@ protocol-commercial/
159
156
160
157
Protocol-Commercial v1.1.0 does **not** use a current-line `_shared/` tree. Every v1.1.0 request and receipt schema is self-contained, flat, and mirror-safe.
161
158
159
+
### Browsing large self-contained schemas
160
+
161
+
To navigate the flat schema line efficiently without reintroducing cross-file dependencies:
162
+
163
+
- Start at `schemas/v1.1.0/index.json` to locate the request and receipt pair for the verb you need.
164
+
- Read a verb directory as a pair: request first for caller obligations, receipt second for canonical outcome and audit references.
165
+
- Use the local `$defs` section in each schema as the file-scoped glossary for repeated structures such as actors, money, and payment evidence.
166
+
- Compare same-named `$defs` across verbs only when checking consistency; the validator enforces those shared shapes without making readers chase external files.
167
+
162
168
Current-line example governance is equally explicit:
163
169
164
170
-`valid/` contains illustrative conforming request and receipt fixtures.
@@ -223,19 +229,21 @@ This repository does not define:
223
229
}
224
230
```
225
231
226
-
## Validation and integrity
232
+
## Validation commands
233
+
234
+
This README is the canonical command surface for repository validation. Other docs should reference this section instead of duplicating the full command block.
227
235
228
236
```bash
229
237
npm install
230
-
npm run validate
238
+
npm test
231
239
npm run validate:schemas
232
240
npm run validate:examples
233
241
npm run validate:integrity
234
242
npm run generate:checksums
235
243
sha256sum -c checksums.txt
236
244
```
237
245
238
-
-`npm run validate` runs the full validation suite for the current release line.
246
+
-`npm test` runs the full current-line validation aggregate (`npm run validate`).
239
247
-`npm run validate:schemas` checks current-line metadata, schema identity, layout, and manifest/index alignment expectations.
240
248
-`npm run validate:examples` validates every current-line JSON valid and invalid example against the canonical schemas.
241
249
-`npm run validate:integrity` verifies the checksum file scope and hash coverage for the current release artifact set.
Copy file name to clipboardExpand all lines: SECURITY.md
+1-9Lines changed: 1 addition & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,14 +31,6 @@ Protocol-Commercial provides schema-level security properties, not transaction o
31
31
32
32
## Verification commands
33
33
34
-
```bash
35
-
npm run validate
36
-
npm run validate:schemas
37
-
npm run validate:examples
38
-
npm run validate:integrity
39
-
sha256sum -c checksums.txt
40
-
```
41
-
42
-
`npm run validate:schemas` is the direct schema/metadata drift check. `sha256sum -c checksums.txt` verifies only the checksum-covered machine-artifact surface, not release prose docs.
34
+
Use the canonical validation command surface in `README.md#validation-commands`. For security review, `npm run validate:schemas` is the direct schema/metadata drift check, and `sha256sum -c checksums.txt` verifies only the checksum-covered machine-artifact surface, not release prose docs.
0 commit comments