@cratis/pi 8.2.1 → 8.3.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 (1140) hide show
  1. package/package/corpus/harnesses/copilot/instructions/ai-distribution.instructions.md +7 -9
  2. package/package/corpus/harnesses/copilot/instructions/authoring-skills.instructions.md +25 -55
  3. package/package/corpus/harnesses/copilot/instructions/browser.instructions.md +10 -7
  4. package/package/corpus/harnesses/copilot/instructions/code-health.instructions.md +8 -1
  5. package/package/corpus/harnesses/copilot/instructions/code-quality.csharp.instructions.md +3 -2
  6. package/package/corpus/harnesses/copilot/instructions/code-quality.instructions.md +5 -5
  7. package/package/corpus/harnesses/copilot/instructions/code-quality.typescript.instructions.md +4 -3
  8. package/package/corpus/harnesses/copilot/instructions/codescene.instructions.md +5 -4
  9. package/package/corpus/harnesses/copilot/instructions/components.instructions.md +6 -8
  10. package/package/corpus/harnesses/copilot/instructions/concepts.instructions.md +15 -2
  11. package/package/corpus/harnesses/copilot/instructions/cratis-folder-is-configuration.instructions.md +3 -5
  12. package/package/corpus/harnesses/copilot/instructions/criticality-tiers.instructions.md +7 -35
  13. package/package/corpus/harnesses/copilot/instructions/csharp.instructions.md +13 -6
  14. package/package/corpus/harnesses/copilot/instructions/dialogs.instructions.md +8 -3
  15. package/package/corpus/harnesses/copilot/instructions/discoverability.instructions.md +8 -2
  16. package/package/corpus/harnesses/copilot/instructions/documentation-structure-and-formatting.instructions.md +12 -6
  17. package/package/corpus/harnesses/copilot/instructions/documentation.instructions.md +12 -7
  18. package/package/corpus/harnesses/copilot/instructions/editing-cratis-docs.instructions.md +8 -6
  19. package/package/corpus/harnesses/copilot/instructions/efcore.instructions.md +13 -9
  20. package/package/corpus/harnesses/copilot/instructions/efcore.specs.instructions.md +9 -5
  21. package/package/corpus/harnesses/copilot/instructions/elixir.instructions.md +12 -8
  22. package/package/corpus/harnesses/copilot/instructions/exit-codes-and-wrappers.instructions.md +7 -4
  23. package/package/corpus/harnesses/copilot/instructions/framework-dotnet.instructions.md +12 -6
  24. package/package/corpus/harnesses/copilot/instructions/framework.instructions.md +11 -7
  25. package/package/corpus/harnesses/copilot/instructions/frontend-quality.instructions.md +7 -7
  26. package/package/corpus/harnesses/copilot/instructions/frontend-testing.instructions.md +5 -3
  27. package/package/corpus/harnesses/copilot/instructions/general.instructions.md +2 -2
  28. package/package/corpus/harnesses/copilot/instructions/github-actions.instructions.md +11 -6
  29. package/package/corpus/harnesses/copilot/instructions/glossary.instructions.md +13 -13
  30. package/package/corpus/harnesses/copilot/instructions/go-engineering.instructions.md +13 -39
  31. package/package/corpus/harnesses/copilot/instructions/go.instructions.md +18 -139
  32. package/package/corpus/harnesses/copilot/instructions/guards-and-fuses.instructions.md +14 -60
  33. package/package/corpus/harnesses/copilot/instructions/issue-assignment.instructions.md +6 -9
  34. package/package/corpus/harnesses/copilot/instructions/java.instructions.md +8 -6
  35. package/package/corpus/harnesses/copilot/instructions/kotlin.instructions.md +12 -7
  36. package/package/corpus/harnesses/copilot/instructions/local-verification-and-delivery.instructions.md +8 -5
  37. package/package/corpus/harnesses/copilot/instructions/local-work-artifacts.instructions.md +11 -64
  38. package/package/corpus/harnesses/copilot/instructions/new-repository-intake.instructions.md +7 -28
  39. package/package/corpus/harnesses/copilot/instructions/operational-safety.instructions.md +26 -41
  40. package/package/corpus/harnesses/copilot/instructions/orleans.instructions.md +22 -5
  41. package/package/corpus/harnesses/copilot/instructions/profiles.instructions.md +8 -11
  42. package/package/corpus/harnesses/copilot/instructions/published-contracts.instructions.md +6 -25
  43. package/package/corpus/harnesses/copilot/instructions/react.instructions.md +9 -2
  44. package/package/corpus/harnesses/copilot/instructions/reactors.instructions.md +17 -5
  45. package/package/corpus/harnesses/copilot/instructions/review-reports.instructions.md +12 -94
  46. package/package/corpus/harnesses/copilot/instructions/scripting.instructions.md +5 -5
  47. package/package/corpus/harnesses/copilot/instructions/specs.csharp.instructions.md +11 -8
  48. package/package/corpus/harnesses/copilot/instructions/specs.elixir.instructions.md +9 -4
  49. package/package/corpus/harnesses/copilot/instructions/specs.instructions.md +7 -4
  50. package/package/corpus/harnesses/copilot/instructions/specs.scenarios.csharp.instructions.md +11 -2
  51. package/package/corpus/harnesses/copilot/instructions/specs.typescript.instructions.md +8 -11
  52. package/package/corpus/harnesses/copilot/instructions/storybook.instructions.md +4 -7
  53. package/package/corpus/harnesses/copilot/instructions/typescript.instructions.md +8 -8
  54. package/package/corpus/harnesses/copilot/instructions/verification-discipline.instructions.md +6 -9
  55. package/package/corpus/harnesses/copilot/instructions/vertical-slices.instructions.md +29 -5
  56. package/package/corpus/harnesses/copilot/instructions/writing-correct-examples.instructions.md +12 -3
  57. package/package/corpus/harnesses/copilot/instructions/writing-cratis-docs.instructions.md +11 -3
  58. package/package/corpus/hooks/README.md +2 -0
  59. package/package/corpus/hooks/scripts/cratis-cleanup-worktrees.sh +36 -24
  60. package/package/corpus/hooks/scripts/cratis-guard-secrets.sh +66 -22
  61. package/package/corpus/hooks/scripts/cratis-guard-writes.sh +2 -1
  62. package/package/corpus/hooks/scripts/cratis-store-mutations.json +1 -1
  63. package/package/corpus/rules/ai-distribution.md +7 -9
  64. package/package/corpus/rules/authoring-skills.md +25 -55
  65. package/package/corpus/rules/browser.md +10 -7
  66. package/package/corpus/rules/code-health-policy.txt +3 -3
  67. package/package/corpus/rules/code-health.md +8 -1
  68. package/package/corpus/rules/code-quality.csharp.md +3 -2
  69. package/package/corpus/rules/code-quality.md +5 -5
  70. package/package/corpus/rules/code-quality.typescript.md +4 -3
  71. package/package/corpus/rules/codescene-reference.txt +34 -0
  72. package/package/corpus/rules/codescene.md +5 -4
  73. package/package/corpus/rules/components.md +6 -8
  74. package/package/corpus/rules/concepts.md +15 -2
  75. package/package/corpus/rules/cratis-folder-is-configuration.md +3 -5
  76. package/package/corpus/rules/criticality-tiers.md +7 -35
  77. package/package/corpus/rules/csharp.md +13 -6
  78. package/package/corpus/rules/dialogs.md +8 -3
  79. package/package/corpus/rules/discoverability.md +8 -2
  80. package/package/corpus/rules/documentation-structure-and-formatting.md +12 -6
  81. package/package/corpus/rules/documentation.md +12 -7
  82. package/package/corpus/rules/editing-cratis-docs.md +8 -6
  83. package/package/corpus/rules/efcore.md +13 -9
  84. package/package/corpus/rules/efcore.specs.md +9 -5
  85. package/package/corpus/rules/elixir.md +12 -8
  86. package/package/corpus/rules/exit-codes-and-wrappers.md +7 -4
  87. package/package/corpus/rules/framework-dotnet.md +12 -6
  88. package/package/corpus/rules/framework.md +11 -7
  89. package/package/corpus/rules/frontend-quality.md +7 -7
  90. package/package/corpus/rules/frontend-testing.md +5 -3
  91. package/package/corpus/rules/general.md +8 -10
  92. package/package/corpus/rules/github-actions.md +11 -6
  93. package/package/corpus/rules/glossary.md +13 -13
  94. package/package/corpus/rules/go-engineering.md +13 -39
  95. package/package/corpus/rules/go.md +18 -139
  96. package/package/corpus/rules/guards-and-fuses.md +14 -60
  97. package/package/corpus/rules/issue-assignment.md +6 -9
  98. package/package/corpus/rules/java.md +8 -6
  99. package/package/corpus/rules/kotlin.md +12 -7
  100. package/package/corpus/rules/local-verification-and-delivery.md +8 -5
  101. package/package/corpus/rules/local-work-artifacts.md +11 -64
  102. package/package/corpus/rules/new-repository-intake.md +7 -28
  103. package/package/corpus/rules/operational-safety.md +26 -41
  104. package/package/corpus/rules/orleans.md +22 -5
  105. package/package/corpus/rules/profiles.md +8 -11
  106. package/package/corpus/rules/published-contracts.md +6 -25
  107. package/package/corpus/rules/react.md +9 -2
  108. package/package/corpus/rules/reactors.md +17 -5
  109. package/package/corpus/rules/review-reports.md +12 -94
  110. package/package/corpus/rules/scripting.md +5 -5
  111. package/package/corpus/rules/specs.csharp.md +11 -8
  112. package/package/corpus/rules/specs.elixir.md +9 -4
  113. package/package/corpus/rules/specs.md +7 -4
  114. package/package/corpus/rules/specs.scenarios.csharp.md +11 -2
  115. package/package/corpus/rules/specs.typescript.md +8 -11
  116. package/package/corpus/rules/storybook.md +4 -7
  117. package/package/corpus/rules/typescript.md +8 -8
  118. package/package/corpus/rules/verification-discipline.md +6 -9
  119. package/package/corpus/rules/vertical-slices.md +29 -5
  120. package/package/corpus/rules/writing-correct-examples.md +12 -3
  121. package/package/corpus/rules/writing-cratis-docs.md +11 -3
  122. package/package/corpus/skills/cratis-ai-corpus-authoring/LICENSE +21 -0
  123. package/package/corpus/skills/cratis-ai-corpus-authoring/SKILL.md +140 -0
  124. package/package/corpus/skills/cratis-ai-corpus-authoring/references/checklist.md +46 -0
  125. package/package/corpus/skills/cratis-ai-corpus-authoring/references/evaluation.md +19 -0
  126. package/package/corpus/skills/cratis-ai-corpus-authoring/references/large-rewrites.md +25 -0
  127. package/package/corpus/skills/cratis-ai-corpus-authoring/references/skill-anatomy.md +75 -0
  128. package/package/corpus/skills/cratis-application-growth/SKILL.md +148 -63
  129. package/package/corpus/skills/cratis-application-growth/references/csharp.md +170 -0
  130. package/package/corpus/skills/cratis-application-growth/references/elixir.md +26 -0
  131. package/package/corpus/skills/cratis-application-growth/references/go.md +27 -0
  132. package/package/corpus/skills/cratis-application-growth/references/java.md +23 -0
  133. package/package/corpus/skills/cratis-application-growth/references/kotlin.md +31 -0
  134. package/package/corpus/skills/cratis-application-growth/references/move-and-untangle.md +7 -6
  135. package/package/corpus/skills/cratis-application-growth/references/rename-window.md +14 -14
  136. package/package/corpus/skills/cratis-application-growth/references/service-and-delivery.md +21 -0
  137. package/package/corpus/skills/cratis-application-growth/references/stages.md +1 -9
  138. package/package/corpus/skills/cratis-application-growth/references/typescript.md +38 -0
  139. package/package/corpus/skills/cratis-arc-authorize-request/SKILL.md +31 -23
  140. package/package/corpus/skills/cratis-arc-authorize-request/references/authproxy.md +92 -0
  141. package/package/corpus/skills/cratis-arc-authorize-request/references/csharp-query-security.md +61 -0
  142. package/package/corpus/skills/cratis-arc-authorize-request/references/csharp.md +92 -38
  143. package/package/corpus/skills/cratis-arc-authorize-request/references/elixir.md +74 -4
  144. package/package/corpus/skills/cratis-arc-authorize-request/references/go-authentication.md +93 -0
  145. package/package/corpus/skills/cratis-arc-authorize-request/references/go.md +80 -2
  146. package/package/corpus/skills/cratis-arc-authorize-request/references/java.md +79 -3
  147. package/package/corpus/skills/cratis-arc-authorize-request/references/kotlin.md +80 -17
  148. package/package/corpus/skills/cratis-arc-authorize-request/references/python.md +1 -1
  149. package/package/corpus/skills/cratis-arc-authorize-request/references/typescript.md +106 -6
  150. package/package/corpus/skills/cratis-arc-code-analysis-typescript/SKILL.md +85 -42
  151. package/package/corpus/skills/cratis-arc-code-analysis-typescript/references/typescript-rule-fixes.md +89 -0
  152. package/package/corpus/skills/cratis-arc-code-analysis-typescript/references/typescript.md +99 -0
  153. package/package/corpus/skills/cratis-arc-connect-storage/SKILL.md +54 -14
  154. package/package/corpus/skills/cratis-arc-connect-storage/references/csharp-connection-resolution.md +66 -0
  155. package/package/corpus/skills/cratis-arc-connect-storage/references/csharp-ef.md +78 -0
  156. package/package/corpus/skills/cratis-arc-connect-storage/references/csharp-neo4j.md +30 -0
  157. package/package/corpus/skills/cratis-arc-connect-storage/references/csharp.md +59 -66
  158. package/package/corpus/skills/cratis-arc-connect-storage/references/elixir.md +121 -3
  159. package/package/corpus/skills/cratis-arc-connect-storage/references/go.md +73 -3
  160. package/package/corpus/skills/cratis-arc-connect-storage/references/java.md +68 -3
  161. package/package/corpus/skills/cratis-arc-connect-storage/references/kotlin.md +74 -3
  162. package/package/corpus/skills/cratis-arc-connect-storage/references/python.md +2 -2
  163. package/package/corpus/skills/cratis-arc-connect-storage/references/typescript-drizzle.md +31 -0
  164. package/package/corpus/skills/cratis-arc-connect-storage/references/typescript.md +62 -4
  165. package/package/corpus/skills/cratis-arc-declare-command/SKILL.md +52 -28
  166. package/package/corpus/skills/cratis-arc-declare-command/references/csharp-chronicle.md +190 -0
  167. package/package/corpus/skills/cratis-arc-declare-command/references/csharp-controller.md +44 -0
  168. package/package/corpus/skills/cratis-arc-declare-command/references/csharp-history.md +125 -0
  169. package/package/corpus/skills/cratis-arc-declare-command/references/csharp.md +281 -55
  170. package/package/corpus/skills/cratis-arc-declare-command/references/elixir.md +121 -8
  171. package/package/corpus/skills/cratis-arc-declare-command/references/go-aggregate.md +59 -0
  172. package/package/corpus/skills/cratis-arc-declare-command/references/go-chronicle.md +51 -0
  173. package/package/corpus/skills/cratis-arc-declare-command/references/go-wire.md +94 -0
  174. package/package/corpus/skills/cratis-arc-declare-command/references/go.md +160 -25
  175. package/package/corpus/skills/cratis-arc-declare-command/references/java.md +140 -13
  176. package/package/corpus/skills/cratis-arc-declare-command/references/kotlin.md +189 -23
  177. package/package/corpus/skills/cratis-arc-declare-command/references/typescript-aggregates.md +73 -0
  178. package/package/corpus/skills/cratis-arc-declare-command/references/typescript.md +209 -24
  179. package/package/corpus/skills/cratis-arc-declare-operation/SKILL.md +28 -25
  180. package/package/corpus/skills/cratis-arc-declare-operation/references/csharp-abilities.md +30 -0
  181. package/package/corpus/skills/cratis-arc-declare-operation/references/csharp-recovery.md +50 -0
  182. package/package/corpus/skills/cratis-arc-declare-operation/references/csharp.md +27 -55
  183. package/package/corpus/skills/cratis-arc-declare-operation/references/elixir.md +17 -1
  184. package/package/corpus/skills/cratis-arc-declare-operation/references/go.md +75 -5
  185. package/package/corpus/skills/cratis-arc-declare-operation/references/java.md +13 -2
  186. package/package/corpus/skills/cratis-arc-declare-operation/references/kotlin.md +11 -2
  187. package/package/corpus/skills/cratis-arc-declare-operation/references/python.md +2 -2
  188. package/package/corpus/skills/cratis-arc-declare-operation/references/typescript.md +84 -8
  189. package/package/corpus/skills/cratis-arc-diagnose-live-query/SKILL.md +42 -36
  190. package/package/corpus/skills/cratis-arc-diagnose-live-query/references/csharp.md +44 -51
  191. package/package/corpus/skills/cratis-arc-diagnose-live-query/references/elixir.md +50 -3
  192. package/package/corpus/skills/cratis-arc-diagnose-live-query/references/go.md +85 -2
  193. package/package/corpus/skills/cratis-arc-diagnose-live-query/references/java.md +70 -2
  194. package/package/corpus/skills/cratis-arc-diagnose-live-query/references/kotlin.md +60 -2
  195. package/package/corpus/skills/cratis-arc-diagnose-live-query/references/typescript.md +94 -5
  196. package/package/corpus/skills/cratis-arc-expose-mcp-operation/SKILL.md +59 -81
  197. package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/csharp-diagnose-tool-call.md +44 -0
  198. package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/csharp.md +309 -0
  199. package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/elixir.md +5 -0
  200. package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/go.md +5 -0
  201. package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/java.md +5 -0
  202. package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/kotlin.md +5 -0
  203. package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/typescript.md +5 -0
  204. package/package/corpus/skills/cratis-arc-expose-query/SKILL.md +65 -15
  205. package/package/corpus/skills/cratis-arc-expose-query/references/csharp.md +379 -31
  206. package/package/corpus/skills/cratis-arc-expose-query/references/elixir.md +84 -4
  207. package/package/corpus/skills/cratis-arc-expose-query/references/go-live.md +55 -0
  208. package/package/corpus/skills/cratis-arc-expose-query/references/go.md +204 -18
  209. package/package/corpus/skills/cratis-arc-expose-query/references/java.md +236 -7
  210. package/package/corpus/skills/cratis-arc-expose-query/references/kotlin.md +242 -3
  211. package/package/corpus/skills/cratis-arc-expose-query/references/typescript.md +360 -19
  212. package/package/corpus/skills/cratis-arc-generate-proxies/SKILL.md +84 -10
  213. package/package/corpus/skills/cratis-arc-generate-proxies/references/csharp.md +70 -29
  214. package/package/corpus/skills/cratis-arc-generate-proxies/references/elixir.md +54 -5
  215. package/package/corpus/skills/cratis-arc-generate-proxies/references/go-directives.md +74 -0
  216. package/package/corpus/skills/cratis-arc-generate-proxies/references/go.md +50 -4
  217. package/package/corpus/skills/cratis-arc-generate-proxies/references/java-diagnostics.md +67 -0
  218. package/package/corpus/skills/cratis-arc-generate-proxies/references/java-wire-types.md +115 -0
  219. package/package/corpus/skills/cratis-arc-generate-proxies/references/java.md +86 -2
  220. package/package/corpus/skills/cratis-arc-generate-proxies/references/kotlin-diagnostics.md +67 -0
  221. package/package/corpus/skills/cratis-arc-generate-proxies/references/kotlin-wire-types.md +108 -0
  222. package/package/corpus/skills/cratis-arc-generate-proxies/references/kotlin.md +77 -4
  223. package/package/corpus/skills/cratis-arc-generate-proxies/references/typescript.md +64 -16
  224. package/package/corpus/skills/cratis-arc-generate-proxies/scripts/check-proxy.mjs +3 -3
  225. package/package/corpus/skills/cratis-arc-host-application/SKILL.md +67 -12
  226. package/package/corpus/skills/cratis-arc-host-application/references/csharp-availability.md +130 -0
  227. package/package/corpus/skills/cratis-arc-host-application/references/csharp-callers.md +89 -0
  228. package/package/corpus/skills/cratis-arc-host-application/references/csharp-configuration.md +116 -27
  229. package/package/corpus/skills/cratis-arc-host-application/references/csharp-http.md +86 -0
  230. package/package/corpus/skills/cratis-arc-host-application/references/csharp-identity.md +208 -0
  231. package/package/corpus/skills/cratis-arc-host-application/references/csharp.md +154 -35
  232. package/package/corpus/skills/cratis-arc-host-application/references/elixir-access.md +64 -0
  233. package/package/corpus/skills/cratis-arc-host-application/references/elixir.md +53 -23
  234. package/package/corpus/skills/cratis-arc-host-application/references/go-embed.md +121 -0
  235. package/package/corpus/skills/cratis-arc-host-application/references/go-execution.md +86 -0
  236. package/package/corpus/skills/cratis-arc-host-application/references/go-options.md +41 -0
  237. package/package/corpus/skills/cratis-arc-host-application/references/go.md +43 -5
  238. package/package/corpus/skills/cratis-arc-host-application/references/java.md +203 -4
  239. package/package/corpus/skills/cratis-arc-host-application/references/kotlin.md +234 -4
  240. package/package/corpus/skills/cratis-arc-host-application/references/typescript-services.md +85 -0
  241. package/package/corpus/skills/cratis-arc-host-application/references/typescript.md +194 -13
  242. package/package/corpus/skills/cratis-arc-identity-and-tenancy-kotlin/SKILL.md +79 -119
  243. package/package/corpus/skills/cratis-arc-identity-and-tenancy-kotlin/references/java.md +285 -0
  244. package/package/corpus/skills/cratis-arc-identity-and-tenancy-kotlin/references/kotlin.md +265 -0
  245. package/package/corpus/skills/cratis-arc-invoke-command/SKILL.md +52 -24
  246. package/package/corpus/skills/cratis-arc-invoke-command/references/csharp-extensions.md +26 -0
  247. package/package/corpus/skills/cratis-arc-invoke-command/references/csharp.md +55 -25
  248. package/package/corpus/skills/cratis-arc-invoke-command/references/elixir-liveview.md +112 -0
  249. package/package/corpus/skills/cratis-arc-invoke-command/references/elixir.md +72 -2
  250. package/package/corpus/skills/cratis-arc-invoke-command/references/go.md +51 -3
  251. package/package/corpus/skills/cratis-arc-invoke-command/references/java.md +74 -3
  252. package/package/corpus/skills/cratis-arc-invoke-command/references/kotlin.md +58 -18
  253. package/package/corpus/skills/cratis-arc-invoke-command/references/python.md +2 -2
  254. package/package/corpus/skills/cratis-arc-invoke-command/references/typescript.md +49 -2
  255. package/package/corpus/skills/cratis-arc-isolate-tenant/SKILL.md +31 -13
  256. package/package/corpus/skills/cratis-arc-isolate-tenant/references/csharp.md +68 -29
  257. package/package/corpus/skills/cratis-arc-isolate-tenant/references/elixir.md +84 -2
  258. package/package/corpus/skills/cratis-arc-isolate-tenant/references/go.md +73 -2
  259. package/package/corpus/skills/cratis-arc-isolate-tenant/references/java.md +70 -3
  260. package/package/corpus/skills/cratis-arc-isolate-tenant/references/kotlin.md +65 -5
  261. package/package/corpus/skills/cratis-arc-isolate-tenant/references/python.md +1 -1
  262. package/package/corpus/skills/cratis-arc-isolate-tenant/references/typescript.md +56 -3
  263. package/package/corpus/skills/cratis-arc-migrate-relational-schema/SKILL.md +125 -27
  264. package/package/corpus/skills/cratis-arc-migrate-relational-schema/references/csharp.md +217 -0
  265. package/package/corpus/skills/cratis-arc-migrate-relational-schema/references/elixir.md +3 -0
  266. package/package/corpus/skills/cratis-arc-migrate-relational-schema/references/go.md +3 -0
  267. package/package/corpus/skills/cratis-arc-migrate-relational-schema/references/java.md +29 -0
  268. package/package/corpus/skills/cratis-arc-migrate-relational-schema/references/kotlin.md +29 -0
  269. package/package/corpus/skills/cratis-arc-migrate-relational-schema/references/typescript.md +132 -0
  270. package/package/corpus/skills/cratis-arc-page-query/SKILL.md +33 -13
  271. package/package/corpus/skills/cratis-arc-page-query/references/csharp.md +63 -33
  272. package/package/corpus/skills/cratis-arc-page-query/references/elixir.md +55 -4
  273. package/package/corpus/skills/cratis-arc-page-query/references/go.md +77 -4
  274. package/package/corpus/skills/cratis-arc-page-query/references/java.md +66 -4
  275. package/package/corpus/skills/cratis-arc-page-query/references/kotlin.md +65 -5
  276. package/package/corpus/skills/cratis-arc-page-query/references/typescript.md +81 -6
  277. package/package/corpus/skills/cratis-arc-react-bind-slice/SKILL.md +148 -48
  278. package/package/corpus/skills/cratis-arc-react-bind-slice/references/react-screen-from-model.md +10 -0
  279. package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript-commands.md +190 -0
  280. package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript-host.md +160 -0
  281. package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript-identity.md +131 -0
  282. package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript-queries.md +157 -0
  283. package/package/corpus/skills/cratis-arc-react-bind-slice/references/typescript.md +88 -0
  284. package/package/corpus/skills/cratis-arc-react-separate-view-model/SKILL.md +155 -66
  285. package/package/corpus/skills/cratis-arc-react-separate-view-model/references/typescript.md +628 -0
  286. package/package/corpus/skills/cratis-arc-select-backend-sdk/SKILL.md +18 -5
  287. package/package/corpus/skills/cratis-arc-select-backend-sdk/references/csharp.md +64 -3
  288. package/package/corpus/skills/cratis-arc-select-backend-sdk/references/elixir.md +77 -11
  289. package/package/corpus/skills/cratis-arc-select-backend-sdk/references/go.md +61 -19
  290. package/package/corpus/skills/cratis-arc-select-backend-sdk/references/java.md +119 -7
  291. package/package/corpus/skills/cratis-arc-select-backend-sdk/references/kotlin.md +117 -7
  292. package/package/corpus/skills/cratis-arc-select-backend-sdk/references/typescript.md +124 -10
  293. package/package/corpus/skills/cratis-arc-spring-data-kotlin/SKILL.md +129 -107
  294. package/package/corpus/skills/cratis-arc-spring-data-kotlin/references/java.md +436 -0
  295. package/package/corpus/skills/cratis-arc-spring-data-kotlin/references/kotlin.md +440 -0
  296. package/package/corpus/skills/cratis-arc-storage-typescript/SKILL.md +58 -90
  297. package/package/corpus/skills/cratis-arc-storage-typescript/references/typescript-drizzle.md +165 -0
  298. package/package/corpus/skills/cratis-arc-storage-typescript/references/typescript.md +226 -0
  299. package/package/corpus/skills/cratis-arc-tenancy-typescript/SKILL.md +86 -89
  300. package/package/corpus/skills/cratis-arc-tenancy-typescript/references/typescript.md +228 -0
  301. package/package/corpus/skills/cratis-arc-testing-kotlin/SKILL.md +179 -90
  302. package/package/corpus/skills/cratis-arc-testing-kotlin/references/java.md +95 -0
  303. package/package/corpus/skills/cratis-arc-testing-kotlin/references/kotlin.md +107 -0
  304. package/package/corpus/skills/cratis-arc-testing-typescript/SKILL.md +80 -107
  305. package/package/corpus/skills/cratis-arc-testing-typescript/references/typescript.md +272 -0
  306. package/package/corpus/skills/cratis-arc-validate-command/SKILL.md +56 -17
  307. package/package/corpus/skills/cratis-arc-validate-command/references/csharp-rules.md +38 -0
  308. package/package/corpus/skills/cratis-arc-validate-command/references/csharp.md +84 -13
  309. package/package/corpus/skills/cratis-arc-validate-command/references/elixir.md +50 -12
  310. package/package/corpus/skills/cratis-arc-validate-command/references/go.md +119 -15
  311. package/package/corpus/skills/cratis-arc-validation-kotlin/SKILL.md +125 -93
  312. package/package/corpus/skills/cratis-arc-validation-kotlin/references/java.md +272 -0
  313. package/package/corpus/skills/cratis-arc-validation-kotlin/references/kotlin.md +238 -0
  314. package/package/corpus/skills/cratis-arc-validation-typescript/SKILL.md +133 -58
  315. package/package/corpus/skills/cratis-arc-validation-typescript/references/{models-and-queries.md → typescript-models-and-queries.md} +17 -0
  316. package/package/corpus/skills/cratis-arc-validation-typescript/references/typescript-rules-and-checks.md +101 -0
  317. package/package/corpus/skills/cratis-arc-validation-typescript/references/{server-decisions.md → typescript-server-decisions.md} +49 -13
  318. package/package/corpus/skills/cratis-arc-validation-typescript/references/typescript.md +196 -0
  319. package/package/corpus/skills/cratis-chronicle-cli-operations/SKILL.md +107 -7
  320. package/package/corpus/skills/cratis-chronicle-cli-operations/references/command-effects.md +21 -11
  321. package/package/corpus/skills/cratis-chronicle-cli-operations/references/inspection.md +70 -10
  322. package/package/corpus/skills/cratis-chronicle-cli-operations/references/project-tooling.md +4 -65
  323. package/package/corpus/skills/cratis-chronicle-cli-operations/references/recovery-and-comparison.md +138 -16
  324. package/package/corpus/skills/cratis-chronicle-cli-operations/references/setup-and-target.md +85 -0
  325. package/package/corpus/skills/cratis-chronicle-connect-application/SKILL.md +54 -12
  326. package/package/corpus/skills/cratis-chronicle-connect-application/references/csharp-patterns.md +45 -0
  327. package/package/corpus/skills/cratis-chronicle-connect-application/references/csharp-services.md +80 -0
  328. package/package/corpus/skills/cratis-chronicle-connect-application/references/csharp-transport.md +26 -0
  329. package/package/corpus/skills/cratis-chronicle-connect-application/references/csharp-workload.md +35 -0
  330. package/package/corpus/skills/cratis-chronicle-connect-application/references/csharp.md +57 -39
  331. package/package/corpus/skills/cratis-chronicle-connect-application/references/elixir-patterns.md +32 -0
  332. package/package/corpus/skills/cratis-chronicle-connect-application/references/elixir-policies.md +47 -0
  333. package/package/corpus/skills/cratis-chronicle-connect-application/references/elixir.md +38 -3
  334. package/package/corpus/skills/cratis-chronicle-connect-application/references/go-patterns.md +30 -0
  335. package/package/corpus/skills/cratis-chronicle-connect-application/references/go.md +95 -3
  336. package/package/corpus/skills/cratis-chronicle-connect-application/references/java.md +89 -2
  337. package/package/corpus/skills/cratis-chronicle-connect-application/references/kotlin-patterns.md +35 -0
  338. package/package/corpus/skills/cratis-chronicle-connect-application/references/kotlin.md +108 -3
  339. package/package/corpus/skills/cratis-chronicle-connect-application/references/python.md +61 -0
  340. package/package/corpus/skills/cratis-chronicle-connect-application/references/typescript-patterns.md +32 -0
  341. package/package/corpus/skills/cratis-chronicle-connect-application/references/typescript.md +75 -6
  342. package/package/corpus/skills/cratis-chronicle-constrain-append/SKILL.md +42 -11
  343. package/package/corpus/skills/cratis-chronicle-constrain-append/references/csharp.md +67 -25
  344. package/package/corpus/skills/cratis-chronicle-constrain-append/references/elixir.md +90 -3
  345. package/package/corpus/skills/cratis-chronicle-constrain-append/references/go.md +83 -3
  346. package/package/corpus/skills/cratis-chronicle-constrain-append/references/java.md +99 -2
  347. package/package/corpus/skills/cratis-chronicle-constrain-append/references/kotlin.md +76 -3
  348. package/package/corpus/skills/cratis-chronicle-constrain-append/references/python.md +1 -1
  349. package/package/corpus/skills/cratis-chronicle-constrain-append/references/typescript.md +84 -2
  350. package/package/corpus/skills/cratis-chronicle-deploy-kernel/SKILL.md +167 -31
  351. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/authentication.md +150 -0
  352. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/configuration.md +418 -0
  353. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/csharp.md +48 -0
  354. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/development-and-production.md +57 -0
  355. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/kernel-options.md +694 -0
  356. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/network-and-tls.md +161 -0
  357. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/production-checklist.md +66 -0
  358. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/storage.md +154 -2
  359. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/troubleshooting.md +57 -0
  360. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/upgrade-and-recovery.md +124 -0
  361. package/package/corpus/skills/cratis-chronicle-deploy-kernel/references/webhooks.md +101 -3
  362. package/package/corpus/skills/cratis-chronicle-evolve-event/SKILL.md +59 -15
  363. package/package/corpus/skills/cratis-chronicle-evolve-event/references/csharp.md +57 -41
  364. package/package/corpus/skills/cratis-chronicle-evolve-event/references/elixir.md +69 -3
  365. package/package/corpus/skills/cratis-chronicle-evolve-event/references/go.md +71 -2
  366. package/package/corpus/skills/cratis-chronicle-evolve-event/references/java.md +50 -2
  367. package/package/corpus/skills/cratis-chronicle-evolve-event/references/kotlin.md +58 -2
  368. package/package/corpus/skills/cratis-chronicle-evolve-event/references/schema-annotation-cleanup.md +58 -0
  369. package/package/corpus/skills/cratis-chronicle-evolve-event/references/typescript.md +87 -2
  370. package/package/corpus/skills/cratis-chronicle-inspect-observer/SKILL.md +47 -13
  371. package/package/corpus/skills/cratis-chronicle-inspect-observer/references/csharp.md +107 -37
  372. package/package/corpus/skills/cratis-chronicle-inspect-observer/references/elixir.md +56 -5
  373. package/package/corpus/skills/cratis-chronicle-inspect-observer/references/go-jobs-and-alerts.md +77 -0
  374. package/package/corpus/skills/cratis-chronicle-inspect-observer/references/go.md +106 -3
  375. package/package/corpus/skills/cratis-chronicle-inspect-observer/references/java.md +55 -3
  376. package/package/corpus/skills/cratis-chronicle-inspect-observer/references/kotlin.md +95 -3
  377. package/package/corpus/skills/cratis-chronicle-inspect-observer/references/typescript.md +89 -7
  378. package/package/corpus/skills/cratis-chronicle-mcp-inspection/SKILL.md +156 -12
  379. package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/blocked-tools.md +12 -20
  380. package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/deployment.md +114 -33
  381. package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/observational-tools.md +100 -47
  382. package/package/corpus/skills/cratis-chronicle-project-view/SKILL.md +182 -11
  383. package/package/corpus/skills/cratis-chronicle-project-view/references/csharp-fluent.md +228 -0
  384. package/package/corpus/skills/cratis-chronicle-project-view/references/csharp-graphs.md +102 -0
  385. package/package/corpus/skills/cratis-chronicle-project-view/references/csharp-model-bound.md +232 -0
  386. package/package/corpus/skills/cratis-chronicle-project-view/references/csharp-reading.md +120 -0
  387. package/package/corpus/skills/cratis-chronicle-project-view/references/csharp.md +105 -45
  388. package/package/corpus/skills/cratis-chronicle-project-view/references/elixir-graphs.md +49 -0
  389. package/package/corpus/skills/cratis-chronicle-project-view/references/elixir-mappings.md +45 -0
  390. package/package/corpus/skills/cratis-chronicle-project-view/references/elixir-reading.md +17 -0
  391. package/package/corpus/skills/cratis-chronicle-project-view/references/elixir.md +23 -27
  392. package/package/corpus/skills/cratis-chronicle-project-view/references/go-graphs.md +22 -0
  393. package/package/corpus/skills/cratis-chronicle-project-view/references/go-mappings.md +50 -0
  394. package/package/corpus/skills/cratis-chronicle-project-view/references/go-reads.md +25 -0
  395. package/package/corpus/skills/cratis-chronicle-project-view/references/go.md +45 -5
  396. package/package/corpus/skills/cratis-chronicle-project-view/references/java-graphs.md +46 -0
  397. package/package/corpus/skills/cratis-chronicle-project-view/references/java-mappings.md +53 -0
  398. package/package/corpus/skills/cratis-chronicle-project-view/references/java.md +69 -5
  399. package/package/corpus/skills/cratis-chronicle-project-view/references/kotlin-graphs.md +44 -0
  400. package/package/corpus/skills/cratis-chronicle-project-view/references/kotlin.md +71 -6
  401. package/package/corpus/skills/cratis-chronicle-project-view/references/python.md +1 -1
  402. package/package/corpus/skills/cratis-chronicle-project-view/references/typescript.md +279 -3
  403. package/package/corpus/skills/cratis-chronicle-protect-decision/SKILL.md +69 -10
  404. package/package/corpus/skills/cratis-chronicle-protect-decision/references/csharp-scopes.md +35 -0
  405. package/package/corpus/skills/cratis-chronicle-protect-decision/references/csharp-standalone.md +93 -4
  406. package/package/corpus/skills/cratis-chronicle-protect-decision/references/csharp.md +79 -34
  407. package/package/corpus/skills/cratis-chronicle-protect-decision/references/elixir.md +56 -11
  408. package/package/corpus/skills/cratis-chronicle-protect-decision/references/go.md +61 -11
  409. package/package/corpus/skills/cratis-chronicle-protect-decision/references/java.md +76 -3
  410. package/package/corpus/skills/cratis-chronicle-protect-decision/references/kotlin.md +65 -17
  411. package/package/corpus/skills/cratis-chronicle-protect-decision/references/typescript.md +77 -5
  412. package/package/corpus/skills/cratis-chronicle-protect-personal-data/SKILL.md +27 -12
  413. package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/csharp.md +65 -47
  414. package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/elixir.md +68 -3
  415. package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/go.md +91 -2
  416. package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/java.md +75 -2
  417. package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/kotlin.md +64 -3
  418. package/package/corpus/skills/cratis-chronicle-protect-personal-data/references/typescript.md +65 -3
  419. package/package/corpus/skills/cratis-chronicle-publish-contract/SKILL.md +69 -11
  420. package/package/corpus/skills/cratis-chronicle-publish-contract/references/csharp-integrations.md +89 -0
  421. package/package/corpus/skills/cratis-chronicle-publish-contract/references/csharp.md +57 -52
  422. package/package/corpus/skills/cratis-chronicle-publish-contract/references/elixir-integrations.md +132 -0
  423. package/package/corpus/skills/cratis-chronicle-publish-contract/references/elixir.md +86 -14
  424. package/package/corpus/skills/cratis-chronicle-publish-contract/references/go-integrations.md +91 -0
  425. package/package/corpus/skills/cratis-chronicle-publish-contract/references/go.md +80 -2
  426. package/package/corpus/skills/cratis-chronicle-publish-contract/references/java-integrations.md +121 -0
  427. package/package/corpus/skills/cratis-chronicle-publish-contract/references/java.md +64 -2
  428. package/package/corpus/skills/cratis-chronicle-publish-contract/references/kotlin-integrations.md +112 -0
  429. package/package/corpus/skills/cratis-chronicle-publish-contract/references/kotlin.md +71 -2
  430. package/package/corpus/skills/cratis-chronicle-publish-contract/references/python.md +2 -2
  431. package/package/corpus/skills/cratis-chronicle-publish-contract/references/typescript-integrations.md +69 -0
  432. package/package/corpus/skills/cratis-chronicle-publish-contract/references/typescript.md +69 -2
  433. package/package/corpus/skills/cratis-chronicle-react-to-fact/SKILL.md +65 -12
  434. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/csharp-occurrences.md +3 -1
  435. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/csharp-outputs.md +39 -0
  436. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/csharp-pages.md +43 -0
  437. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/csharp.md +43 -43
  438. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/elixir-recovery.md +23 -0
  439. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/elixir.md +79 -8
  440. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/go.md +97 -3
  441. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/java.md +123 -3
  442. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/kotlin.md +113 -4
  443. package/package/corpus/skills/cratis-chronicle-react-to-fact/references/typescript.md +122 -8
  444. package/package/corpus/skills/cratis-chronicle-record-event/SKILL.md +83 -13
  445. package/package/corpus/skills/cratis-chronicle-record-event/references/csharp-coordination.md +86 -0
  446. package/package/corpus/skills/cratis-chronicle-record-event/references/csharp-history.md +86 -0
  447. package/package/corpus/skills/cratis-chronicle-record-event/references/csharp.md +53 -92
  448. package/package/corpus/skills/cratis-chronicle-record-event/references/elixir-context.md +74 -0
  449. package/package/corpus/skills/cratis-chronicle-record-event/references/elixir-history.md +51 -0
  450. package/package/corpus/skills/cratis-chronicle-record-event/references/elixir.md +48 -20
  451. package/package/corpus/skills/cratis-chronicle-record-event/references/go-payloads.md +80 -0
  452. package/package/corpus/skills/cratis-chronicle-record-event/references/go.md +78 -2
  453. package/package/corpus/skills/cratis-chronicle-record-event/references/java-history.md +63 -0
  454. package/package/corpus/skills/cratis-chronicle-record-event/references/java.md +107 -11
  455. package/package/corpus/skills/cratis-chronicle-record-event/references/kotlin-history.md +88 -0
  456. package/package/corpus/skills/cratis-chronicle-record-event/references/kotlin.md +103 -21
  457. package/package/corpus/skills/cratis-chronicle-record-event/references/typescript-import.md +30 -0
  458. package/package/corpus/skills/cratis-chronicle-record-event/references/typescript-provenance.md +40 -0
  459. package/package/corpus/skills/cratis-chronicle-record-event/references/typescript.md +187 -3
  460. package/package/corpus/skills/cratis-chronicle-reduce-state/SKILL.md +55 -13
  461. package/package/corpus/skills/cratis-chronicle-reduce-state/references/csharp.md +235 -24
  462. package/package/corpus/skills/cratis-chronicle-reduce-state/references/elixir.md +82 -2
  463. package/package/corpus/skills/cratis-chronicle-reduce-state/references/go.md +94 -3
  464. package/package/corpus/skills/cratis-chronicle-reduce-state/references/java.md +99 -2
  465. package/package/corpus/skills/cratis-chronicle-reduce-state/references/kotlin.md +89 -3
  466. package/package/corpus/skills/cratis-chronicle-reduce-state/references/python.md +2 -2
  467. package/package/corpus/skills/cratis-chronicle-reduce-state/references/typescript.md +91 -2
  468. package/package/corpus/skills/cratis-chronicle-select-client/SKILL.md +17 -12
  469. package/package/corpus/skills/cratis-chronicle-select-client/references/csharp.md +63 -3
  470. package/package/corpus/skills/cratis-chronicle-select-client/references/elixir.md +52 -3
  471. package/package/corpus/skills/cratis-chronicle-select-client/references/go.md +64 -3
  472. package/package/corpus/skills/cratis-chronicle-select-client/references/java.md +54 -2
  473. package/package/corpus/skills/cratis-chronicle-select-client/references/kotlin.md +56 -3
  474. package/package/corpus/skills/cratis-chronicle-select-client/references/python.md +35 -18
  475. package/package/corpus/skills/cratis-chronicle-select-client/references/typescript.md +46 -4
  476. package/package/corpus/skills/cratis-chronicle-web-workbench/SKILL.md +60 -12
  477. package/package/corpus/skills/cratis-chronicle-web-workbench/references/csharp.md +57 -0
  478. package/package/corpus/skills/cratis-chronicle-web-workbench/references/hosting.md +80 -53
  479. package/package/corpus/skills/cratis-chronicle-web-workbench/references/operations.md +44 -59
  480. package/package/corpus/skills/cratis-ci-pipeline-performance/SKILL.md +241 -203
  481. package/package/corpus/skills/cratis-ci-pipeline-performance/references/affected-tests.md +134 -0
  482. package/package/corpus/skills/cratis-ci-pipeline-performance/references/build-once-and-shard.md +25 -10
  483. package/package/corpus/skills/cratis-ci-pipeline-performance/references/caching.md +14 -1
  484. package/package/corpus/skills/cratis-ci-pipeline-performance/references/flaky-and-hung-jobs.md +6 -0
  485. package/package/corpus/skills/cratis-ci-pipeline-performance/references/publish-pipelines.md +83 -6
  486. package/package/corpus/skills/cratis-ci-pipeline-performance/references/required-checks-and-path-filters.md +68 -1
  487. package/package/corpus/skills/cratis-ci-pipeline-performance/references/runner-sizing-and-images.md +33 -6
  488. package/package/corpus/skills/cratis-ci-pipeline-performance/references/security-and-pinning.md +11 -4
  489. package/package/corpus/skills/cratis-ci-pipeline-performance/references/shared-workflows.md +65 -0
  490. package/package/corpus/skills/cratis-ci-pipeline-performance/references/test-setup-cost.md +12 -0
  491. package/package/corpus/skills/cratis-ci-pipeline-performance/references/trim-and-aot-ratchets.md +32 -0
  492. package/package/corpus/skills/cratis-cli-terminal-workbench/SKILL.md +285 -139
  493. package/package/corpus/skills/cratis-cli-terminal-workbench/references/views-and-refresh.md +66 -0
  494. package/package/corpus/skills/cratis-code-review/SKILL.md +286 -165
  495. package/package/corpus/skills/cratis-code-review/references/csharp-diagnostics.md +76 -0
  496. package/package/corpus/skills/cratis-code-review/references/csharp.md +130 -0
  497. package/package/corpus/skills/cratis-code-review/references/elixir.md +30 -0
  498. package/package/corpus/skills/cratis-code-review/references/go.md +25 -0
  499. package/package/corpus/skills/cratis-code-review/references/java.md +38 -0
  500. package/package/corpus/skills/cratis-code-review/references/kotlin.md +37 -0
  501. package/package/corpus/skills/cratis-code-review/references/python.md +3 -0
  502. package/package/corpus/skills/cratis-code-review/references/typescript.md +189 -0
  503. package/package/corpus/skills/cratis-commits-and-pull-requests/SKILL.md +213 -13
  504. package/package/corpus/skills/cratis-commits-and-pull-requests/references/commits.md +37 -11
  505. package/package/corpus/skills/cratis-commits-and-pull-requests/references/pr-description.md +98 -6
  506. package/package/corpus/skills/cratis-commits-and-pull-requests/references/pr-labels-and-release.md +77 -2
  507. package/package/corpus/skills/cratis-components-accessibility/SKILL.md +123 -16
  508. package/package/corpus/skills/cratis-components-accessibility/references/typescript.md +182 -0
  509. package/package/corpus/skills/cratis-components-build-canvas/SKILL.md +167 -31
  510. package/package/corpus/skills/cratis-components-build-canvas/references/conversation-kit.md +89 -0
  511. package/package/corpus/skills/cratis-components-build-canvas/references/typescript-chat.md +73 -0
  512. package/package/corpus/skills/cratis-components-build-canvas/references/typescript-pixi-items.md +46 -0
  513. package/package/corpus/skills/cratis-components-build-canvas/references/typescript-props.md +44 -0
  514. package/package/corpus/skills/cratis-components-build-canvas/references/typescript-shapes.md +159 -0
  515. package/package/corpus/skills/cratis-components-build-canvas/references/typescript.md +140 -0
  516. package/package/corpus/skills/cratis-components-choose-control/SKILL.md +113 -28
  517. package/package/corpus/skills/cratis-components-choose-control/references/breadcrumbs-and-labels.md +21 -0
  518. package/package/corpus/skills/cratis-components-choose-control/references/collections.md +27 -3
  519. package/package/corpus/skills/cratis-components-choose-control/references/typescript-common.md +50 -0
  520. package/package/corpus/skills/cratis-components-choose-control/references/typescript-composition.md +174 -0
  521. package/package/corpus/skills/cratis-components-choose-control/references/typescript-display.md +12 -0
  522. package/package/corpus/skills/cratis-components-choose-control/references/typescript-dropdown.md +27 -0
  523. package/package/corpus/skills/cratis-components-choose-control/references/typescript-iconpicker.md +19 -0
  524. package/package/corpus/skills/cratis-components-choose-control/references/typescript-markdowneditor.md +16 -0
  525. package/package/corpus/skills/cratis-components-choose-control/references/typescript.md +69 -0
  526. package/package/corpus/skills/cratis-components-compose-toolbar/SKILL.md +210 -23
  527. package/package/corpus/skills/cratis-components-compose-toolbar/references/behavior.md +87 -0
  528. package/package/corpus/skills/cratis-components-compose-toolbar/references/typescript-composition.md +202 -0
  529. package/package/corpus/skills/cratis-components-compose-toolbar/references/typescript-toolbar.md +125 -0
  530. package/package/corpus/skills/cratis-components-compose-toolbar/references/typescript.md +128 -0
  531. package/package/corpus/skills/cratis-components-coordinate-feedback/SKILL.md +138 -65
  532. package/package/corpus/skills/cratis-components-coordinate-feedback/references/dialog-props.md +30 -0
  533. package/package/corpus/skills/cratis-components-coordinate-feedback/references/typescript-dialogs.md +139 -0
  534. package/package/corpus/skills/cratis-components-coordinate-feedback/references/typescript-notifications.md +66 -0
  535. package/package/corpus/skills/cratis-components-coordinate-feedback/references/typescript.md +170 -0
  536. package/package/corpus/skills/cratis-components-display-list/SKILL.md +204 -38
  537. package/package/corpus/skills/cratis-components-display-list/references/parts-and-messages.md +22 -0
  538. package/package/corpus/skills/cratis-components-display-list/references/typescript-datatables.md +179 -0
  539. package/package/corpus/skills/cratis-components-display-list/references/typescript.md +204 -0
  540. package/package/corpus/skills/cratis-components-edit-schema-data/SKILL.md +188 -75
  541. package/package/corpus/skills/cratis-components-edit-schema-data/references/editing-rules.md +27 -0
  542. package/package/corpus/skills/cratis-components-edit-schema-data/references/schema-mapping.md +57 -0
  543. package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript-componentpicker.md +22 -0
  544. package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript-composition.md +246 -0
  545. package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript-configurationeditor.md +23 -0
  546. package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript-objectcontenteditor.md +12 -0
  547. package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript-objectnavigationalbar.md +7 -0
  548. package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript-schemaeditor.md +89 -0
  549. package/package/corpus/skills/cratis-components-edit-schema-data/references/typescript.md +141 -0
  550. package/package/corpus/skills/cratis-components-explore-data/SKILL.md +192 -48
  551. package/package/corpus/skills/cratis-components-explore-data/references/typescript-composition.md +87 -0
  552. package/package/corpus/skills/cratis-components-explore-data/references/typescript-filter.md +47 -0
  553. package/package/corpus/skills/cratis-components-explore-data/references/typescript-pivotviewer.md +27 -0
  554. package/package/corpus/skills/cratis-components-explore-data/references/typescript-timemachine.md +44 -0
  555. package/package/corpus/skills/cratis-components-explore-data/references/typescript.md +133 -0
  556. package/package/corpus/skills/cratis-components-host-chat/SKILL.md +189 -34
  557. package/package/corpus/skills/cratis-components-host-chat/references/presentation.md +60 -0
  558. package/package/corpus/skills/cratis-components-host-chat/references/typescript-composition.md +108 -0
  559. package/package/corpus/skills/cratis-components-host-chat/references/typescript-layouts.md +59 -0
  560. package/package/corpus/skills/cratis-components-host-chat/references/typescript.md +158 -0
  561. package/package/corpus/skills/cratis-components-submit-form/SKILL.md +127 -45
  562. package/package/corpus/skills/cratis-components-submit-form/references/typescript-commanddialog.md +138 -0
  563. package/package/corpus/skills/cratis-components-submit-form/references/typescript-commandform.md +96 -0
  564. package/package/corpus/skills/cratis-components-submit-form/references/typescript-fields.md +157 -0
  565. package/package/corpus/skills/cratis-components-submit-form/references/typescript.md +113 -0
  566. package/package/corpus/skills/cratis-components-theme-application/SKILL.md +137 -47
  567. package/package/corpus/skills/cratis-components-theme-application/references/palette.md +4 -5
  568. package/package/corpus/skills/cratis-components-theme-application/references/parts.md +73 -0
  569. package/package/corpus/skills/cratis-components-theme-application/references/renderer-adapters.md +34 -3
  570. package/package/corpus/skills/cratis-components-theme-application/references/tokens.md +17 -0
  571. package/package/corpus/skills/cratis-components-theme-application/references/typescript-adapter-authoring.md +198 -0
  572. package/package/corpus/skills/cratis-components-theme-application/references/typescript.md +243 -0
  573. package/package/corpus/skills/cratis-content-length/SKILL.md +221 -162
  574. package/package/corpus/skills/cratis-content-length/references/length-evidence.md +173 -6
  575. package/package/corpus/skills/cratis-developer-marketing/SKILL.md +259 -184
  576. package/package/corpus/skills/cratis-developer-marketing/references/measurement.md +32 -16
  577. package/package/corpus/skills/cratis-developer-marketing/references/playbook-evidence.md +115 -0
  578. package/package/corpus/skills/cratis-discoverability/SKILL.md +196 -85
  579. package/package/corpus/skills/cratis-discoverability/references/csharp.md +6 -0
  580. package/package/corpus/skills/cratis-discoverability/references/elixir.md +6 -0
  581. package/package/corpus/skills/cratis-discoverability/references/entities.md +41 -25
  582. package/package/corpus/skills/cratis-discoverability/references/go.md +6 -0
  583. package/package/corpus/skills/cratis-discoverability/references/java.md +6 -0
  584. package/package/corpus/skills/cratis-discoverability/references/kotlin.md +6 -0
  585. package/package/corpus/skills/cratis-discoverability/references/package-metadata.md +10 -5
  586. package/package/corpus/skills/cratis-discoverability/references/page-checklist.md +90 -49
  587. package/package/corpus/skills/cratis-discoverability/references/structured-data.md +35 -28
  588. package/package/corpus/skills/cratis-discoverability/references/typescript.md +6 -0
  589. package/package/corpus/skills/cratis-discoverability/scripts/verify-discoverability.mjs +24 -9
  590. package/package/corpus/skills/cratis-documentation-writing/SKILL.md +266 -172
  591. package/package/corpus/skills/cratis-documentation-writing/references/cratis-site.md +113 -100
  592. package/package/corpus/skills/cratis-documentation-writing/references/writing-guidance.md +4 -2
  593. package/package/corpus/skills/cratis-engineering-ci-gates/SKILL.md +220 -87
  594. package/package/corpus/skills/cratis-engineering-ci-gates/references/gate-operation.md +145 -9
  595. package/package/corpus/skills/cratis-engineering-consolidation-guard/SKILL.md +259 -54
  596. package/package/corpus/skills/cratis-engineering-consolidation-guard/references/ci-required-check.md +88 -38
  597. package/package/corpus/skills/cratis-engineering-consolidation-guard/references/verification-details.md +102 -24
  598. package/package/corpus/skills/cratis-engineering-csharp-conventions/SKILL.md +118 -87
  599. package/package/corpus/skills/cratis-engineering-csharp-conventions/references/csharp-alternate-implementations.md +60 -0
  600. package/package/corpus/skills/cratis-engineering-csharp-conventions/references/csharp-code-style.md +294 -0
  601. package/package/corpus/skills/cratis-engineering-csharp-conventions/references/{domain-philosophy.md → csharp-domain-philosophy.md} +11 -10
  602. package/package/corpus/skills/cratis-engineering-csharp-conventions/references/csharp-exceptions-logging-and-di.md +328 -0
  603. package/package/corpus/skills/cratis-engineering-csharp-conventions/references/csharp-monads.md +124 -0
  604. package/package/corpus/skills/cratis-engineering-csharp-conventions/references/csharp.md +54 -0
  605. package/package/corpus/skills/cratis-engineering-decision-record/SKILL.md +266 -97
  606. package/package/corpus/skills/cratis-engineering-decision-record/references/decision-pitfalls.md +21 -8
  607. package/package/corpus/skills/cratis-engineering-decision-record/references/direct.md +118 -0
  608. package/package/corpus/skills/cratis-engineering-decision-record/references/record-format.md +114 -102
  609. package/package/corpus/skills/cratis-engineering-docs-authoring/SKILL.md +301 -71
  610. package/package/corpus/skills/cratis-engineering-docs-authoring/references/site-format.md +294 -56
  611. package/package/corpus/skills/cratis-engineering-effect-boundaries/SKILL.md +161 -86
  612. package/package/corpus/skills/cratis-engineering-effect-boundaries/references/csharp.md +52 -0
  613. package/package/corpus/skills/cratis-engineering-effect-boundaries/references/elixir.md +21 -0
  614. package/package/corpus/skills/cratis-engineering-effect-boundaries/references/failure-archetypes.md +35 -6
  615. package/package/corpus/skills/cratis-engineering-effect-boundaries/references/go.md +17 -0
  616. package/package/corpus/skills/cratis-engineering-effect-boundaries/references/java.md +14 -0
  617. package/package/corpus/skills/cratis-engineering-effect-boundaries/references/kotlin.md +14 -0
  618. package/package/corpus/skills/cratis-engineering-effect-boundaries/references/typescript.md +15 -0
  619. package/package/corpus/skills/cratis-engineering-inherited-work/SKILL.md +127 -27
  620. package/package/corpus/skills/cratis-engineering-inherited-work/references/continue-inherited-work.md +40 -13
  621. package/package/corpus/skills/cratis-engineering-inherited-work/references/pull-request-evidence.md +66 -0
  622. package/package/corpus/skills/cratis-engineering-issue-design-note/SKILL.md +254 -79
  623. package/package/corpus/skills/cratis-engineering-issue-design-note/references/design-note-format.md +97 -52
  624. package/package/corpus/skills/cratis-engineering-issue-hygiene/SKILL.md +159 -64
  625. package/package/corpus/skills/cratis-engineering-issue-hygiene/references/issue-disposition.md +119 -67
  626. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/SKILL.md +249 -57
  627. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/{dotnet-nuget.md → csharp.md} +11 -16
  628. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/dependency-map.md +40 -8
  629. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/docker-images.md +5 -8
  630. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/elixir.md +108 -0
  631. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/go.md +276 -0
  632. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/helper-runbook.md +28 -18
  633. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/java.md +105 -0
  634. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/kotlin.md +179 -0
  635. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/train-mode.md +1 -1
  636. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/{npm-yarn.md → typescript.md} +5 -3
  637. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/worked-examples.md +116 -48
  638. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/scripts/dependency-map.tsv +1 -1
  639. package/package/corpus/skills/cratis-engineering-post-mortem/SKILL.md +283 -81
  640. package/package/corpus/skills/cratis-engineering-post-mortem/references/proportionate-follow-up.md +5 -20
  641. package/package/corpus/skills/cratis-engineering-post-mortem/references/public-safe-wording.md +18 -23
  642. package/package/corpus/skills/cratis-engineering-post-mortem/references/review-template.md +86 -37
  643. package/package/corpus/skills/cratis-engineering-post-mortem/references/silent-backup-failure.md +92 -98
  644. package/package/corpus/skills/cratis-engineering-post-mortem/references/unintended-release-regression.md +79 -73
  645. package/package/corpus/skills/cratis-engineering-regression-cluster/SKILL.md +98 -56
  646. package/package/corpus/skills/cratis-engineering-regression-cluster/references/history-and-proof.md +30 -0
  647. package/package/corpus/skills/cratis-engineering-release-trains/SKILL.md +290 -62
  648. package/package/corpus/skills/cratis-engineering-release-trains/references/candidate-assembly.md +138 -107
  649. package/package/corpus/skills/cratis-engineering-release-trains/references/final-merge-gate.md +118 -0
  650. package/package/corpus/skills/cratis-engineering-review-rounds/SKILL.md +311 -68
  651. package/package/corpus/skills/cratis-engineering-review-rounds/references/review-ranges.md +99 -0
  652. package/package/corpus/skills/cratis-environments-and-secrets/SKILL.md +235 -95
  653. package/package/corpus/skills/cratis-environments-and-secrets/references/csharp.md +112 -0
  654. package/package/corpus/skills/cratis-environments-and-secrets/references/environment-file.md +28 -23
  655. package/package/corpus/skills/cratis-environments-and-secrets/references/transcript-safety.md +31 -0
  656. package/package/corpus/skills/cratis-event-model-diagram/SKILL.md +174 -65
  657. package/package/corpus/skills/cratis-event-model-diagram/references/frame-patterns.md +73 -69
  658. package/package/corpus/skills/cratis-fundamentals-concept/SKILL.md +143 -0
  659. package/package/corpus/skills/cratis-fundamentals-concept/references/csharp-serialization.md +183 -0
  660. package/package/corpus/skills/cratis-fundamentals-concept/references/csharp.md +113 -0
  661. package/package/corpus/skills/cratis-fundamentals-concept/references/elixir.md +76 -0
  662. package/package/corpus/skills/cratis-fundamentals-concept/references/go-naming.md +36 -0
  663. package/package/corpus/skills/cratis-fundamentals-concept/references/go.md +276 -0
  664. package/package/corpus/skills/cratis-fundamentals-concept/references/java-json.md +121 -0
  665. package/package/corpus/skills/cratis-fundamentals-concept/references/java-primitives.md +156 -0
  666. package/package/corpus/skills/cratis-fundamentals-concept/references/java.md +155 -0
  667. package/package/corpus/skills/cratis-fundamentals-concept/references/kotlin-json.md +123 -0
  668. package/package/corpus/skills/cratis-fundamentals-concept/references/kotlin-primitives.md +161 -0
  669. package/package/corpus/skills/cratis-fundamentals-concept/references/kotlin.md +140 -0
  670. package/package/corpus/skills/cratis-fundamentals-concept/references/typescript-serialization.md +203 -0
  671. package/package/corpus/skills/cratis-fundamentals-concept/references/typescript.md +100 -0
  672. package/package/corpus/skills/cratis-fundamentals-name-value/SKILL.md +113 -11
  673. package/package/corpus/skills/cratis-fundamentals-name-value/references/csharp-specs.md +165 -0
  674. package/package/corpus/skills/cratis-fundamentals-name-value/references/csharp.md +223 -29
  675. package/package/corpus/skills/cratis-fundamentals-name-value/references/elixir.md +162 -4
  676. package/package/corpus/skills/cratis-fundamentals-name-value/references/go.md +227 -5
  677. package/package/corpus/skills/cratis-fundamentals-name-value/references/java.md +203 -6
  678. package/package/corpus/skills/cratis-fundamentals-name-value/references/kotlin.md +251 -5
  679. package/package/corpus/skills/cratis-fundamentals-name-value/references/typescript.md +160 -9
  680. package/package/corpus/skills/cratis-fundamentals-telemetry/SKILL.md +120 -62
  681. package/package/corpus/skills/cratis-fundamentals-telemetry/references/csharp-otlp-export.md +56 -0
  682. package/package/corpus/skills/cratis-fundamentals-telemetry/references/csharp.md +224 -0
  683. package/package/corpus/skills/cratis-fundamentals-telemetry/references/elixir.md +10 -0
  684. package/package/corpus/skills/cratis-fundamentals-telemetry/references/go.md +33 -0
  685. package/package/corpus/skills/cratis-fundamentals-telemetry/references/java.md +9 -0
  686. package/package/corpus/skills/cratis-fundamentals-telemetry/references/kotlin.md +9 -0
  687. package/package/corpus/skills/cratis-fundamentals-telemetry/references/typescript.md +9 -0
  688. package/package/corpus/skills/cratis-fundamentals-type-discovery/SKILL.md +104 -26
  689. package/package/corpus/skills/cratis-fundamentals-type-discovery/references/csharp-diagnostics.md +75 -0
  690. package/package/corpus/skills/cratis-fundamentals-type-discovery/references/csharp.md +182 -0
  691. package/package/corpus/skills/cratis-fundamentals-type-discovery/references/elixir.md +30 -0
  692. package/package/corpus/skills/cratis-fundamentals-type-discovery/references/go-dependency-injection.md +168 -0
  693. package/package/corpus/skills/cratis-fundamentals-type-discovery/references/go.md +29 -0
  694. package/package/corpus/skills/cratis-fundamentals-type-discovery/references/java.md +39 -0
  695. package/package/corpus/skills/cratis-fundamentals-type-discovery/references/kotlin.md +31 -0
  696. package/package/corpus/skills/cratis-fundamentals-type-discovery/references/typescript.md +32 -0
  697. package/package/corpus/skills/cratis-governed-release-methodology/SKILL.md +346 -273
  698. package/package/corpus/skills/cratis-governed-release-methodology/references/artifact-verification.md +58 -0
  699. package/package/corpus/skills/cratis-governed-release-methodology/references/lifecycle-phases.md +32 -25
  700. package/package/corpus/skills/cratis-governed-release-methodology/references/release-decisions.md +78 -0
  701. package/package/corpus/skills/cratis-lens-browser-extension/SKILL.md +331 -98
  702. package/package/corpus/skills/cratis-lens-browser-extension/references/csharp.md +13 -0
  703. package/package/corpus/skills/cratis-lens-browser-extension/references/elixir.md +9 -0
  704. package/package/corpus/skills/cratis-lens-browser-extension/references/go.md +8 -0
  705. package/package/corpus/skills/cratis-lens-browser-extension/references/java.md +8 -0
  706. package/package/corpus/skills/cratis-lens-browser-extension/references/kotlin.md +8 -0
  707. package/package/corpus/skills/cratis-lens-browser-extension/references/troubleshooting.md +111 -102
  708. package/package/corpus/skills/cratis-lens-browser-extension/references/typescript.md +10 -0
  709. package/package/corpus/skills/cratis-llm-friendly-documentation/SKILL.md +333 -102
  710. package/package/corpus/skills/cratis-modeling-design-event-model/SKILL.md +144 -15
  711. package/package/corpus/skills/cratis-modeling-design-event-model/references/command-inventory.md +43 -0
  712. package/package/corpus/skills/cratis-modeling-design-event-model/references/model-first.md +71 -3
  713. package/package/corpus/skills/cratis-modeling-design-event-model/references/review-one-slice.md +14 -13
  714. package/package/corpus/skills/cratis-modeling-discover-timeline/SKILL.md +265 -14
  715. package/package/corpus/skills/cratis-modeling-discover-timeline/references/discovery-questions.md +10 -8
  716. package/package/corpus/skills/cratis-modeling-discover-timeline/references/group-and-document-intake.md +5 -1
  717. package/package/corpus/skills/cratis-modeling-discover-timeline/references/studio.md +136 -0
  718. package/package/corpus/skills/cratis-modeling-review-event-model/SKILL.md +172 -9
  719. package/package/corpus/skills/cratis-modeling-review-event-model/references/csharp.md +40 -0
  720. package/package/corpus/skills/cratis-modeling-review-event-model/references/elixir.md +32 -0
  721. package/package/corpus/skills/cratis-modeling-review-event-model/references/event-log-hygiene.md +44 -0
  722. package/package/corpus/skills/cratis-modeling-review-event-model/references/go.md +27 -0
  723. package/package/corpus/skills/cratis-modeling-review-event-model/references/implementation-findings.md +20 -9
  724. package/package/corpus/skills/cratis-modeling-review-event-model/references/java.md +28 -0
  725. package/package/corpus/skills/cratis-modeling-review-event-model/references/kotlin.md +28 -0
  726. package/package/corpus/skills/cratis-modeling-review-event-model/references/model-findings.md +30 -10
  727. package/package/corpus/skills/cratis-modeling-review-event-model/references/resilience-review.md +1 -1
  728. package/package/corpus/skills/cratis-modeling-review-event-model/references/screenplay-evidence.md +159 -0
  729. package/package/corpus/skills/cratis-modeling-review-event-model/references/typescript.md +27 -0
  730. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/SKILL.md +128 -16
  731. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/compare-evidence.md +5 -5
  732. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/csharp-source-adapter.md +221 -0
  733. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/csharp.md +11 -0
  734. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/draft-checks.md +23 -0
  735. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/elixir.md +13 -0
  736. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/go.md +10 -0
  737. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/java.md +5 -0
  738. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/kotlin.md +5 -0
  739. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/recovery-inputs.md +67 -4
  740. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/side-car-migration.md +11 -0
  741. package/package/corpus/skills/cratis-modeling-trace-existing-behavior/references/typescript.md +5 -0
  742. package/package/corpus/skills/cratis-multi-service-local-orchestration/SKILL.md +229 -90
  743. package/package/corpus/skills/cratis-multi-service-local-orchestration/references/csharp-aspire.md +204 -0
  744. package/package/corpus/skills/cratis-multi-service-local-orchestration/references/csharp.md +31 -0
  745. package/package/corpus/skills/cratis-multi-service-local-orchestration/references/docker-compose.md +82 -36
  746. package/package/corpus/skills/cratis-multi-service-local-orchestration/references/elixir.md +10 -0
  747. package/package/corpus/skills/cratis-multi-service-local-orchestration/references/go.md +11 -0
  748. package/package/corpus/skills/cratis-multi-service-local-orchestration/references/java.md +11 -0
  749. package/package/corpus/skills/cratis-multi-service-local-orchestration/references/kotlin.md +11 -0
  750. package/package/corpus/skills/cratis-multi-service-local-orchestration/references/typescript.md +15 -0
  751. package/package/corpus/skills/cratis-observability/SKILL.md +178 -10
  752. package/package/corpus/skills/cratis-observability/references/chronicle-kernel-export.md +153 -13
  753. package/package/corpus/skills/cratis-observability/references/csharp-arc-and-chronicle-signals.md +79 -0
  754. package/package/corpus/skills/cratis-observability/references/csharp-setup-options.md +104 -0
  755. package/package/corpus/skills/cratis-observability/references/csharp.md +172 -56
  756. package/package/corpus/skills/cratis-observability/references/elixir.md +243 -5
  757. package/package/corpus/skills/cratis-observability/references/go-arc-diagnostics.md +134 -0
  758. package/package/corpus/skills/cratis-observability/references/go.md +292 -0
  759. package/package/corpus/skills/cratis-observability/references/java.md +236 -0
  760. package/package/corpus/skills/cratis-observability/references/kotlin.md +251 -0
  761. package/package/corpus/skills/cratis-observability/references/troubleshooting.md +13 -17
  762. package/package/corpus/skills/cratis-observability/references/typescript-chronicle-client.md +116 -0
  763. package/package/corpus/skills/cratis-observability/references/typescript.md +159 -0
  764. package/package/corpus/skills/cratis-onboarding-runtime/SKILL.md +222 -85
  765. package/package/corpus/skills/cratis-onboarding-runtime/references/ante-onboarding-keys.md +153 -10
  766. package/package/corpus/skills/cratis-onboarding-runtime/references/csharp.md +61 -0
  767. package/package/corpus/skills/cratis-onboarding-runtime/references/default-offering.md +29 -33
  768. package/package/corpus/skills/cratis-onboarding-runtime/references/performance.md +75 -19
  769. package/package/corpus/skills/cratis-onboarding-runtime/references/sign-up-review.md +10 -6
  770. package/package/corpus/skills/cratis-orchestration-lanes/SKILL.md +174 -80
  771. package/package/corpus/skills/cratis-orchestration-lanes/references/inbox-and-handover.md +78 -49
  772. package/package/corpus/skills/cratis-orchestration-lanes/references/lane-brief.md +48 -16
  773. package/package/corpus/skills/cratis-orchestration-lanes/references/placeholders.md +11 -8
  774. package/package/corpus/skills/cratis-orchestration-lanes/references/work-records.md +16 -0
  775. package/package/corpus/skills/cratis-orchestration-merge-gates/SKILL.md +80 -90
  776. package/package/corpus/skills/cratis-orchestration-merge-gates/references/merge-queue.md +153 -59
  777. package/package/corpus/skills/cratis-orchestration-merge-gates/references/unattended-guards.md +10 -6
  778. package/package/corpus/skills/cratis-orleans-jobs/SKILL.md +216 -32
  779. package/package/corpus/skills/cratis-orleans-jobs/references/csharp-lifecycle-and-placement.md +89 -0
  780. package/package/corpus/skills/cratis-orleans-jobs/references/csharp-state-machines.md +96 -0
  781. package/package/corpus/skills/cratis-orleans-jobs/references/csharp.md +301 -0
  782. package/package/corpus/skills/cratis-performance-review/SKILL.md +265 -45
  783. package/package/corpus/skills/cratis-performance-review/references/csharp.md +67 -0
  784. package/package/corpus/skills/cratis-performance-review/references/elixir.md +34 -0
  785. package/package/corpus/skills/cratis-performance-review/references/go.md +43 -0
  786. package/package/corpus/skills/cratis-performance-review/references/java.md +38 -0
  787. package/package/corpus/skills/cratis-performance-review/references/kotlin.md +37 -0
  788. package/package/corpus/skills/cratis-performance-review/references/observer-tuning.md +117 -0
  789. package/package/corpus/skills/cratis-performance-review/references/review-checklist.md +173 -77
  790. package/package/corpus/skills/cratis-performance-review/references/typescript.md +41 -0
  791. package/package/corpus/skills/cratis-platform-build-application/SKILL.md +243 -0
  792. package/package/corpus/skills/cratis-platform-build-application/references/cli-map.md +256 -0
  793. package/package/corpus/skills/cratis-platform-build-application/references/csharp-guided-tours.md +41 -0
  794. package/package/corpus/skills/cratis-platform-build-application/references/csharp.md +17 -0
  795. package/package/corpus/skills/cratis-platform-build-application/references/direct.md +258 -0
  796. package/package/corpus/skills/cratis-platform-build-application/references/elixir.md +27 -0
  797. package/package/corpus/skills/cratis-platform-build-application/references/go.md +13 -0
  798. package/package/corpus/skills/cratis-platform-build-application/references/java.md +13 -0
  799. package/package/corpus/skills/cratis-platform-build-application/references/kotlin.md +13 -0
  800. package/package/corpus/skills/cratis-platform-build-application/references/typescript-guided-tours.md +132 -0
  801. package/package/corpus/skills/cratis-platform-build-application/references/typescript.md +13 -0
  802. package/package/corpus/skills/cratis-platform-build-application/scripts/model-first-status.sh +100 -0
  803. package/package/corpus/skills/cratis-platform-configure-environment/SKILL.md +130 -31
  804. package/package/corpus/skills/cratis-platform-configure-environment/references/csharp.md +336 -0
  805. package/package/corpus/skills/cratis-platform-configure-environment/references/elixir.md +224 -0
  806. package/package/corpus/skills/cratis-platform-configure-environment/references/go.md +257 -0
  807. package/package/corpus/skills/cratis-platform-configure-environment/references/java.md +209 -0
  808. package/package/corpus/skills/cratis-platform-configure-environment/references/kotlin.md +240 -0
  809. package/package/corpus/skills/cratis-platform-configure-environment/references/typescript.md +280 -0
  810. package/package/corpus/skills/cratis-platform-contribute-change/SKILL.md +120 -8
  811. package/package/corpus/skills/cratis-platform-contribute-change/references/csharp-arc-mcp.md +65 -0
  812. package/package/corpus/skills/cratis-platform-contribute-change/references/csharp-cli-registration.md +86 -0
  813. package/package/corpus/skills/cratis-platform-contribute-change/references/csharp.md +21 -0
  814. package/package/corpus/skills/cratis-platform-contribute-change/references/elixir.md +12 -0
  815. package/package/corpus/skills/cratis-platform-contribute-change/references/go.md +14 -0
  816. package/package/corpus/skills/cratis-platform-contribute-change/references/java.md +9 -0
  817. package/package/corpus/skills/cratis-platform-contribute-change/references/kotlin.md +12 -0
  818. package/package/corpus/skills/cratis-platform-contribute-change/references/repositories.md +93 -0
  819. package/package/corpus/skills/cratis-platform-contribute-change/references/typescript.md +13 -0
  820. package/package/corpus/skills/cratis-platform-deliver-slice/SKILL.md +235 -13
  821. package/package/corpus/skills/cratis-platform-deliver-slice/references/contract-reconciliation.md +73 -6
  822. package/package/corpus/skills/cratis-platform-deliver-slice/references/coordinate-slices.md +7 -4
  823. package/package/corpus/skills/cratis-platform-deliver-slice/references/csharp.md +251 -0
  824. package/package/corpus/skills/cratis-platform-deliver-slice/references/elixir.md +266 -0
  825. package/package/corpus/skills/cratis-platform-deliver-slice/references/go.md +242 -0
  826. package/package/corpus/skills/cratis-platform-deliver-slice/references/java.md +310 -0
  827. package/package/corpus/skills/cratis-platform-deliver-slice/references/kotlin.md +297 -0
  828. package/package/corpus/skills/cratis-platform-deliver-slice/references/typescript.md +248 -0
  829. package/package/corpus/skills/cratis-platform-diagnose-slice/SKILL.md +173 -25
  830. package/package/corpus/skills/cratis-platform-diagnose-slice/references/csharp.md +7 -0
  831. package/package/corpus/skills/cratis-platform-diagnose-slice/references/elixir.md +7 -0
  832. package/package/corpus/skills/cratis-platform-diagnose-slice/references/evidence.md +100 -0
  833. package/package/corpus/skills/cratis-platform-diagnose-slice/references/go.md +7 -0
  834. package/package/corpus/skills/cratis-platform-diagnose-slice/references/java.md +5 -0
  835. package/package/corpus/skills/cratis-platform-diagnose-slice/references/kotlin.md +5 -0
  836. package/package/corpus/skills/cratis-platform-diagnose-slice/references/typescript.md +7 -0
  837. package/package/corpus/skills/cratis-platform-prepare-release-pr/SKILL.md +178 -13
  838. package/package/corpus/skills/cratis-platform-prepare-release-pr/references/product-release-checks.md +23 -0
  839. package/package/corpus/skills/cratis-platform-start-application/SKILL.md +239 -21
  840. package/package/corpus/skills/cratis-platform-start-application/references/csharp.md +223 -18
  841. package/package/corpus/skills/cratis-platform-start-application/references/elixir.md +11 -0
  842. package/package/corpus/skills/cratis-platform-start-application/references/go.md +11 -0
  843. package/package/corpus/skills/cratis-platform-start-application/references/java.md +224 -9
  844. package/package/corpus/skills/cratis-platform-start-application/references/kotlin.md +191 -9
  845. package/package/corpus/skills/cratis-platform-start-application/references/typescript.md +14 -0
  846. package/package/corpus/skills/cratis-platform-verify-service-handoff/SKILL.md +211 -12
  847. package/package/corpus/skills/cratis-platform-verify-service-handoff/references/csharp.md +9 -0
  848. package/package/corpus/skills/cratis-platform-verify-service-handoff/references/elixir.md +5 -0
  849. package/package/corpus/skills/cratis-platform-verify-service-handoff/references/go.md +5 -0
  850. package/package/corpus/skills/cratis-platform-verify-service-handoff/references/java.md +5 -0
  851. package/package/corpus/skills/cratis-platform-verify-service-handoff/references/kotlin.md +5 -0
  852. package/package/corpus/skills/cratis-platform-verify-service-handoff/references/routes-and-failures.md +40 -0
  853. package/package/corpus/skills/cratis-platform-verify-service-handoff/references/typescript.md +5 -0
  854. package/package/corpus/skills/cratis-release-notes/SKILL.md +137 -57
  855. package/package/corpus/skills/cratis-release-notes/references/channel-guidance.md +59 -59
  856. package/package/corpus/skills/cratis-release-notes/references/publish-repair.md +55 -61
  857. package/package/corpus/skills/cratis-rtk/SKILL.md +188 -35
  858. package/package/corpus/skills/cratis-rtk/references/rtk-administration.md +137 -0
  859. package/package/corpus/skills/cratis-rtk/references/rtk-filters.md +68 -0
  860. package/package/corpus/skills/cratis-screenplay-accept-model/SKILL.md +160 -18
  861. package/package/corpus/skills/cratis-screenplay-accept-model/references/coverage-obligations.md +2 -0
  862. package/package/corpus/skills/cratis-screenplay-accept-model/references/csharp.md +122 -0
  863. package/package/corpus/skills/cratis-screenplay-accept-model/references/diagnostic-decisions.md +10 -0
  864. package/package/corpus/skills/cratis-screenplay-accept-model/references/read-the-evidence.md +50 -0
  865. package/package/corpus/skills/cratis-screenplay-authentication-and-onboarding/SKILL.md +265 -41
  866. package/package/corpus/skills/cratis-screenplay-authentication-and-onboarding/references/email-templates.md +47 -0
  867. package/package/corpus/skills/cratis-screenplay-authentication-and-onboarding/references/environment-keys.md +81 -0
  868. package/package/corpus/skills/cratis-screenplay-author-extension/SKILL.md +182 -20
  869. package/package/corpus/skills/cratis-screenplay-author-extension/references/cli.md +58 -0
  870. package/package/corpus/skills/cratis-screenplay-author-extension/references/consume.md +31 -8
  871. package/package/corpus/skills/cratis-screenplay-author-extension/references/csharp.md +66 -0
  872. package/package/corpus/skills/cratis-screenplay-author-extension/references/elixir.md +8 -0
  873. package/package/corpus/skills/cratis-screenplay-author-extension/references/frontend-components.md +12 -0
  874. package/package/corpus/skills/cratis-screenplay-author-extension/references/go.md +95 -0
  875. package/package/corpus/skills/cratis-screenplay-author-extension/references/java.md +15 -0
  876. package/package/corpus/skills/cratis-screenplay-author-extension/references/kotlin.md +69 -0
  877. package/package/corpus/skills/cratis-screenplay-author-extension/references/lock-and-trust.md +23 -0
  878. package/package/corpus/skills/cratis-screenplay-author-extension/references/protocol.md +12 -0
  879. package/package/corpus/skills/cratis-screenplay-author-extension/references/runtime-details.md +30 -0
  880. package/package/corpus/skills/cratis-screenplay-author-extension/references/stage-candidate.md +70 -6
  881. package/package/corpus/skills/cratis-screenplay-author-extension/references/typescript.md +66 -0
  882. package/package/corpus/skills/cratis-screenplay-availability/SKILL.md +165 -20
  883. package/package/corpus/skills/cratis-screenplay-availability/references/complete-example.md +60 -4
  884. package/package/corpus/skills/cratis-screenplay-availability/references/csharp.md +88 -0
  885. package/package/corpus/skills/cratis-screenplay-availability/references/elixir.md +45 -0
  886. package/package/corpus/skills/cratis-screenplay-availability/references/go.md +5 -0
  887. package/package/corpus/skills/cratis-screenplay-availability/references/java.md +5 -0
  888. package/package/corpus/skills/cratis-screenplay-availability/references/kotlin.md +5 -0
  889. package/package/corpus/skills/cratis-screenplay-availability/references/review-checks.md +62 -13
  890. package/package/corpus/skills/cratis-screenplay-availability/references/runtime-ownership.md +72 -13
  891. package/package/corpus/skills/cratis-screenplay-availability/references/typescript.md +20 -0
  892. package/package/corpus/skills/cratis-screenplay-declare-slice/SKILL.md +232 -66
  893. package/package/corpus/skills/cratis-screenplay-declare-slice/references/commands.md +256 -0
  894. package/package/corpus/skills/cratis-screenplay-declare-slice/references/concepts-and-generated-values.md +206 -0
  895. package/package/corpus/skills/cratis-screenplay-declare-slice/references/context-and-identity.md +105 -0
  896. package/package/corpus/skills/cratis-screenplay-declare-slice/references/events-and-constraints.md +123 -0
  897. package/package/corpus/skills/cratis-screenplay-declare-slice/references/language-map.md +129 -0
  898. package/package/corpus/skills/cratis-screenplay-declare-slice/references/policies-and-purposes.md +117 -0
  899. package/package/corpus/skills/cratis-screenplay-declare-slice/references/projection-replay.md +3 -12
  900. package/package/corpus/skills/cratis-screenplay-declare-slice/references/projections.md +222 -0
  901. package/package/corpus/skills/cratis-screenplay-declare-slice/references/queries.md +122 -0
  902. package/package/corpus/skills/cratis-screenplay-declare-slice/references/reducers-graphs-sinks.md +105 -0
  903. package/package/corpus/skills/cratis-screenplay-declare-slice/references/structure-and-imports.md +142 -0
  904. package/package/corpus/skills/cratis-screenplay-edit-workspace/SKILL.md +164 -21
  905. package/package/corpus/skills/cratis-screenplay-edit-workspace/references/mcp-tools.md +138 -0
  906. package/package/corpus/skills/cratis-screenplay-edit-workspace/references/model-notes.md +63 -14
  907. package/package/corpus/skills/cratis-screenplay-handoff-slice/SKILL.md +120 -25
  908. package/package/corpus/skills/cratis-screenplay-handoff-slice/references/csharp.md +107 -0
  909. package/package/corpus/skills/cratis-screenplay-handoff-slice/references/mcp.md +16 -0
  910. package/package/corpus/skills/cratis-screenplay-handoff-slice/references/ordering.md +29 -3
  911. package/package/corpus/skills/cratis-screenplay-handoff-slice/references/recipient-contracts.md +50 -0
  912. package/package/corpus/skills/cratis-screenplay-model-automation/SKILL.md +190 -101
  913. package/package/corpus/skills/cratis-screenplay-model-automation/references/external-effects.md +10 -0
  914. package/package/corpus/skills/cratis-screenplay-model-automation/references/reaction-boundaries.md +12 -4
  915. package/package/corpus/skills/cratis-screenplay-model-automation/references/reaction-example.md +95 -0
  916. package/package/corpus/skills/cratis-screenplay-model-automation/references/stage-subset.md +61 -0
  917. package/package/corpus/skills/cratis-screenplay-model-interaction/SKILL.md +171 -51
  918. package/package/corpus/skills/cratis-screenplay-model-interaction/references/csharp-host-api.md +177 -0
  919. package/package/corpus/skills/cratis-screenplay-model-interaction/references/csharp.md +127 -0
  920. package/package/corpus/skills/cratis-screenplay-model-interaction/references/decision-inputs.md +10 -0
  921. package/package/corpus/skills/cratis-screenplay-model-interaction/references/elixir.md +9 -0
  922. package/package/corpus/skills/cratis-screenplay-model-interaction/references/go.md +9 -0
  923. package/package/corpus/skills/cratis-screenplay-model-interaction/references/java.md +9 -0
  924. package/package/corpus/skills/cratis-screenplay-model-interaction/references/kotlin.md +9 -0
  925. package/package/corpus/skills/cratis-screenplay-model-interaction/references/localized-strings.md +1 -1
  926. package/package/corpus/skills/cratis-screenplay-model-interaction/references/navigation-reachability.md +25 -0
  927. package/package/corpus/skills/cratis-screenplay-model-interaction/references/shell-and-data.md +187 -20
  928. package/package/corpus/skills/cratis-screenplay-model-interaction/references/typescript.md +119 -6
  929. package/package/corpus/skills/cratis-screenplay-model-translation/SKILL.md +259 -89
  930. package/package/corpus/skills/cratis-screenplay-model-translation/references/boundary-diagnostics.md +32 -0
  931. package/package/corpus/skills/cratis-screenplay-model-translation/references/stage-realization.md +36 -0
  932. package/package/corpus/skills/cratis-screenplay-model-translation/references/translation-scenarios.md +114 -0
  933. package/package/corpus/skills/cratis-screenplay-onboard-workspace/SKILL.md +185 -20
  934. package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/cli.md +88 -0
  935. package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/csharp.md +210 -0
  936. package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/typescript.md +45 -0
  937. package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/workspace-mcp.md +133 -0
  938. package/package/corpus/skills/cratis-screenplay-recover-intent/SKILL.md +161 -20
  939. package/package/corpus/skills/cratis-screenplay-recover-intent/references/csharp.md +195 -7
  940. package/package/corpus/skills/cratis-screenplay-recover-intent/references/elixir.md +21 -0
  941. package/package/corpus/skills/cratis-screenplay-recover-intent/references/go.md +17 -0
  942. package/package/corpus/skills/cratis-screenplay-recover-intent/references/ground-truth-benchmark.md +1 -1
  943. package/package/corpus/skills/cratis-screenplay-recover-intent/references/java.md +9 -0
  944. package/package/corpus/skills/cratis-screenplay-recover-intent/references/kotlin.md +9 -0
  945. package/package/corpus/skills/cratis-screenplay-recover-intent/references/running-system.md +122 -6
  946. package/package/corpus/skills/cratis-screenplay-recover-intent/references/typescript.md +9 -0
  947. package/package/corpus/skills/cratis-screenplay-specify-outcome/SKILL.md +233 -62
  948. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/boundary-scenarios.md +60 -0
  949. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/case-questions.md +30 -0
  950. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/coverage-worksheet.md +16 -8
  951. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/csharp.md +41 -0
  952. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/graph-steps.md +37 -5
  953. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/named-cases.md +23 -10
  954. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/query-rejections.md +22 -19
  955. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/scenarios.md +230 -0
  956. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +140 -14
  957. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/boundaries.md +5 -5
  958. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/chronicle-boundaries.md +7 -9
  959. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/consistency-and-concurrency.md +36 -24
  960. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/destination-repairs.md +21 -0
  961. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution-example.md +1 -1
  962. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution.md +6 -9
  963. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/multi-service-models.md +3 -6
  964. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/read-model-keys.md +4 -5
  965. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-id-rules.md +32 -19
  966. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-patterns.md +53 -16
  967. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/streams-example.md +1 -1
  968. package/package/corpus/skills/cratis-security-review/SKILL.md +137 -72
  969. package/package/corpus/skills/cratis-security-review/references/csharp.md +114 -0
  970. package/package/corpus/skills/cratis-security-review/references/elixir.md +21 -0
  971. package/package/corpus/skills/cratis-security-review/references/go.md +22 -0
  972. package/package/corpus/skills/cratis-security-review/references/java.md +20 -0
  973. package/package/corpus/skills/cratis-security-review/references/kotlin.md +20 -0
  974. package/package/corpus/skills/cratis-security-review/references/python.md +3 -0
  975. package/package/corpus/skills/cratis-security-review/references/review-checklist.md +98 -68
  976. package/package/corpus/skills/cratis-security-review/references/typescript.md +22 -0
  977. package/package/corpus/skills/cratis-session-handoff/SKILL.md +134 -90
  978. package/package/corpus/skills/cratis-session-handoff/references/handoff-template.md +35 -52
  979. package/package/corpus/skills/cratis-showrunner-herald/SKILL.md +170 -86
  980. package/package/corpus/skills/cratis-showrunner-herald/references/csharp-templates-and-images.md +115 -0
  981. package/package/corpus/skills/cratis-showrunner-herald/references/csharp.md +280 -0
  982. package/package/corpus/skills/cratis-social-feed-post/SKILL.md +252 -38
  983. package/package/corpus/skills/cratis-social-feed-post/references/engagement-evidence.md +104 -10
  984. package/package/corpus/skills/cratis-specifications-exercise-backend/SKILL.md +185 -27
  985. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-command-results.md +103 -3
  986. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-decision-reads.md +40 -11
  987. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-events.md +136 -0
  988. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-graphs.md +45 -0
  989. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-integration.md +121 -75
  990. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-query-scenario.md +33 -8
  991. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-reactors.md +117 -0
  992. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-read-models.md +96 -0
  993. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-relational.md +16 -0
  994. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp-slice.md +68 -0
  995. package/package/corpus/skills/cratis-specifications-exercise-backend/references/csharp.md +142 -34
  996. package/package/corpus/skills/cratis-specifications-exercise-backend/references/elixir.md +274 -32
  997. package/package/corpus/skills/cratis-specifications-exercise-backend/references/go.md +176 -111
  998. package/package/corpus/skills/cratis-specifications-exercise-backend/references/java.md +208 -5
  999. package/package/corpus/skills/cratis-specifications-exercise-backend/references/kotlin.md +235 -7
  1000. package/package/corpus/skills/cratis-specifications-exercise-backend/references/typescript.md +223 -57
  1001. package/package/corpus/skills/cratis-specifications-isolate-behavior/SKILL.md +159 -34
  1002. package/package/corpus/skills/cratis-specifications-isolate-behavior/references/csharp-running.md +180 -0
  1003. package/package/corpus/skills/cratis-specifications-isolate-behavior/references/csharp.md +331 -0
  1004. package/package/corpus/skills/cratis-specifications-isolate-behavior/references/kotlin.md +5 -0
  1005. package/package/corpus/skills/cratis-specifications-isolate-behavior/references/typescript.md +9 -0
  1006. package/package/corpus/skills/cratis-specifications-observe-ui/SKILL.md +92 -55
  1007. package/package/corpus/skills/cratis-specifications-observe-ui/references/typescript-browser.md +44 -0
  1008. package/package/corpus/skills/cratis-specifications-observe-ui/references/typescript-storybook.md +157 -0
  1009. package/package/corpus/skills/cratis-specifications-observe-ui/references/typescript.md +8 -0
  1010. package/package/corpus/skills/cratis-specifications-test-application-ui/SKILL.md +182 -9
  1011. package/package/corpus/skills/cratis-specifications-test-application-ui/references/typescript-rendering.md +172 -0
  1012. package/package/corpus/skills/cratis-specifications-test-application-ui/references/typescript.md +400 -0
  1013. package/package/corpus/skills/cratis-specifications-test-typescript-behavior/SKILL.md +139 -9
  1014. package/package/corpus/skills/cratis-specifications-test-typescript-behavior/references/typescript.md +316 -0
  1015. package/package/corpus/skills/cratis-stage-render-slice/SKILL.md +284 -14
  1016. package/package/corpus/skills/cratis-stage-render-slice/references/csharp-configuration.md +202 -0
  1017. package/package/corpus/skills/cratis-stage-render-slice/references/csharp-planning.md +80 -0
  1018. package/package/corpus/skills/cratis-stage-render-slice/references/csharp.md +221 -0
  1019. package/package/corpus/skills/cratis-stage-render-slice/references/graph-rendering.md +53 -0
  1020. package/package/corpus/skills/cratis-stage-render-slice/references/java.md +25 -0
  1021. package/package/corpus/skills/cratis-stage-render-slice/references/review-render-plan.md +154 -12
  1022. package/package/corpus/skills/cratis-stage-run-sandbox/SKILL.md +212 -12
  1023. package/package/corpus/skills/cratis-stage-run-sandbox/references/journey-replay.md +47 -0
  1024. package/package/corpus/skills/cratis-stage-run-sandbox/references/published-mode.md +103 -0
  1025. package/package/corpus/skills/cratis-stage-run-sandbox/references/semantic-runtime.md +67 -0
  1026. package/package/corpus/skills/cratis-stage-run-sandbox/references/semantic-spec-runner.md +60 -6
  1027. package/package/corpus/skills/cratis-studio-mcp-safety-guidance/SKILL.md +243 -52
  1028. package/package/corpus/skills/cratis-studio-mcp-safety-guidance/references/tools.md +239 -0
  1029. package/package/corpus/skills/cratis-studio-mcp-safety-guidance/references/webhooks.md +74 -0
  1030. package/package/corpus/skills/cratis-technical-examples/SKILL.md +233 -67
  1031. package/package/corpus/skills/cratis-technical-examples/references/csharp.md +325 -0
  1032. package/package/corpus/skills/cratis-technical-examples/references/elixir.md +114 -0
  1033. package/package/corpus/skills/cratis-technical-examples/references/go.md +74 -0
  1034. package/package/corpus/skills/cratis-technical-examples/references/java.md +194 -0
  1035. package/package/corpus/skills/cratis-technical-examples/references/kotlin.md +205 -0
  1036. package/package/corpus/skills/cratis-technical-examples/references/source-and-format.md +57 -40
  1037. package/package/corpus/skills/cratis-technical-examples/references/typescript.md +427 -0
  1038. package/package/corpus/skills/cratis-technical-examples/references/verification-scope.md +120 -35
  1039. package/package/corpus/skills/cratis-ux-review/SKILL.md +136 -33
  1040. package/package/corpus/skills/cratis-ux-review/references/checklist.md +10 -6
  1041. package/package/corpus/skills/cratis-ux-review/references/report-template.md +10 -8
  1042. package/package/corpus/skills/cratis-ux-review/references/typescript.md +9 -0
  1043. package/package/corpus/skills/cratis-writing-voice-and-cadence/SKILL.md +275 -51
  1044. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/ai-tells.md +49 -35
  1045. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/pattern-evidence.md +151 -0
  1046. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/voice-guidance.md +28 -16
  1047. package/package/corpus/skills/migrate-dotnet10-to-dotnet11/SKILL.md +3 -1
  1048. package/package/profile-catalog.json +34 -2
  1049. package/package.json +1 -1
  1050. package/package/corpus/skills/cratis-arc-code-analysis-typescript/references/rule-fixes.md +0 -40
  1051. package/package/corpus/skills/cratis-arc-declare-command/references/python.md +0 -3
  1052. package/package/corpus/skills/cratis-arc-diagnose-live-query/references/python.md +0 -3
  1053. package/package/corpus/skills/cratis-arc-expose-mcp-operation/references/custom-exposure-and-audit.md +0 -23
  1054. package/package/corpus/skills/cratis-arc-expose-query/references/python.md +0 -3
  1055. package/package/corpus/skills/cratis-arc-generate-proxies/references/python.md +0 -3
  1056. package/package/corpus/skills/cratis-arc-host-application/references/python.md +0 -3
  1057. package/package/corpus/skills/cratis-arc-page-query/references/python.md +0 -3
  1058. package/package/corpus/skills/cratis-arc-react-bind-slice/references/commands.md +0 -88
  1059. package/package/corpus/skills/cratis-arc-react-bind-slice/references/csharp.md +0 -9
  1060. package/package/corpus/skills/cratis-arc-react-bind-slice/references/identity.md +0 -7
  1061. package/package/corpus/skills/cratis-arc-react-bind-slice/references/kotlin.md +0 -9
  1062. package/package/corpus/skills/cratis-arc-react-bind-slice/references/manual-screen.md +0 -10
  1063. package/package/corpus/skills/cratis-arc-react-bind-slice/references/query-state.md +0 -29
  1064. package/package/corpus/skills/cratis-arc-react-separate-view-model/references/react-routing-and-messaging.md +0 -45
  1065. package/package/corpus/skills/cratis-arc-select-backend-sdk/references/python.md +0 -3
  1066. package/package/corpus/skills/cratis-arc-spring-data-kotlin/references/read-model-naming.md +0 -11
  1067. package/package/corpus/skills/cratis-arc-spring-data-kotlin/references/storage-boundaries.md +0 -40
  1068. package/package/corpus/skills/cratis-arc-storage-typescript/references/drizzle.md +0 -62
  1069. package/package/corpus/skills/cratis-arc-tenancy-typescript/references/tenant-selection.md +0 -49
  1070. package/package/corpus/skills/cratis-arc-testing-kotlin/references/jvm-scenario-variants.md +0 -25
  1071. package/package/corpus/skills/cratis-arc-testing-typescript/references/hosts-and-runners.md +0 -51
  1072. package/package/corpus/skills/cratis-arc-validate-command/references/java.md +0 -27
  1073. package/package/corpus/skills/cratis-arc-validate-command/references/kotlin.md +0 -23
  1074. package/package/corpus/skills/cratis-arc-validate-command/references/typescript.md +0 -23
  1075. package/package/corpus/skills/cratis-arc-validation-kotlin/references/feature-filters.md +0 -55
  1076. package/package/corpus/skills/cratis-arc-validation-kotlin/references/model-validation.md +0 -72
  1077. package/package/corpus/skills/cratis-arc-validation-kotlin/references/server-validators.md +0 -86
  1078. package/package/corpus/skills/cratis-arc-validation-typescript/references/rules-and-checks.md +0 -46
  1079. package/package/corpus/skills/cratis-chronicle-evolve-event/references/bulk-repair.md +0 -7
  1080. package/package/corpus/skills/cratis-chronicle-evolve-event/references/deployed-readers.md +0 -50
  1081. package/package/corpus/skills/cratis-chronicle-record-event/references/python.md +0 -3
  1082. package/package/corpus/skills/cratis-components-accessibility/references/control-labels.md +0 -29
  1083. package/package/corpus/skills/cratis-components-accessibility/references/focus-and-announcements.md +0 -8
  1084. package/package/corpus/skills/cratis-components-build-canvas/references/pixi-items.md +0 -15
  1085. package/package/corpus/skills/cratis-components-choose-control/references/inputs.md +0 -3
  1086. package/package/corpus/skills/cratis-components-compose-toolbar/references/contributed-tools.md +0 -5
  1087. package/package/corpus/skills/cratis-components-display-list/references/server-query.md +0 -21
  1088. package/package/corpus/skills/cratis-components-edit-schema-data/references/controlled-editor.md +0 -9
  1089. package/package/corpus/skills/cratis-components-submit-form/references/confirmation.md +0 -9
  1090. package/package/corpus/skills/cratis-components-submit-form/references/wizard.md +0 -9
  1091. package/package/corpus/skills/cratis-engineering-consolidation-guard/references/source-verification.md +0 -68
  1092. package/package/corpus/skills/cratis-engineering-csharp-conventions/references/code-style.md +0 -202
  1093. package/package/corpus/skills/cratis-engineering-csharp-conventions/references/exceptions-logging-and-di.md +0 -161
  1094. package/package/corpus/skills/cratis-engineering-decision-record/references/decision-scope.md +0 -20
  1095. package/package/corpus/skills/cratis-engineering-local-cross-repo-verification/references/go-jvm-python-elixir.md +0 -83
  1096. package/package/corpus/skills/cratis-engineering-review-rounds/references/round-handoffs.md +0 -109
  1097. package/package/corpus/skills/cratis-fundamentals-concept-go/SKILL.md +0 -95
  1098. package/package/corpus/skills/cratis-fundamentals-name-value/references/python.md +0 -3
  1099. package/package/corpus/skills/cratis-fundamentals-telemetry/references/otlp-export.md +0 -16
  1100. package/package/corpus/skills/cratis-fundamentals-type-discovery/references/diagnostics.md +0 -14
  1101. package/package/corpus/skills/cratis-multi-service-local-orchestration/references/aspire.md +0 -52
  1102. package/package/corpus/skills/cratis-observability/references/arc-and-chronicle-signals.md +0 -54
  1103. package/package/corpus/skills/cratis-observability/references/dotnet-setup-and-options.md +0 -68
  1104. package/package/corpus/skills/cratis-orchestration-lanes/references/escalation.md +0 -22
  1105. package/package/corpus/skills/cratis-orchestration-lanes/references/roles.md +0 -12
  1106. package/package/corpus/skills/cratis-orchestration-lanes/references/roll-call.md +0 -12
  1107. package/package/corpus/skills/cratis-orleans-jobs/references/activation-callbacks.md +0 -5
  1108. package/package/corpus/skills/cratis-orleans-jobs/references/lifecycle-and-placement.md +0 -56
  1109. package/package/corpus/skills/cratis-orleans-jobs/references/state-machines.md +0 -66
  1110. package/package/corpus/skills/cratis-orleans-jobs/references/step-planning.md +0 -27
  1111. package/package/corpus/skills/cratis-orleans-jobs/references/storage-and-options.md +0 -35
  1112. package/package/corpus/skills/cratis-screenplay-authentication-and-onboarding/references/onboarding-directives.md +0 -90
  1113. package/package/corpus/skills/cratis-screenplay-handoff-slice/references/unknown-preserving-reader.md +0 -9
  1114. package/package/corpus/skills/cratis-screenplay-model-automation/references/host-trigger.md +0 -17
  1115. package/package/corpus/skills/cratis-screenplay-model-interaction/references/csharp-performers.md +0 -18
  1116. package/package/corpus/skills/cratis-screenplay-onboard-workspace/references/version-migration.md +0 -12
  1117. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/host-body-execution.md +0 -10
  1118. package/package/corpus/skills/cratis-screenplay-specify-outcome/references/observable-result.md +0 -123
  1119. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/interview-batch.md +0 -20
  1120. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/neighbouring-skills.md +0 -11
  1121. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/review-questions.md +0 -13
  1122. package/package/corpus/skills/cratis-security-review/references/arc-boundaries.md +0 -58
  1123. package/package/corpus/skills/cratis-session-handoff/references/session-hygiene.md +0 -20
  1124. package/package/corpus/skills/cratis-showrunner-herald/references/options.md +0 -35
  1125. package/package/corpus/skills/cratis-showrunner-herald/references/templates-and-images.md +0 -76
  1126. package/package/corpus/skills/cratis-social-feed-post/references/asset-and-formatting.md +0 -37
  1127. package/package/corpus/skills/cratis-social-feed-post/references/editorial-checks.md +0 -40
  1128. package/package/corpus/skills/cratis-social-feed-post/references/linkedin-media.md +0 -24
  1129. package/package/corpus/skills/cratis-social-feed-post/references/other-channels.md +0 -23
  1130. package/package/corpus/skills/cratis-specifications-isolate-behavior/references/csharp-phase-timings.md +0 -13
  1131. package/package/corpus/skills/cratis-specifications-test-application-ui/references/typescript-command-results.md +0 -7
  1132. package/package/corpus/skills/cratis-studio-mcp-safety-guidance/references/blocked-tools.md +0 -11
  1133. package/package/corpus/skills/cratis-studio-mcp-safety-guidance/references/observational-tools.md +0 -7
  1134. package/package/corpus/skills/cratis-technical-examples/references/csharp-package-checks.md +0 -8
  1135. package/package/corpus/skills/cratis-technical-examples/references/typescript-package-checks.md +0 -8
  1136. package/package/corpus/skills/cratis-ux-review/references/capture-contract.md +0 -24
  1137. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/author-and-batch.md +0 -23
  1138. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/documentation-evidence.md +0 -25
  1139. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/interpretation.md +0 -17
  1140. package/package/corpus/skills/cratis-writing-voice-and-cadence/references/stock-constructions.md +0 -23
@@ -0,0 +1,69 @@
1
+ # Kotlin extension backend
2
+
3
+ ## Contents
4
+
5
+ - Setup
6
+ - Backend API
7
+ - Example
8
+ - Testing
9
+ - Not supported in this SDK
10
+
11
+ ## Setup
12
+
13
+ - Artifact `io.cratis.stage:stage-extensions`, package `io.cratis.stage.extensions`, JVM 17. It is not in a Maven repository: depend on a local clone of the Stage repository through a Gradle composite build (`includeBuild` of its Kotlin SDK folder in `settings.gradle.kts`, then `implementation("io.cratis.stage:stage-extensions")`). The scaffold's scripts do this from `CRATIS_STAGE_SDK`.
14
+ - Scaffold with `cratis extension new --backend kotlin`. The contract declares `backend runtime jvm <version> assembly "backend/<Name>.jar"`.
15
+
16
+ ## Backend API
17
+
18
+ - `Extension.create(name, version)` returns a chainable builder:
19
+ - `.ability(name, EffectClass.Safe|Idempotent|Once, outcomes, contractMajor) { call -> ... }`: the trailing handler is `suspend (AbilityContext) -> AbilityOutcome`; `outcomes` is a `List<String>`.
20
+ - `.trigger(name)`, `.setting(name, required)`, `.secret(name, required)`.
21
+ - `.http(prefix) { call -> HttpReply(...) }`: the handler is `suspend (HttpCall) -> HttpReply`.
22
+ - `.listen(port, host)` returns a gRPC `Server`; call `.start()` and `.awaitTermination()`.
23
+ - `AbilityContext`: `tenant`, `system`, `invocationId`, `idempotencyKey`, `attempt`, `deadline` (`Instant?`), `causation`, `traceparent`, `input` (JSON string), `host`.
24
+ - `AbilityOutcome.Returned(output, outcome)`, `AbilityOutcome.Accepted`, `AbilityOutcome.NotSent(reason)`, `AbilityOutcome.Failed(reason, effectRuledOut)`. A thrown exception (other than cancellation) becomes failed with the effect not ruled out.
25
+ - `HostServices` (`call.host`), all `suspend`:
26
+ - `setting(name)` / `secret(name)` → `String?`, `null` when not set. Reading a secret through `setting`, a setting through `secret`, or an undeclared name throws `HostServiceException`.
27
+ - `trigger(trigger, payloadJson, deduplicationKey)` → `TriggerResult` (`status` is `Raised`, `UnknownTrigger`, `NotRouted` or `Refused`; `detail`; `raised`). The key defaults to the invocation's idempotency key.
28
+ - `answer(outlet, payloadJson, invocationId)` → status string (`Answered`, `UnknownInvocation`, `NotWaiting`, `Forbidden`, `UnknownOutlet`).
29
+ - `log(Level.Trace|Debug|Information|Warning|Error|Critical, message, attributes)`; `counter(name, value, attributes)`; `histogram(name, value, unit, attributes)`.
30
+ - `HttpCall`: `method`, `path`, `query`, `headers` (`Map<String, List<String>>`), `body` (`ByteArray`). `HttpReply(status, body, headers)`. A thrown exception answers `500`.
31
+
32
+ ## Example
33
+
34
+ Names are illustrative.
35
+
36
+ ```kotlin
37
+ import io.cratis.stage.extensions.AbilityOutcome
38
+ import io.cratis.stage.extensions.EffectClass
39
+ import io.cratis.stage.extensions.Extension
40
+
41
+ fun main() {
42
+ val listen = System.getenv("STAGE_EXTENSION_LISTEN") ?: "0.0.0.0:50051"
43
+
44
+ val server = Extension.create("ParcelCarrier", "1.0.0")
45
+ .setting("region", required = true)
46
+ .secret("apiKey", required = true)
47
+ .ability("BookPickup", EffectClass.Idempotent, outcomes = listOf("NoCapacity")) { call ->
48
+ val apiKey = call.host.secret("apiKey") ?: return@ability AbilityOutcome.NotSent("No carrier API key is set.")
49
+ // Carrier stands for your client of the outside system; pass the idempotency key so a retry cannot book twice.
50
+ val trackingNumber = Carrier.tryBook(apiKey, call.input, call.idempotencyKey)
51
+ if (trackingNumber != null) AbilityOutcome.Returned("""{"trackingNumber":"$trackingNumber"}""")
52
+ else AbilityOutcome.Returned(outcome = "NoCapacity")
53
+ }
54
+ .listen(listen.substringAfterLast(':').toInt(), listen.substringBeforeLast(':'))
55
+ .start()
56
+
57
+ server.awaitTermination()
58
+ }
59
+ ```
60
+
61
+ ## Testing
62
+
63
+ Keep each ability's logic in a plain class that takes the input and setting values, and test it directly; the handler only reads host services and maps the result to an outcome. Run `bash scripts/test.sh`.
64
+
65
+ ## Not supported in this SDK
66
+
67
+ - Correlation key on `trigger`: a trigger raised from this SDK resumes no waiting workflow run. Use a C# backend when a webhook must resume a workflow.
68
+ - Webhook signature helper: verify with `javax.crypto.Mac` (`HmacSHA256`) over the raw body and compare with `MessageDigest.isEqual`.
69
+ - Delivery identity and attempt on `HttpCall`: deduplicate on the provider's own event id from the payload.
@@ -0,0 +1,23 @@
1
+ # Lock, cache, signing and trust
2
+
3
+ Read this when you lock, restore or sign a package, or when the compiler, the CLI or Stage refuses one.
4
+
5
+ ## Lock
6
+
7
+ - `screenplay.lock` is plain text beside the model root. Commit it and never edit it by hand; `cratis extension restore` and `update` write it. It holds `lock 1`, then per entry `extension`, `range`, `resolved`, `version`, `digest`, `contract` (SHA-256 of `contract.play`) and `publisher`. A malformed lock is `PLAY1111`.
8
+ - Compiler states: reference not in the lock `PLAY1107`, contract not restored `PLAY1108`, contract differs from its hash `PLAY1109`, lock written for another range `PLAY1110`. The language server and MCP show the first, second and fourth as warnings.
9
+ - Contracts are read by digest from the vendored `extensions/` folder beside the lock, then the user cache (`SCREENPLAY_EXTENSION_CACHE`).
10
+
11
+ ## Trust
12
+
13
+ - `.cratis/extensions.json`, committed, has `publishers[]` entries with `publisher`, `key` (`sha256:<fingerprint>`, required for OCI, ignored for npm) and `references` (`*` wildcards; omit to allow all). An interactive terminal asks once and records approval. CI and agents fail `Unallowed`; report it to the owner instead of adding the publisher.
14
+ - Refusals: `NotSigned`, `SignatureInvalid` (a changed key is never offered for trust), `Unallowed` and `Mismatched` (the lock records another publisher).
15
+
16
+ ## Signing
17
+
18
+ - OCI needs a key-based cosign signature (ECDSA P-256) tagged `sha256-<digest>.sig`. Sign with `cosign sign --key <private key> -a publisher=<identity> -a key=<base64 body of the public key> <image>@<digest>`; Stage and the CLI read `publisher` and `key` from the signed payload. Keyless signing is not trusted.
19
+ - On npm, the registry signs `name@version:integrity`, and the publisher is the scope or the name.
20
+
21
+ ## Registry credentials
22
+
23
+ `cratis config set extensions.registry.<host>.token --secret`, or `.username` with `.password --secret`. Use `extensions.npm.registry` for another npm registry and `extensions.registry.<host>.bearer-realm-authority` to approve a token service. Never put credentials in the model or the lock.
@@ -0,0 +1,12 @@
1
+ # Extension protocol without an SDK
2
+
3
+ Use this only when the backend's language has no SDK. Everything an SDK does for you is listed here; the behaviour rules in the skill still apply.
4
+
5
+ - **Contract of the wire.** The gRPC package `cratis.stage.extensions.v1`, published as three `.proto` files: `common.proto` (`RequestContext`, `EffectClass`, `ProtocolVersion`, `Header`), `backend.proto` (`service ExtensionBackend`, which you implement) and `host.proto` (`service StageHost`, which you call). Generate stubs from them. Treat an unknown enum value as unspecified and ignore unknown fields.
6
+ - **Who connects.** The backend listens on `STAGE_EXTENSION_LISTEN`; Stage connects. Stage listens separately for host services. All calls are unary.
7
+ - **`Describe` (always first).** The request carries `protocol_version`, `system`, `package_digest`, `host_endpoint` and `session_token`. Keep the endpoint and token in memory only. Refuse a different protocol major with `FAILED_PRECONDITION`. Answer your protocol version, `name`, `version`, `abilities` (name, contract major, effect class, outcomes), `triggers`, `settings` (each with `secret` and `required`) and `http_routes` (prefixes).
8
+ - **`Invoke`.** The request carries the `RequestContext` (tenant, system, invocation id, idempotency key, attempt, deadline, traceparent, causation, package digest), the `ability` name, its `contract_major`, its effect class and `input_json`. Dispatch on the name and contract major together; when you realize no ability with both, answer `not_sent` with a reason (nothing was attempted). Otherwise answer exactly one of `returned` (`outcome`, `output_json`), `accepted`, `not_sent` (`reason`) or `failed` (`reason`, `effect_ruled_out`). The context's deadline is also the gRPC deadline. Catch every error and answer `failed` with the effect not ruled out.
9
+ - **`HandleHttp`.** The request carries method, path below the mount, raw query, headers and body; answer status (100–599), headers and body. Answer `500` on an unexpected error and `401` on a bad signature.
10
+ - **`Health`.** Answer `STATUS_SERVING` or `STATUS_NOT_SERVING` with an optional detail.
11
+ - **Calling `StageHost`.** Connect to `host_endpoint`, send `authorization: Bearer <session_token>` metadata, and pass back the `RequestContext` of the invocation the call belongs to. RPCs: `GetSetting` and `GetSecret` (`FOUND`, `NOT_SET`, `UNKNOWN`, and `IS_SECRET` / `NOT_SECRET` when the other kind was asked for), `RaiseTrigger` (trigger, deduplication key, payload JSON, optional correlation key), `Answer` (outlet, payload JSON; the context's invocation id names the invocation), `Log` (records with level, message, time and attributes) and `RecordMetrics` (`KIND_COUNTER` or `KIND_HISTOGRAM` with name, value, unit and attributes).
12
+ - **Packaging.** A runtime other than `dotnet`, `node`, `jvm`, `go` or `native` runs in the Container tier: Stage runs the image configured as `Stage:Extensions:Execution:Containers:<System>:Image` and tells it to listen on `0.0.0.0:8080`. That image must contain and start the backend; the package's own artifact does not run (see Execution tier in [prove a package in Stage](stage-candidate.md)).
@@ -0,0 +1,30 @@
1
+ # Runtime details for extension backends
2
+
3
+ Read this when a backend raises triggers, answers late, serves inbound HTTP or backs a placed component. It gives the exact statuses, limits and refusals behind the runtime rules in the skill.
4
+
5
+ ## Triggers
6
+
7
+ A backend raises a trigger through the host services of an ability call; the deduplication key defaults to that invocation's idempotency key. An SDK's HTTP route handler cannot raise one (see Inbound HTTP); a backend on the raw protocol may raise while it handles a delivery. A raised trigger resumes workflow runs waiting for `<System>.<Trigger>` about the same correlation key. It starts no reactions and is not remembered, so a raise that resumes nothing is answered `NOT_ROUTED`. Passing a correlation key is C#-only; from other SDKs a raise resumes nothing. Deduplicate before raising: Stage does not deduplicate resumes. Statuses: `RAISED`, `UNKNOWN_TRIGGER`, `NOT_ROUTED`, `REFUSED`.
8
+
9
+ ## Answers later
10
+
11
+ For an ability marked `answers later`, return *accepted* and keep the invocation id. Answer later through host services with the outlet (`returned` or a declared outcome), a payload, and the kept id when answering from another call. Statuses: `ANSWERED` (repeat is harmless), `UNKNOWN_INVOCATION`, `NOT_WAITING`, `FORBIDDEN`, `UNKNOWN_OUTLET`. Unanswered invocations leave through `expired`.
12
+
13
+ ## Inbound HTTP
14
+
15
+ Stage matches `/extensions/<System>/<path>` against a registered route prefix on a path boundary. GET, HEAD and OPTIONS pass through and return the backend's answer. POST, PUT, PATCH and DELETE are stored and answered `202` with an empty body before delivery, so a write cannot serve a synchronous challenge. Ingress answers `413` over 1 MiB and `503` with `Retry-After` when too many deliveries are open. Routes are learned at the handshake; a write to a known system with no connected backend can be accepted before route checking. If no prefix matches when delivery is attempted, Stage rejects it without calling the backend.
16
+
17
+ The backend's `2xx` delivers; `4xx` other than `408`, `425` and `429` rejects (`Rejected`, with the backend's status as `responseStatus`). Other responses, timeouts and unreachable backends retry until out of attempts (`Failed`). Return `401` for an invalid signature, and read the outcome from the ledger, not from the `202`. Stage identifies the delivery by system, method, path, query and raw body, not by signature headers. Open deliveries and completed non-failed deliveries within the replay window are not dispatched again.
18
+
19
+ The body arrives exactly as sent. Stage strips `Cookie`, `Authorization`, `Host`, `Connection`, `Transfer-Encoding` and `Content-Length` from the forwarded request and strips `Connection`, `Transfer-Encoding`, `Content-Length` and `Set-Cookie` from the proxied reply. SDK route handlers do not receive host services; they cannot read a Stage secret, raise a trigger or answer an invocation through the SDK.
20
+
21
+ ## Browser calls
22
+
23
+ The component context handles HTTP for you. The semantic host does not expose these routes. In a host that maps them, diagnose calls at `/stage/extension-components/<Screen>/<System>/<Component>`:
24
+
25
+ - `GET …/settings`: the component's own system's public settings only (`404` if not placed).
26
+ - `POST …/invoke`: send `ability`, `interaction` (a stable identity for one UI action), and `input` (JSON as a string). The screen must place the component, the contract must allow the ability under `invokes`, and the signed-in person must pass the screen's policy. Stage waits up to 30 seconds: `Settled` is `200` with outcome and output; `Pending` is `202` with invocation identity. Keep the interaction identity on subsequent waits so that waiting again does not invoke twice. Refusals: `NotPlaced` `404`, `NotAllowed` `403`, `Forbidden` `401`/`403`, `Refused` `400`.
27
+
28
+ ## Telemetry
29
+
30
+ Host-service logs go to category `Cratis.Stage.Extensions.<System>`. Metrics go to meter `Cratis.Stage.Extensions` as `stage.extension.<name>`, at most 64 per system. Traces continue the `extension.invoke` activity through `traceparent`. Never put secrets or personal data in messages or attributes.
@@ -1,8 +1,72 @@
1
- # Adapt and prove a Stage package candidate
1
+ # Prove a package in Stage
2
2
 
3
- Use an isolated Stage Host with the same release and backend execution configuration as the intended deployment. A local folder check or a separately connected backend can diagnose problems, but neither tests admission and activation of the locked package.
3
+ ## Contents
4
4
 
5
- 1. If the scaffold's `requires stage` excludes that host, replace it in source `contract.play` with an exact requirement for the host release under test: `requires stage "<major.minor.patch>"`, substituting the actual release number. Treat this as a test candidate, not a compatibility claim. Build against the current `Cratis.Stage.Extensions` SDK and fix build or registration mismatches there; do not downgrade the host or remove the manifest check. Rerun the specifications, build, packaging, and strict handshake steps from the skill. Check the requirement in the packaged `contract.play`, not just the source.
6
- 2. Have the authorized publisher put that rebuilt candidate under a new extension release identifier in an approved test OCI registry and sign its digest. Use a test model whose `LibraryGreeting` system references that package. Run `cratis extension restore` for a new reference. If the reference is already locked, make sure any declared version range admits the candidate. Run `cratis extension update LibraryGreeting --dry-run`, review the contract changes and any incompatible uses, then run it without `--dry-run` only when the candidate is intended and the uses are compatible. Check that `screenplay.lock` names the rebuilt digest, contract hash, and expected publisher. Do not edit hashes by hand or disable trust checks to get it to load.
7
- 3. Start Stage Host on the test model with `Stage:Extensions:HostPort` enabled. For container execution, make a separate runnable ASP.NET Core runtime image from the same `dist/extension/backend` output, with `dotnet LibraryGreeting.dll` as its entry point. Pin that image by digest in `Stage:Extensions:Execution:Containers:LibraryGreeting:Image` and give it a reachable private `Stage:Extensions:AdvertisedHostEndpoint` for host services. The scaffold's scratch OCI artifact is for distribution, not execution. If the deployment uses an approved shared runtime instead, configure `Stage:Extensions:Execution:Hosts:dotnet` and its sharing policy. Do not substitute a manually connected backend. Confirm package admission from the reviewed lock. If it reports `RequirementsNotMet`, compare the host release with the locked artifact's manifest.
8
- 4. In an in-process Stage Host integration test, call the host's real `IAbilityInvocations.Invoke` with `AbilityInvocation` for `LibraryGreeting` and `Greet`, input `{"name":"Aster"}`, and a `ScreenInteraction` origin with a fixed test address and a fresh causation ID. Do not expose this probe as an application endpoint. Leave `greeting` unset. Require admission and, with a timeout, find the record by the admitted identity through `IAbilityInvocations.List()`. Require `Settled`, outcome `returned`, output `message: "Hello, Aster!"`, and the reviewed `PackageDigest`. If the package is refused or invocation fails, keep the candidate out of use; don't widen `requires stage` based on the handshake.
5
+ - Steps
6
+ - Stage settings
7
+ - Admission refusals
8
+ - Inspection endpoints
9
+
10
+ A folder check and a strict handshake prove the package is well formed and that its backend describes the contract. Neither proves that Stage admits the locked package, activates its backend or settles an invocation. Prove those in a throwaway test model, on a Stage with the same release and backend execution configuration as the intended deployment, before a release is used. Names are illustrative.
11
+
12
+ ## Steps
13
+
14
+ 1. **Candidate.** Make sure `requires stage` in the *packaged* `contract.play` admits the Stage release under test. Use a test release identifier and an approved test namespace (`--publisher` at scaffold time). Publish with `bash scripts/publish.sh <version>` and have the authorized publisher sign the pushed digest with a key-based cosign signature carrying the `publisher` identity and the base64 public `key` (see Signing in [lock, signing and trust](lock-and-trust.md)).
15
+ 2. **Lock.** In the test model, reference the candidate and run `cratis extension restore`. For an already locked reference, run `cratis extension update <System> --dry-run` and then without `--dry-run`. Check that `screenplay.lock` names the new digest, contract hash and expected publisher.
16
+ 3. **Settings.** Set every contract setting and named secret in the test environment (`cratis config --requires ./model`).
17
+ 4. **Execution tier.** Configure how Stage runs the backend before anything invokes it: admission can succeed while activation is refused. The published package is a `FROM scratch` artifact holding `/extension`; it is for distribution and has no runtime entry point.
18
+ - **Container** (for `dotnet`, `node` or `jvm` packages not trusted to share a host, and runtimes other than the ones listed here): build a separate runnable image from the same `dist/extension/backend` output. Use a base image for the backend runtime, start the contract's `assembly` file from the entry point, and have the process read `STAGE_EXTENSION_LISTEN` (Stage sets it to `0.0.0.0:8080` inside the container). Push the runtime image and pin it by digest in `Stage:Extensions:Execution:Containers:<System>:Image`; without an image Stage refuses activation. Bind `Stage:Extensions:HostAddress` and `HostPort` on a private interface that the backend can reach, and set `Stage:Extensions:AdvertisedHostEndpoint` to the corresponding private host-services URL. Arrange for Stage to reach the backend's published gRPC port in return.
19
+ - **Shared host** (only when the deployment trusts the package's publisher or reference under `Stage:Extensions:Execution:Sharing` and runs an approved host for that runtime): configure `Stage:Extensions:Execution:Hosts:<runtime>:Command` instead of an image. A trusted package with no host configured for its runtime is refused, not moved to a container.
20
+ - **Native** (`go`, `native`): Stage runs the packaged entry point itself, so it must be built for the platform Stage runs on.
21
+
22
+ 5. **Run.** Use `cratis run ./model -e <environment>` if its Stage sandbox can execute the intended tier (for example, a Native backend built for the sandbox). Pass Stage settings with `--stage-setting <Key>=<Value>`, keys relative to `Stage`, never secrets. The stock CLI sandbox does not supply a container launcher to Stage. For Container tier, use a Stage sandbox provisioned to run `docker` or the configured compatible client, with the network and runtime image access described above. Load the same model root, lock and settings there. See [extension commands](cli.md) for CLI exit codes. Read `GET /stage/extensions`: the package must be in `packages` with `signatureVerified: true`, not in `refused`. For `RequirementsNotMet`, check both Stage and Screenplay requirements against the test environment; correct only a range that misstates compatibility, then rebuild.
23
+ 6. **Invoke.** Drive the ability from a workflow action. A state-machine entry can also invoke it; a reaction branch cannot. Read `GET /stage/invocations` and require the expected settled result with the locked package digest. Read `GET /stage/extensions/activation`: the system must be `Active` in the intended tier with an empty `refusal`. A `once` ability stopped for reconciliation means the backend reported "may have happened"; check what the backend answers on failure.
24
+ 7. **Webhooks** (if the package exposes them). The semantic sandbox maps the delivery ledger but not the public extension ingress or browser component settings/invoke endpoints. Test webhook delivery separately in an integration host that maps ingress and the ledger; do not count a missing route as a signature rejection. Send one correctly signed and one wrongly signed request to `/extensions/<System>/<route>`. Use distinct payloads so the second request is not absorbed as a replay: a changed signature header alone does not change the delivery identity. Ingress stores writes and answers `202` before the backend sees them. Read `GET /stage/extensions/deliveries`: the valid delivery should be `Delivered`, the invalid one `Rejected` with `responseStatus` `401`.
25
+ 8. **Triggers** (if the package declares them). Test resumption separately from webhooks: start a workflow run that waits for `<System>.<Trigger>`, then make an ability call raise that trigger through its host services with the run's correlation key (the C# SDK or a raw-protocol backend; other SDKs cannot pass one, so their raises resume nothing). Expect `Raised` and the run to resume. `NotRouted` means nothing waited for that trigger and correlation. No SDK gives an HTTP route handler host services, so a webhook handler cannot raise the trigger.
26
+
27
+ To debug a backend outside a package, start it yourself and point Stage at it with `Stage:Extensions:HostPort` and `Stage:Extensions:Backends:<System>:Endpoint`. This is a diagnostic only: it bypasses package admission and tier selection and proves nothing about the locked artifact.
28
+
29
+ ## Stage settings
30
+
31
+ `cratis run` turns the protocol on and passes settings and secrets for you; set the rest with `--stage-setting`, or directly when you run Stage yourself.
32
+
33
+ - `Stage:Extensions`: `HostPort` (non-zero turns the extension protocol on), `HostAddress`, `AdvertisedHostEndpoint` (the host-services address a container reaches), `DescribeTimeout`, `Backends:<System>:Endpoint` (a backend you started yourself).
34
+ - `Stage:Extensions:Execution`: `IdleTimeout` (ten minutes unless set), `SweepInterval`, `StartTimeout`, `StopTimeout`, `ListenAddress`, `BackendsDirectory`, `Sharing:Publishers|References` (exact values or prefixes ending in `*` that may share a host process), `Hosts:<runtime>:Command|Arguments`, `Containers:<System>:Image|Command|Arguments` (`Command` replaces `docker` with a compatible client).
35
+ Under `Stage:Extensions:Inbound`:
36
+
37
+ - `MaxAttempts`: cap delivery attempts before marking the delivery `Failed`.
38
+ - `RetryDelay`: set the wait before the second attempt; it doubles after each failure.
39
+ - `MaxRetryDelay`: cap the wait between attempts.
40
+ - `ReplayWindow`: suppress repeated deliveries after settlement other than `Failed`; open deliveries are always deduplicated.
41
+ - `MaxOpen`: bound open deliveries before ingress answers `503` with `Retry-After`.
42
+ - `PollInterval`: set how long the dispatcher sleeps when nothing is due.
43
+ - `AttemptTimeout`: bound the time for the backend to answer one delivery attempt.
44
+
45
+ For package admission:
46
+ - `Stage:Extensions:Packages`: `CacheDirectory`, `Allow:Publishers|References`, `Publishers:<publisher>:Keys`, `RequireSignatures` (on unless the deployment turns it off; never the project or model), `Registries:<host>:Username|Password`, `NpmRegistry`, `MaxPackageBytes`, `MaxPackageFiles`, `RequestTimeout`.
47
+
48
+ ## Admission refusals
49
+
50
+ A refused package appears under `refused` with a reason:
51
+
52
+ - `NotAllowed`: neither deployment nor project allows the package or its publisher; nothing is fetched.
53
+ - `Malformed`: incomplete lock entry, unservable reference, invalid package or contract, missing named file, unsafe placeholder or unsafe file. Run `cratis extension verify`.
54
+ - `NotFound`: the registry lacks the locked digest, is unreachable or needs credentials.
55
+ - `DigestMismatch`: the content does not hash to the locked digest; it changed after locking.
56
+ - `ContractMismatch`: the packaged contract is not the one the lock pinned.
57
+ - `NotSigned`: no signature while signatures are required.
58
+ - `SignatureInvalid`: no signature by a key of the locked publisher covers the package.
59
+ - `TooLarge`: over `MaxPackageBytes` or `MaxPackageFiles`.
60
+ - `RequirementsNotMet`: the package requires a Stage or Screenplay version this Stage is not.
61
+
62
+ ## Inspection endpoints
63
+
64
+ Sandbox tooling only; a published runtime does not map them.
65
+
66
+ - `GET /stage/extensions` (`/view` renders it as a page): inspect loaded `packages` (with `signatureVerified`) and `refused` packages.
67
+ - `GET /stage/extensions/activation` (`/view` renders it as a page): inspect each system's reference, `tier`, `state` (`Inactive`, `Starting`, `Active`, `Stopping`), activation policy, last activation and stop, calls in flight and `refusal`.
68
+ - `GET /stage/extensions/deliveries` (`?status=Pending|Retrying|Delivered|Rejected|Failed`): inspect receipts and backend results (`responseStatus`, attempts, next attempt, replays, reason); the list omits bodies and header values.
69
+ - `POST /stage/extensions/deliveries/retry` with `{"id":"<delivery id>"}`: requeue after addressing the reason for `Failed` or `Rejected` (`202`; `409` otherwise; `404` unknown).
70
+ - `GET /stage/invocations` (`?status=stopped` for those awaiting reconciliation): inspect identity, capability, effect class, status, origin, attempts, outcome, reason and package digest.
71
+
72
+ Separately, the browser posts to `/stage/extensions/activation/screens/<screen route>` on navigation to start any backends used by that screen, without waiting for them (`202`). This is not proof they started; inspect their activation state.
@@ -0,0 +1,66 @@
1
+ # TypeScript extension backend
2
+
3
+ ## Contents
4
+
5
+ - Setup
6
+ - Backend API
7
+ - Example
8
+ - Testing
9
+ - Not supported in this SDK
10
+
11
+ This covers a Node.js backend. Frontend components use the Scene helpers described in the skill, whatever the backend language.
12
+
13
+ ## Setup
14
+
15
+ - Package `@cratis/stage-extensions` (ES module). It is not on npm: the scaffold's scripts build it from a local clone of the Stage repository named by `CRATIS_STAGE_SDK` and point the dependency at that build. Do not commit that local-path edit.
16
+ - Scaffold with `cratis extension new --backend typescript`. The build bundles the backend into one file, and the contract declares `backend runtime node <version> assembly "backend/index.js"`.
17
+
18
+ ## Backend API
19
+
20
+ - `Extension.create(name, version)` returns a chainable builder:
21
+ - `.ability(name, 'safe' | 'idempotent' | 'once', handler, { outcomes, contractMajor })`: `handler` is `(call: AbilityContext) => AbilityOutcome | Promise<AbilityOutcome>`.
22
+ - `.trigger(name)`, `.setting(name, required)`, `.secret(name, required)`.
23
+ - `.http(prefix, handler)`: `handler` is `(call: HttpCall) => HttpReply | Promise<HttpReply>`.
24
+ - `await .listen(address)` binds and serves, resolving to `{ server, port }`. `.createServer()` returns the gRPC server when you bind it yourself.
25
+ - `AbilityContext`: `tenant`, `system`, `invocationId`, `idempotencyKey`, `attempt`, `deadline` (`Date`, optional), `causation`, `traceparent`, `input` (JSON string), `host`.
26
+ - `outcome.returned(outputJson, outcomeName)`, `outcome.accepted()`, `outcome.notSent(reason)`, `outcome.failed(reason, effectRuledOut)`. A thrown error becomes failed with the effect not ruled out.
27
+ - `HostServices` (`call.host`):
28
+ - `setting(name)` / `secret(name)` → `string | undefined` when not set. Reading a secret through `setting`, a setting through `secret`, or an undeclared name throws `HostServiceError`.
29
+ - `trigger(trigger, payloadJson, deduplicationKey)` → `TriggerResult` (`status` is `Raised`, `UnknownTrigger`, `NotRouted` or `Refused`; `detail`; `raised`). The key defaults to the invocation's idempotency key.
30
+ - `answer(outlet, payloadJson, invocationId)` → status string (`Answered`, `UnknownInvocation`, `NotWaiting`, `Forbidden`, `UnknownOutlet`).
31
+ - `log(level, message, attributes)` with `'trace' | 'debug' | 'information' | 'warning' | 'error' | 'critical'`; `counter(name, value, attributes)`; `histogram(name, value, unit, attributes)`.
32
+ - `HttpCall`: `method`, `path`, `query`, `headers` (`Record<string, string[]>`), `body` (`Buffer`). `HttpReply`: `status`, optional `body` (`Buffer` or string) and `headers`. A thrown error answers `500`.
33
+
34
+ ## Example
35
+
36
+ Names are illustrative.
37
+
38
+ ```typescript
39
+ import { Extension, outcome } from '@cratis/stage-extensions';
40
+
41
+ const listen = process.env.STAGE_EXTENSION_LISTEN ?? '0.0.0.0:50051';
42
+
43
+ const extension = Extension.create('ParcelCarrier', '1.0.0')
44
+ .setting('region', true)
45
+ .secret('apiKey', true)
46
+ .ability('BookPickup', 'idempotent', async call => {
47
+ const apiKey = await call.host.secret('apiKey');
48
+ if (!apiKey) return outcome.notSent('No carrier API key is set.');
49
+ // carrier stands for your client of the outside system; pass the idempotency key so a retry cannot book twice.
50
+ const booked = await carrier.tryBook(apiKey, call.input, call.idempotencyKey);
51
+ return booked ? outcome.returned(JSON.stringify({ trackingNumber: booked.id })) : outcome.returned('{}', 'NoCapacity');
52
+ }, { outcomes: ['NoCapacity'] });
53
+
54
+ const { port } = await extension.listen(listen);
55
+ console.log(`ParcelCarrier listening on ${port}`);
56
+ ```
57
+
58
+ ## Testing
59
+
60
+ Keep each ability's logic in a plain module that takes the input and setting values, and test it directly with `node --test`; the handler only reads host services and maps the result to an outcome. Run `bash scripts/test.sh`.
61
+
62
+ ## Not supported in this SDK
63
+
64
+ - Correlation key on `trigger`: a trigger raised from this SDK resumes no waiting workflow run. Use a C# backend when a webhook must resume a workflow.
65
+ - Webhook signature helper: verify with Node's `crypto.createHmac('sha256', secret)` over the raw body and compare with `crypto.timingSafeEqual`.
66
+ - Delivery identity and attempt on `HttpCall`: deduplicate on the provider's own event id from the payload.
@@ -1,45 +1,190 @@
1
1
  ---
2
2
  name: cratis-screenplay-availability
3
- description: Use when a Screenplay part is offered only to certain tenants, users or system callers, or when a gate or attached body needs request-scoped context. Not for deciding who is authorized to act (use cratis-screenplay-model-interaction).
3
+ description: Use when a Screenplay part (module, feature, slice, command, query, screen or screen element) is offered only to some tenants, users or system callers, such as a commercial package, a staged rollout, a preview or an incident switch, or when a gate or attached code needs a request-scoped value through `provide`. Not for deciding who may act (policy and authorize, see `cratis-screenplay-model-interaction`), validating command input, or wiring a hand-written Arc host (see `cratis-arc-host-application`).
4
4
  license: MIT
5
5
  ---
6
6
 
7
7
  # Model availability and request-scoped context
8
8
 
9
- Use `available for` where a package or rollout first changes what the application offers. Put the gate at the highest level where it applies to everything below it; membership is granted at runtime.
9
+ ## Contents
10
10
 
11
- ```screenplay excerpt
11
+ - What availability is
12
+ - How availability behaves at runtime
13
+ - Default path
14
+ - Capability catalog
15
+ - Check the model and the host
16
+ - References
17
+
18
+ ## What availability is
19
+
20
+ Availability decides whether a part of the application is there at all for the caller's tenant, user or system. Authorization (`policy` and `authorize`) decides who may use a part that is there. A command rule validates input. A model expresses availability with three declarations:
21
+
22
+ - An `audience` is a named group. The model declares that it exists, never who is in it. Operators grant membership to tenants, users and the system at runtime, so nothing ships as an accidental entitlement.
23
+ - An `availability` is a named, reusable rule.
24
+ - An `available` line gates one construct.
25
+
26
+ `provide` adds a named, request-scoped value to `$context`. Gates and attached code read it.
27
+
28
+ | Need | Use |
29
+ | --- | --- |
30
+ | Offer a part to a package, rollout cohort or preview group | `audience` + `available for` |
31
+ | The offer depends on a request value (region, state of a record) | `provide` + `available when` |
32
+ | Apply one rule to several parts, or mix audiences with a condition | `availability` block + `available with` |
33
+ | Close a part while a closing audience is granted | `available for Plus and not Incident` |
34
+ | Decide who may act (role, claim, ownership) | `policy` + `authorize`, never availability |
35
+ | Switch a part off now for a tenant, a user or the system | An operator suspension at runtime. The model declares nothing. |
36
+ | Tenant commercial modules that Box Office already enforces | Keep them in Box Office. Read one as a `from host` value only if a gate needs it. |
37
+ | Chronicle's event routing audience, or a token's `aud` claim | Unrelated. A token's `aud` claim is `$context.identity.claims.aud`. Neither is a Screenplay audience. |
38
+
39
+ Names in the examples (`Plus`, `Preview`, `Incident`, `Fleet`, `Vessel`, `region`) are illustrative.
40
+
41
+ ## How availability behaves at runtime
42
+
43
+ - **Per request, at the server.** The host decides each command and query request in this order: operator suspension, then every gate on the path from module to feature to slice to the construct, then `authorize`. All gates must hold, including every `available` line on each construct.
44
+ - **Distinct refusals.** A part that is not available is refused with the reason `NotAvailable`. A suspended part is refused with `Suspended`. Clients can tell both apart from an authorization denial, so they can hide an entry or explain that the capability is not in the package. A failure to decide is a retryable error, never a denial. Failures include a lookup that errors, a source that is down, code that throws and a required provided value that is absent while a gate is decided.
45
+ - **Unknown does not satisfy a gate.** An absent `optional` value gives an unknown comparison, not a match. Declare every audience a gate uses: Arc ignores grants for undeclared names, so `for` that name can never match and `not` that name can open the gate. To close a part on purpose, grant a declared closing audience such as `Incident`. Withdrawing that grant can reopen the part.
46
+ - **Merged grants.** `$context.audiences` is the union of the tenant's, the user's and the system caller's grants. No level takes precedence. A withdrawal removes the grant only at its own level. Grants change at runtime without a redeploy, and the newest operator decision wins.
47
+ - **The event flow keeps running.** Projections and observers continue while a part is closed. A reaction can `produce` into a closed slice. Reopening needs no replay. A reaction is never gated itself and runs with the tenant's and the system's audiences, never a user's. A command that it `invokes` is checked like any other request, so it can be refused. A refusal never undoes earlier commits.
48
+ - **Screen elements follow what they bind.** A screen `action` or `data` element is offered only when its bound command or query is available and the caller is authorized. Nothing needs to be written for that. Hiding an element is presentation only; the server still enforces the command or query.
49
+ - **Provided values resolve lazily, at most once per request,** using the nearest declaration of the name. Every gate in the request sees the same value. There is no cache across requests.
50
+ - **Only model-bound commands and queries are gated.** Observable queries are refused when the subscription starts. Hand-written controller actions are not gated.
51
+ - **Specifications run with everything available.** No specification form supplies audiences or suspensions, so a specification cannot prove that a gate stays closed.
52
+ - **Persona `audience` lines** tell the board, Studio and documentation which audiences a persona is in. They change nothing at runtime.
53
+
54
+ ## Default path
55
+
56
+ 1. Declare each audience once at the application level and give it a `description`.
57
+ 2. Gate the highest construct whose whole subtree shares the offer, usually a feature or a module, with `available for`.
58
+ 3. When the offer also needs a condition, or several parts share a rule, name it in an `availability` block and gate with `available with`.
59
+ 4. When a `when` condition reads a value, `provide` it at the nearest level that knows the input. Provide a per-record value at the slice, from a keyed snapshot query.
60
+ 5. Compile with warnings treated as errors, then export the executable model (see Check the model and the host).
61
+ 6. On the running host, prove that the part opens with the grant, stays closed without it, closes when `Incident` is granted, and is refused with `NotAvailable` when an `optional` value is absent. Also prove that a failed lookup, and a required value that is absent while a gate is decided, return a retryable error.
62
+
63
+ ```screenplay
12
64
  audience Plus
13
65
  description "Customers on the Plus package"
14
66
 
67
+ audience Incident
68
+ description "Parts switched off during an incident"
69
+
70
+ availability VesselReporting
71
+ description "Plus customers in the Nordics, unless an incident closes it"
72
+ for Plus and not Incident
73
+ when $context.region == "Nordics"
74
+
15
75
  module Fleet
76
+ provide region String from "Nordics"
77
+
16
78
  feature Vessels
17
- available for Plus
79
+ available with VesselReporting
18
80
  ```
19
81
 
20
- Keep authorization separate: `policy` and `authorize` decide who may act; a command rule validates input. Availability is checked before authorization. A closed offer is `NotAvailable`, not an authorization denial. Never put role checks into availability or package checks into authorization. See [model interaction](../cratis-screenplay-model-interaction/SKILL.md) for policies.
82
+ For a gate on the fields of one record, a grouped gate and persona audiences, read the [complete example](references/complete-example.md).
21
83
 
22
- ## Choose a gate
84
+ ## Capability catalog
23
85
 
24
- - For an offer, use `available for Plus`. Combine audience names with `and`, `or` and parentheses. To close an offer only for callers with a granted audience, use `available for Plus and not Incident`; `not` applies to a single audience name and binds before `and` and `or`. Unknown never opens a gate, even under `not`.
25
- - When the offer depends on a request value, use `available when $context.region == "Nordics"`. A condition has its own `and` and `or`.
26
- - To reuse gates, put `for`, `when` and `with` lines under an `availability <Name>` and use `available with <Name>`. The lines all have to hold. `with` can combine named availabilities with `and`, `or` and parentheses; do not negate one or introduce a cycle.
86
+ ### Declarations
27
87
 
28
- Gates can live on modules, features, slices, commands, queries, and screens. Several `available` lines on a construct and all gates above it have to hold. A bound screen action or data element inherits the command or query's availability and authorization; write an element gate only to narrow it. For the supported elements, evaluation reasons, target limits and operator suspension, read [runtime ownership](references/runtime-ownership.md).
88
+ Write these at the application level.
29
89
 
30
- ## Provide context at the level that knows its input
90
+ - `audience <Name>` declares an audience. Its body may hold only an optional `description "<text>"`. Declare each audience once.
91
+ - `availability <Name>` declares a reusable rule. Its body holds a `description` and any number of `for`, `when` and `with` lines, and every line must hold. Use it to share a rule or to combine forms. Availabilities must not build on each other in a cycle.
92
+ - An `audience <Name>` line under a `persona` lists one audience the persona is in, one line per audience. It is authoring metadata only and is not part of the executable model.
31
93
 
32
- Declare `provide <name> <Type> from <source>` at application, module, feature or slice level. Use a literal or expression, a value supplied by `host`, or a keyed snapshot query (not observable) returning the declared type. Put a request-keyed query source at the slice: `$context.command.<key>` is command input, `$context.arguments.<key>` is query input. Use the nearest scope that knows which input it has.
94
+ ### Gate lines
33
95
 
34
- ```screenplay excerpt
35
- slice StateView Vessels
36
- provide vessel Vessel optional from query VesselByKey by $context.arguments.vesselId
37
- ```
96
+ Each gate line holds one form.
97
+
98
+ - `available for <audiences>` holds when the caller's merged grants satisfy the expression. Write audience names with `and`, `or`, parentheses and `not <Audience>`.
99
+ - `available when <condition>` holds when a condition over `$context` is true.
100
+ - Each comparison is `$context.<path> <op> <operand>`, where `<op>` is `==`, `!=`, `>`, `>=`, `<` or `<=`.
101
+ - The operand is a text, number or Boolean literal, or another `$context` path.
102
+ - Combine comparisons with `and`, `or` and parentheses.
103
+ - Exporting the executable model rejects `contains` and `starts with`.
104
+ - `available with <availabilities>` holds when the named availabilities hold. Write names with `and`, `or` and parentheses. `not` is not allowed.
105
+ - **Precedence.** `not` binds tighter than `and`, and `and` binds tighter than `or`. Use parentheses whenever grouping changes who gets the offer.
106
+ - **`not`** applies to exactly one audience name, and only in a `for` line. `available for not Incident` is valid. `not (Plus)`, `not not Plus` and `with not Rollout` are errors.
107
+ - **One form per line.** `available for Plus when ...` is an error. To mix forms in one rule, use an `availability` block. Several `available` lines on one construct must all hold.
108
+
109
+ ### Where a gate goes
110
+
111
+ - **Module, feature or slice:** the gate applies to everything beneath. Prefer the highest level that fits.
112
+ - **Command or query:** the gate applies at the request boundary. An Arc host gates a read model as a whole, so give every query of one read model the same gate.
113
+ - **Screen:** the rendered client hides the screen's navigation entry and refuses its route. The server enforces the screen's commands and queries.
114
+ - **Screen `action` (a plain command action, not a guarded `when ... execute` action) or screen `data` element:** the gate can only narrow what the bound part allows. The client asks with the values of the data the screen shows. Placements of the same command or query on one screen should carry the same gate.
115
+ - **Nowhere else.** Events, read models, projections, reactions and screen elements with nothing bound (sections, tables, summaries, components) take no gate.
116
+
117
+ ### Provided values
118
+
119
+ - `provide <name> <Type> [optional] from <source>` is allowed at the application, module, feature or slice level. Everything beneath reads `$context.<name>`, including fields as `$context.<name>.<field>`.
120
+ - **Literal source:** `from "Nordics"`, `from 3` or `from true` gives a fixed value.
121
+ - **Expression source:** `from $context.<path>` derives the value from other `$context` values.
122
+ - **Host source:** `from host` means the host supplies a value with this name and type. The model cannot evaluate it.
123
+ - **Query source:** `from query <Query> by <expression>[, <expression>...]` reads a declared snapshot query, one `by` expression per key. Use `from query <Query>` without `by` for a zero-key snapshot. Match the query's result type and collection shape. This is a request-scoped read, not a subscription. Stage admits only a query keyed by exactly one `$context` value (see [runtime ownership](references/runtime-ownership.md)).
124
+ - **Code source:** omit `from` and place a `file "<path>"` reference or an inline code block under the line. The code receives the provide context and returns the value, or nothing when it is absent. It is opaque to the reference evaluator. A rendered host compiles code sources only in C#.
125
+ - **Request keys.** The model language names a command's input `$context.command.<property>` and a query's input `$context.arguments.<parameter>`. An Arc host, which is what Stage renders, hands both to gates and providers as `arguments` and has no `command` value. For such a host, key a command's provider or gate with `$context.arguments.<property>` as well: `$context.command.<property>` is always absent there, and Stage does not flag it. Put a request-keyed provider at the slice whose command or query carries the key.
126
+ - **`optional`** marks a value that can be absent. Code then sees null and a gate sees unknown, which keeps the part closed: the request is refused with `NotAvailable` (`403`). A `produces` mapping that reads an absent value refuses the command, so no event is appended.
127
+ - **Required (no `optional`).** A required value that is absent while a gate is decided makes the decision fail, so the request gets a retryable error (`503`), not a refusal. A body that reads an absent required value outside a gate is refused with the value's name, and asking again does not help. Mark a value `optional` whenever absence is a normal answer, such as no matching row.
128
+ - **Absence or failure.** A value is absent when a key is missing, no row matches or the host did not supply it. A failure is a store outage, code that throws or a timeout. It produces a retryable, logged error, never a denial.
129
+ - **Override.** Redeclare a name at a nearer level with the same type, and the nearest declaration wins. A value declared at a slice is not visible to sibling slices. Do not provide one name twice at one level.
130
+ - **Reserved names.** The built-in names `tenant`, `identity`, `causedBy`, `causation`, `occurred`, `audiences`, `command` and `arguments` cannot be provided. Provided values must not read each other in a cycle.
131
+ - **Reading in attached code.** Command, query, rule, policy and provide bodies read provided values from their context's values by name, or as a typed object. A provide body sees only the values it reads, already resolved. A rule's context has no identity, so never route roles or claims through a provider into a rule.
132
+
133
+ ### Built-in `$context` values
134
+
135
+ `tenant`, `identity` (with claims as `identity.claims.<claim>`), `causedBy`, `causation`, `occurred`, `audiences`, `command` and `arguments`. `$identity.<path>` is another spelling of `$context.identity.<path>`. An Arc host gives gates and `from $context` providers `identity.user` and `identity.isSystem` but never `command`, `causedBy`, `causation`, `occurred` or `identity.claims`; a gate that reads one of those is always undecided, so it stays closed. Test audiences with `available for`, not with a `when` condition over `$context.audiences`. A role or claim test belongs in a policy.
136
+
137
+ ### Runtime operations
138
+
139
+ These are not declared in the model.
140
+
141
+ - **Grant or withdraw an audience** for a tenant, a user or the system. An operator decides this, and the decisions are recorded as the public events `AudienceGranted` and `AudienceWithdrawn`. For one subject, level and audience, the newest decision by decision time wins, whatever order the events arrive in.
142
+ - **Suspend or resume a part** for a tenant, a user or the system, using the events `PartSuspended` and `PartResumed`.
143
+ - A suspension covers everything beneath the part and is checked before any gate.
144
+ - A resume ends the suspension at its own level only.
145
+ - Never model a suspension as an audience, a flag or a command.
146
+ - Never use `TenantSuspended` for a suspension; that event belongs to Box Office.
147
+ - **Grant every declared audience in development** with the engine's grant-all switch (see Development switch in your language reference). It is allowed only in Development, Local, Test and Testing environments, and the host refuses to start with it anywhere else. A grant for an undeclared audience never matches.
148
+ - **Ask what is unavailable.** The host's `/.cratis/availability` observable query lists refused parts with their reason, and emits again when the decision changes. Pass `part` and `arguments` to ask about one part and the data it concerns. `part` is the full name of the command or read model type; prefer letting a generated proxy supply it. An empty list means available only for a part the host knows, because an unknown or misspelled name also returns an empty list. Clients use it to hide navigation and elements.
149
+ - **Inspect or override while developing.** In the same environments, `GET /.cratis/availability/model` reports the declared model and the overrides in force, and `POST /.cratis/availability/overrides` turns audiences or paths on or off for the whole host.
150
+ - **MCP tools.** A closed or suspended command or query is left out of the host's MCP tool listing, which decides without invocation arguments. A call runs the gate with its own input: preserve `NotAvailable` or `Suspended` as returned. A failed decision leaves the tool listed during discovery, or produces a retryable error during a call.
151
+ - **Wire a hand-written host.** Registering the engine, its audience source and its suspension source belongs to `cratis-arc-host-application`.
152
+
153
+ ### Diagnostics
154
+
155
+ - **Errors:**
156
+ - `PLAY1130`, `PLAY1131` and `PLAY1132`: a malformed `audience`, `availability` or `available` line.
157
+ - `PLAY1133` and `PLAY1134`: a duplicate audience or availability.
158
+ - `PLAY1137`: a `with` cycle.
159
+ - `PLAY1140`: an unexpected token in a gate.
160
+ - `PLAY1141`: an unclosed parenthesis.
161
+ - `PLAY1171`: a misplaced `not`.
162
+ - `PLAY1119` to `PLAY1129`: a malformed, duplicate, reserved, retyped, cyclic or wrongly sourced `provide`.
163
+ - **Warnings that leave a part closed or refusable:**
164
+ - `PLAY1135`: an unknown audience.
165
+ - `PLAY1136`: an unknown availability.
166
+ - `PLAY1138`: a `when` that reads a value nothing provides.
167
+ - `PLAY1139`: an action, form or reaction that `invokes` a command that can be unavailable while the invoker is available.
168
+ - `PLAY1172`: an element gate that is broader than its bound part.
169
+ - `PLAY0153`: an unknown `$context` root.
170
+
171
+ Meanings and repairs are listed in [review checks](references/review-checks.md).
172
+
173
+ ## Check the model and the host
174
+
175
+ - Compile the model root with warnings as errors (`screenplay <model-root> --warnaserror`), because an unknown audience is only a warning and can change the result of a gate. Then run `screenplay export <model-root>` to catch conditions that compile but cannot be exported to the executable model.
176
+ - A specification cannot prove a grant, a refusal or a suspension. Prove them on the running host. Check the server response and its reason, not only the UI, for each of these cases: with the grant, without it, with a closing audience granted, with an absent `optional` value (`NotAvailable`), with an absent required value (retryable) and with a failed lookup (retryable).
177
+ - Studio's Availability panel (**See as a caller**) previews screen actions and data for a caller and shows which policies gate which operations, including ungated operations. Set **Signed in**, comma-separated roles, screen values (`name=value` per line), and recorded state (`Vessel vesselId=v1 active=true`, one read model instance per line). Omitted state counts as not recorded. The panel supplies no claims, audiences or suspensions and skips availability gates; use it to review policy coverage, never to prove audience or suspension behavior.
178
+ - For a rendered Stage application, check the target limits for gates and provided values in [runtime ownership](references/runtime-ownership.md) before relying on a condition or a query source. Test screen gates in the rendered application, not in the live Stage Host.
179
+
180
+ ## References
38
181
 
39
- A nearer declaration can override the source, keeping the type. Built-in context names cannot be provided. Values resolve lazily, once per request. If a value is required, absence refuses the request; use `optional` when absence is expected. An optional absence is `null` in code and unknown to a gate; a lookup error fails the request, not the offer.
182
+ Read `references/<language>.md` for the project's SDK (`.csproj` → csharp, Node server `package.json` → typescript, `*.kt` → kotlin, `*.java` → java, `go.mod` → go, `mix.exs` → elixir); only the project's languages are installed.
40
183
 
41
- Read the [complete example](references/complete-example.md) when combining a shared availability with a provided value. See [runtime ownership](references/runtime-ownership.md) if a gate reads a host value, code or file, or if the renderer rejects it.
184
+ Stage rendering of gates and provided values is C#-only.
42
185
 
43
- ## Check the model and target separately
186
+ Python has no application SDK: call the owning service's commands and queries through its HTTP API, and let that host decide availability.
44
187
 
45
- Compile the model root and resolve the findings described in [review checks](references/review-checks.md). Screenplay specifications run with everything available; they cannot prove a grant, refusal, or suspension. On the selected host, check the same operation with and without the audience, with an unresolved value and with a failed lookup when relevant. Check the server response as well as the UI. An operator suspension is runtime state; the model declares nothing for it. Projections and reactions keep running.
188
+ - [Runtime ownership](references/runtime-ownership.md): read it to learn who enforces what, the refusal results a host returns, how screens and elements render, how an operator suspends a part, how to inspect and override availability while developing, and why Stage refuses a gate or provided value.
189
+ - [Complete example](references/complete-example.md): read it to combine a shared availability with a provided value, write grouped gates and persona audiences, or gate on the fields of a record.
190
+ - [Review checks](references/review-checks.md): read it to review a model that uses `audience`, `availability`, `available` or `provide`, including the diagnostic index with repairs.