@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.
Files changed (144) hide show
  1. package/dist/skills/SKILL.src.md +142 -130
  2. package/dist/skills/reference/brief-align.md +8 -8
  3. package/dist/skills/reference/brief-clarify.md +6 -6
  4. package/dist/skills/reference/brief-harden.md +5 -5
  5. package/dist/skills/reference/brief-polish.md +13 -13
  6. package/dist/skills/reference/brief-shape.md +9 -9
  7. package/dist/skills/reference/canon-artifact-ingest.md +7 -7
  8. package/dist/skills/reference/canon-authoring.md +11 -11
  9. package/dist/skills/reference/canon-context.md +13 -13
  10. package/dist/skills/reference/canon-fmt.md +1 -1
  11. package/dist/skills/reference/canon-gate.md +52 -53
  12. package/dist/skills/reference/canon-inventory.md +10 -11
  13. package/dist/skills/reference/canon-learn.md +13 -14
  14. package/dist/skills/reference/canon-plan-import.md +15 -15
  15. package/dist/skills/reference/canon-plugins.md +8 -8
  16. package/dist/skills/reference/canon-policy.md +11 -11
  17. package/dist/skills/reference/canon-report-dashboard.md +6 -7
  18. package/dist/skills/reference/canon-retrieve.md +6 -6
  19. package/dist/skills/reference/canon-review.md +52 -53
  20. package/dist/skills/reference/canon-storage.md +16 -19
  21. package/dist/skills/reference/canon-subject.md +120 -127
  22. package/dist/skills/reference/role-implementer.md +90 -76
  23. package/dist/skills/reference/role-orchestrator.md +196 -172
  24. package/dist/skills/reference/role-planner.md +101 -97
  25. package/dist/skills/reference/role-reviewer.md +91 -85
  26. package/dist/skills/scripts/canon-retrieve-pre-dispatch.sh +5 -5
  27. package/man/canon-adapter-authorize.1 +11 -8
  28. package/man/canon-adapter-validate.1 +15 -8
  29. package/man/canon-artifacts-prune.1 +11 -11
  30. package/man/canon-artifacts-store.1 +8 -8
  31. package/man/canon-artifacts-verify.1 +7 -7
  32. package/man/canon-artifacts.1 +10 -4
  33. package/man/{canon-brief-approve.1 → canon-briefs-approve.1} +20 -17
  34. package/man/{canon-brief-check.1 → canon-briefs-check.1} +9 -6
  35. package/man/{canon-brief-show.1 → canon-briefs-get.1} +14 -11
  36. package/man/canon-briefs.1 +59 -0
  37. package/man/{canon-change-new.1 → canon-changes-create.1} +14 -14
  38. package/man/{canon-change-defer.1 → canon-changes-defer.1} +19 -16
  39. package/man/{canon-change-drop.1 → canon-changes-drop.1} +19 -16
  40. package/man/{canon-change-reopen.1 → canon-changes-reopen.1} +20 -17
  41. package/man/canon-changes.1 +65 -0
  42. package/man/canon-completion.1 +8 -5
  43. package/man/{canon-context-pack-add.1 → canon-context-packs-create.1} +9 -9
  44. package/man/{canon-context-pack-show.1 → canon-context-packs-get.1} +10 -7
  45. package/man/{canon-context-pack-verify.1 → canon-context-packs-verify.1} +10 -7
  46. package/man/canon-context-packs.1 +56 -0
  47. package/man/canon-context.1 +9 -6
  48. package/man/canon-dashboard.1 +10 -10
  49. package/man/canon-demo-init.1 +12 -7
  50. package/man/canon-demo-review.1 +7 -7
  51. package/man/{canon-divergence-accept.1 → canon-divergences-accept.1} +12 -12
  52. package/man/{canon-divergence-add.1 → canon-divergences-add.1} +12 -12
  53. package/man/{canon-divergence-defer.1 → canon-divergences-defer.1} +12 -12
  54. package/man/{canon-divergence-list.1 → canon-divergences-list.1} +10 -7
  55. package/man/{canon-divergence-resolve.1 → canon-divergences-resolve.1} +12 -12
  56. package/man/{canon-divergence.1 → canon-divergences.1} +16 -10
  57. package/man/canon-evidence-add-all.1 +117 -0
  58. package/man/canon-evidence-add.1 +16 -22
  59. package/man/canon-evidence-approval-payload.1 +10 -7
  60. package/man/canon-evidence-audit.1 +11 -11
  61. package/man/canon-evidence.1 +15 -5
  62. package/man/canon-export.1 +11 -11
  63. package/man/{canon-feature-new.1 → canon-features-create.1} +14 -14
  64. package/man/{canon-feature.1 → canon-features.1} +12 -6
  65. package/man/{canon-finding-close.1 → canon-findings-close.1} +17 -23
  66. package/man/{canon-finding-add.1 → canon-findings-create.1} +13 -13
  67. package/man/{canon-finding-list.1 → canon-findings-list.1} +11 -8
  68. package/man/{canon-finding.1 → canon-findings.1} +18 -20
  69. package/man/canon-format.1 +7 -4
  70. package/man/canon-gate-check.1 +9 -6
  71. package/man/canon-gate-install-hooks.1 +12 -12
  72. package/man/canon-gate-promote.1 +8 -8
  73. package/man/canon-gate.1 +11 -5
  74. package/man/canon-ingest-plans.1 +10 -10
  75. package/man/canon-ingest-records.1 +13 -13
  76. package/man/canon-init-check.1 +48 -0
  77. package/man/canon-init.1 +10 -13
  78. package/man/canon-inventory-sync.1 +8 -8
  79. package/man/canon-inventory.1 +10 -4
  80. package/man/canon-ledger-compact.1 +10 -10
  81. package/man/canon-ledger.1 +10 -4
  82. package/man/canon-migrate-revert.1 +58 -0
  83. package/man/canon-migrate.1 +19 -22
  84. package/man/{canon-plugin-sync.1 → canon-plugins-sync.1} +10 -10
  85. package/man/{canon-plugin.1 → canon-plugins.1} +12 -6
  86. package/man/canon-policy-approve.1 +13 -10
  87. package/man/{canon-policy-show.1 → canon-policy-get.1} +8 -5
  88. package/man/canon-policy.1 +13 -7
  89. package/man/{canon-prompt-add.1 → canon-prompts-create.1} +14 -14
  90. package/man/{canon-prompt-show.1 → canon-prompts-get.1} +10 -7
  91. package/man/canon-prompts.1 +49 -0
  92. package/man/canon-purge.1 +12 -16
  93. package/man/canon-query.1 +11 -8
  94. package/man/canon-regime-show.1 +10 -7
  95. package/man/canon-report-build.1 +4 -4
  96. package/man/canon-report-check.1 +7 -4
  97. package/man/canon-report-snapshot.1 +6 -6
  98. package/man/canon-report.1 +10 -4
  99. package/man/canon-retrieve.1 +11 -8
  100. package/man/{canon-review-brief.1 → canon-reviews-brief.1} +14 -14
  101. package/man/{canon-review-change.1 → canon-reviews-change.1} +13 -13
  102. package/man/{canon-review-scenario.1 → canon-reviews-scenario.1} +12 -12
  103. package/man/{canon-review.1 → canon-reviews.1} +16 -10
  104. package/man/{canon-dispatch-begin.1 → canon-runs-create.1} +11 -11
  105. package/man/{canon-task-done.1 → canon-runs-diff.1} +7 -10
  106. package/man/{canon-dispatch-end.1 → canon-runs-end.1} +11 -11
  107. package/man/{canon-dispatch.1 → canon-runs.1} +15 -9
  108. package/man/{canon-scenario-new.1 → canon-scenarios-create.1} +14 -14
  109. package/man/{canon-scenario.1 → canon-scenarios.1} +12 -6
  110. package/man/canon-schema.1 +22 -34
  111. package/man/canon-search.1 +15 -12
  112. package/man/canon-selftest.1 +7 -4
  113. package/man/canon-skills-check.1 +10 -7
  114. package/man/canon-skills-doctor.1 +10 -7
  115. package/man/canon-skills-get.1 +47 -0
  116. package/man/canon-skills-install.1 +10 -10
  117. package/man/canon-skills-list.1 +53 -0
  118. package/man/canon-skills.1 +16 -16
  119. package/man/canon-status.1 +10 -7
  120. package/man/{canon-strategy-approval-payload.1 → canon-strategies-approval-payload.1} +13 -10
  121. package/man/{canon-strategy-promote.1 → canon-strategies-promote.1} +12 -12
  122. package/man/{canon-strategy-rollback.1 → canon-strategies-rollback.1} +12 -12
  123. package/man/{canon-strategy.1 → canon-strategies.1} +14 -8
  124. package/man/{canon-subject-adopt.1 → canon-subjects-adopt.1} +10 -10
  125. package/man/{canon-subject-new.1 → canon-subjects-create.1} +14 -14
  126. package/man/{canon-subject-show.1 → canon-subjects-get.1} +9 -6
  127. package/man/{canon-subject-move.1 → canon-subjects-move.1} +12 -12
  128. package/man/{canon-subject-unadopt.1 → canon-subjects-unadopt.1} +12 -12
  129. package/man/{canon-subject.1 → canon-subjects.1} +16 -10
  130. package/man/canon-tasks-done.1 +50 -0
  131. package/man/{canon-task.1 → canon-tasks.1} +13 -7
  132. package/man/canon-trace.1 +8 -5
  133. package/man/canon.1 +66 -36
  134. package/package.json +5 -5
  135. package/man/canon-adapter.1 +0 -46
  136. package/man/canon-brief.1 +0 -64
  137. package/man/canon-change.1 +0 -59
  138. package/man/canon-context-pack.1 +0 -50
  139. package/man/canon-demo.1 +0 -47
  140. package/man/canon-dispatch-diff.1 +0 -41
  141. package/man/canon-ingest.1 +0 -46
  142. package/man/canon-prompt.1 +0 -43
  143. package/man/canon-regime.1 +0 -39
  144. package/man/canon-skills-show.1 +0 -102
@@ -3,8 +3,8 @@
3
3
  You run the loop across agents and move the subject. You write no brief,
4
4
  code or review yourself. Declare the role with `CANON_ROLE=orchestrator` (or
5
5
  `--as orchestrator`); your `canon status` also lists the human's steps. The
6
- human's acts (`brief approve`, `policy approve`, `divergence accept`, `change drop`,
7
- `change defer`, `change reopen`: six leaves) refuse
6
+ human's acts (`briefs approve`, `policy approve`, `divergences accept`, `changes drop`,
7
+ `changes defer`, `changes reopen`: six leaves) refuse
8
8
  every agent role, you included (`ACTOR_DENIED`), unless you record the answer the
9
9
  human gave you in the conversation with `--relayed-via <tool>` (below). You never
10
10
  run them without that answer, and never remove or unset your role (`env -u CANON_ROLE`,
@@ -12,33 +12,33 @@ dropping `--as`) to get past the refusal.
12
12
 
13
13
  ## Commands
14
14
 
15
- Every leaf of this role is below with its full syntax line (every option the leaf
16
- has) and an example generated from the CLI's own spec, which runs as written against
15
+ Every operation of this role is below with its full syntax line (every argument the
16
+ operation has) and an example, which runs as written against
17
17
  the example story (subject `demo`, change `add-login`, scenario `auth.login.01`): swap
18
- in your ids. Use only the options on a line; never guess one. Ask `canon schema
19
- <command> --json` only for a leaf this block does not list, or after a `USAGE` refusal.
18
+ in your ids. Use only the arguments on a line; never guess one. Ask `canon schema
19
+ <operation> --json` only for an operation this block does not list, or after an `INPUT_INVALID` refusal.
20
20
 
21
21
  <!-- canon:generated commands-orchestrator begin -->
22
- Every leaf takes `--as <ROLE>` and `--json`; `--repo <DIR>` too, except `completion`, `regime show`, `schema`, `selftest`, `skills show`. `--input <JSON|FILE|->` runs a leaf from one JSON document (an array is a batch) and is only on the lines ending `[--input]`. Its document keys are the option names in camelCase, singular even when the option repeats (the value is then an array; none is the key left out, `[]` is refused), and `operands` holds the operands. `--fields <FIELDS>` is a comma list of the paths `canon schema <COMMAND> --json` declares under `outputs[].fields.paths`; a path is the record's own key, spelled as the answer spells it.
23
- A `usage:` line shows the syntax and is not itself a command to run (the runnable example under it is): `<X>` is a value, `[x]` optional, `a | b` a choice, `(a | b)` exactly one is required, `[--x <V>]*` may repeat, `<X>+` is one or more, `[--a --b <V>]` go together. An option that is not on the line does not exist: it is refused (`USAGE`).
22
+ Every operation takes `--as <ROLE>` and `--json`; `--repo <DIR>` too, except `completion`, `regime-show`, `schema`, `selftest`, `skills get`, `skills list`. `--input <JSON|FILE|->` runs an operation from one JSON document (an array is a batch) and is on every operation. Its keys are the argument names in camelCase, operands included (`id`), singular even when the argument repeats (the value is then an array; `[]` is equivalent to leaving the key out), and a number is a JSON number. An argv integer is `-?(0|[1-9][0-9]*)`: `+1` and `01` are refused. `--fields <FIELDS>` is a comma list of the paths `canon schema <OPERATION> --json` declares under `outputs[].fields.paths`; a path is the record's own key, spelled as the answer spells it.
23
+ A `usage:` line shows the syntax and is not itself a command to run (the runnable example under it is): `<X>` is a value, `[x]` optional, `a | b` a choice, `(a | b)` exactly one is required, `[--x <V>]*` may repeat, `<X>+` is one or more, `[--a --b <V>]` go together. An argument that is not on the line does not exist: it is refused (`INPUT_INVALID`, reason `UNKNOWN_ARGUMENT`).
24
24
 
25
25
  ```text
26
- # Authorize declared capabilities against repository policy (preflight only)
27
- usage: canon adapter authorize --response <FILE>
26
+ # Authorize an adapter response's declared capabilities against repository policy (preflight only)
27
+ usage: canon adapter-authorize --response <FILE>
28
28
  ```
29
29
  ```bash
30
- canon adapter authorize --response adapter-response.json --repo . --json
30
+ canon adapter-authorize --response adapter-response.json --json
31
31
  ```
32
32
  ```text
33
- # Read and validate one provider-neutral response envelope
34
- usage: canon adapter validate --response <FILE>
33
+ # Read and validate one provider-neutral adapter response envelope without executing a provider
34
+ usage: canon adapter-validate --response <FILE>
35
35
  ```
36
36
  ```bash
37
- canon adapter validate --response adapter-response.json --json
37
+ canon adapter-validate --response adapter-response.json --json
38
38
  ```
39
39
  ```text
40
40
  # Delete the artifact blobs no record binds any more (the bare run previews; --commit --plan-digest deletes)
41
- usage: canon artifacts prune [--keep-days <N>] [--limit <N> | --all] [--cursor <CURSOR>] [--commit --plan-digest <PLAN_DIGEST>] [--input]
41
+ usage: canon artifacts prune [--keep-days <N>] [--limit <LIMIT> | --all] [--cursor <CURSOR>]
42
42
  # a bare run previews and prints planDigest; `--commit --plan-digest <PLAN_DIGEST>` with that digest acts
43
43
  ```
44
44
  ```bash
@@ -46,24 +46,24 @@ canon artifacts prune --keep-days 30 --json
46
46
  ```
47
47
  ```text
48
48
  # Store the bound files of existing evidence records and current reviews in the artifact store (.canon/artifacts/sha256/)
49
- usage: canon artifacts store [--max-artifact-mib <N>] [--dry-run] [--input]
49
+ usage: canon artifacts store [--max-artifact-mib <N>] [--dry-run]
50
50
  ```
51
51
  ```bash
52
52
  canon artifacts store --json
53
53
  ```
54
54
  ```text
55
55
  # Check that the artifact store holds every file the latest evidence and current reviews bind
56
- usage: canon artifacts verify [--full]
56
+ usage: canon artifacts verify
57
57
  ```
58
58
  ```bash
59
59
  canon artifacts verify --json
60
60
  ```
61
61
  ```text
62
- # Record the human's approval of the brief, bound to its text; refused while `brief check` has blockers
63
- usage: canon brief approve [<CHANGE_ID>]* [--approver <NAME> | --delegated] [--note <TEXT> | --delegated] [--relayed-via <NAME> | --delegated] [--actor <ACTOR_ID>] [--digest <DIGEST> | --delegated]* [--input]
62
+ # Record the human's approval of the brief, bound to its text; refused while `briefs check` has blockers
63
+ usage: canon briefs approve [<CHANGE_ID>]* (--approver <NAME> | --delegated) (--note <TEXT> | --delegated) [--relayed-via <NAME>] [--actor <ACTOR_ID>] [--digest <DIGEST> (with --relayed-via)]*
64
64
  ```
65
65
  ```bash
66
- canon brief approve add-search --approver alice --note "approved as written" --json
66
+ canon briefs approve add-search --approver alice --note "approved as written" --json
67
67
  ```
68
68
  ```text
69
69
  # Write the shell completion script for canon (bash, zsh or fish)
@@ -74,101 +74,80 @@ canon completion zsh --json
74
74
  ```
75
75
  ```text
76
76
  # Show what you can author here: record kinds, fields, enums, policies
77
- usage: canon context [--fields <FIELDS>]
77
+ usage: canon context
78
78
  ```
79
79
  ```bash
80
80
  canon context --json
81
81
  ```
82
82
  ```text
83
83
  # Create an immutable context pack from a repository-local JSON manifest
84
- usage: canon context-pack add --manifest <FILE> [--input]
84
+ usage: canon context-packs create --manifest <FILE>
85
85
  ```
86
86
  ```bash
87
- canon context-pack add --manifest .canon/context-manifest.json --json
87
+ canon context-packs create --manifest .canon/context-manifest.json --json
88
88
  ```
89
89
  ```text
90
90
  # Show a context pack after verifying its manifest and content objects
91
- usage: canon context-pack show <PACK_ID>
91
+ usage: canon context-packs get <ID>
92
92
  ```
93
93
  ```bash
94
- canon context-pack show sha256:0000000000000000000000000000000000000000000000000000000000000000 --json
94
+ canon context-packs get sha256:0000000000000000000000000000000000000000000000000000000000000000 --json
95
95
  ```
96
96
  ```text
97
97
  # Verify a context pack's manifest and immutable content objects
98
- usage: canon context-pack verify <PACK_ID>
98
+ usage: canon context-packs verify <ID>
99
99
  ```
100
100
  ```bash
101
- canon context-pack verify sha256:0000000000000000000000000000000000000000000000000000000000000000 --json
101
+ canon context-packs verify sha256:0000000000000000000000000000000000000000000000000000000000000000 --json
102
102
  ```
103
103
  ```text
104
104
  # Serve the local status dashboard
105
- usage: canon dashboard [--snapshot <DIR>] [--port <N>] [--input]
105
+ usage: canon dashboard [--snapshot <DIR>] [--port <N>]
106
106
  ```
107
107
  ```bash
108
108
  canon dashboard --json
109
109
  ```
110
110
  ```text
111
- # Scaffold the demo repo (gate starts RED)
112
- usage: canon demo init [--input]
111
+ # Try the evidence loop end-to-end: scaffold the demo repo (gate starts RED)
112
+ usage: canon demo-init
113
113
  ```
114
114
  ```bash
115
- canon demo init --repo canon-demo --json
115
+ canon demo-init --json
116
116
  ```
117
117
  ```text
118
- # Record the missing reviewer evidence (gate turns GREEN)
119
- usage: canon demo review [--input]
118
+ # Record the demo repo's missing reviewer evidence (gate turns GREEN)
119
+ usage: canon demo-review
120
120
  ```
121
121
  ```bash
122
- canon demo review --json
123
- ```
124
- ```text
125
- # Mint a Run manifest with retrieved guidance and context/policy lineage
126
- usage: canon dispatch begin --regime <KEY> [--role <ROLE>] [--actor <ACTOR_ID>] [--session <SESSION_ID>] [--provider <NAME>] [--model <NAME>] [--skill <SKILL_ID>] [--skill-digest <DIGEST> (with --skill)] [--manifest <FILE>] [--prompt-bundle <NAME@VERSION>] [--task <TASK_ID>] [--parent-run <RUN_ID>] [--input]
127
- ```
128
- ```bash
129
- canon dispatch begin --regime implementer/my-repo/api/abcdef012345 --role implementer --json
130
- ```
131
- ```text
132
- # Diff the declared plan DAG against the observed execution graph
133
- usage: canon dispatch diff
134
- ```
135
- ```bash
136
- canon dispatch diff --json
137
- ```
138
- ```text
139
- # Close a dispatched run with a terminal status and an ended_at
140
- usage: canon dispatch end <RUN_ID> --run-outcome <succeeded|failed> [--input]
141
- ```
142
- ```bash
143
- canon dispatch end 01ARZ3NDEKTSV4RRFFQ69G5FAV --run-outcome succeeded --json
122
+ canon demo-review --json
144
123
  ```
145
124
  ```text
146
125
  # List the current divergence burn-down state
147
- usage: canon divergence list [--as-of <TIMESTAMP>] [--limit <N> | --all] [--cursor <CURSOR>] [--fields <FIELDS>]
126
+ usage: canon divergences list [--as-of <TIMESTAMP>] [--limit <LIMIT> | --all] [--cursor <CURSOR>]
148
127
  ```
149
128
  ```bash
150
- canon divergence list --as-of 2030-01-01 --json
129
+ canon divergences list --as-of 2030-01-01 --json
151
130
  ```
152
131
  ```text
153
132
  # Emit exact bytes for external `ssh-keygen -Y sign -n canon-approval-v1`
154
- usage: canon evidence approval-payload --approver <NAME> --approval-at <TIMESTAMP> [--task <TASK_ID>] [--project <PROJECT_ID>] [--scenario <SCENARIO_ID>] [--run <RUN_ID>] [--rev <REV>] [--surface-ref <PATH_OR_EFFECT>]*
133
+ usage: canon evidence approval-payload --approver <NAME> --approval-at <TIMESTAMP> (--task <TASK_ID> | --scenario <SCENARIO_ID>) [--project <PROJECT_ID>] [--run <RUN_ID>] [--rev <REV>] [--surface-ref <PATH_OR_EFFECT>]*
155
134
  ```
156
135
  ```bash
157
- canon evidence approval-payload --scenario auth.login.01 --project root --approver alice --approval-at 2030-01-01T00:00:00Z --json
136
+ canon evidence approval-payload --project root --scenario auth.login.01 --approver alice --approval-at 2030-01-01T00:00:00Z --json
158
137
  ```
159
138
  ```text
160
139
  # Export a redacted retention manifest without deleting records
161
- usage: canon export --kind <change|task|scenario|run|handoff|review|divergence|trajectory|strategy_item|evidence|subject|finding|change_state> [--before <TIMESTAMP>] [--after <TIMESTAMP>] [--output <FILE>] [--include-sensitive] [--limit <N> | --all] [--cursor <CURSOR>] [--fields <FIELDS>] [--dry-run] [--input]
140
+ usage: canon export --kind <change|task|scenario|run|handoff|review|divergence|trajectory|strategy_item|evidence|subject|finding|change_state> [--before <TIMESTAMP>] [--after <TIMESTAMP>] [--output <FILE>] [--include-sensitive] [--limit <LIMIT> | --all] [--cursor <CURSOR>] [--dry-run]
162
141
  ```
163
142
  ```bash
164
143
  canon export --kind evidence --output evidence.json --json
165
144
  ```
166
145
  ```text
167
146
  # List a change's committed findings at their latest version
168
- usage: canon finding list --change <CHANGE_ID> [--open] [--limit <N> | --all] [--cursor <CURSOR>] [--fields <FIELDS>]
147
+ usage: canon findings list --change <CHANGE_ID> [--open] [--limit <LIMIT> | --all] [--cursor <CURSOR>]
169
148
  ```
170
149
  ```bash
171
- canon finding list --change add-login --json
150
+ canon findings list --change add-login --json
172
151
  ```
173
152
  ```text
174
153
  # Validate a spec/artifact corpus against canon's format
@@ -186,42 +165,49 @@ canon gate check --json
186
165
  ```
187
166
  ```text
188
167
  # Install the gate hook into .claude/settings.json / .codex/hooks.json
189
- usage: canon gate install-hooks [--event <NAME>] [--matcher <TEXT>] [--command <TEXT>] [--timeout <N>] [--dry-run] [--input]
168
+ usage: canon gate install-hooks [--event <NAME>] [--matcher <TEXT>] [--command <TEXT>] [--hook-timeout <N>] [--dry-run]
190
169
  ```
191
170
  ```bash
192
171
  canon gate install-hooks --json
193
172
  ```
194
173
  ```text
195
174
  # Import plans as Change/Task records
196
- usage: canon ingest plans [--dialect <NAME> --plan-source <DIR>] [--dry-run] [--input]
175
+ usage: canon ingest-plans [--dialect <NAME> --plan-source <DIR>] [--dry-run]
197
176
  ```
198
177
  ```bash
199
- canon ingest plans --json
178
+ canon ingest-plans --json
200
179
  ```
201
180
  ```text
202
- # Import review/divergence/task/handoff records and derive verdicts
203
- usage: canon ingest records [--watch] [--interval-secs <N>] [--dry-run] [--run <RUN_ID>] [--input]
181
+ # Import review/divergence/task/handoff records into canon's store and derive verdicts
182
+ usage: canon ingest-records [--watch] [--interval-secs <N>] [--dry-run] [--run <RUN_ID>]
204
183
  ```
205
184
  ```bash
206
- canon ingest records --json
185
+ canon ingest-records --json
207
186
  ```
208
187
  ```text
209
188
  # Set up canon in a repo (canon.yaml, a starter policy, the AGENTS.md block, a plans home)
210
- usage: canon init [--check] [--no-agents-md | --check] [--policy <light|standard|strict> | --check | --no-policy] [--harness <claude|codex|omp|pi> | --check | --no-harness]* [--language <TAG> | --check] [--dry-run | --check] [--input]
189
+ usage: canon init [--no-agents-md] [--policy <light|standard|strict> | --no-policy] [--harness <claude|codex|omp|pi> | --no-harness]* [--language <TAG>] [--dry-run]
211
190
  ```
212
191
  ```bash
213
192
  canon init --json
214
193
  ```
215
194
  ```text
195
+ # Validate an existing canon.yaml instead of writing one
196
+ usage: canon init-check
197
+ ```
198
+ ```bash
199
+ canon init-check --json
200
+ ```
201
+ ```text
216
202
  # Validate each spec root, then materialize scenario index records
217
- usage: canon inventory sync [--spec-root <DIR>] [--dry-run] [--input]
203
+ usage: canon inventory sync [--spec-root <DIR>] [--dry-run]
218
204
  ```
219
205
  ```bash
220
206
  canon inventory sync --json
221
207
  ```
222
208
  ```text
223
209
  # Move superseded versions of every record out of the ledger into the archive
224
- usage: canon ledger compact [--commit --plan-digest <PLAN_DIGEST>] [--input]
210
+ usage: canon ledger compact
225
211
  # a bare run previews and prints planDigest; `--commit --plan-digest <PLAN_DIGEST>` with that digest acts
226
212
  ```
227
213
  ```bash
@@ -229,43 +215,51 @@ canon ledger compact --json
229
215
  ```
230
216
  ```text
231
217
  # Bring a repo from an earlier canon up to date
232
- usage: canon migrate [--commit --plan-digest <PLAN_DIGEST>] [--revert | --relayed-via <NAME>] [--backup <DIR> (with --revert)] [--actor <ACTOR_ID> (with --relayed-via)] [--approver <NAME> (with --relayed-via)] [--note <TEXT> (with --relayed-via)] [--input]
218
+ usage: canon migrate [--relayed-via <NAME> (with --commit)] [--actor <ACTOR_ID> (with --relayed-via)] [--approver <NAME> (with --relayed-via)] [--note <TEXT> (with --relayed-via)]
233
219
  # a bare run previews and prints planDigest; `--commit --plan-digest <PLAN_DIGEST>` with that digest acts
234
220
  ```
235
221
  ```bash
236
222
  canon migrate --json
237
223
  ```
238
224
  ```text
225
+ # Undo the last committed migrate (restores what it backed up, undoes its moves)
226
+ usage: canon migrate-revert [--backup <DIR>]
227
+ # a bare run previews and prints planDigest; `--commit --plan-digest <PLAN_DIGEST>` with that digest acts
228
+ ```
229
+ ```bash
230
+ canon migrate-revert --json
231
+ ```
232
+ ```text
239
233
  # Validate and write a plugin's overlay records
240
- usage: canon plugin sync <PLUGIN_ID> [--spec-root <DIR>] [--dry-run] [--input]
234
+ usage: canon plugins sync <ID> [--spec-root <DIR>] [--dry-run]
241
235
  ```
242
236
  ```bash
243
- canon plugin sync my-plugin --json
237
+ canon plugins sync my-plugin --json
244
238
  ```
245
239
  ```text
246
240
  # Show the policy's digest and its approval (who, when, which bytes)
247
- usage: canon policy show
241
+ usage: canon policy get
248
242
  ```
249
243
  ```bash
250
- canon policy show --json
244
+ canon policy get --json
251
245
  ```
252
246
  ```text
253
247
  # Add a prompt bundle from a repository-local JSON manifest
254
- usage: canon prompt add <NAME@VERSION> --manifest <FILE> [--input]
248
+ usage: canon prompts create --id <ID> --manifest <FILE>
255
249
  ```
256
250
  ```bash
257
- canon prompt add reviewer@v1 --manifest .canon/prompt-manifest.json --json
251
+ canon prompts create --id reviewer@v1 --manifest .canon/prompt-manifest.json --json
258
252
  ```
259
253
  ```text
260
254
  # Select a registered prompt bundle version
261
- usage: canon prompt show <NAME@VERSION>
255
+ usage: canon prompts get <ID>
262
256
  ```
263
257
  ```bash
264
- canon prompt show reviewer@v1 --json
258
+ canon prompts get reviewer@v1 --json
265
259
  ```
266
260
  ```text
267
261
  # Remove allowlisted records older than a cutoff
268
- usage: canon purge --kind <run|trajectory|session|event> --before <TIMESTAMP> [--commit --plan-digest <PLAN_DIGEST>] [--input]
262
+ usage: canon purge --kind <run|trajectory> --before <TIMESTAMP>
269
263
  # a bare run previews and prints planDigest; `--commit --plan-digest <PLAN_DIGEST>` with that digest acts
270
264
  ```
271
265
  ```bash
@@ -273,21 +267,21 @@ canon purge --kind run --before 2020-01-01T00:00:00Z --json
273
267
  ```
274
268
  ```text
275
269
  # Read stored records
276
- usage: canon query --kind <change|task|scenario|run|handoff|review|divergence|trajectory|strategy_item|evidence|subject|finding|change_state> [--since <TIMESTAMP>] [--plugin <PLUGIN_ID> | --history] [--change <CHANGE_ID>] [--status <STATUS>] [--domain <NAME>] [--include-sensitive] [--limit <N> | --all] [--cursor <CURSOR>] [--fields <FIELDS>]
270
+ usage: canon query --kind <change|task|scenario|run|handoff|review|divergence|trajectory|strategy_item|evidence|subject|finding|change_state> [--since <TIMESTAMP>] [--plugin <PLUGIN_ID> | --history] [--change <CHANGE_ID>] [--status <STATUS>] [--domain <NAME>] [--include-sensitive] [--limit <LIMIT> | --all] [--cursor <CURSOR>]
277
271
  ```
278
272
  ```bash
279
273
  canon query --kind evidence --json
280
274
  ```
281
275
  ```text
282
276
  # Build a canonical regime key for hook scripts
283
- usage: canon regime show --role-segment <NAME> --repo-name <NAME> --area <NAME> --hash <HASH>
277
+ usage: canon regime-show --role-segment <NAME> --repo-name <NAME> --area <NAME> --hash <HASH>
284
278
  ```
285
279
  ```bash
286
- canon regime show --role-segment reviewer --repo-name my-repo --area api --hash abcdef012345 --json
280
+ canon regime-show --role-segment reviewer --repo-name my-repo --area api --hash abcdef012345 --json
287
281
  ```
288
282
  ```text
289
283
  # Write the status report (.canon/REPORT.md)
290
- usage: canon report build [--input]
284
+ usage: canon report build
291
285
  ```
292
286
  ```bash
293
287
  canon report build --json
@@ -301,31 +295,52 @@ canon report check --json
301
295
  ```
302
296
  ```text
303
297
  # Export the panel marts to <DIR>/*.parquet plus manifest.json
304
- usage: canon report snapshot <DIR> [--input]
298
+ usage: canon report snapshot <DIR>
305
299
  ```
306
300
  ```bash
307
301
  canon report snapshot snapshot-out --json
308
302
  ```
309
303
  ```text
310
304
  # Fetch role-scoped strategy guidance
311
- usage: canon retrieve --for-role <ROLE> (--regime <KEY> | --domain <NAME>) [--subject <SUBJECT_ID> (with --domain)] [--limit <N>]
305
+ usage: canon retrieve --for-role <ROLE> (--regime <KEY> | --domain <NAME>) [--subject <SUBJECT_ID> (with --domain)] [--top <N>]
312
306
  ```
313
307
  ```bash
314
- canon retrieve --for-role reviewer --domain dev --limit 20 --json
308
+ canon retrieve --for-role reviewer --domain dev --top 20 --json
315
309
  ```
316
310
  ```text
317
- # Describe canon's own commands
318
- usage: canon schema [<PATH>]* [--schemas | --error <CODE> | --errors | --warning <CODE> | --warnings]
311
+ # Mint a Run manifest with retrieved guidance and context/policy lineage
312
+ usage: canon runs create --regime <KEY> [--role <ROLE>] [--actor <ACTOR_ID>] [--session <SESSION_ID>] [--provider <NAME>] [--model <NAME>] [--skill <SKILL_ID>] [--skill-digest <DIGEST> (with --skill)] [--manifest <FILE>] [--prompt-bundle <NAME@VERSION>] [--task <TASK_ID>] [--parent-run <RUN_ID>]
319
313
  ```
320
314
  ```bash
321
- canon schema evidence add --json
315
+ canon runs create --role implementer --regime implementer/my-repo/api/abcdef012345 --json
316
+ ```
317
+ ```text
318
+ # Diff the declared plan DAG against the observed execution graph
319
+ usage: canon runs diff
320
+ ```
321
+ ```bash
322
+ canon runs diff --json
323
+ ```
324
+ ```text
325
+ # Close a dispatched run with a terminal status and an ended_at
326
+ usage: canon runs end <ID> --run-outcome <succeeded|failed>
327
+ ```
328
+ ```bash
329
+ canon runs end 01ARZ3NDEKTSV4RRFFQ69G5FAV --run-outcome succeeded --json
330
+ ```
331
+ ```text
332
+ # Describe the tool: its collections, operations, arguments, schemas and errors
333
+ usage: canon schema [<OPERATION>] [--collection <COLLECTION> | --errors | --error <CODE> | --warnings | --warning <CODE> | --search <TASK>] [--schemas (with --operation)]
334
+ ```
335
+ ```bash
336
+ canon schema --json
322
337
  ```
323
338
  ```text
324
339
  # Search records, brief sections and scenario text, with each hit's neighbors in the record graph
325
- usage: canon search <TEXT> [--kind <change|task|scenario|run|handoff|review|divergence|trajectory|strategy_item|evidence|subject|finding|change_state|brief>]* [--expand <N>] [--limit <N>]
340
+ usage: canon search <TEXT> [--node-kind <change|task|scenario|run|handoff|review|divergence|trajectory|strategy_item|evidence|subject|finding|change_state|brief>]* [--expand <N>] [--top <N>]
326
341
  ```
327
342
  ```bash
328
- canon search timeout --kind finding --json
343
+ canon search timeout --node-kind finding --json
329
344
  ```
330
345
  ```text
331
346
  # Run canon's built-in fixture self-tests
@@ -335,95 +350,102 @@ usage: canon selftest [--suite <trust-spine-gate|tiered-storage|typed-authoring-
335
350
  canon selftest --suite trust-spine-gate --json
336
351
  ```
337
352
  ```text
338
- # Check canonical projections without writing; exit 1 on drift, a legacy remnant, or a lock another canon version wrote
339
- usage: canon skills check [--skills-source <DIR>] [--harness <claude|codex|omp|pi> | --no-harness]*
353
+ # Show one guide for agents
354
+ usage: canon skills get <ID> [--full]
340
355
  ```
341
356
  ```bash
342
- canon skills check --json
357
+ canon skills get canon --json
343
358
  ```
344
359
  ```text
345
- # Print diagnostics for canonical projections, the install lock's canon version, legacy remnants, canon projections for a harness that is not selected, and other skills whose description claims build work; reports only, never edits
346
- usage: canon skills doctor [--skills-source <DIR>] [--harness <claude|codex|omp|pi> | --no-harness]*
360
+ # List the guides for agents
361
+ usage: canon skills list [--limit <LIMIT>] [--cursor <CURSOR>] [--all]
347
362
  ```
348
363
  ```bash
349
- canon skills doctor --json
364
+ canon skills list --json
350
365
  ```
351
366
  ```text
352
- # Install the canonical `canon` bundle or legacy developer skills
353
- usage: canon skills install [--skills-source <DIR>] [--harness <claude|codex|omp|pi> | --no-harness]* [--dry-run] [--input]
367
+ # Check canonical projections without writing; exit 1 on drift, a legacy remnant, or a lock another canon version wrote
368
+ usage: canon skills-check [--skills-source <DIR>] [--harness <claude|codex|omp|pi> | --no-harness]*
354
369
  ```
355
370
  ```bash
356
- canon skills install --json
371
+ canon skills-check --json
357
372
  ```
358
373
  ```text
359
- # Print a guide built into this binary (markdown on stdout); the installed SKILL.md is a stub that points here
360
- usage: canon skills show [<NAME>] [--full]
374
+ # Print diagnostics for canonical projections, the install lock's canon version, legacy remnants, canon projections for a harness that is not selected, and other skills whose description claims build work; reports only, never edits
375
+ usage: canon skills-doctor [--skills-source <DIR>] [--harness <claude|codex|omp|pi> | --no-harness]*
376
+ ```
377
+ ```bash
378
+ canon skills-doctor --json
379
+ ```
380
+ ```text
381
+ # Install the canonical `canon` bundle or legacy developer skills
382
+ usage: canon skills-install [--skills-source <DIR>] [--harness <claude|codex|omp|pi> | --no-harness]* [--dry-run]
361
383
  ```
362
384
  ```bash
363
- canon skills show canon --full --json
385
+ canon skills-install --json
364
386
  ```
365
387
  ```text
366
388
  # Show where this repo stands: subjects by status, their gaps, and the next commands
367
- usage: canon status [--fields <FIELDS>]
389
+ usage: canon status
368
390
  ```
369
391
  ```bash
370
392
  canon status --json
371
393
  ```
372
394
  ```text
373
395
  # The unsigned approval payload bytes an external signer signs
374
- usage: canon strategy approval-payload <STRATEGY_ID> --evaluation <FILE> --approver <NAME> --approval-at <TIMESTAMP>
396
+ usage: canon strategies approval-payload <ID> --evaluation <FILE> --approver <NAME> --approval-at <TIMESTAMP>
375
397
  ```
376
398
  ```bash
377
- canon strategy approval-payload 01ARZ3NDEKTSV4RRFFQ69G5FAV --evaluation evaluation.json --approver alice --approval-at 2030-01-01T00:00:00Z --json
399
+ canon strategies approval-payload 01ARZ3NDEKTSV4RRFFQ69G5FAV --evaluation evaluation.json --approver alice --approval-at 2030-01-01T00:00:00Z --json
378
400
  ```
379
401
  ```text
380
402
  # Promote a strategy after paired evaluation and signed approval
381
- usage: canon strategy promote <STRATEGY_ID> [--evaluation <FILE> --approval <FILE>] [--signature-file <FILE> (with --approval)] [--dry-run] [--input]
403
+ usage: canon strategies promote <ID> [--evaluation <FILE> --approval <FILE>] [--signature-file <FILE> (with --approval)] [--dry-run]
382
404
  ```
383
405
  ```bash
384
- canon strategy promote 01ARZ3NDEKTSV4RRFFQ69G5FAV --json
406
+ canon strategies promote 01ARZ3NDEKTSV4RRFFQ69G5FAV --json
385
407
  ```
386
408
  ```text
387
409
  # Disable an active strategy with durable rollback provenance
388
- usage: canon strategy rollback <STRATEGY_ID> --reason <TEXT> --actor <ACTOR_ID> --signature-file <FILE> --approval-at <TIMESTAMP> [--contradicting-trajectory <TRAJECTORY_ID>] [--input]
410
+ usage: canon strategies rollback <ID> --reason <TEXT> --actor <ACTOR_ID> --signature-file <FILE> --approval-at <TIMESTAMP> [--contradicting-trajectory <TRAJECTORY_ID>]
389
411
  ```
390
412
  ```bash
391
- canon strategy rollback 01ARZ3NDEKTSV4RRFFQ69G5FAV --reason "regressed in production" --actor alice --signature-file approval.sig --approval-at 2030-01-01T00:00:00Z --json
413
+ canon strategies rollback 01ARZ3NDEKTSV4RRFFQ69G5FAV --reason "regressed in production" --actor alice --signature-file approval.sig --approval-at 2030-01-01T00:00:00Z --json
392
414
  ```
393
415
  ```text
394
416
  # Link an imported plan change to a subject (adopting it under another subject adds that subject; a change may belong to several)
395
- usage: canon subject adopt <SUBJECT_ID> --change <CHANGE_ID> [--dry-run] [--input]
417
+ usage: canon subjects adopt <ID> --change <CHANGE_ID> [--dry-run]
396
418
  ```
397
419
  ```bash
398
- canon subject adopt demo --change add-login --json
420
+ canon subjects adopt demo --change add-login --json
399
421
  ```
400
422
  ```text
401
- # Move a subject to another lifecycle state (shipping is evidence-gated; with spec_coverage.require_review, entering its scope is review-gated; shipped → verifying reopens with --reason)
402
- usage: canon subject move <SUBJECT_ID> --to <proposed|specced|building|verifying|shipped|retired> [--override-reason <TEXT>] [--reason <TEXT>] [--actor <ACTOR_ID>] [--session <SESSION_ID>] [--input]
423
+ # Author a new subject at status `proposed`
424
+ usage: canon subjects create --id <ID> --domain <NAME> --title <TEXT> [--summary <TEXT>] [--owner-role <ROLE>] [--actor <ACTOR_ID>] [--session <SESSION_ID>]
403
425
  ```
404
426
  ```bash
405
- canon subject move demo --to specced --json
427
+ canon subjects create --id payments --domain dev --title Payments --json
406
428
  ```
407
429
  ```text
408
- # Author a new subject at status `proposed`
409
- usage: canon subject new <SUBJECT_ID> --domain <NAME> --title <TEXT> [--summary <TEXT>] [--owner-role <ROLE>] [--actor <ACTOR_ID>] [--session <SESSION_ID>] [--input]
430
+ # Show a subject (read-only)
431
+ usage: canon subjects get <ID>
410
432
  ```
411
433
  ```bash
412
- canon subject new payments --domain dev --title Payments --json
434
+ canon subjects get demo --json
413
435
  ```
414
436
  ```text
415
- # Show a subject (read-only)
416
- usage: canon subject show <SUBJECT_ID>
437
+ # Move a subject to another lifecycle state (shipping is evidence-gated; with spec_coverage.require_review, entering its scope is review-gated; shipped → verifying reopens with --reason)
438
+ usage: canon subjects move <ID> --to <proposed|specced|building|verifying|shipped|retired> [--override-reason <TEXT>] [--reason <TEXT>] [--actor <ACTOR_ID>] [--session <SESSION_ID>]
417
439
  ```
418
440
  ```bash
419
- canon subject show demo --json
441
+ canon subjects move demo --to specced --json
420
442
  ```
421
443
  ```text
422
444
  # Take a change back out of a subject (the mirror of adopt; refused for a change whose brief is approved)
423
- usage: canon subject unadopt <SUBJECT_ID> --change <CHANGE_ID> [--dry-run] [--input]
445
+ usage: canon subjects unadopt <ID> --change <CHANGE_ID> [--dry-run]
424
446
  ```
425
447
  ```bash
426
- canon subject unadopt demo --change add-login --json
448
+ canon subjects unadopt demo --change add-login --json
427
449
  ```
428
450
  ```text
429
451
  # Follow a finding's review loop in time order: review, finding, fix, re-review, evidence
@@ -439,13 +461,13 @@ canon trace add-login_1_1 --json
439
461
  `canon status` lists the next steps, each with the `role` that takes it
440
462
  (`null` for the human), and `data.waitingOn` counts the steps held by each other
441
463
  owner, `human` included. Call it once at the start and when resuming, not
442
- after a write: after `subject move --to` or a spawned role's write, the
464
+ after a write: after `subjects move --to` or a spawned role's write, the
443
465
  write's `meta.next` and `data.waitingOn` are the status for what it touched.
444
466
 
445
467
  ## Spawn each role
446
468
 
447
469
  Start one agent per role with `CANON_ROLE` set in its environment, and tell
448
- it to read only its guide, `canon skills show role-<role>` (the guide is
470
+ it to read only its guide, `canon skills get role-<role>` (the guide is
449
471
  printed by the binary; the installed `SKILL.md` is a stub that points to
450
472
  it):
451
473
 
@@ -457,7 +479,7 @@ CANON_ROLE=reviewer <harness> "<task: change <slug>; review it>"
457
479
 
458
480
  A subagent tool that cannot set its child's environment (most in-harness
459
481
  subagents share yours) passes the role in the task instead: tell the child
460
- its role, to read only `canon skills show role-<role>`, and to pass `--as <role>`
482
+ its role, to read only `canon skills get role-<role>`, and to pass `--as <role>`
461
483
  on every canon call (or run `export CANON_ROLE=<role>` first in its own
462
484
  shell).
463
485
 
@@ -505,22 +527,22 @@ not sign off.
505
527
 
506
528
  The owner can delegate the approval of briefs to a role while they sleep or are busy: a `delegation:` entry in
507
529
  `.canon/policy.yaml` (`approver`, `to`, `acts: [brief-approve]`, `requires: clean-plan-review`), in force only while the
508
- policy is the one a human approved. You never write the entry, and `canon brief approve` never approves a changed
530
+ policy is the one a human approved. You never write the entry, and `canon briefs approve` never approves a changed
509
531
  `delegation:` along with a brief (`policyHeld` says so): the human reads it and runs `canon policy approve`.
510
532
 
511
- When `canon status` or `canon brief show <slug>` names a delegation step for your role, follow the order and stop for no human:
533
+ When `canon status` or `canon briefs get <slug>` names a delegation step for your role, follow the order and stop for no human:
512
534
 
513
- 1. A reviewer in a separate process and session records the plan review: `canon review brief <slug> --actor <reviewer id> --session <its session> --round <n> --verdict approve|revise --digest <slug>=<digest>`, where `<digest>` is the last line `canon brief show <slug> --body` printed, and each finding with `canon finding add --change <slug> --review <review id> --round <n> --seq <k> --severity blocker`: P0 and P1 are `blocker` (with `--introduced-rev` or `--introduced-unknown`), P2 `should-fix`, P3 `note`.
514
- 2. On `revise`, or an open `blocker`, the planner fixes the brief, runs `canon brief check`, closes the findings (`canon finding close <slug> --round <n> --seq <k> --disposition fixed`, or `rejected --reason "<why>"`), and a new independent reviewer records the next round. The earlier review no longer counts: it was of another text. Repeat until the latest review is an `approve` with no open `blocker`. If round 3 still leaves P0 or P1 findings, stop and report to the owner.
515
- 3. Approve with one call: `canon brief approve <slug> --as orchestrator --actor <your actor id> --delegated` (several slugs take one call; none is written unless every one is approvable). There is no name, answer, relay tool or digest to give: canon writes them. `DELEGATION_REQUIRED` names the condition not met in its `reason` (`NO_GRANT`, `POLICY_UNAPPROVED`, `NO_REVIEW`, `REVIEW_REVISE`, `SAME_ACTOR`, `OPEN_BLOCKER`), and nothing is written.
535
+ 1. A reviewer in a separate process and session records the plan review: `canon reviews brief <slug> --actor <reviewer id> --session <its session> --round <n> --verdict approve|revise --digest <slug>=<digest>`, where `<digest>` is the last line `canon briefs get <slug> --body` printed, and each finding with `canon findings create --change <slug> --review <review id> --round <n> --seq <k> --severity blocker`: P0 and P1 are `blocker` (with `--introduced-rev` or `--introduced-unknown`), P2 `should-fix`, P3 `note`.
536
+ 2. On `revise`, or an open `blocker`, the planner fixes the brief, runs `canon briefs check`, closes the findings (`canon findings close <slug>_<n>_<k> --disposition fixed`, or `rejected --reason "<why>"`), and a new independent reviewer records the next round. The earlier review no longer counts: it was of another text. Repeat until the latest review is an `approve` with no open `blocker`. If round 3 still leaves P0 or P1 findings, stop and report to the owner.
537
+ 3. Approve with one call: `canon briefs approve <slug> --as orchestrator --actor <your actor id> --delegated` (several slugs take one call; none is written unless every one is approvable). There is no name, answer, relay tool or digest to give: canon writes them. `DELEGATION_REQUIRED` names the condition not met in its `reason` (`NO_GRANT`, `POLICY_UNAPPROVED`, `NO_REVIEW`, `REVIEW_REVISE`, `SAME_ACTOR`, `OPEN_BLOCKER`), and nothing is written.
516
538
 
517
- The reviewer must be another actor than the one approving: canon compares the actor ids only, so the separate session is yours to keep. The `Approved:` line says `(delegated to <role> <actor> under policy <digest> after review <id>)`, and `status`, `brief show` and the dashboard show it apart from a human's answer and a relayed one. To take a delegation back the owner deletes the entry and runs `canon policy approve`.
539
+ The reviewer must be another actor than the one approving: canon compares the actor ids only, so the separate session is yours to keep. The `Approved:` line says `(delegated to <role> <actor> under policy <digest> after review <id>)`, and `status`, `briefs get` and the dashboard show it apart from a human's answer and a relayed one. To take a delegation back the owner deletes the entry and runs `canon policy approve`.
518
540
 
519
541
  ## Relay the human's answer
520
542
 
521
543
  When `status` or `meta.next` shows a step with `x-canon.actor: human` (the brief's
522
544
  approval), stop everything for that scope and put the brief in front of the
523
- human in its language: `canon brief show <slug> --body` prints the brief and,
545
+ human in its language: `canon briefs get <slug> --body` prints the brief and,
524
546
  last, its digest. Send the output to the human's own view, never retyped (omp:
525
547
  redirect it to `out://`, off for subagents and non-TUI sessions and capped at
526
548
  64 KiB; there, and where there is no such channel, leave the tool output
@@ -530,7 +552,7 @@ in Claude Code, otherwise in the chat), approve or request changes, all the
530
552
  clean briefs in one question. Only an explicit approval counts; a question or a
531
553
  condition is a revision request for the planner, and no answer means you wait.
532
554
  They may also approve in `canon dashboard` (the briefs page); you never click
533
- Approve or fill the form. On their approval record it: `canon brief approve
555
+ Approve or fill the form. On their approval record it: `canon briefs approve
534
556
  <slug> <slug> --approver <their name> --note "<their own words>" --relayed-via
535
557
  <ask|AskUserQuestion|chat> --actor <your actor id> --digest <slug>=<the digest
536
558
  shown>` (several slugs take one answer, each with its own `--digest`; nothing is written
@@ -540,35 +562,35 @@ again. When `canon.yaml` has `approval: { relay: deny }` the call is refused
540
562
  (`ACTOR_DENIED`, naming the key): report the human's own call and wait for them to
541
563
  run it. Removing or unsetting your declared role (`env -u CANON_ROLE`,
542
564
  dropping `--as`) to get past a refusal is the same act under another label.
543
- `canon skills show role-planner` has the full procedure. Do not start the
544
- implementer before `canon brief show <slug>` reports `state: approved`.
565
+ `canon skills get role-planner` has the full procedure. Do not start the
566
+ implementer before `canon briefs get <slug>` reports `state: approved`.
545
567
  Never approve it yourself and never edit the policy to pass the gate. A
546
568
  policy that no longer matches the approval fails closed
547
569
  (`POLICY_APPROVAL_STALE`, or `POLICY_APPROVAL_CORRUPT`): the ship
548
570
  guard and the reopen refuse, and `--override-reason` does not waive it. Run
549
- `canon policy show`, then show the policy to the human, ask them to re-approve
571
+ `canon policy get`, then show the policy to the human, ask them to re-approve
550
572
  and record their explicit answer (`canon policy approve --approver <their name>
551
573
  --note "<their words>" --relayed-via <tool> --actor <your actor id>`), or restore the
552
574
  approved policy from git; never edit the policy yourself. Inside an
553
575
  approved scope never stop for a human: fixes, follow-ups and re-reviews go
554
576
  straight to the implementer and reviewer in the same change. A known gap the
555
577
  reviewer reports as tracked outside the change is accepted by the human with
556
- `canon divergence accept`; relay it the same way.
578
+ `canon divergences accept`; relay it the same way.
557
579
 
558
580
  When the human says a change is not wanted, or not in this release, you are
559
581
  the session that asks and records it; closing is theirs, never yours. Ask with
560
582
  the harness question tool, count only an explicit answer, then record it:
561
- `canon change defer <slug> --reason "<their words>" --ref <link or date> --approver <their name> --relayed-via <the question tool> --actor <your actor id>`.
562
- `canon change drop <slug>` takes the same options; defer is for "not this
563
- release", drop is the end, and `canon change reopen <slug>` (the human's answer
564
- again) brings a deferred change back and needs a new `brief approve`. A shipped
583
+ `canon changes defer <slug> --reason "<their words>" --ref <link or date> --approver <their name> --relayed-via <the question tool> --actor <your actor id>`.
584
+ `canon changes drop <slug>` takes the same options; defer is for "not this
585
+ release", drop is the end, and `canon changes reopen <slug>` (the human's answer
586
+ again) brings a deferred change back and needs a new `briefs approve`. A shipped
565
587
  change cannot be closed (`CHANGE_CONFLICT`, reason `SHIPPED`); its evidence,
566
588
  reviews and findings stay (`CHANGE_RECORDS_KEPT`). A closed change drops out of
567
589
  what the subject and the gate require: `canon status --json` lists it in
568
590
  `setAsideChanges` and its scenarios in `setAsideScenarios`, `canon gate check`
569
591
  prints the advisory `closed_change`, and `canon query --kind change_state
570
592
  --change <slug>` reads its state. Do not start the implementer or the reviewer
571
- for a closed change. `canon skills show role-planner` has the full steps.
593
+ for a closed change. `canon skills get role-planner` has the full steps.
572
594
 
573
595
  ## Hand off a note, not a copy
574
596
 
@@ -579,19 +601,19 @@ files, and the next command. Say what was verified (a command that ran, with
579
601
  its result) apart from what is only claimed. Redact secrets: tokens, keys,
580
602
  passwords and private URLs never go into a note, a `--ref`, a `--summary`
581
603
  or a brief. When a `Handoff` body carries a continuation, its `summary`
582
- holds the next command and the verified claims (`canon skills show canon-vocab`).
604
+ holds the next command and the verified claims (`canon skills get canon-vocab`).
583
605
 
584
606
  ## Retry safety
585
607
 
586
608
  After a timeout or a lost response, repeat the write only when its repeat is
587
- safe. `evidence add`, `review scenario`, `review change` and `finding add`
609
+ safe. `evidence add`, `reviews scenario`, `reviews change` and `findings create`
588
610
  are content-keyed: an identical repeat returns the existing record with
589
611
  `data.unchanged: true` (a batch reports the element `unchanged`).
590
- `finding close`, `subject adopt`, `inventory sync`, `ingest *`, `gate
591
- promote` and `task done` are replay-safe the same way. `subject new`,
592
- `change new`, `feature new`, `scenario new`, `subject move` and `dispatch
612
+ `findings close`, `subjects adopt`, `inventory sync`, `ingest *`, `gate
613
+ promote` and `tasks done` are replay-safe the same way. `subjects create`,
614
+ `changes create`, `features create`, `scenarios create`, `subjects move` and `dispatch
593
615
  end` are once-only: a repeat is refused (exit 2) and changes nothing, so read
594
- the state (`subject show`, `brief show`, `finding list`) before you retry.
616
+ the state (`subjects get`, `briefs get`, `findings list`) before you retry.
595
617
  A refusal leaves the tree unchanged. A destructive command is retried from
596
618
  its preview, never from an old digest.
597
619
 
@@ -601,7 +623,7 @@ its preview, never from an old digest.
601
623
  |---|---|
602
624
  | "Edit the policy so the gate passes." | A changed policy fails closed (`POLICY_APPROVAL_STALE`); ask the human to re-approve or restore it from git. |
603
625
  | "The reviewer can be me under another label." | The reviewer is a separate process with its own real session id (#39). |
604
- | "Approve the brief; the human said they are busy." | An answer they did not give is not recorded. If `delegation:` of the approved policy holds an entry for your role, `canon brief approve --delegated` is the call; otherwise show the brief, ask, and record only an explicit approval with `--relayed-via`. |
626
+ | "Approve the brief; the human said they are busy." | An answer they did not give is not recorded. If `delegation:` of the approved policy holds an entry for your role, `canon briefs approve --delegated` is the call; otherwise show the brief, ask, and record only an explicit approval with `--relayed-via`. |
605
627
  | "Override the refusal to ship." | Fix the gap the refusal names; `--override-reason` waives only the `require_review` gaps and the brief gap, is recorded on the subject, and is for the human's call, not a shortcut. |
606
628
  | "Run the commit now, the preview looked fine earlier." | A bare run previews; `--commit --plan-digest` acts only on the plan you just previewed (`PLAN_STALE` otherwise). Preview again, then act. |
607
629
  | "I have corrected this agent before." | A correction repeated across runs belongs in a scenario, the policy or a gate, not more prose. Tell the human. |
@@ -609,10 +631,10 @@ its preview, never from an old digest.
609
631
  ## Move the subject
610
632
 
611
633
  Move along `proposed → specced → building → verifying → shipped` with
612
- `subject move <id> --to <state>`; `subject show <id>` reads it. It runs
634
+ `subjects move <id> --to <state>`; `subjects get <id>` reads it. It runs
613
635
  directly (a transition is a state change, not a destructive act) and is not
614
636
  repeatable: a move to the state the subject is already in is refused
615
- (exit 2), so after a lost response read `subject show` before you retry.
637
+ (exit 2), so after a lost response read `subjects get` before you retry.
616
638
  It refuses a move the policy does not allow (missing evidence or reviews,
617
639
  open blockers, an unapproved brief) with exit 2 and the code of the condition
618
640
  (`SUBJECT_APPROVAL_REQUIRED` for a missing review, evidence or approval, `EVIDENCE_STALE`, `SUBJECT_INVALID` for the rest; several causes are `error.details[]`),
@@ -620,11 +642,11 @@ the record unchanged; fix the gap rather than overriding. Move to `shipped`
620
642
  yourself once its guard passes, unless the brief says the human ships. A
621
643
  follow-up on a shipped subject goes back to `verifying` with `--reason`,
622
644
  then the implementer and reviewer in the same change, then `--to shipped`
623
- again. A chore on a shipped subject (`change new --change-kind chore` names
645
+ again. A chore on a shipped subject (`changes create --change-kind chore` names
624
646
  the reopen command) is approved first, then reopened the same way; shipping
625
647
  again needs the chore's one change-level review from the reviewer (`review
626
648
  change <slug>`) and new evidence on every scenario whose code changed since
627
- its latest evidence (the implementer's `evidence add --all-scenarios`
649
+ its latest evidence (the implementer's `evidence add-all`
628
650
  batch, which the refusal names with the real report paths); a docs-only
629
651
  chore needs the review alone. The order is approval, evidence where the
630
652
  code changed, review. A blocker closed `fixed` needs evidence on the
@@ -637,9 +659,9 @@ on the human's word. `canon status` flags a shipped subject whose gate went
637
659
  red. A bad `--to` fails with `error.field` `--to` and `error.expected`
638
660
  listing the states.
639
661
 
640
- **Done when:** `canon subject show demo` (the subject's id) reports the
662
+ **Done when:** `canon subjects get demo` (the subject's id) reports the
641
663
  state you moved it to and `canon gate check` is clean; when the move exits 2,
642
- read the refusal in `error` of `canon subject move demo --to shipped --json`.
664
+ read the refusal in `error` of `canon subjects move demo --to shipped --json`.
643
665
 
644
666
  ## Destructive commands preview first
645
667
 
@@ -658,7 +680,7 @@ with `--input` never carries `--commit` or `--plan-digest`, and these four
658
680
  leaves take one object only (`INPUT_INVALID`).
659
681
 
660
682
  ```bash
661
- canon purge --kind session --before 2026-01-01
683
+ canon purge --kind run --before 2026-01-01
662
684
  canon artifacts prune
663
685
  canon ledger compact
664
686
  ```
@@ -678,37 +700,39 @@ the report.
678
700
  ## Upgraded repo
679
701
 
680
702
  After a repo moves to a newer canon, `canon status`, `canon gate check` and
681
- `canon context` warn when they find 0.27-era state (the skill lock, a hook
682
- command, a hook entry that still calls `gate task`) and put `canon migrate --json`
703
+ `canon context` warn when they find state of an earlier canon (the skill lock and
704
+ stub, a hook command or entry in an old spelling, the retrieve hook script that
705
+ calls `canon regime-show`, an old `AGENTS.md` block) and put `canon migrate --json`
683
706
  first in `meta.next`. Recover in two runnable steps, then refresh the skill:
684
707
 
685
708
  ```bash
686
709
  canon migrate
687
- canon skills install
710
+ canon skills-install
688
711
  ```
689
712
 
690
713
  1. `canon migrate` previews and prints the `planDigest`; the preview's own
691
714
  `meta.next` carries the next command with that digest filled in.
692
715
  2. `canon migrate --commit --plan-digest <digest from the preview>` applies
693
- it: it moves the layout, rewrites canon's own hook commands and scripts,
716
+ it: it moves the layout, rewrites canon's own hook commands (a hook line whose
717
+ change is more than the command word is listed and left for you to edit),
718
+ scripts and the `AGENTS.md` block between its markers,
694
719
  compacts the ledger (moves every superseded version to `.canon/archive`,
695
720
  as `canon ledger compact` does), re-pins the reviews written before 0.23
696
- (which do not count until then; the gate, `status` and `subject move`
721
+ (which do not count until then; the gate, `status` and `subjects move`
697
722
  print one advisory naming it) and replaces an old full skill with the
698
723
  stub. It backs up every file it rewrites under
699
- `.canon/migrate-backup/<timestamp>/` (local, git-ignored; `--revert` restores from it), is safe to run again (a second run
724
+ `.canon/migrate-backup/<timestamp>/` (local, git-ignored; `canon migrate-revert` restores from it), is safe to run again (a second run
700
725
  finds nothing to move) and refuses uncommitted changes under a path it
701
726
  moves: commit first. In CI run it with full history (`fetch-depth: 0`).
702
- 3. `canon skills install` refreshes the stub and the scripts for the selected
703
- harnesses; `canon skills check` reports a skill written by another canon
704
- version (exit 1, `SKILLS_CHECK_FAILED`), `canon skills doctor` explains it.
727
+ 3. `canon skills-install` refreshes the stub and the scripts for the selected
728
+ harnesses; `canon skills-check` reports a skill written by another canon
729
+ version (exit 1, `SKILLS_CHECK_FAILED`), `canon skills-doctor` explains it.
705
730
 
706
731
  Commit what it changes, except the backup: `.canon/migrate-backup/` is local and
707
- git-ignored, and `canon migrate --revert` needs it (keep it until you are sure).
732
+ git-ignored, and `canon migrate-revert` needs it (keep it until you are sure).
708
733
 
709
- **Done when:** `canon migrate` reports nothing left to move, `canon skills
710
- check` exits 0, and `canon status` and `canon gate check` no longer warn
734
+ **Done when:** `canon migrate` reports nothing left to move, `canon skills-check` exits 0, and `canon status` and `canon gate check` no longer warn
711
735
  about 0.27 state; read the first in `data` of `canon migrate --json`, the
712
736
  others in `meta.warnings` (`[{code, message}]`).
713
737
 
714
- Reference: `canon skills show canon-subject`.
738
+ Reference: `canon skills get canon-subject`.