@journeykit/canon 0.48.1 → 0.50.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} +23 -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
@@ -8,37 +8,37 @@ shipping, not approval.
8
8
  ## Scope
9
9
 
10
10
  The flow steps of the current change against the `.feature` scenarios that
11
- carry `@flow:<change>.<F-id>` (written by `canon scenario new --flow <F-id>`).
11
+ carry `@flow:<change>.<F-id>` (written by `canon scenarios create --flow <F-id>`).
12
12
  A chore adds no scenarios and has no flow: this pass does not apply to it.
13
13
 
14
14
  ## Inspect
15
15
 
16
16
  - `canon status`: each flow step with its scenarios and their evidence and review state; steps with no scenario or no failure scenario are flagged.
17
- - `canon brief check --json`: the coverage findings per step.
17
+ - `canon briefs check <change> --json`: the coverage findings per step.
18
18
  - Each step has a `--case failure` scenario for the failure path the Acceptance names, plus `happy` and `edge` where the step has them.
19
19
  - A scenario's title and steps say what the Acceptance line says. A scenario that proves more than the brief claims means the brief is thin; a brief claim with no scenario is a gap.
20
20
 
21
21
  ## NEVER
22
22
 
23
- - Never retag an existing scenario's case or flow to satisfy coverage: add a new scenario with `canon scenario new --flow`.
23
+ - Never retag an existing scenario's case or flow to satisfy coverage: add a new scenario with `canon scenarios create --flow`.
24
24
  - Never edit the brief to match a scenario that drifted; scenario-led brief edits are a scope change and need a new human answer.
25
25
  - Never write scenario ids into the brief.
26
26
  - Never report a step covered because a scenario exists: covered means indexed, and evidence and review are checked separately by the gate.
27
27
 
28
28
  ## Verify
29
29
 
30
- `canon brief check` no longer lists the coverage rules; `canon status` shows every step with a failure scenario.
30
+ `canon briefs check` no longer lists the coverage rules; `canon status` shows every step with a failure scenario.
31
31
 
32
- **Done when:** `canon brief check <slug> --json` lists neither `brief.flow-uncovered` nor `brief.flow-no-failure` (read `data.findings[]`), and `canon status` shows each flow step with a scenario and a failure scenario.
32
+ **Done when:** `canon briefs check <slug> --json` lists neither `brief.flow-uncovered` nor `brief.flow-no-failure` (read `data.findings[]`), and `canon status` shows each flow step with a scenario and a failure scenario.
33
33
 
34
34
  ## Next
35
35
 
36
- Implement, evidence and review (loop steps 5 to 7). If the brief had to change, the human answers again: show the brief, ask, and record an explicit approval with `--relayed-via` (`canon skills show role-planner`).
36
+ Implement, evidence and review (loop steps 5 to 7). If the brief had to change, the human answers again: show the brief, ask, and record an explicit approval with `--relayed-via` (`canon skills get role-planner`).
37
37
 
38
38
  ## Invariants (every brief pass)
39
39
 
40
40
  - Never invent policy. An edit that could change what the gate demands, who approves, or what ships goes to the brief's Questions and assumptions, not into the text as a decision.
41
41
  - Explaining writes nothing. Asked what a finding means or what a pass would do, answer in chat and leave the brief untouched.
42
42
  - No pass requires another as a prerequisite. Run the one the findings or the human point at, in any order.
43
- - A pass closes only the findings it rechecked: rerun `canon brief check` after the edit and report a finding as closed only when it is gone from that run. Never claim a rule you did not rerun.
44
- - Write in the brief's language (detected from the text; `language:` in `canon.yaml` overrides it). Edits touch `.canon/changes/<slug>/brief.md` only. A brief edited after approval is not approved: it needs a new human answer, shown and asked again, and a new `canon brief approve` (recorded with `--relayed-via` from that answer).
43
+ - A pass closes only the findings it rechecked: rerun `canon briefs check` after the edit and report a finding as closed only when it is gone from that run. Never claim a rule you did not rerun.
44
+ - Write in the brief's language (detected from the text; `language:` in `canon.yaml` overrides it). Edits touch `.canon/changes/<slug>/brief.md` only. A brief edited after approval is not approved: it needs a new human answer, shown and asked again, and a new `canon briefs approve` (recorded with `--relayed-via` from that answer).
@@ -1,7 +1,7 @@
1
1
  # Brief pass: clarify
2
2
 
3
3
  Turn what is unresolved into questions a human can answer in one reply, and
4
- make every assumption explicit. Run it when `canon brief show` names lines under
4
+ make every assumption explicit. Run it when `canon briefs get` names lines under
5
5
  the questions section that are still open, or the request left a decision the
6
6
  brief quietly made.
7
7
 
@@ -27,18 +27,18 @@ brief that decides something the request did not say.
27
27
 
28
28
  ## Verify
29
29
 
30
- Every open line is a question with a proposed default or a stated assumption. `canon brief check` still has no blockers (the pass changes no structure). `canon brief show` still counts the lines left open, and those go in the report to the human, not away.
30
+ Every open line is a question with a proposed default or a stated assumption. `canon briefs check` still has no blockers (the pass changes no structure). `canon briefs get` still counts the lines left open, and those go in the report to the human, not away.
31
31
 
32
- **Done when:** `canon brief check <slug>` exits 0 and every open line under Questions and assumptions is a question with a proposed default or a stated assumption; read the count of lines left open in the `clarify` step of `canon brief show <slug> --json` (it is absent when none are open) and put it in the report to the human.
32
+ **Done when:** `canon briefs check <slug>` exits 0 and every open line under Questions and assumptions is a question with a proposed default or a stated assumption; read the count of lines left open in the `clarify` step of `canon briefs get <slug> --json` (it is absent when none are open) and put it in the report to the human.
33
33
 
34
34
  ## Next
35
35
 
36
- `harden` if the flow changed; otherwise put the questions and the brief to the human and ask; record an explicit approval with `brief approve` with `--relayed-via <tool>` (`canon skills show role-planner`).
36
+ `harden` if the flow changed; otherwise put the questions and the brief to the human and ask; record an explicit approval with `briefs approve` with `--relayed-via <tool>` (`canon skills get role-planner`).
37
37
 
38
38
  ## Invariants (every brief pass)
39
39
 
40
40
  - Never invent policy. An edit that could change what the gate demands, who approves, or what ships goes to the brief's Questions and assumptions, not into the text as a decision.
41
41
  - Explaining writes nothing. Asked what a finding means or what a pass would do, answer in chat and leave the brief untouched.
42
42
  - No pass requires another as a prerequisite. Run the one the findings or the human point at, in any order.
43
- - A pass closes only the findings it rechecked: rerun `canon brief check` after the edit and report a finding as closed only when it is gone from that run. Never claim a rule you did not rerun.
44
- - Write in the brief's language (detected from the text; `language:` in `canon.yaml` overrides it). Edits touch `.canon/changes/<slug>/brief.md` only. A brief edited after approval is not approved: it needs a new human answer, shown and asked again, and a new `canon brief approve` (recorded with `--relayed-via` from that answer).
43
+ - A pass closes only the findings it rechecked: rerun `canon briefs check` after the edit and report a finding as closed only when it is gone from that run. Never claim a rule you did not rerun.
44
+ - Write in the brief's language (detected from the text; `language:` in `canon.yaml` overrides it). Edits touch `.canon/changes/<slug>/brief.md` only. A brief edited after approval is not approved: it needs a new human answer, shown and asked again, and a new `canon briefs approve` (recorded with `--relayed-via` from that answer).
@@ -28,18 +28,18 @@ brief has none of them: harden its Invariants and Checks instead.
28
28
 
29
29
  ## Verify
30
30
 
31
- `canon brief check` no longer lists `brief.flow-duplicate-id` or `brief.detail-mismatch`; every flow id has a detail subheading and an acceptance line with a failure path.
31
+ `canon briefs check` no longer lists `brief.flow-duplicate-id` or `brief.detail-mismatch`; every flow id has a detail subheading and an acceptance line with a failure path.
32
32
 
33
- **Done when:** `canon brief check <slug> --json` lists neither `brief.flow-duplicate-id` nor `brief.detail-mismatch` (read `data.findings[]`) and every flow id has a detail subheading and an acceptance line with a failure path.
33
+ **Done when:** `canon briefs check <slug> --json` lists neither `brief.flow-duplicate-id` nor `brief.detail-mismatch` (read `data.findings[]`) and every flow id has a detail subheading and an acceptance line with a failure path.
34
34
 
35
35
  ## Next
36
36
 
37
- `align` (`canon skills show brief-align`) once scenarios exist; `polish` (`canon skills show brief-polish`) for prose; otherwise show the brief to the human and ask (`canon skills show role-planner`).
37
+ `align` (`canon skills get brief-align`) once scenarios exist; `polish` (`canon skills get brief-polish`) for prose; otherwise show the brief to the human and ask (`canon skills get role-planner`).
38
38
 
39
39
  ## Invariants (every brief pass)
40
40
 
41
41
  - Never invent policy. An edit that could change what the gate demands, who approves, or what ships goes to the brief's Questions and assumptions, not into the text as a decision.
42
42
  - Explaining writes nothing. Asked what a finding means or what a pass would do, answer in chat and leave the brief untouched.
43
43
  - No pass requires another as a prerequisite. Run the one the findings or the human point at, in any order.
44
- - A pass closes only the findings it rechecked: rerun `canon brief check` after the edit and report a finding as closed only when it is gone from that run. Never claim a rule you did not rerun.
45
- - Write in the brief's language (detected from the text; `language:` in `canon.yaml` overrides it). Edits touch `.canon/changes/<slug>/brief.md` only. A brief edited after approval is not approved: it needs a new human answer, shown and asked again, and a new `canon brief approve` (recorded with `--relayed-via` from that answer).
44
+ - A pass closes only the findings it rechecked: rerun `canon briefs check` after the edit and report a finding as closed only when it is gone from that run. Never claim a rule you did not rerun.
45
+ - Write in the brief's language (detected from the text; `language:` in `canon.yaml` overrides it). Edits touch `.canon/changes/<slug>/brief.md` only. A brief edited after approval is not approved: it needs a new human answer, shown and asked again, and a new `canon briefs approve` (recorded with `--relayed-via` from that answer).
@@ -1,7 +1,7 @@
1
1
  # Brief pass: polish
2
2
 
3
3
  Make the brief something a human reads once and understands. Run it whenever
4
- `canon brief check` reports `prose.*` advisories; `canon status` and
4
+ `canon briefs check` reports `prose.*` advisories; `canon status` and
5
5
  `meta.next` name it before the approval step. It never blocks approval, and it
6
6
  is not finished by silencing rules: it is finished when the brief reads
7
7
  plainly and each advisory is gone or waived with a reason.
@@ -29,14 +29,14 @@ Step detail, Acceptance; for a chore, Invariants and Checks). Out of scope
29
29
  is not judged. Headings, code spans, fenced code, URLs, code-like tokens and
30
30
  the `Source:` and `Approved:` lines are not counted as prose.
31
31
 
32
- `canon brief check` detects the language of the text from the script of its
32
+ `canon briefs check` detects the language of the text from the script of its
33
33
  prose letters: Hangul is `ko`, Latin is `en`, kana or Han text is named
34
34
  (`ja`, `zh`) and gets the structure rules only. A section in another script
35
35
  than the rest is judged in its own language, and a section with too few
36
36
  letters to tell inherits the brief's. The output prints one line,
37
37
  `language: ko (detected)`; the JSON carries `language` and `languageSource`
38
38
  (`detected` or `configured`). `language:` in `canon.yaml` is an override: when
39
- set it decides, and `brief check` adds `languageNote` (one line in the human
39
+ set it decides, and `briefs check` adds `languageNote` (one line in the human
40
40
  output) if the text looks like another language. Report that note to the
41
41
  human; do not translate the brief to fit the setting.
42
42
 
@@ -99,7 +99,7 @@ and the result.
99
99
  ### `prose.paragraph-length`
100
100
 
101
101
  Normative sections. Catches a paragraph of more than five sentences. Fix: the
102
- compression pass in `canon skills show role-planner`: keep the sentences that state a
102
+ compression pass in `canon skills get role-planner`: keep the sentences that state a
103
103
  condition, an action, a result or a number; make three or more parallel
104
104
  items a list; delete or move the rest.
105
105
 
@@ -199,7 +199,7 @@ states the measured value and the budget. Section budgets (ko / en
199
199
  characters): Intent 400 / 700, Outcome 500 / 900, Flow 800 / 1500, Detail
200
200
  2500 / 3500, Acceptance 1000 / 1800, Questions 800 / 1200, Invariants and
201
201
  Checks 800 / 1500 each (Out of scope has none); whole brief 4000 / 6000. Fix: the
202
- compression pass in `canon skills show role-planner`: delete sentences that restate another
202
+ compression pass in `canon skills get role-planner`: delete sentences that restate another
203
203
  section, turn parallel items into a list or table, move assumptions to
204
204
  Questions and assumptions and a not-doing list to Out of scope. A brief this
205
205
  long usually says several things twice. A waiver for the whole-brief budget
@@ -207,7 +207,7 @@ uses the section key `brief`.
207
207
 
208
208
  ## Inspect
209
209
 
210
- - `canon brief check --json`: read the `prose.*` findings, then the sections they sit in. Fix by section, not by rule.
210
+ - `canon briefs check <change> --json`: read the `prose.*` findings, then the sections they sit in. Fix by section, not by rule.
211
211
  - A finding is a prompt to reread, not a verdict. When the flagged text is the precise term (a state name, a quoted label, a command), keep it and waive that rule in that section:
212
212
  an entry of the frontmatter `waive` list: `- rule: <rule-id>`, `section: <section-key>`, `reason: "<reason>"`.
213
213
  To waive one finding and keep the rest of the rule live in that section, add the text the finding names as `match: "<text>"` (an empty reason or match, an unknown rule id or an unknown key is a blocker).
@@ -216,9 +216,9 @@ uses the section key `brief`.
216
216
  ## The loop
217
217
 
218
218
  1. Fix the mode problems above, then the findings, section by section.
219
- 2. Run `canon brief check <slug> --json`: the findings are in `data.findings[]`.
219
+ 2. Run `canon briefs check <slug> --json`: the findings are in `data.findings[]`.
220
220
  3. Repeat until no advisory remains, or each remaining one is waived with a reason.
221
- 4. Stop polishing and show the brief to the human (`canon brief show <slug> --body`), in the brief's language, and ask. Do not loop further: a clean run says nothing about whether the brief is good, only that these counts are within budget.
221
+ 4. Stop polishing and show the brief to the human (`canon briefs get <slug> --body`), in the brief's language, and ask. Do not loop further: a clean run says nothing about whether the brief is good, only that these counts are within budget.
222
222
 
223
223
  ## NEVER
224
224
 
@@ -230,18 +230,18 @@ uses the section key `brief`.
230
230
 
231
231
  ## Verify
232
232
 
233
- `canon brief check` no longer lists the `prose.*` findings you rewrote, or lists them as waived with a reason; no blockers appeared.
233
+ `canon briefs check` no longer lists the `prose.*` findings you rewrote, or lists them as waived with a reason; no blockers appeared.
234
234
 
235
- **Done when:** `canon brief check <slug> --json` lists no `prose.*` finding (read `data.findings[]`) except those waived with a reason (`data.waivers[]`), and `data.counts` shows no blocker.
235
+ **Done when:** `canon briefs check <slug> --json` lists no `prose.*` finding (read `data.findings[]`) except those waived with a reason (`data.waivers[]`), and `data.counts` shows no blocker.
236
236
 
237
237
  ## Next
238
238
 
239
- Show the brief to the human and ask (`canon brief show <slug> --body`, then the harness question tool); record an explicit approval with `brief approve` with `--relayed-via <tool>` (`canon skills show role-planner`).
239
+ Show the brief to the human and ask (`canon briefs get <slug> --body`, then the harness question tool); record an explicit approval with `briefs approve` with `--relayed-via <tool>` (`canon skills get role-planner`).
240
240
 
241
241
  ## Invariants (every brief pass)
242
242
 
243
243
  - Never invent policy. An edit that could change what the gate demands, who approves, or what ships goes to the brief's Questions and assumptions, not into the text as a decision.
244
244
  - Explaining writes nothing. Asked what a finding means or what a pass would do, answer in chat and leave the brief untouched.
245
245
  - No pass requires another as a prerequisite. Run the one the findings or the human point at, in any order.
246
- - A pass closes only the findings it rechecked: rerun `canon brief check` after the edit and report a finding as closed only when it is gone from that run. Never claim a rule you did not rerun.
247
- - Write in the brief's language (detected from the text, or `language:` in `canon.yaml` when set). Edits touch `.canon/changes/<slug>/brief.md` only. A brief edited after approval is not approved: it needs a new human answer, shown and asked again, and a new `canon brief approve` (recorded with `--relayed-via` from that answer).
246
+ - A pass closes only the findings it rechecked: rerun `canon briefs check` after the edit and report a finding as closed only when it is gone from that run. Never claim a rule you did not rerun.
247
+ - Write in the brief's language (detected from the text, or `language:` in `canon.yaml` when set). Edits touch `.canon/changes/<slug>/brief.md` only. A brief edited after approval is not approved: it needs a new human answer, shown and asked again, and a new `canon briefs approve` (recorded with `--relayed-via` from that answer).
@@ -1,6 +1,6 @@
1
1
  # Brief pass: shape
2
2
 
3
- Make the brief's structure what `canon brief check` expects. Run it when the
3
+ Make the brief's structure what `canon briefs check` expects. Run it when the
4
4
  check reports `brief.section-missing`, `brief.section-duplicate`,
5
5
  `brief.section-order`, `brief.placeholder`, `brief.flow-no-steps`,
6
6
  `brief.waiver-invalid`, or (chore) `brief.chore-section`,
@@ -30,14 +30,14 @@ guidance.
30
30
  | invariants (chore) | `## Invariants` | normative | What must not change: behavior, public interfaces, data, outputs. A change that alters any of them is a feature, not a chore. |
31
31
  | checks (chore) | `## Checks` | normative | How you show the invariants held: the suite that is run again at the chore commit, and anything else you compare. |
32
32
 
33
- `canon change new` writes the brief with these headings and nothing under
34
- them: an empty section is a section not yet written, and `canon brief show`
33
+ `canon changes create` writes the brief with these headings and nothing under
34
+ them: an empty section is a section not yet written, and `canon briefs get`
35
35
  prints the guidance of each empty one (in `language:`). A wrong heading
36
36
  (`## Intnet`, `## intent`) is reported with the nearest heading.
37
37
 
38
38
  ## Inspect
39
39
 
40
- - `canon brief check --json`: each finding names the rule, section key, line and hint.
40
+ - `canon briefs check <change> --json`: each finding names the rule, section key, line and hint.
41
41
  - Every section present once, in order, with its exact English heading; no `TODO`/`TBD`; no empty section (write `None.` where nothing applies).
42
42
  - The flow is a numbered list with ids `F1`, `F2`, … each reading sees → does → becomes.
43
43
  - Intent describes what the product does today and Outcome what is true after; leftover implementation paths belong in a `Source:` line or nowhere.
@@ -63,18 +63,18 @@ prints the guidance of each empty one (in `language:`). A wrong heading
63
63
 
64
64
  ## Verify
65
65
 
66
- `canon brief check` reports none of the rules above. Report only the ones it no longer lists.
66
+ `canon briefs check` reports none of the rules above. Report only the ones it no longer lists.
67
67
 
68
- **Done when:** `canon brief check <slug> --json` lists none of the rules above (read `data.findings[]`); report only the ones it no longer lists.
68
+ **Done when:** `canon briefs check <slug> --json` lists none of the rules above (read `data.findings[]`); report only the ones it no longer lists.
69
69
 
70
70
  ## Next
71
71
 
72
- `clarify` if the Questions section still has open lines; `harden` if flow and detail disagree; otherwise show the brief to the human and ask; record an explicit approval with `brief approve` with `--relayed-via <tool>` (`canon skills show role-planner`).
72
+ `clarify` if the Questions section still has open lines; `harden` if flow and detail disagree; otherwise show the brief to the human and ask; record an explicit approval with `briefs approve` with `--relayed-via <tool>` (`canon skills get role-planner`).
73
73
 
74
74
  ## Invariants (every brief pass)
75
75
 
76
76
  - Never invent policy. An edit that could change what the gate demands, who approves, or what ships goes to the brief's Questions and assumptions, not into the text as a decision.
77
77
  - Explaining writes nothing. Asked what a finding means or what a pass would do, answer in chat and leave the brief untouched.
78
78
  - No pass requires another as a prerequisite. Run the one the findings or the human point at, in any order.
79
- - A pass closes only the findings it rechecked: rerun `canon brief check` after the edit and report a finding as closed only when it is gone from that run. Never claim a rule you did not rerun.
80
- - Write in the brief's language (detected from the text; `language:` in `canon.yaml` overrides it). Edits touch `.canon/changes/<slug>/brief.md` only. A brief edited after approval is not approved: it needs a new human answer, shown and asked again, and a new `canon brief approve` (recorded with `--relayed-via` from that answer).
79
+ - A pass closes only the findings it rechecked: rerun `canon briefs check` after the edit and report a finding as closed only when it is gone from that run. Never claim a rule you did not rerun.
80
+ - Write in the brief's language (detected from the text; `language:` in `canon.yaml` overrides it). Edits touch `.canon/changes/<slug>/brief.md` only. A brief edited after approval is not approved: it needs a new human answer, shown and asked again, and a new `canon briefs approve` (recorded with `--relayed-via` from that answer).
@@ -1,20 +1,20 @@
1
1
  # canon-artifact-ingest
2
2
 
3
- `canon ingest records` turns a repo's canon-native ARTIFACTS — the
3
+ `canon ingest-records` turns a repo's canon-native ARTIFACTS — the
4
4
  outputs of review/divergence/task/handoff work — into the regime-keyed
5
5
  verdict trajectories that strategy memory and the reward gate consume
6
6
  (see `canon-learn`). One pass runs the four adapters, normalizes, derives
7
7
  verdicts, and writes idempotently.
8
8
 
9
- ## `canon ingest records [--repo <dir>] [--watch]`
9
+ ## `canon ingest-records [--repo <dir>] [--watch]`
10
10
 
11
11
  ```bash
12
12
  # one pass over the repo's artifacts
13
- canon ingest records
13
+ canon ingest-records
14
14
  # a specific repo
15
- canon ingest records --repo ../svc
15
+ canon ingest-records --repo ../svc
16
16
  # poll loop
17
- canon ingest records --watch
17
+ canon ingest-records --watch
18
18
  ```
19
19
 
20
20
  Source roots resolve from `canon.yaml`'s `artifacts.sources` config
@@ -65,7 +65,7 @@ new trajectories (reported as `trajectories_skipped_duplicate`).
65
65
 
66
66
  Verdicts persist regime-keyed (`<role>/<repo>/<area>/<hash>`), so a
67
67
  role-scoped agent reads only its own lane — the same regime namespacing
68
- `canon retrieve --for-role <r> --regime <k>` and `canon strategy` query. This
68
+ `canon retrieve --for-role <r> --regime <k>` and `canon strategies` query. This
69
69
  verdict stream is the evidence the reward gate scores when deciding
70
70
  promotion/demotion.
71
71
 
@@ -74,4 +74,4 @@ promotion/demotion.
74
74
  - Strategy promotion/demotion mechanics — see the `canon-learn` skill;
75
75
  this skill only produces the verdict evidence promotion reads.
76
76
  - The `regime_key` grammar itself — see `canon-retrieve`, which derives
77
- the same key via the `canon regime show` serializer.
77
+ the same key via the `canon regime-show` serializer.
@@ -1,7 +1,7 @@
1
1
  # canon-authoring
2
2
 
3
3
  A `.feature` corpus is the join spine everything else in canon hangs
4
- off: `canon inventory sync` indexes it, `canon review`/`canon evidence`
4
+ off: `canon inventory sync` indexes it, `canon reviews scenario`/`canon evidence`
5
5
  attest against it, `canon gate check` measures coverage over it. A
6
6
  corpus that is organized badly does not fail `canon format` — it
7
7
  produces a green gate that measures the wrong thing. This skill is the
@@ -74,7 +74,7 @@ spec_coverage:
74
74
 
75
75
  Every feature surface (`<area>.<surface>`) with in-scope scenarios must
76
76
  then carry at least one scenario of each listed case, or `canon gate
77
- check` reports it as `uncovered-cell`, and `canon subject move <id>
77
+ check` reports it as `uncovered-cell`, and `canon subjects move <id>
78
78
  --to shipped` refuses for a subject that owns such a surface. An untagged
79
79
  scenario counts toward its surface but satisfies no case, so an
80
80
  untagged corpus reports every surface instead of passing silently. The
@@ -93,18 +93,18 @@ a scoped gate.
93
93
 
94
94
  ```bash
95
95
  # once per surface
96
- canon feature new checkout.cart --title "Cart"
96
+ canon features create --id checkout.cart --title "Cart"
97
97
  # once per behavior
98
- canon scenario new checkout.cart.01 --title "Adding an item raises the count" \
98
+ canon scenarios create --id checkout.cart.01 --title "Adding an item raises the count" \
99
99
  --subject checkout-core --lane behavior --case happy
100
100
  # and its failure path
101
- canon scenario new checkout.cart.04 --title "Adding an out-of-stock item is refused" \
101
+ canon scenarios create --id checkout.cart.04 --title "Adding an out-of-stock item is refused" \
102
102
  --subject checkout-core --lane behavior --case failure
103
103
  ```
104
104
 
105
105
  There is no format or sync step after these: the scaffold writes a
106
106
  format-clean scenario, and `canon status`, `canon gate check`,
107
- `canon evidence add`, `canon review scenario` and `canon subject move`
107
+ `canon evidence add`, `canon reviews scenario` and `canon subjects move`
108
108
  index added, edited and deleted `.feature` files before they read. When
109
109
  one of them prints `NOT refreshed`, the corpus has a format violation
110
110
  (for example a hand-written header with no `# canon:` line) or a
@@ -113,13 +113,13 @@ Fix it and the next command indexes the files (see `canon-inventory`).
113
113
 
114
114
  Many scenarios at once: `--input` takes inline JSON, a file or `-`. An
115
115
  array (or NDJSON) is a batch, validated whole before anything is written;
116
- each element holds `operands` (the scenario tag) and the other options as
117
- camelCase keys. `canon schema scenario new --json` shows `input` (its limits and a complete
118
- `example`); `canon schema scenario new --schemas --json` gives `Input`, the schema of one
116
+ each element holds `id` (the scenario tag) and the other arguments as
117
+ camelCase keys. `canon schema scenarios.create --json` shows `input` (its limits and a complete
118
+ `example`); `canon schema scenarios.create --schemas --json` gives `Input`, the schema of one
119
119
  document. There is no `--from`.
120
120
 
121
121
  ```text
122
- canon scenario new --input '[{"operands":["checkout.cart.01"],"title":"Adding an item raises the count","subject":"checkout-core","lane":"behavior","case":"happy"},{"operands":["checkout.cart.04"],"title":"Adding an out-of-stock item is refused","subject":"checkout-core","lane":"behavior","case":"failure"}]'
122
+ canon scenarios create --input '[{"id":"checkout.cart.01","title":"Adding an item raises the count","subject":"checkout-core","lane":"behavior","case":"happy"},{"id":"checkout.cart.04","title":"Adding an out-of-stock item is refused","subject":"checkout-core","lane":"behavior","case":"failure"}]'
123
123
  ```
124
124
 
125
125
  - `--actor <id>` (or `CANON_ACTOR` in the environment) puts YOUR id on the
@@ -164,7 +164,7 @@ wait for evidence, which `canon gate check` reports.
164
164
  - **A Feature title that is a theme.** "Fidelity of the original
165
165
  experience" names no surface. Name the screen.
166
166
  - **Hand-stamped provenance.** Eighty lines with one timestamp and the
167
- same `agent_id`. Use `canon scenario new --actor`.
167
+ same `agent_id`. Use `canon scenarios create --actor`.
168
168
  - **Coverage by splitting.** One behavior as two scenarios so two rows go
169
169
  green. One behavior, one id.
170
170
  - **Runner tags as classification.** `@design`, `@p2`, `@wip` are
@@ -38,12 +38,12 @@ and what to run next. `--json` prints the `{ok, data, meta}` envelope: the
38
38
  header adds no field, and `policy.spec_coverage`/`policy.diagnostics`
39
39
  already carry the same fact. `--fields <list>` keeps only the named
40
40
  top-level fields (`kinds`, `enums`, `policy`, `review`, …), spelled as the report spells them; an unknown name is
41
- `USAGE` (exit 2; `field` is `--fields`, `expected` lists the selectable fields), and `meta.fields` lists the kept ones.
41
+ `INPUT_INVALID` (exit 2; `reason` `INVALID_VALUE`, `field` `/fields`, `expected` lists the selectable fields), and `meta.fields` lists the kept ones.
42
42
 
43
43
  On a repository that still holds 0.27 canon state, `canon context` warns
44
44
  and puts `canon migrate --json` first in `meta.next`: run `canon migrate`
45
45
  (a preview), then `canon migrate --commit --plan-digest <digest from the
46
- preview>`, then `canon skills install`.
46
+ preview>`, then `canon skills-install`.
47
47
 
48
48
  ## Reproducible context packs and prompt bundles
49
49
 
@@ -53,10 +53,10 @@ an immutable content-addressed registry and records only metadata and digests
53
53
  in the pack manifest.
54
54
 
55
55
  ```bash
56
- canon context-pack add --manifest .canon/context-manifest.json
57
- canon context-pack add --manifest .canon/context-manifest.json --repo ../my-repo --json
58
- canon context-pack show sha256:<pack-digest> --repo . --json
59
- canon context-pack verify sha256:<pack-digest>
56
+ canon context-packs create --manifest .canon/context-manifest.json
57
+ canon context-packs create --manifest .canon/context-manifest.json --repo ../my-repo --json
58
+ canon context-packs get sha256:<pack-digest> --repo . --json
59
+ canon context-packs verify sha256:<pack-digest>
60
60
  ```
61
61
 
62
62
  `add` prints only the pack id by default, so captured content is never
@@ -67,8 +67,8 @@ nonzero when the pack is missing, stale, or tampered. Manifest paths must be
67
67
  relative to the resolved repo, remain inside it, and contain no symlink;
68
68
  missing or unsafe paths are rejected by the context-pack module.
69
69
 
70
- **Done when:** `canon context-pack verify sha256:<pack-digest>` exits `0`;
71
- `canon context-pack show` returns the manifest you recorded.
70
+ **Done when:** `canon context-packs verify sha256:<pack-digest>` exits `0`;
71
+ `canon context-packs get` returns the manifest you recorded.
72
72
 
73
73
  ## Provider-neutral adapter responses
74
74
 
@@ -77,8 +77,8 @@ validate. Validation is read-only: `canon` never starts a provider, interprets
77
77
  provider-specific extension payloads, or enforces declared capabilities.
78
78
 
79
79
  ```bash
80
- canon adapter validate --response response.json
81
- canon adapter validate --response response.json --repo . --json
80
+ canon adapter-validate --response response.json
81
+ canon adapter-validate --response response.json --repo . --json
82
82
  ```
83
83
 
84
84
  The envelope has `protocol_version: 1`, required `run_id`, `provider`,
@@ -100,12 +100,12 @@ Version prompt inputs separately when several runs should share the same
100
100
  prompt files:
101
101
 
102
102
  ```bash
103
- canon prompt add reviewer@v1 \
103
+ canon prompts create --id reviewer@v1 \
104
104
  --manifest .canon/reviewer-prompt.json
105
- canon prompt show reviewer@v1 --json
105
+ canon prompts get reviewer@v1 --json
106
106
  ```
107
107
 
108
- Prompt registration uses the same immutable content registry. `prompt show`
108
+ Prompt registration uses the same immutable content registry. `prompts get`
109
109
  verifies the selected bundle and returns its metadata/digests; neither concise
110
110
  output form includes captured prompt bytes.
111
111
 
@@ -25,7 +25,7 @@ a report grouped by failure class in this fixed order:
25
25
  |---|---|---|
26
26
  | `layout-grammar` | Wrong Hive path shape — a spec or `inventory/` file not under a `kind=<kind>/area=<area>/` prefix, a wrong leaf filename, or `assets.lock`'s ad-hoc format. A spec root still on the pre-0.17 layout (any `.feature` file under `<root>/features/`) is refused with one violation at path `features`. | Move the file under the correct `kind=…/area=…/` prefix with the expected leaf name. For a pre-0.17 root, run `canon migrate`, which moves `features/kind=feature/` to `<root>/kind=feature/`. |
27
27
  | `missing-envelope` | A YAML file (`inventory/`, `policy.yaml`) has no top-level `schema`/`kind`/`at`/`actor` keys. | Add the four envelope keys at the top level. |
28
- | `missing-provenance` | A `.feature` file's `Feature:`/`Scenario:` header has no `# canon: {...}` comment either directly above it (with its tags, no blank line) or directly below it. | Use `canon scenario new` / `canon feature new`, which stamp it; never hand-type the line. See `canon-authoring`. |
28
+ | `missing-provenance` | A `.feature` file's `Feature:`/`Scenario:` header has no `# canon: {...}` comment either directly above it (with its tags, no blank line) or directly below it. | Use `canon scenarios create` / `canon features create`, which stamp it; never hand-type the line. See `canon-authoring`. |
29
29
  | `missing-actor` | No structured `actor` object — a bare `by` string, or absent. | Replace `by: <name>` with a structured `actor` object. |
30
30
  | `unspecified-evidence` | A ledger `run`/`drill` record's `evidence` field is absent or an empty, untyped array. | Add a typed `evidence` array. |
31
31
  | `free-text-ref` | `upstream_ref`/`port_ref` has a segment not matching `<file>#<symbol>[:<a>-<b>]`. | Rewrite the ref into the `<file>#<symbol>[:<a>-<b>]` grammar. |