@journeykit/canon 0.39.1 → 0.40.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 (112) hide show
  1. package/dist/skills/reference/canon-gate.md +118 -3
  2. package/dist/skills/reference/canon-policy.md +46 -1
  3. package/dist/skills/reference/canon-storage.md +18 -4
  4. package/dist/skills/reference/canon-subject.md +8 -1
  5. package/dist/skills/reference/role-implementer.md +1 -1
  6. package/man/canon-adapter-authorize.1 +2 -2
  7. package/man/canon-adapter-validate.1 +2 -2
  8. package/man/canon-adapter.1 +2 -2
  9. package/man/canon-artifacts-move.1 +3 -3
  10. package/man/canon-artifacts-prune.1 +2 -2
  11. package/man/canon-artifacts-store.1 +2 -2
  12. package/man/canon-artifacts-verify.1 +2 -2
  13. package/man/canon-artifacts.1 +2 -2
  14. package/man/canon-brief-approve.1 +2 -2
  15. package/man/canon-brief-check.1 +2 -2
  16. package/man/canon-brief-show.1 +2 -2
  17. package/man/canon-brief.1 +2 -2
  18. package/man/canon-change-new.1 +2 -2
  19. package/man/canon-change.1 +2 -2
  20. package/man/canon-completion.1 +2 -2
  21. package/man/canon-context-pack-add.1 +2 -2
  22. package/man/canon-context-pack-show.1 +2 -2
  23. package/man/canon-context-pack-verify.1 +2 -2
  24. package/man/canon-context-pack.1 +2 -2
  25. package/man/canon-context.1 +2 -2
  26. package/man/canon-dashboard.1 +2 -2
  27. package/man/canon-demo-init.1 +2 -2
  28. package/man/canon-demo-review.1 +2 -2
  29. package/man/canon-demo.1 +2 -2
  30. package/man/canon-dispatch-begin.1 +2 -2
  31. package/man/canon-dispatch-diff.1 +2 -2
  32. package/man/canon-dispatch-end.1 +2 -2
  33. package/man/canon-dispatch.1 +2 -2
  34. package/man/canon-divergence-accept.1 +2 -2
  35. package/man/canon-divergence-add.1 +2 -2
  36. package/man/canon-divergence-defer.1 +2 -2
  37. package/man/canon-divergence-list.1 +2 -2
  38. package/man/canon-divergence-resolve.1 +2 -2
  39. package/man/canon-divergence.1 +2 -2
  40. package/man/canon-evidence-add.1 +6 -3
  41. package/man/canon-evidence-approval-payload.1 +2 -2
  42. package/man/canon-evidence-audit.1 +2 -2
  43. package/man/canon-evidence.1 +2 -2
  44. package/man/canon-export.1 +2 -2
  45. package/man/canon-feature-new.1 +2 -2
  46. package/man/canon-feature.1 +2 -2
  47. package/man/canon-finding-add.1 +2 -2
  48. package/man/canon-finding-close.1 +2 -2
  49. package/man/canon-finding-list.1 +2 -2
  50. package/man/canon-finding.1 +2 -2
  51. package/man/canon-format.1 +2 -2
  52. package/man/canon-gate-check.1 +2 -2
  53. package/man/canon-gate-install-hooks.1 +2 -2
  54. package/man/canon-gate-promote.1 +2 -2
  55. package/man/canon-gate.1 +2 -2
  56. package/man/canon-ingest-plans.1 +2 -2
  57. package/man/canon-ingest-records.1 +2 -2
  58. package/man/canon-ingest.1 +2 -2
  59. package/man/canon-init.1 +2 -2
  60. package/man/canon-inventory-sync.1 +2 -2
  61. package/man/canon-inventory.1 +2 -2
  62. package/man/canon-ledger-compact.1 +2 -2
  63. package/man/canon-ledger.1 +2 -2
  64. package/man/canon-migrate.1 +2 -2
  65. package/man/canon-plugin-sync.1 +2 -2
  66. package/man/canon-plugin.1 +2 -2
  67. package/man/canon-policy-approve.1 +2 -2
  68. package/man/canon-policy-show.1 +2 -2
  69. package/man/canon-policy.1 +2 -2
  70. package/man/canon-prompt-add.1 +2 -2
  71. package/man/canon-prompt-show.1 +2 -2
  72. package/man/canon-prompt.1 +2 -2
  73. package/man/canon-purge.1 +2 -2
  74. package/man/canon-query.1 +2 -2
  75. package/man/canon-regime-show.1 +2 -2
  76. package/man/canon-regime.1 +2 -2
  77. package/man/canon-report-build.1 +2 -2
  78. package/man/canon-report-check.1 +2 -2
  79. package/man/canon-report-snapshot.1 +2 -2
  80. package/man/canon-report.1 +2 -2
  81. package/man/canon-retrieve.1 +2 -2
  82. package/man/canon-review-change.1 +2 -2
  83. package/man/canon-review-scenario.1 +2 -2
  84. package/man/canon-review.1 +2 -2
  85. package/man/canon-scenario-new.1 +2 -2
  86. package/man/canon-scenario.1 +2 -2
  87. package/man/canon-schema.1 +2 -2
  88. package/man/canon-search.1 +2 -2
  89. package/man/canon-selftest.1 +2 -2
  90. package/man/canon-skills-check.1 +2 -2
  91. package/man/canon-skills-doctor.1 +2 -2
  92. package/man/canon-skills-install.1 +2 -2
  93. package/man/canon-skills-show.1 +2 -2
  94. package/man/canon-skills.1 +2 -2
  95. package/man/canon-status.1 +2 -2
  96. package/man/canon-strategy-approval-payload.1 +2 -2
  97. package/man/canon-strategy-promote.1 +2 -2
  98. package/man/canon-strategy-rollback.1 +2 -2
  99. package/man/canon-strategy.1 +2 -2
  100. package/man/canon-subject-adopt.1 +2 -2
  101. package/man/canon-subject-move.1 +2 -2
  102. package/man/canon-subject-new.1 +2 -2
  103. package/man/canon-subject-show.1 +2 -2
  104. package/man/canon-subject-unadopt.1 +2 -2
  105. package/man/canon-subject.1 +2 -2
  106. package/man/canon-task-done.1 +2 -2
  107. package/man/canon-task.1 +2 -2
  108. package/man/canon-tier-age.1 +2 -2
  109. package/man/canon-tier.1 +2 -2
  110. package/man/canon-trace.1 +2 -2
  111. package/man/canon.1 +2 -2
  112. package/package.json +4 -4
@@ -194,13 +194,28 @@ A present section, even `require_evidence: false` or a malformed one
194
194
 
195
195
  Keys, defaults and the exact sampling formula: `canon-policy`.
196
196
 
197
+ - **CI evidence** (`require_ci_run`, 0.40) — in-scope scenarios (default
198
+ `[shipped]`; `exclude_lanes` applies) whose newest declared evidence is not
199
+ a CI record (`--from-ci`, below) of the code as it stands now, from a run of
200
+ at least `min_cases` cases, are `uncovered-cell` (`stale-evidence` for
201
+ `other_code_tree`), with the reason in the detail: `no_ci_run`,
202
+ `other_code_tree`, `dirty_worktree`, `short_run`, `code_tree_unknown`:
203
+
204
+ ```
205
+ uncovered-cell cart.add.01 — spec_coverage.require_ci_run: no_ci_run — the newest evidence (recorded by `impl-1` at …) was not recorded from CI; run the whole suite in CI and record it there: `canon evidence add … --from-ci …`
206
+ ```
207
+
208
+ A newer record by a person or an agent than the CI's is `no_ci_run`.
209
+ The ship guard and `canon status` read the same decision, and
210
+ `--override-reason` does not waive it. Keys: `canon-policy`.
211
+
197
212
  Two refusals rather than a silent pass, both surfacing as
198
213
  `uncovered-cell` on the subject `spec_coverage`:
199
214
 
200
215
  - A **malformed section** (unknown key, unknown `scope` status, or a
201
- malformed `require_cases`/`require_review`/`require_audit` — unknown
216
+ malformed `require_cases`/`require_review`/`require_audit`/`require_ci_run` — unknown
202
217
  key, bad status, `null`, non-mapping, a missing or out-of-range
203
- `rate`) refuses at check time (`uncovered-cell spec_coverage — ...
218
+ `rate`, a `min_cases` that is not an integer of 1 or more) refuses at check time (`uncovered-cell spec_coverage — ...
204
219
  unusable`). It is never treated as
205
220
  absent — a typo must not be silently equivalent to not opting in.
206
221
  - A **corpus kind routed off the gate's rung** (`scenario`,
@@ -587,6 +602,104 @@ Evidence for uncommitted code is recorded with its `codeTree` and
587
602
  recorded evidence for; each record's own output line says whether it was
588
603
  written or `unchanged`.
589
604
 
605
+ ### Recording the suite from CI (`--from-ci`, 0.40)
606
+
607
+ A batch says how many cases each report held: one line per `--report`
608
+ (`canon evidence add: <path>: 118 passed, 0 failed, 3 skipped`) and
609
+ `data.reports[]` (`path`, `sha256`, `format`, `passed`, `failed`, `skipped`),
610
+ counting every case, one no scenario owns too. A re-run of one test file is a
611
+ small number you can see. Nothing of this is recorded unless the batch is a
612
+ CI run:
613
+
614
+ ```bash
615
+ canon evidence add --project root --all-scenarios --from-ci \
616
+ --ref "cargo nextest run --workspace --profile ci" \
617
+ --report junit:target/nextest/ci/junit.xml --role implementer --promote
618
+ ```
619
+
620
+ `--from-ci` reads the GitHub Actions environment (`GITHUB_ACTIONS` must be
621
+ `true`; `GITHUB_RUN_ID`, `GITHUB_RUN_ATTEMPT`, `GITHUB_SERVER_URL`,
622
+ `GITHUB_REPOSITORY`, `GITHUB_SHA`; `GITHUB_WORKFLOW` and `GITHUB_JOB` when
623
+ set) and gives every record of the batch the same `ci` block: `provider`
624
+ (`github-actions`), `run`, `attempt`, `url`
625
+ (`<server>/<repository>/actions/runs/<run>/attempts/<attempt>`),
626
+ `repository`, `sha` (what the CI says it ran on; `evidence_sha` stays the commit
627
+ canon bound), `workflow` and `job`, and `reports`: one entry per report file
628
+ with its digest and counts, a report that matched no scenario included. It is
629
+ never implied: without `--from-ci` a record names no run, in CI or not. It
630
+ needs `--all-scenarios` and an explicit `--ref` (the command line that ran the
631
+ suite: the default, the report path, names no suite) and refuses `--rev` and
632
+ `--verdict` (`EVIDENCE_ARGUMENT_CONFLICT`). Outside GitHub Actions it is
633
+ `CI_ENV_REQUIRED`, naming the variable (exit 2). On a work tree whose code
634
+ differs from `HEAD`'s it is `CI_WORKTREE_CONFLICT` (exit 2): an untracked report
635
+ changes the code tree, so write the report to a gitignored directory or under
636
+ `.canon/`, or list it in `code.exclude`. Nothing is written in either case. The
637
+ same batch of the same attempt is `unchanged`; a re-run of the workflow
638
+ (attempt 2) writes new records. A review does not look at `ci`: recording the
639
+ same suite from CI leaves a review current.
640
+
641
+ `ci` is what the environment says. It stops a collected report standing in for
642
+ the suite's run, and it proves nothing about who set the variables; the `url`
643
+ is what a person checks. The policy that asks for it, and what a partial run
644
+ is, is `spec_coverage.require_ci_run` (see `canon-policy`).
645
+
646
+ A GitHub Actions job, in the order that matters. Run it on `push` to the
647
+ branch that ships (and, for a record you only upload, on `pull_request`); a
648
+ `pull_request` run checks out a detached merge ref, so only a `push` run can
649
+ commit and push the records. The JUnit file comes from a nextest profile
650
+ (`.config/nextest.toml`: `[profile.ci.junit]` with `path = "junit.xml"` writes
651
+ `target/nextest/ci/junit.xml`, under gitignored `target/`):
652
+
653
+ ```yaml
654
+ on:
655
+ push:
656
+ branches: [main]
657
+ pull_request:
658
+
659
+ jobs:
660
+ test:
661
+ runs-on: ubuntu-latest
662
+ permissions:
663
+ contents: write # only for way 2 below
664
+ steps:
665
+ - uses: actions/checkout@v4
666
+ with:
667
+ fetch-depth: 0 # staleness and the code tree read history
668
+ # 0. canon on the runner: the npm package carries the binary (`bunx @journeykit/canon` works the same).
669
+ - run: npm install --global @journeykit/canon
670
+ # 1. The tests write JUnit to a gitignored path (`target/` here), never beside the sources.
671
+ - run: cargo nextest run --workspace --profile ci
672
+ # 2. Record the run. `if: always()`: a failed run is recorded too, so the divergent verdicts are on the ledger.
673
+ - if: always()
674
+ run: |
675
+ canon inventory sync
676
+ canon evidence add --project root --all-scenarios --from-ci \
677
+ --ref "cargo nextest run --workspace --profile ci" \
678
+ --report junit:target/nextest/ci/junit.xml \
679
+ --role implementer --promote
680
+ # 3. Get the records out of the job, by one of two ways.
681
+ # Way 1: upload them.
682
+ - if: always()
683
+ uses: actions/upload-artifact@v4
684
+ with:
685
+ name: canon-records
686
+ path: |
687
+ .canon/ledger
688
+ .canon/artifacts
689
+ # Way 2: commit and push them (needs `permissions: contents: write`), on a push event only:
690
+ # a pull_request run has no branch to push to.
691
+ # A push made with GITHUB_TOKEN does not start a new workflow run.
692
+ - if: always() && github.event_name == 'push'
693
+ run: |
694
+ git add .canon/ledger .canon/artifacts
695
+ git -c user.name=canon-ci -c user.email=canon-ci@users.noreply.github.com commit -m "ci: record run $GITHUB_RUN_ID" || true
696
+ git push
697
+ ```
698
+
699
+ A pull request from a fork has no write token: it can only upload. A squash
700
+ merge can leave a merged tree that is not the pull request head's: the CI of
701
+ the target branch records again.
702
+
590
703
  ### A write that makes a review stale says so (0.18)
591
704
 
592
705
  When new evidence (one record or a batch) supersedes the evidence a
@@ -621,7 +734,9 @@ Where those bytes live is `canon.yaml`'s `artifact_store: { backend: local |
621
734
  <s3 tier>, prefix: artifacts/ }` (default `local`: the directory above,
622
735
  git-tracked, no credentials). With an object-store tier, `evidence add`,
623
736
  `review scenario` and `artifacts store` upload each blob under
624
- `<prefix>sha256/<digest>` and keep nothing locally. `canon gate check` and
737
+ `<prefix>sha256/<digest>.zst` (one zstd frame of the bound bytes; the digest is
738
+ that of the bytes before compression; a plain `<prefix>sha256/<digest>` object
739
+ of an older canon is still read) and keep nothing locally. `canon gate check` and
625
740
  `canon artifacts verify [--full]` ask the store (a HEAD per digest; `--full`
626
741
  downloads and re-hashes) and refuse, never pass, when it cannot be reached.
627
742
  `canon artifacts move --tier <tier>` (a preview; `--commit --plan-digest` acts) moves an existing local
@@ -55,7 +55,7 @@ unknown `--policy` value exits 2, and so does `--policy` with `--no-policy`.
55
55
  it) and in `--json` as `policy.level`. It reads the level line when the
56
56
  file's leading comment block has one naming a known level; otherwise it
57
57
  infers the level from the `spec_coverage` section, which must match a
58
- level exactly (no `scope`, `exclude_lanes`, `require_audit`, or
58
+ level exactly (no `scope`, `exclude_lanes`, `require_audit`, `require_ci_run`, or
59
59
  non-default `require_review` settings); anything else is `custom`.
60
60
  `policy.level` is `null` when there is no policy.
61
61
 
@@ -262,6 +262,51 @@ latest audit is missing or `indeterminate` is `uncovered-cell`; with
262
262
  it. `canon context` and the `canon status` policy line show
263
263
  `require_audit=(rate=… seed=`…` scope=…)`.
264
264
 
265
+ ## CI evidence: `spec_coverage.require_ci_run` (0.40)
266
+
267
+ Optional; absent means nothing is asked of where evidence came from.
268
+
269
+ ```yaml
270
+ spec_coverage:
271
+ require_ci_run: {} # every default
272
+ # require_ci_run:
273
+ # scope: [shipped] # subject statuses the gate and the ship guard watch; this is the default; [] = every scenario
274
+ # min_cases: 120 # optional: the fewest cases (passed + failed over the record's reports) a run may have run
275
+ ```
276
+
277
+ For every in-scope scenario (`spec_coverage.exclude_lanes` applies) that has
278
+ declared evidence, its newest record (the latest `at`; an audit is not one)
279
+ must be a CI record (`canon evidence add --all-scenarios --from-ci`, see
280
+ `canon-gate`) of the code as it stands now, from a run that ran enough
281
+ cases. The first thing that is wrong is the scenario's one violation, and
282
+ its reason is in the detail:
283
+
284
+ | reason | the newest record | class |
285
+ |---|---|---|
286
+ | `no_ci_run` | has no `ci` block (a person or an agent wrote it; a newer one than the CI's counts) | `uncovered-cell` |
287
+ | `code_tree_unknown` | cannot be compared: git did not give the code tree now | `uncovered-cell` |
288
+ | `other_code_tree` | is of another code tree than the one now (none recorded is another) | `stale-evidence` |
289
+ | `dirty_worktree` | says its work tree differed from `HEAD` | `uncovered-cell` |
290
+ | `short_run` | ran fewer than `min_cases` cases | `uncovered-cell` |
291
+
292
+ A scenario with no evidence at all is the evidence requirement's
293
+ (`require_evidence`), not this one's. The code tree compared is the one
294
+ `canon gate check` already uses for stale evidence; commit shas are not
295
+ compared (a record commit changes `.canon/` only). `canon gate check`, the
296
+ `verifying → shipped` guard and `canon status`' red flag on a shipped subject
297
+ are one decision. `--override-reason` does not waive it: a repo that wants out
298
+ changes the policy, and a human approves that. The default scope `[shipped]`
299
+ means a shipped subject goes red again when its code changes, until CI records
300
+ the suite at the new code: it assumes CI records on every push to the main
301
+ branch.
302
+
303
+ `min_cases` is an integer of 1 or more. An unknown key, `null`, `0`, a
304
+ negative or non-integer `min_cases`, a bad `scope` or a non-mapping poisons
305
+ the whole `spec_coverage` section, like the other sub-sections. A policy with
306
+ `require_ci_run` is level `custom`. `canon context` and the `canon status`
307
+ policy line show `require_ci_run=(scope=… min_cases=…)`; there is no line
308
+ without the key.
309
+
265
310
  ## Effect-aware risk tiers
266
311
 
267
312
  The optional `risk_tiers` section is not CEL. Absent means no risk-approval
@@ -164,9 +164,18 @@ artifact_store: { backend: local } # default
164
164
 
165
165
  `local` is `.canon/artifacts/sha256/`, git-tracked and credential-free. An
166
166
  object-store tier gets `evidence add`, `review scenario` and `artifacts store`
167
- uploads under `<prefix>sha256/<digest>` and keeps nothing locally. The gate
168
- and `canon artifacts verify [--full]` ask the store and refuse, never pass,
169
- when it cannot be reached. `canon artifacts move --tier <tier>` (a preview; `--commit --plan-digest <digest>` acts)
167
+ uploads under `<prefix>sha256/<digest>.zst` and keeps nothing locally. The
168
+ `.zst` object is one zstd frame (level 19) of the bound bytes; the digest is
169
+ the sha256 of the bytes before compression, so a record's digest means what
170
+ it always did. To read a blob without canon, download it and run
171
+ `zstd -d <digest>.zst` (`zstd -t` checks it). An object an older canon wrote
172
+ at `<prefix>sha256/<digest>` (plain bytes) stays valid: the gate, `verify`,
173
+ `move` and `prune` read both names; canon writes only `.zst`. A canon 0.39 or
174
+ older reads a `.zst` blob as missing, so upgrade every canon that reads the
175
+ tier before the first `.zst` is written. The local `.canon/artifacts/sha256/`
176
+ is never compressed (git's own delta compression works on plain blobs). The
177
+ gate and `canon artifacts verify [--full]` ask the store and refuse, never
178
+ pass, when it cannot be reached. `canon artifacts move --tier <tier>` (a preview; `--commit --plan-digest <digest>` acts)
170
179
  uploads, reads back and verifies every local blob, then writes the
171
180
  `artifact_store:` block, removes the local copies and ignores
172
181
  `.canon/artifacts/`; commit the removals, `.gitignore` and `canon.yaml`. It is
@@ -257,7 +266,12 @@ preflights all attached destinations before the first delete, but storage
257
266
  backends are not one transaction: a failure after a prior delete returns
258
267
  an explicit `partial` result with matched/deleted counts and a nonzero
259
268
  status. Purge never rewrites Git history or deletes source transcript
260
- files.
269
+ files. A tier that `canon.yaml` declares but that cannot attach (its bucket
270
+ variable or DSN is unset) stops a commit, `RETENTION_TIERS_REQUIRED`, before
271
+ anything is deleted; the preview of such a repository says so: it lists the
272
+ removal set and the tier under `unavailable`, and its first `meta.next` step names
273
+ the tier and what to set instead of a `--commit` command. Set the value and run
274
+ the preview again to get the commit command.
261
275
 
262
276
  **Done when:** after `canon purge --kind <kind> --before <time> --commit
263
277
  --plan-digest <digest from the preview>`, a bare `canon purge` with the same
@@ -275,7 +275,14 @@ on an adopted change (`open-blocker`) — prints the violations, exits 2,
275
275
  leaves the record unchanged, and names `--override-reason`. `shipped`
276
276
  also refuses a `false-success` (a scenario whose latest audit is
277
277
  `refuted`) and, when `require_audit.scope` covers `shipped`, an owed
278
- sampled audit; see `canon-gate`.
278
+ sampled audit; see `canon-gate`. With `spec_coverage.require_ci_run` covering
279
+ `shipped` (the default scope) it also refuses a scenario whose newest evidence
280
+ is not a CI record (`canon evidence add --all-scenarios --from-ci`) of the
281
+ code as it stands now from a run of at least `min_cases` cases: one
282
+ `uncovered-cell` or `stale-evidence` per scenario with its reason
283
+ (`no_ci_run`, `other_code_tree`, `dirty_worktree`, `short_run`,
284
+ `code_tree_unknown`). `--override-reason` does not waive it; see
285
+ `canon-policy`. `canon status` flags a shipped subject red for the same reason.
279
286
 
280
287
  ```bash
281
288
  canon subject move demo-subject --to verifying \
@@ -93,7 +93,7 @@ canon divergence resolve auth.login.01 --actor alice --role reviewer --json
93
93
  ```
94
94
  ```text
95
95
  # Record one attributed EvidenceRecord for a task or scenario
96
- usage: canon evidence add [--task <TASK_ID> | --all-scenarios] [--project <PROJECT_ID>] [--class <CLASS>] [--ref <TEXT>] [--verdict <faithful|not-applicable|divergent>] [--summary <TEXT>] [--command-result <TEXT> (with --summary)] [--scenario <SCENARIO_ID> | --all-scenarios] [--run <RUN_ID>] [--surface-ref <PATH_OR_EFFECT>]* [--actor <ACTOR_ID>] [--role <ROLE>] [--session <SESSION_ID>] [--approver <NAME> | --all-scenarios] [--approval-role <human> | --all-scenarios] [--signature-file <FILE> | --all-scenarios] [--approval-at <TIMESTAMP> | --all-scenarios] [--rev <REV>] [--artifact <PATH>]* [--report <FORMAT:PATH>]* [--report-case <NAME> | --all-scenarios]* [--max-artifact-mib <N>] [--override-reason <TEXT>] [--promote | --no-promote] [--input]
96
+ usage: canon evidence add [--task <TASK_ID> | --all-scenarios] [--project <PROJECT_ID>] [--class <CLASS>] [--ref <TEXT>] [--verdict <faithful|not-applicable|divergent> | --from-ci] [--summary <TEXT>] [--command-result <TEXT> (with --summary)] [--scenario <SCENARIO_ID> | --all-scenarios] [--run <RUN_ID>] [--surface-ref <PATH_OR_EFFECT>]* [--actor <ACTOR_ID>] [--role <ROLE>] [--session <SESSION_ID>] [--approver <NAME> | --all-scenarios] [--approval-role <human> | --all-scenarios] [--signature-file <FILE> | --all-scenarios] [--approval-at <TIMESTAMP> | --all-scenarios] [--rev <REV> | --from-ci] [--artifact <PATH>]* [--report <FORMAT:PATH>]* [--report-case <NAME> | --all-scenarios]* [--max-artifact-mib <N>] [--override-reason <TEXT>] [--promote | --no-promote] [--input]
97
97
  ```
98
98
  ```bash
99
99
  canon evidence add --scenario auth.login.01 --class test-run --ref "npm test" --role implementer --json
@@ -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.39.1"
3
+ .TH canon-adapter-authorize 1 "authorize 0.40.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.39.1
44
+ v0.40.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.39.1"
3
+ .TH canon-adapter-validate 1 "validate 0.40.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.39.1
44
+ v0.40.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.39.1"
3
+ .TH canon-adapter 1 "adapter 0.40.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.39.1
46
+ v0.40.0
@@ -1,6 +1,6 @@
1
1
  .ie \n(.g .ds Aq \(aq
2
2
  .el .ds Aq '
3
- .TH canon-artifacts-move 1 "move 0.39.1"
3
+ .TH canon-artifacts-move 1 "move 0.40.0"
4
4
  .SH NAME
5
5
  canon\-artifacts\-move \- Move the local artifact blobs to an object\-store tier, verify them, and remove the local copies
6
6
  .SH SYNOPSIS
@@ -56,8 +56,8 @@ Examples:
56
56
 
57
57
  The bare run previews: it lists every upload and removal and prints a planDigest, and writes nothing. \-\-commit \-\-plan\-digest acts on exactly that plan (PLAN_STALE, exit 2, when it changed since).
58
58
 
59
- \-\-tier names an `s3` tier of canon.yaml\*(Aqs `tiers:` (for example `cold`; its credentials are the tier\*(Aqs own). Every blob in .canon/artifacts/sha256 is hashed, uploaded under <prefix>sha256/<digest> (prefix artifacts/), and read back; only when all of them verified does canon.yaml gain `artifact_store: { backend: <tier>, prefix: artifacts/ }`, after which the local copies are removed and `.canon/artifacts/` is added to .gitignore. Commit the removal with the ledger.
59
+ \-\-tier names an `s3` tier of canon.yaml\*(Aqs `tiers:` (for example `cold`; its credentials are the tier\*(Aqs own). Every blob in .canon/artifacts/sha256 is hashed, compressed (zstd) and uploaded under <prefix>sha256/<digest>.zst (prefix artifacts/), and read back (a digest the tier already holds, as `.zst` or as a plain object of an older canon, is not uploaded again); only when all of them verified does canon.yaml gain `artifact_store: { backend: <tier>, prefix: artifacts/ }`, after which the local copies are removed and `.canon/artifacts/` is added to .gitignore. Commit the removal with the ledger.
60
60
 
61
61
  Idempotent and resumable: a run stopped anywhere leaves a repo the gate still passes, and the next run finishes; a second run finds nothing to do. A blob whose bytes do not match its name is never moved. Moving back to local is refused; `\-\-tier local` on a local repo is a no\-op.
62
62
  .SH VERSION
63
- v0.39.1
63
+ v0.40.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.39.1"
3
+ .TH canon-artifacts-prune 1 "prune 0.40.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
@@ -74,4 +74,4 @@ It also deletes the stale temp files a killed blob write left in .canon/artifact
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.39.1
77
+ v0.40.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.39.1"
3
+ .TH canon-artifacts-store 1 "store 0.40.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
@@ -51,4 +51,4 @@ For records written before canon stored bound bytes (0.11\-0.13), and for any ev
51
51
 
52
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.
53
53
  .SH VERSION
54
- v0.39.1
54
+ v0.40.0
@@ -1,6 +1,6 @@
1
1
  .ie \n(.g .ds Aq \(aq
2
2
  .el .ds Aq '
3
- .TH canon-artifacts-verify 1 "verify 0.39.1"
3
+ .TH canon-artifacts-verify 1 "verify 0.40.0"
4
4
  .SH NAME
5
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)
6
6
  .SH SYNOPSIS
@@ -47,4 +47,4 @@ Exit 0 when every file is stored, 1 when one is missing or altered (data.problem
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.39.1
50
+ v0.40.0
@@ -1,6 +1,6 @@
1
1
  .ie \n(.g .ds Aq \(aq
2
2
  .el .ds Aq '
3
- .TH canon-artifacts 1 "artifacts 0.39.1"
3
+ .TH canon-artifacts 1 "artifacts 0.40.0"
4
4
  .SH NAME
5
5
  canon\-artifacts \- Check or move the evidence artifact store (local, or an object\-store tier)
6
6
  .SH SYNOPSIS
@@ -45,4 +45,4 @@ Move the local artifact blobs to an object\-store tier, verify them, and remove
45
45
  canon\-artifacts\-prune(1)
46
46
  Delete the artifact blobs no record binds any more (the bare run previews; \-\-commit \-\-plan\-digest deletes)
47
47
  .SH VERSION
48
- v0.39.1
48
+ v0.40.0
@@ -1,6 +1,6 @@
1
1
  .ie \n(.g .ds Aq \(aq
2
2
  .el .ds Aq '
3
- .TH canon-brief-approve 1 "approve 0.39.1"
3
+ .TH canon-brief-approve 1 "approve 0.40.0"
4
4
  .SH NAME
5
5
  canon\-brief\-approve \- Record the human\*(Aqs approval of the brief, bound to its text; refused while `brief check` has blockers
6
6
  .SH SYNOPSIS
@@ -74,4 +74,4 @@ chore whose approval saw the code tree that is still the current one asks for no
74
74
  not approved (BRIEF_APPROVAL_STALE) until a human answers again and this
75
75
  runs again. Run it only from the human\*(Aqs answer, with their words as \-\-note.
76
76
  .SH VERSION
77
- v0.39.1
77
+ v0.40.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.39.1"
3
+ .TH canon-brief-check 1 "check 0.40.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.39.1
44
+ v0.40.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.39.1"
3
+ .TH canon-brief-show 1 "show 0.40.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.39.1
53
+ v0.40.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.39.1"
3
+ .TH canon-brief 1 "brief 0.40.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
@@ -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.39.1
64
+ v0.40.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.39.1"
3
+ .TH canon-change-new 1 "new 0.40.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.39.1
66
+ v0.40.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.39.1"
3
+ .TH canon-change 1 "change 0.40.0"
4
4
  .SH NAME
5
5
  canon\-change \- Write a plan change (.canon/changes/<slug>/brief.md) and adopt it into a subject
6
6
  .SH SYNOPSIS
@@ -39,4 +39,4 @@ Write .canon/changes/<slug>/brief.md, import it, and adopt it into a subject
39
39
  Examples:
40
40
  canon change new add\-login \-\-subject auth \-\-title \*(AqAdd login\*(Aq
41
41
  .SH VERSION
42
- v0.39.1
42
+ v0.40.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.39.1"
3
+ .TH canon-completion 1 "completion 0.40.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.39.1
60
+ v0.40.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.39.1"
3
+ .TH canon-context-pack-add 1 "add 0.40.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.39.1
47
+ v0.40.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.39.1"
3
+ .TH canon-context-pack-show 1 "show 0.40.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.39.1
44
+ v0.40.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.39.1"
3
+ .TH canon-context-pack-verify 1 "verify 0.40.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.39.1
44
+ v0.40.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.39.1"
3
+ .TH canon-context-pack 1 "context-pack 0.40.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.39.1
50
+ v0.40.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.39.1"
3
+ .TH canon-context 1 "context 0.40.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.39.1
44
+ v0.40.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.39.1"
3
+ .TH canon-dashboard 1 "dashboard 0.40.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.39.1
50
+ v0.40.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.39.1"
3
+ .TH canon-demo-init 1 "init 0.40.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.39.1
44
+ v0.40.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.39.1"
3
+ .TH canon-demo-review 1 "review 0.40.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.39.1
44
+ v0.40.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.39.1"
3
+ .TH canon-demo 1 "demo 0.40.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.39.1
47
+ v0.40.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.39.1"
3
+ .TH canon-dispatch-begin 1 "begin 0.40.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.39.1
80
+ v0.40.0