@journeykit/canon 0.21.0 → 0.21.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -110,6 +110,9 @@ Fix it and the next command indexes the files (see `canon-inventory`).
|
|
|
110
110
|
|
|
111
111
|
- `--actor <id>` (or `CANON_ACTOR` in the environment) puts YOUR id on the
|
|
112
112
|
provenance line. Default is `canon-scaffold`.
|
|
113
|
+
- **Keep the `# canon:` lines when you fill in the scenario.** Dropping one
|
|
114
|
+
makes `canon inventory sync` abort on `missing-provenance`; restore it
|
|
115
|
+
from git history or a sibling scenario (the error shows its shape).
|
|
113
116
|
- **Never hand-type, move, or edit a `# canon:` line.** The scaffold
|
|
114
117
|
writes it directly above the scenario's tags:
|
|
115
118
|
|
|
@@ -265,11 +265,13 @@ canon subject status: reopened `demo-subject` from shipped, recorded by `impl`:
|
|
|
265
265
|
canon subject status: demo-subject → verifying — written directly; nothing to promote
|
|
266
266
|
```
|
|
267
267
|
|
|
268
|
-
- `--reason "<one line>"` is required for `shipped → verifying`
|
|
269
|
-
|
|
270
|
-
record carries it with the actor
|
|
268
|
+
- `--reason "<one line>"` is required for `shipped → verifying` (exit 2
|
|
269
|
+
without it, as for a blank one) and optional on every other transition,
|
|
270
|
+
where it is an audit note. The new record carries it with the actor as
|
|
271
|
+
`status_reason: { reason: …, actor: { agent_id: impl } }`; a reopen also
|
|
272
|
+
records the change the work goes into:
|
|
271
273
|
`reopen: { reason: …, change: c-demo, actor: { agent_id: impl } }`. The
|
|
272
|
-
next status write clears
|
|
274
|
+
next status write clears both, as it clears a waiver.
|
|
273
275
|
- Inside the approved scope it needs no human: the subject's newest
|
|
274
276
|
adopted change's brief is approved, or there is no brief to answer.
|
|
275
277
|
Otherwise it refuses, exit 1, naming the brief to approve, and
|
|
@@ -39,7 +39,8 @@ After the first `status`, follow `meta.next` of each write; do not call
|
|
|
39
39
|
violation or a duplicate id: it names each problem). Specs live at
|
|
40
40
|
`<root>/kind=feature/area=<area>/<surface>.feature` under a `specs.roots[]`
|
|
41
41
|
root (default `.canon/specs`); `reference/canon-authoring.md` has the
|
|
42
|
-
scaffold.
|
|
42
|
+
scaffold. When you fill in a scenario, keep its `# canon: {...}` provenance
|
|
43
|
+
lines: dropping one aborts `inventory sync` on `missing-provenance`.
|
|
43
44
|
2. **Units.** Give each unit its own actor id and session id and pass them on
|
|
44
45
|
everything it records. A delegated unit attests its own work; never attest
|
|
45
46
|
another unit's work under your id.
|
|
@@ -12,7 +12,7 @@ Every line is complete; fill the `<placeholders>`.
|
|
|
12
12
|
canon status --as orchestrator --json --fields next,waitingOn # at the start and when resuming
|
|
13
13
|
canon brief approve --change <slug> --by "<the human>" --note "<their words>" --as orchestrator --json
|
|
14
14
|
canon subject status <subject-id> --to <proposed|specced|building|verifying|shipped> --actor-id <unit> --as orchestrator --json
|
|
15
|
-
canon subject status <subject-id> --to verifying --reason "<why>" --actor-id <unit> --as orchestrator --json #
|
|
15
|
+
canon subject status <subject-id> --to verifying --reason "<why>" --actor-id <unit> --as orchestrator --json # reopen a shipped subject (--reason is required here; any other transition accepts it as a note)
|
|
16
16
|
canon gate check --as orchestrator --json
|
|
17
17
|
```
|
|
18
18
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@journeykit/canon",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.1",
|
|
4
4
|
"description": "canon — harness knowledge substrate. JS launcher: platform detection + native binary resolution.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {},
|
|
32
32
|
"optionalDependencies": {
|
|
33
|
-
"@journeykit/canon-core-darwin-arm64": "0.21.
|
|
34
|
-
"@journeykit/canon-core-linux-x64": "0.21.
|
|
35
|
-
"@journeykit/canon-core-win32-x64": "0.21.
|
|
33
|
+
"@journeykit/canon-core-darwin-arm64": "0.21.1",
|
|
34
|
+
"@journeykit/canon-core-linux-x64": "0.21.1",
|
|
35
|
+
"@journeykit/canon-core-win32-x64": "0.21.1"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/node": "^20.0.0",
|