@journeykit/canon 0.45.0 → 0.47.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 (124) hide show
  1. package/dist/skills/SKILL.src.md +29 -18
  2. package/dist/skills/reference/canon-gate.md +17 -24
  3. package/dist/skills/reference/canon-inventory.md +1 -1
  4. package/dist/skills/reference/canon-plan-import.md +1 -1
  5. package/dist/skills/reference/canon-policy.md +29 -5
  6. package/dist/skills/reference/canon-report-dashboard.md +2 -6
  7. package/dist/skills/reference/canon-review.md +24 -3
  8. package/dist/skills/reference/canon-storage.md +76 -155
  9. package/dist/skills/reference/canon-subject.md +1 -8
  10. package/dist/skills/reference/role-implementer.md +6 -8
  11. package/dist/skills/reference/role-orchestrator.md +32 -28
  12. package/dist/skills/reference/role-planner.md +15 -4
  13. package/dist/skills/reference/role-reviewer.md +32 -1
  14. package/man/canon-adapter-authorize.1 +2 -2
  15. package/man/canon-adapter-validate.1 +2 -2
  16. package/man/canon-adapter.1 +2 -2
  17. package/man/canon-artifacts-prune.1 +4 -4
  18. package/man/canon-artifacts-store.1 +6 -4
  19. package/man/canon-artifacts-verify.1 +7 -7
  20. package/man/canon-artifacts.1 +5 -8
  21. package/man/canon-brief-approve.1 +18 -8
  22. package/man/canon-brief-check.1 +2 -2
  23. package/man/canon-brief-show.1 +2 -2
  24. package/man/canon-brief.1 +3 -3
  25. package/man/canon-change-defer.1 +3 -4
  26. package/man/canon-change-drop.1 +2 -2
  27. package/man/canon-change-new.1 +2 -2
  28. package/man/canon-change-reopen.1 +2 -2
  29. package/man/canon-change.1 +2 -2
  30. package/man/canon-completion.1 +2 -2
  31. package/man/canon-context-pack-add.1 +2 -2
  32. package/man/canon-context-pack-show.1 +2 -2
  33. package/man/canon-context-pack-verify.1 +2 -2
  34. package/man/canon-context-pack.1 +2 -2
  35. package/man/canon-context.1 +2 -2
  36. package/man/canon-dashboard.1 +2 -2
  37. package/man/canon-demo-init.1 +2 -2
  38. package/man/canon-demo-review.1 +2 -2
  39. package/man/canon-demo.1 +2 -2
  40. package/man/canon-dispatch-begin.1 +2 -2
  41. package/man/canon-dispatch-diff.1 +2 -2
  42. package/man/canon-dispatch-end.1 +2 -2
  43. package/man/canon-dispatch.1 +2 -2
  44. package/man/canon-divergence-accept.1 +2 -2
  45. package/man/canon-divergence-add.1 +2 -2
  46. package/man/canon-divergence-defer.1 +2 -2
  47. package/man/canon-divergence-list.1 +2 -2
  48. package/man/canon-divergence-resolve.1 +2 -2
  49. package/man/canon-divergence.1 +2 -2
  50. package/man/canon-evidence-add.1 +2 -2
  51. package/man/canon-evidence-approval-payload.1 +2 -2
  52. package/man/canon-evidence-audit.1 +2 -2
  53. package/man/canon-evidence.1 +2 -2
  54. package/man/canon-export.1 +2 -2
  55. package/man/canon-feature-new.1 +2 -2
  56. package/man/canon-feature.1 +2 -2
  57. package/man/canon-finding-add.1 +2 -2
  58. package/man/canon-finding-close.1 +2 -2
  59. package/man/canon-finding-list.1 +2 -2
  60. package/man/canon-finding.1 +2 -2
  61. package/man/canon-format.1 +2 -2
  62. package/man/canon-gate-check.1 +2 -2
  63. package/man/canon-gate-install-hooks.1 +2 -2
  64. package/man/canon-gate-promote.1 +2 -2
  65. package/man/canon-gate.1 +2 -2
  66. package/man/canon-ingest-plans.1 +2 -2
  67. package/man/canon-ingest-records.1 +2 -2
  68. package/man/canon-ingest.1 +2 -2
  69. package/man/canon-init.1 +2 -2
  70. package/man/canon-inventory-sync.1 +2 -2
  71. package/man/canon-inventory.1 +2 -2
  72. package/man/canon-ledger-compact.1 +2 -2
  73. package/man/canon-ledger.1 +2 -2
  74. package/man/canon-migrate.1 +3 -3
  75. package/man/canon-plugin-sync.1 +2 -2
  76. package/man/canon-plugin.1 +2 -2
  77. package/man/canon-policy-approve.1 +2 -2
  78. package/man/canon-policy-show.1 +2 -2
  79. package/man/canon-policy.1 +2 -2
  80. package/man/canon-prompt-add.1 +2 -2
  81. package/man/canon-prompt-show.1 +2 -2
  82. package/man/canon-prompt.1 +2 -2
  83. package/man/canon-purge.1 +2 -2
  84. package/man/canon-query.1 +5 -5
  85. package/man/canon-regime-show.1 +2 -2
  86. package/man/canon-regime.1 +2 -2
  87. package/man/canon-report-build.1 +2 -2
  88. package/man/canon-report-check.1 +2 -2
  89. package/man/canon-report-snapshot.1 +2 -2
  90. package/man/canon-report.1 +2 -2
  91. package/man/canon-retrieve.1 +2 -2
  92. package/man/canon-review-brief.1 +84 -0
  93. package/man/canon-review-change.1 +2 -2
  94. package/man/canon-review-scenario.1 +2 -2
  95. package/man/canon-review.1 +5 -2
  96. package/man/canon-scenario-new.1 +2 -2
  97. package/man/canon-scenario.1 +2 -2
  98. package/man/canon-schema.1 +2 -2
  99. package/man/canon-search.1 +2 -2
  100. package/man/canon-selftest.1 +2 -2
  101. package/man/canon-skills-check.1 +2 -2
  102. package/man/canon-skills-doctor.1 +2 -2
  103. package/man/canon-skills-install.1 +2 -2
  104. package/man/canon-skills-show.1 +2 -2
  105. package/man/canon-skills.1 +2 -2
  106. package/man/canon-status.1 +2 -2
  107. package/man/canon-strategy-approval-payload.1 +2 -2
  108. package/man/canon-strategy-promote.1 +2 -2
  109. package/man/canon-strategy-rollback.1 +2 -2
  110. package/man/canon-strategy.1 +2 -2
  111. package/man/canon-subject-adopt.1 +2 -2
  112. package/man/canon-subject-move.1 +2 -2
  113. package/man/canon-subject-new.1 +2 -2
  114. package/man/canon-subject-show.1 +2 -2
  115. package/man/canon-subject-unadopt.1 +2 -2
  116. package/man/canon-subject.1 +2 -2
  117. package/man/canon-task-done.1 +2 -2
  118. package/man/canon-task.1 +2 -2
  119. package/man/canon-trace.1 +2 -2
  120. package/man/canon.1 +4 -7
  121. package/package.json +5 -5
  122. package/man/canon-artifacts-move.1 +0 -63
  123. package/man/canon-tier-age.1 +0 -50
  124. package/man/canon-tier.1 +0 -39
@@ -114,7 +114,7 @@ usage: canon gate check [--release]
114
114
  canon gate check --json
115
115
  ```
116
116
  ```text
117
- # Read stored records across every storage tier
117
+ # Read stored records
118
118
  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>]
119
119
  ```
120
120
  ```bash
@@ -128,6 +128,13 @@ usage: canon retrieve --for-role <ROLE> (--regime <KEY> | --domain <NAME>) [--su
128
128
  canon retrieve --for-role reviewer --domain dev --limit 20 --json
129
129
  ```
130
130
  ```text
131
+ # Record an independent reviewer's verdict on a change's brief (a plan review), bound to the brief's digest as the reviewer read it (`canon brief show --body`)
132
+ usage: canon review brief <CHANGE_ID> --actor <ACTOR_ID> --round <N> --verdict <approve|revise> --digest <DIGEST> [--project <PROJECT_ID>] [--session <SESSION_ID>] [--reviewer-provider <NAME>] [--reviewer-model <NAME>] [--reviewer-harness <NAME>] [--input]
133
+ ```
134
+ ```bash
135
+ canon review brief add-login --actor alice --round 1 --verdict approve --digest add-login=sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef --json
136
+ ```
137
+ ```text
131
138
  # Write one attributed Review record for a chore change directly to the ledger (exactly one provenance ref required)
132
139
  usage: canon review change <CHANGE_ID> --actor <ACTOR_ID> (--upstream-ref <TEXT> | --original-spec-ref <TEXT>) [--project <PROJECT_ID>] [--rev <REV>] [--role <ROLE>] [--session <SESSION_ID>] [--review-outcome <signed|indeterminate|unavailable>] [--reviewer-provider <NAME>] [--reviewer-model <NAME>] [--reviewer-harness <NAME>] [--artifact <PATH>]* [--max-artifact-mib <N>] [--input]
133
140
  ```
@@ -309,6 +316,30 @@ human accepts (or the implementer fixes) again. An accepted gap counts as
309
316
  covered for the ship guard and stays listed as `accepted-divergence` in
310
317
  `status` and `gate check`.
311
318
 
319
+ ## Review a brief (a plan review)
320
+
321
+ When `canon status` or `canon brief show <slug>` names a plan review (the owner delegated the approval of briefs), you read the
322
+ brief as an independent reviewer, in a session of your own, never the planner's or the orchestrator's. Read it with
323
+ `canon brief show <slug> --body`, which prints the text and, last, `digest: sha256:<hex>`, and record the verdict bound to that digest:
324
+
325
+ ```bash
326
+ canon review brief add-login --actor reviewer-1 --session reviewer-session --round 1 --verdict revise --digest add-login=sha256:0123456789abcdef
327
+ ```
328
+
329
+ Record every defect with `canon finding add --change add-login --review <review id> --round 1 --seq <k> --severity <s>`
330
+ (`--introduced-unknown` for a new blocker or should-fix). The `review id` is in the output. Severity follows your priority:
331
+
332
+ | Your priority | `--severity` |
333
+ |---|---|
334
+ | P0, P1 | `blocker` |
335
+ | P2 | `should-fix` |
336
+ | P3 | `note` |
337
+
338
+ `--verdict approve` is for a brief with no P0 or P1 left in your view; `revise` otherwise. The review counts only while the brief's
339
+ digest is the one you read: when the planner edits the brief, record the next round (`--round 2`) on the new digest. A digest that is
340
+ not the brief's now is `RELAY_DIGEST_STALE` and nothing is written. canon counts no rounds: after round 3 with P0 or P1 findings still open,
341
+ the orchestrator stops and reports to the owner. A plan review is not a chore's sign-off (`review change`).
342
+
312
343
  ## Record
313
344
 
314
345
  - Every defect is a finding; `finding list` shows round, seq, severity and
@@ -1,6 +1,6 @@
1
1
  .ie \n(.g .ds Aq \(aq
2
2
  .el .ds Aq '
3
- .TH canon-adapter-authorize 1 "authorize 0.45.0"
3
+ .TH canon-adapter-authorize 1 "authorize 0.47.0"
4
4
  .SH NAME
5
5
  canon\-adapter\-authorize \- Authorize declared capabilities against repository policy (preflight only)
6
6
  .SH SYNOPSIS
@@ -41,4 +41,4 @@ Print help
41
41
  \fB\-V\fR, \fB\-\-version\fR
42
42
  Print version
43
43
  .SH VERSION
44
- v0.45.0
44
+ v0.47.0
@@ -1,6 +1,6 @@
1
1
  .ie \n(.g .ds Aq \(aq
2
2
  .el .ds Aq '
3
- .TH canon-adapter-validate 1 "validate 0.45.0"
3
+ .TH canon-adapter-validate 1 "validate 0.47.0"
4
4
  .SH NAME
5
5
  canon\-adapter\-validate \- Read and validate one provider\-neutral response envelope
6
6
  .SH SYNOPSIS
@@ -41,4 +41,4 @@ Print help
41
41
  \fB\-V\fR, \fB\-\-version\fR
42
42
  Print version
43
43
  .SH VERSION
44
- v0.45.0
44
+ v0.47.0
@@ -1,6 +1,6 @@
1
1
  .ie \n(.g .ds Aq \(aq
2
2
  .el .ds Aq '
3
- .TH canon-adapter 1 "adapter 0.45.0"
3
+ .TH canon-adapter 1 "adapter 0.47.0"
4
4
  .SH NAME
5
5
  canon\-adapter \- Validate a provider\-neutral adapter response without executing a provider
6
6
  .SH SYNOPSIS
@@ -43,4 +43,4 @@ Examples:
43
43
  canon adapter validate \-\-response response.json
44
44
  canon adapter validate \-\-response response.json \-\-repo . \-\-json
45
45
  .SH VERSION
46
- v0.45.0
46
+ v0.47.0
@@ -1,6 +1,6 @@
1
1
  .ie \n(.g .ds Aq \(aq
2
2
  .el .ds Aq '
3
- .TH canon-artifacts-prune 1 "prune 0.45.0"
3
+ .TH canon-artifacts-prune 1 "prune 0.47.0"
4
4
  .SH NAME
5
5
  canon\-artifacts\-prune \- Delete the artifact blobs no record binds any more (the bare run previews; \-\-commit \-\-plan\-digest deletes)
6
6
  .SH SYNOPSIS
@@ -64,14 +64,14 @@ Examples:
64
64
  canon artifacts prune \-\-keep\-days 30
65
65
  canon artifacts prune \-\-commit \-\-plan\-digest <PLAN_DIGEST>
66
66
 
67
- The store only grows: a report written anew on every run adds a blob per run. A blob stays while a record binds it: the latest evidence of a task or of a scenario and the reviews still in effect (what `canon gate check` and `canon artifacts verify` read), a record not promoted yet, and, with \-\-keep\-days N, any evidence or review written in the last N days. Every other blob of the configured store is deleted: the local directory .canon/artifacts/sha256, or the objects of the object\-store tier `artifact_store:` names (the same rule; a copy left in the local directory of such a repo is judged by it too).
67
+ The store only grows: a report written anew on every run adds a blob per run. A blob stays while a record binds it: the latest evidence of a task or of a scenario and the reviews still in effect (what `canon gate check` and `canon artifacts verify` read), a record not promoted yet, and, with \-\-keep\-days N, any evidence or review written in the last N days. Every other blob of .canon/artifacts/sha256 is deleted.
68
68
 
69
69
  The bare run previews: it says how many blobs and bytes go and stay, why each kept blob stays, lists the blobs to delete a page at a time (\-\-limit, \-\-cursor, \-\-all; the totals are the whole\*(Aqs) and writes nothing. With nothing to delete it says so and offers no \-\-commit. \-\-commit \-\-plan\-digest deletes exactly that plan (PLAN_STALE, exit 2, nothing deleted, when evidence or a record changed since). A repo whose records or staging cannot be read in full is refused: a blob is never deleted on a guess. After a prune, `canon artifacts verify` and `canon gate check` answer as before.
70
70
 
71
- A deleted local blob leaves the working tree, so commit the removal with the ledger; it stays in git history, and shrinking that history is the repo owner\*(Aqs call, not this command\*(Aqs. A deleted object of a tier cannot be undone: the tier keeps no other copy. A delete that fails stops the run (ARTIFACTS_PRUNE_INCOMPLETE says what was deleted); a new preview lists what remains.
71
+ A deleted blob leaves the working tree, so commit the removal with the ledger; it stays in git history, and shrinking that history is the repo owner\*(Aqs call, not this command\*(Aqs. A delete that fails stops the run (ARTIFACTS_PRUNE_INCOMPLETE says what was deleted); a new preview lists what remains.
72
72
 
73
73
  It also deletes the stale temp files a killed blob write left in .canon/artifacts/sha256 (`.tmp\-<sha256>\-<pid>\-<nanos>`, a regular file modified over five minutes ago; a younger file, a link, a directory or any other name stays): the preview lists them in data.staleTemps, the plan digest covers them, and the commit checks each again under the store lock. A temp file is no finished blob, so deleting it changes no record; one git already tracks must be taken out of the commit. `canon artifacts verify` only counts them.
74
74
 
75
75
  Exit 0 for a preview or a commit, 1 when a delete failed, 2 when the plan is stale or the records or the store cannot be read.
76
76
  .SH VERSION
77
- v0.45.0
77
+ v0.47.0
@@ -1,6 +1,6 @@
1
1
  .ie \n(.g .ds Aq \(aq
2
2
  .el .ds Aq '
3
- .TH canon-artifacts-store 1 "store 0.45.0"
3
+ .TH canon-artifacts-store 1 "store 0.47.0"
4
4
  .SH NAME
5
5
  canon\-artifacts\-store \- Store the bound files of existing evidence records and current reviews in the artifact store (.canon/artifacts/sha256/)
6
6
  .SH SYNOPSIS
@@ -47,8 +47,10 @@ Print help
47
47
  \fB\-V\fR, \fB\-\-version\fR
48
48
  Print version
49
49
  .SH EXTRA
50
- For records written before canon stored bound bytes (0.11\-0.13), and for any evidence file, or file of a current review, whose stored blob was lost. Each attachment whose working\-tree file still hashes to the recorded digest is copied into .canon/artifacts/sha256/<hex> (or uploaded to the object store); everything else is listed as not stored, with why. A superseded review\*(Aqs files are not stored, as the gate does not check them. Commit the store with the ledger.
50
+ For records written before canon stored bound bytes (0.11\-0.13), and for any evidence file, or file of a current review, whose stored blob was lost. Each attachment whose working\-tree file still hashes to the recorded digest is copied into .canon/artifacts/sha256/<hex>; everything else is listed as not stored, with why. A superseded review\*(Aqs files are not stored, as the gate does not check them. Commit the store with the ledger.
51
51
 
52
- Exit 0 when the pass ran (the gate decides whether an unstored file matters), 2 when the ledger cannot be read or a write fails.
52
+ With `storage.attachments: lfs` in canon.yaml it first checks that git\-lfs is installed and its filter is set up (ARTIFACTS_STORE_REQUIRED, exit 2, nothing written, when not) and makes sure .canon/artifacts/.gitattributes routes the blobs through the filter.
53
+
54
+ Exit 0 when the pass ran (the gate decides whether an unstored file matters), 2 when the ledger cannot be read, git\-lfs is missing for attachments: lfs, or a write fails.
53
55
  .SH VERSION
54
- v0.45.0
56
+ v0.47.0
@@ -1,12 +1,12 @@
1
1
  .ie \n(.g .ds Aq \(aq
2
2
  .el .ds Aq '
3
- .TH canon-artifacts-verify 1 "verify 0.45.0"
3
+ .TH canon-artifacts-verify 1 "verify 0.47.0"
4
4
  .SH NAME
5
- canon\-artifacts\-verify \- Check that the artifact store holds every file the latest evidence and current reviews bind (\-\-full re\-hashes the stored bytes)
5
+ canon\-artifacts\-verify \- Check that the artifact store holds every file the latest evidence and current reviews bind
6
6
  .SH SYNOPSIS
7
7
  \fBcanon artifacts verify\fR [\fB\-\-as\fR] [\fB\-\-full\fR] [\fB\-\-repo\fR] [\fB\-\-json\fR] [\fB\-h\fR|\fB\-\-help\fR] [\fB\-V\fR|\fB\-\-version\fR]
8
8
  .SH DESCRIPTION
9
- Check that the artifact store holds every file the latest evidence and current reviews bind (\-\-full re\-hashes the stored bytes)
9
+ Check that the artifact store holds every file the latest evidence and current reviews bind
10
10
  .SH OPTIONS
11
11
  .TP
12
12
  \fB\-\-as\fR \fI<ROLE>\fR
@@ -27,7 +27,7 @@ orchestrator
27
27
  .RE
28
28
  .TP
29
29
  \fB\-\-full\fR
30
- Download every blob and re\-hash it, instead of trusting the store\*(Aqs size and digest metadata
30
+ Re\-hash every stored blob (a blob is always hashed when it is read, so the answer is the same without the flag)
31
31
  .TP
32
32
  \fB\-\-repo\fR \fI<DIR>\fR
33
33
  The repo to act on (default: the nearest ancestor directory holding a canon.yaml)
@@ -41,10 +41,10 @@ Print help
41
41
  \fB\-V\fR, \fB\-\-version\fR
42
42
  Print version
43
43
  .SH EXTRA
44
- Asks the store canon.yaml\*(Aqs `artifacts:` block selects (default: local, .canon/artifacts/sha256) about each bound file, the way `canon gate check` does. For an object store that is one HEAD per distinct digest plus the size and sha256 metadata written at upload; \-\-full downloads each blob and re\-hashes it.
44
+ Checks each bound file against its blob in .canon/artifacts/sha256, the way `canon gate check` does: a blob that hashes to its name is stored, a missing blob whose working\-tree file still hashes to the digest is verified by the working tree only, and anything else is a problem (data.problems names each). A blob that is a Git LFS pointer to the recorded digest (a clone that never ran `git lfs pull`) is the state lfs_pointer in data.problems[].blob; `git lfs pull` fetches the bytes.
45
45
 
46
- Exit 0 when every file is stored, 1 when one is missing or altered (data.problems names each), 2 when the store cannot be used or reached: an unreachable store is a refusal, never a pass.
46
+ Exit 0 when every file is stored, 1 when one is missing, altered or only an lfs_pointer (data.problems names each), 2 when the store cannot be used.
47
47
 
48
48
  It also counts the stale temp files a killed blob write left in .canon/artifacts/sha256 (`.tmp\-<sha256>\-<pid>\-<nanos>`, modified over five minutes ago): data.staleTemps has their files and bytes (unreadable, never 0, when the directory cannot be read) and a line names `canon artifacts prune`, which deletes them. verify deletes nothing, and a temp file never changes the exit.
49
49
  .SH VERSION
50
- v0.45.0
50
+ v0.47.0
@@ -1,12 +1,12 @@
1
1
  .ie \n(.g .ds Aq \(aq
2
2
  .el .ds Aq '
3
- .TH canon-artifacts 1 "artifacts 0.45.0"
3
+ .TH canon-artifacts 1 "artifacts 0.47.0"
4
4
  .SH NAME
5
- canon\-artifacts \- Check or move the evidence artifact store (local, or an object\-store tier)
5
+ canon\-artifacts \- Check the evidence artifact store
6
6
  .SH SYNOPSIS
7
7
  \fBcanon artifacts\fR [\fB\-\-as\fR] [\fB\-h\fR|\fB\-\-help\fR] [\fB\-V\fR|\fB\-\-version\fR] <\fIsubcommands\fR>
8
8
  .SH DESCRIPTION
9
- Check or move the evidence artifact store (local, or an object\-store tier)
9
+ Check the evidence artifact store
10
10
  .SH OPTIONS
11
11
  .TP
12
12
  \fB\-\-as\fR \fI<ROLE>\fR
@@ -34,15 +34,12 @@ Print version
34
34
  .SH SUBCOMMANDS
35
35
  .TP
36
36
  canon\-artifacts\-verify(1)
37
- Check that the artifact store holds every file the latest evidence and current reviews bind (\-\-full re\-hashes the stored bytes)
37
+ Check that the artifact store holds every file the latest evidence and current reviews bind
38
38
  .TP
39
39
  canon\-artifacts\-store(1)
40
40
  Store the bound files of existing evidence records and current reviews in the artifact store (.canon/artifacts/sha256/)
41
41
  .TP
42
- canon\-artifacts\-move(1)
43
- Move the local artifact blobs to an object\-store tier, verify them, and remove the local copies
44
- .TP
45
42
  canon\-artifacts\-prune(1)
46
43
  Delete the artifact blobs no record binds any more (the bare run previews; \-\-commit \-\-plan\-digest deletes)
47
44
  .SH VERSION
48
- v0.45.0
45
+ v0.47.0
@@ -1,16 +1,16 @@
1
1
  .ie \n(.g .ds Aq \(aq
2
2
  .el .ds Aq '
3
- .TH canon-brief-approve 1 "approve 0.45.0"
3
+ .TH canon-brief-approve 1 "approve 0.47.0"
4
4
  .SH NAME
5
- canon\-brief\-approve \- Record the human\*(Aqs approval of the brief, bound to its text; refused while `brief check` has blockers
5
+ canon\-brief\-approve \- Record the human\*(Aqs approval of the brief, bound to its text; refused while `brief check` has blockers. With \-\-delegated, the approval the owner delegated in the policy
6
6
  .SH SYNOPSIS
7
- \fBcanon brief approve\fR <\fB\-\-approver\fR> [\fB\-\-as\fR] <\fB\-\-note\fR> [\fB\-\-relayed\-via\fR] [\fB\-\-actor\fR] [\fB\-\-digest\fR] [\fB\-\-repo\fR] [\fB\-\-json\fR] [\fB\-\-input\fR] [\fB\-h\fR|\fB\-\-help\fR] [\fB\-V\fR|\fB\-\-version\fR] [\fICHANGE_ID\fR]
7
+ \fBcanon brief approve\fR [\fB\-\-approver\fR] [\fB\-\-as\fR] [\fB\-\-note\fR] [\fB\-\-relayed\-via\fR] [\fB\-\-actor\fR] [\fB\-\-digest\fR] [\fB\-\-delegated\fR] [\fB\-\-repo\fR] [\fB\-\-json\fR] [\fB\-\-input\fR] [\fB\-h\fR|\fB\-\-help\fR] [\fB\-V\fR|\fB\-\-version\fR] [\fICHANGE_ID\fR]
8
8
  .SH DESCRIPTION
9
- Record the human\*(Aqs approval of the brief, bound to its text; refused while `brief check` has blockers
9
+ Record the human\*(Aqs approval of the brief, bound to its text; refused while `brief check` has blockers. With \-\-delegated, the approval the owner delegated in the policy
10
10
  .SH OPTIONS
11
11
  .TP
12
12
  \fB\-\-approver\fR \fI<NAME>\fR
13
- Who approved (the human, not the agent)
13
+ Who approved (the human, not the agent). Required unless \-\-delegated
14
14
  .TP
15
15
  \fB\-\-as\fR \fI<ROLE>\fR
16
16
  The role you act as: planner, implementer, reviewer or orchestrator. Overrides `CANON_ROLE`. `schema` and `context` list only the role\*(Aqs commands, `status` keeps its steps, and `\-\-role` on `evidence add` / `evidence audit` / `review scenario` / `review change` is this role unless given
@@ -30,17 +30,20 @@ orchestrator
30
30
  .RE
31
31
  .TP
32
32
  \fB\-\-note\fR \fI<TEXT>\fR
33
- The human\*(Aqs own words
33
+ The human\*(Aqs own words. Required unless \-\-delegated
34
34
  .TP
35
35
  \fB\-\-relayed\-via\fR \fI<NAME>\fR
36
36
  Record the human\*(Aqs answer on their behalf: the tool they were asked with (`ask`, `AskUserQuestion`, `chat`); an agent role may run the call only with it
37
37
  .TP
38
38
  \fB\-\-actor\fR \fI<ACTOR_ID>\fR
39
- With \-\-relayed\-via, the agent\*(Aqs actor id (default: the CANON_ACTOR environment variable)
39
+ With \-\-relayed\-via or \-\-delegated, the agent\*(Aqs actor id (default: the CANON_ACTOR environment variable)
40
40
  .TP
41
41
  \fB\-\-digest\fR \fI<DIGEST>\fR
42
42
  With \-\-relayed\-via, the digest `canon brief show \-\-body` showed the human, as `<change>=<sha256:digest>`, once per change; a brief whose digest differs is refused
43
43
  .TP
44
+ \fB\-\-delegated\fR
45
+ Approve under a delegation (`delegation:` in `.canon/policy.yaml`, approved with the policy) instead of a human\*(Aqs answer: the declared role (\-\-as or CANON_ROLE) must hold a `brief\-approve` entry, and the latest plan review of each brief (`canon review brief`) must be an `approve` by another actor with no open blocker finding. Takes no \-\-approver, \-\-note, \-\-relayed\-via or \-\-digest; an unmet condition is DELEGATION_REQUIRED with the condition as its reason, and nothing is written
46
+ .TP
44
47
  \fB\-\-repo\fR \fI<DIR>\fR
45
48
  The repo to act on (default: the nearest ancestor directory holding a canon.yaml)
46
49
  .TP
@@ -62,6 +65,7 @@ The changes to approve, one answer for all, none written unless every one is app
62
65
  Examples:
63
66
  canon brief approve add\-login \-\-approver Ana \-\-note \*(AqGo. Ship the failure flow too.\*(Aq
64
67
  canon brief approve add\-login add\-search fix\-sync \-\-approver Ana \-\-note \*(AqAll three, go.\*(Aq
68
+ canon brief approve add\-login \-\-as orchestrator \-\-actor impl\-1 \-\-delegated
65
69
 
66
70
  Several ids take one name, one answer and one timestamp. Every id is checked
67
71
  first; one refused id refuses the call (the first refused id\*(Aqs code, with a
@@ -73,5 +77,11 @@ chore whose approval saw the code tree that is still the current one asks for no
73
77
  `canon policy approve` in the same call. Edit the brief afterwards and it reads as
74
78
  not approved (BRIEF_APPROVAL_STALE) until a human answers again and this
75
79
  runs again. Run it only from the human\*(Aqs answer, with their words as \-\-note.
80
+
81
+ \-\-delegated is the one call an agent makes when the owner delegated the approval in
82
+ \&.canon/policy.yaml (`delegation:`): canon checks the entry, that the policy is approved, and that
83
+ the brief\*(Aqs latest plan review is an approve by another actor with no open blocker, then writes
84
+ `Approved: <owner> <when> — "<canon\*(Aqs words>" (delegated to <role> <actor> under policy <digest> after review <id>) …`.
85
+ It records no policy approval.
76
86
  .SH VERSION
77
- v0.45.0
87
+ v0.47.0
@@ -1,6 +1,6 @@
1
1
  .ie \n(.g .ds Aq \(aq
2
2
  .el .ds Aq '
3
- .TH canon-brief-check 1 "check 0.45.0"
3
+ .TH canon-brief-check 1 "check 0.47.0"
4
4
  .SH NAME
5
5
  canon\-brief\-check \- Read the brief against the rules: blocker and advisory findings (exit 0 clean, 1 blockers, 2 refused)
6
6
  .SH SYNOPSIS
@@ -41,4 +41,4 @@ Print version
41
41
  [\fICHANGE_ID\fR]
42
42
  The change to read (default: the repo\*(Aqs only live change)
43
43
  .SH VERSION
44
- v0.45.0
44
+ v0.47.0
@@ -1,6 +1,6 @@
1
1
  .ie \n(.g .ds Aq \(aq
2
2
  .el .ds Aq '
3
- .TH canon-brief-show 1 "show 0.45.0"
3
+ .TH canon-brief-show 1 "show 0.47.0"
4
4
  .SH NAME
5
5
  canon\-brief\-show \- Show where the change stands and the next one to three steps; never edits
6
6
  .SH SYNOPSIS
@@ -50,4 +50,4 @@ Examples:
50
50
 
51
51
  The operand names the change; without it the repo\*(Aqs only live change is read.
52
52
  .SH VERSION
53
- v0.45.0
53
+ v0.47.0
package/man/canon-brief.1 CHANGED
@@ -1,6 +1,6 @@
1
1
  .ie \n(.g .ds Aq \(aq
2
2
  .el .ds Aq '
3
- .TH canon-brief 1 "brief 0.45.0"
3
+ .TH canon-brief 1 "brief 0.47.0"
4
4
  .SH NAME
5
5
  canon\-brief \- Check a change\*(Aqs brief (PRD format) and see the next steps; never edits
6
6
  .SH SYNOPSIS
@@ -40,7 +40,7 @@ canon\-brief\-check(1)
40
40
  Read the brief against the rules: blocker and advisory findings (exit 0 clean, 1 blockers, 2 refused)
41
41
  .TP
42
42
  canon\-brief\-approve(1)
43
- Record the human\*(Aqs approval of the brief, bound to its text; refused while `brief check` has blockers
43
+ Record the human\*(Aqs approval of the brief, bound to its text; refused while `brief check` has blockers. With \-\-delegated, the approval the owner delegated in the policy
44
44
  .SH EXTRA
45
45
  Examples:
46
46
  canon brief show State and the next one to three steps
@@ -61,4 +61,4 @@ gets one blocker, `brief.old\-format`: `canon migrate` rewrites it. A brief
61
61
  with fewer than two known headings (written before 0.19) checks as `brief.legacy`, an
62
62
  advisory. Without \-\-change, the repo\*(Aqs only live change is checked.
63
63
  .SH VERSION
64
- v0.45.0
64
+ v0.47.0
@@ -1,6 +1,6 @@
1
1
  .ie \n(.g .ds Aq \(aq
2
2
  .el .ds Aq '
3
- .TH canon-change-defer 1 "defer 0.45.0"
3
+ .TH canon-change-defer 1 "defer 0.47.0"
4
4
  .SH NAME
5
5
  canon\-change\-defer \- Set an approved change aside for now (a human\*(Aqs decision: needs a reason, a reference and the approver); `canon change reopen` brings it back
6
6
  .SH SYNOPSIS
@@ -85,7 +85,6 @@ the date of a conversation).
85
85
  Refused (CHANGE_CONFLICT, nothing written): `SHIPPED` for a change that already shipped (write
86
86
  a new change that removes the behavior), `CLOSED` for a change already deferred or dropped with
87
87
  other values (the same call again is `unchanged`). CHANGE_NOT_FOUND for a change with no
88
- record. A repo with no `change_state:` line under `routing:` is refused (CONFIG_INVALID, TIERS):
89
- run `canon migrate`. Not destructive: nothing is deleted, so there is no \-\-commit.
88
+ record. Not destructive: nothing is deleted, so there is no \-\-commit.
90
89
  .SH VERSION
91
- v0.45.0
90
+ v0.47.0
@@ -1,6 +1,6 @@
1
1
  .ie \n(.g .ds Aq \(aq
2
2
  .el .ds Aq '
3
- .TH canon-change-drop 1 "drop 0.45.0"
3
+ .TH canon-change-drop 1 "drop 0.47.0"
4
4
  .SH NAME
5
5
  canon\-change\-drop \- Give up an approved change for good (a human\*(Aqs decision: needs a reason, a reference and the approver); it is never brought back
6
6
  .SH SYNOPSIS
@@ -74,4 +74,4 @@ and the same call again is `unchanged`; any other call is CHANGE_CONFLICT (CLOSE
74
74
  the work back, write a new change (`canon change new`) and name the dropped one in its
75
75
  `Source:`.
76
76
  .SH VERSION
77
- v0.45.0
77
+ v0.47.0
@@ -1,6 +1,6 @@
1
1
  .ie \n(.g .ds Aq \(aq
2
2
  .el .ds Aq '
3
- .TH canon-change-new 1 "new 0.45.0"
3
+ .TH canon-change-new 1 "new 0.47.0"
4
4
  .SH NAME
5
5
  canon\-change\-new \- Write .canon/changes/<slug>/brief.md, import it, and adopt it into a subject
6
6
  .SH SYNOPSIS
@@ -63,4 +63,4 @@ Print version
63
63
  <\fICHANGE_ID\fR>
64
64
  The change\*(Aqs slug (its change_id)
65
65
  .SH VERSION
66
- v0.45.0
66
+ v0.47.0
@@ -1,6 +1,6 @@
1
1
  .ie \n(.g .ds Aq \(aq
2
2
  .el .ds Aq '
3
- .TH canon-change-reopen 1 "reopen 0.45.0"
3
+ .TH canon-change-reopen 1 "reopen 0.47.0"
4
4
  .SH NAME
5
5
  canon\-change\-reopen \- Bring a deferred change back (a human\*(Aqs decision); the old approval is void and the brief needs a new one
6
6
  .SH SYNOPSIS
@@ -75,4 +75,4 @@ stale, and `canon brief approve` writes a new line even for the same name and an
75
75
  Human only, like `canon change defer`; \-\-ref is optional here. This reopens a change; to
76
76
  reopen a shipped subject use `canon subject move \-\-to verifying`.
77
77
  .SH VERSION
78
- v0.45.0
78
+ v0.47.0
@@ -1,6 +1,6 @@
1
1
  .ie \n(.g .ds Aq \(aq
2
2
  .el .ds Aq '
3
- .TH canon-change 1 "change 0.45.0"
3
+ .TH canon-change 1 "change 0.47.0"
4
4
  .SH NAME
5
5
  canon\-change \- Write a plan change (.canon/changes/<slug>/brief.md) and adopt it into a subject; a human can defer, drop or reopen it
6
6
  .SH SYNOPSIS
@@ -56,4 +56,4 @@ role is refused (ACTOR_DENIED) unless it relays the human\*(Aqs explicit answer
56
56
  (deferred or dropped) change is no longer required by `gate check`, `status` or the ship guard, and the
57
57
  scenarios only it made are set aside; nothing is deleted. A shipped change cannot be closed.
58
58
  .SH VERSION
59
- v0.45.0
59
+ v0.47.0
@@ -1,6 +1,6 @@
1
1
  .ie \n(.g .ds Aq \(aq
2
2
  .el .ds Aq '
3
- .TH canon-completion 1 "completion 0.45.0"
3
+ .TH canon-completion 1 "completion 0.47.0"
4
4
  .SH NAME
5
5
  canon\-completion \- Write the shell completion script for canon (bash, zsh or fish)
6
6
  .SH SYNOPSIS
@@ -57,4 +57,4 @@ Examples:
57
57
 
58
58
  The script is generated from the command tree, so it completes exactly what the parser accepts. It needs no repo and no network.
59
59
  .SH VERSION
60
- v0.45.0
60
+ v0.47.0
@@ -1,6 +1,6 @@
1
1
  .ie \n(.g .ds Aq \(aq
2
2
  .el .ds Aq '
3
- .TH canon-context-pack-add 1 "add 0.45.0"
3
+ .TH canon-context-pack-add 1 "add 0.47.0"
4
4
  .SH NAME
5
5
  canon\-context\-pack\-add \- Create an immutable context pack from a repository\-local JSON manifest
6
6
  .SH SYNOPSIS
@@ -44,4 +44,4 @@ Print help
44
44
  \fB\-V\fR, \fB\-\-version\fR
45
45
  Print version
46
46
  .SH VERSION
47
- v0.45.0
47
+ v0.47.0
@@ -1,6 +1,6 @@
1
1
  .ie \n(.g .ds Aq \(aq
2
2
  .el .ds Aq '
3
- .TH canon-context-pack-show 1 "show 0.45.0"
3
+ .TH canon-context-pack-show 1 "show 0.47.0"
4
4
  .SH NAME
5
5
  canon\-context\-pack\-show \- Show a context pack after verifying its manifest and content objects
6
6
  .SH SYNOPSIS
@@ -41,4 +41,4 @@ Print version
41
41
  <\fIPACK_ID\fR>
42
42
  Context pack id (sha256:<64 hex digits>)
43
43
  .SH VERSION
44
- v0.45.0
44
+ v0.47.0
@@ -1,6 +1,6 @@
1
1
  .ie \n(.g .ds Aq \(aq
2
2
  .el .ds Aq '
3
- .TH canon-context-pack-verify 1 "verify 0.45.0"
3
+ .TH canon-context-pack-verify 1 "verify 0.47.0"
4
4
  .SH NAME
5
5
  canon\-context\-pack\-verify \- Verify a context pack\*(Aqs manifest and immutable content objects
6
6
  .SH SYNOPSIS
@@ -41,4 +41,4 @@ Print version
41
41
  <\fIPACK_ID\fR>
42
42
  Context pack id (sha256:<64 hex digits>)
43
43
  .SH VERSION
44
- v0.45.0
44
+ v0.47.0
@@ -1,6 +1,6 @@
1
1
  .ie \n(.g .ds Aq \(aq
2
2
  .el .ds Aq '
3
- .TH canon-context-pack 1 "context-pack 0.45.0"
3
+ .TH canon-context-pack 1 "context-pack 0.47.0"
4
4
  .SH NAME
5
5
  canon\-context\-pack \- Create, inspect, and verify reproducible context packs
6
6
  .SH SYNOPSIS
@@ -47,4 +47,4 @@ Examples:
47
47
  canon context\-pack show sha256:<pack\-digest> \-\-repo . \-\-json
48
48
  canon context\-pack verify sha256:<pack\-digest>
49
49
  .SH VERSION
50
- v0.45.0
50
+ v0.47.0
@@ -1,6 +1,6 @@
1
1
  .ie \n(.g .ds Aq \(aq
2
2
  .el .ds Aq '
3
- .TH canon-context 1 "context 0.45.0"
3
+ .TH canon-context 1 "context 0.47.0"
4
4
  .SH NAME
5
5
  canon\-context \- Show what you can author here: record kinds, fields, enums, policies
6
6
  .SH SYNOPSIS
@@ -41,4 +41,4 @@ Print help
41
41
  \fB\-V\fR, \fB\-\-version\fR
42
42
  Print version
43
43
  .SH VERSION
44
- v0.45.0
44
+ v0.47.0
@@ -1,6 +1,6 @@
1
1
  .ie \n(.g .ds Aq \(aq
2
2
  .el .ds Aq '
3
- .TH canon-dashboard 1 "dashboard 0.45.0"
3
+ .TH canon-dashboard 1 "dashboard 0.47.0"
4
4
  .SH NAME
5
5
  canon\-dashboard \- Serve the local status dashboard
6
6
  .SH SYNOPSIS
@@ -47,4 +47,4 @@ Print help
47
47
  \fB\-V\fR, \fB\-\-version\fR
48
48
  Print version
49
49
  .SH VERSION
50
- v0.45.0
50
+ v0.47.0
@@ -1,6 +1,6 @@
1
1
  .ie \n(.g .ds Aq \(aq
2
2
  .el .ds Aq '
3
- .TH canon-demo-init 1 "init 0.45.0"
3
+ .TH canon-demo-init 1 "init 0.47.0"
4
4
  .SH NAME
5
5
  canon\-demo\-init \- Scaffold the demo repo (gate starts RED)
6
6
  .SH SYNOPSIS
@@ -41,4 +41,4 @@ Print help
41
41
  \fB\-V\fR, \fB\-\-version\fR
42
42
  Print version
43
43
  .SH VERSION
44
- v0.45.0
44
+ v0.47.0
@@ -1,6 +1,6 @@
1
1
  .ie \n(.g .ds Aq \(aq
2
2
  .el .ds Aq '
3
- .TH canon-demo-review 1 "review 0.45.0"
3
+ .TH canon-demo-review 1 "review 0.47.0"
4
4
  .SH NAME
5
5
  canon\-demo\-review \- Record the missing reviewer evidence (gate turns GREEN)
6
6
  .SH SYNOPSIS
@@ -41,4 +41,4 @@ Print help
41
41
  \fB\-V\fR, \fB\-\-version\fR
42
42
  Print version
43
43
  .SH VERSION
44
- v0.45.0
44
+ v0.47.0
package/man/canon-demo.1 CHANGED
@@ -1,6 +1,6 @@
1
1
  .ie \n(.g .ds Aq \(aq
2
2
  .el .ds Aq '
3
- .TH canon-demo 1 "demo 0.45.0"
3
+ .TH canon-demo 1 "demo 0.47.0"
4
4
  .SH NAME
5
5
  canon\-demo \- Try the evidence loop end\-to\-end in a throwaway demo repo
6
6
  .SH SYNOPSIS
@@ -44,4 +44,4 @@ Examples:
44
44
  canon gate check # RED
45
45
  canon demo review && canon gate check # GREEN
46
46
  .SH VERSION
47
- v0.45.0
47
+ v0.47.0
@@ -1,6 +1,6 @@
1
1
  .ie \n(.g .ds Aq \(aq
2
2
  .el .ds Aq '
3
- .TH canon-dispatch-begin 1 "begin 0.45.0"
3
+ .TH canon-dispatch-begin 1 "begin 0.47.0"
4
4
  .SH NAME
5
5
  canon\-dispatch\-begin \- Mint a Run manifest with retrieved guidance and context/policy lineage
6
6
  .SH SYNOPSIS
@@ -77,4 +77,4 @@ Print help
77
77
  \fB\-V\fR, \fB\-\-version\fR
78
78
  Print version
79
79
  .SH VERSION
80
- v0.45.0
80
+ v0.47.0
@@ -1,6 +1,6 @@
1
1
  .ie \n(.g .ds Aq \(aq
2
2
  .el .ds Aq '
3
- .TH canon-dispatch-diff 1 "diff 0.45.0"
3
+ .TH canon-dispatch-diff 1 "diff 0.47.0"
4
4
  .SH NAME
5
5
  canon\-dispatch\-diff \- Diff the declared plan DAG against the observed execution graph
6
6
  .SH SYNOPSIS
@@ -38,4 +38,4 @@ Print help
38
38
  \fB\-V\fR, \fB\-\-version\fR
39
39
  Print version
40
40
  .SH VERSION
41
- v0.45.0
41
+ v0.47.0
@@ -1,6 +1,6 @@
1
1
  .ie \n(.g .ds Aq \(aq
2
2
  .el .ds Aq '
3
- .TH canon-dispatch-end 1 "end 0.45.0"
3
+ .TH canon-dispatch-end 1 "end 0.47.0"
4
4
  .SH NAME
5
5
  canon\-dispatch\-end \- Close a dispatched run with a terminal status and an ended_at
6
6
  .SH SYNOPSIS
@@ -57,4 +57,4 @@ Print version
57
57
  <\fIRUN_ID\fR>
58
58
  The RunId (ULID) minted by `canon dispatch begin`
59
59
  .SH VERSION
60
- v0.45.0
60
+ v0.47.0
@@ -1,6 +1,6 @@
1
1
  .ie \n(.g .ds Aq \(aq
2
2
  .el .ds Aq '
3
- .TH canon-dispatch 1 "dispatch 0.45.0"
3
+ .TH canon-dispatch 1 "dispatch 0.47.0"
4
4
  .SH NAME
5
5
  canon\-dispatch \- Begin an agent run with retrieved guidance recorded
6
6
  .SH SYNOPSIS
@@ -42,4 +42,4 @@ Close a dispatched run with a terminal status and an ended_at
42
42
  canon\-dispatch\-diff(1)
43
43
  Diff the declared plan DAG against the observed execution graph
44
44
  .SH VERSION
45
- v0.45.0
45
+ v0.47.0
@@ -1,6 +1,6 @@
1
1
  .ie \n(.g .ds Aq \(aq
2
2
  .el .ds Aq '
3
- .TH canon-divergence-accept 1 "accept 0.45.0"
3
+ .TH canon-divergence-accept 1 "accept 0.47.0"
4
4
  .SH NAME
5
5
  canon\-divergence\-accept \- Accept a divergent scenario as a tracked known gap (a reviewer step): its latest evidence must be divergent and not the accepting actor\*(Aqs or session\*(Aqs. The acceptance pins that evidence, so new evidence ends it, and lapses at \-\-expiry; until then the ship guard counts the cell as covered while `status` and `gate check` list it as `accepted\-divergence`
6
6
  .SH SYNOPSIS
@@ -74,4 +74,4 @@ Print version
74
74
  <\fISCENARIO_ID\fR>
75
75
  The accepted scenarios (`<area>.<surface>.<nn>`), one acceptance each, all or nothing
76
76
  .SH VERSION
77
- v0.45.0
77
+ v0.47.0