rvlib-shipkit 2.13.0 → 2.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (270) hide show
  1. package/CHANGELOG.md +38 -13
  2. package/package.json +1 -1
  3. package/src/assets/run-assets.ts +2 -2
  4. package/src/assets/server/studio-server.ts +27 -23
  5. package/src/check.ts +3 -3
  6. package/src/checks/SK001-package-json-shape.check.ts +4 -4
  7. package/src/checks/SK002-contracts-fulfillness.check.ts +2 -2
  8. package/src/checks/SK003-claude-md-shape.check.ts +19 -12
  9. package/src/checks/SK004-gitignore-policy.check.ts +18 -4
  10. package/src/checks/SK005-rvlib-versions.check.ts +1 -1
  11. package/src/checks/SK006-npm-publish-safety.check.ts +3 -3
  12. package/src/checks/SK007-github-visibility.check.ts +2 -2
  13. package/src/checks/SK008-reviewer-agent.check.ts +1 -1
  14. package/src/checks/SK010-undeclared-unit.check.ts +2 -2
  15. package/src/checks/SK011-sibling-unit-ranges.check.ts +2 -2
  16. package/src/checks/SK012-config-barrel-import.check.ts +1 -1
  17. package/src/checks/SK013-one-way-in-policy.check.ts +2 -2
  18. package/src/checks/SK015-nested-repo.check.ts +2 -2
  19. package/src/checks/SK016-legacy-check-shapes.check.ts +2 -2
  20. package/src/checks/SK017-vscode-hub-task.check.ts +2 -2
  21. package/src/checks/SK018-test-files-run.check.ts +2 -2
  22. package/src/checks/SK019-tests-run-in-units.check.ts +2 -2
  23. package/src/checks/SK020-self-spawning-check.check.ts +2 -2
  24. package/src/checks/SK022-machine-runs-the-pin.check.ts +2 -2
  25. package/src/checks/SK024-identity-colors.check.ts +1 -1
  26. package/src/checks/SK025-release-drift.check.ts +2 -2
  27. package/src/checks/SK026-asks-autoclose.check.ts +2 -2
  28. package/src/checks/SK027-agent-wiki-links.check.ts +8 -2
  29. package/src/checks/SK028-readme.check.ts +2 -2
  30. package/src/checks/SK029-explicit-check-files.check.ts +3 -3
  31. package/src/checks/SK030-cache-audit.check.ts +7 -5
  32. package/src/checks/SK031-trace-audit.check.ts +7 -7
  33. package/src/checks/SK032-ignored-inputs.check.ts +3 -3
  34. package/src/checks/SK033-global-contribution.check.ts +11 -4
  35. package/src/checks/SK034-commit-gates-armed.check.ts +2 -2
  36. package/src/checks/SK035-public-clean.check.ts +4 -4
  37. package/src/checks/SK036-draft-media-size.check.ts +2 -2
  38. package/src/checks/SK037-keyword-additions.check.ts +43 -0
  39. package/src/cli/cmd_Backup.ts +2 -2
  40. package/src/cli/cmd_Commands.ts +4 -4
  41. package/src/cli/cmd_ConfigKeys.ts +2 -2
  42. package/src/cli/cmd_Drill.ts +30 -1
  43. package/src/cli/cmd_Home.ts +1 -1
  44. package/src/cli/cmd_Init.ts +1 -1
  45. package/src/cli/cmd_Media.ts +5 -5
  46. package/src/cli/cmd_Mv.ts +14 -7
  47. package/src/cli/cmd_Review.ts +2 -2
  48. package/src/cli/cmd_Smoke.ts +1 -1
  49. package/src/cli/cmd_Social.ts +3 -3
  50. package/src/cli/cmd_Sound.ts +1 -1
  51. package/src/cli/cmd_TraceAudit.ts +6 -6
  52. package/src/cli/cmd_Trailer.ts +2 -2
  53. package/src/cli/cmd_Veille.ts +2 -2
  54. package/src/cli/cmd_When.ts +2 -2
  55. package/src/cli/family-pages.ts +19 -19
  56. package/src/cli/registry.ts +2 -1
  57. package/src/collections/collection-types.ts +2 -2
  58. package/src/collections/review.ts +1 -1
  59. package/src/comfy/comfy-panel.ts +2 -2
  60. package/src/contracts/manifests/discord.contract.ts +1 -1
  61. package/src/contracts/manifests/identity.contract.ts +1 -1
  62. package/src/contracts/manifests/itch.contract.ts +1 -1
  63. package/src/contracts/manifests/steam.contract.ts +1 -1
  64. package/src/core/agent-dir-at.ts +12 -0
  65. package/src/core/agent-dir.ts +28 -0
  66. package/src/core/budget.ts +1 -1
  67. package/src/core/canonical-scripts.ts +2 -2
  68. package/src/core/discover-checks.ts +1 -1
  69. package/src/core/global-contribution.ts +4 -1
  70. package/src/core/ignored-block.ts +1 -1
  71. package/src/core/ignored-inputs.ts +3 -2
  72. package/src/core/layout.ts +3 -3
  73. package/src/core/loop-watch.ts +1 -1
  74. package/src/core/motherhome.ts +2 -2
  75. package/src/core/one-way-in-policy.ts +8 -8
  76. package/src/core/run-ci.ts +3 -3
  77. package/src/core/runs-matrix.ts +1 -1
  78. package/src/core/slots.ts +14 -5
  79. package/src/core/trace-audit.ts +50 -9
  80. package/src/core/tree-rev.ts +1 -1
  81. package/src/drill/clean.ts +54 -0
  82. package/src/drill/run.ts +1 -1
  83. package/src/home/daemon-jobs.ts +1 -1
  84. package/src/home/global-context.ts +11 -8
  85. package/src/home/gui-app/ShipkitGui.swift +91 -2
  86. package/src/home/inbox-shape.ts +1 -1
  87. package/src/home/inbox.ts +1 -1
  88. package/src/home/pm-config.ts +4 -1
  89. package/src/home/pm-inputs.ts +2 -0
  90. package/src/home/resources.ts +7 -2
  91. package/src/home/run-pm.ts +1 -1
  92. package/src/home/serve-web.ts +2 -2
  93. package/src/hooks/commit-message.ts +1 -1
  94. package/src/hooks/hook-gates.ts +1 -1
  95. package/src/hooks/leak-guard.ts +61 -8
  96. package/src/hooks/run-hooks.ts +18 -18
  97. package/src/identities/identities.ts +1 -1
  98. package/src/identities/machine-route.ts +1 -1
  99. package/src/identities/machine.ts +1 -1
  100. package/src/init-repo.ts +2 -2
  101. package/src/ledger/gate-checks.ts +1 -1
  102. package/src/ledger/record-kept.ts +1 -1
  103. package/src/media-kinds.ts +1 -1
  104. package/src/media-store/backup/daemon.ts +1 -1
  105. package/src/media-store/backup/keys.ts +1 -1
  106. package/src/media-store/backup/manifest.ts +1 -1
  107. package/src/media-store/backup/restore.ts +1 -1
  108. package/src/media-store/backup/run.ts +1 -1
  109. package/src/media-store/backup/secret.ts +1 -1
  110. package/src/media-store/backup/snapshot.ts +1 -1
  111. package/src/media-store/backup/sources.ts +1 -1
  112. package/src/media-store/content.ts +1 -1
  113. package/src/media-store/daemon.ts +1 -1
  114. package/src/media-store/db.ts +1 -1
  115. package/src/media-store/fact.ts +1 -1
  116. package/src/media-store/hand.ts +1 -1
  117. package/src/media-store/kind.ts +1 -1
  118. package/src/media-store/purge.ts +1 -1
  119. package/src/media-store/put.ts +1 -1
  120. package/src/media-store/remote.ts +1 -1
  121. package/src/media-store/space.ts +1 -1
  122. package/src/mv/mv-md.ts +63 -22
  123. package/src/pages/forward.ts +1 -1
  124. package/src/pages/frame-client.ts +1 -1
  125. package/src/pages/routes.ts +1 -1
  126. package/src/pages/unit.ts +1 -1
  127. package/src/plan/planner.ts +1 -1
  128. package/src/plan/repo-source.ts +1 -1
  129. package/src/release/public-clean.ts +25 -7
  130. package/src/release/run-bump.ts +1 -1
  131. package/src/release/run-release.ts +3 -3
  132. package/src/repo-config.ts +23 -16
  133. package/src/review/anim.ts +1 -1
  134. package/src/review/auto.ts +1 -1
  135. package/src/review/cells.ts +15 -1
  136. package/src/review/format.ts +2 -2
  137. package/src/review/marks.ts +1 -1
  138. package/src/review/media-kind.ts +1 -1
  139. package/src/review/media-read.ts +1 -1
  140. package/src/review/model.ts +14 -4
  141. package/src/review/notes.ts +52 -4
  142. package/src/review/previews.ts +1 -1
  143. package/src/review/project.ts +1 -1
  144. package/src/review/role.ts +1 -1
  145. package/src/review/routes.ts +14 -2
  146. package/src/review/store.ts +2 -2
  147. package/src/review/threads.ts +1 -1
  148. package/src/review/trailer-desk.ts +3 -3
  149. package/src/review/trailer-media.ts +1 -1
  150. package/src/review/trailer-model.ts +1 -1
  151. package/src/review/trailer-routes.ts +1 -1
  152. package/src/review/trailer-shots.ts +1 -1
  153. package/src/review/unit.ts +1 -1
  154. package/src/scaffold/files/tsconfig.json +1 -1
  155. package/src/scaffold/project-scaffold.ts +1 -1
  156. package/src/serve/embed.ts +1 -1
  157. package/src/serve/hub-app/check-words.ts +1 -1
  158. package/src/serve/hub-app/frames-st.ts +1 -1
  159. package/src/serve/hub-app/hash-route.ts +1 -1
  160. package/src/serve/hub-app/home-st.ts +1 -1
  161. package/src/serve/hub-app/home-strip.css +1 -1
  162. package/src/serve/hub-app/hub-app.tsx +2 -2
  163. package/src/serve/hub-app/identities-st.ts +1 -1
  164. package/src/serve/hub-app/identities-view.tsx +5 -4
  165. package/src/serve/hub-app/identity-address.ts +1 -1
  166. package/src/serve/hub-app/inbox-st.ts +1 -1
  167. package/src/serve/hub-app/inbox-view.tsx +1 -1
  168. package/src/serve/hub-app/kept-cols.tsx +30 -0
  169. package/src/serve/hub-app/keys.ts +1 -1
  170. package/src/serve/hub-app/media-svc.ts +1 -1
  171. package/src/serve/hub-app/pages-frames.tsx +1 -1
  172. package/src/serve/hub-app/pages-svc.ts +1 -1
  173. package/src/serve/hub-app/projects-svc.ts +1 -1
  174. package/src/serve/hub-app/repo-st.ts +1 -1
  175. package/src/serve/hub-app/review/review-board.tsx +1 -1
  176. package/src/serve/hub-app/review/review-cells.tsx +3 -2
  177. package/src/serve/hub-app/review/review-page.tsx +5 -4
  178. package/src/serve/hub-app/review/review-st.ts +15 -7
  179. package/src/serve/hub-app/review/review-thread.tsx +52 -5
  180. package/src/serve/hub-app/review/review-views.tsx +50 -33
  181. package/src/serve/hub-app/review/thread-st.ts +79 -27
  182. package/src/serve/hub-app/review/trailer-page.tsx +5 -4
  183. package/src/serve/hub-app/review/trailer-st.ts +1 -1
  184. package/src/serve/hub-app/review.css +9 -1
  185. package/src/serve/hub-app/site/site-part.tsx +1 -1
  186. package/src/serve/hub-app/site/site-st.ts +1 -1
  187. package/src/serve/hub-app/social/calendar.tsx +1 -1
  188. package/src/serve/hub-app/social/comms-page.tsx +29 -5
  189. package/src/serve/hub-app/social/kit.tsx +1 -1
  190. package/src/serve/hub-app/social/post-card.tsx +1 -1
  191. package/src/serve/hub-app/social/social-model.ts +1 -1
  192. package/src/serve/hub-app/social/social-page.tsx +12 -5
  193. package/src/serve/hub-app/social/social-st.ts +31 -3
  194. package/src/serve/hub-app/social.css +1 -1
  195. package/src/serve/hub-app/stores/stores-page.tsx +5 -4
  196. package/src/serve/hub-app/stores/stores-st.ts +1 -1
  197. package/src/serve/hub-app/stores.css +1 -1
  198. package/src/serve/hub-app/tree-row.tsx +1 -1
  199. package/src/serve/hub-app/veille/veille-page.tsx +5 -4
  200. package/src/serve/hub-app/veille/veille-st.ts +1 -1
  201. package/src/serve/hub-app/veille.css +1 -1
  202. package/src/serve/hub-runtime.ts +6 -2
  203. package/src/serve/project-gutter-route.ts +1 -1
  204. package/src/shot/box.ts +5 -7
  205. package/src/shot/browser-slot.ts +18 -6
  206. package/src/shot/client.ts +1 -2
  207. package/src/shot/clip-encoder.ts +16 -13
  208. package/src/shot/film-box.ts +132 -28
  209. package/src/shot/shooter.ts +21 -2
  210. package/src/shot/stepped-clip.ts +1 -1
  211. package/src/site/desk.ts +2 -2
  212. package/src/site/routes.ts +1 -1
  213. package/src/site/unit.ts +1 -1
  214. package/src/social/card-drafts.ts +24 -0
  215. package/src/social/compose.ts +2 -2
  216. package/src/social/desk-index.ts +1 -1
  217. package/src/social/desk-wire.ts +1 -1
  218. package/src/social/drafts.ts +3 -3
  219. package/src/social/load.ts +14 -1
  220. package/src/social/media-facts.ts +1 -1
  221. package/src/social/media-kind.ts +1 -1
  222. package/src/social/media-limit.ts +1 -1
  223. package/src/social/media-of.ts +1 -1
  224. package/src/social/migrate.ts +1 -1
  225. package/src/social/post-url.ts +1 -1
  226. package/src/social/presence.ts +2 -2
  227. package/src/social/public-read.ts +1 -1
  228. package/src/social/publish/bluesky.ts +1 -1
  229. package/src/social/publish/discord.ts +1 -1
  230. package/src/social/push.ts +10 -4
  231. package/src/social/richtext.ts +1 -1
  232. package/src/social/routes.ts +10 -4
  233. package/src/social/stats.ts +1 -1
  234. package/src/social/text.ts +1 -1
  235. package/src/social/tracker-route.ts +1 -1
  236. package/src/social/tracker.ts +1 -1
  237. package/src/social/unit.ts +1 -1
  238. package/src/social/writes.ts +1 -1
  239. package/src/stores/collection.ts +1 -1
  240. package/src/stores/desk.ts +1 -1
  241. package/src/stores/model.ts +1 -1
  242. package/src/stores/routes.ts +1 -1
  243. package/src/stores/unit.ts +1 -1
  244. package/src/suite/judge-suites.ts +1 -1
  245. package/src/trace/tracer.ts +12 -5
  246. package/src/trailer/adapter.ts +1 -1
  247. package/src/trailer/build.ts +6 -4
  248. package/src/trailer/holes.ts +1 -1
  249. package/src/trailer/passage.ts +1 -1
  250. package/src/trailer/prune.ts +1 -1
  251. package/src/trailer/states.ts +1 -1
  252. package/src/trailer/versions.ts +1 -1
  253. package/src/trailer/words.ts +1 -1
  254. package/src/tui/run-tui.ts +1 -1
  255. package/src/tui/tui-store.ts +1 -1
  256. package/src/veille/asks.ts +1 -1
  257. package/src/veille/auto.ts +1 -1
  258. package/src/veille/batch.ts +1 -1
  259. package/src/veille/chrome.ts +1 -1
  260. package/src/veille/collection.ts +1 -1
  261. package/src/veille/desk.ts +1 -1
  262. package/src/veille/identity.ts +1 -1
  263. package/src/veille/import.ts +1 -1
  264. package/src/veille/log.ts +1 -1
  265. package/src/veille/platforms.ts +1 -1
  266. package/src/veille/reads.ts +1 -1
  267. package/src/veille/replied.ts +1 -1
  268. package/src/veille/routes.ts +2 -2
  269. package/src/veille/watch.ts +1 -1
  270. package/src/veille/worth.ts +2 -2
package/CHANGELOG.md CHANGED
@@ -1,14 +1,39 @@
1
+ ## 2.15.0
2
+
3
+ - **`sk drill clean <run folder>`** moves a recorded drill run folder to the trash, never deletes it, and refuses a folder that is not a drill copy: a git repo of its own, one commit named « drill base », no remote. `--dry-run` says what would move.
4
+ - **`sk media link --help` names a neutral file** in its example.
5
+ - **The agent folder never leaves the repo.** A CLAUDE.md last include through `..`, `.`, `node_modules` or `.git` names no agent folder, so SK003 fails on it instead of SK033 repairing a file outside the repo or inside a dependency, and an `@` line inside a code fence is an example, never the agent line.
6
+
7
+ ## 2.14.0
8
+
9
+ - **`sk mv` turns a page into a topic folder.** `sk mv wiki/a/x.md wiki/b/x/index.md` makes the page's asset dir the folder and the page its `index.md`, in place too (`wiki/a/x.md` → `wiki/a/x/index.md`); an existing folder is refused, never merged into. An empty leftover dir no longer stops a move, and a renamed page renames its `.check.shipkit.ts`, `.check.ts` and `.shipkit.ts` files with it.
10
+ - **`sk mv --map <file>` moves many pages in one run**, one `<old> <new>` pair per line, in order, with the repo's `mv:after` script run once at the end.
11
+ - **The agent folder is the one CLAUDE.md names.** Its last include, `@./<dir>/index.md`, declares it (`agent/` when none does), and SK003, SK027, SK033, the hub's agent graph and the house context read it there. A repo that hosts a base wiki may name a folder of it: SK027 and the agent graph leave a nested folder to that wiki's own lint and graph, and a top level folder that is not `agent/` fails SK027.
12
+ - **The traced audit finds a tracked file a declared key misses.** A unit's `test:<unit>` is keyed on its dir and siblings, so a test reading a doc outside it replayed a green after an edit to that doc broke it. `sk trace-audit` now reports a tracked file a task with a declared list reads outside the list, beside the gitignored paths: the finding joins the key on this machine at once and the fix pass writes it into the `ignoredInputs` block, as before. The toolkit's own files (keyed by code) and a tracked dir a task only lists are never findings.
13
+ - **A task that spawns git is audited again.** The traceable copy of Xcode's git missed the `git` in its exec path, which shipkit spawns, so every task running the suite runner came back unaudited. That path maps to the copy too, a copy left behind by another developer dir is rebuilt, and a rebuilt remap is written to disk.
14
+ - **The macOS app saves a download.** A link marked `download` (the ⬇ of a picture or a draft's media) or a file the window cannot show lands in `~/Downloads` under a free name and bounces the dock's Downloads stack, instead of showing the file full window. A failed download says so in a panel. `--self-test-download` proves it in the real binary.
15
+ - **An identity's picture has its 📂**, beside ⬇: the Finder opens on its folder with the file selected, on the desktop only. `POST /api/social/reveal` takes `{ identity, file }` beside a draft's `{ slug, name }`.
16
+ - **A piped `sk ci` is refused like a piped `shipkit ci`.** The guard knew only the long name, so `sk ci | tail` read green over a red gate. `bunx sk ci | tail` is refused too, and the refusal no longer names a page of one repo.
17
+ - **One official banned keyword list, each repo adds to it.** The list is the machine's `~/.shipkit/private/banned-keywords.txt`; the generic secret shapes are built into the leak guard and SK035, never copied. A repo's `.shipkit/private/banned-keywords.txt` holds its additions only: SK037 strips any row the list or the built-in shapes already hold (any case, a `w:` row and a substring row of one word are one row, and the list's shape wins), keeping the repo's own rows and comments; a frozen run warns. `hooks install` seeds the repo file with comments only. A word one repo must say stays `hooks.leakAllow`.
18
+ - **A rectangle's note box names the side it marks** (`before` or `after`, on a pair) **and repeats the view's OK, Fix and No** on a second row under the words.
19
+ - **A leak allowlist entry can say « this word, this file, this many ».** `hooks.leakAllow` takes `count`: the most matches the one file in `paths` may hold, with one fingerprint in `patterns`. One more match blocks again and names the count it outgrew. SK035 prints the filled entry beside each hit, so a reviewed list is pasted, never typed.
20
+ - **A stale SK004 block renders itself again.** When shipkit's policy moves, every run that may write (`sk check` and the daemon's run after a save included) rewrites the managed `.gitignore` block in place instead of failing in every repo until each runs its gate. A frozen run warns and writes nothing.
21
+ - **`sk check` no longer runs the SK030 cache audit.** The audit re-runs other checks fresh, which took a plain `sk check` to its ten minute cap on a loaded machine. The daemon still runs it about daily; `sk cache-audit` runs it by hand.
22
+
23
+ - **A frame note being typed stays over the sticky rows of the review page**, never cut by the next view's verdict row.
24
+ - **A release never publishes a tarball that names a checkout the house skips.** Before `npm publish`, the release reads `start.skip` from the house config and refuses any packed file that names one of those repos, in any case; no waiver lifts it, and the refusal names the file, never the word.
25
+
1
26
  ## 2.13.0
2
27
 
3
28
  - **The identities ride the home's top bar**, one round avatar each after the places, and the bar grows to 40 px; the project list holds only the repos.
4
29
  - **`sk media versioning --key <secret>`** turns versioning on with a one time full access key pair, in place of the house key, which is limited to the bucket's objects.
5
30
  - **`sk start` reads the repos it never touches from the house config, `start.skip`.** The published lib carried a day-job checkout's name as its skip list; the names now live on the machine (`start: { skip: [<repo names>] }` in the house `repo.config.ts`, validated by `defineRepo`), `--skip` still replaces them, and with no house nothing is skipped. `HOUSE_SKIP` is gone.
6
31
  - **The backup knows no dolt.** `backup.dolt` in `repo.config.ts` is gone, with its `dolt dump` read and the refusal printed on every run when dolt was not installed. A config that still names it is a type error: delete the line.
7
- - **`sk drill report | verdict | compare`: the records of a measured drill** (wiki build/speed-up-agents.md). `report` reads one run's Claude Code transcript (a path, or a session or agent id) and writes `run<n>.json` and `run<n>.md`: calls, turns, model and wall time, failed calls, searches, every md page read with the second it was first read, the first write inside the run and the first check after it, tokens counted once per message id, context at end, the patch stats, the final report. `verdict` adds the judged result (done, quality, tests, design), `compare` writes `compare.md` with every run side by side, first and previous to last. It reads and writes files, and never starts an agent.
32
+ - **`sk drill report | verdict | compare`: the records of a measured drill** (wiki meta/speed-up-agents/index.md). `report` reads one run's Claude Code transcript (a path, or a session or agent id) and writes `run<n>.json` and `run<n>.md`: calls, turns, model and wall time, failed calls, searches, every md page read with the second it was first read, the first write inside the run and the first check after it, tokens counted once per message id, context at end, the patch stats, the final report. `verdict` adds the judged result (done, quality, tests, design), `compare` writes `compare.md` with every run side by side, first and previous to last. It reads and writes files, and never starts an agent.
8
33
  - **The scaffold writes no `agent/coding.md`, and writes `agent/handoff.md`.** The house rules already load from the wiki, so a copy only rots; a repo writes its `coding.md` once it has a rule of its own. The index template routes to `agent/handoff.md`, which a new repo now gets, so its first `sk ci` no longer fails SK027 on a dangling link, and it shows the folder shape of `agent/`.
9
34
  - **`sk time` names the file of a Read, Edit, Write, Grep or Glob call.** The transcript reader gives those calls their path or pattern as detail, so a failed edit is told apart from the next one; the index version is bumped, so the next `sk time` reads every transcript once again.
10
35
 
11
- - **The site desk: every identity's website in its identity view** (`/identities#<id>/@site`, wiki build/shipkit/site.md). The address asked online, the repo that builds it, then through a `site({...})` unit its pages, each live from the local preview at the desktop's width or a phone's, what is online (a deploy record, else Cloudflare Pages), what changed since the deploy by page, the dated entries since, and « Deploy », the unit's own command on his press with its log streamed. `GET /api/home/sites/<id>`, `POST .../preview`, `POST .../deploy`, each naming an identity. `site` is a unit kind.
36
+ - **The site desk: every identity's website in its identity view** (`/identities#<id>/@site`, wiki tools/shipkit/site.md). The address asked online, the repo that builds it, then through a `site({...})` unit its pages, each live from the local preview at the desktop's width or a phone's, what is online (a deploy record, else Cloudflare Pages), what changed since the deploy by page, the dated entries since, and « Deploy », the unit's own command on his press with its log streamed. `GET /api/home/sites/<id>`, `POST .../preview`, `POST .../deploy`, each naming an identity. `site` is a unit kind.
12
37
  - **The gate type checks with `bun check`.** The typecheck slot, a plain `tsc --noEmit` or `bun check` script and every `typecheck:<unit>` run `bun check --no-pretty --no-script --all -b -p <tsconfig>`: tsc's error lines, every core, no build info (measured fresh on four repos: 3 to 6 times faster than the cold tsc it replaces, a 4,600 file repo in 1.5 s). `-b` follows references, and a config that compiles nothing exits 1. A bun older than 1.4.4 falls back to the cold tsc runner and prints a `skip:` line on every run. The one way in guard refuses tsc with `bun check` as the command to use, and never refuses `bun check`. SK001 warns on a package.json `check` script, which runs in place of `bun check`. `sk start` writes `typecheck: bun check`.
13
38
  - **`sk shot --video <s> --step <hook>` films a slow canvas page frame by frame in the page's own WebCodecs.** Before frame n the page draws n / fps in `window[hook](t)`, then the canvas frame is encoded H.264 at exactly n / fps and ffmpeg only muxes: a page whose hook takes 100 ms a frame films 30 distinct frames a second (the real time clip of the same page repeated 19 of 30). A WebGPU canvas is read at the queue submit of its draw. The trailer's `page ... step` film uses it; a page with no big canvas keeps the screenshot a frame. `--at <s>` draws a stepped still.
14
39
  - **Every `sk ci` repairs before it gates.** A whole gate repairs all it can, an `--only` run what its named checks own, under the fix lease and beside the other runs. A repair is mechanical, so it runs in a tree other agents share too. `--no-fix` and `--no-fix-rules` are accepted and ignored with a note on stderr until 2026-11-18. A gate the hub starts on one check repairs the same way. Internal report-only runs (a release, the hub's own background runs) still skip it.
@@ -23,15 +48,15 @@
23
48
  - **The daemon's loop holds no page past 200 ms at rest.** The stall watch reports from 200 ms (was 1 s) and names each hub's prepare, load, start and warm and each plan add. The house's global context is a daemon job (`sk daemon job "global context"`), written in a niced child only when the stamp of its sources moved: its unit imports cost the loop 1 to 2.7 s a minute. Each hub's save watch moves its tree's revision (`src/core/tree-rev.ts`), and the repo listing, the repo view, the read side's inventory and each md scan are kept on it. A run record's `runs` and `suites` are read whole once (in pages, the loop given back between two), then by the rows written since. The plan reads its records one repo at a time before its tick, each read kept on the record's stamp, each query off the `(id, at)` index (the biggest repo: 231 ms to 57 ms). The check stats read two fields of the answers instead of their 53 MB. A review store's first read goes in steps of 250 items. The slowest checks list no longer copies each check's list on every row (1 s on a 168k row record). Measured on 19 house repos: a trial daemon polled every second went from 25 stalls over 200 ms in 95 s, worst 7.8 s, to 5, worst 0.4 s.
24
49
 
25
50
  - **Identities: who speaks.** An identity (its name, bio, brand, site, accounts and their places) lives in the house repo's `.shipkit/identities/<id>/`, never in a project; `sk identities` lists them, its accounts online over its accounts, and the repos speaking as each. A repo names its own with `speaksAs: '<id>'` in `repo.config.ts`; a draft may say another.
26
- - **The Communications and Social desks in the hub** (⌥U, ⌥I, wiki build/shipkit/social.md): every draft of a repo with its calendar, families, channels, notes, preview and media, and every account of an identity with its places, setup steps and links, filtered by identity, framed by a tool as `/embed/?page=comms|social`. Drafts are contract v3, `.shipkit/social/drafts/<stamp>-<topic>/draft.md`; `sk social migrate` turns the old channel files into drafts once, and the v2 reader is gone. `sk social`, `plan`, `coverage`, `post`, `state`, `timeline`. A pasted profile or post link whose host is not the account's platform is refused at its field. Draft media go to the media store as the kind `social`; a tracked one is never purged.
27
- - **The Veille in the hub** (⌥Y, `sk veille feed|reply|pass|import`, wiki build/shipkit/veille.md): the posts an identity scrolls past, ranked by the worth of a reply, one log per identity in the shipkit home, never committed. The browser extension posts to the daemon with its profile's header, mapped to an identity; it is loaded unpacked and never published.
51
+ - **The Communications and Social desks in the hub** (⌥U, ⌥I, wiki tools/shipkit/social.md): every draft of a repo with its calendar, families, channels, notes, preview and media, and every account of an identity with its places, setup steps and links, filtered by identity, framed by a tool as `/embed/?page=comms|social`. Drafts are contract v3, `.shipkit/social/drafts/<stamp>-<topic>/draft.md`; `sk social migrate` turns the old channel files into drafts once, and the v2 reader is gone. `sk social`, `plan`, `coverage`, `post`, `state`, `timeline`. A pasted profile or post link whose host is not the account's platform is refused at its field. Draft media go to the media store as the kind `social`; a tracked one is never purged.
52
+ - **The Veille in the hub** (⌥Y, `sk veille feed|reply|pass|import`, wiki tools/shipkit/veille.md): the posts an identity scrolls past, ranked by the worth of a reply, one log per identity in the shipkit home, never committed. The browser extension posts to the daemon with its profile's header, mapped to an identity; it is loaded unpacked and never published.
28
53
  - **A house repo runs the machine's shipkit on every path.** Any `sk` run in a house repo turns its installed `rvlib-shipkit` into a link to the copy the machine runs, so bun test, scripts, tsc, the editor and the hooks load it; off the machine a clone keeps its npm copy and says so once.
29
54
  - **`sk backup`: the machine-only state of the house in the private Space.** Each file once by its content under `backup/<sha>`, a sqlite copied in one read transaction, a manifest in parts written only when a part changed, nothing ever deleted; a file with a secret's name or shape is refused and listed. `sk backup --check`, `runs`, `restore [--at] (--to <empty dir> | --in-place)`, `drill` (restore into a scratch folder, every sha compared). The daemon runs it on change and every 6 h. A repo adds its own files under `backup` in its config.
30
55
  - **Guards on drafts.** SK004 warns when a public repo still tracks its plans or drafts; SK036 refuses a draft media file over 95 MB; a desk's background push that fails shows as an error.
31
56
  - **A private repo tracks its social drafts, like its plans.** SK004 re-includes `!.shipkit/social/` in a private repo's managed block, posted drafts and their media included, and ignores `.shipkit/social/drafts/**/*-trailer.mp4` (a render its command makes again). A repo declared `visibility: 'public'` gets no re-include, through the same filter as its plans. The next `sk ci` fix pass rewrites the block; nothing is deleted or moved, a draft that was local shows up as untracked. A desk write in a repo that ignores its drafts now saves the file alone instead of answering 400 after writing it.
32
57
  - **The social desk answers in milliseconds.** `GET /api/social/desk.json` is kept while nothing it is built from moves (a stamp of stats over the social folder, the identities, the config, the unit and the day; HEAD moves only the calendar), carries an ETag over its text, answers 304 to a page that holds it, and is gzipped. On the wire a message leaves out what its draft and its account say and an account's messages are its drafts' again (`src/social/desk-wire.ts`); the page rebuilds the exact desk. The calendar's posted commits are walked once and kept per HEAD in `.shipkit/cache/social-moments-<day>.json`, a new HEAD walking only what it adds. Measured on a game's 47 drafts: 0.2 to 3.3 s and 2.95 MB before; cold 106 ms, warm 4.5 ms, a 304 in 4 ms, 68 KB gzipped after. At 517 drafts: warm 10 ms, cold 430 ms, 579 KB gzipped.
33
58
  - **SK035 public clean: what a unit publishes on npm names nothing of the house.** npm's own pack list (`npm pack --dry-run --json --ignore-scripts`, every npm unit at once) is scanned for every house repo on this disk, every identity's id, name, handles, site domain, site repo and email, and every row of the keyword file; a browser extension in the list fails too. The package name, its declared author and its dependencies are allowed, each printed with its reason; a waiver is a `hooks.leakAllow` entry or an `sk-disable-next-line SK035` directive. A hit is file:line and the masked word. Cached on the work tree and on each unit's tree on disk (a gitignored file under `files` ships), the house repos, the identity, keyword and allow files. `sk release` and `sk bump` refuse on the same scan before the gate. The Veille extension stays out of the tarball (`!src/veille/extension` in `files`): it is loaded unpacked.
34
- - **The stores page: a repo's Steam and itch pages as one desk** (`#page:stores`, wiki build/shipkit/stores.md). Every text to paste with « Copy » (Steam markup for « About this game »), its length or tag count against the store's limit, « Edit » writing one section back byte for byte and committed on its own path; every picture at its real size or fitted, its size checked against the store's, the lightbox, « copy image », the Finder; the account's ask steps and `sk contracts --venue` on each store's card; his note on any field or picture raised in the review store, its next notes replies on it. A project adds its extra texts, the account's ask and the commands that make capsules or screenshots again through a `stores({...})` unit. The seller shown is the repo's `speaksAs`. The review store gains the builtin subject kind `store` and `src/review/notes.ts`, the one path for an owner's note on a thing.
59
+ - **The stores page: a repo's Steam and itch pages as one desk** (`#page:stores`, wiki tools/shipkit/stores.md). Every text to paste with « Copy » (Steam markup for « About this game »), its length or tag count against the store's limit, « Edit » writing one section back byte for byte and committed on its own path; every picture at its real size or fitted, its size checked against the store's, the lightbox, « copy image », the Finder; the account's ask steps and `sk contracts --venue` on each store's card; his note on any field or picture raised in the review store, its next notes replies on it. A project adds its extra texts, the account's ask and the commands that make capsules or screenshots again through a `stores({...})` unit. The seller shown is the repo's `speaksAs`. The review store gains the builtin subject kind `store` and `src/review/notes.ts`, the one path for an owner's note on a thing.
35
60
 
36
61
  ## 2.12.0
37
62
 
@@ -44,7 +69,7 @@
44
69
 
45
70
  ## 2.11.0
46
71
 
47
- - **One media store for any kind of media, and the trailer renders join it.** `src/review/space/` becomes `src/media-store/`, the machine's one store: a caller writes a `MediaKind` (where its files live in a repo, what they are, what stays on the disk) and adds it to `src/media-kinds.ts`; the store does the index, the upload, the signed URL, the fetch back and the purge. Keys are `<kind>/<sha256>.<ext>`. Review is the kind `review`, unchanged on the Space. The trailer renders are the kind `trailer`: each settled render's video and strip (the desk's clones in `.shipkit/cache/trailer-view/`, recorded by the daemon even when the desk never opened) and each kept version's own files go up; the newest render of each live cut and a render an open frame note was written on stay on the disk, the rest goes once quiet for 14 days and only after its bytes hash to its key. The desk plays a render the disk let go from a URL signed on the CDN edge; a new note fetches its video back; `sk trailer clip --version` fetches a version's video back. `sk trailer prune` no longer deletes views: an old render was lost there before it went up. A purge never deletes a file a process holds open. The verbs move: `sk media`, `sk media upload [--kind]`, `sk media purge [--kind] [--dry --list] [--auto on|off]` replace `sk review media`, `sk review media upload` and `sk review purge`; the daemon's switch is `media-purge-auto` (off until turned on). The house config key is `serve.mediaSpace`; the index file is `media.sqlite` (`SHIPKIT_MEDIA_DB`). The purge works six files at a time and sends a review image's previews with a PUT and a HEAD each, none when they are up: 524 ms a file down to 62 ms on a fake S3 at 40 ms a request. Page: build/shipkit/media-store.md.
72
+ - **One media store for any kind of media, and the trailer renders join it.** `src/review/space/` becomes `src/media-store/`, the machine's one store: a caller writes a `MediaKind` (where its files live in a repo, what they are, what stays on the disk) and adds it to `src/media-kinds.ts`; the store does the index, the upload, the signed URL, the fetch back and the purge. Keys are `<kind>/<sha256>.<ext>`. Review is the kind `review`, unchanged on the Space. The trailer renders are the kind `trailer`: each settled render's video and strip (the desk's clones in `.shipkit/cache/trailer-view/`, recorded by the daemon even when the desk never opened) and each kept version's own files go up; the newest render of each live cut and a render an open frame note was written on stay on the disk, the rest goes once quiet for 14 days and only after its bytes hash to its key. The desk plays a render the disk let go from a URL signed on the CDN edge; a new note fetches its video back; `sk trailer clip --version` fetches a version's video back. `sk trailer prune` no longer deletes views: an old render was lost there before it went up. A purge never deletes a file a process holds open. The verbs move: `sk media`, `sk media upload [--kind]`, `sk media purge [--kind] [--dry --list] [--auto on|off]` replace `sk review media`, `sk review media upload` and `sk review purge`; the daemon's switch is `media-purge-auto` (off until turned on). The house config key is `serve.mediaSpace`; the index file is `media.sqlite` (`SHIPKIT_MEDIA_DB`). The purge works six files at a time and sends a review image's previews with a PUT and a HEAD each, none when they are up: 524 ms a file down to 62 ms on a fake S3 at 40 ms a request. Page: tools/shipkit/media-store.md.
48
73
  - **Review media go up to a private S3 bucket, and the disk lets the old ones go.** Every media file of a card (image, clip, poster, sound, waveform, tile) is known by its sha256: `item.json` holds `media`, `{ sha, size, type }` per file name, written by every writer of the head, and filled on an old head at its next index. The bucket keeps each content once, `review/<sha256>.<ext>`, private: an upload never asks a public ACL, an anonymous read is refused (`tests/review-space/space-live.test.ts`, `SHIPKIT_SPACES_LIVE=1`). The house config names it, `serve.reviewSpace: { endpoint, bucket, region, cdn, secret }`, and its key pair is read through `credsReadCommand`. The daemon syncs each house repo's store after a write, uploads what waits (a HEAD first, then a HEAD of the same size before it counts as up, retried later on a failure with one line in its log). `GET /api/review/<id>/<name>` and the preview routes answer the disk's file, else a 302 to a URL signed for one hour on the CDN edge (signed for the origin host, which the edge checks it against). A tool that needs the bytes (a preview, `sk review anim`, a poster's lit frame) fetches the file back first, checked by its sha. `sk review media` counts per store what is on the disk, up, purged, waiting and gone; `sk review media upload [--repo] [--dry]` sends every waiting file now; `sk review purge [--dry] [--older <days>] [--repo]` deletes a file only when it is up and a HEAD answers its size, never one of an active thread or of a thread with a message in the last 14 days, and sends an image's previews up first. `sk review purge --auto on` lets the daemon purge on its own under 40 GB free (off by default).
49
74
  - **One machine index for every review store.** The item reads move from the json file beside each store (`.shipkit/.review-index.shipkit.json`, rewritten whole on any change, removed now) into one sqlite file in the home's state folder (`~/.config/shipkit/home/review.sqlite`, `SHIPKIT_REVIEW_DB`), beside each media file's state and each object's. The reads are kept per code hash: two copies of the lib reading one store (the daemon's, a repo's own install) had thrown each other's index away, and each paid the whole read again (2.3 s on a store of 3330 items). Only moved rows are written. It is derived: deleted, it builds again from the files, a HEAD finding what is up.
50
75
  - **A head is rewritten under its lock.** `add-view`, a draft's refresh, `ready` and the media facts go through `updateHead`: under the item's lock, from the file as it is then, so two writers never lose each other's change.
@@ -652,7 +677,7 @@
652
677
  - **Readers of other repos accept the old layout for now.** The hub's project gutter reads a repo's `asks/` when it has no `.shipkit/asks/`, and the reflections queue reads `.rv-reflections/` when it has no `.shipkit/reflections/`. Both reads go once `shipkit fleet` shows no repo on the old layout.
653
678
 
654
679
 
655
- - **BREAKING: the concept is a unit, and `ReleaseUnitDecl` is `UnitDecl`.** A `release: false` unit releases nothing, so "release unit" named the wrong thing. The exported type is renamed, SK010 is titled `units declared` (file `SK010-undeclared-unit.check.ts`, owner page `build/shipkit/units.md`), and the words a person reads say unit: `bump` bumps a unit, `shipkit releases` lists every unit that releases, SK010 counts `releasing unit(s) declared`, an unknown id says `no unit '<id>' — releasing units: …`, SK011 and SK006 name sibling and releasing units, the suite runner says `no test file outside the units`, and the hub test page help says unit.
680
+ - **BREAKING: the concept is a unit, and `ReleaseUnitDecl` is `UnitDecl`.** A `release: false` unit releases nothing, so "release unit" named the wrong thing. The exported type is renamed, SK010 is titled `units declared` (file `SK010-undeclared-unit.check.ts`, owner page `tools/shipkit/units.md`), and the words a person reads say unit: `bump` bumps a unit, `shipkit releases` lists every unit that releases, SK010 counts `releasing unit(s) declared`, an unknown id says `no unit '<id>' — releasing units: …`, SK011 and SK006 name sibling and releasing units, the suite runner says `no test file outside the units`, and the hub test page help says unit.
656
681
 
657
682
  - **No user facing string says `replayed` or `measured`.** A test reads every string, template chunk and JSX text in `src/` and fails on either word; keys, kinds, SQL columns, identifiers and comments pass. Three lines were reworded: SK001 says `would run nothing`, a secret probe line says `did not check it`, and the repo.config scaffold says `are cached on the tracked tree` and `runs every time`. `ts/lex.ts` is the source lexer both this test and SK019 read with. Only a whole quoted literal can be a key: a template chunk, an operand of `+` and a label value are prose. `lexSource` resolves escapes and reports which strings are template chunks (`template`).
658
683
 
@@ -932,7 +957,7 @@
932
957
 
933
958
  - **SK014 stops blocking a semicolon.** The class moves from the hard tier to the soft one, so it WARNs like passive voice and sentence length and never fails a gate. Blocking it was the standard taken to an extreme: the join carries meaning, and a gate that refuses it forces a rewrite of prose nobody found unclear. `vague` is the only hard class left, which is the one repair a machine can demand without changing what a sentence says. The preference stays on the page and in the report, so a writer still reads "write two sentences". The table row exemption is untouched.
934
959
 
935
- - **A rule's fix pointer follows its documentation.** SK010 now points at `build/shipkit/units.md`, SK011 at `build/shipkit/built-in-checks.md`, SK012 and SK015 at `build/shipkit/config-keys.md`, because the page that states an invariant is the page a reader lands on. The scaffolded `repo.config.ts` closes with the line that answers "what else can this file carry", `shipkit config-keys`, and its `blockedPaths` comment says what the key is for instead of teaching one project's folders. The paths stay: a scaffold shipping an empty list teaches nothing about the shape.
960
+ - **A rule's fix pointer follows its documentation.** SK010 now points at `tools/shipkit/units.md`, SK011 at `tools/shipkit/built-in-checks.md`, SK012 and SK015 at `tools/shipkit/config-keys.md`, because the page that states an invariant is the page a reader lands on. The scaffolded `repo.config.ts` closes with the line that answers "what else can this file carry", `shipkit config-keys`, and its `blockedPaths` comment says what the key is for instead of teaching one project's folders. The paths stay: a scaffold shipping an empty list teaches nothing about the shape.
936
961
 
937
962
  - **A declared slow suite sits at its file, says where it runs, and has a page.** Its row was filed under an invented `health/release-unit/<dir>/` folder, so a suite with a real file on disk appeared in a directory that does not exist; it sits at that file now, with `file` set and `virtual` gone, and the only virtual case left is a declaration naming a file nobody wrote. Its note read `slow`, the config keyword rather than an answer, and reads `release only`. And its page said "this row is not a gate unit" and stopped, which made every suite row a dead end: a suite has its own page now, with what it is and where it was declared, `catches` and `why not fast` as the two answers `defineRepo` demands, and release only with the button back to the quick tier, offered for a ROOT declaration only, since the managed block owns the root `tests` key and a release unit's own entry must be edited where it lives. Honest gap: no per suite timing is persisted anywhere, so the page states the quick tier BUDGET it broke rather than inventing a duration.
938
963
  - **`shipkit config-keys`: the repo config surface documents itself.** Every `repo.config.ts` key and every key nested under one, rendered from the JSDoc above the field into markdown, json, or a marked block inside a docs page (`--out`, `--check`, the shape `shipkit commands` already uses). `--undocumented` names the keys that carry no doc comment and exits non zero, because a key nobody documented is a key nobody uses. `src/core/config-keys.ts` is the scanner: it follows an import to the type a field names and expands an inline object, and it follows only a bare identifier, since a scanner guessing its way into a type documents the wrong shape. Every field of `RepoConfig` and of the types under it now carries a doc comment, the ones that never had one included: `logDir`, `untrackGenerated`, `contracts.extra`, `creds`, and a task's `env`, `cwd` and `group`.
@@ -1026,7 +1051,7 @@
1026
1051
 
1027
1052
  - **`shipkit ci` no longer pre-warms a release survey nothing in the gate reads.** `runCi` started `collectReports` next to the tasks and awaited it before the checks, to hide ~3s of npm registry and `gh` network behind the task DAG. Its only consumer was ever the lib-drift probe, which asks what is PUBLISHED and therefore belongs to `shipkit releases` and the bump gate rather than to a gate that asks whether this change is good. Measured on a repo whose drift checks had left the gate: warm no-op 4.3s with the pre-warm, 1.2s without. Deleted rather than made conditional, because nothing is left to condition it on and a second mechanism guessing which check wants a survey is exactly the source-sniffing this scanner already retired. `collectChecks` creates, shares and cleans up the share path when it was not handed one, so the checks that DO want a survey still pay for exactly one between them, and `shipkit check` is unchanged. Honest cost: a repo that keeps a lib-drift check inside its gate loses the overlap and is up to 3s slower there.
1028
1053
  - **`export const gate = false` was parsed, filtered on, and never honoured** (the fix itself shipped in 0.35.6, which carried no note for it). The CLI declares `--only` as `Option.Array('--only', [])`, so a plain `shipkit ci` hands the check filter an EMPTY ARRAY and never `undefined`. The guard tested `only == null`, which is false for `[]`, so every gate run read as a narrowed one and no check ever opted out: a repo could declare fifteen world probes off-gate and watch all fifteen run anyway. `matchesOnly`, two hundred lines up in the same file, already used the right predicate, and the `only` field's own doc comment already said "Empty or absent means everything". Both readers of the CHECK filter now call one exported `isNarrowed`. `--only` also names rules and discovered checks, so the task runner is handed those ids too rather than answering `unknown task id` for a check it was never asked to run. Pinned by three tests that call `collectChecks` the way the CLI calls it: the gate skips a `gate = false` check, `shipkit check` still runs it, and naming it in `--only` still reaches it.
1029
- - **The adopt path writes `.vscode/tasks.json` alone, and derives what goes in it.** 0.35.6 wrote `settings.json` too, which turns eslint off and hands formatting to an oxc extension: landing that in a repo that lints with eslint silences the linter that repo chose, and that is an answer only its own author gets to give. It also wrote a canned `👁 TSC` watcher pointed at `tsconfig.json`. Against a solution config (`files: []` plus `references`) that watcher needs `--build`, type checks ZERO files without it, and reports a clean problems pane forever, which is worse than no task at all. The TSC subtask is now written only when the root tsconfig resolves inputs, `build/vscode-tasks.md` stays the owner of the per-project analysis for every other watcher, and `init` names that page in its output rather than implying the file is finished.
1054
+ - **The adopt path writes `.vscode/tasks.json` alone, and derives what goes in it.** 0.35.6 wrote `settings.json` too, which turns eslint off and hands formatting to an oxc extension: landing that in a repo that lints with eslint silences the linter that repo chose, and that is an answer only its own author gets to give. It also wrote a canned `👁 TSC` watcher pointed at `tsconfig.json`. Against a solution config (`files: []` plus `references`) that watcher needs `--build`, type checks ZERO files without it, and reports a clean problems pane forever, which is worse than no task at all. The TSC subtask is now written only when the root tsconfig resolves inputs, `patterns/vscode-tasks/index.md` stays the owner of the per-project analysis for every other watcher, and `init` names that page in its output rather than implying the file is finished.
1030
1055
  - **A symlinked `.vscode/` is left alone.** It is a dotfiles pattern pointing at a SHARED directory, and writing through it landed files outside the repo being wired.
1031
1056
  - **A `repo.config.ts` with no `name` no longer kills `init` with an opaque `TypeError`.** The config loader validates nothing and hands back the raw default export, and the port arithmetic iterates the name it is given. That resolution now sits inside the same guard as the write, falls back to the directory name, and a failure there costs one WARN after everything else has already landed.
1032
1057
  - **`shipkit start` advertises the port the hub will actually listen on.** The scaffold derived it from `package.json` while `init` names the config from the CALLER first, so a dir found holding a forked manifest got a tasks file pointing at a port nothing answers on. The caller now passes the port it resolved.
@@ -1096,7 +1121,7 @@
1096
1121
 
1097
1122
  - **The typecheck slot could report green over a file that does not compile.** A solution-style `tsconfig.json` (`"files": []` plus `references`, which is the standard vite shape) makes `tsc --noEmit` compile ZERO files and exit 0, so the built-in typecheck floor printed `ok: typecheck (0.1s)` with a type error sitting in `src/`. Every other failure in this tool is loud; this one was a green indistinguishable from a measured one. `ts/tsconfig-projects.ts` now resolves the set of projects a typecheck must visit: it walks `references`, and it keeps a referencing config in that set whenever the config compiles inputs of its OWN, because `references` does not suppress them. Only `"files": []` with no `include`, or an empty `include`, makes a config compile nothing; a bare `{ references: [...] }` still compiles the whole tree, since tsc defaults `include` to `**/*`. A reference may name a directory, cycles terminate, and a config reaching nothing that compiles is reported as VACUOUS. The floor spawns `ts/typecheck-cli.ts`, which resolves at RUN time so a tsconfig edited after resolution still counts, runs every project instead of stopping at the first red, and on success NAMES the projects it checked. A vacuous config or a dangling reference registers that runner too and exits non-zero, rather than leaving the slot unfilled: an unfilled slot is a skip, the gate still exits 0, and a repo with no typecheck coverage would read exactly like one that passed. `release/unit-gate.ts` ran the same vacuous command as a PUBLISH gate and got the same treatment.
1098
1123
  - **`parseJsonc` is a quote-aware scanner instead of two regexes**, because tsconfig is the one dialect where the regex version cannot work: `"src/**/*"` is a `/*` carrying its own `*/`, so a block-comment regex eats an arbitrary span of a valid file. Measured over the real tsconfigs on this machine, the old version THREW on 8 of them and silently rewrote `"src/**/*.ts"` to `"src*.ts"` in 8 more. It parses 80 of 80 now. This matters more than it did yesterday: the same parser gates typecheck and publish.
1099
- - **`bun run test:raw` takes a FILE filter, not a name filter.** Measured: bun's positional argument matches the test file path, and a single test by name is `bun run test:raw -- -t "<name>"`. The wrong form was in 0.33.0's own notes, in two verify-skill templates, on `build/shipkit.md`, and in the refusal message an agent reads at the exact moment it is blocked.
1124
+ - **`bun run test:raw` takes a FILE filter, not a name filter.** Measured: bun's positional argument matches the test file path, and a single test by name is `bun run test:raw -- -t "<name>"`. The wrong form was in 0.33.0's own notes, in two verify-skill templates, on `tools/shipkit/index.md`, and in the refusal message an agent reads at the exact moment it is blocked.
1100
1125
 
1101
1126
  ## 0.33.0
1102
1127
 
@@ -1511,7 +1536,7 @@ never red and never cached.
1511
1536
  Motherhome reporting: `check`/`ci` (and `init` on an already-configured
1512
1537
  repo) upsert one row for the repo — name, path, version (`+src` suffix
1513
1538
  when consumed by path/link), npm|link|file|path mode, last-seen day —
1514
- into `<docsBase>/build/shipkit/local-projects.md`, ONLY when that page
1539
+ into `<docsBase>/tools/shipkit/local-projects.md`, ONLY when that page
1515
1540
  already exists on this disk. The lib never creates the page and never
1516
1541
  writes into a relative or URL docsBase — a consumer using docsBase as a
1517
1542
  plain fix-pointer prefix will never find surprise files in its docs tree.
@@ -1776,7 +1801,7 @@ New (wave 1 of the shipkit expansion — uniform repo setup):
1776
1801
  `assets:identity`, `pretty`→`fmt`, `check-types`→`typecheck`; body-matched
1777
1802
  so an unrelated `serve` is left alone) and a missing `test`/`lint`/`fmt`
1778
1803
  baseline. rvlib-* roots invert (MIT required, private banned). Spec:
1779
- wiki `meta/rv-conventions/package-json.md`. Doctor surface only — not in
1804
+ wiki `patterns/rv-conventions/package-json.md`. Doctor surface only — not in
1780
1805
  the ci gate.
1781
1806
  - `init` scaffolds the full canonical script set: `ci check contracts tui
1782
1807
  hub` (hub runs `shipkit serve`) + a `test: bun test` baseline — was
@@ -1842,7 +1867,7 @@ New:
1842
1867
  - `shipkit assets check` prints workflow provenance (W2-3): one `ok:` line
1843
1868
  per bound pair with its repo-relative `.{json,ts}` path — there is no
1844
1869
  global workflow store, git owns each repo's pairs; the sharing doctrine
1845
- lives in build/comfyui.md.
1870
+ lives in tools/comfyui/index.md.
1846
1871
  - a second `shipkit serve` launch on an already-owned port now prints the
1847
1872
  full clickable tool URLs (from the owner's `/hub.json`), not just the hub
1848
1873
  root — a re-run terminal is as clickable as a first run.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rvlib-shipkit",
3
- "version": "2.13.0",
3
+ "version": "2.15.0",
4
4
  "funding": "https://github.com/sponsors/rvion",
5
5
  "description": "All-in-one repo companion: ci gate (task DAG), auto-discovered health checks, release-contract fulfillness, asks queue, md-wiki tools, asset atelier, live tui",
6
6
  "license": "MIT",
@@ -197,7 +197,7 @@ export const runAssetsCheck = (root: string, io: AssetsIo): Promise<number> =>
197
197
  io.print(`ok: ${wfs.size} comfy-ts workflow(s) loaded`)
198
198
  // provenance: where each module lives + its declared knobs.
199
199
  // Git owns each repo's modules; the house library
200
- // (wiki/build/comfyui/references) is the copy-from source.
200
+ // (wiki/tools/comfyui/references) is the copy-from source.
201
201
  for (const lw of wfs.values())
202
202
  io.print(`ok: workflow '${lw.id}' → ${relative(root, lw.file)} (vars: ${lw.wf.entries().map(([n, d]) => `${n}:${d.kind}`).join(', ')})`)
203
203
  } catch (e) {
@@ -272,7 +272,7 @@ export const runAssetsCheck = (root: string, io: AssetsIo): Promise<number> =>
272
272
  else if (idn.state === 'rendered') io.print(`ok: identity re-rendered (brand.ts changed) — ${idn.detail}`)
273
273
  else if (idn.state === 'blocked') { io.print(`FAIL: identity blocked — ${idn.detail}`); bad++ }
274
274
  // manual assets: no rolls = nothing to ship = RED (the missing list
275
- // is the shopping list — build/game-audio doctrine); rolls-but-no-pick = WARN
275
+ // is the shopping list — tools/game-audio doctrine); rolls-but-no-pick = WARN
276
276
  const manuals = allAssets(kit).filter((f) => f.kind.generate.backend === 'manual')
277
277
  let manualBad = 0
278
278
  for (const f of manuals) {
@@ -48,18 +48,26 @@ export async function studioRoutes(deps: StudioDeps): Promise<StudioRoutes> {
48
48
  const { kit, root } = deps
49
49
  const workspace = join(root, kit.workspace)
50
50
  const dirOf = (id: string): string => assetDir(workspace, id)
51
+ // the workflows load on the first comfy roll, never at boot: a kit whose comfy kind is done (an identity mark
52
+ // picked long ago) never pays their import, and a missing folder is said on the roll that needed it, never on
53
+ // the page at rest. One load shared by every roll; a failed one is tried again on the next roll
51
54
  let workflows: Map<string, LoadedWorkflow> | null = null
52
- // only a comfy kind needs them, and a broken load costs only comfy
53
- // generation: the rolls, the picks and every other kind stay served, and
54
- // the reason rides in /api/state errors and in every comfy roll that fails
55
- let comfyErr: string | null = null
56
- if (kit.comfy != null && kit.kinds.some((k) => k.generate.backend === 'comfy')) {
57
- try {
58
- workflows = await loadCflowWorkflows(root, join(root, kit.comfy.workflows))
59
- } catch (e) {
60
- comfyErr = `comfy workflows not loaded: ${(e as Error).message}`
61
- console.log(`WARN ${comfyErr}`)
62
- }
55
+ let loading: Promise<Map<string, LoadedWorkflow>> | null = null
56
+ const comfyKit = kit.comfy != null && kit.kinds.some((k) => k.generate.backend === 'comfy') ? kit.comfy : null
57
+ const loadWorkflows = (): Promise<Map<string, LoadedWorkflow>> => {
58
+ if (comfyKit == null) return Promise.reject(new Error('kit has no comfy config — only canvas kinds can generate'))
59
+ loading ??= loadCflowWorkflows(root, join(root, comfyKit.workflows)).then(
60
+ async (w) => {
61
+ workflows = w
62
+ await seedDrafts(w)
63
+ return w
64
+ },
65
+ (e: Error) => {
66
+ loading = null
67
+ throw new Error(`comfy workflows not loaded: ${e.message}`)
68
+ },
69
+ )
70
+ return loading
63
71
  }
64
72
 
65
73
  // custom panel scripts fail-fast here too (tests/embedders may bypass loadKit)
@@ -87,7 +95,8 @@ export async function studioRoutes(deps: StudioDeps): Promise<StudioRoutes> {
87
95
  else if (workflows != null) note = `names no workflow; ${workflows.size} loaded — set workflow on the kind`
88
96
  }
89
97
  const lw = id != null && workflows != null ? workflows.get(id) : undefined
90
- if (id != null && lw == null && note == null) note = `workflow '${id}' not loaded`
98
+ // before the first comfy roll nothing is loaded, and that is no fault of the kind
99
+ if (id != null && lw == null && note == null && workflows != null) note = `workflow '${id}' not loaded`
91
100
  const path = lw != null ? relOf(lw.file) : id != null && kit.comfy != null ? join(kit.comfy.workflows, `${id}.cflow.ts`) : null
92
101
  workflow = { id, path, note }
93
102
  }
@@ -104,9 +113,9 @@ export async function studioRoutes(deps: StudioDeps): Promise<StudioRoutes> {
104
113
  const promptOf = async (f: FoundAsset): Promise<string> =>
105
114
  (await readPromptOverlay(dirOf(f.asset.id))).prompt ?? f.asset.prompt
106
115
 
107
- // one draft per comfy asset, seeded at boot so `bunx comfy-ts tui` lists
108
- // every asset as a tweakable entry under its workflow
109
- if (workflows != null) {
116
+ // one draft per comfy asset, seeded once the workflows load so `bunx comfy-ts tui`
117
+ // lists every asset as a tweakable entry under its workflow
118
+ async function seedDrafts(workflows: Map<string, LoadedWorkflow>): Promise<void> {
110
119
  for (const f of allAssets(kit).filter((x) => x.kind.generate.backend === 'comfy')) {
111
120
  try {
112
121
  const gen = f.kind.generate as { workflow?: string }
@@ -119,13 +128,8 @@ export async function studioRoutes(deps: StudioDeps): Promise<StudioRoutes> {
119
128
  }
120
129
  }
121
130
 
122
- // workflows are pre-loaded above (fail-fast for a comfy studio); the
123
- // resolver just hands the shared roll generator the ready runtime.
124
- const resolveComfy = async (): Promise<ComfyTsRuntime> => {
125
- if (comfyErr != null) throw new Error(comfyErr)
126
- if (kit.comfy == null || workflows == null) throw new Error('kit has no comfy config — only canvas kinds can generate')
127
- return { workflows, heal: kit.comfy.heal }
128
- }
131
+ // the shared roll generator asks for the runtime: the first comfy roll loads it
132
+ const resolveComfy = async (): Promise<ComfyTsRuntime> => ({ workflows: await loadWorkflows(), ...(comfyKit?.heal != null ? { heal: comfyKit.heal } : {}) })
129
133
  const generateOne = deps.generateOne ?? ((found, prompt, seed, destDir, onProgress, context?: ParentContext) =>
130
134
  generateRoll(found, { prompt, seed, destDir, onProgress, context, rollFormat: kit.rollFormat }, resolveComfy))
131
135
 
@@ -255,7 +259,7 @@ export async function studioRoutes(deps: StudioDeps): Promise<StudioRoutes> {
255
259
  derived: parentIdsOf(f).length > 0, stale: await isStale(kit, workspace, f),
256
260
  }
257
261
  }))
258
- return json({ ...queue.state, queued: queue.queuedCount, pending: queue.pendingIds(), errors: [...(comfyErr == null ? [] : [comfyErr]), ...queue.errors.slice(-5)], assets })
262
+ return json({ ...queue.state, queued: queue.queuedCount, pending: queue.pendingIds(), errors: queue.errors.slice(-5), assets })
259
263
  }
260
264
 
261
265
  if (pathname === '/api/asset') {
package/src/check.ts CHANGED
@@ -186,8 +186,8 @@ export function check(d: CheckDef): CheckDef {
186
186
  throw new Error(`check${name}: declare exactly one body, \`run\` (in process) or \`cmd\` (argv)`)
187
187
  const raw = d as unknown as Record<string, unknown>
188
188
  const retired = Object.keys(RETIRED_KEYS).filter((k) => raw[k] !== undefined)
189
- if (retired.length > 0) throw new Error(`check${name}: ${retired.map((k) => `\`${k}\` is retired, declare ${RETIRED_KEYS[k]}`).join('; ')} (build/shipkit/runs.md)`)
190
- if (typeof raw.fix === 'function') throw new Error(`check${name}: \`fix\` is now the word 'none' | 'ci' | 'manual', and the function is \`repair\` (build/shipkit/runs.md)`)
189
+ if (retired.length > 0) throw new Error(`check${name}: ${retired.map((k) => `\`${k}\` is retired, declare ${RETIRED_KEYS[k]}`).join('; ')} (tools/shipkit/runs.md)`)
190
+ if (typeof raw.fix === 'function') throw new Error(`check${name}: \`fix\` is now the word 'none' | 'ci' | 'manual', and the function is \`repair\` (tools/shipkit/runs.md)`)
191
191
  const runs = runsProblem(d.runs)
192
192
  if (runs != null) throw new Error(`check${name}: ${runs}`)
193
193
  const cache = cacheProblem(d.cache)
@@ -239,7 +239,7 @@ export type TaskDef = {
239
239
  /** CONTENT population: the repo-relative paths this task reads. Declaring
240
240
  * them is what makes it keyable (ledger/git-key.ts). Undeclared is the
241
241
  * DEFAULT: the task is keyed on the whole work tree plus the repo's
242
- * `ignoredInputs` (build/shipkit/cache.md). A list MISSING a path
242
+ * `ignoredInputs` (tools/shipkit/cache.md). A list MISSING a path
243
243
  * the command reads is the one that costs correctness: the key cannot
244
244
  * move when that path changes, so a cached answer comes back over a tree
245
245
  * it no longer describes. */
@@ -1,11 +1,11 @@
1
- // SK001 — canonical package.json shape (meta/rv-conventions/package-json.md):
1
+ // SK001 — canonical package.json shape (patterns/rv-conventions/package-json.md):
2
2
  // private:true, no license, capability-required script names FAIL, banned
3
3
  // aliases + missing baseline scripts WARN. Blocking, so it runs in `shipkit
4
4
  // ci` like every other rule. It reads only through `c`, so it is cached on
5
5
  // what it read: package.json, the probes below, the test file listing, and
6
6
  // whatever the floor resolution read.
7
7
  //
8
- // It also enforces the package.json half of ONE WAY IN (build/shipkit/one-way-in.md):
8
+ // It also enforces the package.json half of ONE WAY IN (tools/shipkit/one-way-in.md):
9
9
  // `test` and `typecheck` ROUTE to `shipkit ci --only <id>` and the
10
10
  // tool body they used to hold sits at `<id>:raw`. That is what makes a cache
11
11
  // worth having: `bun run test` is the reflex, and the reflex has to land in
@@ -22,7 +22,7 @@ import { check, type FixResult } from '../check.ts'
22
22
  type Deps = Record<string, string>
23
23
  type Pkg = { name?: string; private?: boolean; license?: string; scripts?: Record<string, string>; dependencies?: Deps; devDependencies?: Deps; optionalDependencies?: Deps }
24
24
 
25
- const OWNER = 'meta/rv-conventions/package-json.md'
25
+ const OWNER = 'patterns/rv-conventions/package-json.md'
26
26
 
27
27
  // alias → { canonical, bodyMatch } — WARN only when the body proves the
28
28
  // alias really is the canonical capability (a `serve` that serves a dist/
@@ -71,7 +71,7 @@ export function evaluatePackageJson(t: CheckCtx): void {
71
71
  // still handled so a future lib-root repo fails correctly, not absurdly
72
72
  const isLib = pkg.name?.startsWith('rvlib-') === true
73
73
 
74
- // published rvlib-* roots invert the field rules (distribute/npm owns them)
74
+ // published rvlib-* roots invert the field rules (guides/npm owns them)
75
75
  if (isLib) {
76
76
  if (pkg.license !== 'MIT') t.fail(`package.json: rvlib-* package must carry license MIT`)
77
77
  if (pkg.private === true) t.fail(`package.json: rvlib-* package must not be private`)
@@ -1,4 +1,4 @@
1
- // SK002 — .shipkit/* contract fulfillness (meta/contracts.md). The rule is the
1
+ // SK002 — .shipkit/* contract fulfillness (meta/contracts/index.md). The rule is the
2
2
  // registration point; the evaluation machinery stays in
3
3
  // contracts/contracts-engine.ts (venue manifests are DATA rows, not rules —
4
4
  // one SK id covers the invariant "declared contracts are fulfilled, folders
@@ -13,7 +13,7 @@ export const contractsFulfillness = check({
13
13
  blocking: true,
14
14
  title: 'contracts',
15
15
  description: 'every declared venue has a complete contract folder',
16
- owner: 'meta/contracts.md',
16
+ owner: 'meta/contracts/index.md',
17
17
  // keyed on what the contracts read: each artifact, each detector, and each
18
18
  // folder a glob walked through `c.entries`, a gitignored one included
19
19
  runs: { onPreCommit: false, onCi: true, onFull: true, onRelease: true, onHealth: true, onSave: 'moved', onClock: false },
@@ -1,5 +1,5 @@
1
- // SK003 — the CLAUDE.md two-line contract (meta/agent-folder.md): CLAUDE.md
2
- // is an include index, never a doc; `@./agent/index.md` comes LAST (include
1
+ // SK003 — the CLAUDE.md two-line contract (meta/agent-folder/index.md): CLAUDE.md
2
+ // is an include index, never a doc; `@./<agent dir>/index.md` comes LAST (include
3
3
  // order is SEMANTIC — base context first, repo docs after so they
4
4
  // override); a
5
5
  // public repo's `@./CLAUDE.local.md` line-1 indirection must be gitignored.
@@ -7,9 +7,10 @@
7
7
  // which one lands (its house template, or `--include`). A repo with neither
8
8
  // CLAUDE.md nor agent/ is not a two-line-contract repo and passes.
9
9
  import { check, type FixResult } from '../check.ts'
10
+ import { DEFAULT_AGENT_DIR, agentDirOf } from '../core/agent-dir.ts'
10
11
 
11
12
  /** the repo router line, always LAST: start writes it whenever agent/index.md exists */
12
- export const AGENT_LINE = '@./agent/index.md'
13
+ export const AGENT_LINE = `@./${DEFAULT_AGENT_DIR}/index.md`
13
14
  const LOCAL_LINE = '@./CLAUDE.local.md'
14
15
 
15
16
  export const claudeMdShape = check({
@@ -17,7 +18,7 @@ export const claudeMdShape = check({
17
18
  blocking: true,
18
19
  title: 'CLAUDE.md',
19
20
  description: 'CLAUDE.md loads the house wiki into every session',
20
- owner: 'meta/agent-folder.md',
21
+ owner: 'meta/agent-folder/index.md',
21
22
  // keyed on what it reads: CLAUDE.md, whether agent/index.md exists, and
22
23
  // the ignore files git read for the gitignore probe (c.exec runs traced)
23
24
  runs: { onPreCommit: false, onCi: true, onFull: true, onRelease: true, onHealth: true, onSave: 'moved', onClock: false },
@@ -25,10 +26,14 @@ export const claudeMdShape = check({
25
26
  fix: 'ci',
26
27
  applies: 'always',
27
28
  run: async (c) => {
28
- const hasAgent = c.exists('agent/index.md')
29
29
  const claude = c.read('CLAUDE.md')
30
+ // the folder the last include names (a base wiki host names a folder of its wiki), agent/ otherwise
31
+ const dir = agentDirOf(claude)
32
+ const agentIndex = `${dir}/index.md`
33
+ const agentLine = `@./${agentIndex}`
34
+ const hasAgent = c.exists(agentIndex)
30
35
  if (claude == null) {
31
- if (hasAgent) c.fail(`agent/index.md exists but there is no CLAUDE.md routing it — the two-line contract wants ${AGENT_LINE}`)
36
+ if (hasAgent) c.fail(`${agentIndex} exists but there is no CLAUDE.md routing it — the two-line contract wants ${agentLine}`)
32
37
  else c.ok('no CLAUDE.md / agent — not a two-line-contract repo')
33
38
  return
34
39
  }
@@ -38,11 +43,13 @@ export const claudeMdShape = check({
38
43
  if (prose > 0)
39
44
  c.fail(`CLAUDE.md carries ${prose} non-include line(s) — it is a tiny include index, content belongs in agent/index.md`)
40
45
  if (includes.length > 2)
41
- c.fail(`CLAUDE.md has ${includes.length} include lines — the contract is 2: base context, then ${AGENT_LINE}`)
42
- if (hasAgent && !lines.includes(AGENT_LINE))
43
- c.fail(`agent/index.md exists but CLAUDE.md does not import it — add ${AGENT_LINE} as the LAST line`)
44
- if (lines.includes(AGENT_LINE) && lines.at(-1) !== AGENT_LINE)
45
- c.fail(`include order inverted — base context first, ${AGENT_LINE} LAST (order is semantic: repo docs override the base)`)
46
+ c.fail(`CLAUDE.md has ${includes.length} include lines — the contract is 2: base context, then ${agentLine}`)
47
+ if (hasAgent && !lines.includes(agentLine))
48
+ c.fail(`${agentIndex} exists but CLAUDE.md does not import it — add ${agentLine} as the LAST line`)
49
+ if (lines.includes(agentLine) && lines.at(-1) !== agentLine)
50
+ c.fail(`include order inverted — base context first, ${agentLine} LAST (order is semantic: repo docs override the base)`)
51
+ if (dir !== DEFAULT_AGENT_DIR && !hasAgent)
52
+ c.fail(`CLAUDE.md's last include names ${agentIndex}, which does not exist: the agent folder it declares is missing`)
46
53
  if (lines.includes(LOCAL_LINE)) {
47
54
  const r = await c.exec(['git', 'check-ignore', '-q', 'CLAUDE.local.md'], { cwd: c.root, timeoutMs: 5_000 })
48
55
  if (r.code === 1)
@@ -58,7 +65,7 @@ export const claudeMdShape = check({
58
65
  // trading a loud FAIL for a permanent silent gap. Creation and prose
59
66
  // relocation stay human/machine-local (`shipkit start --include`).
60
67
  repair: (c): FixResult => {
61
- if (!c.exists('agent/index.md')) return { changed: false, summary: 'no agent/index.md — nothing mechanical to fix' }
68
+ if (!c.exists(`${DEFAULT_AGENT_DIR}/index.md`)) return { changed: false, summary: 'no agent/index.md — nothing mechanical to fix' }
62
69
  const cur = c.read('CLAUDE.md')
63
70
  if (cur == null) return { changed: false, summary: 'CLAUDE.md missing — creation needs the base include (shipkit start <name> writes it), not autofixable' }
64
71
  if (cur.split('\n').includes(AGENT_LINE)) return { changed: false, summary: `${AGENT_LINE} already routed — remaining findings need a human` }
@@ -1,4 +1,4 @@
1
- // SK004 — the .gitignore policy block (meta/contracts.md git policy;
1
+ // SK004 — the .gitignore policy block (meta/contracts/index.md git policy;
2
2
  // .shipkit/tmp/ spelled out because shipkit writes its per-run logs there in
3
3
  // every repo). A marker-keyed managed block so the always-gitignored contract
4
4
  // surfaces can never silently rot per repo. Ecosystem-specific names the
@@ -230,8 +230,9 @@ export const gitignorePolicy = check({
230
230
  blocking: true,
231
231
  title: '.gitignore',
232
232
  description: 'the managed .gitignore block keeps private contract folders out of git',
233
- owner: 'meta/contracts.md',
234
- // it untracks generated files (a commit) unless the run is frozen
233
+ owner: 'meta/contracts/index.md',
234
+ // unless the run is frozen: its body rewrites a stale block, its repair
235
+ // untracks generated files (a commit)
235
236
  writes: true,
236
237
  runs: { onPreCommit: false, onCi: true, onFull: true, onRelease: true, onHealth: true, onSave: 'moved', onClock: false },
237
238
  // .gitignore plus what git currently TRACKS and IGNORES, which the tree
@@ -254,7 +255,20 @@ export const gitignorePolicy = check({
254
255
  c.lines.push({ kind: 'fix-fail', text: 'shipkit ci (or check --fix SK004) moves them and lands one commit' })
255
256
  }
256
257
  const legacy = hasLegacy(c.root)
257
- const s = blockState(c, c.config, legacy)
258
+ let s = blockState(c, c.config, legacy)
259
+ // a stale block means shipkit's policy moved, not that this repo broke:
260
+ // every run that may write renders it in place, so a policy change never
261
+ // turns the whole fleet red until each repo runs its gate
262
+ if (s === 'stale') {
263
+ if (c.frozen) {
264
+ c.warn('.gitignore policy block is stale: the policy moved, and a frozen run rewrites nothing')
265
+ c.lines.push({ kind: 'fix-warn', text: 'any run that is not frozen rewrites it in place (sk check, sk ci)' })
266
+ return
267
+ }
268
+ writeBlock(c, c.config, legacy)
269
+ c.note('.gitignore policy block rewritten in place: the policy or repo-contributed lines moved')
270
+ s = blockState(c, c.config, legacy)
271
+ }
258
272
  switch (s) {
259
273
  case 'missing-file': return c.fail('.gitignore missing — the contract git policy is unenforced')
260
274
  case 'missing-block': return c.fail('.gitignore has no shipkit policy block — contract surfaces can leak into git')
@@ -87,7 +87,7 @@ export const rvlibVersions = check({
87
87
  blocking: true,
88
88
  title: 'rvlib versions',
89
89
  description: 'the rvlib packages installed here are as new as the published ones',
90
- owner: 'build/shipkit/consuming.md',
90
+ owner: 'tools/shipkit/consuming.md',
91
91
  // it updates the rvlib deps unless the run is frozen
92
92
  writes: true,
93
93
  runs: { onPreCommit: false, onCi: false, onFull: true, onRelease: true, onHealth: true, onSave: false, onClock: { every: '24h', inactive: 'wait' } },
@@ -1,4 +1,4 @@
1
- // SK006 — npm publish safety (meta/rv-conventions/package-json.md).
1
+ // SK006 — npm publish safety (patterns/rv-conventions/package-json.md).
2
2
  // `private: true` is npm's own unconditional publish refusal — THE lock
3
3
  // (SK001 enforces its presence). This rule closes the contradiction class
4
4
  // around it: a private package carrying publish machinery is either a
@@ -37,7 +37,7 @@ export const npmPublishSafety = check({
37
37
  blocking: true,
38
38
  title: 'npm publish safety',
39
39
  description: 'a private package carries no publish machinery',
40
- owner: 'meta/rv-conventions/package-json.md',
40
+ owner: 'patterns/rv-conventions/package-json.md',
41
41
  // keyed on what it reads: the root package.json and every declared release
42
42
  // unit's, at the dirs the config picks
43
43
  runs: { onPreCommit: false, onCi: false, onFull: true, onRelease: true, onHealth: true, onSave: 'moved', onClock: false },
@@ -67,7 +67,7 @@ export const npmPublishSafety = check({
67
67
  `${localHits.join(', ')} — a local protocol cannot resolve on a consumer's machine, so publishing that ships a package which fails at install. Declare the version it WILL be, and keep the local wiring in overrides (npm ignores those from a dependency) or in devDependencies`,
68
68
  )
69
69
  if (pkg.name?.startsWith('rvlib-') === true) {
70
- if (localHits.length === 0) c.ok('rvlib-* package — publishes by design (distribute/npm owns it)')
70
+ if (localHits.length === 0) c.ok('rvlib-* package — publishes by design (guides/npm owns it)')
71
71
  return
72
72
  }
73
73
  if (rootPublishesNpm(c.config)) {
@@ -1,4 +1,4 @@
1
- // SK007 — github visibility tripwire (meta/contracts.md pre-public gate).
1
+ // SK007 — github visibility tripwire (meta/contracts/index.md pre-public gate).
2
2
  // `repo.config.ts visibility: 'private' | 'public'` (absent = 'private')
3
3
  // states the INTENT; gh states the FACT; a mismatch in either direction is
4
4
  // red — public-while-declared-private is the leak case,
@@ -26,7 +26,7 @@ export const githubVisibility = check({
26
26
  blocking: false,
27
27
  title: 'github visibility',
28
28
  description: 'the github visibility of this repo matches the one it declares',
29
- owner: 'meta/contracts.md',
29
+ owner: 'meta/contracts/index.md',
30
30
  runs: { onPreCommit: false, onCi: false, onFull: false, onRelease: false, onHealth: true, onSave: 'moved', onClock: 'once' },
31
31
  cache: { by: 'fact', key: (env) => declaredVisibility(env.config) },
32
32
  fix: 'none',
@@ -85,7 +85,7 @@ export const reviewerAgent = check({
85
85
  blocking: true,
86
86
  title: 'reviewer definition',
87
87
  description: 'the declared reviewer agent has its brief, its definition and read only tools',
88
- owner: 'identity/how-we-work.md',
88
+ owner: 'preferences/how-we-work/index.md',
89
89
  runs: { onPreCommit: false, onCi: true, onFull: true, onRelease: true, onHealth: true, onSave: 'moved', onClock: false },
90
90
  // the answer is the config, the definition file and the brief. The brief
91
91
  // is a CONFIG path that may sit outside the repo, so both files enter the
@@ -1,4 +1,4 @@
1
- // SK010 — undeclared unit (build/shipkit/units.md). Units are
1
+ // SK010 — undeclared unit (tools/shipkit/units.md). Units are
2
2
  // DECLARED, never inferred, so resolution is deterministic. This rule is the
3
3
  // other half of that deal: a package.json sitting in the repo that no unit
4
4
  // claims would be invisible to every release surface, and its version would
@@ -37,7 +37,7 @@ export const undeclaredUnit = check({
37
37
  blocking: true,
38
38
  title: 'units declared',
39
39
  description: 'every package.json is a declared unit or declared not releasable',
40
- owner: 'build/shipkit/units.md',
40
+ owner: 'tools/shipkit/units.md',
41
41
  // keyed on what it reads: the listing of every package.json, each one it
42
42
  // opens, and the declared units' package.json
43
43
  runs: { onPreCommit: false, onCi: true, onFull: true, onRelease: true, onHealth: true, onSave: 'moved', onClock: false },
@@ -1,5 +1,5 @@
1
1
  // SK011 — a dependency range on a SIBLING unit must be satisfied by
2
- // the version that sibling actually carries (build/shipkit/units.md).
2
+ // the version that sibling actually carries (tools/shipkit/units.md).
3
3
  //
4
4
  // The failure it exists for: one unit is edited and its dependents keep a
5
5
  // range that names a version nobody published, or an older one that lacks the
@@ -58,7 +58,7 @@ export const siblingUnitRanges = check({
58
58
  blocking: true,
59
59
  title: 'sibling unit ranges',
60
60
  description: 'every range on a sibling unit floors at the version that sibling carries',
61
- owner: 'build/shipkit/built-in-checks.md',
61
+ owner: 'tools/shipkit/built-in-checks.md',
62
62
  // keyed on what it reads: every declared unit's package.json, at the dirs
63
63
  // the config picks
64
64
  runs: { onPreCommit: false, onCi: false, onFull: true, onRelease: true, onHealth: true, onSave: 'moved', onClock: false },
@@ -29,7 +29,7 @@ export const configBarrelImport = check({
29
29
  blocking: true,
30
30
  title: 'config import path',
31
31
  description: 'repo.config.ts imports `defineRepo` from the narrow module, never the barrel',
32
- owner: 'build/shipkit/config-keys.md',
32
+ owner: 'tools/shipkit/config-keys.md',
33
33
  runs: { onPreCommit: false, onCi: true, onFull: true, onRelease: true, onHealth: true, onSave: 'moved', onClock: false },
34
34
  cache: { by: 'reads' },
35
35
  fix: 'ci',