@cratis/pi 7.50.0 → 7.51.1

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 (306) hide show
  1. package/package/corpus/harnesses/copilot/instructions/authoring-skills.instructions.md +93 -0
  2. package/package/corpus/harnesses/copilot/instructions/profiles.instructions.md +4 -0
  3. package/package/corpus/prompts/review-skill.prompt.md +6 -8
  4. package/package/corpus/rules/authoring-skills.md +92 -0
  5. package/package/corpus/rules/general.md +1 -0
  6. package/package/corpus/rules/profiles.md +4 -0
  7. package/package/corpus/skills/cratis-application-react-specifications/SKILL.md +1 -1
  8. package/package/corpus/skills/cratis-application-slice-conformance/SKILL.md +8 -7
  9. package/package/corpus/skills/cratis-application-slice-conformance/references/checklists.md +1 -1
  10. package/package/corpus/skills/cratis-application-slice-conformance/references/provenance.md +2 -2
  11. package/package/corpus/skills/cratis-application-slice-specifications/SKILL.md +15 -19
  12. package/package/corpus/skills/cratis-application-slice-specifications/references/provenance.md +1 -1
  13. package/package/corpus/skills/cratis-application-slice-specifications/references/query-and-decision-scenarios.md +8 -6
  14. package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/SKILL.md +23 -29
  15. package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/authentication.md +7 -7
  16. package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/authorization.md +34 -32
  17. package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/authproxy.md +1 -1
  18. package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/frontend.md +2 -2
  19. package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/local-development.md +3 -3
  20. package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/observable-emission-guards.md +8 -6
  21. package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/tenancy.md +3 -3
  22. package/package/corpus/skills/cratis-arc-command/SKILL.md +23 -25
  23. package/package/corpus/skills/cratis-arc-command/references/command-result.md +1 -1
  24. package/package/corpus/skills/cratis-arc-command/references/decisions-and-routing.md +9 -9
  25. package/package/corpus/skills/cratis-arc-command/references/generated-values.md +11 -12
  26. package/package/corpus/skills/cratis-arc-command/references/handler-shapes.md +4 -4
  27. package/package/corpus/skills/cratis-arc-command/references/proxy-generation.md +3 -3
  28. package/package/corpus/skills/cratis-arc-command/references/read-model-injection.md +1 -3
  29. package/package/corpus/skills/cratis-arc-command/references/shop-generation.md +11 -14
  30. package/package/corpus/skills/cratis-arc-command-execution/LICENSE +6 -0
  31. package/package/corpus/skills/cratis-arc-command-execution/SKILL.md +17 -19
  32. package/package/corpus/skills/cratis-arc-command-kotlin/SKILL.md +8 -7
  33. package/package/corpus/skills/cratis-arc-command-kotlin/references/read-model-naming.md +2 -2
  34. package/package/corpus/skills/cratis-arc-command-operation/SKILL.md +14 -15
  35. package/package/corpus/skills/cratis-arc-command-operation/references/execution-and-recovery.md +2 -2
  36. package/package/corpus/skills/cratis-arc-command-operation/references/testing.md +7 -8
  37. package/package/corpus/skills/cratis-arc-command-typescript/SKILL.md +14 -11
  38. package/package/corpus/skills/cratis-arc-command-typescript/references/chronicle-events.md +7 -7
  39. package/package/corpus/skills/cratis-arc-command-typescript/references/command-operations.md +4 -4
  40. package/package/corpus/skills/cratis-arc-command-typescript/references/hosting-and-storage.md +11 -7
  41. package/package/corpus/skills/cratis-arc-command-typescript/references/identity-and-introspection.md +4 -2
  42. package/package/corpus/skills/cratis-arc-command-typescript/references/observability-and-host-scopes.md +2 -2
  43. package/package/corpus/skills/cratis-arc-command-typescript/references/proxy-generation.md +3 -3
  44. package/package/corpus/skills/cratis-arc-command-typescript/references/slice-layout.md +1 -1
  45. package/package/corpus/skills/cratis-arc-command-typescript/verification.json +2 -2
  46. package/package/corpus/skills/cratis-arc-command-validation/SKILL.md +10 -14
  47. package/package/corpus/skills/cratis-arc-ef-core-migration/LICENSE +6 -0
  48. package/package/corpus/skills/cratis-arc-ef-core-migration/SKILL.md +9 -10
  49. package/package/corpus/skills/cratis-arc-go/SKILL.md +14 -15
  50. package/package/corpus/skills/cratis-arc-go/references/queries.md +2 -2
  51. package/package/corpus/skills/cratis-arc-hosting/SKILL.md +8 -8
  52. package/package/corpus/skills/cratis-arc-hosting/references/integrations-and-publish.md +11 -11
  53. package/package/corpus/skills/cratis-arc-identity-and-tenancy-kotlin/SKILL.md +3 -3
  54. package/package/corpus/skills/cratis-arc-observable-query-http/SKILL.md +13 -13
  55. package/package/corpus/skills/cratis-arc-observable-query-http/verification.json +1 -1
  56. package/package/corpus/skills/cratis-arc-query-kotlin/SKILL.md +2 -3
  57. package/package/corpus/skills/cratis-arc-query-paging/SKILL.md +11 -14
  58. package/package/corpus/skills/cratis-arc-query-typescript/SKILL.md +3 -3
  59. package/package/corpus/skills/cratis-arc-query-typescript/references/storage-observation-and-compliance.md +2 -2
  60. package/package/corpus/skills/cratis-arc-react-page/SKILL.md +10 -14
  61. package/package/corpus/skills/cratis-arc-react-page/references/dialogs.md +4 -2
  62. package/package/corpus/skills/cratis-arc-react-page/references/from-screenplay.md +7 -7
  63. package/package/corpus/skills/cratis-arc-react-page/references/provenance.md +2 -2
  64. package/package/corpus/skills/cratis-arc-react-page/references/queries-and-commands.md +1 -1
  65. package/package/corpus/skills/cratis-arc-react-page/verification.json +0 -2
  66. package/package/corpus/skills/cratis-arc-spring-data-kotlin/SKILL.md +3 -3
  67. package/package/corpus/skills/cratis-arc-testing-kotlin/SKILL.md +3 -3
  68. package/package/corpus/skills/cratis-arc-validation-kotlin/SKILL.md +1 -2
  69. package/package/corpus/skills/cratis-arc-validation-typescript/SKILL.md +4 -4
  70. package/package/corpus/skills/cratis-chronicle-cli-operations/SKILL.md +19 -22
  71. package/package/corpus/skills/cratis-chronicle-cli-operations/references/command-effects.md +10 -10
  72. package/package/corpus/skills/cratis-chronicle-client-dotnet/SKILL.md +36 -36
  73. package/package/corpus/skills/cratis-chronicle-client-dotnet/references/additional-surfaces.md +4 -2
  74. package/package/corpus/skills/cratis-chronicle-client-dotnet/references/client-construction.md +1 -1
  75. package/package/corpus/skills/cratis-chronicle-client-dotnet/references/compatibility-check.md +13 -13
  76. package/package/corpus/skills/cratis-chronicle-client-dotnet/references/discovery.md +10 -10
  77. package/package/corpus/skills/cratis-chronicle-client-dotnet/references/hosting.md +10 -10
  78. package/package/corpus/skills/cratis-chronicle-client-dotnet/references/pinned-generation-delivery.md +7 -5
  79. package/package/corpus/skills/cratis-chronicle-client-elixir/SKILL.md +59 -64
  80. package/package/corpus/skills/cratis-chronicle-client-elixir/references/append-api.md +17 -17
  81. package/package/corpus/skills/cratis-chronicle-client-elixir/references/compliance.md +5 -3
  82. package/package/corpus/skills/cratis-chronicle-client-elixir/references/connections.md +15 -11
  83. package/package/corpus/skills/cratis-chronicle-client-elixir/references/event-sources.md +3 -1
  84. package/package/corpus/skills/cratis-chronicle-client-elixir/references/pitfalls.md +4 -4
  85. package/package/corpus/skills/cratis-chronicle-client-elixir/references/projections.md +8 -4
  86. package/package/corpus/skills/cratis-chronicle-client-elixir/references/upgrading.md +19 -19
  87. package/package/corpus/skills/cratis-chronicle-client-elixir/references/variants.md +3 -8
  88. package/package/corpus/skills/cratis-chronicle-client-elixir/verification.json +2 -2
  89. package/package/corpus/skills/cratis-chronicle-client-go/SKILL.md +16 -18
  90. package/package/corpus/skills/cratis-chronicle-client-go/references/projections.md +2 -2
  91. package/package/corpus/skills/cratis-chronicle-client-kotlin/SKILL.md +61 -58
  92. package/package/corpus/skills/cratis-chronicle-client-kotlin/references/connection-lifecycle.md +9 -10
  93. package/package/corpus/skills/cratis-chronicle-client-kotlin/references/discovery-and-registration.md +6 -6
  94. package/package/corpus/skills/cratis-chronicle-client-kotlin/references/event-sources.md +4 -2
  95. package/package/corpus/skills/cratis-chronicle-client-kotlin/references/java-api.md +4 -4
  96. package/package/corpus/skills/cratis-chronicle-client-kotlin/references/options.md +1 -1
  97. package/package/corpus/skills/cratis-chronicle-client-kotlin/references/spring-boot.md +24 -24
  98. package/package/corpus/skills/cratis-chronicle-client-kotlin/references/variants.md +6 -5
  99. package/package/corpus/skills/cratis-chronicle-client-typescript/SKILL.md +26 -20
  100. package/package/corpus/skills/cratis-chronicle-client-typescript/references/read-models-and-projections.md +4 -4
  101. package/package/corpus/skills/cratis-chronicle-client-typescript/references/testing.md +1 -1
  102. package/package/corpus/skills/cratis-chronicle-client-typescript/references/variants.md +4 -3
  103. package/package/corpus/skills/cratis-chronicle-client-typescript/verification.json +2 -2
  104. package/package/corpus/skills/cratis-chronicle-compliance/SKILL.md +9 -9
  105. package/package/corpus/skills/cratis-chronicle-decision-reads/SKILL.md +11 -10
  106. package/package/corpus/skills/cratis-chronicle-decision-reads/references/admission-and-ownership.md +1 -1
  107. package/package/corpus/skills/cratis-chronicle-decision-reads/references/choosing-how-a-rule-holds.md +5 -6
  108. package/package/corpus/skills/cratis-chronicle-event-constraints/SKILL.md +7 -7
  109. package/package/corpus/skills/cratis-chronicle-event-constraints/references/closing-streams.md +1 -1
  110. package/package/corpus/skills/cratis-chronicle-event-specifications/SKILL.md +6 -6
  111. package/package/corpus/skills/cratis-chronicle-event-type-migration/SKILL.md +12 -10
  112. package/package/corpus/skills/cratis-chronicle-event-type-migration/references/pinned-generations.md +2 -3
  113. package/package/corpus/skills/cratis-chronicle-hosting/SKILL.md +7 -7
  114. package/package/corpus/skills/cratis-chronicle-hosting/references/operations.md +5 -5
  115. package/package/corpus/skills/cratis-chronicle-mcp-inspection/SKILL.md +6 -6
  116. package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/blocked-tools.md +5 -5
  117. package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/deployment.md +9 -10
  118. package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/observational-tools.md +29 -29
  119. package/package/corpus/skills/cratis-chronicle-multi-tenancy/SKILL.md +9 -9
  120. package/package/corpus/skills/cratis-chronicle-projection/SKILL.md +13 -14
  121. package/package/corpus/skills/cratis-chronicle-projection/references/fluent-builder.md +3 -5
  122. package/package/corpus/skills/cratis-chronicle-projection/references/model-bound-attributes.md +2 -4
  123. package/package/corpus/skills/cratis-chronicle-projection/references/variants.md +1 -3
  124. package/package/corpus/skills/cratis-chronicle-reactor/SKILL.md +15 -19
  125. package/package/corpus/skills/cratis-chronicle-reactor/references/provenance.md +1 -1
  126. package/package/corpus/skills/cratis-chronicle-reactor/references/specifications.md +10 -8
  127. package/package/corpus/skills/cratis-chronicle-read-model/SKILL.md +16 -15
  128. package/package/corpus/skills/cratis-chronicle-read-model/references/queries.md +8 -8
  129. package/package/corpus/skills/cratis-chronicle-read-model-specifications/SKILL.md +7 -7
  130. package/package/corpus/skills/cratis-chronicle-read-model-specifications/references/provenance.md +3 -3
  131. package/package/corpus/skills/cratis-chronicle-reducer/SKILL.md +14 -13
  132. package/package/corpus/skills/cratis-chronicle-web-workbench/SKILL.md +11 -12
  133. package/package/corpus/skills/cratis-cli-terminal-workbench/SKILL.md +6 -6
  134. package/package/corpus/skills/cratis-code-review/SKILL.md +13 -17
  135. package/package/corpus/skills/cratis-components-accessibility/SKILL.md +3 -3
  136. package/package/corpus/skills/cratis-components-common-controls/SKILL.md +15 -15
  137. package/package/corpus/skills/cratis-components-data-surfaces/SKILL.md +29 -29
  138. package/package/corpus/skills/cratis-components-schema-editor/SKILL.md +4 -4
  139. package/package/corpus/skills/cratis-components-schema-editor/references/tree-layout.md +1 -1
  140. package/package/corpus/skills/cratis-components-stepper-command-dialog/SKILL.md +6 -6
  141. package/package/corpus/skills/cratis-components-styling/LICENSE +6 -0
  142. package/package/corpus/skills/cratis-components-styling/SKILL.md +5 -4
  143. package/package/corpus/skills/cratis-components-toolbar/SKILL.md +5 -5
  144. package/package/corpus/skills/cratis-developer-marketing/SKILL.md +2 -2
  145. package/package/corpus/skills/cratis-engineering-csharp-conventions/SKILL.md +3 -3
  146. package/package/corpus/skills/cratis-engineering-csharp-conventions/references/exceptions-logging-and-di.md +1 -1
  147. package/package/corpus/skills/cratis-engineering-effect-boundaries/references/failure-archetypes.md +4 -4
  148. package/package/corpus/skills/cratis-fundamentals-concept/SKILL.md +19 -24
  149. package/package/corpus/skills/cratis-fundamentals-concept/references/shop-generation.md +10 -10
  150. package/package/corpus/skills/cratis-fundamentals-concept/references/typescript-concepts.md +8 -8
  151. package/package/corpus/skills/cratis-fundamentals-concept-go/SKILL.md +10 -11
  152. package/package/corpus/skills/cratis-fundamentals-telemetry/SKILL.md +18 -18
  153. package/package/corpus/skills/cratis-fundamentals-telemetry/verification.json +1 -1
  154. package/package/corpus/skills/cratis-fundamentals-type-discovery/SKILL.md +4 -4
  155. package/package/corpus/skills/cratis-lens-browser-extension/SKILL.md +19 -19
  156. package/package/corpus/skills/cratis-orleans-jobs/SKILL.md +27 -27
  157. package/package/corpus/skills/cratis-orleans-jobs/references/state-machines.md +12 -12
  158. package/package/corpus/skills/cratis-performance-review/SKILL.md +8 -10
  159. package/package/corpus/skills/cratis-release-notes/SKILL.md +1 -1
  160. package/package/corpus/skills/cratis-screenplay-automations-and-translations/SKILL.md +30 -28
  161. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/automation-patterns.md +8 -8
  162. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/cases-to-specify.md +4 -4
  163. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/effects-and-idempotency.md +3 -1
  164. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/provenance.md +1 -14
  165. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/public-events-and-direction.md +6 -4
  166. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/realization-and-gap-fill.md +5 -6
  167. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/todo-list-example.md +11 -12
  168. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/translate-example.md +3 -3
  169. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/translation-patterns.md +2 -2
  170. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/SKILL.md +22 -20
  171. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/complete-examples.md +1 -1
  172. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/invocation-identity.md +9 -10
  173. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/refusals-and-redelivery.md +1 -1
  174. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/specifying-triggers-and-clock.md +3 -4
  175. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/verification.json +0 -4
  176. package/package/corpus/skills/cratis-screenplay-command-surface/SKILL.md +16 -15
  177. package/package/corpus/skills/cratis-screenplay-command-surface/references/compliance.md +17 -17
  178. package/package/corpus/skills/cratis-screenplay-command-surface/references/context.md +8 -8
  179. package/package/corpus/skills/cratis-screenplay-command-surface/references/enum-numbers.md +8 -12
  180. package/package/corpus/skills/cratis-screenplay-command-surface/references/generated-values-and-responses.md +31 -29
  181. package/package/corpus/skills/cratis-screenplay-command-surface/references/inline-events.md +5 -5
  182. package/package/corpus/skills/cratis-screenplay-command-surface/references/operations.md +2 -2
  183. package/package/corpus/skills/cratis-screenplay-command-surface/references/policy-persona-seed.md +3 -3
  184. package/package/corpus/skills/cratis-screenplay-command-surface/references/shop-generation.md +10 -10
  185. package/package/corpus/skills/cratis-screenplay-command-surface/references/validate-rules.md +9 -7
  186. package/package/corpus/skills/cratis-screenplay-command-surface/verification.json +2 -5
  187. package/package/corpus/skills/cratis-screenplay-discovery/SKILL.md +14 -15
  188. package/package/corpus/skills/cratis-screenplay-discovery/references/facilitation.md +1 -1
  189. package/package/corpus/skills/cratis-screenplay-discovery/references/personas-and-causes.md +1 -1
  190. package/package/corpus/skills/cratis-screenplay-discovery/references/plotting-and-handoff.md +2 -2
  191. package/package/corpus/skills/cratis-screenplay-discovery/references/provenance.md +3 -3
  192. package/package/corpus/skills/cratis-screenplay-event-modeling/SKILL.md +13 -17
  193. package/package/corpus/skills/cratis-screenplay-event-modeling/references/naming-primitives.md +2 -2
  194. package/package/corpus/skills/cratis-screenplay-event-modeling/references/nine-steps.md +2 -2
  195. package/package/corpus/skills/cratis-screenplay-event-modeling/references/parsed-not-runnable.md +11 -12
  196. package/package/corpus/skills/cratis-screenplay-event-modeling/references/provenance.md +2 -2
  197. package/package/corpus/skills/cratis-screenplay-event-modeling/verification.json +0 -4
  198. package/package/corpus/skills/cratis-screenplay-legacy-extraction/SKILL.md +1 -1
  199. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/evidence-table-template.md +4 -4
  200. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/generate-notes.md +34 -21
  201. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/generated-recovery.md +18 -12
  202. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/prologue-safety.md +7 -7
  203. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/provenance.md +1 -1
  204. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/rule-modeling.md +4 -4
  205. package/package/corpus/skills/cratis-screenplay-model-authoring/SKILL.md +24 -29
  206. package/package/corpus/skills/cratis-screenplay-model-authoring/references/choosing-generation.md +1 -2
  207. package/package/corpus/skills/cratis-screenplay-model-authoring/references/language-reference.md +44 -51
  208. package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-loop.md +31 -36
  209. package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-tools.md +56 -63
  210. package/package/corpus/skills/cratis-screenplay-model-authoring/references/model-notes.md +11 -10
  211. package/package/corpus/skills/cratis-screenplay-model-authoring/references/property-links.md +15 -15
  212. package/package/corpus/skills/cratis-screenplay-model-authoring/references/release-baseline.md +25 -21
  213. package/package/corpus/skills/cratis-screenplay-model-authoring/references/screen-authoring-workflow.md +16 -31
  214. package/package/corpus/skills/cratis-screenplay-model-authoring/verification.json +5 -4
  215. package/package/corpus/skills/cratis-screenplay-model-review/SKILL.md +1 -1
  216. package/package/corpus/skills/cratis-screenplay-model-review/references/checklist.md +3 -3
  217. package/package/corpus/skills/cratis-screenplay-model-review/references/provenance.md +3 -4
  218. package/package/corpus/skills/cratis-screenplay-model-review/references/public-keys-and-routes.md +1 -1
  219. package/package/corpus/skills/cratis-screenplay-model-review/references/report-template.md +7 -5
  220. package/package/corpus/skills/cratis-screenplay-model-review/references/worked-example.md +2 -2
  221. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/SKILL.md +11 -12
  222. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/code-reading-and-tokens.md +2 -2
  223. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/identity-and-edits.md +1 -1
  224. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/opt-in.md +8 -10
  225. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/provenance.md +6 -6
  226. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/stop-or-assume.md +2 -2
  227. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/verdicts-and-modes.md +1 -1
  228. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/vocabulary-map.md +3 -3
  229. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/worked-example.md +1 -1
  230. package/package/corpus/skills/cratis-screenplay-projections/SKILL.md +11 -22
  231. package/package/corpus/skills/cratis-screenplay-projections/references/pdl-grammar.md +1 -1
  232. package/package/corpus/skills/cratis-screenplay-projections/verification.json +0 -1
  233. package/package/corpus/skills/cratis-screenplay-read-surface/SKILL.md +16 -29
  234. package/package/corpus/skills/cratis-screenplay-read-surface/references/equality-filters.md +14 -18
  235. package/package/corpus/skills/cratis-screenplay-read-surface/references/guarded-actions.md +5 -7
  236. package/package/corpus/skills/cratis-screenplay-read-surface/references/named-keys.md +6 -6
  237. package/package/corpus/skills/cratis-screenplay-read-surface/references/provenance.md +1 -1
  238. package/package/corpus/skills/cratis-screenplay-read-surface/verification.json +1 -2
  239. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/SKILL.md +18 -19
  240. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/delivery-protocol.md +2 -2
  241. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/gap-fill-handoff.md +6 -6
  242. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/provenance.md +4 -4
  243. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/renderability-gate.md +5 -6
  244. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/worked-example.md +2 -3
  245. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/verification.json +1 -1
  246. package/package/corpus/skills/cratis-screenplay-scenario-coverage/SKILL.md +13 -15
  247. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/invoicing-dues-design.md +1 -1
  248. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/invoicing-dues-example.md +2 -2
  249. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/provenance.md +4 -6
  250. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-catalogue.md +4 -4
  251. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-examples.md +3 -3
  252. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/spec-forms-by-mode.md +11 -9
  253. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/view-and-story-specs.md +5 -5
  254. package/package/corpus/skills/cratis-screenplay-scenario-coverage/verification.json +0 -1
  255. package/package/corpus/skills/cratis-screenplay-slice-design/SKILL.md +12 -14
  256. package/package/corpus/skills/cratis-screenplay-slice-design/references/read-model-design.md +4 -4
  257. package/package/corpus/skills/cratis-screenplay-slice-design/references/rule-layers.md +6 -4
  258. package/package/corpus/skills/cratis-screenplay-slice-design/references/slicing.md +4 -2
  259. package/package/corpus/skills/cratis-screenplay-slice-design/references/worked-example.md +1 -1
  260. package/package/corpus/skills/cratis-screenplay-specifications/SKILL.md +37 -40
  261. package/package/corpus/skills/cratis-screenplay-specifications/references/actions-beyond-commands.md +10 -15
  262. package/package/corpus/skills/cratis-screenplay-specifications/references/child-ordering.md +14 -12
  263. package/package/corpus/skills/cratis-screenplay-specifications/references/concept-rules.md +1 -1
  264. package/package/corpus/skills/cratis-screenplay-specifications/references/examples-and-routes.md +9 -10
  265. package/package/corpus/skills/cratis-screenplay-specifications/references/generated-fixtures.md +5 -6
  266. package/package/corpus/skills/cratis-screenplay-specifications/references/reactions-and-cascades.md +8 -9
  267. package/package/corpus/skills/cratis-screenplay-specifications/references/source-notes.md +13 -16
  268. package/package/corpus/skills/cratis-screenplay-specifications/references/whitespace-rules.md +15 -13
  269. package/package/corpus/skills/cratis-screenplay-specifications/verification.json +4 -9
  270. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +29 -29
  271. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/chronicle-boundaries.md +18 -15
  272. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/consistency-and-concurrency.md +16 -15
  273. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution-example.md +1 -1
  274. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution.md +19 -17
  275. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/provenance.md +3 -3
  276. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-patterns.md +1 -1
  277. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/streams-example.md +2 -2
  278. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/verification.json +2 -3
  279. package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-subset.md +2 -0
  280. package/package/corpus/skills/cratis-screenplay-toolchain/references/pdl-example.md +1 -1
  281. package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract-exceptions.json +0 -28
  282. package/package/corpus/skills/cratis-screenplay-ui-composition/SKILL.md +21 -26
  283. package/package/corpus/skills/cratis-screenplay-ui-composition/references/guarded-interactions.md +3 -3
  284. package/package/corpus/skills/cratis-screenplay-ui-composition/references/provenance.md +1 -1
  285. package/package/corpus/skills/cratis-screenplay-ui-composition/references/response-continuations.md +10 -10
  286. package/package/corpus/skills/cratis-screenplay-ui-composition/references/screen-composition-contract.md +23 -30
  287. package/package/corpus/skills/cratis-screenplay-ui-composition/references/worked-flow.md +4 -5
  288. package/package/corpus/skills/cratis-screenplay-ui-composition/verification.json +1 -5
  289. package/package/corpus/skills/cratis-security-review/SKILL.md +8 -10
  290. package/package/corpus/skills/cratis-security-review/references/arc-boundaries.md +18 -16
  291. package/package/corpus/skills/cratis-specification-by-example/SKILL.md +1 -1
  292. package/package/corpus/skills/cratis-specifications-csharp/SKILL.md +26 -29
  293. package/package/corpus/skills/cratis-specifications-csharp/references/application-scenarios.md +8 -8
  294. package/package/corpus/skills/cratis-specifications-csharp/references/csharp-patterns.md +2 -2
  295. package/package/corpus/skills/cratis-specifications-csharp/references/integration-specs.md +6 -4
  296. package/package/corpus/skills/cratis-specifications-csharp/references/shared-lifecycle.md +6 -2
  297. package/package/corpus/skills/cratis-specifications-typescript/SKILL.md +2 -2
  298. package/package/corpus/skills/cratis-studio-mcp-safety-guidance/SKILL.md +4 -4
  299. package/package/corpus/skills/cratis-writing-voice-and-cadence/SKILL.md +1 -1
  300. package/package/corpus/skills/guiding-refactoring-with-code-health/SKILL.md +1 -1
  301. package/package/corpus/skills/prioritizing-technical-debt/SKILL.md +1 -1
  302. package/package/corpus/skills/risk-based-testing-with-code-health/SKILL.md +3 -3
  303. package/package/corpus/skills/safeguarding-ai-generated-code/SKILL.md +1 -1
  304. package/package.json +1 -1
  305. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/product-sources.md +0 -15
  306. package/package/corpus/skills/cratis-screenplay-model-authoring/references/provenance.md +0 -13
@@ -0,0 +1,93 @@
1
+ ---
2
+ applyTo: ".cratis/ai/skills/**,.cratis/ai/rules/**,.cratis/ai/agents/**,.cratis/ai/prompts/**"
3
+ paths:
4
+ - ".cratis/ai/skills/**"
5
+ - ".cratis/ai/rules/**"
6
+ - ".cratis/ai/agents/**"
7
+ - ".cratis/ai/prompts/**"
8
+ ---
9
+ <!-- cratis-ai: generated Copilot instructions. Do not edit; rules/ is the source. -->
10
+
11
+ <!-- Copyright (c) Cratis. All rights reserved. -->
12
+ <!-- Licensed under the MIT license. See LICENSE file in the project root for full license information. -->
13
+
14
+ # Authoring skills and instructions
15
+
16
+ ## 1. What a skill is
17
+
18
+ Trigger (when to use / when not) · the how (steps, patterns, one minimal correct example each) · choosing (use X when…, not Y) · pitfalls (with the diagnostic code you'll see) · verification (command + what a pass looks like). Timeless: describe current behavior without saying it is current.
19
+
20
+ A code-breaking prerequisite belongs in one `Requires` line with the version-check command and the fallback. This is a compatibility gate, not a release history. Use American English in authored text.
21
+
22
+ ## 2. Frontmatter and routing
23
+
24
+ Use portable fields: `name`, `description`, `license`, `compatibility`, `metadata`, `allowed-tools`. Keep extension metadata under `metadata` so other harnesses can load the skill.
25
+
26
+ - Match `name` to the directory: 1–64 lowercase letters, digits and single hyphens; no edge hyphen or reserved `anthropic`/`claude` words. These constraints keep discovery portable.
27
+ - Lead the description with what the skill does, then `Use when…` and `Not for…` (name the sibling to use). Include concrete words from the user's request so the router can distinguish neighbors.
28
+ - Use neutral imperative or third-person phrasing, not `I`/`you`/`your`; descriptions enter instruction context, where shifting voice obscures who acts. Quoted command text and inline code are not the author's voice.
29
+ - Aim below 700 characters, within the hard 1–1024 limit. No tag-like text, versions or research-process vocabulary: the listing is for routing, not evidence.
30
+
31
+ An explicit trigger clause (`Use when`, `Load when`, `Read when` or an equivalent) and neutral voice are required even with `SKILL_AUTHORING_MODE=warn`. Negative routing and meta-language findings follow that switch; the 700-character target is guidance, not a gate.
32
+
33
+ ## 3. Budget and progressive disclosure
34
+
35
+ Target at most 400 body lines and 16,000 characters; the hard limits remain 500 lines and 20,000 characters. A warning starts at 18,000 characters to leave editing and compaction headroom; characters only approximate tokens.
36
+
37
+ Keep decision rules, the core workflow and pre-action traps in `SKILL.md`. Move conditional detail to `references/`, with a direct `Read references/x.md when…` pointer for every file, including assets and scripts. `LICENSE`, `NOTICE` and `verification.json` are exempt as licensing/verifier metadata; existing reasoned asset exceptions fail when stale. Direct pointers prevent partial nested reads from hiding required context. References over 100 lines open with generated `## Contents`; a single fenced example with an early introduction is exempt because it has no sections to navigate. Use forward-slash paths for portability.
38
+
39
+ ## 4. Timeless text
40
+
41
+ Describe behavior, syntax and diagnostics without dates or relative-time claims. Remove release/probe results, issue/PR/decision numbers, source-line citations, commit hashes, bundled versions and research-only pages; these age without helping the next task. No provenance, contradictions or release-baseline pages, nor verified-source headings in skills. Preserve a diagnostic's identifier, not the investigation history.
42
+
43
+ Keep pins in `product-sync.json` and compatibility documentation under `Documentation/`, not repeated prose. Track product-documentation conflicts in the product's issues. A minimum-construct table is useful only when it is short and contains actual code-breaking prerequisites.
44
+
45
+ ## 5. Instruction style
46
+
47
+ Give one default and the condition for choosing an alternative, rather than an equal-options menu. Put the reason beside an absolute so the agent can recognize its boundary; volume and ALL-CAPS add no evidence. Prefer concrete, checkable directions over vague quality requests. Use the terms in [glossary.md](./glossary.instructions.md); define an unfamiliar term on first use to avoid competing meanings. Show one minimal correct example per pattern and an exact verification command with the observable pass condition.
48
+
49
+ ## 6. One source of truth
50
+
51
+ Link the owning rule instead of copying it into skills, agents or prompts; copies diverge on the next edit. A pointer may state when to read that rule, but does not redefine it. Resolve contradictions at their source rather than relying on a harness's precedence behavior.
52
+
53
+ ## 7. MCP tools
54
+
55
+ Name the server once, then its protocol tool: for example, the `screenplay` MCP server's `propose-ast` tool. Resolve the harness-native invocation name from the connected client's tool listing instead of assuming one naming scheme works in every harness. For servers the corpus does not register, resolve the user's configured alias; a fixed prefix can address the wrong server.
56
+
57
+ ## 8. Deterministic scripts
58
+
59
+ Put repeatable mechanical operations in `scripts/` when a script can eliminate repeated reasoning. Say explicitly to execute it (or, when needed, read it as reference), with prerequisites, inputs, errors and the pass signal. Handle known errors in the script and preserve the command's exit status; apparent success after an unperformed check is not verification. Keep judgment in prose.
60
+
61
+ ## 9. Evaluations
62
+
63
+ Give new skills both trigger and output evaluation inputs. Existing unevaluated skills are a shrinking baseline, not permission to exempt new ones. Each evaluation set has 16–20 unique trigger queries: 8–10 positive (`shouldTrigger: true`) and 8–10 negative (`shouldTrigger: false`), plus 3–5 output tasks with 3–5 nonempty assertions each. Make negatives tricky near-misses and name the sibling that should win in their notes; that note quality is review guidance, not a shape check. Compare with-skill outputs to a without-skill baseline to show what the instructions improve.
64
+
65
+ When changing a description, run trigger evaluations before and after when authorized to spend model usage. Keep results untracked in `.ai-work/skill-evaluations/` and summarize them for reviewers, not in the skill. CI validates inputs without calling models; missing model runs remain explicitly unverified.
66
+
67
+ ## 10. Review checklist
68
+
69
+ - What, when, when-not and sibling routing are explicit; voice is neutral and routing text has no meta/history claims.
70
+ - Body has headroom; every reference, asset and script is directly named; long references have Contents.
71
+ - Text is timeless; no research-only pages or verified-source headings remain.
72
+ - Defaults, escape conditions, adjacent reasons, glossary terms and correct examples are clear.
73
+ - Rules are linked, not duplicated; MCP server and native naming are resolved.
74
+ - Mechanical steps use scripts where warranted; verification names the command and pass condition.
75
+ - Evaluation inputs cover positive and near-miss routing and baseline output behavior; report any runs not performed.
76
+ - Always-on content meets the budget below. Apply the same timelessness and clarity review to rules, agents and prompts.
77
+
78
+ ## 11. Always-on content
79
+
80
+ Keep `general.md` to facts needed in every session, at most 200 lines. Warn above 24,000 bytes and above 60,000 combined bytes for rules without `paths`; line length alone can hide context bloat. Review globally applied Copilot instructions above 4,000 characters. These budgets leave room for source and task context, rather than promising a token count.
81
+
82
+ Use path-scoped rules for file-specific invariants and skills for particular operations. Hooks and CI enforce mechanical constraints; natural-language rules do not replace permission controls.
83
+
84
+ ## Sources
85
+
86
+ - https://agentskills.io/specification
87
+ - https://platform.claude.com/docs/en/agents-and-tools/agent-skills/best-practices
88
+ - https://github.com/anthropics/skills/blob/main/skills/skill-creator/SKILL.md
89
+ - https://code.claude.com/docs/en/memory
90
+ - https://learn.chatgpt.com/docs/agent-configuration/agents-md
91
+ - https://developers.openai.com/cookbook/examples/skills_in_api
92
+ - https://docs.github.com/en/copilot/tutorials/customize-code-review
93
+ - https://cursor.com/docs/context/rules
@@ -388,6 +388,10 @@ profile: application
388
388
  - **`profile: framework`** - Rules for contributing to Cratis framework repos
389
389
  - **No profile tag** - Universal rules that apply to both profiles
390
390
 
391
+ [authoring-skills.md](./authoring-skills.instructions.md) is universal but path-scoped to corpus
392
+ skills, rules, agents and prompts. Harnesses without path-rule loading discover it
393
+ through `general.md`'s Where to Look table; its body is needed only for authoring work.
394
+
391
395
  ## Finding Profile Information
392
396
 
393
397
  - **Full catalog:** [profile-catalog.json](../../../profile-catalog.json)
@@ -5,12 +5,10 @@ description: Review one skill for clarity, trigger quality, and maintainability.
5
5
 
6
6
  # Review Skill
7
7
 
8
- Review a specific skill folder under `.cratis/ai/skills/` for:
8
+ Read [authoring-skills.md](../rules/authoring-skills.md), then apply its section 10
9
+ checklist to the requested skill folder under `.cratis/ai/skills/`. Check routing
10
+ against neighboring skills and workflow correctness against the owning product.
9
11
 
10
- - trigger quality in the description
11
- - correctness of workflow steps
12
- - overlap with existing skills
13
- - missing references or checklists
14
- - opportunities to split large files
15
-
16
- Return findings first, then proposed edits.
12
+ Report blocking findings separately from suggestions, with the file and concrete
13
+ consequence. Name any evaluation runs or verification not performed. Return findings
14
+ first, then proposed edits; do not edit during the review.
@@ -0,0 +1,92 @@
1
+ ---
2
+ applyTo: ".cratis/ai/skills/**,.cratis/ai/rules/**,.cratis/ai/agents/**,.cratis/ai/prompts/**"
3
+ paths:
4
+ - ".cratis/ai/skills/**"
5
+ - ".cratis/ai/rules/**"
6
+ - ".cratis/ai/agents/**"
7
+ - ".cratis/ai/prompts/**"
8
+ ---
9
+
10
+ <!-- Copyright (c) Cratis. All rights reserved. -->
11
+ <!-- Licensed under the MIT license. See LICENSE file in the project root for full license information. -->
12
+
13
+ # Authoring skills and instructions
14
+
15
+ ## 1. What a skill is
16
+
17
+ Trigger (when to use / when not) · the how (steps, patterns, one minimal correct example each) · choosing (use X when…, not Y) · pitfalls (with the diagnostic code you'll see) · verification (command + what a pass looks like). Timeless: describe current behavior without saying it is current.
18
+
19
+ A code-breaking prerequisite belongs in one `Requires` line with the version-check command and the fallback. This is a compatibility gate, not a release history. Use American English in authored text.
20
+
21
+ ## 2. Frontmatter and routing
22
+
23
+ Use portable fields: `name`, `description`, `license`, `compatibility`, `metadata`, `allowed-tools`. Keep extension metadata under `metadata` so other harnesses can load the skill.
24
+
25
+ - Match `name` to the directory: 1–64 lowercase letters, digits and single hyphens; no edge hyphen or reserved `anthropic`/`claude` words. These constraints keep discovery portable.
26
+ - Lead the description with what the skill does, then `Use when…` and `Not for…` (name the sibling to use). Include concrete words from the user's request so the router can distinguish neighbors.
27
+ - Use neutral imperative or third-person phrasing, not `I`/`you`/`your`; descriptions enter instruction context, where shifting voice obscures who acts. Quoted command text and inline code are not the author's voice.
28
+ - Aim below 700 characters, within the hard 1–1024 limit. No tag-like text, versions or research-process vocabulary: the listing is for routing, not evidence.
29
+
30
+ An explicit trigger clause (`Use when`, `Load when`, `Read when` or an equivalent) and neutral voice are required even with `SKILL_AUTHORING_MODE=warn`. Negative routing and meta-language findings follow that switch; the 700-character target is guidance, not a gate.
31
+
32
+ ## 3. Budget and progressive disclosure
33
+
34
+ Target at most 400 body lines and 16,000 characters; the hard limits remain 500 lines and 20,000 characters. A warning starts at 18,000 characters to leave editing and compaction headroom; characters only approximate tokens.
35
+
36
+ Keep decision rules, the core workflow and pre-action traps in `SKILL.md`. Move conditional detail to `references/`, with a direct `Read references/x.md when…` pointer for every file, including assets and scripts. `LICENSE`, `NOTICE` and `verification.json` are exempt as licensing/verifier metadata; existing reasoned asset exceptions fail when stale. Direct pointers prevent partial nested reads from hiding required context. References over 100 lines open with generated `## Contents`; a single fenced example with an early introduction is exempt because it has no sections to navigate. Use forward-slash paths for portability.
37
+
38
+ ## 4. Timeless text
39
+
40
+ Describe behavior, syntax and diagnostics without dates or relative-time claims. Remove release/probe results, issue/PR/decision numbers, source-line citations, commit hashes, bundled versions and research-only pages; these age without helping the next task. No provenance, contradictions or release-baseline pages, nor verified-source headings in skills. Preserve a diagnostic's identifier, not the investigation history.
41
+
42
+ Keep pins in `product-sync.json` and compatibility documentation under `Documentation/`, not repeated prose. Track product-documentation conflicts in the product's issues. A minimum-construct table is useful only when it is short and contains actual code-breaking prerequisites.
43
+
44
+ ## 5. Instruction style
45
+
46
+ Give one default and the condition for choosing an alternative, rather than an equal-options menu. Put the reason beside an absolute so the agent can recognize its boundary; volume and ALL-CAPS add no evidence. Prefer concrete, checkable directions over vague quality requests. Use the terms in [glossary.md](./glossary.md); define an unfamiliar term on first use to avoid competing meanings. Show one minimal correct example per pattern and an exact verification command with the observable pass condition.
47
+
48
+ ## 6. One source of truth
49
+
50
+ Link the owning rule instead of copying it into skills, agents or prompts; copies diverge on the next edit. A pointer may state when to read that rule, but does not redefine it. Resolve contradictions at their source rather than relying on a harness's precedence behavior.
51
+
52
+ ## 7. MCP tools
53
+
54
+ Name the server once, then its protocol tool: for example, the `screenplay` MCP server's `propose-ast` tool. Resolve the harness-native invocation name from the connected client's tool listing instead of assuming one naming scheme works in every harness. For servers the corpus does not register, resolve the user's configured alias; a fixed prefix can address the wrong server.
55
+
56
+ ## 8. Deterministic scripts
57
+
58
+ Put repeatable mechanical operations in `scripts/` when a script can eliminate repeated reasoning. Say explicitly to execute it (or, when needed, read it as reference), with prerequisites, inputs, errors and the pass signal. Handle known errors in the script and preserve the command's exit status; apparent success after an unperformed check is not verification. Keep judgment in prose.
59
+
60
+ ## 9. Evaluations
61
+
62
+ Give new skills both trigger and output evaluation inputs. Existing unevaluated skills are a shrinking baseline, not permission to exempt new ones. Each evaluation set has 16–20 unique trigger queries: 8–10 positive (`shouldTrigger: true`) and 8–10 negative (`shouldTrigger: false`), plus 3–5 output tasks with 3–5 nonempty assertions each. Make negatives tricky near-misses and name the sibling that should win in their notes; that note quality is review guidance, not a shape check. Compare with-skill outputs to a without-skill baseline to show what the instructions improve.
63
+
64
+ When changing a description, run trigger evaluations before and after when authorized to spend model usage. Keep results untracked in `.ai-work/skill-evaluations/` and summarize them for reviewers, not in the skill. CI validates inputs without calling models; missing model runs remain explicitly unverified.
65
+
66
+ ## 10. Review checklist
67
+
68
+ - What, when, when-not and sibling routing are explicit; voice is neutral and routing text has no meta/history claims.
69
+ - Body has headroom; every reference, asset and script is directly named; long references have Contents.
70
+ - Text is timeless; no research-only pages or verified-source headings remain.
71
+ - Defaults, escape conditions, adjacent reasons, glossary terms and correct examples are clear.
72
+ - Rules are linked, not duplicated; MCP server and native naming are resolved.
73
+ - Mechanical steps use scripts where warranted; verification names the command and pass condition.
74
+ - Evaluation inputs cover positive and near-miss routing and baseline output behavior; report any runs not performed.
75
+ - Always-on content meets the budget below. Apply the same timelessness and clarity review to rules, agents and prompts.
76
+
77
+ ## 11. Always-on content
78
+
79
+ Keep `general.md` to facts needed in every session, at most 200 lines. Warn above 24,000 bytes and above 60,000 combined bytes for rules without `paths`; line length alone can hide context bloat. Review globally applied Copilot instructions above 4,000 characters. These budgets leave room for source and task context, rather than promising a token count.
80
+
81
+ Use path-scoped rules for file-specific invariants and skills for particular operations. Hooks and CI enforce mechanical constraints; natural-language rules do not replace permission controls.
82
+
83
+ ## Sources
84
+
85
+ - https://agentskills.io/specification
86
+ - https://platform.claude.com/docs/en/agents-and-tools/agent-skills/best-practices
87
+ - https://github.com/anthropics/skills/blob/main/skills/skill-creator/SKILL.md
88
+ - https://code.claude.com/docs/en/memory
89
+ - https://learn.chatgpt.com/docs/agent-configuration/agents-md
90
+ - https://developers.openai.com/cookbook/examples/skills_in_api
91
+ - https://docs.github.com/en/copilot/tutorials/customize-code-review
92
+ - https://cursor.com/docs/context/rules
@@ -157,6 +157,7 @@ A claim is only as good as the signal behind it — a build result, a test run,
157
157
  | Reviewing or explaining a `.play` model | the **cratis-screenplay-model-review** skill |
158
158
  | Turning an existing system into a model | the **cratis-screenplay-legacy-extraction** skill |
159
159
  | Rendering or gap-filling an accepted model | the **cratis-screenplay-render-and-gap-fill** skill, then **cratis-stage-rendering-and-sandbox** for renderer facts |
160
+ | Authoring or reviewing skills, rules, agents or prompts | `authoring-skills.md` |
160
161
  | Step-by-step recipes | `.cratis/ai/skills/` |
161
162
 
162
163
  ## Source-of-Truth Discipline
@@ -387,6 +387,10 @@ profile: application
387
387
  - **`profile: framework`** - Rules for contributing to Cratis framework repos
388
388
  - **No profile tag** - Universal rules that apply to both profiles
389
389
 
390
+ [authoring-skills.md](./authoring-skills.md) is universal but path-scoped to corpus
391
+ skills, rules, agents and prompts. Harnesses without path-rule loading discover it
392
+ through `general.md`'s Where to Look table; its body is needed only for authoring work.
393
+
390
394
  ## Finding Profile Information
391
395
 
392
396
  - **Full catalog:** [profile-catalog.json](../profile-catalog.json)
@@ -135,7 +135,7 @@ Cratis Components mount inside `CratisComponentsProvider`, so a specification
135
135
  that renders one for real must provide it (enable `toaster` only when asserting
136
136
  toasts). In jsdom, provide a `ResizeObserver` stub for any Components area that
137
137
  observes size, including observable tables, Filter and toolbars. Source-checked
138
- at Components v4.26.4 (`Source/**`); this is not a split-pane-only requirement.
138
+ in Components (`Source/**`); this is not a split-pane-only requirement.
139
139
 
140
140
  ## Async and time
141
141
 
@@ -35,17 +35,16 @@ other infrastructure. Change behaviour in the model first, never in managed outp
35
35
  the intended event store and event sequence, and that a trigger event delivered there reaches
36
36
  it. Report this apart from the in-process specifications.
37
37
 
38
- ## Verified product sources
38
+ ## Product facts
39
39
 
40
- This skill is a method: it names no API of its own. Product facts it relies on are pinned
41
- to these tags; when the Screenplay skills are installed their `SKILL.md`
40
+ This skill is a method: it names no API of its own. When the Screenplay skills are installed their `SKILL.md`
42
41
  (in `cratis-screenplay-toolchain`) explains how to read the installed tool versions.
43
42
 
44
43
  | Fact used here | Source |
45
44
  | --- | --- |
46
- | Where each rule lives (validator, `Provide()`, handler result, constraint, exception) | `rules/vertical-slices.md` "The decision matrix" (Arc `v22.50.5` behaviour verified there) |
47
- | A customization never makes a rejected model renderable; managed output is never hand-edited | Stage `v4.24.0` (`Customizations/` is the unmanaged seam; managed output is regenerated) |
48
- | A command `handler` never binds (PLAY0268), so that slice is gap-fill with the model as contract | Screenplay `v4.66.0` (diagnostic PLAY0268) |
45
+ | Where each rule lives (validator, `Provide()`, handler result, constraint, exception) | `rules/vertical-slices.md` "The decision matrix" |
46
+ | A customization never makes a rejected model renderable; managed output is never hand-edited | Stage (`Customizations/` is the unmanaged seam; managed output is regenerated) |
47
+ | A command `handler` never binds (PLAY0268), so that slice is gap-fill with the model as contract | Screenplay (diagnostic PLAY0268) |
49
48
 
50
49
  ## Procedure
51
50
 
@@ -116,10 +115,12 @@ Change the code, or return an edit request. Do not touch test files outside the
116
115
  told to.
117
116
 
118
117
  Where the model is a `.play` and the code is Arc, Marten or Critter Stack, `cratis screenplay
119
- conform <model-root> --project <path>` (CLI 3.42.0 or later; exit 0/1/2) adds structural drift
118
+ conform <model-root> --project <path>` (exit 0/1/2) adds structural drift
120
119
  evidence: exact-address comparison of recovered declarations, never behavior or equivalence. It
121
120
  runs MSBuild on the project (trusted clone only). It supplements, and never replaces, steps 2 to 4.
122
121
 
122
+ Requires cratis CLI 3.42.0 or later (`cratis --version`) for `cratis screenplay conform`.
123
+
123
124
  ### 5. Delta delivery
124
125
  After a model or outline change, the work list is every element and specification that
125
126
  changed since the last delivery, including a delivery of only added specifications. Then run
@@ -123,4 +123,4 @@ the form a closing review uses; every item must hold, and the one that does not
123
123
  - [ ] Every contracted specification maps to an executed specification or specification family
124
124
  - [ ] No business rule, default, filter or constraint exists in code that the contract (its documentation or specifications) does not state
125
125
  - [ ] No field name was assumed or guessed: a name that is not in the contract is not in the code
126
- - [ ] Where the contract has a specification family for the lifecycle of one view or one command, each step maps to a specification (no storyline syntax at Screenplay 4.139.0)
126
+ - [ ] Where the contract has a specification family for the lifecycle of one view or one command, each step maps to a specification (no storyline syntax)
@@ -15,9 +15,9 @@ by Martin Dilger and Nebulit GmbH (https://nebulit.de), used with the explicit c
15
15
  | `.claude/skills/build-state-change/SKILL.md`: final verification checklist (commands, events, specifications, nothing invented) | `references/checklists.md` "State Change"; `SKILL.md` steps 2-3 and "Gate" | Adapted closely; slice.json becomes the `.play` slice or agreed outline, emmett types become Arc commands and Chronicle events; the six checks are kept as the closing "Final verification" tick-list in `references/checklists.md`. Not adopted: the Emmett decide/evolve structure, `routes.ts` and the state complexity guide |
16
16
  | `.claude/skills/build-state-view/SKILL.md`: final checklist (every field has a source, subscribed events equal modeled events, no extra columns, one test per specification) | `references/checklists.md` "State View" | Adapted closely; migration, `canHandle` and Knex items translated to read-model properties, projection sources and storage mapping; Knex connection items not adopted (Emmett specific) |
17
17
  | `.claude/skills/build-automation/SKILL.md`: checklist (every processor implemented, command fields map only from the trigger, no invented conditions, idempotency specified, no routes, processor registered in startup and event store bootstrap verified) | `references/checklists.md` "Automation and Translation" including "Real startup participation" | Adapted closely; processor/DLQ items translated to the Chronicle reactor and its failure behavior; startup registration translated to discovery, event store and event sequence checks; `start()`/`stop()`, processor-id and `schema.migrate()` not adopted (Emmett specific) |
18
- | `.build-kit/lib/backend-prompt.md`: one slice per iteration, planned can be only added specifications, the slice is always true, done criteria, escalating ambiguity, progress report, consolidated patterns, learnings filter | `references/build-prompts.md` sections 3-5; `SKILL.md` steps 4-6 and "Gate" | Restored from #493 and adapted closely; `index.json`, `progress.txt`, board status, `<promise>` sentinels, per-step progress appends, commit and merge steps, and the slice-only done gate not adopted (replaced by the result packet, the completion gate and separate git authorization) |
18
+ | `.build-kit/lib/backend-prompt.md`: one slice per iteration, planned can be only added specifications, the slice is always true, done criteria, escalating ambiguity, progress report, consolidated patterns, learnings filter | `references/build-prompts.md` sections 3-5; `SKILL.md` steps 4-6 and "Gate" | Adapted closely; `index.json`, `progress.txt`, board status, `<promise>` sentinels, per-step progress appends, commit and merge steps, and the slice-only done gate not adopted (replaced by the result packet, the completion gate and separate git authorization) |
19
19
  | `.build-kit/lib/prompt.md` and `.build-kit/lib/AGENT.md`: task loop, claim conflict as a concurrency guard, progress format, learnings file | `references/build-prompts.md` sections 3-5 | Adapted closely; the claim becomes coordinator-assigned ownership (a record is not a lock), task queue and board events not adopted |
20
- | `.build-kit/CLAUDE.md`: strict path limitation, slice type determination, mandatory build flow, verify against the slice, no edits to test files, ignore case in names, session-start learnings | `references/build-prompts.md` sections 1-2; `SKILL.md` step 4 | Restored from #493 and adapted closely; the path limitation became owned paths with bounded reads of referenced contracts; TypeScript and `npm` specifics replaced by the repository's runner |
20
+ | `.build-kit/CLAUDE.md`: strict path limitation, slice type determination, mandatory build flow, verify against the slice, no edits to test files, ignore case in names, session-start learnings | `references/build-prompts.md` sections 1-2; `SKILL.md` step 4 | Adapted closely; the path limitation became owned paths with bounded reads of referenced contracts; TypeScript and `npm` specifics replaced by the repository's runner |
21
21
  | `.build-kit/AGENTS.md`: learnings that the repository pattern beats the template; a mapping-versus-notes conflict resolved in favor of notes | `references/contract-and-precedence.md`; `references/build-prompts.md` section 5 | Repository-pattern idea adapted; the notes-over-mapping rule is not adopted because executable parts beat prose here |
22
22
 
23
23
  No TrogonStack/agentskills text is used in this skill.
@@ -19,22 +19,19 @@ This skill decides **when to add a scenario** and **what to cover**. The C# mech
19
19
  (`Establish`/`Because`, substitutes, contexts) live in
20
20
  `cratis-specifications-csharp`.
21
21
 
22
- ## Verified product sources
22
+ ## Product packages
23
23
 
24
- | Package | Version | Purpose |
25
- | --- | --- | --- |
26
- | `Cratis.Arc.Testing` | `22.75.0` | `CommandScenario<TCommand>` and the `CommandResult` assertions |
27
- | `Cratis.Arc.Chronicle.Testing` | `22.75.0` | `Given`, `EventLog`, `AppendedEvents` and the appended-event assertions on a command scenario |
28
- | `Cratis.Chronicle.Testing` | `18.3.0` | `EventScenario`, `ReadModelScenario<T>`, `ReactorScenario<T>` |
29
- | `Cratis.Specifications.XUnit` | `4.x` | The `Specification` base and the `ShouldXxx` assertions |
24
+ | Package | Purpose |
25
+ | --- | --- |
26
+ | `Cratis.Arc.Testing` | `CommandScenario<TCommand>` and the `CommandResult` assertions |
27
+ | `Cratis.Arc.Chronicle.Testing` | `Given`, `EventLog`, `AppendedEvents` and the appended-event assertions on a command scenario |
28
+ | `Cratis.Chronicle.Testing` | `EventScenario`, `ReadModelScenario<T>`, `ReactorScenario<T>` |
29
+ | `Cratis.Specifications.XUnit` | The `Specification` base and the `ShouldXxx` assertions |
30
30
 
31
- > Arc command/query/decision scenario surface rechecked at v22.75.0. Arc depends
32
- > on Chronicle 19.39.1; later Chronicle reactor setup below has its own minimum
33
- > version and is not downgraded by this Arc verification.
31
+ Reactor read-model setup and the `EventContext.From` UTC default below need a newer Chronicle than
32
+ the Arc scenario surface itself; see `cratis-chronicle-reactor/references/specifications.md` for sources.
34
33
 
35
- Reactor read-model setup and the `EventContext.From` UTC default below are
36
- verified separately at **Chronicle 19.46.0**, the minimum version for that
37
- guidance; see `cratis-chronicle-reactor/references/specifications.md` for sources.
34
+ Requires Chronicle 19.46.0 or later for class-based reactor read-model seeding and the `EventContext.From` UTC default.
38
35
 
39
36
  `Cratis.Testing` is the meta-package that brings `Cratis.Arc.Testing` and
40
37
  `Cratis.Arc.Chronicle.Testing` together. Reverify against the owning product
@@ -146,7 +143,7 @@ keep a scenario for that wiring and for appended-event behavior.
146
143
  | Automation or Translation — a reactor | `ReactorScenario<TReactor>` | `cratis-specifications-csharp` |
147
144
  | A host, transport, or real-infrastructure boundary | Out-of-process integration | `cratis-specifications-csharp` |
148
145
 
149
- For a class-based reactor scenario on **Chronicle 19.46.0+**, explicitly seed
146
+ For a class-based reactor scenario, explicitly seed
150
147
  handler read-model parameters with `Given.ForEventSourceId(id).ReadModel(instance)`
151
148
  or declare intentional absence with `.NoReadModel<T>()`. An unseeded model throws
152
149
  `ReadModelNotSeededForReactorScenario` even if nullable; `Given` events do not
@@ -333,11 +330,10 @@ ideas recorded in `references/provenance.md`. Read `references/provenance.md` wh
333
330
  - **The command scenario reports success but nothing was appended.** The
334
331
  assertion is on `CommandResult` only; add a
335
332
  `ShouldHaveAppendedEvent<TCommand, TEvent>` fact.
336
- - **Injected-validator branches flip with test ordering.** This was observed in
337
- the 22.16-era harness. Arc 22.23.2 stopped replacing the process-wide provider;
338
- later releases isolated stores and event-source services per scenario. Reproduce
339
- at 22.75.0 before applying the old direct-validator/small `[Collection]`
340
- workaround; no current reproduction was verified here.
333
+ - **Injected-validator branches flip with test ordering.** An older harness replaced the process-wide provider; current
334
+ releases isolate stores and event-source services per scenario. Reproduce
335
+ before applying the old direct-validator/small `[Collection]`
336
+ workaround.
341
337
 
342
338
  ## How it is proven
343
339
 
@@ -1,6 +1,6 @@
1
1
  # Provenance
2
2
 
3
- Lineage of the #493 additions to `cratis-application-slice-specifications`. No TrogonStack material was adapted. Nebulit material is credited below.
3
+ Lineage of the additions to `cratis-application-slice-specifications`. No TrogonStack material was adapted. Nebulit material is credited below.
4
4
 
5
5
  ## Adapted closely (Martin Dilger and Nebulit GmbH)
6
6
 
@@ -3,7 +3,7 @@
3
3
  <!-- Copyright (c) Cratis. All rights reserved. -->
4
4
  <!-- Licensed under the MIT license. See LICENSE file in the project root for full license information. -->
5
5
 
6
- Verified at **Arc v22.75.0**. Use the plain `Specification` base for pure decisions;
6
+ Use the plain `Specification` base for pure decisions;
7
7
  these helpers add proof of framework composition, not HTTP transport.
8
8
 
9
9
  ## Query pipeline
@@ -16,10 +16,12 @@ conversion, validation, authorization and rendering. Use `QueryArguments` from
16
16
  under test with `ICurrentPrincipalAccessor` in `Services`. Scheme-selected queries
17
17
  fail closed in-process: HTTP authentication needs a hosted integration spec.
18
18
 
19
- At Arc 22.75.1+ (re-verified at 22.76.0), both query and command scenarios preserve
19
+ Both query and command scenarios preserve
20
20
  explicit `ICurrentPrincipalAccessor`, `ICurrentPrincipalOverride` and
21
21
  `IAuthorizationPolicyRuntime` registrations rather than replacing them with defaults.
22
22
  Configure them before first execution and specify both authorized and denied callers.
23
+
24
+ Requires Arc 22.75.1 or later for query and command scenarios to preserve explicit principal and authorization services.
23
25
  Source: `Source/DotNET/Testing/ScenarioServices.cs`, `Queries/QueryScenario.cs`,
24
26
  `Commands/CommandScenario.cs`.
25
27
 
@@ -67,7 +69,7 @@ boundaries explicit in either mode; decision mode is not a MongoDB substitute.
67
69
 
68
70
  ## Sources
69
71
 
70
- - [Query scenarios](https://github.com/Cratis/Arc/blob/v22.75.0/Documentation/backend/csharp/testing/query-scenario.md)
71
- - [Stream decisions and routed specs](https://github.com/Cratis/Arc/blob/v22.75.0/Documentation/backend/csharp/chronicle/commands/stream-decisions.md)
72
- - [Decision-mode extension](https://github.com/Cratis/Arc/blob/v22.75.0/Source/DotNET/Chronicle.Testing/Commands/CommandScenarioChronicleExtensions.cs)
73
- - [Admission assertion](https://github.com/Cratis/Arc/blob/v22.75.0/Source/DotNET/Chronicle.Testing/Commands/DecisionReadAdmissions.cs)
72
+ - [Query scenarios](https://github.com/Cratis/Arc/blob/main/Documentation/backend/csharp/testing/query-scenario.md)
73
+ - [Stream decisions and routed specs](https://github.com/Cratis/Arc/blob/main/Documentation/backend/csharp/chronicle/commands/stream-decisions.md)
74
+ - [Decision-mode extension](https://github.com/Cratis/Arc/blob/main/Source/DotNET/Chronicle.Testing/Commands/CommandScenarioChronicleExtensions.cs)
75
+ - [Admission assertion](https://github.com/Cratis/Arc/blob/main/Source/DotNET/Chronicle.Testing/Commands/DecisionReadAdmissions.cs)
@@ -13,18 +13,15 @@ told about them. Each has its own extension point.
13
13
 
14
14
  ## Verified product sources
15
15
 
16
- | Package | Version | Purpose |
17
- | --- | --- | --- |
18
- | `Cratis.Arc.Core` | `22.75.0` | `Cratis.Arc.Identity`, `Cratis.Arc.Authorization`, `Cratis.Arc.Authentication`, `Cratis.Arc.Tenancy` |
19
- | `Cratis.Arc` | `22.75.0` | ASP.NET Core hosting, `AddMicrosoftIdentityPlatformIdentityAuthentication` |
20
- | `@cratis/arc` | `22.75.0` | `IdentityProvider`, `IIdentity` |
21
- | `@cratis/arc.react` | `22.75.0` | `IdentityProvider` component, `useIdentity`, `RequireRole` |
22
- | Cratis AuthProxy (`cratis/authproxy`) | `v2.30.5` | the trusted ingress described in [AuthProxy](references/authproxy.md) |
23
-
24
- > Rechecked at Arc v22.75.0 against the source-pinned authentication, identity,
25
- > discovery and authorization references below. **Authorization behavior changed materially after `22.16.0`**, the version this skill used to pin: named policies, schemes, fallback baselines, guest policies and Microsoft-attribute enforcement all arrived later. [authorization](references/authorization.md) has a version table; check it if you run an older version.
16
+ | Package | Purpose |
17
+ | --- | --- |
18
+ | `Cratis.Arc.Core` | `Cratis.Arc.Identity`, `Cratis.Arc.Authorization`, `Cratis.Arc.Authentication`, `Cratis.Arc.Tenancy` |
19
+ | `Cratis.Arc` | ASP.NET Core hosting, `AddMicrosoftIdentityPlatformIdentityAuthentication` |
20
+ | `@cratis/arc` | `IdentityProvider`, `IIdentity` |
21
+ | `@cratis/arc.react` | `IdentityProvider` component, `useIdentity`, `RequireRole` |
22
+ | Cratis AuthProxy (`cratis/authproxy`) | the trusted ingress described in [AuthProxy](references/authproxy.md) |
26
23
 
27
- Reverify before claiming support for another version.
24
+ Authorization capabilities arrived over time: named policies, schemes, fallback baselines, guest policies and Microsoft-attribute enforcement all need a recent Arc. [authorization](references/authorization.md) lists the requirements; check them if you run an older version.
28
25
 
29
26
  ## Read this first: what is and is not trusted
30
27
 
@@ -45,7 +42,9 @@ is the trust boundary. But it means:
45
42
  the application itself to validate a token, that is ordinary ASP.NET Core
46
43
  authentication you configure yourself.
47
44
 
48
- At **Arc v22.75.0**, forwarded identity headers are ignored unless the host opts
45
+ Requires Arc 22.43.0 for secure forwarded-header handling. On an older Arc the unsigned identity headers are trusted from any caller who can reach the host; upgrade, or make the ingress the only path to the backend.
46
+
47
+ Forwarded identity headers are ignored unless the host opts
49
48
  in with `Cratis:Arc:TrustForwardedIdentityHeaders=true` or
50
49
  `builder.AddCratis(options => options.TrustForwardedIdentityHeaders = true)`.
51
50
  Header-only requests otherwise remain anonymous. `AddCratis()` still registers
@@ -53,7 +52,7 @@ the header scheme; it does not make the headers trusted. Opt in only behind the
53
52
  ingress above, otherwise configure a credential-validating scheme. The old
54
53
  `Introspection:TrustForwardedIdentityHeaders` setting is obsolete and enables the
55
54
  same host-wide flag. See [authentication](references/authentication.md).
56
- Source: [Arc v22.75.0 secure defaults](https://github.com/Cratis/Arc/blob/v22.75.0/Documentation/upgrading/secure-defaults.mdx).
55
+ Source: [secure defaults](https://github.com/Cratis/Arc/blob/main/Documentation/upgrading/secure-defaults.mdx).
57
56
 
58
57
  Cratis AuthProxy is the ingress that meets these obligations for Cratis applications. Read [AuthProxy](references/authproxy.md) when the application is deployed behind it (header contract, `/.cratis/me` fail-closed verification, tenant headers).
59
58
 
@@ -96,7 +95,9 @@ public class <Name>IdentityDetailsProvider : IProvideIdentityDetails<<Details>>
96
95
  | `GET /.cratis/tenants` | Development tooling — aggregates every `ICanProvideTenants` |
97
96
  | `GET /.cratis/commands`, `GET /.cratis/queries` | Introspection catalogs of operation names, types and routes (`MapIntrospectionEndpoints()`) |
98
97
 
99
- At **v22.75.0**, discovery is anonymous only when the host's
98
+ Requires Arc 22.45.0 for authenticated discovery by default. On an older Arc the discovery routes are anonymous in every environment, so do not expose such a host.
99
+
100
+ Discovery is anonymous only when the host's
100
101
  `IHostEnvironment.IsDevelopment()` is true. Elsewhere it requires authentication;
101
102
  if the host cannot authenticate callers, the routes are not mapped (404) and a
102
103
  warning is logged. `RequireAuthentication` unset selects that environment default;
@@ -108,7 +109,7 @@ removes users, tenants and the details schema. Setting both removes all discover
108
109
  without authentication checks; `/.cratis/me` remains. `[ExcludeFromDiscovery]`
109
110
  hides commands, read models, queries and controllers from catalogs/OpenAPI, **not
110
111
  from invocation or authorization**. These are .NET settings, not a JVM contract.
111
- Source: [secure defaults](https://github.com/Cratis/Arc/blob/v22.75.0/Documentation/upgrading/secure-defaults.mdx).
112
+ Source: [secure defaults](https://github.com/Cratis/Arc/blob/main/Documentation/upgrading/secure-defaults.mdx).
112
113
 
113
114
  `/.cratis/me` derives identity only from the authenticated request principal,
114
115
  never from `.cratis-identity`. The details provider runs for each authenticated
@@ -118,8 +119,8 @@ responses carry `Cache-Control: no-store, private` and `Vary: Cookie`.
118
119
  Stop reading the cookie; use `IdentityProvider.getCurrent()`/`refresh()` and
119
120
  `clearCache()` on logout. The frontend caches in memory, with a warned legacy
120
121
  cookie fallback **only after a 404**, never after 401/403.
121
- Sources: [IdentityProvider.cs](https://github.com/Cratis/Arc/blob/v22.75.0/Source/DotNET/Arc.Core/Identity/IdentityProvider.cs),
122
- [IdentityProvider.ts](https://github.com/Cratis/Arc/blob/v22.75.0/Source/JavaScript/Arc/identity/IdentityProvider.ts).
122
+ Sources: [IdentityProvider.cs](https://github.com/Cratis/Arc/blob/main/Source/DotNET/Arc.Core/Identity/IdentityProvider.cs),
123
+ [IdentityProvider.ts](https://github.com/Cratis/Arc/blob/main/Source/JavaScript/Arc/identity/IdentityProvider.ts).
123
124
 
124
125
  ## Authorization — what Arc evaluates
125
126
 
@@ -134,16 +135,9 @@ Arc's attributes live in `Cratis.Arc.Authorization`:
134
135
  There is **no** `[Policy]`, `[Scopes]` or `[Claims]` attribute anywhere in Arc.
135
136
  Arc's attributes are the portable choice: they are enforced on every Arc host.
136
137
 
137
- ⚠️ **Which version you run decides what is enforced.** Through `22.20.0` (this
138
- skill's old pin was `22.16.0`) only `Roles` is evaluated: `[Authorize(Policy = "…")]`
139
- and `AuthenticationSchemes` enforce nothing, and Microsoft's `[Authorize]` is **not**
140
- honored on model-bound commands and read models, so a command protected only by it
141
- is open. From `22.21.0` Microsoft's `[Authorize]`/`[AllowAnonymous]` are enforced on
142
- the ASP.NET Core host (never on the standalone Core host), and from `22.23.0` named
143
- policies and schemes are evaluated. The rest of this section is `22.75.0` behavior;
144
- see [authorization](references/authorization.md) for the version table.
138
+ Requires Arc 22.23.0 for named policies and schemes, and 22.21.0 for Microsoft's `[Authorize]`/`[AllowAnonymous]` enforcement (ASP.NET Core host only, never the standalone Core host). On an older Arc only `Roles` is evaluated: `[Authorize(Policy = "…")]` and `AuthenticationSchemes` enforce nothing, and a command protected only by Microsoft's `[Authorize]` is open. See [authorization](references/authorization.md) for the requirements.
145
139
 
146
- At `22.75.0`:
140
+ Current behavior:
147
141
 
148
142
  - **Named policies work.** `[Authorize(Policy = "…")]` requires the policy to
149
143
  succeed asynchronously. Implement
@@ -200,8 +194,8 @@ restrictive verdict wins, and a guard that throws, or cannot be constructed, fai
200
194
  closed — the latter denies every observable query in the process. The principal comes
201
195
  from `ObservableQueryEmissionContext.Principal`, never from ambient accessors or
202
196
  `IHttpContextAccessor`; the guard is constructed per emission, so keep it cheap and
203
- cache in a singleton. Since 22.69.1, guards and read-model interceptors also
204
- protect plain HTTP snapshots, waits and long polls. Read
197
+ cache in a singleton. Requires Arc 22.69.1 for guards and read-model interceptors to also
198
+ protect plain HTTP snapshots, waits and long polls; older versions leave them unguarded. Read
205
199
  [observable emission guards](references/observable-emission-guards.md) when implementing or reviewing revocation of an observable-query subscription.
206
200
 
207
201
  ### Validators are not an authorization boundary
@@ -307,7 +301,7 @@ carry that shortcut into a directly reachable deployed host.
307
301
  - Exactly one non-default `IProvideIdentityDetails` implementation exists, and it
308
302
  also implements `IProvideIdentityDetails<TDetails>`.
309
303
  - The Arc version in use enforces what the code declares: policies and Microsoft's
310
- attributes are not enforced before `22.23.0` and `22.21.0` respectively.
304
+ attributes need a recent Arc (see the authorization reference).
311
305
  - Every named policy is registered exactly once; a policy meant for guests has the
312
306
  explicit opt-in, and no declaration mixes a guest policy with roles or schemes.
313
307
  - A method-level `[AllowAnonymous]` or guest policy is intended to replace its
@@ -10,7 +10,7 @@
10
10
  - What is not here
11
11
  - The security boundary, stated plainly
12
12
 
13
- Verified against `Cratis.Arc.Core` and `Cratis.Arc` `22.75.0`. Types are in
13
+ Source: `Cratis.Arc.Core` and `Cratis.Arc`. Types are in
14
14
  `Cratis.Arc.Authentication` and `Cratis.Arc.Identity`.
15
15
 
16
16
  ## The contract
@@ -136,13 +136,13 @@ whose `SchemeName` is `"MicrosoftIdentityPlatform"`. `builder.AddCratis()` (the
136
136
  `Cratis` package) calls this for you and makes it the **default** authentication
137
137
  scheme; `AddCratisArc()` from `Cratis.Arc` does not register it.
138
138
 
139
- At **v22.75.0**, `AddCratis()` registers the scheme but forwarded headers do not
139
+ `AddCratis()` registers the scheme but forwarded headers do not
140
140
  authenticate anybody until `Cratis:Arc:TrustForwardedIdentityHeaders=true`.
141
141
  `AddMicrosoftIdentityPlatformIdentityAuthentication()` warns at startup without
142
142
  that opt-in; built-in handlers warn on the first header-bearing request.
143
143
  The three-argument `MicrosoftIDentityPlatformAuthHandler` constructor is obsolete;
144
144
  use the constructor receiving `IOptions<ArcOptions>`.
145
- Source: [secure defaults](https://github.com/Cratis/Arc/blob/v22.75.0/Documentation/upgrading/secure-defaults.mdx).
145
+ Source: [secure defaults](https://github.com/Cratis/Arc/blob/main/Documentation/upgrading/secure-defaults.mdx).
146
146
 
147
147
  ## Forwarded headers, ingress requirements and protected introspection
148
148
 
@@ -152,7 +152,7 @@ prevents direct access to the backend**. The same applies to any custom header
152
152
  such as `X-User-ID`. Adding a bearer validator does not make a separately accepted
153
153
  forwarded-header mechanism safe.
154
154
 
155
- Configure discovery through `Cratis:Arc:Introspection` at **v22.75.0**:
155
+ Configure discovery through `Cratis:Arc:Introspection`:
156
156
 
157
157
  | Option | Default | Effect |
158
158
  | --- | --- | --- |
@@ -179,9 +179,9 @@ On ASP.NET Core, a scheme's challenge may redirect instead of returning 401.
179
179
 
180
180
  `[ExcludeFromDiscovery]` suppresses catalogs/OpenAPI, not endpoint invocation;
181
181
  it is not authorization. These .NET options do not establish a JVM equivalent.
182
- Sources: [IntrospectionOptions.cs](https://github.com/Cratis/Arc/blob/v22.75.0/Source/DotNET/Arc.Core/Introspection/IntrospectionOptions.cs),
183
- [DiscoveryExposure.cs](https://github.com/Cratis/Arc/blob/v22.75.0/Source/DotNET/Arc.Core/Introspection/DiscoveryExposure.cs),
184
- [secure defaults](https://github.com/Cratis/Arc/blob/v22.75.0/Documentation/upgrading/secure-defaults.mdx).
182
+ Sources: [IntrospectionOptions.cs](https://github.com/Cratis/Arc/blob/main/Source/DotNET/Arc.Core/Introspection/IntrospectionOptions.cs),
183
+ [DiscoveryExposure.cs](https://github.com/Cratis/Arc/blob/main/Source/DotNET/Arc.Core/Introspection/DiscoveryExposure.cs),
184
+ [secure defaults](https://github.com/Cratis/Arc/blob/main/Documentation/upgrading/secure-defaults.mdx).
185
185
 
186
186
  ## What is not here
187
187