@journeykit/canon 0.48.1 → 0.49.0
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.
- package/dist/skills/SKILL.src.md +142 -130
- package/dist/skills/reference/brief-align.md +8 -8
- package/dist/skills/reference/brief-clarify.md +6 -6
- package/dist/skills/reference/brief-harden.md +5 -5
- package/dist/skills/reference/brief-polish.md +13 -13
- package/dist/skills/reference/brief-shape.md +9 -9
- package/dist/skills/reference/canon-artifact-ingest.md +7 -7
- package/dist/skills/reference/canon-authoring.md +11 -11
- package/dist/skills/reference/canon-context.md +13 -13
- package/dist/skills/reference/canon-fmt.md +1 -1
- package/dist/skills/reference/canon-gate.md +52 -53
- package/dist/skills/reference/canon-inventory.md +10 -11
- package/dist/skills/reference/canon-learn.md +13 -14
- package/dist/skills/reference/canon-plan-import.md +15 -15
- package/dist/skills/reference/canon-plugins.md +8 -8
- package/dist/skills/reference/canon-policy.md +11 -11
- package/dist/skills/reference/canon-report-dashboard.md +6 -7
- package/dist/skills/reference/canon-retrieve.md +6 -6
- package/dist/skills/reference/canon-review.md +52 -53
- package/dist/skills/reference/canon-storage.md +16 -19
- package/dist/skills/reference/canon-subject.md +120 -127
- package/dist/skills/reference/role-implementer.md +90 -76
- package/dist/skills/reference/role-orchestrator.md +196 -172
- package/dist/skills/reference/role-planner.md +101 -97
- package/dist/skills/reference/role-reviewer.md +91 -85
- package/dist/skills/scripts/canon-retrieve-pre-dispatch.sh +5 -5
- package/man/canon-adapter-authorize.1 +11 -8
- package/man/canon-adapter-validate.1 +15 -8
- package/man/canon-artifacts-prune.1 +11 -11
- package/man/canon-artifacts-store.1 +8 -8
- package/man/canon-artifacts-verify.1 +7 -7
- package/man/canon-artifacts.1 +10 -4
- package/man/{canon-brief-approve.1 → canon-briefs-approve.1} +20 -17
- package/man/{canon-brief-check.1 → canon-briefs-check.1} +9 -6
- package/man/{canon-brief-show.1 → canon-briefs-get.1} +14 -11
- package/man/canon-briefs.1 +59 -0
- package/man/{canon-change-new.1 → canon-changes-create.1} +14 -14
- package/man/{canon-change-defer.1 → canon-changes-defer.1} +19 -16
- package/man/{canon-change-drop.1 → canon-changes-drop.1} +19 -16
- package/man/{canon-change-reopen.1 → canon-changes-reopen.1} +20 -17
- package/man/canon-changes.1 +65 -0
- package/man/canon-completion.1 +8 -5
- package/man/{canon-context-pack-add.1 → canon-context-packs-create.1} +9 -9
- package/man/{canon-context-pack-show.1 → canon-context-packs-get.1} +10 -7
- package/man/{canon-context-pack-verify.1 → canon-context-packs-verify.1} +10 -7
- package/man/canon-context-packs.1 +56 -0
- package/man/canon-context.1 +9 -6
- package/man/canon-dashboard.1 +10 -10
- package/man/canon-demo-init.1 +12 -7
- package/man/canon-demo-review.1 +7 -7
- package/man/{canon-divergence-accept.1 → canon-divergences-accept.1} +12 -12
- package/man/{canon-divergence-add.1 → canon-divergences-add.1} +12 -12
- package/man/{canon-divergence-defer.1 → canon-divergences-defer.1} +12 -12
- package/man/{canon-divergence-list.1 → canon-divergences-list.1} +10 -7
- package/man/{canon-divergence-resolve.1 → canon-divergences-resolve.1} +12 -12
- package/man/{canon-divergence.1 → canon-divergences.1} +16 -10
- package/man/canon-evidence-add-all.1 +117 -0
- package/man/canon-evidence-add.1 +16 -22
- package/man/canon-evidence-approval-payload.1 +10 -7
- package/man/canon-evidence-audit.1 +11 -11
- package/man/canon-evidence.1 +15 -5
- package/man/canon-export.1 +11 -11
- package/man/{canon-feature-new.1 → canon-features-create.1} +14 -14
- package/man/{canon-feature.1 → canon-features.1} +12 -6
- package/man/{canon-finding-close.1 → canon-findings-close.1} +17 -23
- package/man/{canon-finding-add.1 → canon-findings-create.1} +13 -13
- package/man/{canon-finding-list.1 → canon-findings-list.1} +11 -8
- package/man/{canon-finding.1 → canon-findings.1} +18 -20
- package/man/canon-format.1 +7 -4
- package/man/canon-gate-check.1 +9 -6
- package/man/canon-gate-install-hooks.1 +12 -12
- package/man/canon-gate-promote.1 +8 -8
- package/man/canon-gate.1 +11 -5
- package/man/canon-ingest-plans.1 +10 -10
- package/man/canon-ingest-records.1 +13 -13
- package/man/canon-init-check.1 +48 -0
- package/man/canon-init.1 +10 -13
- package/man/canon-inventory-sync.1 +8 -8
- package/man/canon-inventory.1 +10 -4
- package/man/canon-ledger-compact.1 +10 -10
- package/man/canon-ledger.1 +10 -4
- package/man/canon-migrate-revert.1 +58 -0
- package/man/canon-migrate.1 +19 -22
- package/man/{canon-plugin-sync.1 → canon-plugins-sync.1} +10 -10
- package/man/{canon-plugin.1 → canon-plugins.1} +12 -6
- package/man/canon-policy-approve.1 +13 -10
- package/man/{canon-policy-show.1 → canon-policy-get.1} +8 -5
- package/man/canon-policy.1 +13 -7
- package/man/{canon-prompt-add.1 → canon-prompts-create.1} +14 -14
- package/man/{canon-prompt-show.1 → canon-prompts-get.1} +10 -7
- package/man/canon-prompts.1 +49 -0
- package/man/canon-purge.1 +12 -16
- package/man/canon-query.1 +11 -8
- package/man/canon-regime-show.1 +10 -7
- package/man/canon-report-build.1 +4 -4
- package/man/canon-report-check.1 +7 -4
- package/man/canon-report-snapshot.1 +6 -6
- package/man/canon-report.1 +10 -4
- package/man/canon-retrieve.1 +11 -8
- package/man/{canon-review-brief.1 → canon-reviews-brief.1} +14 -14
- package/man/{canon-review-change.1 → canon-reviews-change.1} +13 -13
- package/man/{canon-review-scenario.1 → canon-reviews-scenario.1} +12 -12
- package/man/{canon-review.1 → canon-reviews.1} +16 -10
- package/man/{canon-dispatch-begin.1 → canon-runs-create.1} +11 -11
- package/man/{canon-task-done.1 → canon-runs-diff.1} +7 -10
- package/man/{canon-dispatch-end.1 → canon-runs-end.1} +11 -11
- package/man/{canon-dispatch.1 → canon-runs.1} +15 -9
- package/man/{canon-scenario-new.1 → canon-scenarios-create.1} +14 -14
- package/man/{canon-scenario.1 → canon-scenarios.1} +12 -6
- package/man/canon-schema.1 +22 -34
- package/man/canon-search.1 +15 -12
- package/man/canon-selftest.1 +7 -4
- package/man/canon-skills-check.1 +10 -7
- package/man/canon-skills-doctor.1 +10 -7
- package/man/canon-skills-get.1 +47 -0
- package/man/canon-skills-install.1 +10 -10
- package/man/canon-skills-list.1 +53 -0
- package/man/canon-skills.1 +16 -16
- package/man/canon-status.1 +10 -7
- package/man/{canon-strategy-approval-payload.1 → canon-strategies-approval-payload.1} +13 -10
- package/man/{canon-strategy-promote.1 → canon-strategies-promote.1} +12 -12
- package/man/{canon-strategy-rollback.1 → canon-strategies-rollback.1} +12 -12
- package/man/{canon-strategy.1 → canon-strategies.1} +14 -8
- package/man/{canon-subject-adopt.1 → canon-subjects-adopt.1} +10 -10
- package/man/{canon-subject-new.1 → canon-subjects-create.1} +14 -14
- package/man/{canon-subject-show.1 → canon-subjects-get.1} +9 -6
- package/man/{canon-subject-move.1 → canon-subjects-move.1} +12 -12
- package/man/{canon-subject-unadopt.1 → canon-subjects-unadopt.1} +12 -12
- package/man/{canon-subject.1 → canon-subjects.1} +16 -10
- package/man/canon-tasks-done.1 +50 -0
- package/man/{canon-task.1 → canon-tasks.1} +13 -7
- package/man/canon-trace.1 +8 -5
- package/man/canon.1 +66 -36
- package/package.json +5 -5
- package/man/canon-adapter.1 +0 -46
- package/man/canon-brief.1 +0 -64
- package/man/canon-change.1 +0 -59
- package/man/canon-context-pack.1 +0 -50
- package/man/canon-demo.1 +0 -47
- package/man/canon-dispatch-diff.1 +0 -41
- package/man/canon-ingest.1 +0 -46
- package/man/canon-prompt.1 +0 -43
- package/man/canon-regime.1 +0 -39
- package/man/canon-skills-show.1 +0 -102
|
@@ -25,14 +25,14 @@ storage:
|
|
|
25
25
|
|
|
26
26
|
## An old canon.yaml is refused, and `canon migrate` fixes it
|
|
27
27
|
|
|
28
|
-
The keys `tiers:`, `routing:`, `aging:` and `artifact_store:` are gone. A command that opens the record store and finds one of them exits `2` with `CONFIG_INVALID`, reason `STORAGE`, the field naming the key, and writes nothing. `canon migrate`, `canon format`, `canon
|
|
28
|
+
The keys `tiers:`, `routing:`, `aging:` and `artifact_store:` are gone. A command that opens the record store and finds one of them exits `2` with `CONFIG_INVALID`, reason `STORAGE`, the field naming the key, and writes nothing. `canon migrate`, `canon format`, `canon briefs check` and `canon schema` do not open the store and do not refuse. Run the preview, then commit it:
|
|
29
29
|
|
|
30
30
|
```bash
|
|
31
31
|
canon migrate
|
|
32
32
|
canon migrate --commit --plan-digest "$PLAN_DIGEST"
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
-
The commit removes the four blocks and the comment right above each, writes `storage:` where `tiers:` was (at the end of the file when there was none) and keeps every other byte of `canon.yaml`.
|
|
35
|
+
The commit removes the four blocks and the comment right above each, writes `storage:` where `tiers:` was (at the end of the file when there was none) and keeps every other byte of `canon.yaml`. `canon migrate-revert` restores the file from `.canon/migrate-backup/`. A second run finds nothing to do. Migrate moves no file: `.canon/hot.db` and `.canon/ledger` stay where they are.
|
|
36
36
|
|
|
37
37
|
Migrate reads the old values and does this with them:
|
|
38
38
|
|
|
@@ -109,12 +109,12 @@ then `canon migrate --commit --plan-digest <digest>`, moves it. Full rule:
|
|
|
109
109
|
|
|
110
110
|
## Where artifact bytes live (`attachments:`)
|
|
111
111
|
|
|
112
|
-
Evidence attachment bytes are plain files at `.canon/artifacts/sha256/<digest>`, tracked by git. The digest is the sha256 of the bytes. A `<digest>.zst` in that directory is no blob: the store reads the digest as missing, `canon artifacts verify` skips it and `canon artifacts prune` does not delete it. The gate and `canon artifacts verify
|
|
112
|
+
Evidence attachment bytes are plain files at `.canon/artifacts/sha256/<digest>`, tracked by git. The digest is the sha256 of the bytes. A `<digest>.zst` in that directory is no blob: the store reads the digest as missing, `canon artifacts verify` skips it and `canon artifacts prune` does not delete it. The gate and `canon artifacts verify` read these files; `artifacts verify` hashes the bytes again.
|
|
113
113
|
|
|
114
114
|
`attachments: git` (the default) leaves the files to git. `attachments: lfs` stores them with git LFS. canon does not speak the LFS protocol: it writes the real bytes to the same path, and git's LFS filter turns them into a pointer on `git add`. canon adds four things:
|
|
115
115
|
|
|
116
|
-
- **The filter file comes first.** Before it writes bytes, canon writes `.canon/artifacts/.gitattributes` with the line `sha256/* filter=lfs diff=lfs merge=lfs -text` when that line is missing. `canon migrate` adds the line too. `canon init
|
|
117
|
-
- **No git-lfs, no write.** `evidence add`, `
|
|
116
|
+
- **The filter file comes first.** Before it writes bytes, canon writes `.canon/artifacts/.gitattributes` with the line `sha256/* filter=lfs diff=lfs merge=lfs -text` when that line is missing. `canon migrate` adds the line too. `canon init-check` fails when it is missing and names `canon migrate` as the fix.
|
|
117
|
+
- **No git-lfs, no write.** `evidence add`, `reviews scenario --artifact` and `artifacts store` write bytes only when `git lfs version` succeeds and `git config filter.lfs.clean` has a value. Otherwise they exit `2` with `ARTIFACTS_STORE_REQUIRED` and write nothing, so no bytes reach git as plain text. Install git-lfs and run `git lfs install`.
|
|
118
118
|
- **A pointer is bytes not received.** A blob file of 1 KiB or less that starts with `version https://git-lfs.github.com/spec/v1` and whose `oid sha256:` is the blob's own digest is an LFS pointer. `canon artifacts verify` reports it with the state `lfs_pointer` (exit `1`) and `canon gate check` counts the attachment as a violation. Run `git lfs pull`.
|
|
119
119
|
- **Reads need no git-lfs.** `gate check`, `artifacts verify` and `query` run without it.
|
|
120
120
|
|
|
@@ -231,10 +231,10 @@ record bodies.
|
|
|
231
231
|
## Staged writes and promotion
|
|
232
232
|
|
|
233
233
|
Four writes stage their record instead of committing it: `canon evidence
|
|
234
|
-
add`, `canon
|
|
234
|
+
add`, `canon findings create`, `canon findings close` and `canon divergences add`
|
|
235
235
|
(under `.canon/ledger/_staging/`, one staging shape for every kind,
|
|
236
236
|
committed by `canon gate promote`; `canon gate promote --kind divergence` commits only
|
|
237
|
-
the staged divergences). `canon
|
|
237
|
+
the staged divergences). `canon divergences resolve|defer|accept` stage and
|
|
238
238
|
promote their own record in the same run. `canon.yaml`'s
|
|
239
239
|
`write:` section decides whether they promote in the same run:
|
|
240
240
|
|
|
@@ -260,8 +260,7 @@ promotion refuses the command's own record, the record stays staged, the
|
|
|
260
260
|
line ends ``— run `canon gate promote` to commit it`` (`canon gate promote
|
|
261
261
|
--kind divergence` for a divergence), and the command exits `1`. With neither flag,
|
|
262
262
|
a malformed `write:` section (anything but `promote: auto | manual`)
|
|
263
|
-
refuses the write, exit `2`, before anything is staged. `canon init
|
|
264
|
-
--check` reports `[PASS] write (promote: auto)`, `[not configured]
|
|
263
|
+
refuses the write, exit `2`, before anything is staged. `canon init-check` reports `[PASS] write (promote: auto)`, `[not configured]
|
|
265
264
|
write (promote: manual)`, or `[FAIL] write: …`. `canon gate promote` still
|
|
266
265
|
works under `auto` and is idempotent: with nothing staged it prints
|
|
267
266
|
`nothing staged` and exits `0`.
|
|
@@ -280,12 +279,11 @@ skills:
|
|
|
280
279
|
answer; without it init takes the harnesses whose
|
|
281
280
|
`.claude`, `.codex`, `.omp` or `.pi` directory exists, and with none detected
|
|
282
281
|
it writes only a commented example
|
|
283
|
-
and installs nothing. `.agents` alone never selects Codex. `canon skills
|
|
284
|
-
install|check|doctor` follow the section; `install` prunes projected files the bundle no longer ships when their bytes match the lock (a modified one stays, reported as `kept:`), `check` exits 1 (`SKILLS_CHECK_FAILED`) naming each orphan and `doctor` prints `orphan:` lines; `canon skills install
|
|
282
|
+
and installs nothing. `.agents` alone never selects Codex. `canon skills-install|check|doctor` follow the section; `install` prunes projected files the bundle no longer ships when their bytes match the lock (a modified one stays, reported as `kept:`), `check` exits 1 (`SKILLS_CHECK_FAILED`) naming each orphan and `doctor` prints `orphan:` lines; `canon skills-install
|
|
285
283
|
--harness <name>` (once for each name) or `--no-harness` rewrites it in place. Without the section they use the
|
|
286
284
|
install lock's providers, then the detected ones; nothing undetected is ever
|
|
287
285
|
added. A present section that is not this shape, or names another harness,
|
|
288
|
-
fails those commands (exit `1`), and `canon init
|
|
286
|
+
fails those commands (exit `1`), and `canon init-check` reports
|
|
289
287
|
`[PASS] skills (providers: …)`, `[not configured] skills (…)`, or
|
|
290
288
|
`[FAIL] skills: …`.
|
|
291
289
|
|
|
@@ -299,8 +297,7 @@ or one whose recorded source digest differs from the file's current bytes,
|
|
|
299
297
|
or when the index holds a scenario of a spec root that no `.feature` file
|
|
300
298
|
of it declares any more.
|
|
301
299
|
|
|
302
|
-
The commands that write records (`canon
|
|
303
|
-
scenario`, `canon evidence add` and `canon artifacts store`) rebuild a stale index on disk, once nothing
|
|
300
|
+
The commands that write records (`canon subjects move`, `canon reviews scenario`, `canon evidence add` and `canon artifacts store`) rebuild a stale index on disk, once nothing
|
|
304
301
|
refuses the call (a refused call writes nothing, whatever the index; until then they read the index as the
|
|
305
302
|
refresh would leave it, in memory): they
|
|
306
303
|
run `canon inventory sync`'s code on the changed files (validation still
|
|
@@ -313,7 +310,7 @@ stderr: canon artifacts store: refreshed the scenario index from 1 changed featu
|
|
|
313
310
|
|
|
314
311
|
The commands that only read (`canon gate check`, `canon status`) write
|
|
315
312
|
nothing: they grade a stale index as the refresh would leave it, built in
|
|
316
|
-
memory, and print no refresh line. `canon
|
|
313
|
+
memory, and print no refresh line. `canon subjects get` is the one read
|
|
317
314
|
command that declares the refresh, as a cache effect (its `effectNote`), after the subject is found.
|
|
318
315
|
`canon query --kind scenario` and the
|
|
319
316
|
report panels read the index on disk as it is.
|
|
@@ -354,7 +351,7 @@ tag diagnostics.
|
|
|
354
351
|
## The artifact store lock
|
|
355
352
|
|
|
356
353
|
Every write to the evidence artifact store (`.canon/artifacts/sha256/`:
|
|
357
|
-
`canon evidence add`, `canon
|
|
354
|
+
`canon evidence add`, `canon reviews scenario`, `canon artifacts store`) holds an
|
|
358
355
|
OS file lock on `.canon/artifact-store.lock` from its "already stored?"
|
|
359
356
|
check through its last rename, so a write that fails and rolls back never
|
|
360
357
|
removes a blob another writer published or counted as stored. A rollback
|
|
@@ -406,7 +403,7 @@ comment, only the missing ones):
|
|
|
406
403
|
|
|
407
404
|
A rerun on a repo that already has `canon.yaml` only refreshes
|
|
408
405
|
`AGENTS.md`; `canon migrate` adds the lines an existing `.gitignore`
|
|
409
|
-
lacks, and `canon skills
|
|
406
|
+
lacks, and `canon skills-doctor` and `canon init-check` name a
|
|
410
407
|
missing one.
|
|
411
408
|
|
|
412
409
|
## Upgrading a 0.27 repository
|
|
@@ -417,8 +414,8 @@ still holds 0.27 canon state and put `canon migrate --json` first in
|
|
|
417
414
|
preview (a report with `planDigest` and `effects[]`, exit 0, nothing
|
|
418
415
|
written); `canon migrate --commit --plan-digest <digest from the preview>`
|
|
419
416
|
acts, and only when the plan recomputed now has the same digest. Afterwards
|
|
420
|
-
run `canon skills
|
|
421
|
-
read with `canon skills
|
|
417
|
+
run `canon skills-install`, which writes the stub guide; the guide itself is
|
|
418
|
+
read with `canon skills get canon`.
|
|
422
419
|
|
|
423
420
|
**Done when:** `canon status` no longer warns about 0.27 state and
|
|
424
421
|
`canon migrate --json` is no longer the first step in `meta.next`.
|