@cratis/pi 8.0.2 → 8.2.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 (490) hide show
  1. package/package/corpus/harnesses/copilot/instructions/ai-distribution.instructions.md +9 -102
  2. package/package/corpus/harnesses/copilot/instructions/authoring-skills.instructions.md +3 -5
  3. package/package/corpus/harnesses/copilot/instructions/browser.instructions.md +8 -49
  4. package/package/corpus/harnesses/copilot/instructions/code-health.instructions.md +1 -1
  5. package/package/corpus/harnesses/copilot/instructions/code-quality.csharp.instructions.md +3 -84
  6. package/package/corpus/harnesses/copilot/instructions/code-quality.instructions.md +6 -51
  7. package/package/corpus/harnesses/copilot/instructions/code-quality.typescript.instructions.md +4 -81
  8. package/package/corpus/harnesses/copilot/instructions/codescene.instructions.md +5 -54
  9. package/package/corpus/harnesses/copilot/instructions/components.instructions.md +1 -1
  10. package/package/corpus/harnesses/copilot/instructions/cratis-folder-is-configuration.instructions.md +5 -22
  11. package/package/corpus/harnesses/copilot/instructions/csharp.instructions.md +7 -315
  12. package/package/corpus/harnesses/copilot/instructions/dialogs.instructions.md +1 -1
  13. package/package/corpus/harnesses/copilot/instructions/discoverability.instructions.md +3 -25
  14. package/package/corpus/harnesses/copilot/instructions/documentation-structure-and-formatting.instructions.md +5 -151
  15. package/package/corpus/harnesses/copilot/instructions/documentation.instructions.md +5 -104
  16. package/package/corpus/harnesses/copilot/instructions/editing-cratis-docs.instructions.md +5 -63
  17. package/package/corpus/harnesses/copilot/instructions/efcore.instructions.md +8 -55
  18. package/package/corpus/harnesses/copilot/instructions/efcore.specs.instructions.md +3 -33
  19. package/package/corpus/harnesses/copilot/instructions/elixir.instructions.md +6 -79
  20. package/package/corpus/harnesses/copilot/instructions/exit-codes-and-wrappers.instructions.md +4 -27
  21. package/package/corpus/harnesses/copilot/instructions/framework-dotnet.instructions.md +4 -6
  22. package/package/corpus/harnesses/copilot/instructions/framework.instructions.md +0 -2
  23. package/package/corpus/harnesses/copilot/instructions/frontend-quality.instructions.md +0 -1
  24. package/package/corpus/harnesses/copilot/instructions/frontend-testing.instructions.md +1 -1
  25. package/package/corpus/harnesses/copilot/instructions/github-actions.instructions.md +7 -138
  26. package/package/corpus/harnesses/copilot/instructions/glossary.instructions.md +19 -19
  27. package/package/corpus/harnesses/copilot/instructions/go-engineering.instructions.md +1 -4
  28. package/package/corpus/harnesses/copilot/instructions/go.instructions.md +2 -7
  29. package/package/corpus/harnesses/copilot/instructions/guards-and-fuses.instructions.md +5 -6
  30. package/package/corpus/harnesses/copilot/instructions/java.instructions.md +7 -129
  31. package/package/corpus/harnesses/copilot/instructions/kotlin.instructions.md +8 -165
  32. package/package/corpus/harnesses/copilot/instructions/local-work-artifacts.instructions.md +4 -1
  33. package/package/corpus/harnesses/copilot/instructions/orleans.instructions.md +5 -98
  34. package/package/corpus/harnesses/copilot/instructions/profiles.instructions.md +9 -63
  35. package/package/corpus/harnesses/copilot/instructions/scripting.instructions.md +1 -1
  36. package/package/corpus/harnesses/copilot/instructions/specs.csharp.instructions.md +8 -148
  37. package/package/corpus/harnesses/copilot/instructions/specs.elixir.instructions.md +4 -37
  38. package/package/corpus/harnesses/copilot/instructions/specs.typescript.instructions.md +3 -1
  39. package/package/corpus/harnesses/copilot/instructions/storybook.instructions.md +7 -70
  40. package/package/corpus/harnesses/copilot/instructions/typescript.instructions.md +8 -98
  41. package/package/corpus/harnesses/copilot/instructions/writing-correct-examples.instructions.md +3 -47
  42. package/package/corpus/harnesses/copilot/instructions/writing-cratis-docs.instructions.md +3 -65
  43. package/package/corpus/hooks/README.md +16 -8
  44. package/package/corpus/hooks/scripts/cratis-cleanup-worktrees.sh +109 -6
  45. package/package/corpus/hooks/scripts/cratis-guard-shell-writes.sh +1 -1
  46. package/package/corpus/hooks/scripts/quality-gates.json +3 -5
  47. package/package/corpus/rules/ai-distribution.md +9 -102
  48. package/package/corpus/rules/authoring-skills.md +3 -5
  49. package/package/corpus/rules/browser.md +8 -49
  50. package/package/corpus/rules/code-health-policy.txt +4 -24
  51. package/package/corpus/rules/code-health.md +1 -1
  52. package/package/corpus/rules/code-quality.csharp.md +3 -84
  53. package/package/corpus/rules/code-quality.md +6 -51
  54. package/package/corpus/rules/code-quality.typescript.md +4 -81
  55. package/package/corpus/rules/codescene.md +5 -54
  56. package/package/corpus/rules/components.md +1 -1
  57. package/package/corpus/rules/cratis-folder-is-configuration.md +5 -22
  58. package/package/corpus/rules/csharp.md +7 -315
  59. package/package/corpus/rules/dialogs.md +1 -1
  60. package/package/corpus/rules/discoverability.md +3 -25
  61. package/package/corpus/rules/documentation-structure-and-formatting.md +5 -151
  62. package/package/corpus/rules/documentation.md +5 -104
  63. package/package/corpus/rules/editing-cratis-docs.md +5 -63
  64. package/package/corpus/rules/efcore.md +8 -55
  65. package/package/corpus/rules/efcore.specs.md +3 -33
  66. package/package/corpus/rules/elixir.md +6 -79
  67. package/package/corpus/rules/exit-codes-and-wrappers.md +4 -27
  68. package/package/corpus/rules/framework-dotnet.md +4 -6
  69. package/package/corpus/rules/framework.md +0 -2
  70. package/package/corpus/rules/frontend-quality.md +0 -1
  71. package/package/corpus/rules/frontend-testing.md +1 -1
  72. package/package/corpus/rules/general.md +2 -2
  73. package/package/corpus/rules/github-actions.md +7 -138
  74. package/package/corpus/rules/glossary.md +19 -19
  75. package/package/corpus/rules/go-engineering.md +1 -4
  76. package/package/corpus/rules/go.md +2 -7
  77. package/package/corpus/rules/guards-and-fuses.md +5 -6
  78. package/package/corpus/rules/java.md +7 -129
  79. package/package/corpus/rules/kotlin.md +8 -165
  80. package/package/corpus/rules/local-work-artifacts.md +4 -1
  81. package/package/corpus/rules/orleans.md +5 -98
  82. package/package/corpus/rules/profiles.md +9 -63
  83. package/package/corpus/rules/scripting.md +1 -1
  84. package/package/corpus/rules/specs.csharp.md +8 -148
  85. package/package/corpus/rules/specs.elixir.md +4 -37
  86. package/package/corpus/rules/specs.typescript.md +3 -1
  87. package/package/corpus/rules/storybook.md +7 -70
  88. package/package/corpus/rules/typescript.md +8 -98
  89. package/package/corpus/rules/writing-correct-examples.md +3 -47
  90. package/package/corpus/rules/writing-cratis-docs.md +3 -65
  91. package/package/corpus/skills/cratis-application-growth/SKILL.md +7 -54
  92. package/package/corpus/skills/cratis-application-growth/references/move-and-untangle.md +49 -0
  93. package/package/corpus/skills/cratis-application-growth/references/rename-window.md +12 -14
  94. package/package/corpus/skills/cratis-application-growth/references/stages.md +2 -2
  95. package/package/corpus/skills/cratis-arc-authorize-request/SKILL.md +2 -2
  96. package/package/corpus/skills/cratis-arc-authorize-request/references/csharp.md +3 -3
  97. package/package/corpus/skills/cratis-arc-authorize-request/references/kotlin.md +2 -2
  98. package/package/corpus/skills/cratis-arc-code-analysis-typescript/SKILL.md +10 -43
  99. package/package/corpus/skills/cratis-arc-code-analysis-typescript/references/rule-fixes.md +40 -0
  100. package/package/corpus/skills/cratis-arc-connect-storage/SKILL.md +1 -1
  101. package/package/corpus/skills/cratis-arc-connect-storage/references/csharp.md +1 -1
  102. package/package/corpus/skills/cratis-arc-declare-command/references/csharp.md +4 -4
  103. package/package/corpus/skills/cratis-arc-declare-command/references/go.md +1 -1
  104. package/package/corpus/skills/cratis-arc-declare-command/references/kotlin.md +6 -7
  105. package/package/corpus/skills/cratis-arc-declare-operation/SKILL.md +2 -8
  106. package/package/corpus/skills/cratis-arc-declare-operation/references/csharp.md +1 -1
  107. package/package/corpus/skills/cratis-arc-diagnose-live-query/SKILL.md +1 -1
  108. package/package/corpus/skills/cratis-arc-diagnose-live-query/references/csharp.md +1 -1
  109. package/package/corpus/skills/cratis-arc-expose-mcp-operation/SKILL.md +6 -12
  110. package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/custom-exposure-and-audit.md +4 -0
  111. package/package/corpus/skills/cratis-arc-expose-query/SKILL.md +2 -2
  112. package/package/corpus/skills/cratis-arc-expose-query/references/csharp.md +11 -4
  113. package/package/corpus/skills/cratis-arc-expose-query/references/typescript.md +1 -1
  114. package/package/corpus/skills/cratis-arc-generate-proxies/SKILL.md +2 -2
  115. package/package/corpus/skills/cratis-arc-generate-proxies/references/csharp.md +1 -1
  116. package/package/corpus/skills/cratis-arc-generate-proxies/references/go.md +19 -2
  117. package/package/corpus/skills/cratis-arc-generate-proxies/references/typescript.md +1 -1
  118. package/package/corpus/skills/cratis-arc-host-application/SKILL.md +1 -1
  119. package/package/corpus/skills/cratis-arc-host-application/references/csharp.md +1 -2
  120. package/package/corpus/skills/cratis-arc-host-application/references/elixir.md +2 -2
  121. package/package/corpus/skills/cratis-arc-host-application/references/go.md +5 -1
  122. package/package/corpus/skills/cratis-arc-host-application/references/java.md +1 -1
  123. package/package/corpus/skills/cratis-arc-host-application/references/kotlin.md +1 -1
  124. package/package/corpus/skills/cratis-arc-host-application/references/typescript.md +1 -1
  125. package/package/corpus/skills/cratis-arc-identity-and-tenancy-kotlin/SKILL.md +4 -7
  126. package/package/corpus/skills/cratis-arc-invoke-command/SKILL.md +1 -1
  127. package/package/corpus/skills/cratis-arc-invoke-command/references/csharp.md +4 -4
  128. package/package/corpus/skills/cratis-arc-invoke-command/references/typescript.md +1 -1
  129. package/package/corpus/skills/cratis-arc-isolate-tenant/SKILL.md +2 -2
  130. package/package/corpus/skills/cratis-arc-isolate-tenant/references/csharp.md +2 -2
  131. package/package/corpus/skills/cratis-arc-isolate-tenant/references/elixir.md +1 -1
  132. package/package/corpus/skills/cratis-arc-isolate-tenant/references/java.md +1 -1
  133. package/package/corpus/skills/cratis-arc-isolate-tenant/references/kotlin.md +1 -1
  134. package/package/corpus/skills/cratis-arc-isolate-tenant/references/typescript.md +4 -2
  135. package/package/corpus/skills/cratis-arc-migrate-relational-schema/SKILL.md +6 -6
  136. package/package/corpus/skills/cratis-arc-page-query/SKILL.md +3 -3
  137. package/package/corpus/skills/cratis-arc-page-query/references/csharp.md +10 -6
  138. package/package/corpus/skills/cratis-arc-page-query/references/elixir.md +2 -2
  139. package/package/corpus/skills/cratis-arc-page-query/references/java.md +1 -1
  140. package/package/corpus/skills/cratis-arc-page-query/references/kotlin.md +1 -1
  141. package/package/corpus/skills/cratis-arc-react-bind-slice/SKILL.md +2 -2
  142. package/package/corpus/skills/cratis-arc-react-bind-slice/references/csharp.md +1 -1
  143. package/package/corpus/skills/cratis-arc-react-bind-slice/references/kotlin.md +1 -1
  144. package/package/corpus/skills/cratis-arc-react-separate-view-model/SKILL.md +7 -3
  145. package/package/corpus/skills/cratis-arc-react-separate-view-model/references/react-routing-and-messaging.md +1 -1
  146. package/package/corpus/skills/cratis-arc-select-backend-sdk/SKILL.md +2 -2
  147. package/package/corpus/skills/cratis-arc-select-backend-sdk/references/elixir.md +2 -4
  148. package/package/corpus/skills/cratis-arc-select-backend-sdk/references/go.md +2 -2
  149. package/package/corpus/skills/cratis-arc-select-backend-sdk/references/java.md +1 -1
  150. package/package/corpus/skills/cratis-arc-select-backend-sdk/references/kotlin.md +2 -2
  151. package/package/corpus/skills/cratis-arc-select-backend-sdk/references/typescript.md +1 -3
  152. package/package/corpus/skills/cratis-arc-spring-data-kotlin/SKILL.md +13 -51
  153. package/package/corpus/skills/cratis-arc-spring-data-kotlin/references/read-model-naming.md +9 -1
  154. package/package/corpus/skills/cratis-arc-spring-data-kotlin/references/storage-boundaries.md +40 -0
  155. package/package/corpus/skills/cratis-arc-storage-typescript/SKILL.md +19 -64
  156. package/package/corpus/skills/cratis-arc-storage-typescript/references/drizzle.md +62 -0
  157. package/package/corpus/skills/cratis-arc-tenancy-typescript/SKILL.md +24 -55
  158. package/package/corpus/skills/cratis-arc-tenancy-typescript/references/tenant-selection.md +49 -0
  159. package/package/corpus/skills/cratis-arc-testing-kotlin/SKILL.md +13 -31
  160. package/package/corpus/skills/cratis-arc-testing-kotlin/references/jvm-scenario-variants.md +25 -0
  161. package/package/corpus/skills/cratis-arc-testing-typescript/SKILL.md +24 -62
  162. package/package/corpus/skills/cratis-arc-testing-typescript/references/hosts-and-runners.md +51 -0
  163. package/package/corpus/skills/cratis-arc-validate-command/SKILL.md +4 -4
  164. package/package/corpus/skills/cratis-arc-validate-command/references/csharp.md +10 -12
  165. package/package/corpus/skills/cratis-arc-validate-command/references/elixir.md +16 -3
  166. package/package/corpus/skills/cratis-arc-validate-command/references/go.md +19 -2
  167. package/package/corpus/skills/cratis-arc-validate-command/references/java.md +20 -7
  168. package/package/corpus/skills/cratis-arc-validate-command/references/kotlin.md +22 -2
  169. package/package/corpus/skills/cratis-arc-validate-command/references/python.md +8 -2
  170. package/package/corpus/skills/cratis-arc-validate-command/references/typescript.md +22 -2
  171. package/package/corpus/skills/cratis-arc-validation-kotlin/SKILL.md +22 -248
  172. package/package/corpus/skills/cratis-arc-validation-kotlin/references/feature-filters.md +55 -0
  173. package/package/corpus/skills/cratis-arc-validation-kotlin/references/model-validation.md +72 -0
  174. package/package/corpus/skills/cratis-arc-validation-kotlin/references/server-validators.md +86 -0
  175. package/package/corpus/skills/cratis-arc-validation-typescript/SKILL.md +27 -275
  176. package/package/corpus/skills/cratis-arc-validation-typescript/references/models-and-queries.md +63 -0
  177. package/package/corpus/skills/cratis-arc-validation-typescript/references/rules-and-checks.md +46 -0
  178. package/package/corpus/skills/cratis-arc-validation-typescript/references/server-decisions.md +114 -0
  179. package/package/corpus/skills/cratis-chronicle-cli-operations/SKILL.md +15 -255
  180. package/package/corpus/skills/cratis-chronicle-cli-operations/references/command-effects.md +13 -6
  181. package/package/corpus/skills/cratis-chronicle-cli-operations/references/inspection.md +75 -0
  182. package/package/corpus/skills/cratis-chronicle-cli-operations/references/project-tooling.md +78 -13
  183. package/package/corpus/skills/cratis-chronicle-cli-operations/references/recovery-and-comparison.md +16 -14
  184. package/package/corpus/skills/cratis-chronicle-connect-application/SKILL.md +1 -1
  185. package/package/corpus/skills/cratis-chronicle-connect-application/references/csharp.md +10 -6
  186. package/package/corpus/skills/cratis-chronicle-connect-application/references/elixir.md +1 -1
  187. package/package/corpus/skills/cratis-chronicle-constrain-append/SKILL.md +2 -2
  188. package/package/corpus/skills/cratis-chronicle-constrain-append/references/csharp.md +8 -8
  189. package/package/corpus/skills/cratis-chronicle-deploy-kernel/SKILL.md +10 -8
  190. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/storage.md +8 -4
  191. package/package/corpus/skills/cratis-chronicle-evolve-event/SKILL.md +4 -4
  192. package/package/corpus/skills/cratis-chronicle-evolve-event/references/csharp.md +2 -2
  193. package/package/corpus/skills/cratis-chronicle-evolve-event/references/deployed-readers.md +21 -8
  194. package/package/corpus/skills/cratis-chronicle-evolve-event/references/elixir.md +1 -1
  195. package/package/corpus/skills/cratis-chronicle-inspect-observer/SKILL.md +1 -1
  196. package/package/corpus/skills/cratis-chronicle-inspect-observer/references/csharp.md +5 -7
  197. package/package/corpus/skills/cratis-chronicle-inspect-observer/references/elixir.md +3 -3
  198. package/package/corpus/skills/cratis-chronicle-mcp-inspection/SKILL.md +10 -80
  199. package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/blocked-tools.md +2 -2
  200. package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/deployment.md +9 -24
  201. package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/observational-tools.md +10 -0
  202. package/package/corpus/skills/cratis-chronicle-project-view/SKILL.md +2 -2
  203. package/package/corpus/skills/cratis-chronicle-project-view/references/csharp.md +7 -6
  204. package/package/corpus/skills/cratis-chronicle-project-view/references/elixir.md +2 -2
  205. package/package/corpus/skills/cratis-chronicle-project-view/references/go.md +6 -0
  206. package/package/corpus/skills/cratis-chronicle-project-view/references/java.md +6 -0
  207. package/package/corpus/skills/cratis-chronicle-project-view/references/kotlin.md +6 -0
  208. package/package/corpus/skills/cratis-chronicle-project-view/references/typescript.md +11 -5
  209. package/package/corpus/skills/cratis-chronicle-protect-decision/SKILL.md +2 -2
  210. package/package/corpus/skills/cratis-chronicle-protect-decision/references/csharp.md +4 -4
  211. package/package/corpus/skills/cratis-chronicle-protect-decision/references/elixir.md +2 -2
  212. package/package/corpus/skills/cratis-chronicle-protect-decision/references/go.md +3 -1
  213. package/package/corpus/skills/cratis-chronicle-protect-personal-data/SKILL.md +1 -1
  214. package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/csharp.md +1 -1
  215. package/package/corpus/skills/cratis-chronicle-publish-contract/SKILL.md +1 -1
  216. package/package/corpus/skills/cratis-chronicle-publish-contract/references/csharp.md +51 -40
  217. package/package/corpus/skills/cratis-chronicle-publish-contract/references/elixir.md +1 -1
  218. package/package/corpus/skills/cratis-chronicle-react-to-fact/SKILL.md +1 -1
  219. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/{occurrences.md → csharp-occurrences.md} +2 -2
  220. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/csharp.md +5 -6
  221. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/go.md +1 -1
  222. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/java.md +1 -1
  223. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/kotlin.md +1 -1
  224. package/package/corpus/skills/cratis-chronicle-record-event/SKILL.md +1 -1
  225. package/package/corpus/skills/cratis-chronicle-record-event/references/csharp.md +21 -19
  226. package/package/corpus/skills/cratis-chronicle-record-event/references/elixir.md +3 -3
  227. package/package/corpus/skills/cratis-chronicle-record-event/references/go.md +1 -1
  228. package/package/corpus/skills/cratis-chronicle-record-event/references/java.md +3 -4
  229. package/package/corpus/skills/cratis-chronicle-record-event/references/kotlin.md +3 -4
  230. package/package/corpus/skills/cratis-chronicle-record-event/references/typescript.md +2 -2
  231. package/package/corpus/skills/cratis-chronicle-reduce-state/SKILL.md +1 -1
  232. package/package/corpus/skills/cratis-chronicle-reduce-state/references/csharp.md +7 -2
  233. package/package/corpus/skills/cratis-chronicle-reduce-state/references/typescript.md +1 -1
  234. package/package/corpus/skills/cratis-chronicle-select-client/SKILL.md +4 -4
  235. package/package/corpus/skills/cratis-chronicle-select-client/references/csharp.md +3 -3
  236. package/package/corpus/skills/cratis-chronicle-select-client/references/elixir.md +2 -6
  237. package/package/corpus/skills/cratis-chronicle-select-client/references/go.md +2 -2
  238. package/package/corpus/skills/cratis-chronicle-select-client/references/java.md +1 -1
  239. package/package/corpus/skills/cratis-chronicle-select-client/references/kotlin.md +1 -5
  240. package/package/corpus/skills/cratis-chronicle-select-client/references/python.md +3 -3
  241. package/package/corpus/skills/cratis-chronicle-select-client/references/typescript.md +2 -2
  242. package/package/corpus/skills/cratis-chronicle-web-workbench/SKILL.md +12 -201
  243. package/package/corpus/skills/cratis-chronicle-web-workbench/references/hosting.md +67 -0
  244. package/package/corpus/skills/cratis-chronicle-web-workbench/references/operations.md +88 -0
  245. package/package/corpus/skills/cratis-ci-pipeline-performance/SKILL.md +8 -4
  246. package/package/corpus/skills/cratis-ci-pipeline-performance/references/build-once-and-shard.md +13 -11
  247. package/package/corpus/skills/cratis-ci-pipeline-performance/references/caching.md +2 -2
  248. package/package/corpus/skills/cratis-ci-pipeline-performance/references/flaky-and-hung-jobs.md +6 -4
  249. package/package/corpus/skills/cratis-ci-pipeline-performance/references/required-checks-and-path-filters.md +20 -61
  250. package/package/corpus/skills/cratis-ci-pipeline-performance/references/security-and-pinning.md +1 -1
  251. package/package/corpus/skills/cratis-cli-terminal-workbench/SKILL.md +15 -26
  252. package/package/corpus/skills/cratis-code-review/SKILL.md +7 -6
  253. package/package/corpus/skills/cratis-commits-and-pull-requests/SKILL.md +1 -1
  254. package/package/corpus/skills/cratis-commits-and-pull-requests/references/pr-description.md +1 -1
  255. package/package/corpus/skills/cratis-components-accessibility/SKILL.md +14 -206
  256. package/package/corpus/skills/cratis-components-accessibility/references/control-labels.md +29 -0
  257. package/package/corpus/skills/cratis-components-accessibility/references/focus-and-announcements.md +8 -0
  258. package/package/corpus/skills/cratis-components-build-canvas/SKILL.md +7 -7
  259. package/package/corpus/skills/cratis-components-build-canvas/references/pixi-items.md +1 -1
  260. package/package/corpus/skills/cratis-components-choose-control/SKILL.md +7 -8
  261. package/package/corpus/skills/cratis-components-choose-control/references/collections.md +2 -2
  262. package/package/corpus/skills/cratis-components-choose-control/references/inputs.md +1 -1
  263. package/package/corpus/skills/cratis-components-compose-toolbar/SKILL.md +22 -27
  264. package/package/corpus/skills/cratis-components-compose-toolbar/references/contributed-tools.md +5 -0
  265. package/package/corpus/skills/cratis-components-coordinate-feedback/SKILL.md +19 -25
  266. package/package/corpus/skills/cratis-components-display-list/SKILL.md +26 -19
  267. package/package/corpus/skills/cratis-components-display-list/references/server-query.md +3 -3
  268. package/package/corpus/skills/cratis-components-edit-schema-data/SKILL.md +15 -12
  269. package/package/corpus/skills/cratis-components-edit-schema-data/references/controlled-editor.md +3 -3
  270. package/package/corpus/skills/cratis-components-explore-data/SKILL.md +7 -7
  271. package/package/corpus/skills/cratis-components-host-chat/SKILL.md +7 -7
  272. package/package/corpus/skills/cratis-components-submit-form/SKILL.md +9 -15
  273. package/package/corpus/skills/cratis-components-submit-form/references/confirmation.md +5 -5
  274. package/package/corpus/skills/cratis-components-submit-form/references/wizard.md +3 -3
  275. package/package/corpus/skills/cratis-components-theme-application/SKILL.md +7 -51
  276. package/package/corpus/skills/cratis-components-theme-application/references/palette.md +49 -0
  277. package/package/corpus/skills/cratis-components-theme-application/references/renderer-adapters.md +4 -2
  278. package/package/corpus/skills/cratis-content-length/SKILL.md +34 -46
  279. package/package/corpus/skills/cratis-content-length/references/length-evidence.md +26 -127
  280. package/package/corpus/skills/cratis-developer-marketing/SKILL.md +15 -27
  281. package/package/corpus/skills/cratis-developer-marketing/references/measurement.md +3 -19
  282. package/package/corpus/skills/cratis-developer-marketing/references/playbook-evidence.md +29 -224
  283. package/package/corpus/skills/cratis-discoverability/SKILL.md +11 -4
  284. package/package/corpus/skills/cratis-discoverability/references/package-metadata.md +2 -2
  285. package/package/corpus/skills/cratis-documentation-writing/SKILL.md +4 -3
  286. package/package/corpus/skills/cratis-engineering-ci-gates/SKILL.md +13 -129
  287. package/package/corpus/skills/cratis-engineering-ci-gates/references/gate-operation.md +132 -0
  288. package/package/corpus/skills/cratis-engineering-consolidation-guard/SKILL.md +11 -100
  289. package/package/corpus/skills/cratis-engineering-consolidation-guard/references/ci-required-check.md +55 -40
  290. package/package/corpus/skills/cratis-engineering-consolidation-guard/references/source-verification.md +68 -0
  291. package/package/corpus/skills/cratis-engineering-consolidation-guard/references/verification-details.md +38 -0
  292. package/package/corpus/skills/cratis-engineering-csharp-conventions/SKILL.md +14 -65
  293. package/package/corpus/skills/cratis-engineering-csharp-conventions/references/exceptions-logging-and-di.md +40 -174
  294. package/package/corpus/skills/cratis-engineering-decision-record/SKILL.md +8 -52
  295. package/package/corpus/skills/cratis-engineering-decision-record/references/decision-pitfalls.md +29 -0
  296. package/package/corpus/skills/cratis-engineering-decision-record/references/decision-scope.md +20 -0
  297. package/package/corpus/skills/cratis-engineering-decision-record/references/record-format.md +3 -4
  298. package/package/corpus/skills/cratis-engineering-docs-authoring/SKILL.md +7 -12
  299. package/package/corpus/skills/cratis-engineering-docs-authoring/references/site-format.md +5 -4
  300. package/package/corpus/skills/cratis-engineering-effect-boundaries/SKILL.md +6 -40
  301. package/package/corpus/skills/cratis-engineering-effect-boundaries/references/failure-archetypes.md +18 -151
  302. package/package/corpus/skills/cratis-engineering-inherited-work/SKILL.md +5 -21
  303. package/package/corpus/skills/cratis-engineering-inherited-work/references/continue-inherited-work.md +19 -0
  304. package/package/corpus/skills/cratis-engineering-issue-design-note/SKILL.md +3 -66
  305. package/package/corpus/skills/cratis-engineering-issue-design-note/references/design-note-format.md +68 -0
  306. package/package/corpus/skills/cratis-engineering-issue-hygiene/SKILL.md +2 -84
  307. package/package/corpus/skills/cratis-engineering-issue-hygiene/references/issue-disposition.md +87 -0
  308. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/SKILL.md +15 -263
  309. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/dependency-map.md +3 -3
  310. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/docker-images.md +28 -6
  311. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/dotnet-nuget.md +18 -14
  312. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/helper-runbook.md +231 -0
  313. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/other-environments.md +2 -3
  314. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/worked-examples.md +62 -77
  315. package/package/corpus/skills/cratis-engineering-post-mortem/SKILL.md +6 -39
  316. package/package/corpus/skills/cratis-engineering-post-mortem/references/proportionate-follow-up.md +36 -0
  317. package/package/corpus/skills/cratis-engineering-regression-cluster/SKILL.md +4 -4
  318. package/package/corpus/skills/cratis-engineering-release-trains/SKILL.md +8 -134
  319. package/package/corpus/skills/cratis-engineering-release-trains/references/candidate-assembly.md +139 -0
  320. package/package/corpus/skills/cratis-engineering-review-rounds/SKILL.md +3 -100
  321. package/package/corpus/skills/cratis-engineering-review-rounds/references/round-handoffs.md +109 -0
  322. package/package/corpus/skills/cratis-environments-and-secrets/SKILL.md +1 -5
  323. package/package/corpus/skills/cratis-environments-and-secrets/references/environment-file.md +1 -3
  324. package/package/corpus/skills/cratis-event-model-diagram/SKILL.md +11 -116
  325. package/package/corpus/skills/cratis-event-model-diagram/references/frame-patterns.md +93 -0
  326. package/package/corpus/skills/cratis-fundamentals-concept-go/SKILL.md +4 -15
  327. package/package/corpus/skills/cratis-fundamentals-name-value/SKILL.md +8 -8
  328. package/package/corpus/skills/cratis-fundamentals-name-value/references/csharp.md +4 -4
  329. package/package/corpus/skills/cratis-fundamentals-name-value/references/elixir.md +1 -1
  330. package/package/corpus/skills/cratis-fundamentals-name-value/references/go.md +1 -1
  331. package/package/corpus/skills/cratis-fundamentals-name-value/references/java.md +5 -5
  332. package/package/corpus/skills/cratis-fundamentals-name-value/references/kotlin.md +15 -2
  333. package/package/corpus/skills/cratis-fundamentals-name-value/references/python.md +1 -1
  334. package/package/corpus/skills/cratis-fundamentals-name-value/references/typescript.md +1 -1
  335. package/package/corpus/skills/cratis-fundamentals-telemetry/SKILL.md +10 -27
  336. package/package/corpus/skills/cratis-fundamentals-telemetry/references/otlp-export.md +16 -0
  337. package/package/corpus/skills/cratis-fundamentals-type-discovery/SKILL.md +26 -188
  338. package/package/corpus/skills/cratis-fundamentals-type-discovery/references/diagnostics.md +14 -0
  339. package/package/corpus/skills/cratis-governed-release-methodology/SKILL.md +7 -5
  340. package/package/corpus/skills/cratis-lens-browser-extension/SKILL.md +23 -157
  341. package/package/corpus/skills/cratis-lens-browser-extension/references/troubleshooting.md +139 -0
  342. package/package/corpus/skills/cratis-llm-friendly-documentation/SKILL.md +7 -5
  343. package/package/corpus/skills/cratis-modeling-design-event-model/SKILL.md +2 -4
  344. package/package/corpus/skills/cratis-modeling-design-event-model/references/model-first.md +7 -0
  345. package/package/corpus/skills/cratis-modeling-discover-timeline/SKILL.md +2 -2
  346. package/package/corpus/skills/cratis-modeling-discover-timeline/references/group-and-document-intake.md +1 -1
  347. package/package/corpus/skills/cratis-modeling-review-event-model/SKILL.md +2 -2
  348. package/package/corpus/skills/cratis-modeling-review-event-model/references/implementation-findings.md +2 -2
  349. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/SKILL.md +5 -23
  350. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/compare-evidence.md +20 -0
  351. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/recovery-inputs.md +3 -3
  352. package/package/corpus/skills/cratis-multi-service-local-orchestration/SKILL.md +8 -63
  353. package/package/corpus/skills/cratis-multi-service-local-orchestration/references/aspire.md +52 -0
  354. package/package/corpus/skills/cratis-observability/SKILL.md +1 -1
  355. package/package/corpus/skills/cratis-observability/references/arc-and-chronicle-signals.md +9 -23
  356. package/package/corpus/skills/cratis-observability/references/chronicle-kernel-export.md +3 -14
  357. package/package/corpus/skills/cratis-observability/references/csharp.md +4 -6
  358. package/package/corpus/skills/cratis-observability/references/elixir.md +1 -1
  359. package/package/corpus/skills/cratis-observability/references/troubleshooting.md +4 -5
  360. package/package/corpus/skills/cratis-onboarding-runtime/SKILL.md +1 -4
  361. package/package/corpus/skills/cratis-onboarding-runtime/references/default-offering.md +0 -3
  362. package/package/corpus/skills/cratis-onboarding-runtime/references/sign-up-review.md +0 -4
  363. package/package/corpus/skills/cratis-orchestration-lanes/SKILL.md +7 -49
  364. package/package/corpus/skills/cratis-orchestration-lanes/references/escalation.md +22 -0
  365. package/package/corpus/skills/cratis-orchestration-lanes/references/inbox-and-handover.md +4 -4
  366. package/package/corpus/skills/cratis-orchestration-lanes/references/placeholders.md +1 -1
  367. package/package/corpus/skills/cratis-orchestration-lanes/references/roles.md +12 -0
  368. package/package/corpus/skills/cratis-orchestration-lanes/references/roll-call.md +12 -0
  369. package/package/corpus/skills/cratis-orchestration-lanes/references/worktrees.md +11 -0
  370. package/package/corpus/skills/cratis-orchestration-merge-gates/SKILL.md +14 -13
  371. package/package/corpus/skills/cratis-orchestration-merge-gates/references/merge-queue.md +51 -26
  372. package/package/corpus/skills/cratis-orchestration-merge-gates/references/unattended-guards.md +8 -14
  373. package/package/corpus/skills/cratis-orleans-jobs/SKILL.md +9 -65
  374. package/package/corpus/skills/cratis-orleans-jobs/references/activation-callbacks.md +5 -0
  375. package/package/corpus/skills/cratis-orleans-jobs/references/lifecycle-and-placement.md +11 -7
  376. package/package/corpus/skills/cratis-orleans-jobs/references/state-machines.md +1 -1
  377. package/package/corpus/skills/cratis-orleans-jobs/references/step-planning.md +27 -0
  378. package/package/corpus/skills/cratis-orleans-jobs/references/storage-and-options.md +35 -0
  379. package/package/corpus/skills/cratis-performance-review/SKILL.md +6 -76
  380. package/package/corpus/skills/cratis-performance-review/references/review-checklist.md +79 -0
  381. package/package/corpus/skills/cratis-platform-configure-environment/SKILL.md +19 -16
  382. package/package/corpus/skills/cratis-platform-contribute-change/SKILL.md +2 -2
  383. package/package/corpus/skills/cratis-platform-deliver-slice/SKILL.md +5 -5
  384. package/package/corpus/skills/cratis-platform-deliver-slice/references/coordinate-slices.md +1 -1
  385. package/package/corpus/skills/cratis-platform-diagnose-slice/SKILL.md +2 -3
  386. package/package/corpus/skills/cratis-platform-prepare-release-pr/SKILL.md +2 -2
  387. package/package/corpus/skills/cratis-platform-start-application/SKILL.md +10 -8
  388. package/package/corpus/skills/cratis-platform-start-application/references/csharp.md +6 -6
  389. package/package/corpus/skills/cratis-platform-start-application/references/java.md +4 -4
  390. package/package/corpus/skills/cratis-platform-start-application/references/kotlin.md +4 -4
  391. package/package/corpus/skills/cratis-platform-verify-service-handoff/SKILL.md +3 -3
  392. package/package/corpus/skills/cratis-release-notes/SKILL.md +9 -133
  393. package/package/corpus/skills/cratis-release-notes/references/channel-guidance.md +59 -0
  394. package/package/corpus/skills/cratis-release-notes/references/publish-repair.md +64 -0
  395. package/package/corpus/skills/cratis-rtk/SKILL.md +12 -18
  396. package/package/corpus/skills/cratis-screenplay-accept-model/SKILL.md +3 -3
  397. package/package/corpus/skills/cratis-screenplay-accept-model/references/capability-consumption.md +1 -1
  398. package/package/corpus/skills/cratis-screenplay-accept-model/references/coverage-obligations.md +1 -1
  399. package/package/corpus/skills/cratis-screenplay-authentication-and-onboarding/SKILL.md +25 -59
  400. package/package/corpus/skills/cratis-screenplay-authentication-and-onboarding/references/onboarding-directives.md +11 -10
  401. package/package/corpus/skills/cratis-screenplay-author-extension/SKILL.md +9 -6
  402. package/package/corpus/skills/cratis-screenplay-author-extension/references/consume.md +3 -3
  403. package/package/corpus/skills/cratis-screenplay-author-extension/references/stage-candidate.md +8 -0
  404. package/package/corpus/skills/cratis-screenplay-availability/SKILL.md +20 -167
  405. package/package/corpus/skills/cratis-screenplay-availability/references/complete-example.md +23 -47
  406. package/package/corpus/skills/cratis-screenplay-availability/references/review-checks.md +9 -10
  407. package/package/corpus/skills/cratis-screenplay-availability/references/runtime-ownership.md +26 -23
  408. package/package/corpus/skills/cratis-screenplay-declare-slice/SKILL.md +6 -14
  409. package/package/corpus/skills/cratis-screenplay-declare-slice/references/projection-replay.md +2 -2
  410. package/package/corpus/skills/cratis-screenplay-declare-slice/references/read-identity.md +1 -1
  411. package/package/corpus/skills/cratis-screenplay-edit-workspace/SKILL.md +7 -9
  412. package/package/corpus/skills/cratis-screenplay-edit-workspace/references/model-notes.md +1 -1
  413. package/package/corpus/skills/cratis-screenplay-handoff-slice/SKILL.md +10 -14
  414. package/package/corpus/skills/cratis-screenplay-model-automation/SKILL.md +1 -1
  415. package/package/corpus/skills/cratis-screenplay-model-automation/references/reaction-boundaries.md +1 -1
  416. package/package/corpus/skills/cratis-screenplay-model-interaction/SKILL.md +6 -31
  417. package/package/corpus/skills/cratis-screenplay-model-interaction/references/shell-and-data.md +22 -0
  418. package/package/corpus/skills/cratis-screenplay-model-translation/SKILL.md +5 -5
  419. package/package/corpus/skills/cratis-screenplay-onboard-workspace/SKILL.md +5 -5
  420. package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/version-migration.md +4 -4
  421. package/package/corpus/skills/cratis-screenplay-recover-intent/SKILL.md +2 -2
  422. package/package/corpus/skills/cratis-screenplay-recover-intent/references/csharp.md +2 -2
  423. package/package/corpus/skills/cratis-screenplay-recover-intent/references/ground-truth-benchmark.md +1 -1
  424. package/package/corpus/skills/cratis-screenplay-specify-outcome/SKILL.md +4 -75
  425. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/host-body-execution.md +0 -2
  426. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/observable-result.md +85 -1
  427. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/query-rejections.md +1 -1
  428. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +15 -133
  429. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/boundaries.md +5 -5
  430. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/chronicle-boundaries.md +4 -12
  431. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/consistency-and-concurrency.md +28 -57
  432. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution-example.md +4 -5
  433. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution.md +13 -20
  434. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/multi-service-models.md +1 -1
  435. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/neighbouring-skills.md +1 -1
  436. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/read-model-keys.md +3 -5
  437. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-id-rules.md +2 -0
  438. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-patterns.md +5 -5
  439. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/streams-example.md +82 -71
  440. package/package/corpus/skills/cratis-security-review/SKILL.md +4 -73
  441. package/package/corpus/skills/cratis-security-review/references/arc-boundaries.md +24 -13
  442. package/package/corpus/skills/cratis-security-review/references/review-checklist.md +74 -0
  443. package/package/corpus/skills/cratis-session-handoff/SKILL.md +7 -32
  444. package/package/corpus/skills/cratis-session-handoff/references/handoff-template.md +2 -2
  445. package/package/corpus/skills/cratis-session-handoff/references/session-hygiene.md +20 -0
  446. package/package/corpus/skills/cratis-showrunner-herald/SKILL.md +9 -17
  447. package/package/corpus/skills/cratis-showrunner-herald/references/options.md +2 -2
  448. package/package/corpus/skills/cratis-showrunner-herald/references/templates-and-images.md +16 -10
  449. package/package/corpus/skills/cratis-social-feed-post/SKILL.md +9 -162
  450. package/package/corpus/skills/cratis-social-feed-post/references/asset-and-formatting.md +37 -0
  451. package/package/corpus/skills/cratis-social-feed-post/references/editorial-checks.md +40 -0
  452. package/package/corpus/skills/cratis-social-feed-post/references/engagement-evidence.md +39 -150
  453. package/package/corpus/skills/cratis-social-feed-post/references/linkedin-media.md +24 -0
  454. package/package/corpus/skills/cratis-social-feed-post/references/other-channels.md +23 -0
  455. package/package/corpus/skills/cratis-specifications-exercise-backend/SKILL.md +5 -5
  456. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-command-results.md +2 -2
  457. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-query-scenario.md +13 -5
  458. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp.md +7 -4
  459. package/package/corpus/skills/cratis-specifications-exercise-backend/references/elixir.md +1 -1
  460. package/package/corpus/skills/cratis-specifications-exercise-backend/references/go.md +20 -4
  461. package/package/corpus/skills/cratis-specifications-exercise-backend/references/typescript.md +1 -1
  462. package/package/corpus/skills/cratis-specifications-isolate-behavior/SKILL.md +2 -2
  463. package/package/corpus/skills/cratis-specifications-observe-ui/SKILL.md +5 -5
  464. package/package/corpus/skills/cratis-specifications-test-application-ui/SKILL.md +2 -2
  465. package/package/corpus/skills/cratis-specifications-test-application-ui/references/typescript-command-results.md +2 -2
  466. package/package/corpus/skills/cratis-specifications-test-typescript-behavior/SKILL.md +2 -2
  467. package/package/corpus/skills/cratis-stage-render-slice/SKILL.md +10 -9
  468. package/package/corpus/skills/cratis-stage-run-sandbox/SKILL.md +3 -3
  469. package/package/corpus/skills/cratis-stage-run-sandbox/references/semantic-spec-runner.md +7 -6
  470. package/package/corpus/skills/cratis-studio-mcp-safety-guidance/SKILL.md +4 -6
  471. package/package/corpus/skills/cratis-technical-examples/SKILL.md +10 -106
  472. package/package/corpus/skills/cratis-technical-examples/references/csharp-package-checks.md +1 -1
  473. package/package/corpus/skills/cratis-technical-examples/references/source-and-format.md +42 -0
  474. package/package/corpus/skills/cratis-technical-examples/references/typescript-package-checks.md +2 -2
  475. package/package/corpus/skills/cratis-technical-examples/references/verification-scope.md +37 -0
  476. package/package/corpus/skills/cratis-ux-review/SKILL.md +8 -40
  477. package/package/corpus/skills/cratis-ux-review/references/capture-contract.md +24 -0
  478. package/package/corpus/skills/cratis-ux-review/references/checklist.md +1 -1
  479. package/package/corpus/skills/cratis-ux-review/references/report-template.md +2 -1
  480. package/package/corpus/skills/cratis-writing-voice-and-cadence/SKILL.md +19 -132
  481. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/ai-tells.md +24 -97
  482. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/author-and-batch.md +23 -0
  483. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/documentation-evidence.md +25 -0
  484. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/interpretation.md +17 -0
  485. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/stock-constructions.md +23 -0
  486. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/voice-guidance.md +8 -29
  487. package/package.json +1 -1
  488. /package/package/corpus/skills/cratis-chronicle-protect-decision/references/{standalone.md → csharp-standalone.md} +0 -0
  489. /package/package/corpus/skills/cratis-engineering-post-mortem/references/{examples/silent-backup-failure.md → silent-backup-failure.md} +0 -0
  490. /package/package/corpus/skills/cratis-engineering-post-mortem/references/{examples/unintended-release-regression.md → unintended-release-regression.md} +0 -0
@@ -0,0 +1,231 @@
1
+ # Local package helper runbook
2
+
3
+ ## Contents
4
+
5
+ - 1. Stamp
6
+ - 2. Build and pack
7
+ - 3. Build an image when needed
8
+ - 4. Use in the consumer
9
+ - 5. Build and exercise the consumer
10
+ - 6. Check before commit or push
11
+ - 7. Restore
12
+ - 8. Clean
13
+ - Configuration and results
14
+
15
+ ## 1. Stamp
16
+
17
+ ```bash
18
+ stamp=$(bash "$local" stamp "$producer")
19
+ ```
20
+
21
+ Format: `<next-patch>-local.<12-digit-UTC-minute>.g<sha7>`, based on the highest reachable
22
+ `vX.Y.Z` tag. Next-patch prereleases sort above the existing release. Hand-written low prerelease versions can violate transitive minimums and cause **NU1605**
23
+ downgrades. Confirm tags cover the consumer's released constraints. With no tag,
24
+ the helper warns and falls back to a base that must be checked before proceeding.
25
+ The `g` prefix keeps even an all-digit SHA nonnumeric in SemVer.
26
+ On a release branch whose intended base cannot be inferred from reachable tags, use `stamp --base-version "$base" "$producer"` (also with `--train`);
27
+ the strict SemVer core overrides tag discovery verbatim. Ensure it meets consumer minima.
28
+ Use the identical stamp for packages and images. A changed build needs a distinct
29
+ stamp; do not overwrite a cached version (the minute and commit determine it).
30
+
31
+ ## 2. Build and pack
32
+
33
+ Run the producer's CI-equivalent build/specs first. NuGet packing builds in Release:
34
+
35
+ ```bash
36
+ bash "$local" pack-nuget "$producer" "$stamp" path/to/producer.slnx
37
+ ```
38
+
39
+ For npm, complete the repository build before
40
+ `bash "$local" pack-npm "$producer" "$stamp"`. Pass: nonzero package count and
41
+ exit `0`. Inspect package dependencies: every locally changed dependency ID must
42
+ resolve to the stamp, not a published fallback. Chronicle's mapped client solution filter includes the code-analysis package
43
+ project; use the mapped target instead of packing the project again. The package IDs a producer should ship are listed in
44
+ [dependency-map.tsv](../scripts/dependency-map.tsv); `closure CONSUMER=PATH PRODUCER=PATH...` prints
45
+ the stamp, every overlay, one `pack-*` command per map row (with its `--property` arguments) and
46
+ ONE `verify-pack` for the whole plan (see [references/dependency-map.md](dependency-map.md)).
47
+ Run the printed commands in order. A successful pack alone does not prove dependency closure;
48
+ `verify-pack` does. After successful packing, the helper atomically records package IDs,
49
+ producer worktree, branch and HEAD in `FEED/stamps/STAMP/record.json` (mode `0600`).
50
+ Pass `--task ID` to `pack-*` and `use-*`, or set `CRATIS_LOCAL_TASK`; without either,
51
+ the recorded task is null. IDs match `^[A-Za-z0-9][A-Za-z0-9._#:/-]{0,127}$` and
52
+ are JSON values, never paths. Prefer `owner/repo#number`.
53
+
54
+ ## 3. Build an image when needed
55
+
56
+ Follow the kernel recipe below before building; it needs published binaries and
57
+ Workbench `wwwroot`. From the producer root, for the selected architecture:
58
+
59
+ ```bash
60
+ docker build -f Docker/DevelopmentSlim/Dockerfile \
61
+ -t "cratis/chronicle:$stamp-development-slim" .
62
+ docker image inspect "cratis/chronicle:$stamp-development-slim"
63
+ ```
64
+
65
+ Pass: build exits `0` and inspection shows the expected tag and architecture.
66
+ Never push these images. Testcontainers uses a local image when the selected tag
67
+ exists in its daemon; ensure the test process uses that same daemon.
68
+
69
+ ## 4. Use in the consumer
70
+
71
+ ```bash
72
+ bash "$local" use-nuget "$consumer" "$stamp" Cratis.Chronicle
73
+ # Source the absolute session/env path printed by use-nuget.
74
+ # For npm instead: bash "$local" use-npm "$consumer" "$stamp"
75
+ export CHRONICLE_KERNEL_VERSION="$stamp" # Studio integration specs, if used
76
+ ```
77
+
78
+ Pass: the helper reports overridden IDs and restore resolves them to local
79
+ artifacts. To isolate NuGet downloads per worktree, set the optional
80
+ `NUGET_PACKAGES` export printed by `use-nuget` before restore and keep it set through
81
+ `clean`; see [versions and cache](dotnet-nuget.md#versions-and-cache).
82
+ Follow any printed `--configfile` instruction. Run Yarn install after
83
+ `use-npm`; it adds file-tarball resolutions, not links to source folders.
84
+
85
+ For independent NuGet producer versions, explicitly opt in with
86
+ `verify-pack --composition FILE`, `use-nuget CONSUMER --composition FILE
87
+ [--pin-transitive]`, then `verify-assets CONSUMER --composition FILE`. See the
88
+ [manifest and native-validation workflow](dotnet-nuget.md#mixed-version-compositions-opt-in).
89
+ No producer is rebuilt; restore before changing a composition or an active legacy overlay.
90
+
91
+ ## 5. Build and exercise the consumer
92
+
93
+ From the consumer root, with the printed NuGet environment sourced:
94
+
95
+ ```bash
96
+ dotnet build path/to/consumer.slnx -c Release -warnaserror
97
+ ./<integration-project-dir>/bin/Release/<TFM>/<AssemblyName> <runner-specific-filter>
98
+ ```
99
+
100
+ Resolve the integration project's actual built spec entrypoint and filter syntax
101
+ from its test runner and repository workflow; without apphost use `dotnet <TargetPath.dll>`. Only VSTest uses `dotnet test <project> -c Release
102
+ --no-build --filter '<regression>'`. Keep the sourced local NuGet environment.
103
+ Substitute the repository's actual commands; for frontend fixes run build, lint,
104
+ specs and the previously broken UI action. Pass: the reproducing spec/action now
105
+ succeeds, at least one intended filtered spec actually ran, and the consumer's
106
+ required CI-equivalent gates pass. Zero matched tests is not proof. Studio local
107
+ Debug builds skip analyzers: pass its full-build switch when matching CI. Read the recipe
108
+ for that switch. On failure, change the producer and repeat with a distinct stamp;
109
+ do not request a release to debug the next round.
110
+
111
+ ## 6. Check before commit or push
112
+
113
+ ```bash
114
+ bash "$local" check "$consumer"
115
+ bash "$local" check "$producer"
116
+ ```
117
+
118
+ Pass: exit `0`, reported file count, `0 leaks`. The scan examines added/changed
119
+ tracked lines against HEAD (or `--staged`) plus non-ignored untracked file contents.
120
+ It detects stamped local versions, the configured feed path, NuGet overlay/source
121
+ properties, package-version updates and local npm file/link/portal references.
122
+ It does not inspect committed history, ignored files, active shell variables or
123
+ all resolved dependencies. A clean diff can report zero files; it is not proof
124
+ that the overlay was inactive. Inspect actual resolution and restore explicitly.
125
+
126
+ ## 7. Restore
127
+
128
+ ```bash
129
+ bash "$local" restore "$consumer"
130
+ unset DirectoryPackagesPropsPath RestoreAdditionalProjectSources CHRONICLE_KERNEL_VERSION
131
+ bash "$local" check "$consumer"
132
+ ```
133
+
134
+ Pass: restoration exits `0`, local overlay files are removed and `check` reports
135
+ `0 leaks`. npm restore accepts overlay-only resolutions and local tarball lockfile
136
+ entries after Yarn install; unrelated edits are refused with backups retained.
137
+ Review conflicts and restore only overlay changes manually, then retry. Never
138
+ overwrite unrelated work. Reinstall released npm dependencies
139
+ and clear image/compose/Gradle selection too. Check the producer for codegen drift;
140
+ Workbench builds can regenerate tracked proxies. Prefer a throwaway worktree, or
141
+ use `git checkout -- <generated-path>` only after proving those edits are disposable
142
+ build output, not pre-existing work.
143
+
144
+ ## 8. Clean
145
+
146
+ `list [--json] [--stamp STAMP]` is a lock-free, read-only inventory, including legacy
147
+ artifacts without records. It shows producer ownership, task state, live/total consumers
148
+ and age, plus recorded state. Invalid records appear as `invalid` rows (JSON includes
149
+ `error`); listing continues and exits `1`. `use-*` records each consumer, including every
150
+ composition member stamp. `restore` restores overlays first, then updates only those
151
+ stamps' consumer entries; an invalid selected record warns with its path and exits `1`.
152
+ A registry-write failure after activation warns and exits `1`, keeping the overlay for restoration.
153
+
154
+ ```bash
155
+ bash "$local" list
156
+ bash "$local" finish --task owner/repo#number
157
+ bash "$local" finish --task owner/repo#number --apply
158
+ ```
159
+
160
+ `finish` is dry-run by default, marks task completion only, and succeeds with a message
161
+ if no record names the task and all records are valid. It warns and skips invalid records
162
+ without rewriting them, continues with valid matches, and exits `1` if any were skipped.
163
+ It never restores consumers or cleans packages automatically.
164
+
165
+ ```bash
166
+ bash "$local" clean "$consumer" --stamp "$stamp"
167
+ # Review listed subjects and stop task-owned containers first.
168
+ bash "$local" clean "$consumer" --stamp "$stamp" --apply
169
+ ```
170
+
171
+ `clean --stamp STAMP` validates only that stamp's record; default clean and `--all`
172
+ validate all selected records. An invalid selected record refuses cleanup (`2`).
173
+
174
+ Use `clean --expired` for retention-based cleanup, then add `--apply` after review.
175
+ It keeps unrecorded stamps, active compositions and live manifest/overlay references
176
+ (in registered sessions or recorded consumer worktrees). Otherwise, a stamp expires
177
+ when every non-null producing task is finished (at least one required), all recorded
178
+ consumers are gone (at least one required), or a real release at or above its base exists,
179
+ in that order. Offline evidence is NuGet `.nupkg.metadata` in the shared or registered
180
+ private caches; npm has no offline release check. `--online` opts into NuGet/npm
181
+ registry checks with a 10-second timeout; failures provide no evidence. Each stamp
182
+ prints `expired STAMP: REASON` or `kept STAMP: REASON`; kept stamps succeed (`0`).
183
+ `list --json` reports the same offline decision in `expiry:{expired,reasons,kept}`.
184
+ `--expired` cannot combine with `--stamp` or `--all`. It retains the same lock, fuse
185
+ and dry-run default. Applying also prunes gone consumers and missing session registrations.
186
+
187
+ Pass: expected subjects listed, then removed without force. Cleanup covers local
188
+ feed packages, NuGet version folders, discoverable Yarn cache entries, local image
189
+ tags, stamp record directories and registered sessions; unresolved npm backups block it. Missing Docker/Yarn
190
+ probes are reported as skipped cleanup, not proof those stores are empty. Default
191
+ fuse: 500 subjects; investigate an unexpectedly large list instead of raising it.
192
+ NuGet cleanup scans the active shared cache and every registered private cache.
193
+ It removes only recognized local/train version folders. Missing or mismatched
194
+ private-cache markers, symlinks and paths outside the consumer's Git directory
195
+ refuse the entire request. `restore` keeps private caches. After restoring overlays
196
+ and removing live stamps, use `clean "$consumer" --private-cache` to review whole-cache
197
+ removal, then add `--apply` to remove the marked cache and its session registration.
198
+ Prefer `--stamp` to `--all`. Legacy cleanup refuses the entire request (exit `2`,
199
+ also in dry-run) for registered live overlay/manifest references; it reports kept
200
+ stamps and paths. Restore/remove references, then retry. This is not an ownership
201
+ registry; unregistered consumers need manual review. To retire a hand-rolled
202
+ `-local.N` feed, restore released pins/sources and switch to helper stamps; review
203
+ old artifacts separately because `clean` does not recognize them. See
204
+ [migration](dotnet-nuget.md#retire-a-hand-rolled-feed).
205
+
206
+ ## Configuration and results
207
+
208
+ The trusted shell config `${XDG_CONFIG_HOME:-$HOME/.config}/cratis/local-packages.env`
209
+ is sourced before defaults. Do not put credentials in it. Environment settings:
210
+
211
+ | Setting | Default / purpose |
212
+ | --- | --- |
213
+ | `CRATIS_LOCAL_FEED` | `${XDG_CACHE_HOME:-$HOME/.cache}/cratis/local-feed`; outside tracked files |
214
+ | `CRATIS_LOCAL_SESSION_DIR` | `<absolute-git-dir>/cratis-local`; per-worktree overlays/backups |
215
+ | `NUGET_PACKAGES` | `$HOME/.nuget/packages`; active cache scanned by `clean` |
216
+ | `CRATIS_LOCAL_TASK` | Optional task ID, convention `owner/repo#number`; `--task ID` on pack/use/finish overrides it |
217
+ | `CRATIS_LOCAL_PRIVATE_CACHE` | `0`; `1` opts `use-nuget` into a marked worktree cache, also available with `--private-cache` |
218
+ | `CRATIS_LOCAL_CLEAN_MAX` | `500`; cleanup subject fuse |
219
+ | `CRATIS_LOCAL_RUN` | Optional executable wrapper receiving `build <label> -- <command...>` |
220
+
221
+ If the environment has a build queue wrapper, set `CRATIS_LOCAL_RUN` to its absolute
222
+ executable path. The helper wraps pack steps only; run other heavy builds, image
223
+ builds and container specs through that environment's wrapper separately. No queue
224
+ wrapper is required by the corpus. Global `--dry-run` prints mutations while still
225
+ doing read-only discovery.
226
+
227
+ Helper exit codes: `0` success, `1` findings/failed operation, `2` cannot run or
228
+ invalid input. Neither `1` nor `2` is a pass. After script changes, execute
229
+ `bash "$local" --self-test`; pass requires printed passed/skipped counts and exit
230
+ `0`. Registry tests require node; npm overlay/restore tests use the inherited PATH. Real packing
231
+ is not exercised by this hermetic self-test. Report any unrun ecosystem checks.
@@ -1,11 +1,10 @@
1
1
  <!-- Copyright (c) Cratis. All rights reserved. -->
2
-
3
- Before running the commands, set `scratch` to an absolute path under the repository’s ignored `.ai-work` directory. Create it first and confirm it is ignored; never run the commands with `scratch` unset.
4
-
5
2
  <!-- Licensed under the MIT license. See LICENSE file in the project root for full license information. -->
6
3
 
7
4
  # Other developer machines and agent hosts
8
5
 
6
+ Before running the commands, set `scratch` to an absolute path under the repository’s ignored `.ai-work` directory. Create it first and confirm it is ignored; never run the commands with `scratch` unset.
7
+
9
8
  The corpus has no dependency on a particular home directory, queue runner or
10
9
  Docker desktop application. Execute the same helper from the installed skill.
11
10
  Use macOS or Linux with bash/git; Windows requires WSL. Add the toolchains selected
@@ -13,31 +13,19 @@
13
13
  - Arc → Chronicle (NuGet)
14
14
  - Fundamentals → Arc → Chronicle under one stamp
15
15
 
16
- Run times below are rounded from one measured run on a shared machine; queue wait is not included.
17
16
  Use absolute producer/consumer paths for your checkouts and the entry point's
18
17
  `local` helper variable. These recipes define work to execute, not pre-verified
19
18
  results. Substitute actual regression filters and CI commands; stop on a failed
20
- step. Apply the entry point's check/restore/cleanup sequence to both repositories.
19
+ step. Apply the helper runbook’s check/restore/cleanup sequence to both repositories.
21
20
 
22
21
 
23
22
  ## Chronicle kernel → Studio integration specs
24
23
 
25
24
  1. Reproduce Studio's integration bug against its released client/kernel. Record
26
25
  the regression filter and inspect Studio's CI build/test commands.
27
- 2. Generate the stamp and pack client packages plus their dependencies.
28
- A client solution filter can omit CodeAnalysis. Include its package explicitly:
29
-
30
- ```bash
31
- stamp=$(bash "$local" stamp "$producer")
32
- bash "$local" pack-nuget "$producer" "$stamp" path/to/client.slnf
33
- bash "$local" pack-nuget "$producer" "$stamp" \
34
- Source/Clients/DotNET.CodeAnalysis.Package/DotNET.CodeAnalysis.Package.csproj
35
- ```
36
-
37
- Create the filter in ignored scratch space with paths appropriate to that
38
- Chronicle checkout. Inspect the nuspec dependencies: Contracts and every other
39
- local dependency must exist in the feed at the same stamp. Do not proceed if a
40
- required package is missing simply because one pack command passed.
26
+ 2. Follow the helper’s closure plan for Chronicle → Studio. The mapped client
27
+ filter includes the code-analysis package project. Require `verify-pack` to
28
+ pass before using those client packages in Studio.
41
29
  3. Publish the Release development kernel for the daemon's RID, build Workbench
42
30
  `wwwroot`, and build/inspect `cratis/chronicle:<stamp>-development-slim` as in
43
31
  [docker-images.md](docker-images.md). Preserve generated proxy edits.
@@ -49,7 +37,7 @@ step. Apply the entry point's check/restore/cleanup sequence to both repositorie
49
37
  ```bash
50
38
  export CHRONICLE_KERNEL_VERSION="$stamp"
51
39
  cd "$consumer"
52
- dotnet build path/to/Studio.slnx -c Release -p:StudioFullBuild=true -warnaserror
40
+ dotnet build path/to/Studio.slnx -c Release -warnaserror
53
41
  ./<integration-project-dir>/bin/Release/<TFM>/<AssemblyName> <runner-specific-filter>
54
42
  ```
55
43
 
@@ -59,19 +47,15 @@ step. Apply the entry point's check/restore/cleanup sequence to both repositorie
59
47
  `dotnet test <project> -c Release --no-build --filter '<regression>'`.
60
48
  Inspect the current consumer workflow before claiming CI equivalence.
61
49
  Studio defaults kernel selection to the client version when the environment
62
- override is absent. Ensure logs show the stamped local image. Local Debug
63
- Studio builds skip analyzers; use `-p:StudioFullBuild=true` to match CI analyzer
64
- coverage. Then run all required consumer gates, not only the filtered spec.
50
+ override is absent. Ensure logs show the stamped local image. For a local Debug check only, use `-p:StudioFullBuild=true` when
51
+ analyzer coverage is required. Then run all required consumer gates, not only the filtered spec.
65
52
  6. If the bug remains, change Chronicle and repeat with a distinct stamp. If it
66
53
  passes, run `check` before commits/pushes, restore, unset overrides, check again,
67
54
  stop task-owned containers and review/apply stamp-scoped cleanup. Release the
68
55
  producer normally and bump Studio to released pins later; never commit local
69
56
  package versions or the local image selector.
70
57
 
71
- In run time this loop takes minutes: client packs about 1–2 minutes, kernel
72
- publish a few minutes, image build seconds with a warm cache, the Studio spec
73
- project build about 6 minutes, and the spec class itself seconds. When the spec
74
- fails because the local kernel refuses to start (for example a startup
58
+ When the spec fails because the local kernel refuses to start (for example a startup
75
59
  requirement the consumer's container setup does not satisfy yet), that is a
76
60
  real finding about the consumer, not about the overlay: read the container log
77
61
  before changing the producer.
@@ -93,9 +77,8 @@ spec executable (or `dotnet <TargetPath.dll>` without apphost) for each project
93
77
  VSTest projects use `dotnet test <project> --no-build --configuration Release --framework
94
78
  net10.0`. Inspect the current consumer workflow before claiming equivalence. Finish by listing Arc's `obj/project.assets.json` files for the stamp.
95
79
 
96
- - Pass: the Fundamentals IDs in `project.assets.json` are at the stamp, build has 0 warnings and 0 errors, 18 spec projects run and none fail.
97
- - Time: pack about 4 min, build about 6 min, the spec projects about 18 min.
98
- - Pitfall: skipping the embedded viewer build makes four `Screenplay.Embedded.Specs` fail
80
+ - Pass: the Fundamentals IDs in `project.assets.json` are at the stamp, the required build succeeds and every selected spec runner exits successfully.
81
+ - Pitfall: skipping the embedded viewer build can make `Screenplay.Embedded.Specs` fail
99
82
  with a 404 for the viewer. It is the missing step, not the overlay.
100
83
  - Pitfall: Arc's own `@cratis/fundamentals` npm line is out of scope for the NuGet stamp.
101
84
  - Skip producer specs when the producer is unchanged `origin/main`; its CI covered that SHA.
@@ -121,8 +104,6 @@ scripts/generate-scene-package-catalog.mjs --check`, then in Core `yarn build` a
121
104
 
122
105
  - Pass: every installed `@cratis/components*` copy is at the stamp (`yarn why` and the installed `package.json` files),
123
106
  `yarn why` shows one resolution, and every gate above exits 0.
124
- - Time: Components `ci` about 7 min, all-workspace build about 1 min, pack about 2 min,
125
- Studio install under 30 s, Studio gates about 8 min.
126
107
  - Pitfall: `yarn workspace @cratis/components run ci` builds only the core package. Run
127
108
  `yarn build` at the Components root before `pack-npm`, or the adapter tarballs have no
128
109
  `dist` and Studio fails with `Failed to resolve entry for package
@@ -132,30 +113,27 @@ scripts/generate-scene-package-catalog.mjs --check`, then in Core `yarn build` a
132
113
 
133
114
  ## Chronicle clients → Direct (NuGet)
134
115
 
135
- ```bash
136
- stamp=$(bash "$local" stamp "$chronicle")
137
- (cd "$chronicle" && dotnet pack Source/Clients/Packages.slnf -c Release -p:PackageVersion=$stamp -p:Version=$stamp \
138
- -p:IsPackaging=true -p:DisableProxyGenerator=true -p:DisableDockerBuild=true -o "$CRATIS_LOCAL_FEED/nuget")
139
- bash "$local" use-nuget "$direct" "$stamp"
140
- ```
141
-
142
- Gates (Direct `build.yml`): `dotnet build Source/Direct/Direct.csproj -c Release
143
- -p:DisableProxyGenerator=true`, the same in Debug with `-warnaserror`, then the project's
144
- verified built Debug spec entrypoint. Build `Source/Assurance/Assurance.csproj` in the
145
- matching configuration and run its verified spec entrypoint too; do not guess assembly
146
- names or start an application server. Use the project's actual test runner;
147
- only VSTest uses `dotnet test <project> --no-build` in that configuration. Inspect the
148
- current consumer workflow before claiming equivalence. Then check `project.assets.json`. Image-based specs also need the producer image tag.
149
-
150
- - Pass for a consumer whose pins lag the producer: every Chronicle ID is in the feed at the
151
- stamp, the Release build with the owner's floors passes, and `project.assets.json` shows every
152
- stamped ID at the stamp. The Debug `-warnaserror` build and the specs are gated on the consumer owner's pin
153
- bump (Arc, Orleans, Screenplay, MongoDB.Driver) and on the analyzer fixes the newer pins
154
- bring. Record that dependency; do not edit the consumer's source or tracked pins.
155
- - Time: pack about 5 min; the Release build about 2 min.
156
- - Pitfall: pass pack properties as `-p:` arguments to `dotnet pack`, never
157
- as environment variables; `pack-nuget` takes none. An exported `IsPackaging=true` reaches Chronicle's nested
158
- `dotnet run` code generator and fails with a multi-target error.
116
+ Use `bash "$local" closure "Direct=$direct" "Chronicle=$chronicle"` and follow
117
+ its printed plan. The mapped `pack-nuget` command passes Chronicle’s packaging
118
+ properties as `--property` arguments and records the resulting stamp.
119
+
120
+ Run the affected backend targets from Direct's `build.yml` using the printed
121
+ NuGet overlay environment. The host target is `Source/Core/Core.csproj`, built
122
+ in Release and Debug with `-p:DisableProxyGenerator=true -p:CratisProxiesSkip=true`;
123
+ Debug adds `-warnaserror -m:1 -p:UseSharedCompilation=false`. For the Debug
124
+ architecture lane, build `Source/Architecture.Specs/Architecture.Specs.csproj`
125
+ with the same Debug flags, then run
126
+ `node .github/scripts/spec5-gate.mjs new --project Architecture.Specs`.
127
+ When the integration lane applies, build `Source/Specs.EndToEnd/Specs.EndToEnd.csproj`
128
+ in Debug as well and run `node .github/scripts/spec5-gate.mjs integration --mode new --shard "$shard"`
129
+ for each shard named by the workflow. Set up the lane's prerequisites first,
130
+ including the stamped kernel when the regression crosses that boundary.
131
+
132
+ - Pass only when `verify-assets` confirms the planned Chronicle resolution and
133
+ the applicable gates execute successfully. Report a lane you cannot run as
134
+ unverified; a passing Release build does not stand in for Debug or specs.
135
+ - Pitfall: do not export `IsPackaging=true`. That variable leaks to nested
136
+ `dotnet run` in Chronicle and can select multiple target frameworks.
159
137
  - Pitfall: a consumer whose pins lag the producer's own pins fails with NU1109 or NU1605.
160
138
  That is the upgrade the consumer would need anyway; record the bump list.
161
139
  - Pitfall: a released umbrella package can pull in a released package that is also stamped
@@ -163,24 +141,34 @@ current consumer workflow before claiming equivalence. Then check `project.asset
163
141
 
164
142
  ## Screenplay → Stage and Studio (NuGet and npm)
165
143
 
144
+ The shipped map has the Screenplay pack target and npm ID, but no NuGet IDs.
145
+ Add the verified inventory to a scratch copy; do not edit the shipped map or
146
+ consumer pins. Set `scratch` to an absolute ignored directory and `local` to
147
+ the helper's absolute path:
148
+
166
149
  ```bash
167
- stamp=$(bash "$local" stamp "$screenplay")
168
- (cd "$screenplay" && yarn install && yarn workspaces foreach -Rt --from @cratis/screenplay-mcp-app run build \
169
- && bash "$local" pack-nuget . "$stamp" Screenplay.slnx && yarn build && bash "$local" pack-npm . "$stamp")
170
- bash "$local" use-nuget "$stage" "$stamp"; bash "$local" use-nuget "$studio" "$stamp"
171
- bash "$local" use-npm "$studio" "$stamp" # at the workspace root, not the nested app
150
+ map="$scratch/screenplay-map.tsv"
151
+ cp "$(dirname "$local")/dependency-map.tsv" "$map"
152
+ printf 'ids\tScreenplay\tnuget\t%s\n' 'Cratis.Screenplay,Cratis.Screenplay.CanonicalCorpus,Cratis.Screenplay.Conformance,Cratis.Screenplay.Contexts,Cratis.Screenplay.Contracts,Cratis.Screenplay.Matching,Cratis.Screenplay.Mcp,Cratis.Screenplay.Tool' >> "$map"
153
+ bash "$local" closure --map "$map" "Stage=$stage" "Screenplay=$screenplay"
154
+ bash "$local" closure --map "$map" "Studio=$studio" "Screenplay=$screenplay"
172
155
  ```
173
156
 
174
- `closure` exits 2 for this chain until `dependency-map.tsv` has the Screenplay NuGet `ids` (it lists
175
- only npm IDs); add them from the publish workflow first, then use the printed commands and its one
176
- `verify-pack`.
177
-
178
- Gates: Stage's frontend `npm ci`, test and build, then `dotnet build` in Debug and the repository's
179
- own spec-shard helper; skip probes that need a live kernel or database and say so. Studio:
180
- `dotnet build` of its solution in Debug with warnings as errors, then the frontend `yarn ci` and
181
- `yarn build` of every workspace that consumes the language package.
182
-
183
- - Pass: `project.assets.json` shows the stamp in both NuGet consumers and `yarn why` at the Studio workspace root shows one resolution; specs executed > 0.
157
+ Before executing either plan's pack commands, run `yarn install` and
158
+ `yarn workspaces foreach -Rt --from @cratis/screenplay-mcp-app run build`
159
+ from the Screenplay root; the .NET packages embed the built board. Build the
160
+ language workspace (`yarn build` at the root) before `pack-npm`. Use one stamp
161
+ for both plans; pack NuGet once and npm once. Run each plan's `verify-pack`
162
+ after packing, then run its overlay, restore and `verify-assets` steps. Studio
163
+ needs both the NuGet and npm resolution checks; install at its workspace root.
164
+
165
+ For Stage, build in Debug and use `.github/spec-shards.py` as in `dotnet-build.yml`;
166
+ if the regression crosses the frontend, also run `npm ci --prefix Source/Frontend`,
167
+ `npm test --prefix Source/Frontend` and `npm run build --prefix Source/Frontend`.
168
+ For Studio, use the Debug backend lanes in `backend-specs.yml` and the frontend
169
+ builds for the workspaces that consume the language package. Run the reproducer
170
+ in each affected consumer; report any live-service lane you cannot run as
171
+ unverified. Finish with each plan's restore and leak checks.
184
172
  - Pitfall: a repository without a committed lockfile fails `yarn install --immutable`; use plain
185
173
  `yarn install` there.
186
174
  - Pitfall: yarn hoists to the root `node_modules`; check and install at the root.
@@ -209,13 +197,12 @@ with `NODE_OPTIONS=--max-old-space-size=4096`.
209
197
  - Pitfall: build the Arc embedded viewer before the .NET build, or the Arc build fails.
210
198
  - Pitfall: Chronicle resolves Arc packages to the stamp only where its manifests pin them; a
211
199
  released package that depends on a released Arc package keeps that version. Record it.
212
- - Pitfall: `use-npm` overlays only the consumer repository root `package.json` and has no option to
213
- target `Source/Workbench`, so this recipe does not put the Arc npm packages under the Workbench.
214
- To verify them there, run `pack-npm` in Arc, then add `file:` resolutions to the Workbench
215
- manifest by hand and run `yarn install`; do not claim the Workbench result without that step.
216
- - Pitfall: the Workbench is its own Yarn project with its own lockfile. `restore` refuses to
217
- put back a changed lockfile; in a throwaway worktree check out the two manifests and remove the
218
- helper's backup folder.
200
+ - Choose npm as well when the Workbench must exercise changed Arc packages.
201
+ Run `pack-npm` in Arc, then `use-npm "$chronicle" "$stamp" --dir Source/Workbench`
202
+ via the helper. Install in `Source/Workbench` and run `verify-assets --npm`
203
+ with the same `--dir` before the Workbench gate. Use the normal `restore`
204
+ command. If it detects unrelated lockfile edits, review its retained backups
205
+ instead of discarding the file.
219
206
 
220
207
  ## Fundamentals → Arc → Chronicle under one stamp
221
208
 
@@ -240,5 +227,3 @@ its direct Fundamentals pin at the release and bring back the `MissingMethodExce
240
227
  inspect the nuspec of each pack before overlaying it.
241
228
  - A stamp is tied to the commit of the repository it was generated from. After changing any
242
229
  layer, generate a new stamp and repeat the chain.
243
- - Time: each pack 15–30 minutes with queue waits; the Chronicle build and specs about 5 minutes
244
- of run time each.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: cratis-engineering-post-mortem
3
- description: Use when an incident, outage or failed release needs a post-incident review with a UTC timeline, root causes and owned follow-up actions. Not for fixing the defect, a repeated-regression fix or release notes.
3
+ description: Use when an incident, outage or failed release needs a post-incident review. Not for designing a shared regression gate (use cratis-engineering-regression-cluster).
4
4
  license: LICENSE
5
5
  ---
6
6
 
@@ -37,8 +37,8 @@ keep following this skill.
37
37
  Read logs without printing secrets; redact credentials in anything you share.
38
38
  3. **Build the timeline in UTC.** One row per event: ISO-8601 UTC time, the
39
39
  event, a source link and a Confidence (columns: Time (UTC), Event, Source,
40
- Confidence). Convert local times and note the original zone. Bold the first and last row of the
41
- outage and compute the durations (total, to fix, fix to deploy).
40
+ Confidence). Convert local times and note the original zone. Identify the first and last observed outage events and compute only durations
41
+ with evidence for both endpoints; otherwise record the gap.
42
42
  4. **State impact with its measure.** A short text (how long, how much, each
43
43
  with the source of the number, estimates marked) plus an **Affected** list
44
44
  whose items each carry a Confidence. Name remaining exposure and any
@@ -72,10 +72,10 @@ every heading, table and a small synthetic example.
72
72
  Read [references/public-safe-wording.md](references/public-safe-wording.md) before publishing: what to remove or
73
73
  generalize, before and after pairs, and a scan checklist.
74
74
 
75
- Read [references/examples/silent-backup-failure.md](references/examples/silent-backup-failure.md) when the incident is a long
75
+ Read [references/silent-backup-failure.md](references/silent-backup-failure.md) when the incident is a long
76
76
  undetected failure or a monitoring gap.
77
77
 
78
- Read [references/examples/unintended-release-regression.md](references/examples/unintended-release-regression.md) when the incident
78
+ Read [references/unintended-release-regression.md](references/unintended-release-regression.md) when the incident
79
79
  is a release or deploy that caused a regression and needs a UTC timeline with
80
80
  inferred and unverified claims.
81
81
 
@@ -89,37 +89,4 @@ to verify it; the
89
89
  checklist in the public-safe reference finds nothing. Zero violations is a
90
90
  pass.
91
91
 
92
- ## Fix proportionately
93
-
94
- An error, failed run or production incident is first a question, not a mandate for new rules. Analyse it, then pick the narrowest change that addresses the analysed cause.
95
-
96
- - **Analyse first:** reproduce it or collect the evidence, find the root cause, and size it: how often, who is affected, the blast radius, and whether it is already fixed upstream.
97
- - **Separate containment from the fix.** Containment is temporary, reversible, scoped to the incident, and has an expiry or removal condition. The fix is the smallest change at the root cause.
98
- - **Prefer fixing the defect over adding policy.** A new rule, gate, ban, mandatory manual step or blanket hardening needs evidence that the failure recurs or is severe, a stated ongoing cost (what it slows or blocks for everyone), the narrower alternatives considered, an owner and a review condition. One incident is not a pattern.
99
- - **Never trade a rare failure for permanent friction** on every change or release. If the mitigation costs more than the failure it prevents, it is the wrong mitigation.
100
- - **Remove it when the cause is fixed.** Link the incident from the rule so a later reader can retire it.
101
-
102
- ## Pitfalls
103
-
104
- - **Hearsay as fact.** "Someone said" belongs in the unverified claims list until a
105
- log, run or record confirms it.
106
- - **Mixed time zones.** One zone in the timeline, and it is UTC.
107
- - **A bundled action.** One issue covering several actions loses ownership of
108
- each; file one per action.
109
- - **Filing in the reviewing repository.** The issue goes where the fix lives,
110
- not where the incident was noticed.
111
- - **A check that accepts any answer.** A smoke test or health check that cannot
112
- see the failing path, or that accepts the wrong status, is a detection gap;
113
- name it and assert the exact result.
114
- - **One incident, one blanket.** A new gate, ban or freeze for a single incident, with
115
- no cost or removal condition. Pick the narrowest fix for the analysed cause; see
116
- "Fix proportionately".
117
- - **A protective hold with no end.** A disabled job, a freeze or a manual
118
- override needs an owner, an expiry and something that watches it; otherwise
119
- the protection becomes the next incident. Prefer a gate that blocks the
120
- unsafe action over a switch someone must remember to flip back.
121
- - **A single backup or monitor.** Two mechanisms that fail independently hide
122
- each other when only one is watched.
123
- - **Copying logs verbatim.** Quote the minimum and scrub it.
124
- - **Naming individuals.** Use roles; blame teaches nothing a system change can
125
- keep.
92
+ When proposing an enduring gate or a containment step, check [proportionate follow-up](references/proportionate-follow-up.md).
@@ -0,0 +1,36 @@
1
+ # Proportionate post-incident follow-up
2
+
3
+ ## Fix proportionately
4
+
5
+ An error, failed run or production incident is first a question, not a mandate for new rules. Analyse it, then pick the narrowest change that addresses the analysed cause.
6
+
7
+ - **Analyse first:** reproduce it or collect the evidence, find the root cause, and size it: how often, who is affected, the blast radius, and whether it is already fixed upstream.
8
+ - **Separate containment from the fix.** Containment is temporary, reversible, scoped to the incident, and has an expiry or removal condition. The fix is the smallest change at the root cause.
9
+ - **Prefer fixing the defect over adding policy.** A new rule, gate, ban, mandatory manual step or blanket hardening needs evidence that the failure recurs or is severe, a stated ongoing cost (what it slows or blocks for everyone), the narrower alternatives considered, an owner and a review condition. One incident is not a pattern.
10
+ - **Never trade a rare failure for permanent friction** on every change or release. If the mitigation costs more than the failure it prevents, it is the wrong mitigation.
11
+ - **Remove it when the cause is fixed.** Link the incident from the rule so a later reader can retire it.
12
+
13
+ ## Pitfalls
14
+
15
+ - **Hearsay as fact.** "Someone said" belongs in the unverified claims list until a
16
+ log, run or record confirms it.
17
+ - **Mixed time zones.** One zone in the timeline, and it is UTC.
18
+ - **A bundled action.** One issue covering several actions loses ownership of
19
+ each; file one per action.
20
+ - **Filing in the reviewing repository.** The issue goes where the fix lives,
21
+ not where the incident was noticed.
22
+ - **A check that accepts any answer.** A smoke test or health check that cannot
23
+ see the failing path, or that accepts the wrong status, is a detection gap;
24
+ name it and assert the exact result.
25
+ - **One incident, one blanket.** A new gate, ban or freeze for a single incident, with
26
+ no cost or removal condition. Pick the narrowest fix for the analysed cause; see
27
+ "Fix proportionately".
28
+ - **A protective hold with no end.** A disabled job, a freeze or a manual
29
+ override needs an owner, an expiry and something that watches it; otherwise
30
+ the protection becomes the next incident. Prefer a gate that blocks the
31
+ unsafe action over a switch someone must remember to flip back.
32
+ - **A single backup or monitor.** Two mechanisms that fail independently hide
33
+ each other when only one is watched.
34
+ - **Copying logs verbatim.** Quote the minimum and scrub it.
35
+ - **Naming individuals.** Use roles; blame teaches nothing a system change can
36
+ keep.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: cratis-engineering-regression-cluster
3
- description: Use when a third regression hits the same surface, a fix keeps being reapplied or recurring failures need a shared cause. Not for isolated bugs, consolidation loss checks or false-success effect boundaries.
3
+ description: Use when three or more failures on the same surface may share a cause. Not for diagnosing silent partial success (use cratis-engineering-effect-boundaries).
4
4
  license: LICENSE
5
5
  ---
6
6
 
@@ -10,14 +10,14 @@ Name the observed failure, the promised outcome and the first boundary where the
10
10
 
11
11
  ## Count first
12
12
 
13
- Before fixing an issue, count the earlier ones on its surface:
13
+ Before fixing an issue, set `surface_path` to the relevant repository path and search for earlier occurrences:
14
14
 
15
15
  ```bash
16
16
  gh issue list --state all --search "<surface> in:title,body" --limit 50
17
- git log --oneline -- <paths of the surface>
17
+ git log --oneline -- "$surface_path"
18
18
  ```
19
19
 
20
- Count bugs, regressions, reverts and review findings, open or closed. Fewer
20
+ Count distinct occurrences across bugs, regressions, reverts and review findings, open or closed. The example limits issue results to 50; narrow broad queries before treating the returned set as complete. Fewer
21
21
  than three: fix the instance with a regression specification. Three or more: compare their failure signatures. Follow the steps below only for a shared signature; if the evidence points to one path, fix and prove that path alone.
22
22
 
23
23
  ## Steps