@cratis/pi 7.39.0 → 7.40.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 (60) hide show
  1. package/package/corpus/product-sync.json +8 -8
  2. package/package/corpus/skills/cratis-chronicle-reactor/SKILL.md +2 -2
  3. package/package/corpus/skills/cratis-screenplay-automations-and-translations/SKILL.md +3 -1
  4. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/audit-format.md +1 -1
  5. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/public-events-and-direction.md +1 -1
  6. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/realization-and-gap-fill.md +12 -7
  7. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/todo-list-example.md +3 -1
  8. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/SKILL.md +5 -4
  9. package/package/corpus/skills/cratis-screenplay-command-surface/references/compliance.md +12 -2
  10. package/package/corpus/skills/cratis-screenplay-command-surface/references/enum-numbers.md +9 -8
  11. package/package/corpus/skills/cratis-screenplay-command-surface/references/generated-values-and-responses.md +10 -6
  12. package/package/corpus/skills/cratis-screenplay-command-surface/verification.json +2 -2
  13. package/package/corpus/skills/cratis-screenplay-event-modeling/SKILL.md +13 -13
  14. package/package/corpus/skills/cratis-screenplay-event-modeling/references/nine-steps.md +2 -2
  15. package/package/corpus/skills/cratis-screenplay-event-modeling/references/parsed-not-runnable.md +4 -4
  16. package/package/corpus/skills/cratis-screenplay-model-authoring/SKILL.md +1 -1
  17. package/package/corpus/skills/cratis-screenplay-model-authoring/references/language-reference.md +3 -3
  18. package/package/corpus/skills/cratis-screenplay-model-review/references/anti-patterns.md +1 -1
  19. package/package/corpus/skills/cratis-screenplay-model-review/references/checklist.md +1 -1
  20. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/SKILL.md +2 -2
  21. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/phases.md +1 -1
  22. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/vocabulary-map.md +5 -3
  23. package/package/corpus/skills/cratis-screenplay-read-surface/references/equality-filters.md +8 -11
  24. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/SKILL.md +20 -16
  25. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/delivery-protocol.md +1 -1
  26. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/gap-fill-handoff.md +4 -3
  27. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/renderability-gate.md +8 -8
  28. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/verification.json +2 -2
  29. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/spec-forms-by-mode.md +4 -4
  30. package/package/corpus/skills/cratis-screenplay-slice-design/references/field-lineage.md +1 -1
  31. package/package/corpus/skills/cratis-screenplay-specifications/references/generated-fixtures.md +3 -3
  32. package/package/corpus/skills/cratis-screenplay-specifications/references/reactions-and-cascades.md +5 -4
  33. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +3 -3
  34. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/boundaries.md +2 -1
  35. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution.md +2 -2
  36. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/verification.json +1 -1
  37. package/package/corpus/skills/cratis-screenplay-toolchain/SKILL.md +12 -11
  38. package/package/corpus/skills/cratis-screenplay-toolchain/references/cheat-sheet-example.md +2 -3
  39. package/package/corpus/skills/cratis-screenplay-toolchain/references/cheat-sheet.md +1 -1
  40. package/package/corpus/skills/cratis-screenplay-toolchain/references/diagnostics.md +3 -3
  41. package/package/corpus/skills/cratis-screenplay-toolchain/references/doc-contradictions.md +2 -2
  42. package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-subset.md +18 -18
  43. package/package/corpus/skills/cratis-screenplay-toolchain/references/production-routes-and-filters.md +1 -1
  44. package/package/corpus/skills/cratis-screenplay-toolchain/references/provenance.md +1 -1
  45. package/package/corpus/skills/cratis-screenplay-toolchain/references/renderable-subset.md +33 -30
  46. package/package/corpus/skills/cratis-screenplay-toolchain/references/sources-and-streams.md +3 -2
  47. package/package/corpus/skills/cratis-screenplay-toolchain/references/traps.md +2 -2
  48. package/package/corpus/skills/cratis-screenplay-toolchain/references/verdicts.md +3 -3
  49. package/package/corpus/skills/cratis-screenplay-toolchain/references/versions.md +35 -39
  50. package/package/corpus/skills/cratis-screenplay-toolchain/verification.json +7 -2
  51. package/package/corpus/skills/cratis-screenplay-ui-composition/SKILL.md +6 -7
  52. package/package/corpus/skills/cratis-screenplay-ui-composition/references/screen-composition-contract.md +4 -3
  53. package/package/corpus/skills/cratis-screenplay-ui-composition/references/worked-flow.md +3 -2
  54. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/SKILL.md +32 -32
  55. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/admission.md +57 -25
  56. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/rendered-application.md +17 -20
  57. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/sandbox-and-specrunner.md +18 -14
  58. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/scene-runtime.md +4 -3
  59. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/verification.json +2 -2
  60. package/package.json +1 -1
@@ -2,6 +2,7 @@
2
2
 
3
3
  ## Contents
4
4
 
5
+ - Event-reaction boundary at Stage 4.83.0
5
6
  - Diagnostic codes
6
7
  - Projections
7
8
  - Pure reducer bodies
@@ -11,21 +12,25 @@
11
12
  - Historical Stage 4.24 admission
12
13
 
13
14
  Current pins: `cratis-screenplay-toolchain/references/versions.md`. The current statements here
14
- were read at Stage `v4.73.1` (`Documentation/guides/build-renderer-target.md`,
15
- `SemanticVersionFeatures.cs`, `SemanticCratisAdmission*.cs`) and cli `v3.53.1`; the rows and
15
+ were read at Stage `v4.83.0` (`Documentation/guides/build-renderer-target.md:306-347`,
16
+ `Source/Rendering.Cratis/Semantics/SemanticVersionFeatures.cs:100,287-399`,
17
+ `SemanticVersionFeatureAdmission.cs:25-45`, `SemanticCratisAdmission*.cs`) and cli
18
+ `v3.56.0` (`Directory.Packages.props:8-10`,
19
+ `Source/Cli/Commands/Render/RenderedSemanticVersions.cs:33-47`); the rows and
16
20
  sections marked *historical* or naming Stage 4.24 or cratis 3.27/3.28 are earlier probes kept as
17
- history. Stage 4.73.1 admits ESM v1 to v10 by version, and the CLI 3.53.1 bundle (Screenplay
18
- 4.137.0) binds through v10 for rendering.
19
- The pinned CLI admits through ESM v10 to construct planning; a bound newer model
20
- gets CLI-RENDER-004. Standalone Stage 4.75.0 admits ESM v11 and Stage 4.76.0 admits v1 to v12
21
- (read at `v4.76.0`), but no cli release bundles Stage 4.74 to 4.76 yet: a cli user still gets the
22
- Stage 4.73.1 behavior in this file until a cli bundles Stage 4.76.0 or later. Binding with the bundled compiler is a separate prerequisite.
21
+ history. Stage 4.83.0 and CLI 3.56.0 admit ESM v1 to v13 to construct planning.
22
+ The bundled Screenplay 4.145.1 binds v14 collection filters, but rendering refuses
23
+ v14 with CLI-RENDER-004 (direct Stage: STAGE-ESM-016). Generated UUID-concept values,
24
+ scalar/named responses, explicit enum numbers and concept compliance now render.
25
+ Binding with the bundled compiler remains a separate prerequisite.
23
26
  The pinned Stage's `SemanticVersionFeatures`/`SemanticVersionFeatureAdmission` refuse
24
27
  public publication (STAGE-ESM-032), foreign events/events-source captures (033),
25
28
  reaction identity (034), reaction filters (035) and production overrides (036).
26
- Reducer filters render. ESM v8 routes have construct checks including refusal of
27
- route-bearing read-model/query replay scenarios (STAGE-ESM-030); admitted routes
28
- are not blanket scenario parity. Case tables and whole numbers as long apply to
29
+ Reducer filters render. ESM v8 routed read-model/query companion replay now renders, seeding source/stream
30
+ metadata through `ReadModelScenario`; reserved names and unformattable routed fixtures
31
+ remain STAGE-ESM-030. Source: Stage
32
+ `v4.83.0:Documentation/reference/event-source-routing.md:62-72`,
33
+ `Source/Rendering.Cratis/Semantics/SemanticCratisAdmission.cs:220-255`. Case tables and whole numbers as long apply to
29
34
  the default; see `case-tables-and-whole-numbers.md`. Previous CLI 3.46.1's Stage
30
35
  4.52.0 audited only through v7 and applied neither new rule. Current version
31
36
  checks are CLI `RenderedSemanticVersions.Newest` and Stage
@@ -33,7 +38,7 @@ checks are CLI `RenderedSemanticVersions.Newest` and Stage
33
38
  parser rejected `runs as` with PLAY0137; that is not a current parser refusal.
34
39
  The historical CLI 3.41.0 v7 canonical-corpus planning spec received
35
40
  STAGE-ESM-028/029 for generated values/responses.
36
- The detailed 4.24.x source/probe rows below are historical unless a row says 4.73.1; run
41
+ The detailed 4.24.x source/probe rows below are historical unless a row says 4.83.0; run
37
42
  admission on the actual bundled renderer.
38
43
 
39
44
  Read at Stage `v4.24.0`, re-read at `v4.24.1` and `v4.24.2` (`SemanticCratisAdmission.EventRevisions.cs`, `SemanticEventLineageAdmission.cs`, ESM v4 section of `Documentation/guides/build-renderer-target.md`) (`Source/Rendering.Cratis/Semantics/SemanticSurfaceLedger.cs`, `Documentation/guides/build-renderer-target.md`; 4.24.1 changed only the ledger, dependency pins and the Dockerfile) (`Source/Rendering.Cratis/CratisArtifactRenderPlanner.cs`,
@@ -60,44 +65,64 @@ the capability gap, and route that scope to authorized gap-fill or a fully hand-
60
65
  delivery (`cratis-screenplay-render-and-gap-fill`). Changing the requirement itself is the
61
66
  model owner's decision.
62
67
 
68
+ ## Event-reaction boundary at Stage 4.83.0
69
+
70
+ Source: Stage `v4.83.0:Documentation/reference/reaction-rendering.md:6-88`,
71
+ `Source/Rendering.Cratis/Semantics/SemanticCratisAdmission.Automation.cs:15-123`.
72
+ Supported event reactions emit stable-id `[Reactor]` classes with `[OnceOnly]`,
73
+ event guards, returned commands or explicit `EventForEventSourceId` envelopes.
74
+ Required invocation inputs must be mapped; unmapped optional inputs become null.
75
+ Conditions reject optional/composite/collection/enum operands; ordering is numeric.
76
+ Mappings retain exact types. Flat projection payload keys must match every producer's
77
+ append destination, including reactions outside the scope. Unsupported mappings use
78
+ `-039`, protected destinations `-040`, collisions `-012`, read surfaces `-007`/`-009`.
79
+
80
+ The semantic Host settles cascades in one guarded append, whereas generated reactors
81
+ are independent eventually consistent observers that can fail and retry after the
82
+ initiating commit. Rendering does not prove invocation authorization or deduplication.
83
+ `when append` specifications and command specifications that produce any subscribed
84
+ reaction event remain `STAGE-ESM-011`: generated `CommandScenario` does not settle
85
+ reactions. Keep these specifications; use gap-fill rather than deleting them.
86
+
63
87
  ## Diagnostic codes
64
88
 
65
89
  | Code | Meaning | Usual fix |
66
90
  | --- | --- | --- |
67
- | `STAGE-ESM-001` | Slice kind other than `StateChange` / `StateView` (Automation, Translate; Stage#79) | Gap-fill the automation; the model stays the contract |
91
+ | `STAGE-ESM-001` | Unsupported slice kind; `StateChange`, `StateView` and supported event-triggered `Automation` slices render at 4.83.0; Translate remains `-024` | Keep the model; gap-fill refused scope |
68
92
  | `STAGE-ESM-002`, `-003` | Concept values or validation Stage cannot express; unresolved property type | Simplify the concept; fix the type |
69
93
  | `STAGE-ESM-004` | A `StateChange` slice without exactly one command | One command per slice |
70
- | `STAGE-ESM-005` | Code validation or rule predicate bodies; or a command beyond the first capability (optional event property, event revision other than the first, validation or requirement that cannot be rendered, no `produces`) | Use declarative validation; non-initial event generations are not rendered |
94
+ | `STAGE-ESM-005` | Code validation or rule predicate bodies; or a command beyond the first capability (optional event property, event revision other than the first, validation or requirement that cannot be rendered, neither `produces` nor a response) | Use declarative validation; non-initial event generations are not rendered |
71
95
  | `STAGE-ESM-006` | `produces` that cannot render without changing its destination or mappings (`produces when`, literal or computed mappings, `for` not a command identifier, mappings not one-to-one with event properties, duplicate tags) | Map properties one to one; conditional outcomes (`produces when`) are a different behavior, so gap-fill unless the owner accepts splitting them into commands |
72
96
  | `STAGE-ESM-007`, `-008`, `-009` | Projection count per read model (exactly one projection or reducer each); unresolvable properties or no single read-model transition (**flat** projections only); affected instance not one, not keyed by an event property, or not the event-source identity (flat projections only) | One projection per read model; see "Projections" below |
73
- | `STAGE-ESM-010` | A query is neither an optional snapshot lookup by the read-model identifier nor an observable collection query (for example a snapshot list); each query is checked on its own. Observable list queries (keyed or unkeyed) render since Stage 4.49.0. Through Stage 4.79.0 (so in cratis CLI 3.53.1, which bundles 4.73.1) an optional snapshot lookup whose key concept has validation rules is refused; Stage 4.79.1 renders a scalar validated key, in keyed lookups and filtered observable collections, as its primitive and converts it inside the query, so an out-of-rule key finds no instance instead of failing validation, and still refuses a validated concept inside a composite or collection argument (Stage `v4.79.1` `Source/Rendering.Cratis/Semantics/SemanticCratisAdmission.StateView.cs:117-141`) | Keyed `XById => X optional` queries or `observable` lists; a snapshot list is gap-fill. Caller-supplied collection equality filters bind as v14 since 4.143.0 but exceed this Stage 4.73.1 v10 ceiling (latest checked 4.80.0 admits through v13). Context/single-result filters, opaque scope/performer and composite `by` remain PLAY0268 |
97
+ | `STAGE-ESM-010` | A query is neither an optional snapshot lookup by the read-model identifier nor an observable collection query (for example a snapshot list); each query is checked on its own. Observable list queries (keyed or unkeyed) render since Stage 4.49.0. Historical Stage through 4.79.0 refused a validated key; Stage 4.83.0 (since 4.79.1) renders a scalar validated key, in keyed lookups and filtered observable collections, as its primitive and converts it inside the query, so an out-of-rule key finds no instance instead of failing validation, and still refuses a validated concept inside a composite or collection argument (Stage `v4.83.0` `Source/Rendering.Cratis/Semantics/SemanticCratisAdmission.StateView.cs:117-141`) | Keyed `XById => X optional` queries or `observable` lists; a snapshot list is gap-fill. Caller-supplied collection equality filters bind as v14 since 4.143.0 but exceed the CLI 3.56.0 / Stage 4.83.0 v13 ceiling. Context/single-result filters, opaque scope/performer and composite `by` remain PLAY0268 |
74
98
  | `STAGE-ESM-011` | A specification cannot render (see the rules below) | Reshape it only if the assertion keeps its meaning; otherwise keep the specification, record the gap, and gap-fill with the specification as the oracle. Never weaken or delete it to get a render |
75
99
  | `STAGE-ESM-012` | Generated C# names collide (properties, types, namespaces, constraints) | Rename |
76
100
  | `STAGE-ESM-013` | An event-context value other than `$context.occurred` mapped in `produces` | Map a command property when that preserves the meaning; otherwise gap-fill |
77
101
  | `STAGE-ESM-014` | A constraint Chronicle cannot reproduce (kind, scope, message; multi-claim in one command; optional or composite targets) | A different constraint is a requirement change for the model owner; otherwise gap-fill |
78
102
  | `STAGE-ESM-015` | Authorization Stage cannot render exactly (4.73.1): a role-claim URI, an opaque policy nested inside a condition, an unresolved or non-portable policy, no single identifier, an opaque-policy subject that is not text, Uuid, Date or DateTime (Stage 4.73.1 `IsTextualSubject`; a restriction on opaque-policy subjects, separate from declarative claim targets), an unsupported claim artifact. Role-only, authenticated, opaque pure policies, claim conditions with Uuid, Date, DateTime or text targets (numeric and Boolean claim matches render as always false; Stage 4.73.1 `IsSupportedClaimPath`) and `not`/and/or render; roles are read through the identity's `RoleClaimType` | Reshape the policy to a portable condition; otherwise gap-fill. *Historical (4.24/3.27.1):* a role alone, an opaque policy or a Uuid-backed claim were refused here |
79
- | `STAGE-ESM-016` | Model language or semantic version is above ESM v10 (Stage 4.73.1 admits v1 to v10 by version; the CLI reports `CLI-RENDER-004` for v11 or newer first). Standalone Stage 4.75.0 admits v11 and 4.76.0 v1 to v12; later or mixed versions still get this code there. *Historical:* Stage 4.24.2 admitted v1 to v4 and 4.24.1 and earlier v1 to v3 | Not fixable by editing: the model needs a newer renderer. Keep the model, record the gap, gap-fill |
103
+ | `STAGE-ESM-016` | Model language/semantic pair is not an audited v1 to v13 pair at Stage 4.83.0; CLI 3.56.0 reports `CLI-RENDER-004` for v14 or newer first. v11 numbers, v12 enum numbers and v13 compliance are admitted, not blanket construct support. *Historical:* Stage 4.24.2 admitted v1 to v4 and 4.24.1 and earlier v1 to v3 | Not fixable by editing: the model needs a newer renderer. Keep the model, record the gap, gap-fill |
80
104
  | `STAGE-ESM-017` | Read model or projection cannot render (property names that collide with Chronicle paths or expression syntax, mappings that overwrite the key or child identity, composite keys, `all`, the refused scope shapes below) | Reshape the projection without changing what it records, or record the gap |
81
105
  | `STAGE-ESM-018` | `$strings.` key missing in the default locale or containing formatting characters | Fix the strings |
82
106
  | `STAGE-ESM-019` | Reducer structure or body not admitted (outside a `StateView`, impure, does not compile) | An equivalent pure body, or gap-fill |
83
107
  | `STAGE-ESM-020` | Implementation body missing, changed (hash differs) or refused by the loader | Provide the body inside the model root |
84
108
  | `STAGE-ESM-021`, `-022` | Reducer typed-context or analysis failure; a construct outside the pure allowlist, or a generated name shadowing a reducer type | An equivalent pure body, or gap-fill |
85
109
  | `STAGE-ESM-025` | Typed context references a historical event revision or a historical property identity (Stage 4.24.2); checked before `-026` | Reference the current revision; a historical reference is not renderable, so gap-fill |
86
- | `STAGE-ESM-026` | A selected event, or an event a selected slice depends on (producing command, observing projection or reducer, specification, constraint target), is above its initial revision (still refused at Stage 4.73.1): `Event 'X' has evolved to revision N; Stage does not render event migrations yet.` The whole selection is refused, nothing is emitted | Not fixable by editing without dropping the evolution. Stage#204 (needs Screenplay#71) tracks migration rendering; gap-fill the evolved events and hand-write the migrations (`cratis-chronicle-event-type-migration`). A scoped slice of initial events that depends on no evolved event still renders |
87
- | `STAGE-ESM-024` | ESM v6 and v9 constructs Stage 4.73.1 does not render: application triggers, interval, schedule, application, startup and shutdown triggers, opaque reaction bodies, every event-triggered reaction, captures, `Automation` and `Translate` slices (including directed Translate), and specifications with a clock, trigger or capture. The renderer, Host and specification executor refuse every reaction model | Keep the model; hand-write the automation or translation (gap-fill) with the model as the contract |
110
+ | `STAGE-ESM-026` | A selected event, or an event a selected slice depends on (producing command, observing projection or reducer, specification, constraint target), is above its initial revision (still refused at Stage 4.83.0): `Event 'X' has evolved to revision N; Stage does not render event migrations yet.` The whole selection is refused, nothing is emitted | Not fixable by editing without dropping the evolution. Stage#204 (needs Screenplay#71) tracks migration rendering; gap-fill the evolved events and hand-write the migrations (`cratis-chronicle-event-type-migration`). A scoped slice of initial events that depends on no evolved event still renders |
111
+ | `STAGE-ESM-024` | Stage 4.83.0 still refuses interval, schedule, application, startup and shutdown triggers, opaque reaction bodies, captures, Translate (including directed Translate), and clock/trigger/capture specifications. Event-triggered Automation slices now render as Chronicle reactors, subject to `-013`, `-034` to `-040` below | Keep refused scope as gap-fill; do not confuse semantic Host settlement with live reactor delivery |
88
112
  | `STAGE-ESM-027` | A specification asserting a read model is absent (`then no readmodel`, ESM v5) is not rendered by the renderer (the semantic specification engine executes keyed absence) | Keep the specification; verify absence another way and record the gap |
89
- | `STAGE-ESM-028`, `-029` | Generated command property values and generation fixtures (ESM v7); command responses and `then returns` expectations (ESM v7) (Stage#175, also reached by `cratis screenplay generate` output from Arc 22.52.0). Refused by Stage 4.73.1 (the Stage in cli 3.53.1); standalone Stage 4.74.0 and later render server-generated UUID-concept values and scalar or named responses (ledger rows are `rendered` at `v4.76.0`), so these are no longer refusals there | With cli 3.53.1 keep the model and gap-fill; with Stage 4.74.0 or later render it |
90
- | `STAGE-ESM-038` | Stage 4.74.0 and later: a generated-value or response combination the target cannot preserve | Keep the model; gap-fill that command |
91
- | `STAGE-ESM-030` | Named event-source or stream definition with a reserved stored name; unformattable routed fixtures; routed read-model or query replay in an unsupported shape. The default sandbox engine also reports it for every routed model | Rename the reserved name; render the model with `cratis render`, not `cratis run` |
113
+ | `STAGE-ESM-028`, `-029` | Historical blanket v7 refusals. CLI 3.56.0 / Stage 4.83.0 render required scalar UUID-concept generated values, generation fixtures, scalar/named responses and `then returns`; unsupported generated types still report `-028` | Probe the supported form; preserve refused combinations as gap-fill |
114
+ | `STAGE-ESM-038` | Generated/response results combined with routes, generated-property/concept rules, legacy allocation, generated unique-constraint mappings, non-scalar/non-command response sources or generated-name collisions (`SemanticVersionFeatures.cs:380-399,454-493`, `SemanticCratisAdmission.CommandResults.cs:12-55`) | Keep the model; gap-fill that command |
115
+ | `STAGE-ESM-039`, `-040` | Reaction conditions, destinations or mappings outside the faithful target subset; protected identity uses (including reaction destinations) and protected enum concepts | See the event-reaction boundary below; never declassify protected values |
116
+ | `STAGE-ESM-030` | Named event-source or stream definition with a reserved stored name; unformattable routed fixtures or command replay routes. Routed read-model/query replay now renders. The default sandbox engine also reports it for every routed model | Rename the reserved name; render the model with `cratis render`, not `cratis run` |
92
117
  | `STAGE-ESM-031` | Whole-number literal outside the C# `int` range below ESM v8 (v8 and later render `long`) | Raise the model to v8 constructs or gap-fill |
93
118
  | `STAGE-ESM-032`, `-033` | Public events and event-target projections or reducers (ESM v9); foreign event origins and event-source captures | Gap-fill |
94
119
  | `STAGE-ESM-034`, `-035`, `-036` | Reaction `runsAs` (ESM v10), reaction observer `from` filters, per-production route overrides (reducer `from` filters render) | Gap-fill |
95
- | `STAGE-ESM-037` | A reaction trigger that both produces events and invokes commands (ESM v6). A Stage refusal (Stage#207), not an Arc or language limit: Arc 22.72.0 and later run one reactor that returns events and commands (events appended first as one batch, then commands in order, no cross-effect transaction) | **Do not split the modeled reaction or drop `produces`/`invokes`.** Keep it and gap-fill it as one reactor on Arc 22.72.0 or later (the Arc the scaffold pins has a command handler that accepts a collection only when every element is a command; a rendered app needs a proven dependency override; see `rendered-application.md` for the pinned Arc) |
120
+ | `STAGE-ESM-037` | Events and commands from one handler, even across separate triggers on the same event in one reaction. The scaffold's Arc supports mixed results, but appends events before commands; a refused command causes redelivery and duplicate events (Stage `v4.83.0:SemanticVersionFeatures.cs:402-416`, `Documentation/reference/reaction-rendering.md:88`) | **Do not split the modeled reaction or drop an effect.** Gap-fill only with a proven retry-safe implementation; `[OnceOnly]` excludes replay, not retry |
96
121
  | `STAGE-ESM-023` | Information: transition bodies analysed | none |
97
122
  | `STAGE-CRATIS-001` to `-005` | Profile or `scene.json` not the package-owned shape; unrecognized or missing scaffold input; artifact path collision; a modeled module or feature that would render into the reserved `Customizations/` | Rename the module or feature (005) |
98
123
  | `STAGE-AUTH-001` | Authorization cannot be rendered faithfully | As `STAGE-ESM-015` |
99
124
  | `CLI-RENDER-001`, `-002` | Unknown target; invalid rendering name (`CLI-RENDER-003`, event generations, was reported by cratis 3.28.2 only) | Fix the option, or the model |
100
- | `CLI-RENDER-004` | The bound model is ESM v11 or newer | Not fixable by editing: keep the model, gap-fill |
125
+ | `CLI-RENDER-004` | The bound model is ESM v14 or newer (CLI 3.56.0) | Not fixable by editing: keep the model, gap-fill |
101
126
  | `CLI-RENDER-005`, `-006` | Authored metadata with characters invalid in XML blocks rendering of XML doc comments; a document set that cannot be read as a workspace renders without comments (warning) | Remove the invalid characters |
102
127
  | `CLI-RENDER-007` to `-010` | `ui profile` refusals (package set, profile shape) | See `--package-set` |
103
128
  | `CLI-RENDER-011` to `-014` | `--scope`: unknown address; ambiguous feature and slice name; aggregate or unrecognized policy layout (render the whole application once); a dependency not in the manifest or the scope | Fix the address or add the owning scope |
@@ -189,7 +214,14 @@ same slice, a required Guid or text identifier and a matching keyed query. Code
189
214
 
190
215
  ## Specification rules (`STAGE-ESM-011`)
191
216
 
192
- From `SemanticSpecificationAdmission*.cs`; the first rule was also observed.
217
+ The following detailed rules retain the 4.24-era observations; current additions
218
+ are generated fixtures/return assertions and routed companion replay (above).
219
+ Direct appends and commands cascading into reactions still refuse `-011`.
220
+ Sources: Stage `v4.83.0:Documentation/reference/generated-values-rendering.md:77-99`,
221
+ `Documentation/reference/event-source-routing.md:72`,
222
+ `Documentation/reference/reaction-rendering.md:66`.
223
+
224
+ From historical `SemanticSpecificationAdmission*.cs`; the first rule was also observed.
193
225
 
194
226
  - A specification needs a `when <Command>` of its own slice (`PLAY0273` otherwise), and
195
227
  its `then` events must be as many as the command `produces` (observed: a `then query`
@@ -231,7 +263,7 @@ Each came from the first draft of the example model, rendered with cratis 3.27.1
231
263
 
232
264
  ## Historical Stage 4.24 admission
233
265
 
234
- Kept as history. Not a statement about the current Stage (see the 4.73.1 summary in `SKILL.md` and the diagnostic codes above).
266
+ Kept as history. Not a statement about the current Stage (see the 4.83.0 summary in `SKILL.md` and the diagnostic codes above).
235
267
 
236
268
  Whole-model admission needs ESM schema v1 to v4; v5 and v6 are `STAGE-ESM-016`. Stage 4.24.2 admits ESM v4 (Screenplay compiles a model with evolved events to v4): an event at its initial revision renders exactly as before, but any selected event above the initial revision, and every scope depending on it (a command producing it, a projection or reducer observing it, a specification using it), is refused with `STAGE-ESM-026` and nothing is emitted. A typed-context reference to a historical revision or property identity is refused with `STAGE-ESM-025`. Stage cannot render Chronicle event-type migrations yet (Cratis/Stage#204, which depends on Cratis/Screenplay#71), and Stage's runtime (`cratis run`, the Host) still refuses evolved events, so deliver evolved events as gap-fill. Stage 4.24.1 also lists the ESM v6 members (reactions, captures, application triggers, clock and capture specifications) as rejected `STAGE-ESM-024` in its surface ledger, but the version gate refuses the model first, so a v6 model reports `STAGE-ESM-016` only. The bundled Stage 4.24.2 (cratis 3.28.3) reports an evolved event with `STAGE-ESM-026` only (probed); cratis 3.28.2 bundled Stage 4.24.1 (3.28.1 and earlier: 4.24.0), refused a v4 model with `STAGE-ESM-016` and also reported `CLI-RENDER-003`. The admitted vertical:
237
269
 
@@ -7,36 +7,34 @@
7
7
  - `Customizations/` (unmanaged)
8
8
  - Re-render checklist
9
9
 
10
- Read at Stage `v4.24.0`, with the scaffold pins re-read at `v4.73.1` (`Scaffolding/CratisBackendApplicationScaffold*.cs`,
10
+ Read at Stage `v4.24.0`, with the scaffold pins re-read at `v4.83.0` (`Scaffolding/CratisBackendApplicationScaffold*.cs`,
11
11
  `CratisFrontendApplicationScaffold.cs`, `README.md`,
12
12
  `Documentation/guides/customize-rendered-application.md`) and checked against a real
13
13
  render (see [render-example.md](render-example.md)).
14
14
 
15
15
  ## Scaffold pins
16
16
 
17
- The pin rows below are source-checked at Stage `v4.73.1` (the Stage in CLI 3.53.1),
18
- `Source/Rendering.Cratis/Scaffolding/CratisBackendApplicationScaffoldProfile.cs` (`Current`),
19
- `CratisBackendApplicationScaffold.cs` and `CratisFrontendPackageSet.cs` (`Current`; read the
20
- `Current` argument list, because the class summary still quotes older Scene and Components
21
- versions). The scaffold pins an exact release per package and lags the latest releases by design
22
- (Arc 22.72.0 and Chronicle 19.50.0 were current when this was checked); moving them is a Stage
23
- change, so a re-render under a newer Stage is how they change. Earlier runtime/customization
17
+ The pin rows below are source-checked at Stage `v4.83.0` (the Stage in CLI 3.56.0),
18
+ `Source/Rendering.Cratis/Scaffolding/CratisBackendApplicationScaffoldProfile.cs:59-71`
19
+ (`Current`) and `CratisFrontendPackageSet.cs:208-229` (`Current`; read the argument
20
+ list, not the class summary). The scaffold pins an exact release per package;
21
+ moving them is a Stage change, so a re-render under a newer Stage is how they change. Earlier runtime/customization
24
22
  probes above keep their original labels.
25
23
 
26
24
  | Item | Value |
27
25
  | --- | --- |
28
26
  | Target framework | .NET 10 (`net10.0`), `Microsoft.NET.Sdk.Web` |
29
- | Arc packages (`Cratis`, `Cratis.Arc.MongoDB`, `Cratis.Arc.Chronicle.Testing`) | `22.68.0` (below Arc 22.70, so reverse-generator compliance diagnostics and the like are not in the scaffold; reactors returning events and commands need Arc 22.72.0 or later, so a hand-written mixed reactor in a rendered app needs a proven dependency override; Arc 22.68.0's handler accepts a collection only when every element is a command) |
27
+ | Arc packages (`Cratis`, `Cratis.Arc.MongoDB`, `Cratis.Arc.Chronicle.Testing`) | `22.78.0` (includes Arc's events-and-commands reactor result handler; Stage still refuses mixed reactions because redelivery can duplicate the appended events) |
30
28
  | Chronicle client | `Cratis.Chronicle`, `.AspNetCore` and `.Testing` `19.45.0`, matched to the `cratis/chronicle:19.45.0-development` image in the compose file |
31
29
  | Embedded reverse extraction | `CratisEmbeddedScreenplayEnabled=false`: the source `.play` is authoritative |
32
30
  | Test packages | `Cratis.Specifications` and `.XUnit` 4.1.1, Microsoft.NET.Test.Sdk 18.10.1, NSubstitute 6.2.0, xunit 2.9.3, xunit runner 4.0.0; **Debug configuration only** (`IsTestProject` when Debug) |
33
- | Frontend | Vite 8.3.0 and React 19.3.0; `@cratis/arc`, `arc.react`, `arc.vite` 22.58.2; `@cratis/components` 4.26.2; `@cratis/scene.*` 4.21.0; `@cratis/fundamentals` 7.22.8 |
31
+ | Frontend | Vite 8.3.0 and React 19.3.0; `@cratis/arc`, `arc.react`, `arc.vite` 22.58.2; `@cratis/components` 4.26.2; `@cratis/scene.*` 4.22.1; `@cratis/fundamentals` 7.22.8 |
34
32
  | Package management | central package management **off**; `Directory.Packages.props` is managed, do not edit it |
35
33
 
36
34
  The Scene family pin above applies to six scaffold dependencies:
37
35
  `@cratis/scene.blueprint.default`, `@cratis/scene.components`, `@cratis/scene.engine`,
38
36
  `@cratis/scene.model`, `@cratis/scene.primereact`, and `@cratis/scene.react`.
39
- Source: Stage `v4.73.1:CratisFrontendApplicationScaffold.cs`, `Dependencies`,
37
+ Source: Stage `v4.83.0:Source/Rendering.Cratis/Scaffolding/CratisFrontendApplicationScaffold.cs`, `Dependencies`,
40
38
  and `CratisFrontendPackageSet.cs`, `Current`. `@cratis/scene` is **not** a package
41
39
  in this family. Read [Scene runtime](scene-runtime.md) when distinguishing the
42
40
  runtime from a hand-built Components page. The latest Components verification
@@ -50,10 +48,9 @@ the protected command profile and enroll an admitted projection/key read in the
50
48
  active unit of work. Source-checked at Arc v22.72.0 `ProtectedDecisionAttribute.cs`
51
49
  and `CommandDecisionReads.cs`, Chronicle v19.50.0 `DecisionRead.cs`/`IDecisionReads.cs`.
52
50
  Stage does not turn `.play` `reads`/`require` into protected decisions. Upgrading Arc or Chronicle inside a rendered application is a re-render under a newer
53
- Stage, not an edit of the managed files. Hand-written scope that needs a newer Arc (for example a
54
- reactor returning events and commands) can raise the version through `Customizations/Dependencies.props`
55
- (explicit `Version`, imported last; central management is off), but whether that override restores
56
- cleanly beside the managed 22.68.0 reference is **unverified**: prove it with a restore and build. The compose file binds local ports `27017` and
51
+ Stage, not an edit of the managed files. Hand-written scope that needs a newer dependency can raise its version through
52
+ `Customizations/Dependencies.props` (explicit `Version`, imported last; central management
53
+ is off), but any override must be proven with a restore and build. The compose file binds local ports `27017` and
57
54
  `35000`, keeps data in the named volumes `chronicle-data` and `chronicle-config`, and
58
55
  `docker compose down --volumes` is the only thing that deletes them.
59
56
 
@@ -69,7 +66,7 @@ Chronicle event-store name in `appsettings.json` and the default project name an
69
66
  namespace.
70
67
 
71
68
  Whether modeled `screen` declarations become faithful screens is a runtime question, not a
72
- publication result: the Stage 4.73.1 scaffold emits Arc `CommandForm` shells over Scene typed
69
+ publication result: the Stage 4.83.0 scaffold emits Arc `CommandForm` shells over Scene typed
73
70
  bindings and navigation contributions, but claim UI fidelity only from a browser run
74
71
  (`SKILL.md`, UI parity). Screens stay managed.
75
72
 
@@ -104,10 +101,10 @@ Every file is optional. Rules that bite:
104
101
  - Mapped endpoints are anonymous unless secured with ASP.NET Core authorization;
105
102
  modeled authorization covers only what Stage renders.
106
103
 
107
- What the seam does **not** do: it binds no modeled reaction or capture, runs no
108
- Automation or Translate slice and renders nothing. An automation or translation is
109
- hand-written (gap-fill) with its adapters and DI registration here, and the model remains
110
- its contract. Keep `Customizations/` under version control: whether a re-render keeps
104
+ What the seam does **not** do: it repairs no rejected model and renders nothing.
105
+ Stage 4.83.0 renders supported event-triggered Automation slices as managed Chronicle
106
+ reactors; refused reactions, captures and Translate slices remain hand-written gap-fill
107
+ with the model as their contract. See [admission.md](admission.md). Keep `Customizations/` under version control: whether a re-render keeps
111
108
  it depends on the publisher, and `cratis render` writes only the planned paths and
112
109
  refuses unmanaged files at them.
113
110
 
@@ -2,29 +2,33 @@
2
2
 
3
3
  ## Contents
4
4
 
5
- - Current behavior at Stage 4.73.1 (source reading; Docker not run)
5
+ - Current behavior at Stage 4.83.0 (source reading; Docker not run)
6
6
  - Specification engine selection at Stage 4.78.0 and CLI 3.53.1
7
7
  - The sandbox: a partial, disposable runtime
8
8
  - The specification runner
9
9
  - Choosing between them
10
10
 
11
- Read at Stage `v4.24.0`, then re-read for the current paragraph below at `v4.73.1` (`README.md`, `Documentation/docker/index.md`,
11
+ Read at Stage `v4.24.0`, then re-read for the current paragraph below at `v4.83.0` (`README.md`, `Documentation/docker/index.md`,
12
12
  `Documentation/docker/spec-runner.md`, `Documentation/reference/urls.md`) and cli
13
13
  `v3.28.2` (`Commands/Run/*`, unchanged since `v3.27.1`). Docker was **not run** for this skill: every behaviour here
14
14
  is documented behaviour, not an observed result. Both images are still shipped.
15
15
 
16
- ## Current behavior at Stage 4.73.1 (source reading; Docker not run)
17
-
18
- Read from `Documentation/docker/index.md` and `docker/spec-runner.md` at `v4.73.1` and the CLI
19
- 3.53.1 reference. The default EventModel engine refuses named event sources, streams and routes
20
- with `STAGE-ESM-030` (`/stage/status` reports `state: "unsupported"` and `/api/**` answers 501),
21
- so `cratis run` does not run a routed model: render it with `cratis render`. Both engines refuse
22
- public events (`-032`), foreign or source-event captures (`-033`) and reaction identity, filters
23
- and overrides (`-034` to `-036`); reactions are refused (`-024`, `-037`). The semantic engine admits
24
- ESM v1 to v10 version pairs and executes routes. The structural specification runner is deprecated:
25
- it prints a deprecation notice, refuses routes with exit 1 and writes no results file. Exit codes
26
- `0`/`1`/`2` are as in `SKILL.md`. The sections below describe the 4.24-era behavior and remain the
27
- engine comparison.
16
+ ## Current behavior at Stage 4.83.0 (source reading; Docker not run)
17
+
18
+ Read from `Documentation/docker/index.md` (lines 127-155) and `docker/spec-runner.md` (lines 11-19) at
19
+ `v4.83.0`, the Stage that CLI 3.56.0 bundles and `cratis run` starts. The default EventModel engine refuses
20
+ named event sources, streams and routes with `STAGE-ESM-030` (`/stage/status` reports
21
+ `state: "unsupported"` and `/api/**` answers 501), so the default `cratis run` does not run a routed model.
22
+ Both engines refuse public events (`-032`), foreign or source-event captures (`-033`), directed Translate
23
+ slices (`-024`) and reducer observer filters (`-035`); the legacy engine also refuses reaction identity and
24
+ reaction observer filters (`-034`, `-035`), and per-production route overrides fail `-036` on the semantic
25
+ engine. The semantic engine (`Stage__Runtime__Engine=semantic`) admits exact ESM v1 to v13 version pairs,
26
+ executes routes and runs event-triggered reactions (including `where`, `runs as`, `from`, productions,
27
+ invocations and cascades), settling them with the initiating command in one batch; clock, application,
28
+ startup and shutdown triggers and opaque reaction bodies still fail `-024`. It does not encrypt or redact
29
+ personal-data or secret values. The structural specification runner is deprecated: it prints a deprecation
30
+ notice, refuses routes with exit 1 and writes no results file. Exit codes `0`/`1`/`2` are as in `SKILL.md`.
31
+ The sections below describe the 4.24-era behavior and remain the engine comparison.
28
32
 
29
33
  ## Specification engine selection at Stage 4.78.0 and CLI 3.53.1
30
34
 
@@ -9,11 +9,12 @@
9
9
  - Packages and ownership
10
10
  - Runtime capabilities
11
11
 
12
- Source-checked at the Scene release in [scaffold pins](rendered-application.md),
12
+ Runtime source evidence retained at Scene v4.21.0 (not reverified at the newer
13
+ Scene release now listed in [scaffold pins](rendered-application.md)):
13
14
  Scene `README.md`, `Documentation/package-hosting.md`, and
14
15
  `Source/JavaScript/{model,engine,react,components}/**`. Stage package selection
15
- was checked at v4.73.1, `CratisFrontendPackageSet.cs` (`Current`) and
16
- `CratisFrontendApplicationScaffold.cs` (`Dependencies`). This is not a render
16
+ was re-read at Stage `v4.83.0:Source/Rendering.Cratis/Scaffolding/CratisFrontendPackageSet.cs:208-229`
17
+ (`Current`); dependency names are in `CratisFrontendApplicationScaffold.cs` (`Dependencies`). This is not a render
17
18
  or browser test.
18
19
 
19
20
  ## What Scene is
@@ -4,7 +4,7 @@
4
4
  "fixtures": [],
5
5
  "assertions": [
6
6
  { "kind": "skill-contains", "value": "pinned Stage default applies both rules" },
7
- { "kind": "skill-contains", "value": "Reducer filters render" },
7
+ { "kind": "skill-contains", "value": "reducer `from` filters" },
8
8
  { "kind": "skill-contains", "value": "references/scene-runtime.md" },
9
9
  { "kind": "skill-contains", "value": "`@cratis/scene.*`", "file": "references/rendered-application.md" },
10
10
  { "kind": "skill-contains", "value": "`@cratis/scene` is not this product's package id", "file": "references/scene-runtime.md" },
@@ -26,7 +26,7 @@
26
26
  { "kind": "skill-contains", "value": "Stage `v4.78.0`", "file": "references/sandbox-and-specrunner.md" },
27
27
  { "kind": "skill-contains", "value": "does **not** expose `--engine`", "file": "references/sandbox-and-specrunner.md" },
28
28
  { "kind": "skill-contains", "value": "fresh Chronicle in-memory event log per", "file": "references/sandbox-and-specrunner.md" },
29
- { "kind": "skill-contains", "value": "through v10" },
29
+ { "kind": "skill-contains", "value": "Through v13" },
30
30
  { "kind": "skill-contains", "value": "CLI-RENDER-004" },
31
31
  { "kind": "skill-contains", "value": "STAGE-ESM-024" },
32
32
  { "kind": "skill-contains", "value": "`v4.24.2`" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cratis/pi",
3
- "version": "7.39.0",
3
+ "version": "7.40.0",
4
4
  "description": "Configuration-aware Cratis AI integration for Pi",
5
5
  "type": "module",
6
6
  "files": [