@cratis/pi 7.40.0 → 7.41.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 (69) hide show
  1. package/package/corpus/product-sync.json +10 -10
  2. package/package/corpus/skills/cratis-arc-command/references/generated-values.md +3 -2
  3. package/package/corpus/skills/cratis-chronicle-reactor/SKILL.md +1 -1
  4. package/package/corpus/skills/cratis-screenplay-automations-and-translations/SKILL.md +3 -3
  5. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/audit-format.md +2 -2
  6. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/automation-patterns.md +1 -1
  7. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/provenance.md +2 -2
  8. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/public-events-and-direction.md +1 -1
  9. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/realization-and-gap-fill.md +5 -4
  10. package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/todo-list-example.md +1 -1
  11. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/SKILL.md +5 -5
  12. package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/invocation-identity.md +4 -2
  13. package/package/corpus/skills/cratis-screenplay-command-surface/SKILL.md +10 -8
  14. package/package/corpus/skills/cratis-screenplay-command-surface/references/compliance.md +7 -6
  15. package/package/corpus/skills/cratis-screenplay-command-surface/references/enum-numbers.md +4 -4
  16. package/package/corpus/skills/cratis-screenplay-command-surface/references/generated-values-and-responses.md +137 -50
  17. package/package/corpus/skills/cratis-screenplay-command-surface/verification.json +12 -7
  18. package/package/corpus/skills/cratis-screenplay-event-modeling/SKILL.md +7 -7
  19. package/package/corpus/skills/cratis-screenplay-event-modeling/references/nine-steps.md +1 -1
  20. package/package/corpus/skills/cratis-screenplay-event-modeling/references/parsed-not-runnable.md +4 -4
  21. package/package/corpus/skills/cratis-screenplay-model-authoring/SKILL.md +1 -1
  22. package/package/corpus/skills/cratis-screenplay-model-authoring/references/language-reference.md +6 -4
  23. package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-tools.md +3 -1
  24. package/package/corpus/skills/cratis-screenplay-model-review/references/anti-patterns.md +1 -1
  25. package/package/corpus/skills/cratis-screenplay-model-review/references/checklist.md +1 -1
  26. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/SKILL.md +2 -2
  27. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/phases.md +1 -1
  28. package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/vocabulary-map.md +1 -1
  29. package/package/corpus/skills/cratis-screenplay-read-surface/SKILL.md +1 -1
  30. package/package/corpus/skills/cratis-screenplay-read-surface/references/equality-filters.md +15 -10
  31. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/SKILL.md +11 -11
  32. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/delivery-protocol.md +1 -1
  33. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/gap-fill-handoff.md +4 -4
  34. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/renderability-gate.md +5 -5
  35. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/verification.json +1 -1
  36. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/spec-forms-by-mode.md +6 -5
  37. package/package/corpus/skills/cratis-screenplay-slice-design/references/field-lineage.md +1 -1
  38. package/package/corpus/skills/cratis-screenplay-specifications/references/generated-fixtures.md +10 -3
  39. package/package/corpus/skills/cratis-screenplay-specifications/references/reactions-and-cascades.md +5 -5
  40. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +4 -4
  41. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/boundaries.md +1 -1
  42. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution.md +2 -2
  43. package/package/corpus/skills/cratis-screenplay-streams-and-consistency/verification.json +1 -1
  44. package/package/corpus/skills/cratis-screenplay-toolchain/SKILL.md +17 -13
  45. package/package/corpus/skills/cratis-screenplay-toolchain/references/cheat-sheet-example.md +2 -2
  46. package/package/corpus/skills/cratis-screenplay-toolchain/references/diagnostics.md +6 -3
  47. package/package/corpus/skills/cratis-screenplay-toolchain/references/doc-contradictions.md +2 -2
  48. package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-subset.md +26 -21
  49. package/package/corpus/skills/cratis-screenplay-toolchain/references/generation-strategies-example.md +43 -0
  50. package/package/corpus/skills/cratis-screenplay-toolchain/references/production-routes-and-filters.md +5 -2
  51. package/package/corpus/skills/cratis-screenplay-toolchain/references/renderable-subset.md +32 -32
  52. package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract.json +1499 -46
  53. package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract.version +1 -1
  54. package/package/corpus/skills/cratis-screenplay-toolchain/references/sources-and-streams.md +2 -2
  55. package/package/corpus/skills/cratis-screenplay-toolchain/references/traps.md +3 -3
  56. package/package/corpus/skills/cratis-screenplay-toolchain/references/verdicts.md +2 -2
  57. package/package/corpus/skills/cratis-screenplay-toolchain/references/versions.md +50 -38
  58. package/package/corpus/skills/cratis-screenplay-toolchain/verification.json +8 -6
  59. package/package/corpus/skills/cratis-screenplay-ui-composition/SKILL.md +5 -4
  60. package/package/corpus/skills/cratis-screenplay-ui-composition/references/response-continuations.md +109 -0
  61. package/package/corpus/skills/cratis-screenplay-ui-composition/references/worked-flow.md +1 -1
  62. package/package/corpus/skills/cratis-screenplay-ui-composition/verification.json +5 -0
  63. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/SKILL.md +17 -18
  64. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/admission.md +47 -35
  65. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/rendered-application.md +7 -7
  66. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/sandbox-and-specrunner.md +20 -8
  67. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/scene-runtime.md +1 -1
  68. package/package/corpus/skills/cratis-stage-rendering-and-sandbox/verification.json +4 -1
  69. package/package.json +1 -1
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## Contents
4
4
 
5
- - Event-reaction boundary at Stage 4.83.0
5
+ - Event-reaction boundary at Stage 4.89.1
6
6
  - Diagnostic codes
7
7
  - Projections
8
8
  - Pure reducer bodies
@@ -12,25 +12,24 @@
12
12
  - Historical Stage 4.24 admission
13
13
 
14
14
  Current pins: `cratis-screenplay-toolchain/references/versions.md`. The current statements here
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`,
15
+ were read at Stage `v4.89.1` (`Documentation/reference/generated-values-rendering.md:62-146`,
16
+ `reaction-rendering.md:57-98`, `Source/Rendering.Cratis/Semantics/SemanticVersionFeatures.cs:105`,
17
+ `SemanticVersionFeatureAdmission.cs:25-46`, `SemanticCratisAdmission*.cs`) and cli
18
+ `v3.57.0` (`Directory.Packages.props:8-10`,
19
19
  `Source/Cli/Commands/Render/RenderedSemanticVersions.cs:33-47`); the rows and
20
20
  sections marked *historical* or naming Stage 4.24 or cratis 3.27/3.28 are earlier probes kept as
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.
21
+ history. Stage 4.89.1 and CLI 3.57.0 admit ESM v1 to v15 to construct planning.
22
+ The bundled Screenplay 4.147.1 binds v14 collection filters and v15 generation;
23
+ supported filters, strategy factories, freshness scopes and scalar/named responses render.
25
24
  Binding with the bundled compiler remains a separate prerequisite.
26
25
  The pinned Stage's `SemanticVersionFeatures`/`SemanticVersionFeatureAdmission` refuse
27
26
  public publication (STAGE-ESM-032), foreign events/events-source captures (033),
28
- reaction identity (034), reaction filters (035) and production overrides (036).
29
- Reducer filters render. ESM v8 routed read-model/query companion replay now renders, seeding source/stream
27
+ production overrides (036). Reaction identity renders for role/authenticated gates;
28
+ claim-reading/opaque gates retain 034. Reaction and reducer filters render on the semantic path;
29
+ legacy paths retain 034/035. Non-text secrets refuse 041. ESM v8 routed read-model/query companion replay now renders, seeding source/stream
30
30
  metadata through `ReadModelScenario`; reserved names and unformattable routed fixtures
31
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
32
+ `v4.89.1:Documentation/reference/event-source-routing.md:62-72`. Case tables and whole numbers as long apply to
34
33
  the default; see `case-tables-and-whole-numbers.md`. Previous CLI 3.46.1's Stage
35
34
  4.52.0 audited only through v7 and applied neither new rule. Current version
36
35
  checks are CLI `RenderedSemanticVersions.Newest` and Stage
@@ -38,7 +37,7 @@ checks are CLI `RenderedSemanticVersions.Newest` and Stage
38
37
  parser rejected `runs as` with PLAY0137; that is not a current parser refusal.
39
38
  The historical CLI 3.41.0 v7 canonical-corpus planning spec received
40
39
  STAGE-ESM-028/029 for generated values/responses.
41
- The detailed 4.24.x source/probe rows below are historical unless a row says 4.83.0; run
40
+ The detailed 4.24.x source/probe rows below are historical unless a row says 4.89.1; run
42
41
  admission on the actual bundled renderer.
43
42
 
44
43
  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`,
@@ -65,10 +64,11 @@ the capability gap, and route that scope to authorized gap-fill or a fully hand-
65
64
  delivery (`cratis-screenplay-render-and-gap-fill`). Changing the requirement itself is the
66
65
  model owner's decision.
67
66
 
68
- ## Event-reaction boundary at Stage 4.83.0
67
+ ## Event-reaction boundary at Stage 4.89.1
69
68
 
70
- Source: Stage `v4.83.0:Documentation/reference/reaction-rendering.md:6-88`,
71
- `Source/Rendering.Cratis/Semantics/SemanticCratisAdmission.Automation.cs:15-123`.
69
+ Source: Stage `v4.89.1:Documentation/reference/reaction-rendering.md:6-98`,
70
+ `Source/Rendering.Cratis/Semantics/SemanticCratisAdmission.Automation.cs:15-123`,
71
+ `SemanticCratisAdmission.ReactionIdentity.cs:11-28`.
72
72
  Supported event reactions emit stable-id `[Reactor]` classes with `[OnceOnly]`,
73
73
  event guards, returned commands or explicit `EventForEventSourceId` envelopes.
74
74
  Required invocation inputs must be mapped; unmapped optional inputs become null.
@@ -80,49 +80,61 @@ append destination, including reactions outside the scope. Unsupported mappings
80
80
  The semantic Host settles cascades in one guarded append, whereas generated reactors
81
81
  are independent eventually consistent observers that can fail and retry after the
82
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.
83
+ `runs as system [role]` emits `[ExecuteCommandsAsSystem]`; role-only and authenticated-only
84
+ invocations render. Claim-reading gates (even under `not`/`or`) and opaque gates refuse 034:
85
+ Screenplay system claims are unknown, while Arc supplies system subject claims.
86
+ `from Source` emits `[EventSourceType]`; `from Source.Stream` emits `[FromEventSource<T>]`.
87
+ Produced events remain unrouted; reserved stored filter names refuse 030.
88
+
89
+ Single-hop `when append` specifications now render through `ReactorScenario`, with one
90
+ invoked `CommandScenario` using the reactor attribute identity, not `given caller`.
91
+ The fixture must select exactly one active trigger after `from`/`where`. Fan-out, deeper
92
+ cascades, multiple invocations, `$context`, read-model/query expectations and constraint-target
93
+ appends/products still refuse 011. Commands producing any subscribed reaction event still refuse
94
+ 011 because generated `CommandScenario` does not settle reactions. Keep refused specifications.
86
95
 
87
96
  ## Diagnostic codes
88
97
 
89
98
  | Code | Meaning | Usual fix |
90
99
  | --- | --- | --- |
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 |
100
+ | `STAGE-ESM-001` | Unsupported slice kind; `StateChange`, `StateView` and supported event-triggered `Automation` slices render at 4.89.1; Translate remains `-024` | Keep the model; gap-fill refused scope |
92
101
  | `STAGE-ESM-002`, `-003` | Concept values or validation Stage cannot express; unresolved property type | Simplify the concept; fix the type |
93
102
  | `STAGE-ESM-004` | A `StateChange` slice without exactly one command | One command per slice |
94
103
  | `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 |
95
104
  | `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 |
96
105
  | `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 |
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 |
106
+ | `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.89.1 (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.89.1` `Source/Rendering.Cratis/Semantics/SemanticCratisAdmission.StateView.cs:139-178,180-199`) | Keyed `XById => X optional` queries or `observable` lists; a snapshot list is gap-fill. v14 equality filters render on observable collections; DateTime filters, required filters after optional ones, nested validated arguments and snapshot lists refuse 010. Filter-name collisions refuse 012. Context/single-result filters, opaque scope/performer and composite `by` remain PLAY0268 |
98
107
  | `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 |
99
108
  | `STAGE-ESM-012` | Generated C# names collide (properties, types, namespaces, constraints) | Rename |
100
109
  | `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 |
101
110
  | `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 |
102
111
  | `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 |
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 |
112
+ | `STAGE-ESM-016` | Model language/semantic pair is not an audited v1 to v15 pair at Stage 4.89.1; CLI 3.57.0 reports `CLI-RENDER-004` above v15 first. v14 filters and v15 generation join v11 numbers, v12 enum numbers and v13 compliance, 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 |
104
113
  | `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 |
105
114
  | `STAGE-ESM-018` | `$strings.` key missing in the default locale or containing formatting characters | Fix the strings |
106
115
  | `STAGE-ESM-019` | Reducer structure or body not admitted (outside a `StateView`, impure, does not compile) | An equivalent pure body, or gap-fill |
107
116
  | `STAGE-ESM-020` | Implementation body missing, changed (hash differs) or refused by the loader | Provide the body inside the model root |
108
117
  | `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 |
109
118
  | `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 |
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 |
119
+ | `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.89.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 |
120
+ | `STAGE-ESM-024` | Stage 4.89.1 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 |
112
121
  | `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 |
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 |
122
+ | `STAGE-ESM-028`, `-029` | Historical blanket v7 refusals. CLI 3.57.0 / Stage 4.89.1 render supported scalar UUID/String-concept strategies and Guarded v15 freshness, generation fixtures, scalar/named responses and `then returns`; unsupported generated types still report `-028` | Probe the supported form; preserve refused combinations as gap-fill |
123
+ | `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 (Stage `v4.89.1:Documentation/reference/generated-values-rendering.md:123-138`) | Keep the model; gap-fill that command |
115
124
  | `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
125
  | `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` |
117
126
  | `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 |
118
127
  | `STAGE-ESM-032`, `-033` | Public events and event-target projections or reducers (ESM v9); foreign event origins and event-source captures | Gap-fill |
119
- | `STAGE-ESM-034`, `-035`, `-036` | Reaction `runsAs` (ESM v10), reaction observer `from` filters, per-production route overrides (reducer `from` filters render) | Gap-fill |
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 |
128
+ | `STAGE-ESM-034` | Reaction `runs as` invoking claim-reading or opaque authorization; every `runs as` on legacy syntax paths | Keep the gate; gap-fill |
129
+ | `STAGE-ESM-035` | Observer filters on legacy syntax paths; semantic reaction/reducer filters render | Use semantic admission |
130
+ | `STAGE-ESM-036` | Per-production route overrides | Gap-fill |
131
+ | `STAGE-ESM-041` | Non-text secret concepts (Int/Decimal/Bool/Date/DateTime/Uuid), not `pii secret` | Keep classification; text backing only if it preserves the contract |
132
+ | `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.89.1:Documentation/reference/reaction-rendering.md:98`) | **Do not split the modeled reaction or drop an effect.** Gap-fill only with a proven retry-safe implementation; `[OnceOnly]` excludes replay, not retry |
121
133
  | `STAGE-ESM-023` | Information: transition bodies analysed | none |
122
134
  | `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) |
123
135
  | `STAGE-AUTH-001` | Authorization cannot be rendered faithfully | As `STAGE-ESM-015` |
124
136
  | `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 |
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 |
137
+ | `CLI-RENDER-004` | The bound model is newer than ESM v15 (CLI 3.57.0) | Not fixable by editing: keep the model, gap-fill |
126
138
  | `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 |
127
139
  | `CLI-RENDER-007` to `-010` | `ui profile` refusals (package set, profile shape) | See `--package-set` |
128
140
  | `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 |
@@ -215,11 +227,11 @@ same slice, a required Guid or text identifier and a matching keyed query. Code
215
227
  ## Specification rules (`STAGE-ESM-011`)
216
228
 
217
229
  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`,
230
+ are generated fixtures/return assertions, routed companion replay and supported single-hop
231
+ reaction appends (above). Other appends and commands cascading into reactions retain `-011`.
232
+ Sources: Stage `v4.89.1:Documentation/reference/generated-values-rendering.md:97-111`,
221
233
  `Documentation/reference/event-source-routing.md:72`,
222
- `Documentation/reference/reaction-rendering.md:66`.
234
+ `Documentation/reference/reaction-rendering.md:63-75`.
223
235
 
224
236
  From historical `SemanticSpecificationAdmission*.cs`; the first rule was also observed.
225
237
 
@@ -263,7 +275,7 @@ Each came from the first draft of the example model, rendered with cratis 3.27.1
263
275
 
264
276
  ## Historical Stage 4.24 admission
265
277
 
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).
278
+ Kept as history. Not a statement about the current Stage (see the 4.89.1 summary in `SKILL.md` and the diagnostic codes above).
267
279
 
268
280
  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:
269
281
 
@@ -7,14 +7,14 @@
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.83.0` (`Scaffolding/CratisBackendApplicationScaffold*.cs`,
10
+ Read at Stage `v4.24.0`, with the scaffold pins re-read at `v4.89.1` (`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.83.0` (the Stage in CLI 3.56.0),
17
+ The pin rows below are source-checked at Stage `v4.89.1` (the Stage in CLI 3.57.0),
18
18
  `Source/Rendering.Cratis/Scaffolding/CratisBackendApplicationScaffoldProfile.cs:59-71`
19
19
  (`Current`) and `CratisFrontendPackageSet.cs:208-229` (`Current`; read the argument
20
20
  list, not the class summary). The scaffold pins an exact release per package;
@@ -24,8 +24,8 @@ probes above keep their original labels.
24
24
  | Item | Value |
25
25
  | --- | --- |
26
26
  | Target framework | .NET 10 (`net10.0`), `Microsoft.NET.Sdk.Web` |
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) |
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 |
27
+ | Arc packages (`Cratis`, `Cratis.Arc.MongoDB`, `Cratis.Arc.Chronicle.Testing`) | `22.83.0` (includes Arc's events-and-commands reactor result handler; Stage still refuses mixed reactions because redelivery can duplicate the appended events) |
28
+ | Chronicle client | `Cratis.Chronicle`, `.AspNetCore` and `.Testing` `19.54.0`, matched to the `cratis/chronicle:19.54.0-development` image in the compose file |
29
29
  | Embedded reverse extraction | `CratisEmbeddedScreenplayEnabled=false`: the source `.play` is authoritative |
30
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) |
31
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,7 +34,7 @@ probes above keep their original labels.
34
34
  The Scene family pin above applies to six scaffold dependencies:
35
35
  `@cratis/scene.blueprint.default`, `@cratis/scene.components`, `@cratis/scene.engine`,
36
36
  `@cratis/scene.model`, `@cratis/scene.primereact`, and `@cratis/scene.react`.
37
- Source: Stage `v4.83.0:Source/Rendering.Cratis/Scaffolding/CratisFrontendApplicationScaffold.cs`, `Dependencies`,
37
+ Source: Stage `v4.89.1:Source/Rendering.Cratis/Scaffolding/CratisFrontendApplicationScaffold.cs`, `Dependencies`,
38
38
  and `CratisFrontendPackageSet.cs`, `Current`. `@cratis/scene` is **not** a package
39
39
  in this family. Read [Scene runtime](scene-runtime.md) when distinguishing the
40
40
  runtime from a hand-built Components page. The latest Components verification
@@ -66,7 +66,7 @@ Chronicle event-store name in `appsettings.json` and the default project name an
66
66
  namespace.
67
67
 
68
68
  Whether modeled `screen` declarations become faithful screens is a runtime question, not a
69
- publication result: the Stage 4.83.0 scaffold emits Arc `CommandForm` shells over Scene typed
69
+ publication result: the Stage 4.89.1 scaffold emits Arc `CommandForm` shells over Scene typed
70
70
  bindings and navigation contributions, but claim UI fidelity only from a browser run
71
71
  (`SKILL.md`, UI parity). Screens stay managed.
72
72
 
@@ -102,7 +102,7 @@ Every file is optional. Rules that bite:
102
102
  modeled authorization covers only what Stage renders.
103
103
 
104
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
105
+ Stage 4.89.1 renders supported event-triggered Automation slices as managed Chronicle
106
106
  reactors; refused reactions, captures and Translate slices remain hand-written gap-fill
107
107
  with the model as their contract. See [admission.md](admission.md). Keep `Customizations/` under version control: whether a re-render keeps
108
108
  it depends on the publisher, and `cratis render` writes only the planned paths and
@@ -2,32 +2,44 @@
2
2
 
3
3
  ## Contents
4
4
 
5
- - Current behavior at Stage 4.83.0 (source reading; Docker not run)
5
+ - Current behavior at Stage 4.89.1 (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.83.0` (`README.md`, `Documentation/docker/index.md`,
11
+ Read at Stage `v4.24.0`, then re-read for the current paragraph below at `v4.89.1` (`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.83.0 (source reading; Docker not run)
16
+ ## Current behavior at Stage 4.89.1 (source reading; Docker not run)
17
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
18
+ Read from `Documentation/docker/index.md:127-166,273-309` and `docker/spec-runner.md:11-43` at
19
+ `v4.89.1`, the Stage that CLI 3.57.0 bundles and `cratis run` starts. The default EventModel engine refuses
20
20
  named event sources, streams and routes with `STAGE-ESM-030` (`/stage/status` reports
21
21
  `state: "unsupported"` and `/api/**` answers 501), so the default `cratis run` does not run a routed model.
22
22
  Both engines refuse public events (`-032`), foreign or source-event captures (`-033`), directed Translate
23
23
  slices (`-024`) and reducer observer filters (`-035`); the legacy engine also refuses reaction identity and
24
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,
25
+ engine. The semantic engine (`Stage__Runtime__Engine=semantic`, Screenplay 4.147.1) admits exact ESM v1 to v15 version pairs,
26
26
  executes routes and runs event-triggered reactions (including `where`, `runs as`, `from`, productions,
27
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
28
+ startup and shutdown triggers and opaque reaction bodies still fail `-024`.
29
+ The semantic Host now encrypts personal-data/secret concepts at rest through Chronicle and releases
30
+ values on read; erasure deletes event-source keys. Existing stores retain earlier plaintext events;
31
+ explicit subject lineage is not supplied. Non-text `secret` concepts refuse `STAGE-ESM-041`
32
+ (`pii secret` uses PII only). It executes v14 equality filters, but the independent semantic
33
+ specification executor refuses filtered query assertions with `STAGE-ESM-010`; seeded read-model
34
+ specifications retain the GivenReadModel gap. v15 supplies strategies and whole-source freshness.
35
+ Renderer support for reaction `from` and role/authenticated `runs as` does not relax legacy-engine
36
+ 034/035 refusals. The structural specification runner is deprecated: it prints a deprecation
30
37
  notice, refuses routes with exit 1 and writes no results file. Exit codes `0`/`1`/`2` are as in `SKILL.md`.
38
+ The semantic Host exposes `POST /stage/semantic/specifications/run`, running fresh isolated
39
+ scenarios in a child process, never the live world/log. Read every report outcome: HTTP 200
40
+ is not a specification pass. Cancellation kills the child tree; timeout is 504, launch/nonzero/invalid
41
+ report is 502. Timeout defaults to 120 seconds (1–600, including queue); specifications remain
42
+ available after a later world-rebuild/registration failure if the model was admitted.
31
43
  The sections below describe the 4.24-era behavior and remain the engine comparison.
32
44
 
33
45
  ## Specification engine selection at Stage 4.78.0 and CLI 3.53.1
@@ -13,7 +13,7 @@ Runtime source evidence retained at Scene v4.21.0 (not reverified at the newer
13
13
  Scene release now listed in [scaffold pins](rendered-application.md)):
14
14
  Scene `README.md`, `Documentation/package-hosting.md`, and
15
15
  `Source/JavaScript/{model,engine,react,components}/**`. Stage package selection
16
- was re-read at Stage `v4.83.0:Source/Rendering.Cratis/Scaffolding/CratisFrontendPackageSet.cs:208-229`
16
+ was re-read at Stage `v4.89.1:Source/Rendering.Cratis/Scaffolding/CratisFrontendPackageSet.cs:208-229`
17
17
  (`Current`); dependency names are in `CratisFrontendApplicationScaffold.cs` (`Dependencies`). This is not a render
18
18
  or browser test.
19
19
 
@@ -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 v13" },
29
+ { "kind": "skill-contains", "value": "Through v15" },
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`" },
@@ -42,6 +42,9 @@
42
42
  { "kind": "skill-contains", "value": "STAGE-ESM-031" },
43
43
  { "kind": "skill-contains", "value": "Stage 4.52.0 renderer applies neither new rule" },
44
44
  { "kind": "skill-contains", "value": "STAGE-ESM-037" },
45
+ { "kind": "skill-contains", "value": "`STAGE-ESM-041`", "file": "references/sandbox-and-specrunner.md" },
46
+ { "kind": "skill-contains", "value": "claim-reading or opaque authorization", "file": "references/admission.md" },
47
+ { "kind": "skill-contains", "value": "Single-hop `when append`", "file": "references/admission.md" },
45
48
  { "kind": "skill-contains", "value": "`--scope <ADDRESS>`" },
46
49
  { "kind": "skill-contains", "value": "`--check`" },
47
50
  { "kind": "skill-contains", "value": "XML documentation comments" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cratis/pi",
3
- "version": "7.40.0",
3
+ "version": "7.41.0",
4
4
  "description": "Configuration-aware Cratis AI integration for Pi",
5
5
  "type": "module",
6
6
  "files": [