@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.
- package/dist/skills/SKILL.src.md +142 -130
- package/dist/skills/reference/brief-align.md +8 -8
- package/dist/skills/reference/brief-clarify.md +6 -6
- package/dist/skills/reference/brief-harden.md +5 -5
- package/dist/skills/reference/brief-polish.md +13 -13
- package/dist/skills/reference/brief-shape.md +9 -9
- package/dist/skills/reference/canon-artifact-ingest.md +7 -7
- package/dist/skills/reference/canon-authoring.md +11 -11
- package/dist/skills/reference/canon-context.md +13 -13
- package/dist/skills/reference/canon-fmt.md +1 -1
- package/dist/skills/reference/canon-gate.md +52 -53
- package/dist/skills/reference/canon-inventory.md +10 -11
- package/dist/skills/reference/canon-learn.md +13 -14
- package/dist/skills/reference/canon-plan-import.md +15 -15
- package/dist/skills/reference/canon-plugins.md +8 -8
- package/dist/skills/reference/canon-policy.md +11 -11
- package/dist/skills/reference/canon-report-dashboard.md +6 -7
- package/dist/skills/reference/canon-retrieve.md +6 -6
- package/dist/skills/reference/canon-review.md +52 -53
- package/dist/skills/reference/canon-storage.md +16 -19
- package/dist/skills/reference/canon-subject.md +120 -127
- package/dist/skills/reference/role-implementer.md +90 -76
- package/dist/skills/reference/role-orchestrator.md +196 -172
- package/dist/skills/reference/role-planner.md +101 -97
- package/dist/skills/reference/role-reviewer.md +91 -85
- package/dist/skills/scripts/canon-retrieve-pre-dispatch.sh +5 -5
- package/man/canon-adapter-authorize.1 +11 -8
- package/man/canon-adapter-validate.1 +15 -8
- package/man/canon-artifacts-prune.1 +11 -11
- package/man/canon-artifacts-store.1 +8 -8
- package/man/canon-artifacts-verify.1 +7 -7
- package/man/canon-artifacts.1 +10 -4
- package/man/{canon-brief-approve.1 → canon-briefs-approve.1} +23 -17
- package/man/{canon-brief-check.1 → canon-briefs-check.1} +9 -6
- package/man/{canon-brief-show.1 → canon-briefs-get.1} +14 -11
- package/man/canon-briefs.1 +59 -0
- package/man/{canon-change-new.1 → canon-changes-create.1} +14 -14
- package/man/{canon-change-defer.1 → canon-changes-defer.1} +19 -16
- package/man/{canon-change-drop.1 → canon-changes-drop.1} +19 -16
- package/man/{canon-change-reopen.1 → canon-changes-reopen.1} +20 -17
- package/man/canon-changes.1 +65 -0
- package/man/canon-completion.1 +8 -5
- package/man/{canon-context-pack-add.1 → canon-context-packs-create.1} +9 -9
- package/man/{canon-context-pack-show.1 → canon-context-packs-get.1} +10 -7
- package/man/{canon-context-pack-verify.1 → canon-context-packs-verify.1} +10 -7
- package/man/canon-context-packs.1 +56 -0
- package/man/canon-context.1 +9 -6
- package/man/canon-dashboard.1 +10 -10
- package/man/canon-demo-init.1 +12 -7
- package/man/canon-demo-review.1 +7 -7
- package/man/{canon-divergence-accept.1 → canon-divergences-accept.1} +12 -12
- package/man/{canon-divergence-add.1 → canon-divergences-add.1} +12 -12
- package/man/{canon-divergence-defer.1 → canon-divergences-defer.1} +12 -12
- package/man/{canon-divergence-list.1 → canon-divergences-list.1} +10 -7
- package/man/{canon-divergence-resolve.1 → canon-divergences-resolve.1} +12 -12
- package/man/{canon-divergence.1 → canon-divergences.1} +16 -10
- package/man/canon-evidence-add-all.1 +117 -0
- package/man/canon-evidence-add.1 +16 -22
- package/man/canon-evidence-approval-payload.1 +10 -7
- package/man/canon-evidence-audit.1 +11 -11
- package/man/canon-evidence.1 +15 -5
- package/man/canon-export.1 +11 -11
- package/man/{canon-feature-new.1 → canon-features-create.1} +14 -14
- package/man/{canon-feature.1 → canon-features.1} +12 -6
- package/man/{canon-finding-close.1 → canon-findings-close.1} +17 -23
- package/man/{canon-finding-add.1 → canon-findings-create.1} +13 -13
- package/man/{canon-finding-list.1 → canon-findings-list.1} +11 -8
- package/man/{canon-finding.1 → canon-findings.1} +18 -20
- package/man/canon-format.1 +7 -4
- package/man/canon-gate-check.1 +9 -6
- package/man/canon-gate-install-hooks.1 +12 -12
- package/man/canon-gate-promote.1 +8 -8
- package/man/canon-gate.1 +11 -5
- package/man/canon-ingest-plans.1 +10 -10
- package/man/canon-ingest-records.1 +13 -13
- package/man/canon-init-check.1 +48 -0
- package/man/canon-init.1 +10 -13
- package/man/canon-inventory-sync.1 +8 -8
- package/man/canon-inventory.1 +10 -4
- package/man/canon-ledger-compact.1 +10 -10
- package/man/canon-ledger.1 +10 -4
- package/man/canon-migrate-revert.1 +58 -0
- package/man/canon-migrate.1 +19 -22
- package/man/{canon-plugin-sync.1 → canon-plugins-sync.1} +10 -10
- package/man/{canon-plugin.1 → canon-plugins.1} +12 -6
- package/man/canon-policy-approve.1 +13 -10
- package/man/{canon-policy-show.1 → canon-policy-get.1} +8 -5
- package/man/canon-policy.1 +13 -7
- package/man/{canon-prompt-add.1 → canon-prompts-create.1} +14 -14
- package/man/{canon-prompt-show.1 → canon-prompts-get.1} +10 -7
- package/man/canon-prompts.1 +49 -0
- package/man/canon-purge.1 +12 -16
- package/man/canon-query.1 +11 -8
- package/man/canon-regime-show.1 +10 -7
- package/man/canon-report-build.1 +4 -4
- package/man/canon-report-check.1 +7 -4
- package/man/canon-report-snapshot.1 +6 -6
- package/man/canon-report.1 +10 -4
- package/man/canon-retrieve.1 +11 -8
- package/man/{canon-review-brief.1 → canon-reviews-brief.1} +14 -14
- package/man/{canon-review-change.1 → canon-reviews-change.1} +13 -13
- package/man/{canon-review-scenario.1 → canon-reviews-scenario.1} +12 -12
- package/man/{canon-review.1 → canon-reviews.1} +16 -10
- package/man/{canon-dispatch-begin.1 → canon-runs-create.1} +11 -11
- package/man/{canon-task-done.1 → canon-runs-diff.1} +7 -10
- package/man/{canon-dispatch-end.1 → canon-runs-end.1} +11 -11
- package/man/{canon-dispatch.1 → canon-runs.1} +15 -9
- package/man/{canon-scenario-new.1 → canon-scenarios-create.1} +14 -14
- package/man/{canon-scenario.1 → canon-scenarios.1} +12 -6
- package/man/canon-schema.1 +22 -34
- package/man/canon-search.1 +15 -12
- package/man/canon-selftest.1 +7 -4
- package/man/canon-skills-check.1 +10 -7
- package/man/canon-skills-doctor.1 +10 -7
- package/man/canon-skills-get.1 +47 -0
- package/man/canon-skills-install.1 +10 -10
- package/man/canon-skills-list.1 +53 -0
- package/man/canon-skills.1 +16 -16
- package/man/canon-status.1 +10 -7
- package/man/{canon-strategy-approval-payload.1 → canon-strategies-approval-payload.1} +13 -10
- package/man/{canon-strategy-promote.1 → canon-strategies-promote.1} +12 -12
- package/man/{canon-strategy-rollback.1 → canon-strategies-rollback.1} +12 -12
- package/man/{canon-strategy.1 → canon-strategies.1} +14 -8
- package/man/{canon-subject-adopt.1 → canon-subjects-adopt.1} +10 -10
- package/man/{canon-subject-new.1 → canon-subjects-create.1} +14 -14
- package/man/{canon-subject-show.1 → canon-subjects-get.1} +9 -6
- package/man/{canon-subject-move.1 → canon-subjects-move.1} +12 -12
- package/man/{canon-subject-unadopt.1 → canon-subjects-unadopt.1} +12 -12
- package/man/{canon-subject.1 → canon-subjects.1} +16 -10
- package/man/canon-tasks-done.1 +50 -0
- package/man/{canon-task.1 → canon-tasks.1} +13 -7
- package/man/canon-trace.1 +8 -5
- package/man/canon.1 +66 -36
- package/package.json +5 -5
- package/man/canon-adapter.1 +0 -46
- package/man/canon-brief.1 +0 -64
- package/man/canon-change.1 +0 -59
- package/man/canon-context-pack.1 +0 -50
- package/man/canon-demo.1 +0 -47
- package/man/canon-dispatch-diff.1 +0 -41
- package/man/canon-ingest.1 +0 -46
- package/man/canon-prompt.1 +0 -43
- package/man/canon-regime.1 +0 -39
- package/man/canon-skills-show.1 +0 -102
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# Role: reviewer
|
|
2
2
|
|
|
3
3
|
You are the independent second look. Declare the role with
|
|
4
|
-
`CANON_ROLE=reviewer` (or `--as reviewer`); `--role` on `
|
|
5
|
-
`
|
|
6
|
-
acts refuse you (`ACTOR_DENIED`): `
|
|
7
|
-
`
|
|
4
|
+
`CANON_ROLE=reviewer` (or `--as reviewer`); `--role` on `reviews scenario`,
|
|
5
|
+
`reviews change` and `findings create` then defaults to `reviewer`. The human's
|
|
6
|
+
acts refuse you (`ACTOR_DENIED`): `briefs approve`, `policy approve`,
|
|
7
|
+
`divergences accept`, `changes drop`, `changes defer` and `changes reopen`, unless you record the answer the human gave you in the
|
|
8
8
|
conversation with `--relayed-via <tool>` (the divergence acceptance below).
|
|
9
9
|
Name what the human has to decide; never look for another flag that grants it.
|
|
10
10
|
You never run them without that answer, and never remove or unset your role
|
|
@@ -12,29 +12,29 @@ You never run them without that answer, and never remove or unset your role
|
|
|
12
12
|
|
|
13
13
|
## Commands
|
|
14
14
|
|
|
15
|
-
Every
|
|
16
|
-
has) and an example
|
|
15
|
+
Every operation of this role is below with its full syntax line (every argument the
|
|
16
|
+
operation has) and an example, which runs as written against
|
|
17
17
|
the example story (subject `demo`, change `add-login`, scenario `auth.login.01`): swap
|
|
18
|
-
in your ids. Use only the
|
|
19
|
-
<
|
|
18
|
+
in your ids. Use only the arguments on a line; never guess one. Ask `canon schema
|
|
19
|
+
<operation> --json` only for an operation this block does not list, or after an `INPUT_INVALID` refusal.
|
|
20
20
|
|
|
21
21
|
<!-- canon:generated commands-reviewer begin -->
|
|
22
|
-
Every
|
|
23
|
-
A `usage:` line shows the syntax and is not itself a command to run (the runnable example under it is): `<X>` is a value, `[x]` optional, `a | b` a choice, `(a | b)` exactly one is required, `[--x <V>]*` may repeat, `<X>+` is one or more, `[--a --b <V>]` go together. An
|
|
22
|
+
Every operation takes `--as <ROLE>` and `--json`; `--repo <DIR>` too, except `completion`, `schema`, `skills get`, `skills list`. `--input <JSON|FILE|->` runs an operation from one JSON document (an array is a batch) and is on every operation. Its keys are the argument names in camelCase, operands included (`id`), singular even when the argument repeats (the value is then an array; `[]` is equivalent to leaving the key out), and a number is a JSON number. An argv integer is `-?(0|[1-9][0-9]*)`: `+1` and `01` are refused. `--fields <FIELDS>` is a comma list of the paths `canon schema <OPERATION> --json` declares under `outputs[].fields.paths`; a path is the record's own key, spelled as the answer spells it.
|
|
23
|
+
A `usage:` line shows the syntax and is not itself a command to run (the runnable example under it is): `<X>` is a value, `[x]` optional, `a | b` a choice, `(a | b)` exactly one is required, `[--x <V>]*` may repeat, `<X>+` is one or more, `[--a --b <V>]` go together. An argument that is not on the line does not exist: it is refused (`INPUT_INVALID`, reason `UNKNOWN_ARGUMENT`).
|
|
24
24
|
|
|
25
25
|
```text
|
|
26
26
|
# Read the brief against the rules
|
|
27
|
-
usage: canon
|
|
27
|
+
usage: canon briefs check <ID>
|
|
28
28
|
```
|
|
29
29
|
```bash
|
|
30
|
-
canon
|
|
30
|
+
canon briefs check add-login --json
|
|
31
31
|
```
|
|
32
32
|
```text
|
|
33
33
|
# Show where the change stands and the next one to three steps; never edits
|
|
34
|
-
usage: canon
|
|
34
|
+
usage: canon briefs get <ID> [--body]
|
|
35
35
|
```
|
|
36
36
|
```bash
|
|
37
|
-
canon
|
|
37
|
+
canon briefs get add-login --json
|
|
38
38
|
```
|
|
39
39
|
```text
|
|
40
40
|
# Write the shell completion script for canon (bash, zsh or fish)
|
|
@@ -45,59 +45,59 @@ canon completion zsh --json
|
|
|
45
45
|
```
|
|
46
46
|
```text
|
|
47
47
|
# Show what you can author here: record kinds, fields, enums, policies
|
|
48
|
-
usage: canon context
|
|
48
|
+
usage: canon context
|
|
49
49
|
```
|
|
50
50
|
```bash
|
|
51
51
|
canon context --json
|
|
52
52
|
```
|
|
53
53
|
```text
|
|
54
54
|
# Add a divergence candidate, staged with no run_seq yet
|
|
55
|
-
usage: canon
|
|
55
|
+
usage: canon divergences add <SCENARIO_ID> --actor <ACTOR_ID> [--project <PROJECT_ID>] [--rev <REV>] [--state <open|still-divergent|resolved|deferred> (with --reason)] [--reason <TEXT>] [--expiry <TIMESTAMP>] [--round <N>] [--session <SESSION_ID>] [--detail <TEXT>] [--role <ROLE>] [--promote | --no-promote]
|
|
56
56
|
```
|
|
57
57
|
```bash
|
|
58
|
-
canon
|
|
58
|
+
canon divergences add auth.login.01 --actor alice --role reviewer --json
|
|
59
59
|
```
|
|
60
60
|
```text
|
|
61
61
|
# Directly record a deferred divergence (requires --reason/--expiry)
|
|
62
|
-
usage: canon
|
|
62
|
+
usage: canon divergences defer <SCENARIO_ID> --actor <ACTOR_ID> --reason <TEXT> --expiry <TIMESTAMP> [--project <PROJECT_ID>] [--rev <REV>] [--round <N>] [--session <SESSION_ID>] [--role <ROLE>]
|
|
63
63
|
```
|
|
64
64
|
```bash
|
|
65
|
-
canon
|
|
65
|
+
canon divergences defer auth.login.01 --actor alice --reason "waiting on the vendor" --expiry 2030-01-01T00:00:00Z --role reviewer --json
|
|
66
66
|
```
|
|
67
67
|
```text
|
|
68
68
|
# List the current divergence burn-down state
|
|
69
|
-
usage: canon
|
|
69
|
+
usage: canon divergences list [--as-of <TIMESTAMP>] [--limit <LIMIT> | --all] [--cursor <CURSOR>]
|
|
70
70
|
```
|
|
71
71
|
```bash
|
|
72
|
-
canon
|
|
72
|
+
canon divergences list --as-of 2030-01-01 --json
|
|
73
73
|
```
|
|
74
74
|
```text
|
|
75
75
|
# Directly record a resolved divergence
|
|
76
|
-
usage: canon
|
|
76
|
+
usage: canon divergences resolve <SCENARIO_ID> --actor <ACTOR_ID> [--project <PROJECT_ID>] [--rev <REV>] [--round <N>] [--session <SESSION_ID>] [--detail <TEXT>] [--role <ROLE>]
|
|
77
77
|
```
|
|
78
78
|
```bash
|
|
79
|
-
canon
|
|
79
|
+
canon divergences resolve auth.login.01 --actor alice --role reviewer --json
|
|
80
80
|
```
|
|
81
81
|
```text
|
|
82
|
-
#
|
|
83
|
-
usage: canon
|
|
82
|
+
# Move an already-committed finding's disposition
|
|
83
|
+
usage: canon findings close <ID> --disposition <fixed|rejected|deferred> [--resolution-rev <REV>] [--reason <TEXT>] [--actor <ACTOR_ID>] [--role <ROLE>] [--session <SESSION_ID>] [--promote | --no-promote]
|
|
84
84
|
```
|
|
85
85
|
```bash
|
|
86
|
-
canon
|
|
86
|
+
canon findings close add-login_1_1 --disposition rejected --reason "works as designed" --json
|
|
87
87
|
```
|
|
88
88
|
```text
|
|
89
|
-
#
|
|
90
|
-
usage: canon
|
|
89
|
+
# Record one code-review finding
|
|
90
|
+
usage: canon findings create --change <CHANGE_ID> --round <N> --seq <N> --severity <blocker|should-fix|note> --actor <ACTOR_ID> --summary <TEXT> [--disposition <open|fixed|rejected|deferred> | --resolution-rev <REV>] [--rev <REV>] [--introduced-rev <REV> | --introduced-unknown] [--review <REVIEW_ID>] [--file-ref <TEXT>] [--scenario <SCENARIO_ID>]* [--role <ROLE>] [--session <SESSION_ID>] [--promote | --no-promote]
|
|
91
91
|
```
|
|
92
92
|
```bash
|
|
93
|
-
canon
|
|
93
|
+
canon findings create --change add-login --round 1 --seq 2 --severity should-fix --actor alice --summary "Token is logged" --introduced-unknown --json
|
|
94
94
|
```
|
|
95
95
|
```text
|
|
96
96
|
# List a change's committed findings at their latest version
|
|
97
|
-
usage: canon
|
|
97
|
+
usage: canon findings list --change <CHANGE_ID> [--open] [--limit <LIMIT> | --all] [--cursor <CURSOR>]
|
|
98
98
|
```
|
|
99
99
|
```bash
|
|
100
|
-
canon
|
|
100
|
+
canon findings list --change add-login --json
|
|
101
101
|
```
|
|
102
102
|
```text
|
|
103
103
|
# Validate a spec/artifact corpus against canon's format
|
|
@@ -115,63 +115,70 @@ canon gate check --json
|
|
|
115
115
|
```
|
|
116
116
|
```text
|
|
117
117
|
# Read stored records
|
|
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 <
|
|
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 <LIMIT> | --all] [--cursor <CURSOR>]
|
|
119
119
|
```
|
|
120
120
|
```bash
|
|
121
121
|
canon query --kind evidence --json
|
|
122
122
|
```
|
|
123
123
|
```text
|
|
124
124
|
# Fetch role-scoped strategy guidance
|
|
125
|
-
usage: canon retrieve --for-role <ROLE> (--regime <KEY> | --domain <NAME>) [--subject <SUBJECT_ID> (with --domain)] [--
|
|
125
|
+
usage: canon retrieve --for-role <ROLE> (--regime <KEY> | --domain <NAME>) [--subject <SUBJECT_ID> (with --domain)] [--top <N>]
|
|
126
126
|
```
|
|
127
127
|
```bash
|
|
128
|
-
canon retrieve --for-role reviewer --domain dev --
|
|
128
|
+
canon retrieve --for-role reviewer --domain dev --top 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
|
|
132
|
-
usage: canon
|
|
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 briefs get --body`)
|
|
132
|
+
usage: canon reviews 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>]
|
|
133
133
|
```
|
|
134
134
|
```bash
|
|
135
|
-
canon
|
|
135
|
+
canon reviews brief add-login --actor alice --round 1 --verdict approve --digest add-login=sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef --json
|
|
136
136
|
```
|
|
137
137
|
```text
|
|
138
138
|
# Write one attributed Review record for a chore change directly to the ledger (exactly one provenance ref required)
|
|
139
|
-
usage: canon
|
|
139
|
+
usage: canon reviews 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>]
|
|
140
140
|
```
|
|
141
141
|
```bash
|
|
142
|
-
canon
|
|
142
|
+
canon reviews change add-login --actor alice --original-spec-ref docs/prd.md --role reviewer --json
|
|
143
143
|
```
|
|
144
144
|
```text
|
|
145
145
|
# Write one attributed Review record per scenario directly to the ledger, nothing to promote (exactly one provenance ref required)
|
|
146
|
-
usage: canon
|
|
146
|
+
usage: canon reviews scenario <SCENARIO_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>]
|
|
147
147
|
```
|
|
148
148
|
```bash
|
|
149
|
-
canon
|
|
149
|
+
canon reviews scenario auth.login.01 --actor alice --original-spec-ref docs/prd.md --role reviewer --json
|
|
150
150
|
```
|
|
151
151
|
```text
|
|
152
|
-
# Describe
|
|
153
|
-
usage: canon schema [<
|
|
152
|
+
# Describe the tool: its collections, operations, arguments, schemas and errors
|
|
153
|
+
usage: canon schema [<OPERATION>] [--collection <COLLECTION> | --errors | --error <CODE> | --warnings | --warning <CODE> | --search <TASK>] [--schemas (with --operation)]
|
|
154
154
|
```
|
|
155
155
|
```bash
|
|
156
|
-
canon schema
|
|
156
|
+
canon schema --json
|
|
157
157
|
```
|
|
158
158
|
```text
|
|
159
159
|
# Search records, brief sections and scenario text, with each hit's neighbors in the record graph
|
|
160
|
-
usage: canon search <TEXT> [--kind <change|task|scenario|run|handoff|review|divergence|trajectory|strategy_item|evidence|subject|finding|change_state|brief>]* [--expand <N>] [--
|
|
160
|
+
usage: canon search <TEXT> [--node-kind <change|task|scenario|run|handoff|review|divergence|trajectory|strategy_item|evidence|subject|finding|change_state|brief>]* [--expand <N>] [--top <N>]
|
|
161
|
+
```
|
|
162
|
+
```bash
|
|
163
|
+
canon search timeout --node-kind finding --json
|
|
164
|
+
```
|
|
165
|
+
```text
|
|
166
|
+
# Show one guide for agents
|
|
167
|
+
usage: canon skills get <ID> [--full]
|
|
161
168
|
```
|
|
162
169
|
```bash
|
|
163
|
-
canon
|
|
170
|
+
canon skills get canon --json
|
|
164
171
|
```
|
|
165
172
|
```text
|
|
166
|
-
#
|
|
167
|
-
usage: canon skills
|
|
173
|
+
# List the guides for agents
|
|
174
|
+
usage: canon skills list [--limit <LIMIT>] [--cursor <CURSOR>] [--all]
|
|
168
175
|
```
|
|
169
176
|
```bash
|
|
170
|
-
canon skills
|
|
177
|
+
canon skills list --json
|
|
171
178
|
```
|
|
172
179
|
```text
|
|
173
180
|
# Show where this repo stands: subjects by status, their gaps, and the next commands
|
|
174
|
-
usage: canon status
|
|
181
|
+
usage: canon status
|
|
175
182
|
```
|
|
176
183
|
```bash
|
|
177
184
|
canon status --json
|
|
@@ -185,31 +192,31 @@ canon trace add-login_1_1 --json
|
|
|
185
192
|
```
|
|
186
193
|
<!-- canon:generated commands-reviewer end -->
|
|
187
194
|
|
|
188
|
-
`
|
|
195
|
+
`reviews scenario` needs exactly one of `--upstream-ref <ref>` or
|
|
189
196
|
`--original-spec-ref <path>`; add `--artifact <path>` (repeatable) for
|
|
190
197
|
user-visible behavior. `--rev` is the commit you reviewed (default `HEAD`;
|
|
191
198
|
any git revision, a short sha included). With `write.promote: manual`,
|
|
192
|
-
follow `
|
|
193
|
-
reviewer --json`. `
|
|
194
|
-
found goes in `
|
|
199
|
+
follow `findings create` and `findings close` with `canon gate promote --as
|
|
200
|
+
reviewer --json`. `reviews scenario` has no `--summary` or note option: what you
|
|
201
|
+
found goes in `findings create --summary`.
|
|
195
202
|
|
|
196
203
|
The forms you reach for most (the story's ids; swap in yours):
|
|
197
204
|
|
|
198
205
|
```bash
|
|
199
|
-
canon
|
|
200
|
-
canon
|
|
201
|
-
canon
|
|
202
|
-
canon
|
|
203
|
-
canon
|
|
204
|
-
canon
|
|
205
|
-
canon
|
|
206
|
+
canon reviews scenario auth.login.01 auth.login.02 --actor reviewer-1 --session session-7 --original-spec-ref docs/prd.md
|
|
207
|
+
canon reviews scenario auth.login.01 --actor reviewer-1 --session session-7 --review-outcome indeterminate --original-spec-ref docs/prd.md
|
|
208
|
+
canon reviews change add-login --actor reviewer-1 --session session-7 --original-spec-ref docs/prd.md
|
|
209
|
+
canon findings create --change add-login --round 1 --seq 2 --severity blocker --actor reviewer-1 --session session-7 --summary "No rate limit" --scenario auth.login.01 --scenario auth.login.02 --introduced-rev HEAD~3
|
|
210
|
+
canon findings close add-login_1_2 --disposition fixed --resolution-rev HEAD
|
|
211
|
+
canon findings close add-login_1_3 --disposition rejected --reason "works as designed"
|
|
212
|
+
canon findings list --change add-login --open
|
|
206
213
|
```
|
|
207
214
|
|
|
208
215
|
Several findings at once are one `--input` array (the keys are option names
|
|
209
216
|
in camelCase):
|
|
210
217
|
|
|
211
218
|
```text
|
|
212
|
-
canon
|
|
219
|
+
canon findings create --input '[{"change":"add-login","round":1,"seq":3,"severity":"note","actor":"reviewer-1","summary":"Token is logged"},{"change":"add-login","round":1,"seq":4,"severity":"should-fix","introducedUnknown":true,"actor":"reviewer-1","summary":"Error text leaks the user name"}]'
|
|
213
220
|
```
|
|
214
221
|
|
|
215
222
|
A review pins what you saw: the scenario's digest plus the verdict
|
|
@@ -224,10 +231,10 @@ pins (above) make it stale, never the commit or the code tree. Reviews
|
|
|
224
231
|
written before 0.23 do not count until `canon migrate` re-pins them (an
|
|
225
232
|
advisory names it); that is the orchestrator's step, not yours.
|
|
226
233
|
|
|
227
|
-
Run `gate check` once, before `
|
|
234
|
+
Run `gate check` once, before `reviews scenario`: its `unreviewed-promotion`
|
|
228
235
|
violations are the subjects and scenarios that need your review. Do not loop
|
|
229
|
-
it. After `
|
|
230
|
-
or `status` again. Each `meta.next` entry is runnable:
|
|
236
|
+
it. After `reviews scenario`, read its `meta.next` instead of calling `gate check`
|
|
237
|
+
or `status` again. Each `meta.next` entry is runnable: `operation` is the operation id and `arguments` its arguments (camelCase), so the call is `canon <operation as words>` with them; guidance that needs a value you must fill in is in the error `hint` or the report text, not in `meta.next`.
|
|
231
238
|
|
|
232
239
|
## Separate session
|
|
233
240
|
|
|
@@ -239,7 +246,7 @@ everything you record. A harness with no subagent tool starts you (a new
|
|
|
239
246
|
|
|
240
247
|
## Read the PRD
|
|
241
248
|
|
|
242
|
-
1. `
|
|
249
|
+
1. `briefs check`: the brief must have no blockers (exit 1 means it has some).
|
|
243
250
|
2. Read the brief itself, `.canon/changes/<slug>/brief.md`: intent, the flow
|
|
244
251
|
`F1`, `F2`, …, acceptance and failure path per step, out of scope. You do
|
|
245
252
|
not refine the brief; a brief defect is a finding, not an edit.
|
|
@@ -292,7 +299,7 @@ sign.
|
|
|
292
299
|
|
|
293
300
|
## A known gap is the human's to accept
|
|
294
301
|
|
|
295
|
-
`
|
|
302
|
+
`divergences accept` is for a scenario whose honest evidence is `divergent`
|
|
296
303
|
and whose gap is limited by something outside this change (an upstream
|
|
297
304
|
limit, a platform bug) and is tracked there. It records a human's decision,
|
|
298
305
|
so it refuses every agent role (`ACTOR_DENIED`), you included, unless it records
|
|
@@ -304,7 +311,7 @@ Ask with the harness question tool (`ask` in omp, `AskUserQuestion` in Claude
|
|
|
304
311
|
Code, otherwise in the chat): accept the gap, or not. Only an explicit
|
|
305
312
|
approval counts; a question or a condition is not one, and no answer records
|
|
306
313
|
nothing. Then record it from a session that did not attest the evidence
|
|
307
|
-
(`DIVERGENCE_DENIED` otherwise): `canon
|
|
314
|
+
(`DIVERGENCE_DENIED` otherwise): `canon divergences accept <ids> --actor
|
|
308
315
|
<your actor id> --reason "<why>" --tracking <ref> --approver <their name> --note
|
|
309
316
|
"<their answer>" --relayed-via <tool>`; the record carries the relay, the
|
|
310
317
|
approver and their answer. When `canon.yaml` has `approval: { relay: deny }` the
|
|
@@ -318,15 +325,15 @@ covered for the ship guard and stays listed as `accepted-divergence` in
|
|
|
318
325
|
|
|
319
326
|
## Review a brief (a plan review)
|
|
320
327
|
|
|
321
|
-
When `canon status` or `canon
|
|
328
|
+
When `canon status` or `canon briefs get <slug>` names a plan review (the owner delegated the approval of briefs), you read the
|
|
322
329
|
brief as an independent reviewer, in a session of your own, never the planner's or the orchestrator's. Read it with
|
|
323
|
-
`canon
|
|
330
|
+
`canon briefs get <slug> --body`, which prints the text and, last, `digest: sha256:<hex>`, and record the verdict bound to that digest:
|
|
324
331
|
|
|
325
332
|
```bash
|
|
326
|
-
canon
|
|
333
|
+
canon reviews brief add-login --actor reviewer-1 --session reviewer-session --round 1 --verdict revise --digest add-login=sha256:0123456789abcdef
|
|
327
334
|
```
|
|
328
335
|
|
|
329
|
-
Record every defect with `canon
|
|
336
|
+
Record every defect with `canon findings create --change add-login --review <review id> --round 1 --seq <k> --severity <s>`
|
|
330
337
|
(`--introduced-unknown` for a new blocker or should-fix). The `review id` is in the output. Severity follows your priority:
|
|
331
338
|
|
|
332
339
|
| Your priority | `--severity` |
|
|
@@ -338,42 +345,41 @@ Record every defect with `canon finding add --change add-login --review <review
|
|
|
338
345
|
`--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
346
|
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
347
|
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 (`
|
|
348
|
+
the orchestrator stops and reports to the owner. A plan review is not a chore's sign-off (`reviews change`).
|
|
342
349
|
|
|
343
350
|
## Record
|
|
344
351
|
|
|
345
|
-
- Every defect is a finding; `
|
|
352
|
+
- Every defect is a finding; `findings list` shows round, seq, severity and
|
|
346
353
|
disposition, so the next seq and the open blockers are one command away.
|
|
347
354
|
`--rev` of a finding is the commit the round reviewed; `--introduced-rev`
|
|
348
355
|
is the commit that introduced the defect and has no default: source it
|
|
349
356
|
(`git log -S`, `git blame`) or leave it out, never guess it. Many findings
|
|
350
|
-
at once are one `
|
|
357
|
+
at once are one `findings create --input` with an array, validated before any
|
|
351
358
|
write.
|
|
352
|
-
- Close a finding once it is dealt with: `
|
|
359
|
+
- Close a finding once it is dealt with: `findings close <slug> --round <n>
|
|
353
360
|
--seq <n> --disposition fixed` records `--resolution-rev` (default
|
|
354
361
|
`HEAD`). When you close it `rejected` or `deferred`, give the reason in
|
|
355
362
|
one line with `--reason "<why>"`: the close is refused without it
|
|
356
|
-
(`FINDING_REASON_REQUIRED`), and `
|
|
363
|
+
(`FINDING_REASON_REQUIRED`), and `findings list` shows it as
|
|
357
364
|
`[reason: …]` so the next reader sees why it was not fixed. Closing a
|
|
358
365
|
finding that already has that disposition is `unchanged`.
|
|
359
366
|
Only you close a finding `rejected` or `deferred`: another role is refused
|
|
360
367
|
(`FINDING_ROLE_DENIED`), so declare `--as reviewer`; the close records
|
|
361
368
|
that role.
|
|
362
|
-
- Sign off in one batch with `
|
|
369
|
+
- Sign off in one batch with `reviews scenario <ids>`, all or nothing. It writes
|
|
363
370
|
directly; nothing to promote. canon stores and re-checks attached bytes
|
|
364
371
|
and never compares images.
|
|
365
372
|
- Pass `--scenario` for each scenario a finding is about. A blocker you
|
|
366
373
|
close `fixed` then stays blocking until the implementer records evidence
|
|
367
374
|
again for those scenarios alone (`evidence add --scenario <id>`); the
|
|
368
375
|
close inherits the list. A blocker naming no scenario asks for the whole
|
|
369
|
-
suite again (`evidence add
|
|
376
|
+
suite again (`evidence add-all`), which on a big suite is
|
|
370
377
|
a long e2e run for a one-scenario fix, so name them. Your pinned review
|
|
371
378
|
stays current when the new evidence says the same, otherwise look again.
|
|
372
379
|
- Fixes you ask for return as a re-review of the same change. When new
|
|
373
380
|
evidence changes a verdict or the checks and so stales your review, look
|
|
374
381
|
again before you sign it again.
|
|
375
|
-
A chore has no scenarios: review it with one change-level review, `canon
|
|
376
|
-
review change <slug> --actor <me> --session <session>
|
|
382
|
+
A chore has no scenarios: review it with one change-level review, `canon reviews change <slug> --actor <me> --session <session>
|
|
377
383
|
--upstream-ref <ref>` (or `--original-spec-ref <path>`). It signs the
|
|
378
384
|
chore's invariants and checks against the diff and pins its brief, so
|
|
379
385
|
editing the brief stales it. The chore also needs new evidence on every
|
|
@@ -382,17 +388,17 @@ the orchestrator stops and reports to the owner. A plan review is not a chore's
|
|
|
382
388
|
|
|
383
389
|
**Done when:** `canon gate check` lists no `unreviewed-promotion` violation
|
|
384
390
|
and no open blocker for the change (read `data.violations[]` in `canon gate
|
|
385
|
-
check --json`; `canon
|
|
391
|
+
check --json`; `canon findings list --change add-login --open` shows the
|
|
386
392
|
open findings), or each remaining one is a finding you recorded and the
|
|
387
393
|
implementer owns. Your last write's `meta.next` names the next step.
|
|
388
394
|
|
|
389
395
|
## Retry safety
|
|
390
396
|
|
|
391
|
-
`
|
|
397
|
+
`reviews scenario`, `reviews change` and `findings create` are content-keyed: an
|
|
392
398
|
identical repeat is reported `unchanged` (`data.unchanged: true`, or the
|
|
393
399
|
element's `status` in a batch), so after a timeout run the same command
|
|
394
400
|
again. A different finding under an occupied round and seq is refused
|
|
395
|
-
(`FINDING_EXISTS`): take the next seq. `
|
|
401
|
+
(`FINDING_EXISTS`): take the next seq. `findings close` with the same
|
|
396
402
|
disposition is a no-op too.
|
|
397
403
|
|
|
398
404
|
## Excuses that fail
|
|
@@ -406,4 +412,4 @@ disposition is a no-op too.
|
|
|
406
412
|
| "I will edit the brief to fix it." | A brief defect is a finding, not an edit. |
|
|
407
413
|
| "I will accept the gap myself, the limit is real." | The human accepts it: ask them, and record only their explicit answer with `--relayed-via`. |
|
|
408
414
|
|
|
409
|
-
Reference: `canon skills
|
|
415
|
+
Reference: `canon skills get canon-review`.
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
#
|
|
17
17
|
# canon gate install-hooks --repo . --event PreToolUse \
|
|
18
18
|
# --matcher Task --command "sh /path/to/pre-dispatch.sh" \
|
|
19
|
-
# --timeout 15
|
|
19
|
+
# --hook-timeout 15
|
|
20
20
|
#
|
|
21
21
|
# Place this file wherever your repo keeps materialized hook scripts
|
|
22
22
|
# (e.g. `.claude/hooks/canon-retrieve-pre-dispatch.sh`, following the
|
|
@@ -73,7 +73,7 @@ TOOL_NAME="$(printf '%s' "$INPUT" | jq -r '.tool_name // empty' 2>/dev/null || t
|
|
|
73
73
|
# fixed point of `regime_key`'s own segment canonicalizer, so the
|
|
74
74
|
# derived `--role` still equals the assembled regime_key's leading
|
|
75
75
|
# segment. The repo/area segments are NOT slugified here — they are
|
|
76
|
-
# canonicalized by `canon regime
|
|
76
|
+
# canonicalized by `canon regime-show` below (the write-path serializer).
|
|
77
77
|
slugify() {
|
|
78
78
|
printf '%s' "$1" | tr '[:upper:]' '[:lower:]' | tr -c 'a-z0-9' '-' | sed -E 's/-+/-/g; s/^-//; s/-$//'
|
|
79
79
|
}
|
|
@@ -97,16 +97,16 @@ if [ -z "$REGIME" ]; then
|
|
|
97
97
|
fi
|
|
98
98
|
[ -n "$HASH" ] || exit 0
|
|
99
99
|
# Assemble the regime_key through canon's OWN serializer (`canon
|
|
100
|
-
# regime
|
|
100
|
+
# regime-show` -> `canon_model::ids::regime_key`), the identical
|
|
101
101
|
# normalizer the S4/S6/S14 WRITE path uses — never a second shell
|
|
102
102
|
# derivation. A prior local `slugify` of the repo segment mapped a
|
|
103
103
|
# written `my_repo` to a queried `my-repo`, so `retrieve_guidance`
|
|
104
104
|
# fail-softed to empty and silently missed the namespace. `--role`
|
|
105
105
|
# is the already-kebab ROLE (a fixed point of that canonicalizer, so
|
|
106
106
|
# it still equals the assembled key's leading segment). Malformed
|
|
107
|
-
# segments make `canon regime
|
|
107
|
+
# segments make `canon regime-show` exit nonzero -> `|| true` -> empty
|
|
108
108
|
# REGIME -> the silent no-op just below.
|
|
109
|
-
REGIME="$(canon regime
|
|
109
|
+
REGIME="$(canon regime-show --role-segment "$ROLE" --repo-name "$REPO_RAW" --area "$AREA_RAW" --hash "$HASH" 2>/dev/null || true)"
|
|
110
110
|
[ -n "$REGIME" ] || exit 0
|
|
111
111
|
fi
|
|
112
112
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
.ie \n(.g .ds Aq \(aq
|
|
2
2
|
.el .ds Aq '
|
|
3
|
-
.TH canon-adapter-authorize 1 "authorize 0.
|
|
3
|
+
.TH canon-adapter-authorize 1 "adapter-authorize 0.50.0"
|
|
4
4
|
.SH NAME
|
|
5
|
-
canon\-adapter\-authorize \- Authorize declared capabilities against repository policy (preflight only)
|
|
5
|
+
canon\-adapter\-authorize \- Authorize an adapter response\*(Aqs declared capabilities against repository policy (preflight only)
|
|
6
6
|
.SH SYNOPSIS
|
|
7
|
-
\fBcanon adapter
|
|
7
|
+
\fBcanon adapter\-authorize\fR [\fB\-\-as\fR] [\fB\-\-response\fR] [\fB\-\-json\fR] [\fB\-\-repo\fR] [\fB\-\-input\fR] [\fB\-h\fR|\fB\-\-help\fR] [\fB\-V\fR|\fB\-\-version\fR]
|
|
8
8
|
.SH DESCRIPTION
|
|
9
|
-
Authorize declared capabilities against repository policy (preflight only)
|
|
9
|
+
Authorize an adapter response\*(Aqs declared capabilities against repository policy (preflight only)
|
|
10
10
|
.SH OPTIONS
|
|
11
11
|
.TP
|
|
12
12
|
\fB\-\-as\fR \fI<ROLE>\fR
|
|
13
|
-
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` / `
|
|
13
|
+
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` / `reviews scenario` / `reviews change` is this role unless given
|
|
14
14
|
.br
|
|
15
15
|
|
|
16
16
|
.br
|
|
@@ -29,11 +29,14 @@ orchestrator
|
|
|
29
29
|
\fB\-\-response\fR \fI<FILE>\fR
|
|
30
30
|
JSON response file to validate and authorize
|
|
31
31
|
.TP
|
|
32
|
+
\fB\-\-json\fR
|
|
33
|
+
Output JSON instead of the human\-readable form
|
|
34
|
+
.TP
|
|
32
35
|
\fB\-\-repo\fR \fI<DIR>\fR
|
|
33
36
|
The repo to act on (default: the nearest ancestor directory holding a canon.yaml)
|
|
34
37
|
.TP
|
|
35
|
-
\fB\-\-
|
|
36
|
-
|
|
38
|
+
\fB\-\-input\fR \fI<JSON|FILE|\->\fR
|
|
39
|
+
The arguments as JSON: an object (one run) or an array / NDJSON file or `\-` (a batch); keys are the argument names in camelCase
|
|
37
40
|
.TP
|
|
38
41
|
\fB\-h\fR, \fB\-\-help\fR
|
|
39
42
|
Print help
|
|
@@ -41,4 +44,4 @@ Print help
|
|
|
41
44
|
\fB\-V\fR, \fB\-\-version\fR
|
|
42
45
|
Print version
|
|
43
46
|
.SH VERSION
|
|
44
|
-
v0.
|
|
47
|
+
v0.50.0
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
.ie \n(.g .ds Aq \(aq
|
|
2
2
|
.el .ds Aq '
|
|
3
|
-
.TH canon-adapter-validate 1 "validate 0.
|
|
3
|
+
.TH canon-adapter-validate 1 "adapter-validate 0.50.0"
|
|
4
4
|
.SH NAME
|
|
5
|
-
canon\-adapter\-validate \- Read and validate one provider\-neutral response envelope
|
|
5
|
+
canon\-adapter\-validate \- Read and validate one provider\-neutral adapter response envelope without executing a provider
|
|
6
6
|
.SH SYNOPSIS
|
|
7
|
-
\fBcanon adapter
|
|
7
|
+
\fBcanon adapter\-validate\fR [\fB\-\-as\fR] [\fB\-\-response\fR] [\fB\-\-json\fR] [\fB\-\-repo\fR] [\fB\-\-input\fR] [\fB\-h\fR|\fB\-\-help\fR] [\fB\-V\fR|\fB\-\-version\fR]
|
|
8
8
|
.SH DESCRIPTION
|
|
9
|
-
Read and validate one provider\-neutral response envelope
|
|
9
|
+
Read and validate one provider\-neutral adapter response envelope without executing a provider
|
|
10
10
|
.SH OPTIONS
|
|
11
11
|
.TP
|
|
12
12
|
\fB\-\-as\fR \fI<ROLE>\fR
|
|
13
|
-
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` / `
|
|
13
|
+
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` / `reviews scenario` / `reviews change` is this role unless given
|
|
14
14
|
.br
|
|
15
15
|
|
|
16
16
|
.br
|
|
@@ -29,16 +29,23 @@ orchestrator
|
|
|
29
29
|
\fB\-\-response\fR \fI<FILE>\fR
|
|
30
30
|
JSON response file to validate
|
|
31
31
|
.TP
|
|
32
|
+
\fB\-\-json\fR
|
|
33
|
+
Output JSON instead of the human\-readable form
|
|
34
|
+
.TP
|
|
32
35
|
\fB\-\-repo\fR \fI<DIR>\fR
|
|
33
36
|
The repo to act on (default: the nearest ancestor directory holding a canon.yaml)
|
|
34
37
|
.TP
|
|
35
|
-
\fB\-\-
|
|
36
|
-
|
|
38
|
+
\fB\-\-input\fR \fI<JSON|FILE|\->\fR
|
|
39
|
+
The arguments as JSON: an object (one run) or an array / NDJSON file or `\-` (a batch); keys are the argument names in camelCase
|
|
37
40
|
.TP
|
|
38
41
|
\fB\-h\fR, \fB\-\-help\fR
|
|
39
42
|
Print help
|
|
40
43
|
.TP
|
|
41
44
|
\fB\-V\fR, \fB\-\-version\fR
|
|
42
45
|
Print version
|
|
46
|
+
.SH EXTRA
|
|
47
|
+
Examples:
|
|
48
|
+
canon adapter\-validate \-\-response response.json
|
|
49
|
+
canon adapter\-validate \-\-response response.json \-\-repo . \-\-json
|
|
43
50
|
.SH VERSION
|
|
44
|
-
v0.
|
|
51
|
+
v0.50.0
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
.ie \n(.g .ds Aq \(aq
|
|
2
2
|
.el .ds Aq '
|
|
3
|
-
.TH canon-artifacts-prune 1 "prune 0.
|
|
3
|
+
.TH canon-artifacts-prune 1 "prune 0.50.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
|
|
7
|
-
\fBcanon artifacts prune\fR [\fB\-\-as\fR] [\fB\-\-keep\-days\fR] [\fB\-\-
|
|
7
|
+
\fBcanon artifacts prune\fR [\fB\-\-as\fR] [\fB\-\-keep\-days\fR] [\fB\-\-json\fR] [\fB\-\-limit\fR] [\fB\-\-cursor\fR] [\fB\-\-input\fR] [\fB\-\-all\fR] [\fB\-\-commit\fR] [\fB\-\-plan\-digest\fR] [\fB\-\-repo\fR] [\fB\-h\fR|\fB\-\-help\fR] [\fB\-V\fR|\fB\-\-version\fR]
|
|
8
8
|
.SH DESCRIPTION
|
|
9
9
|
Delete the artifact blobs no record binds any more (the bare run previews; \-\-commit \-\-plan\-digest deletes)
|
|
10
10
|
.SH OPTIONS
|
|
11
11
|
.TP
|
|
12
12
|
\fB\-\-as\fR \fI<ROLE>\fR
|
|
13
|
-
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` / `
|
|
13
|
+
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` / `reviews scenario` / `reviews change` is this role unless given
|
|
14
14
|
.br
|
|
15
15
|
|
|
16
16
|
.br
|
|
@@ -29,12 +29,18 @@ orchestrator
|
|
|
29
29
|
\fB\-\-keep\-days\fR \fI<N>\fR
|
|
30
30
|
Also keep the blobs that evidence and reviews written in the last N days bind
|
|
31
31
|
.TP
|
|
32
|
-
\fB\-\-
|
|
32
|
+
\fB\-\-json\fR
|
|
33
|
+
Output JSON instead of the human\-readable form
|
|
34
|
+
.TP
|
|
35
|
+
\fB\-\-limit\fR \fI<LIMIT>\fR [default: 100]
|
|
33
36
|
Return at most this many records per page
|
|
34
37
|
.TP
|
|
35
38
|
\fB\-\-cursor\fR \fI<CURSOR>\fR
|
|
36
39
|
Resume after the last record of the previous page (the `nextCursor` it reported)
|
|
37
40
|
.TP
|
|
41
|
+
\fB\-\-input\fR \fI<JSON|FILE|\->\fR
|
|
42
|
+
The arguments as JSON: an object (one run) or an array / NDJSON file or `\-` (a batch); keys are the argument names in camelCase
|
|
43
|
+
.TP
|
|
38
44
|
\fB\-\-all\fR
|
|
39
45
|
Return every record from the cursor on, not one page
|
|
40
46
|
.TP
|
|
@@ -47,12 +53,6 @@ The digest of the preview this commit carries out.
|
|
|
47
53
|
\fB\-\-repo\fR \fI<DIR>\fR
|
|
48
54
|
The repo to act on (default: the nearest ancestor directory holding a canon.yaml)
|
|
49
55
|
.TP
|
|
50
|
-
\fB\-\-json\fR
|
|
51
|
-
Output JSON instead of the human\-readable form
|
|
52
|
-
.TP
|
|
53
|
-
\fB\-\-input\fR \fI<JSON|FILE|\->\fR
|
|
54
|
-
The arguments as JSON: an object (one run) or an array / NDJSON file or `\-` (a batch); keys are the option names in camelCase, `operands` an array
|
|
55
|
-
.TP
|
|
56
56
|
\fB\-h\fR, \fB\-\-help\fR
|
|
57
57
|
Print help
|
|
58
58
|
.TP
|
|
@@ -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.
|
|
77
|
+
v0.50.0
|