slicekit 0.0.1 → 0.1.2

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 (170) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +252 -3
  3. package/bin/slicekit.js +4 -0
  4. package/package.json +21 -4
  5. package/src/adapters/githost/errors.js +17 -0
  6. package/src/adapters/githost/fixture.js +136 -0
  7. package/src/adapters/githost/gh-json.js +99 -0
  8. package/src/adapters/githost/github.js +127 -0
  9. package/src/adapters/githost/index.js +12 -0
  10. package/src/adapters/tracker/errors.js +53 -0
  11. package/src/adapters/tracker/fixture.js +71 -0
  12. package/src/adapters/tracker/github-issues.js +65 -0
  13. package/src/adapters/tracker/index.js +14 -0
  14. package/src/baseline.js +109 -0
  15. package/src/build/commit.js +201 -0
  16. package/src/build/decline.js +81 -0
  17. package/src/build/finish.js +155 -0
  18. package/src/build/order.js +158 -0
  19. package/src/build/overlap.js +173 -0
  20. package/src/build/parallel.js +50 -0
  21. package/src/build/pr.js +263 -0
  22. package/src/build/record.js +28 -0
  23. package/src/build/red.js +207 -0
  24. package/src/build/review.js +123 -0
  25. package/src/build/sync.js +47 -0
  26. package/src/build/verdict.js +410 -0
  27. package/src/build/worktree.js +169 -0
  28. package/src/check/ci-event.js +52 -0
  29. package/src/check/context.js +129 -0
  30. package/src/check/index.js +140 -0
  31. package/src/check/rules/.gitkeep +0 -0
  32. package/src/check/rules/ci-body.js +22 -0
  33. package/src/check/rules/ci-title.js +43 -0
  34. package/src/check/rules/citations.js +224 -0
  35. package/src/check/rules/commands.js +146 -0
  36. package/src/check/rules/coverage.js +248 -0
  37. package/src/check/rules/hooks.js +58 -0
  38. package/src/check/rules/journal.js +17 -0
  39. package/src/check/rules/layout.js +56 -0
  40. package/src/check/rules/managed.js +31 -0
  41. package/src/check/rules/queue.js +106 -0
  42. package/src/check/rules/references.js +249 -0
  43. package/src/check/rules/style.js +177 -0
  44. package/src/check/rules/trailer.js +67 -0
  45. package/src/cli/baseline.js +66 -0
  46. package/src/cli/branch.js +86 -0
  47. package/src/cli/build.js +239 -0
  48. package/src/cli/check.js +40 -0
  49. package/src/cli/decide.js +59 -0
  50. package/src/cli/gaps.js +73 -0
  51. package/src/cli/hook.js +28 -0
  52. package/src/cli/index.js +83 -0
  53. package/src/cli/init.js +96 -0
  54. package/src/cli/instructions.js +63 -0
  55. package/src/cli/intake.js +107 -0
  56. package/src/cli/journal.js +82 -0
  57. package/src/cli/plan.js +29 -0
  58. package/src/cli/pr.js +83 -0
  59. package/src/cli/process.js +59 -0
  60. package/src/cli/ready-label.js +119 -0
  61. package/src/cli/review.js +64 -0
  62. package/src/cli/spec.js +31 -0
  63. package/src/cli/stage.js +37 -0
  64. package/src/cli/state.js +106 -0
  65. package/src/cli/status.js +108 -0
  66. package/src/cli/update.js +62 -0
  67. package/src/cli/workflow.js +48 -0
  68. package/src/config.js +203 -0
  69. package/src/decisions.js +289 -0
  70. package/src/evidence.js +27 -0
  71. package/src/fs.js +38 -0
  72. package/src/gaps.js +271 -0
  73. package/src/git.js +209 -0
  74. package/src/githooks.js +37 -0
  75. package/src/hook-cli.js +63 -0
  76. package/src/hooks/io.js +205 -0
  77. package/src/hooks/paths.js +82 -0
  78. package/src/hooks/pre-bash.js +715 -0
  79. package/src/hooks/pre-compact.js +139 -0
  80. package/src/hooks/pre-edit.js +170 -0
  81. package/src/hooks/session-end.js +118 -0
  82. package/src/hooks/session-start.js +209 -0
  83. package/src/hooks/shapes.js +103 -0
  84. package/src/hooks/stop.js +37 -0
  85. package/src/hooks/subagent-marker.js +88 -0
  86. package/src/hooks/subagent-start.js +100 -0
  87. package/src/hooks/subagent-stop.js +106 -0
  88. package/src/ids.js +43 -0
  89. package/src/init.js +281 -0
  90. package/src/instructions.js +235 -0
  91. package/src/intake.js +409 -0
  92. package/src/journal.js +326 -0
  93. package/src/lock.js +35 -0
  94. package/src/markdown.js +155 -0
  95. package/src/paths.js +33 -0
  96. package/src/plan.js +25 -0
  97. package/src/pr.js +73 -0
  98. package/src/prbody.js +266 -0
  99. package/src/ready-label.js +107 -0
  100. package/src/redact.js +33 -0
  101. package/src/render/compare.js +23 -0
  102. package/src/render/entry.js +101 -0
  103. package/src/render/index.js +27 -0
  104. package/src/render/managed.js +128 -0
  105. package/src/render/manifest.js +24 -0
  106. package/src/render/settings.js +76 -0
  107. package/src/render/update.js +151 -0
  108. package/src/slicefile.js +173 -0
  109. package/src/spec-verify.js +58 -0
  110. package/src/stage.js +325 -0
  111. package/src/state/build.js +156 -0
  112. package/src/state/covers.js +58 -0
  113. package/src/state/index.js +191 -0
  114. package/src/state/sync.js +64 -0
  115. package/src/state/transitions.js +282 -0
  116. package/src/verdict.js +203 -0
  117. package/src/which.js +37 -0
  118. package/src/workflow.js +177 -0
  119. package/src/worktrees.js +68 -0
  120. package/templates/claude-code/agents/auditor.md +7 -0
  121. package/templates/claude-code/agents/designer.md +7 -0
  122. package/templates/claude-code/agents/developer.md +7 -0
  123. package/templates/claude-code/agents/fixer.md +7 -0
  124. package/templates/claude-code/agents/ops.md +7 -0
  125. package/templates/claude-code/agents/reviewer.md +7 -0
  126. package/templates/claude-code/commands/slicekit-audit.md +7 -0
  127. package/templates/claude-code/commands/slicekit-build.md +7 -0
  128. package/templates/claude-code/commands/slicekit-gaps.md +6 -0
  129. package/templates/claude-code/commands/slicekit-intake.md +7 -0
  130. package/templates/claude-code/commands/slicekit-ops.md +7 -0
  131. package/templates/claude-code/commands/slicekit-plan.md +6 -0
  132. package/templates/claude-code/commands/slicekit-release.md +7 -0
  133. package/templates/claude-code/commands/slicekit-review.md +7 -0
  134. package/templates/claude-code/commands/slicekit-specify.md +6 -0
  135. package/templates/claude-code/commands/slicekit.md +7 -0
  136. package/templates/claude-code/hooks.json +90 -0
  137. package/templates/claude-code/manifest.json +171 -0
  138. package/templates/claude-code/skills/slicekit-ids/SKILL.md +16 -0
  139. package/templates/claude-code/skills/slicekit-loop/SKILL.md +23 -0
  140. package/templates/claude-code/skills/slicekit-writing/SKILL.md +24 -0
  141. package/templates/docs/BUILD.md +5 -0
  142. package/templates/docs/decisions.md +15 -0
  143. package/templates/docs/intake/.keep +0 -0
  144. package/templates/docs/observability.md +25 -0
  145. package/templates/docs/phases/.keep +0 -0
  146. package/templates/docs/platform.md +25 -0
  147. package/templates/docs/releases/.keep +0 -0
  148. package/templates/docs/runbook.md +21 -0
  149. package/templates/docs/spec/00-overview.md +8 -0
  150. package/templates/docs/spec/contracts/.keep +0 -0
  151. package/templates/docs/spec/gaps.md +6 -0
  152. package/templates/docs/spec/stack.md +3 -0
  153. package/templates/githooks/pre-commit +79 -0
  154. package/templates/githooks/pre-merge-commit +79 -0
  155. package/templates/githooks/prepare-commit-msg +110 -0
  156. package/templates/instructions/agents/auditor.md +33 -0
  157. package/templates/instructions/agents/designer.md +21 -0
  158. package/templates/instructions/agents/developer.md +49 -0
  159. package/templates/instructions/agents/fixer.md +41 -0
  160. package/templates/instructions/agents/ops.md +21 -0
  161. package/templates/instructions/agents/reviewer.md +63 -0
  162. package/templates/instructions/commands/build.md +234 -0
  163. package/templates/instructions/commands/gaps.md +65 -0
  164. package/templates/instructions/commands/intake.md +90 -0
  165. package/templates/instructions/commands/plan.md +60 -0
  166. package/templates/instructions/commands/review.md +117 -0
  167. package/templates/instructions/commands/specify.md +49 -0
  168. package/templates/style.json +11 -0
  169. package/templates/workflow/pins.json +6 -0
  170. package/templates/workflow/slicekit.yml +110 -0
@@ -0,0 +1,110 @@
1
+ #!/bin/sh
2
+ # slicekit: refuses a commit on a protected branch, then adds the Slice trailer on a slice branch
3
+ # (REQ-3.9, REQ-1.9). git runs this hook for commit, merge, cherry-pick, revert and rebase picks, and
4
+ # a non-zero exit aborts the commit, so the check here covers what pre-commit never sees.
5
+ # Arguments: <message file> [source [sha]].
6
+ # >>> slicekit protected-branch check (identical in every slicekit hook)
7
+ # Sets slicekit_b to the branch a commit lands on: HEAD's branch, or during a rebase the branch being
8
+ # rebased; empty on a detached HEAD. A variable, not output, so no extra shell starts to read it.
9
+ slicekit_branch() {
10
+ slicekit_b=
11
+ # The full ref, stripped here: --short says heads/main when a tag main exists.
12
+ if slicekit_r=$(git symbolic-ref -q HEAD); then
13
+ case $slicekit_r in refs/heads/*) slicekit_b=${slicekit_r#refs/heads/} ;; esac
14
+ return 0
15
+ fi
16
+ for slicekit_d in rebase-merge rebase-apply; do
17
+ slicekit_f=$(git rev-parse --git-path "$slicekit_d/head-name")
18
+ if [ -f "$slicekit_f" ]; then
19
+ slicekit_b=$(sed -e 's#^refs/heads/##' "$slicekit_f")
20
+ return 0
21
+ fi
22
+ done
23
+ return 0
24
+ }
25
+ # The operation in progress, if any, so a refusal can say how to give up on it.
26
+ slicekit_op() {
27
+ slicekit_g=$(git rev-parse --git-dir)
28
+ if [ -f "$slicekit_g/rebase-apply/applying" ]; then echo am
29
+ elif [ -d "$slicekit_g/rebase-merge" ] || [ -d "$slicekit_g/rebase-apply" ]; then echo rebase
30
+ elif [ -f "$slicekit_g/CHERRY_PICK_HEAD" ]; then echo cherry-pick
31
+ elif [ -f "$slicekit_g/REVERT_HEAD" ]; then echo revert
32
+ elif [ -f "$slicekit_g/MERGE_HEAD" ]; then echo merge
33
+ fi
34
+ }
35
+ # Refuses when that branch is in protectedBranches of .slicekit/config.json, or is main when node or
36
+ # the file is absent or unreadable. ALLOW_PROTECTED_COMMIT=1 overrides. Entries are names, never
37
+ # globs: globbing is off while they are compared.
38
+ # False only when the config's text proves branch $1 cannot be protected, so node need not start; true
39
+ # whenever only node can say (D-42). Proof is kept to the hot path: a slice branch spelled in ASCII
40
+ # letters, digits and / . _ -, whose text appears nowhere in the file, in a file with no \u or \/
41
+ # escape. node prints every protectedBranches value joined, numbers in JavaScript's form and nested
42
+ # arrays joined with commas, so no other name can be ruled out from the text alone. Shell built-ins
43
+ # only, and every character class spelled out, so no locale widens it.
44
+ slicekit_named() {
45
+ [ -f .slicekit/config.json ] || return 1
46
+ case $1 in slice/P*-S-*) ;; *) return 0 ;; esac
47
+ case $1 in *[!abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789/._-]*) return 0 ;; esac
48
+ while IFS= read -r slicekit_line || [ -n "$slicekit_line" ]; do
49
+ case $slicekit_line in *'\u'* | *'\/'* | *"$1"*) return 0 ;; esac
50
+ done < .slicekit/config.json
51
+ return 1
52
+ }
53
+ slicekit_check_protected() {
54
+ [ "$ALLOW_PROTECTED_COMMIT" = "1" ] && return 0
55
+ slicekit_branch
56
+ [ -n "$slicekit_b" ] || return 0
57
+ # Without node or the file the list is main alone, so a branch other than main that the file never
58
+ # names cannot be protected: decided here without starting node (D-42).
59
+ [ "$slicekit_b" != main ] && ! slicekit_named "$slicekit_b" && return 0
60
+ slicekit_p=main
61
+ if [ -f .slicekit/config.json ] && command -v node >/dev/null 2>&1; then
62
+ if slicekit_l=$(node -e 'const c=JSON.parse(require("fs").readFileSync(process.argv[1],"utf8").replace(/^\uFEFF/,""));const p=c.protectedBranches;if(!Array.isArray(p))process.exit(1);process.stdout.write(p.join("\n"))' .slicekit/config.json 2>/dev/null); then
63
+ slicekit_p=$slicekit_l
64
+ fi
65
+ fi
66
+ slicekit_hit=
67
+ set -f
68
+ for slicekit_n in $slicekit_p; do
69
+ [ "$slicekit_n" = "$slicekit_b" ] && slicekit_hit=1
70
+ done
71
+ set +f
72
+ [ -n "$slicekit_hit" ] || return 0
73
+ slicekit_o=$(slicekit_op)
74
+ slicekit_give_up=
75
+ [ -n "$slicekit_o" ] && slicekit_give_up="; to give up, run git $slicekit_o --abort"
76
+ echo "slicekit: $slicekit_b is protected; commit on a slice branch, or set ALLOW_PROTECTED_COMMIT=1$slicekit_give_up" >&2
77
+ return 1
78
+ }
79
+ # <<< slicekit protected-branch check
80
+ slicekit_check_protected || exit 1
81
+
82
+ # A merge message is left as git wrote it. A squash merge is an ordinary change on the branch, so
83
+ # it is stamped like one.
84
+ case "$2" in
85
+ merge) exit 0 ;;
86
+ esac
87
+
88
+ # The branch the check read; under ALLOW_PROTECTED_COMMIT=1 the check reads none, so it is read here.
89
+ [ "$ALLOW_PROTECTED_COMMIT" = "1" ] && slicekit_branch
90
+ # slice/P<n>-S-<nn>[-<descr>] gives P<n>/S-<nn>, with shell built-ins only.
91
+ slice=
92
+ case $slicekit_b in
93
+ slice/P*-S-*)
94
+ slicekit_n=${slicekit_b#slice/P}
95
+ slicekit_s=${slicekit_n#*-S-}
96
+ slicekit_n=${slicekit_n%%-S-*}
97
+ case $slicekit_s in
98
+ [0123456789][0123456789] | [0123456789][0123456789]-*) slicekit_s=${slicekit_s%%-*} ;;
99
+ *) slicekit_s= ;;
100
+ esac
101
+ case $slicekit_n in '' | *[!0123456789]*) slicekit_s= ;; esac
102
+ [ -n "$slicekit_s" ] && slice="P$slicekit_n/S-$slicekit_s"
103
+ ;;
104
+ esac
105
+ [ -n "$slice" ] || exit 0
106
+
107
+ # The trailer joins the message's final trailer block as its first line, or starts one; a block
108
+ # that already holds a Slice trailer is left alone, so an amend never adds a second. A `---` line
109
+ # in the body is text, not a patch divider.
110
+ exec git interpret-trailers --in-place --no-divider --where start --if-exists doNothing --trailer "Slice: $slice" "$1"
@@ -0,0 +1,33 @@
1
+ # Brief: auditor
2
+
3
+ You compare what the documents claim with what the code, the tests and the CI history show, or, in gap mode, what the spec claims with what the intake and the decisions support. Every finding carries a citation on both sides: the claim's file and line, and the evidence's file and line, command or CI run. The command that spawned you commits what you write.
4
+
5
+ ## You write
6
+
7
+ - In an audit, a report at the path the command gives you, with one row per claim: the claim, where it is written, the evidence, where it was found, and its status.
8
+ - The status is one of three words. `holds`: the evidence agrees with the claim. `drifted`: the evidence contradicts it; name the commit that broke it, from the history the command gives you. `unverifiable`: you found no evidence either way; say why.
9
+ - In gap mode, nothing but the rows you record with `{{cli}} gaps add` (see Gaps below). You write no file of your own.
10
+
11
+ ## You never
12
+
13
+ - Write or change code or tests.
14
+ - Change the documents you audit. In an audit the gap goes in your report; in gap mode it goes in through `{{cli}} gaps add`.
15
+ - Run git, except the read-only `git diff`, `git log`, `git show` and `git status`. You never commit or push; the command does that.
16
+
17
+ ## Gaps
18
+
19
+ When `/slicekit gaps` spawns you, you are in gap mode: the claims are the spec under `<docsRoot>/spec/` and the evidence is the intake snapshots under `<docsRoot>/intake/` and `<docsRoot>/decisions.md`. You look for gaps between them. Each gap is one of five classes:
20
+
21
+ - `missing`: the intake says something the spec does not.
22
+ - `unsupported`: the spec says something no intake sentence or decision supports.
23
+ - `contradiction`: the spec and the evidence, or two parts of the spec, say opposite things.
24
+ - `unknown`: a "Not yet known" section or an Open decision leaves the answer open.
25
+ - `unrequested`: the spec asks for something the intake never asked for.
26
+
27
+ Every gap carries a citation on both sides. Where is the claim's `<file>:<line>`. What says the gap in one line and ends with the evidence's `<file>:<line>`, or `no evidence` when there is none.
28
+
29
+ Record each gap with `{{cli}} gaps add --class <class> --where <file>:<line> --what <text>`, a CLI call and not git. It prints the gap's G-ID; a gap already in the table prints the ID it already has. `{{cli}} gaps scan` has already written the Not yet known sections, the Open decisions, the REQs whose `Cites:` line names one, and the interfaces with no contract, so look for the rest. The scan reads only `Cites:` lines: a REQ or a contract that mentions an Open decision in its text, not on a `Cites:` line, is yours to add as an `unknown` gap. You change no spec, no decision and no code; the human closes each row with the command.
30
+
31
+ ## Your report
32
+
33
+ In an audit, your reply names the file you wrote and the count of claims for each status. In gap mode, it lists the G-IDs you added, with the count for each class. It ends with a `Skipped:` line naming the claims you did not compare and then a `Not checked:` line naming what you did not verify. Each of these lines starts at the beginning of its line, with no list marker, bold or backticks. A reply without both lines is refused when you stop.
@@ -0,0 +1,21 @@
1
+ # Brief: designer
2
+
3
+ You give a verdict on one screen against the team's design rules. The command gives you the screen: a screenshot, the source that draws it, or both. You write no code.
4
+
5
+ ## You write
6
+
7
+ A verdict on the screen, at the path the command gives you, or as your reply when it names none. It holds:
8
+
9
+ 1. One line: `Verdict: BLOCK`, `Verdict: CHANGES` or `Verdict: APPROVE`.
10
+ 2. One line per finding: the rule it breaks with the rule's file and line, the place on the screen or in the source, and what a user sees because of it.
11
+ 3. The rules you checked, one per line.
12
+
13
+ ## You never
14
+
15
+ - Write or change code, styles or assets. The fix belongs to the developer or the fixer.
16
+ - Judge by taste. A finding names a written rule or an accessibility requirement.
17
+ - Run git, except the read-only `git diff`, `git log`, `git show` and `git status`. You never commit or push.
18
+
19
+ ## Your report
20
+
21
+ Your reply names the verdict's path, or holds the verdict. It ends with a `Skipped:` line naming the screens or states you did not look at and then a `Not checked:` line naming what you did not verify. Each of these lines starts at the beginning of its line, with no list marker, bold or backticks. A reply without both lines is refused when you stop.
@@ -0,0 +1,49 @@
1
+ # Brief: developer
2
+
3
+ You build one slice in its worktree. You write the slice's tests first, see them fail, then write the code that makes them pass. The command that spawned you reviews your report and commits your work.
4
+
5
+ ## You write
6
+
7
+ - The tests of the slice's evaluation set, each named exactly as the evaluation set names it.
8
+ - Then the code that makes those tests pass.
9
+ - Only the files the slice's Expected changes section names.
10
+
11
+ ## Tests first
12
+
13
+ When the command asks for the tests, write exactly the evaluation set's tests: no test the evaluation set does not list, no code, and no other file. A helper a test needs goes inside the evaluation test file, so it is frozen with the test (D-10). Run the test command and see them fail. Report the test files' paths on one line, `tests: <a>, <b>`, relative to the worktree.
14
+
15
+ ## Then code
16
+
17
+ When the command asks for the code, write the code that makes those tests pass and run the test command again. Your report names each test that now passes.
18
+
19
+ Work only under the worktree path the brief's Where section gives, and use absolute paths for every file you read or write.
20
+
21
+ Once the command has committed the tests they are frozen. Never change a frozen test, even one that looks wrong. Ask instead: put one line `amend: <test path> — <why>` in your report and stop. The command asks the human and, on yes, sends you back to change that one test.
22
+
23
+ ## You never
24
+
25
+ - Run git, except the read-only `git diff`, `git log`, `git show` and `git status`. You never commit, push, switch branches or open a pull request; the command does that.
26
+ - Write a document, a plan or a summary file. Your report is your reply.
27
+ - Change a test of the evaluation set to make it pass.
28
+ - Work outside the worktree the brief names.
29
+
30
+ ## Your report
31
+
32
+ Your reply is your report. Write one `ran: <command> → exit <code>` line for each command you ran, followed by the command's summary line. Include the run that showed the tests failing before the code existed and the run that showed them passing after. Then name the files you changed, and any file outside the slice's expected set with the reason. End with a `Skipped:` line naming what you did not do and a `Not checked:` line naming what you did not verify; write `nothing` when there is nothing. Each of these lines starts at the beginning of its line, with no list marker, bold or backticks.
33
+
34
+ A reply in this shape passes the check:
35
+
36
+ ```
37
+ ran: node --test test/parser.test.js → exit 1
38
+ # fail 2
39
+ ran: node --test test/parser.test.js → exit 0
40
+ # pass 2
41
+
42
+ Changed: src/parser.js, test/parser.test.js
43
+ Outside the expected set: none
44
+
45
+ Skipped: nothing
46
+ Not checked: the parser on files over 1 MB
47
+ ```
48
+
49
+ A reply without a `ran:` line, a `Skipped:` line or a `Not checked:` line is refused when you stop.
@@ -0,0 +1,41 @@
1
+ # Brief: fixer
2
+
3
+ You answer the findings of one verdict file in the slice's worktree. The command gives you the verdict and names the findings to fix. The command that spawned you commits your work and asks for the next review.
4
+
5
+ ## You write
6
+
7
+ - The code changes that answer each named finding: blockers `B-<n>` and the should-haves `H-<n>` the command passes on.
8
+ - A test only where the finding asks for one.
9
+
10
+ ## Fixing findings
11
+
12
+ The command gives you the verdict path and the finding IDs to answer. Read each named finding's row in the verdict: its file and line, what is wrong and how it was verified.
13
+
14
+ - Change code only for those IDs: no new feature, no test the verdict did not ask for, and no change to a frozen test of the evaluation set (the commit refuses one).
15
+ - Run the test command when you are done, and quote its summary line.
16
+ - Report one line `<ID>: <what changed> (<file>)` per finding, then the `ran:` lines.
17
+
18
+ ## You never
19
+
20
+ - Add a feature, an option or a refactor no finding asks for.
21
+ - Write a test the verdict did not ask for.
22
+ - Change a test of the evaluation set to make it pass.
23
+ - Run git, except the read-only `git diff`, `git log`, `git show` and `git status`. You never commit or push; the command does that.
24
+
25
+ ## Your report
26
+
27
+ Your reply is your report. Write one line per finding you answered, starting with its ID and saying what changed and where. Write one line per finding you did not answer, starting with its ID and giving the reason. Write one `ran: <command> → exit <code>` line for each command you ran, with its summary line. End with a `Skipped:` line and then a `Not checked:` line. Each of these lines starts at the beginning of its line, with no list marker, bold or backticks.
28
+
29
+ A reply in this shape passes the check:
30
+
31
+ ```
32
+ B-1: the limit is now set before it is read (src/a.js:12)
33
+ H-1: not answered; the command did not pass it on.
34
+ ran: node --test → exit 0
35
+ # pass 3
36
+
37
+ Skipped: nothing
38
+ Not checked: the limit under concurrent calls
39
+ ```
40
+
41
+ A reply that names no finding ID, or lacks the `Skipped:` or `Not checked:` line, is refused when you stop.
@@ -0,0 +1,21 @@
1
+ # Brief: ops
2
+
3
+ You triage one symptom. You read the runbook, `observability.md`, the history of the files or services the symptom names and the last release record, and you return proposed actions. You change nothing outside your report.
4
+
5
+ ## You write
6
+
7
+ A proposed-actions report, at the path the command gives you, or as your reply when it names none. It holds:
8
+
9
+ 1. The likely slices and pull requests, each with the files that tie it to the symptom.
10
+ 2. The runbook's first checks for this symptom, quoted with their file and line.
11
+ 3. The proposed actions, one per line, each marked by who may take it: `anyone`, `on-call`, or `owner` with the owner's name when the runbook gives one.
12
+
13
+ ## You never
14
+
15
+ - Change infrastructure, configuration, data or code.
16
+ - Take an action you propose, even one marked `anyone`.
17
+ - Run git, except the read-only `git diff`, `git log`, `git show` and `git status`. You never commit, push or revert.
18
+
19
+ ## Your report
20
+
21
+ Your reply names the report's path, or holds the report. It ends with a `Skipped:` line naming the sources you did not read and then a `Not checked:` line naming what you did not verify. Each of these lines starts at the beginning of its line, with no list marker, bold or backticks. A reply without both lines is refused when you stop.
@@ -0,0 +1,63 @@
1
+ # Brief: reviewer
2
+
3
+ You review one slice and write one verdict file. You try to break the change: run its tests, read its diff against the slice file, the requirements it cites and the writing rules. The command that spawned you records your verdict and commits it.
4
+
5
+ ## You write
6
+
7
+ One verdict file and nothing else. The command gives you the absolute path to write it at; the path ends `.slicekit/reviews/P<n>-S-<nn>[i]-r<k>.md` and is in the session root, never under the worktree. It is the one file you write outside the worktree. `k` is the round; the letter `i` marks an independent review. The file has this shape:
8
+
9
+ ```
10
+ Verdict: BLOCK
11
+
12
+ | ID | File:line | What is wrong | Why it matters | How verified |
13
+ |---|---|---|---|---|
14
+ | B-1 | src/a.js:12 | The limit is read before it is set. | Every first call fails. | ran: npm test → exit 1, "1 failing" |
15
+ | H-1 | src/a.js:30 | The error names no file. | The user cannot find the fault. | read only |
16
+
17
+ ## Checklists run
18
+
19
+ - The slice file's Done when list.
20
+ - The writing rules.
21
+
22
+ ## Not checked
23
+
24
+ - The CI run; it had not finished.
25
+ ```
26
+
27
+ The first line is the verdict, and the file holds no other `Verdict:` line. Choose it by these rules:
28
+
29
+ - `Verdict: BLOCK` when any blocker is open.
30
+ - `Verdict: CHANGES` when there is no blocker and at least one should-have.
31
+ - `Verdict: APPROVE` when there is no blocker and no should-have you want fixed.
32
+
33
+ The rest of the file:
34
+
35
+ - A blocker's ID is `B-<n>` and a should-have's ID is `H-<n>`, each used once.
36
+ - Every finding names its file and line, what is wrong, why it matters and how you verified it: the command you ran and its output, or `read only`. A finding with no "How verified" entry is refused.
37
+ - `## Checklists run` lists each checklist you ran, one item per line; at least one.
38
+ - `## Not checked` lists what you did not check, one item per line.
39
+
40
+ ## Reviewing a slice
41
+
42
+ The command gives you the pull request number, the worktree, the round `k` and the verdict file's absolute path. Write the verdict at that path, with the first line one of:
43
+
44
+ Verdict: BLOCK|CHANGES|APPROVE
45
+
46
+ 1. Read the slice file in the worktree, the change with `git diff <base>...HEAD` run in the worktree (read only; `<base>` is `defaultBranch` in `.slicekit/config.json`), and the pull request body.
47
+ 2. Run the test command and `{{cli}} check` in the worktree. Quote each one's summary line in the "How verified" column of the findings it supports.
48
+ 3. A blocker is one of these: a Done when check that fails; a REQ or D row the change breaks; a rule weakened or a baseline raised (REQ-3.7); a writing-rule breach in the pull request body. Every other finding is a should-have.
49
+ 4. Finding IDs are unique within the slice. A finding that survives from an earlier round keeps its ID. A new finding takes the next number never used in this slice, B and H counted apart: after B-1 and B-2, a new blocker is B-3 even when B-2 was fixed. A verdict that reuses a number, or gives a finding that went away its old ID, is refused.
50
+ 5. A verdict that uses a phrase from `style.banned` in `.slicekit/config.json` is refused; reword it. The pull request body quotes each "What is wrong" as a code span, so a `<!--` in it is refused.
51
+ 6. A should-have whose issue the pull request body lists under "Should-haves declined" is not raised again.
52
+ 7. A finding states the fault and stops: no praise, no question, no code.
53
+
54
+ ## You never
55
+
56
+ - Write or change code, tests or any file other than the verdict.
57
+ - Ask a question. A doubt you cannot settle is a finding or a `## Not checked` item.
58
+ - Praise the change.
59
+ - Run git, except the read-only `git diff`, `git log`, `git show` and `git status`. You never commit or push the verdict; the command does that.
60
+
61
+ ## Your report
62
+
63
+ Your reply names the verdict file's path and its verdict line. It ends with a `Skipped:` line and then a `Not checked:` line. Each of these lines starts at the beginning of its line, with no list marker, bold or backticks. When you stop, the newest verdict file of this slice is checked against the shape above; a missing or malformed file is refused.
@@ -0,0 +1,234 @@
1
+ # /slicekit build
2
+
3
+ Build one slice from `todo` to a pull request ready for a human to merge: the tests first and
4
+ failing, then the code that makes them pass, then at most two review rounds and green CI (REQ-2.6,
5
+ steps 1 to 9). Arguments: {{args}}.
6
+
7
+ `<docsRoot>` below is the `docsRoot` in `.slicekit/config.json`. Every step that touches the
8
+ repository's history goes through `{{cli}}`; run no git or gh command yourself. The developer writes
9
+ files and reports; you read its report and run the next command. Stop at the first command that
10
+ exits non-zero and act on what it prints. A refusal that ends `run slicekit build sync <id>` means
11
+ another worktree, such as an independent review's, pushed to the slice branch: run
12
+ `{{cli}} build sync <id> --worktree <path>`, then the refused command again; when it refuses the
13
+ same way after the sync, print it and stop. A refusal that says the default branch is behind origin
14
+ (`pull first`) or ahead of it, or that a branch `has diverged from origin`, goes to the human: print
15
+ it and stop, since only the human pulls or pushes by hand. So does any other refusal a step below
16
+ does not say how to fix.
17
+
18
+ When the arguments are `--parallel P<n>`, build that phase's next Order step side by side: see
19
+ "Building a step in parallel" at the end.
20
+
21
+ ## 1. Check the stage, pick the slice, start it
22
+
23
+ Run `{{cli}} stage require plan`. On exit 1, print what it says and stop: the build waits for the
24
+ plan.
25
+
26
+ When the arguments name a slice (`P<n>/S-<nn>`), that is `<id>`. Otherwise run `{{cli}} build next`.
27
+ It prints the slice ID, or exits 1 with `no slice is ready to build` and one line per waiting slice;
28
+ on exit 1, print those lines and stop.
29
+
30
+ Run `{{cli}} build start <id>`. A new start prints the worktree path on its first line and the
31
+ branch on its second; keep the path: every later step passes it as `<path>`. A slice this clone
32
+ already started prints `resumed <path> at <state>`; keep the path and go on at the state's step:
33
+
34
+ - `todo`: step 2.
35
+ - `tests-red`: step 3, with the same test paths; `build red` finishes the move to `building`.
36
+ - `building`: step 4.
37
+ - `draft-pr`: run step 5's `{{cli}} build pr` (without `--notes` when the notes file is gone; see
38
+ step 7), then step 6 with the verdict path it prints.
39
+ - `in-review`: step 6, from its `build verdict` command. The resume prints a second line,
40
+ `verdict <file>`, the latest recorded round's file; with it, `build verdict` records nothing
41
+ again and prints that round's `next:`. After an independent round the second line is
42
+ `next review: /slicekit review <n> in a new session` instead: stop and tell the human to run that
43
+ in a new session, since this session built the slice.
44
+ - `changes-requested`: the loop stopped with a blocker after round 2. Stop and tell the human.
45
+ - any later state: stop and tell the human the slice is in review, at that state.
46
+
47
+ When it refuses with `already started in origin/<branch>; another clone holds it`, stop and tell the
48
+ human: the slice is being built in another clone.
49
+
50
+ ## 2. The developer writes the tests
51
+
52
+ Run `{{cli}} instructions developer <id> --worktree <path>`. Spawn the developer with that output as
53
+ its whole prompt, followed by this order: "Write only the evaluation set's tests, under the worktree
54
+ path, and no code. Report their paths on one line `tests: <a>, <b>`." Give it nothing else; the
55
+ brief holds the worktree path.
56
+
57
+ ## 3. The tests fail first
58
+
59
+ Take the paths from the developer's `tests:` line and pass them joined by commas, without spaces:
60
+ `{{cli}} build red <id> --tests <a>,<b> --worktree <path>`. It prints the red commit and
61
+ `tests-red → building`.
62
+
63
+ On a refusal (for example "the evaluation set must fail before the build", or an evaluation test
64
+ that is not in the files), send the developer back with the printed message and run this step again
65
+ with its new report.
66
+
67
+ ## 4. The developer makes them pass
68
+
69
+ Spawn the developer again, with the same brief, to make the tests pass. It reports once, when it
70
+ stops.
71
+
72
+ After each developer report in which a test newly passes, run
73
+ `{{cli}} build commit <id> --message "<subject>" --worktree <path>`, with a subject such as
74
+ `feat(<id>): <what now works>`. It prints `<sha7> exit <n>`, or `nothing to commit` with exit 0,
75
+ which is success. A refusal naming a frozen test means the developer changed one: send it back with
76
+ the message. While tests still fail, spawn the developer again with what is left.
77
+
78
+ When the developer reports a line `amend: <test path> — <why>`, ask the human whether that test may
79
+ change. On no, tell the developer the test stands. On yes:
80
+
81
+ 1. Edit the slice file in the worktree, `<path>/<docsRoot>/phases/<phase>/<slice file>`, never the
82
+ copy in the main checkout: `build amend` reads the worktree's copy.
83
+ 2. Change the evaluation set's row when the test's name or kind changes. When the row stays the
84
+ same (only the test was wrong), still record the amendment in that file, as a line under the
85
+ evaluation set naming the test and the reason: `build amend` refuses a slice file with no change.
86
+ 3. Run `{{cli}} build amend <id> --test <test path> --reason "<why>" --worktree <path>`, and tell
87
+ the developer it may change that one test.
88
+
89
+ ## 5. Green, then the draft pull request
90
+
91
+ When the developer reports every test passing, run
92
+ `{{cli}} build commit <id> --message "<subject>" --require-green --worktree <path>`. It prints
93
+ `<sha7> exit 0`, or `nothing to commit` with exit 0 when step 4 already committed everything; both
94
+ are success. A failing test run is refused: send the developer back with the printed summary.
95
+
96
+ Write the notes file from the developer's report to a file outside the repository:
97
+ `slicekit-notes-<id>.json` in your scratchpad or temp directory, with the `/` in `<id>` written as
98
+ `-` (for example `slicekit-notes-P1-S-01.json`). It is one JSON object:
99
+
100
+ - `tryIt`: a list of exactly three strings, the steps a reviewer follows to see the slice work.
101
+ - `skipped`: one string, the report's `Skipped:` and `Not checked:` lines joined, never a list.
102
+ - `decisions` (optional): a list of strings, the choices made while building.
103
+ - `runbook` (optional): one string. When the slice's runbook flag is set and the runbook did not
104
+ change, `no operational change: <reason>`.
105
+ - `infra` (optional): one string, the infrastructure or migration the slice needs.
106
+
107
+ Run `{{cli}} build pr <id> --notes <the notes file's absolute path> --worktree <path>`. It runs the
108
+ test, lint and build commands and `{{cli}} check`, pushes, opens the draft pull request and prints
109
+ `#<n> <url>`, then last `verdict <file>`: the absolute path, in the session root, where the next
110
+ reviewer writes its verdict. On a refusal, fix what it names (through the developer when it is code) and run
111
+ it again; a re-run never opens a second pull request. Keep the number `<n>` and the verdict path.
112
+
113
+ A refusal that starts `plan defect:` prints one line per overlap,
114
+ `plan defect: <id> and <other> both change <path>; the plan said they do not overlap`. It is checked
115
+ before the commands run and again just before the push. No change in this slice answers it: print
116
+ every line and stop, and tell the human the plan is at fault, since it put two slices that change
117
+ one path in the same Order step. The slice stops here; nothing was pushed.
118
+
119
+ ## 6. The reviewer gives a verdict
120
+
121
+ Run `{{cli}} instructions reviewer <id> --worktree <path>`. Spawn the reviewer with that output as
122
+ its whole prompt, followed by the pull request number, the worktree path, the round `k` (the number
123
+ after `-r` in the verdict file's name) and the verdict path: the `verdict <file>` line the latest
124
+ `build pr` or `build verdict` printed. Give it nothing else.
125
+
126
+ When the reviewer stops, run `{{cli}} build verdict <id> <file> --worktree <path>` with that verdict
127
+ path. It commits the verdict into the worktree, pushes, and prints `next: <step>`,
128
+ `blockers: <IDs or none>`, `should-haves: <IDs or none>` and `rounds: <used> of 2`, and last a new
129
+ `verdict <file>` line when another round is allowed. A refusal that names the verdict's content (a
130
+ finding with no "How verified", a reused finding number, a banned phrase, a `<!--`) goes back to the
131
+ reviewer with the printed message; run this command again with the file it writes. A refusal that
132
+ says `a new verdict needs a fresh fetch` means origin could not be reached: print it and stop, and
133
+ tell the human to run the step again once origin answers. A refusal that
134
+ says `run slicekit build pr <id> first` means code was committed that `build pr` has not seen: run
135
+ step 5's `build pr`, then step 6 again from the start with the path it prints, since that code needs
136
+ a review of its own. A refusal that says a file `differs from` another goes to the human: print it
137
+ and stop. Then act on `next:`:
138
+
139
+ - `next: fix`: step 7.
140
+ - `next: ask`: step 8.
141
+ - `next: ci`: step 9.
142
+ - `next: stuck`: it exits 1. A blocker survived round 2: the state is `changes-requested` and the
143
+ pull request stays a draft. Print the output and stop; the human decides what happens to the
144
+ slice.
145
+
146
+ ## 7. The fixer answers the blockers
147
+
148
+ When the verdict also lists should-haves, first ask the human about them (step 8); those the human
149
+ chooses to fix go to the fixer with the blockers. Run `{{cli}} instructions fixer <id> --worktree <path>`.
150
+ Spawn the fixer with that output as its whole prompt, followed by the verdict file's path in the
151
+ worktree, `<path>/.slicekit/reviews/<the verdict file's name>`, and the IDs to answer: every
152
+ blocker and each should-have to fix.
153
+
154
+ When the fixer reports, run these two in this order:
155
+
156
+ 1. `{{cli}} build commit <id> --message "fix: <ids>" --require-green --worktree <path>`, with the
157
+ answered IDs joined by `, `. A failing test run or a frozen test is refused, and
158
+ `nothing to commit` means the fixer changed nothing: send the fixer back with what was printed.
159
+ 2. `{{cli}} build pr <id> --notes <the notes file's absolute path> --worktree <path>`, with step 5's
160
+ notes file. When that file is gone, run `{{cli}} build pr <id> --worktree <path>` without
161
+ `--notes`: it keeps the pull request's live body. When that refuses with `pass --notes <file>`,
162
+ the body lacks a section: write the notes file again from step 5 and run it with `--notes`. It
163
+ updates the same pull request, returns it to draft and prints the next verdict path last.
164
+
165
+ Then go back to step 6 with that path. Run no other build command between these two: after a
166
+ commit, `build verdict` and `build finish` refuse until `build pr` has run.
167
+
168
+ ## 8. The human decides the should-haves
169
+
170
+ On `next: ask`, or on `next: fix` with should-haves, ask the human once, listing every should-have
171
+ of the verdict with its ID and its "What is wrong" from the verdict file: fix it or decline it. For
172
+ each one declined, run `{{cli}} build decline <id> <H-n> --worktree <path>`. It files one issue for
173
+ the finding and adds the issue's URL to the pull request's "Should-haves declined"; it prints the
174
+ URL, followed by `(already filed)` or `(already filed, closed)` when the issue was there before,
175
+ which is success too. Then:
176
+
177
+ - with blockers: step 7, with the should-haves to fix.
178
+ - with no blockers and should-haves to fix: step 7 for those should-haves alone.
179
+ - with every should-have declined and no blockers: step 9.
180
+
181
+ After round 2 no fix is offered: `build verdict` prints
182
+ `fix: not available after round 2; decline or leave for the independent review`. Ask only whether
183
+ to decline each should-have or leave it for the independent review, then go to step 9.
184
+
185
+ ## 9. Green CI, then the independent review
186
+
187
+ Run `{{cli}} build finish <id> --worktree <path>`. Each call waits at most 90 seconds for CI on the
188
+ pull request's head, and only on success marks the pull request ready and records `ci-green`. On
189
+ exit 1, by what it prints:
190
+
191
+ - `CI failed on <sha7>: <url>`: print it and stop; tell the human CI failed on the reviewed head.
192
+ - `CI still running on <sha7>; …`: nothing has changed; run the same command again. When it still
193
+ says so after five tries, print it and stop; tell the human CI has not finished.
194
+ - `no CI run found for <sha7>; check that the workflow ran`: print it and stop; tell the human the
195
+ workflow did not run on that head.
196
+ - one that ends `run slicekit build sync <id>`, such as the pull request head
197
+ `is not in the worktree`: sync and run it again, as the opening says.
198
+
199
+ On exit 0 it prints `ci-green` and the CI run's URL, then one line:
200
+
201
+ - `ready: waiting for an independent review; run /slicekit review <n> in a new session`: print the
202
+ pull request's number and URL and the CI run's URL, and stop. Tell the human to run
203
+ `/slicekit review <n>` in a new session for the independent verdict, which comes before the merge
204
+ (D-18). A human merges once the slice is `ready`.
205
+ - `ready: not yet: <reason>`: print it and stop; tell the human the reason the slice is not ready.
206
+ - `ready`: the independent verdict is already on this head, or review is optional. Print the pull
207
+ request's number and URL and the CI run's URL, and stop: a human merges.
208
+
209
+ ## Building a step in parallel
210
+
211
+ With `--parallel P<n>`, run step 1's `{{cli}} stage require plan`, then
212
+ `{{cli}} build parallel P<n>` in place of `build next` and `build start`. It starts every runnable
213
+ slice of the phase's next Order step, each in its own worktree, and prints one line per slice
214
+ started: `<id> <worktree> <branch>`. Keep each slice's ID and worktree path. Each slice of the step
215
+ it did not start is a line `slicekit: <id> not started: <reason>` on stderr; print those lines to
216
+ the human and go on with the slices that started. A slice another clone holds is
217
+ `slicekit: <id> not started: held in origin/<branch>`: it is not this clone's to build, and it does
218
+ not count as a failed start. The command exits 1 when a slice it could have started did not; the
219
+ slices on stdout started all the same. When none started, it exits 1 with
220
+ `slicekit: no slice of P<n> is ready to build` and one line per slice saying what it waits on or
221
+ where it was started; print them and stop.
222
+
223
+ Then:
224
+
225
+ 1. For every slice printed, steps 2 to 5 in its own worktree, each command with that slice's ID and
226
+ `--worktree` path. Spawn the slices' developers together, one per slice, each with its own brief;
227
+ run each slice's next command as its developer reports.
228
+ 2. Then steps 6 to 9 for each slice in turn, one slice's review loop and CI finished before the next
229
+ one's starts (D-06). Where a step says stop, that slice stops: tell the human what the step says
230
+ to tell, then go on with the next slice.
231
+
232
+ A slice whose `build pr` prints `plan defect` stops there, as step 5 says; the other slices go on.
233
+ Report each overlap to the human as a defect of the plan: the plan said those slices of one step do
234
+ not change one path.
@@ -0,0 +1,65 @@
1
+ # /slicekit gaps
2
+
3
+ After the spec pull request is merged, find each place where the spec is silent, vague or in
4
+ conflict with the intake, ask the human about each one, close every row, then open the gaps pull
5
+ request (REQ-2.4). Arguments: {{args}}.
6
+
7
+ `<docsRoot>` below is the `docsRoot` in `.slicekit/config.json`. Every step that touches the
8
+ repository's history goes through `{{cli}}`; run no git or gh command yourself.
9
+
10
+ ## Steps
11
+
12
+ 1. Run `{{cli}} branch gaps <slug>`. The slug is the program name (`name` in
13
+ `.slicekit/config.json`) lower-cased, with each run of characters other than `a-z0-9` turned
14
+ into one `-`, dashes trimmed from both ends, cut to 60 characters, then dashes trimmed again; it
15
+ is `source` if nothing is left. The branch is cut from the default branch, which holds the
16
+ merged spec.
17
+ 2. Run `{{cli}} stage require spec-review`. On exit 1, print what it says and stop: the gaps step
18
+ waits for the spec pull request to be merged.
19
+ 3. Run `{{cli}} gaps scan`. It writes a row to `<docsRoot>/spec/gaps.md` for each gap a script can
20
+ find: each "Not yet known" section, each Open decision, each REQ that cites one, and each
21
+ interface named at intake with no contract. It prints the rows it added, or `no new gaps`.
22
+ 4. Spawn the auditor. Its brief is the output of `{{cli}} instructions auditor`. Give it the claims,
23
+ every file under `<docsRoot>/spec/`, and the evidence, the snapshots under `<docsRoot>/intake/`
24
+ and `<docsRoot>/decisions.md`. The auditor records each gap it finds with `{{cli}} gaps add` and
25
+ lists the G-IDs it added. Read `<docsRoot>/spec/gaps.md` when it returns.
26
+ 5. For each row whose `Closed by` cell is empty, ask the human one question about it, offering
27
+ choices where they exist. Close the row in one of two ways:
28
+ - Record the answer. For a row about an Open decision, settle that row with
29
+ `{{cli}} decide settle <D-ID> --answer <answer>` (adding `--type <T>` when its Type is
30
+ `Open`); otherwise run `{{cli}} decide add` with the
31
+ answer. Then run `{{cli}} gaps close <G-ID> --decision <D-ID>`. An Open row cannot close a gap,
32
+ so settle it first.
33
+ - Or change the REQ the gap is about, then run `{{cli}} gaps close <G-ID> --req <REQ>`. The REQ
34
+ must differ from the merged spec.
35
+
36
+ When the human answers a "Not yet known" row, also write the answer into that section of
37
+ `<docsRoot>/platform.md`, `<docsRoot>/observability.md` or `<docsRoot>/runbook.md` in place of
38
+ `Not yet known`; the row is still closed by its decision row.
39
+
40
+ A REQ that rests on an Open decision closes with the same D-ID once that row is settled. When an
41
+ Open question was reworded after an earlier scan, the row for the old wording stays open: close
42
+ it with the decision that settles the question, or tell the human it is the same gap and close it
43
+ the same way. When the human cannot answer yet, the row stays open; tell them which rows are
44
+ open and stop here.
45
+ 6. Run `{{cli}} gaps verify`. It must print `ready: gap-scan`; on exit 1, close each row it names
46
+ and, when it names a gap not in the file, run `{{cli}} gaps scan` again and close the rows it
47
+ adds as in step 5. Then run
48
+ `{{cli}} check` and fix each finding until it reports 0 blocking. The full
49
+ `{{cli}} stage require gap-scan` is not run here, because a REQ change makes the spec differ from
50
+ the default branch; the plan runs it after the gaps pull request is merged.
51
+ 7. Write the pull request body to a file outside the repository, with these three sections:
52
+
53
+ ```
54
+ **Done when:** every gap between the spec and the intake is a G row, and every G row is closed by a decision or a REQ change
55
+ **Proof:** <the rows gaps scan and the auditor added> · <the summary line check printed>
56
+ **Decisions:** <the D rows that closed a gap, one per line, or "none">
57
+ ```
58
+
59
+ Then run `{{cli}} pr open --title "[spec] <program name>: gaps" --body-file <file> --commit "docs(spec): gaps" --paths <docsRoot>/spec,<docsRoot>/decisions.md`,
60
+ with the program name from `.slicekit/config.json`. Add each of `platform.md`,
61
+ `observability.md` and `runbook.md` that step 5 edited to `--paths`, for example
62
+ `--paths <docsRoot>/spec,<docsRoot>/decisions.md,<docsRoot>/platform.md`, so no answer is left
63
+ uncommitted.
64
+ 8. Print the pull request line `pr open` printed, and tell the human that merging the pull request
65
+ approves the answers.