@cratis/pi 7.52.0 → 7.53.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.
@@ -66,6 +66,7 @@ The project's voice is **direct, practical, and opinionated**. Write like an exp
66
66
  - Prefer `record` types for events, commands, and read models — match the codebase.
67
67
  - Use argument-free `[EventType]` for new events. A new generation or an explicit legacy identifier is valid only when documenting evolution of an existing stored-event contract.
68
68
  - A standalone example must be **complete and correct** at its stated scope. Mark a partial excerpt as an excerpt, state its prerequisites, and never leave an essential step behind `// ...`. Do not offer an incomplete block as click-to-copy code.
69
+ - **State version requirements, not the test log.** Say which release a feature needs and pin what the reader runs. Do not end a page with how and when you verified it (SDK build, image digest or SHA, date, "tested with", which samples were not run); that belongs in the change summary. See **cratis-technical-examples**.
69
70
  - **Short illustrative snippets** may be purpose-built after checking their framework APIs against source. Derive substantial or runnable examples from compiled, tested sample or spec code; extract or check displayed snippets with the owning repository's tooling so they do not drift. Never substitute a bare “see the repository” link for showing the code.
70
71
  - Where a feature spans products or languages, show both sides when both matter. Keep causal explanations sequential; use tabs only for alternatives.
71
72
 
@@ -65,6 +65,7 @@ The project's voice is **direct, practical, and opinionated**. Write like an exp
65
65
  - Prefer `record` types for events, commands, and read models — match the codebase.
66
66
  - Use argument-free `[EventType]` for new events. A new generation or an explicit legacy identifier is valid only when documenting evolution of an existing stored-event contract.
67
67
  - A standalone example must be **complete and correct** at its stated scope. Mark a partial excerpt as an excerpt, state its prerequisites, and never leave an essential step behind `// ...`. Do not offer an incomplete block as click-to-copy code.
68
+ - **State version requirements, not the test log.** Say which release a feature needs and pin what the reader runs. Do not end a page with how and when you verified it (SDK build, image digest or SHA, date, "tested with", which samples were not run); that belongs in the change summary. See **cratis-technical-examples**.
68
69
  - **Short illustrative snippets** may be purpose-built after checking their framework APIs against source. Derive substantial or runnable examples from compiled, tested sample or spec code; extract or check displayed snippets with the owning repository's tooling so they do not drift. Never substitute a bare “see the repository” link for showing the code.
69
70
  - Where a feature spans products or languages, show both sides when both matter. Keep causal explanations sequential; use tabs only for alternatives.
70
71
 
@@ -76,7 +76,7 @@ cratis screenplay generate <solution|project|folder> \
76
76
  ## Coverage (what a provider reads)
77
77
  | Provider | Reads | Does not read |
78
78
  |---|---|---|
79
- | Arc | commands, events, concepts, read models, projections, reducers, reactors, constraints, declarative FluentValidation rules, authorization policies, `produces` from constants and input paths, Chronicle integration specs as given/when/then, `.tsx` beside a slice as `screen`: `file`, `data … via query`, `title`, `table`/`column`, `action` and `toolbar actions`, read from Cratis Components only, plus `navigate to` from literal react-router gestures (see Navigation below) | handler bodies, rules written in code, computed messages (`SP0016`), screen `section`, `summary` and `layout`, other navigation (unread properties are `SP0028`; same-screen details, `useDialog` and enablement are `SP0077`), captures, personas, seeds, `secret` on older Arc (see Compliance recovery). A rule held to `When`/`Unless` is written down as if unconditional and `SP0016` names the condition: read the diagnostic, do not trust the declaration |
79
+ | Arc | commands, events, concepts, read models, projections, reducers, reactors, constraints, declarative FluentValidation rules, authorization policies, `produces` from constants and input paths, Chronicle integration specs as given/when/then (with `then denied` from a proven `ShouldNotBeAuthorized()`; see below), `.tsx` beside a slice as `screen`: `file`, `data … via query`, `title`, `table`/`column`, `action` and `toolbar actions`, read from Cratis Components only, plus `navigate to` from literal react-router gestures (see Navigation below) | handler bodies, rules written in code, computed messages (`SP0016`), screen `section`, `summary` and `layout`, other navigation (unread properties are `SP0028`; same-screen details, `useDialog` and enablement are `SP0077`), captures, personas, seeds, `secret` on older Arc (see Compliance recovery). A rule held to `When`/`Unless` is written down as if unconditional and `SP0016` names the condition: read the diagnostic, do not trust the declaration |
80
80
  | Marten / Critter Stack (preview; an independent optional adapter built on the neutral Screenplay.Generation SDK, not affiliated with JasperFx: review every `GEN`/`MARTEN`/`WOLVERINE` diagnostic by hand) | aggregates, snapshots, HTTP and message handlers, document operations, queries, outgoing and delayed messages, saga facts | saga lifecycle, policies, middleware bodies, runtime tenancy, upcasting; unbounded extension code is reported by presence only |
81
81
  | any non-.NET stack | nothing | use Prologue and targeted reads |
82
82
 
@@ -95,6 +95,12 @@ The Arc provider reads route tables from TSX files that import `Route`, `Routes`
95
95
 
96
96
  Requires Arc.Screenplay 22.96.0 or later for navigation from route tables; older releases write no `navigate to` and report an unread success callback as `SP0028`.
97
97
 
98
+ ### Denial specifications
99
+
100
+ An unconditional `result.ShouldNotBeAuthorized()` on a scenario's command result becomes `then denied` only when the command has an emitted `authorize` gate with exactly recovered roles or policies (or the standard authentication-only gate), the scenario has an exactly recovered `given caller`, the generator's reference-runner probe denies that caller, and no other outcome is asserted (`ShouldNotBeSuccessful()` may accompany it). No `then no events` is written beside it. Otherwise the scenario is withheld and `SP0039` names why: caller or policy not recovered exactly, the caller satisfies the authorization, the denial cannot be decided from the caller, denial combined with another outcome, no stated policy explains it, or the command's own code can return a denial.
101
+
102
+ Requires Arc.Screenplay 22.98.0 or later for `then denied`; older releases withhold every denial specification with `SP0039`.
103
+
98
104
  ## Diagnostics are the loss list
99
105
  - Families: `SP####` (Arc), `MARTEN####`, `WOLVERINE####`, `VOG####`, `GEN####`,
100
106
  `DOTNETSP####` (placement), `CLI####` (host). Each one is an evidence row or a loss-report
@@ -75,6 +75,28 @@ language tabs. Never hand-edit a generated proxy or a synchronized docs copy.
75
75
  6. Record the source revision and verification scope in the change summary,
76
76
  not as a permanent receipt embedded in the page.
77
77
 
78
+ ## Version constraints belong in the page; the test log does not
79
+
80
+ A reader needs the versions that change what they install or write. Published
81
+ prose can say that a feature needs a minimum release ("Variants need Chronicle
82
+ 19.1.0 or later"), pin packages and images in the commands a reader runs, and
83
+ name the one release where behavior changed.
84
+
85
+ Keep the author's verification record out of the page. Exact SDK builds, image
86
+ digests or commit SHAs recorded for provenance, the date it was run, "tested
87
+ with X on Y", "also checked against a development server", counts of passing
88
+ specifications and a list of which tabs were not run are all a log of what
89
+ the author did. A reader cannot act on them, they are stale by the next
90
+ release, and a page that ends in an audit trail reads as generated, not
91
+ written. Put them in the change summary, the pull request comment or
92
+ `.ai-work/`, per the step above.
93
+
94
+ Test each version sentence: would a reader install or write something
95
+ different because of it? If not, remove it. A real limitation stays, stated as
96
+ a fact about the product ("the Kotlin client has no equivalent yet"), not as a
97
+ record of what was and was not run. A digest in a command the reader runs is
98
+ part of the command, not a note, and stays.
99
+
78
100
  ## Know what the owning gate actually checks
79
101
 
80
102
  Look for a snippet validator before designing another checker. Arc and
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cratis/pi",
3
- "version": "7.52.0",
3
+ "version": "7.53.0",
4
4
  "description": "Configuration-aware Cratis AI integration for Pi",
5
5
  "type": "module",
6
6
  "files": [