@cratis/pi 7.39.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.
- package/package/corpus/product-sync.json +12 -12
- package/package/corpus/skills/cratis-arc-command/references/generated-values.md +3 -2
- package/package/corpus/skills/cratis-chronicle-reactor/SKILL.md +2 -2
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/SKILL.md +4 -2
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/audit-format.md +2 -2
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/automation-patterns.md +1 -1
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/provenance.md +2 -2
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/public-events-and-direction.md +1 -1
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/realization-and-gap-fill.md +13 -7
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/todo-list-example.md +3 -1
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/SKILL.md +7 -6
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/invocation-identity.md +4 -2
- package/package/corpus/skills/cratis-screenplay-command-surface/SKILL.md +10 -8
- package/package/corpus/skills/cratis-screenplay-command-surface/references/compliance.md +13 -2
- package/package/corpus/skills/cratis-screenplay-command-surface/references/enum-numbers.md +9 -8
- package/package/corpus/skills/cratis-screenplay-command-surface/references/generated-values-and-responses.md +137 -46
- package/package/corpus/skills/cratis-screenplay-command-surface/verification.json +13 -8
- package/package/corpus/skills/cratis-screenplay-event-modeling/SKILL.md +13 -13
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/nine-steps.md +2 -2
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/parsed-not-runnable.md +4 -4
- package/package/corpus/skills/cratis-screenplay-model-authoring/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/language-reference.md +6 -4
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-tools.md +3 -1
- package/package/corpus/skills/cratis-screenplay-model-review/references/anti-patterns.md +1 -1
- package/package/corpus/skills/cratis-screenplay-model-review/references/checklist.md +1 -1
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/SKILL.md +2 -2
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/phases.md +1 -1
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/vocabulary-map.md +5 -3
- package/package/corpus/skills/cratis-screenplay-read-surface/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-read-surface/references/equality-filters.md +15 -13
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/SKILL.md +22 -18
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/delivery-protocol.md +1 -1
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/gap-fill-handoff.md +6 -5
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/renderability-gate.md +8 -8
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/verification.json +2 -2
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/spec-forms-by-mode.md +6 -5
- package/package/corpus/skills/cratis-screenplay-slice-design/references/field-lineage.md +1 -1
- package/package/corpus/skills/cratis-screenplay-specifications/references/generated-fixtures.md +12 -5
- package/package/corpus/skills/cratis-screenplay-specifications/references/reactions-and-cascades.md +5 -4
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +4 -4
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/boundaries.md +2 -1
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution.md +2 -2
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/verification.json +1 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/SKILL.md +19 -14
- package/package/corpus/skills/cratis-screenplay-toolchain/references/cheat-sheet-example.md +2 -3
- package/package/corpus/skills/cratis-screenplay-toolchain/references/cheat-sheet.md +1 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/references/diagnostics.md +7 -4
- package/package/corpus/skills/cratis-screenplay-toolchain/references/doc-contradictions.md +3 -3
- package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-subset.md +30 -25
- package/package/corpus/skills/cratis-screenplay-toolchain/references/generation-strategies-example.md +43 -0
- package/package/corpus/skills/cratis-screenplay-toolchain/references/production-routes-and-filters.md +5 -2
- package/package/corpus/skills/cratis-screenplay-toolchain/references/provenance.md +1 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/references/renderable-subset.md +37 -34
- package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract.json +1499 -46
- package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract.version +1 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/references/sources-and-streams.md +3 -2
- package/package/corpus/skills/cratis-screenplay-toolchain/references/traps.md +3 -3
- package/package/corpus/skills/cratis-screenplay-toolchain/references/verdicts.md +3 -3
- package/package/corpus/skills/cratis-screenplay-toolchain/references/versions.md +56 -48
- package/package/corpus/skills/cratis-screenplay-toolchain/verification.json +9 -2
- package/package/corpus/skills/cratis-screenplay-ui-composition/SKILL.md +7 -7
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/response-continuations.md +109 -0
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/screen-composition-contract.md +4 -3
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/worked-flow.md +3 -2
- package/package/corpus/skills/cratis-screenplay-ui-composition/verification.json +5 -0
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/SKILL.md +31 -32
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/admission.md +71 -27
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/rendered-application.md +18 -21
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/sandbox-and-specrunner.md +30 -14
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/scene-runtime.md +4 -3
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/verification.json +5 -2
- package/package.json +1 -1
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## Contents
|
|
4
4
|
|
|
5
|
+
- Event-reaction boundary at Stage 4.89.1
|
|
5
6
|
- Diagnostic codes
|
|
6
7
|
- Projections
|
|
7
8
|
- Pure reducer bodies
|
|
@@ -11,21 +12,24 @@
|
|
|
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.
|
|
15
|
-
`
|
|
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
|
+
`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.
|
|
18
|
-
4.
|
|
19
|
-
|
|
20
|
-
|
|
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.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.
|
|
24
|
+
Binding with the bundled compiler remains a separate prerequisite.
|
|
23
25
|
The pinned Stage's `SemanticVersionFeatures`/`SemanticVersionFeatureAdmission` refuse
|
|
24
26
|
public publication (STAGE-ESM-032), foreign events/events-source captures (033),
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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
|
+
metadata through `ReadModelScenario`; reserved names and unformattable routed fixtures
|
|
31
|
+
remain STAGE-ESM-030. Source: Stage
|
|
32
|
+
`v4.89.1:Documentation/reference/event-source-routing.md:62-72`. Case tables and whole numbers as long apply to
|
|
29
33
|
the default; see `case-tables-and-whole-numbers.md`. Previous CLI 3.46.1's Stage
|
|
30
34
|
4.52.0 audited only through v7 and applied neither new rule. Current version
|
|
31
35
|
checks are CLI `RenderedSemanticVersions.Newest` and Stage
|
|
@@ -33,7 +37,7 @@ checks are CLI `RenderedSemanticVersions.Newest` and Stage
|
|
|
33
37
|
parser rejected `runs as` with PLAY0137; that is not a current parser refusal.
|
|
34
38
|
The historical CLI 3.41.0 v7 canonical-corpus planning spec received
|
|
35
39
|
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.
|
|
40
|
+
The detailed 4.24.x source/probe rows below are historical unless a row says 4.89.1; run
|
|
37
41
|
admission on the actual bundled renderer.
|
|
38
42
|
|
|
39
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`,
|
|
@@ -60,44 +64,77 @@ the capability gap, and route that scope to authorized gap-fill or a fully hand-
|
|
|
60
64
|
delivery (`cratis-screenplay-render-and-gap-fill`). Changing the requirement itself is the
|
|
61
65
|
model owner's decision.
|
|
62
66
|
|
|
67
|
+
## Event-reaction boundary at Stage 4.89.1
|
|
68
|
+
|
|
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
|
+
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
|
+
`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.
|
|
95
|
+
|
|
63
96
|
## Diagnostic codes
|
|
64
97
|
|
|
65
98
|
| Code | Meaning | Usual fix |
|
|
66
99
|
| --- | --- | --- |
|
|
67
|
-
| `STAGE-ESM-001` |
|
|
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 |
|
|
68
101
|
| `STAGE-ESM-002`, `-003` | Concept values or validation Stage cannot express; unresolved property type | Simplify the concept; fix the type |
|
|
69
102
|
| `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,
|
|
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 |
|
|
71
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 |
|
|
72
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 |
|
|
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.
|
|
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 |
|
|
74
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 |
|
|
75
108
|
| `STAGE-ESM-012` | Generated C# names collide (properties, types, namespaces, constraints) | Rename |
|
|
76
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 |
|
|
77
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 |
|
|
78
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 |
|
|
79
|
-
| `STAGE-ESM-016` | Model language
|
|
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 |
|
|
80
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 |
|
|
81
114
|
| `STAGE-ESM-018` | `$strings.` key missing in the default locale or containing formatting characters | Fix the strings |
|
|
82
115
|
| `STAGE-ESM-019` | Reducer structure or body not admitted (outside a `StateView`, impure, does not compile) | An equivalent pure body, or gap-fill |
|
|
83
116
|
| `STAGE-ESM-020` | Implementation body missing, changed (hash differs) or refused by the loader | Provide the body inside the model root |
|
|
84
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 |
|
|
85
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 |
|
|
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.
|
|
87
|
-
| `STAGE-ESM-024` |
|
|
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 |
|
|
88
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 |
|
|
89
|
-
| `STAGE-ESM-028`, `-029` |
|
|
90
|
-
| `STAGE-ESM-038` |
|
|
91
|
-
| `STAGE-ESM-
|
|
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 |
|
|
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 |
|
|
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` |
|
|
92
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 |
|
|
93
127
|
| `STAGE-ESM-032`, `-033` | Public events and event-target projections or reducers (ESM v9); foreign event origins and event-source captures | Gap-fill |
|
|
94
|
-
| `STAGE-ESM-034
|
|
95
|
-
| `STAGE-ESM-
|
|
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 |
|
|
96
133
|
| `STAGE-ESM-023` | Information: transition bodies analysed | none |
|
|
97
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) |
|
|
98
135
|
| `STAGE-AUTH-001` | Authorization cannot be rendered faithfully | As `STAGE-ESM-015` |
|
|
99
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 |
|
|
100
|
-
| `CLI-RENDER-004` | The bound model is ESM
|
|
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 |
|
|
101
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 |
|
|
102
139
|
| `CLI-RENDER-007` to `-010` | `ui profile` refusals (package set, profile shape) | See `--package-set` |
|
|
103
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 |
|
|
@@ -189,7 +226,14 @@ same slice, a required Guid or text identifier and a matching keyed query. Code
|
|
|
189
226
|
|
|
190
227
|
## Specification rules (`STAGE-ESM-011`)
|
|
191
228
|
|
|
192
|
-
|
|
229
|
+
The following detailed rules retain the 4.24-era observations; current additions
|
|
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`,
|
|
233
|
+
`Documentation/reference/event-source-routing.md:72`,
|
|
234
|
+
`Documentation/reference/reaction-rendering.md:63-75`.
|
|
235
|
+
|
|
236
|
+
From historical `SemanticSpecificationAdmission*.cs`; the first rule was also observed.
|
|
193
237
|
|
|
194
238
|
- A specification needs a `when <Command>` of its own slice (`PLAY0273` otherwise), and
|
|
195
239
|
its `then` events must be as many as the command `produces` (observed: a `then query`
|
|
@@ -231,7 +275,7 @@ Each came from the first draft of the example model, rendered with cratis 3.27.1
|
|
|
231
275
|
|
|
232
276
|
## Historical Stage 4.24 admission
|
|
233
277
|
|
|
234
|
-
Kept as history. Not a statement about the current Stage (see the 4.
|
|
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).
|
|
235
279
|
|
|
236
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:
|
|
237
281
|
|
package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/rendered-application.md
CHANGED
|
@@ -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.
|
|
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.
|
|
18
|
-
`Source/Rendering.Cratis/Scaffolding/CratisBackendApplicationScaffoldProfile.cs`
|
|
19
|
-
`
|
|
20
|
-
|
|
21
|
-
|
|
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.89.1` (the Stage in CLI 3.57.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.
|
|
30
|
-
| Chronicle client | `Cratis.Chronicle`, `.AspNetCore` and `.Testing` `19.
|
|
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 |
|
|
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.
|
|
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.
|
|
37
|
+
Source: Stage `v4.89.1: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
|
|
54
|
-
|
|
55
|
-
|
|
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.
|
|
69
|
+
publication result: the Stage 4.89.1 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
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
104
|
+
What the seam does **not** do: it repairs no rejected model and renders nothing.
|
|
105
|
+
Stage 4.89.1 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,45 @@
|
|
|
2
2
|
|
|
3
3
|
## Contents
|
|
4
4
|
|
|
5
|
-
- Current behavior at Stage 4.
|
|
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.
|
|
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.
|
|
17
|
-
|
|
18
|
-
Read from `Documentation/docker/index.md` and `docker/spec-runner.md` at
|
|
19
|
-
|
|
20
|
-
with `STAGE-ESM-030` (`/stage/status` reports
|
|
21
|
-
so `cratis run` does not run a routed model
|
|
22
|
-
public events (`-032`), foreign or source-event captures (`-033`)
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
16
|
+
## Current behavior at Stage 4.89.1 (source reading; Docker not run)
|
|
17
|
+
|
|
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
|
+
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`, Screenplay 4.147.1) admits exact ESM v1 to v15 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`.
|
|
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
|
|
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.
|
|
43
|
+
The sections below describe the 4.24-era behavior and remain the engine comparison.
|
|
28
44
|
|
|
29
45
|
## Specification engine selection at Stage 4.78.0 and CLI 3.53.1
|
|
30
46
|
|
package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/scene-runtime.md
CHANGED
|
@@ -9,11 +9,12 @@
|
|
|
9
9
|
- Packages and ownership
|
|
10
10
|
- Runtime capabilities
|
|
11
11
|
|
|
12
|
-
|
|
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
|
|
16
|
-
`CratisFrontendApplicationScaffold.cs` (`Dependencies`). This is not a render
|
|
16
|
+
was re-read at Stage `v4.89.1: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": "
|
|
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": "
|
|
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" },
|