@cratis/pi 7.51.4 → 7.52.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/harnesses/copilot/instructions/glossary.instructions.md +2 -1
- package/package/corpus/harnesses/copilot/instructions/profiles.instructions.md +15 -0
- package/package/corpus/product-sync.json +26 -20
- package/package/corpus/rules/glossary.md +2 -1
- package/package/corpus/rules/profiles.md +15 -0
- package/package/corpus/skills/cratis-application-slice-specifications/references/query-and-decision-scenarios.md +14 -3
- package/package/corpus/skills/cratis-arc-command/SKILL.md +4 -0
- package/package/corpus/skills/cratis-arc-command/references/decisions-and-routing.md +22 -3
- package/package/corpus/skills/cratis-arc-command/references/fresh-identifiers.md +52 -0
- package/package/corpus/skills/cratis-arc-command/references/generated-values.md +7 -7
- package/package/corpus/skills/cratis-arc-command/references/handler-shapes.md +9 -0
- package/package/corpus/skills/cratis-arc-command/references/proxy-generation.md +5 -0
- package/package/corpus/skills/cratis-arc-command/references/read-model-injection.md +11 -0
- package/package/corpus/skills/cratis-arc-command-execution/SKILL.md +12 -1
- package/package/corpus/skills/cratis-arc-command-execution/references/command-refusals.md +65 -0
- package/package/corpus/skills/cratis-arc-command-validation/SKILL.md +5 -0
- package/package/corpus/skills/cratis-arc-hosting/SKILL.md +1 -0
- package/package/corpus/skills/cratis-arc-observable-query-http/SKILL.md +6 -0
- package/package/corpus/skills/cratis-chronicle-client-dotnet/references/additional-surfaces.md +18 -0
- package/package/corpus/skills/cratis-chronicle-client-dotnet/references/discovery.md +33 -1
- package/package/corpus/skills/cratis-chronicle-client-dotnet/references/lifecycle.md +7 -1
- package/package/corpus/skills/cratis-chronicle-compliance/SKILL.md +5 -0
- package/package/corpus/skills/cratis-chronicle-decision-reads/SKILL.md +17 -0
- package/package/corpus/skills/cratis-chronicle-decision-reads/references/choosing-how-a-rule-holds.md +3 -3
- package/package/corpus/skills/cratis-chronicle-event-constraints/SKILL.md +4 -0
- package/package/corpus/skills/cratis-chronicle-event-constraints/references/storage-uniqueness.md +28 -0
- package/package/corpus/skills/cratis-chronicle-event-modeling/SKILL.md +5 -3
- package/package/corpus/skills/cratis-chronicle-event-specifications/SKILL.md +7 -0
- package/package/corpus/skills/cratis-chronicle-event-type-migration/SKILL.md +18 -0
- package/package/corpus/skills/cratis-chronicle-event-type-migration/references/explicit-migrations.md +46 -0
- package/package/corpus/skills/cratis-chronicle-hosting/SKILL.md +8 -0
- package/package/corpus/skills/cratis-chronicle-hosting/references/operations.md +42 -0
- package/package/corpus/skills/cratis-chronicle-multi-tenancy/SKILL.md +1 -0
- package/package/corpus/skills/cratis-chronicle-projection/references/model-bound-attributes.md +6 -0
- package/package/corpus/skills/cratis-chronicle-projection/references/variants.md +7 -0
- package/package/corpus/skills/cratis-chronicle-reactor/SKILL.md +13 -7
- package/package/corpus/skills/cratis-chronicle-reactor/references/cross-service-events.md +9 -2
- package/package/corpus/skills/cratis-chronicle-reactor/references/return-event-metadata.md +7 -0
- package/package/corpus/skills/cratis-chronicle-reactor/references/slice-delivery-checklist.md +3 -3
- package/package/corpus/skills/cratis-chronicle-reactor/references/specifications.md +11 -5
- package/package/corpus/skills/cratis-chronicle-read-model/SKILL.md +8 -4
- package/package/corpus/skills/cratis-chronicle-read-model/references/collection-observation.md +49 -0
- package/package/corpus/skills/cratis-chronicle-read-model/references/queries.md +13 -2
- package/package/corpus/skills/cratis-chronicle-read-model-specifications/SKILL.md +8 -0
- package/package/corpus/skills/cratis-chronicle-web-workbench/SKILL.md +15 -0
- package/package/corpus/skills/cratis-multi-service-architecture/SKILL.md +204 -0
- package/package/corpus/skills/cratis-multi-service-architecture/references/publish-and-consume.md +229 -0
- package/package/corpus/skills/cratis-multi-service-local-orchestration/SKILL.md +172 -0
- package/package/corpus/skills/cratis-multi-service-local-orchestration/references/docker-compose.md +144 -0
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/SKILL.md +4 -0
- 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/effects-and-idempotency.md +24 -5
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/public-events-and-direction.md +1 -1
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/SKILL.md +11 -6
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/invocation-identity.md +3 -1
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/refusals-and-redelivery.md +97 -26
- package/package/corpus/skills/cratis-screenplay-command-surface/references/compliance.md +2 -1
- package/package/corpus/skills/cratis-screenplay-command-surface/references/generated-values-and-responses.md +45 -10
- package/package/corpus/skills/cratis-screenplay-command-surface/verification.json +3 -1
- package/package/corpus/skills/cratis-screenplay-event-modeling/SKILL.md +1 -0
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/parsed-not-runnable.md +10 -6
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/generate-notes.md +12 -1
- package/package/corpus/skills/cratis-screenplay-model-authoring/SKILL.md +5 -1
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/language-reference.md +7 -3
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-loop.md +28 -12
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-tools.md +29 -6
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/screen-authoring-workflow.md +15 -3
- package/package/corpus/skills/cratis-screenplay-model-authoring/verification.json +4 -1
- package/package/corpus/skills/cratis-screenplay-model-review/references/checklist.md +1 -1
- package/package/corpus/skills/cratis-screenplay-read-surface/SKILL.md +4 -0
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/SKILL.md +5 -1
- 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/renderability-gate.md +1 -1
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/SKILL.md +9 -1
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-catalogue.md +12 -10
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/spec-forms-by-mode.md +11 -6
- package/package/corpus/skills/cratis-screenplay-slice-design/references/field-lineage.md +1 -1
- package/package/corpus/skills/cratis-screenplay-specifications/SKILL.md +18 -10
- package/package/corpus/skills/cratis-screenplay-specifications/references/examples-and-routes.md +14 -13
- package/package/corpus/skills/cratis-screenplay-specifications/references/query-rejections.md +44 -0
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +2 -1
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/multi-service-models.md +188 -0
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/verification.json +1 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/SKILL.md +6 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/references/diagnostics.md +12 -4
- package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-subset.md +10 -6
- package/package/corpus/skills/cratis-screenplay-toolchain/references/renderable-subset.md +28 -9
- package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract.json +4658 -230
- package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract.version +1 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/references/traps.md +1 -1
- package/package/corpus/skills/cratis-specifications-csharp/SKILL.md +5 -0
- package/package/corpus/skills/cratis-specifications-csharp/references/application-scenarios.md +1 -1
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/SKILL.md +1 -1
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/admission.md +63 -15
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/sandbox-and-specrunner.md +2 -2
- package/package/profile-catalog.json +3 -1
- package/package.json +1 -1
package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract.version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
4.
|
|
1
|
+
4.164.0
|
|
@@ -38,7 +38,7 @@ Compiler syntax: `cheat-sheet.md`. Negative capability claims depend on the tool
|
|
|
38
38
|
|
|
39
39
|
34. A `from <Event> key <property>` routes only if every such event carries that property: an event that frees or updates a row keyed by another stream's id must carry that id in its payload, or the row never changes. The compiler may not report a missing key property; check by hand.
|
|
40
40
|
35. `description`/`documentation` are authoring metadata: board, MCP and Prologue show them; `cratis render` emits them only as XML doc comments (invalid XML characters are CLI-RENDER-005), never as behavior. A rule only in prose is unenforced in rendered code; make it a rule layer, a spec or a recorded target requirement.
|
|
41
|
-
36. One unadmitted construct (operations, `numbers exact`, composite view keys
|
|
41
|
+
36. One unadmitted construct (operations, `numbers exact`, composite view keys) blocks whole-model binding. Routing is admitted (v8), unlike composite view keys. Overrides replace the whole route, filters never match unrouted facts. Do not remove routing or authorization to render a model.
|
|
42
42
|
37. Personas remain outside ESM bytes, but specifications accept `given caller as <Persona>`: one authenticated deterministic policy witness, not every matching caller. Inspect the chosen `or` branch; use explicit callers when synthesis is refused.
|
|
43
43
|
38. A rule that depends on stored state is `reads <View>` + `require <expr> message "..."` (stated intent; PLAY0268/0271 at binding are expected in design mode). The slice `description` must mark it NOT enforced in the model today and name the target: Arc `[ProtectedDecision]` + `DecisionRead<T>` (available to gap-fill, not emitted protection), Chronicle DCB (`concurrency` scope), or a constraint where one fits. Forbidden: caller-supplied copies of state in `require`, boolean attestation inputs (`confirmsX == true`), rules hidden in `handler`/implementation-hint prose. An unguarded materialized read is unsafe for a protected decision.
|
|
44
44
|
Requires Arc 22.39.0 or later for `[ProtectedDecision]`.
|
|
@@ -109,6 +109,11 @@ net48 was dropped (retain 3.x for that target).
|
|
|
109
109
|
`Cratis.Specifications.NUnit` is an alternative with the same base pattern,
|
|
110
110
|
`[Test]` instead of `[Fact]`, and **public** test methods.
|
|
111
111
|
|
|
112
|
+
Requires Chronicle 19.53.0 for CHR0039 to be an error: await every awaitable
|
|
113
|
+
`Should*` assertion and use an `async Task` fact, or its failure is discarded.
|
|
114
|
+
Check the analyzer package version; do not treat older warning-only builds as
|
|
115
|
+
proof that those assertions ran.
|
|
116
|
+
|
|
112
117
|
### Pin server-generated Handle values
|
|
113
118
|
|
|
114
119
|
Requires Arc 22.67.0 for generated-value pinning.
|
package/package/corpus/skills/cratis-specifications-csharp/references/application-scenarios.md
CHANGED
|
@@ -162,7 +162,7 @@ public class and_value_is_pinned : Specification
|
|
|
162
162
|
- Do not log or trace captures. Do not replace/seed the production generator.
|
|
163
163
|
A direct-call decision spec supplies the known argument to `Handle()` itself.
|
|
164
164
|
|
|
165
|
-
Guide: [Pin generated values in command specs](/arc/backend/csharp/testing/generated-values/).
|
|
165
|
+
Guide: [Pin generated values in command specs](https://www.cratis.io/arc/backend/csharp/testing/generated-values/).
|
|
166
166
|
Source: `Source/DotNET/Testing/Commands/CommandScenarioGeneratedValueExtensions.cs`,
|
|
167
167
|
`ScenarioGeneratedValueFixture.cs`, `ScenarioGeneratedValues.cs` and
|
|
168
168
|
`GeneratedValuesCommandScenarioExtender.cs`;
|
|
@@ -67,7 +67,7 @@ printed), `1` is a missing input. Add `-o json` for the counts and the publicati
|
|
|
67
67
|
|
|
68
68
|
Facts that surprise:
|
|
69
69
|
|
|
70
|
-
- **Binding uses the CLI's bundled Screenplay compiler**, which differs from a standalone one. A model that binds is not necessarily renderable: Stage admits ESM v1
|
|
70
|
+
- **Binding uses the CLI's bundled Screenplay compiler**, which differs from a standalone one. A model that binds is not necessarily renderable: Stage admits exact ESM v1–v17 and v19 pairs (not v18/v20), then checks constructs; CLI admission can stop at v16. A newer model reports `CLI-RENDER-004` (direct Stage: `STAGE-ESM-016`). Supported generation strategies, freshness scopes, responses, equality filters, enum numbers and concept compliance render.
|
|
71
71
|
- **Render never builds, tests or runs** the output. A published render is admission and
|
|
72
72
|
publication only; build and tests are separate results (see "Verify"). Admission can be
|
|
73
73
|
green while a rendered Debug test fails (for example a query assertion on the key).
|
|
@@ -4,14 +4,21 @@
|
|
|
4
4
|
|
|
5
5
|
- How a refusal arrives
|
|
6
6
|
- Event-reaction boundary
|
|
7
|
+
- Recovery, stored identity and baseline boundaries
|
|
7
8
|
- Diagnostic codes
|
|
8
9
|
- Projections
|
|
9
10
|
- Pure reducer bodies
|
|
10
11
|
- Specification rules (`STAGE-ESM-011`)
|
|
11
12
|
- Refusals seen while drafting a model
|
|
12
13
|
|
|
13
|
-
Stage admits ESM v1
|
|
14
|
-
|
|
14
|
+
Stage admits exact ESM v1–v17 and v19 language/semantic pairs to construct planning,
|
|
15
|
+
not v18 or v20; unknown pairs report `STAGE-ESM-016`. The CLI's bundled renderer
|
|
16
|
+
may stop at v16 and refuse newer models with `CLI-RENDER-004`.
|
|
17
|
+
|
|
18
|
+
Requires Stage 4.96.0 for v16, 4.101.0 for v17, 4.102.0 for v19, and 4.103.0 for rendered redelivery; older renderers refuse the respective shapes.
|
|
19
|
+
Requires Cratis CLI 3.60.0 (`cratis --version`) for v16 rendering.
|
|
20
|
+
|
|
21
|
+
Binding with the CLI's bundled compiler is a separate
|
|
15
22
|
prerequisite. The exhaustive construct table is `references/renderable-subset.md` in
|
|
16
23
|
`cratis-screenplay-toolchain`; run the real render before claiming anything is admitted.
|
|
17
24
|
|
|
@@ -65,24 +72,57 @@ keep refusing them (034/035). ESM v8 routed read-model/query companion replay re
|
|
|
65
72
|
seeding source and stream metadata through `ReadModelScenario`; reserved names and
|
|
66
73
|
unformattable routed fixtures remain `STAGE-ESM-030`.
|
|
67
74
|
|
|
75
|
+
## Recovery, stored identity and baseline boundaries
|
|
76
|
+
|
|
77
|
+
Rendered redelivery uses Chronicle `History`/`Redeliver` for one named event trigger,
|
|
78
|
+
with direct productions or one supported invocation. The selected given keeps its
|
|
79
|
+
sequence number, correlation and routing; it is not appended again. Fan-out, deeper
|
|
80
|
+
cascades, constraints, read/query expectations and redelivery with refusal branches
|
|
81
|
+
retain STAGE-ESM-011. `then no events` renders for otherwise admitted commands and
|
|
82
|
+
one production-only reaction, including false `where`/excluded observer filters;
|
|
83
|
+
no-observer appends and invoked-command empty-effect cases retain -011.
|
|
84
|
+
|
|
85
|
+
Refusal branches render as ordered Arc `OnRefused`/`Acknowledge`; first match wins,
|
|
86
|
+
handling stops that trigger, and bare refusal never catches authorization. Same-event
|
|
87
|
+
multi-trigger refusal groups, localized `$refusal.message`, or `$refusal.constraint`
|
|
88
|
+
when several constraints can fail together report STAGE-ESM-039. Unsupported branch
|
|
89
|
+
conditions/routes/mappings retain -039, specification shapes -011.
|
|
90
|
+
|
|
91
|
+
Differing event pins render as `[EventType("storedName")]`; the class follows the
|
|
92
|
+
model name. Destination event-id changes or unreadable existing ids block every
|
|
93
|
+
publication scope with STAGE-EVENT-002 / CLI-RENDER-016, even under `--force`.
|
|
94
|
+
Requires Cratis CLI 3.60.0 (`cratis --version`) for this publication check; older
|
|
95
|
+
CLIs do not enforce it at every scope.
|
|
96
|
+
|
|
97
|
+
STAGE-BASELINE-001 (changed admitted revision), -002 (missing), -003 (unreadable or
|
|
98
|
+
wrong application) and -004 (unavailable or wrong model revision) are whole-application
|
|
99
|
+
warnings, including scoped renders; they do not stop publication. Keep
|
|
100
|
+
`screenplay baseline check` as the CI gate, separate from event-id publication safety.
|
|
101
|
+
Requires Stage 4.97.0 and Cratis CLI 3.61.0 (`cratis --version`) for baseline warnings;
|
|
102
|
+
older renderers do not report them. Persisted PATH roots render their saved identities
|
|
103
|
+
read-only; root-open failures are CLI-RENDER-017, name mismatch CLI-RENDER-018.
|
|
104
|
+
Requires Cratis CLI 3.62.0 (`cratis --version`); older PATH rendering ignores these identities.
|
|
105
|
+
|
|
106
|
+
Requires Stage 4.90.0 for snapshot/live lists, 4.96.0 for non-text secrets and 4.98.0 for multiple commands/conditional productions; older renderers refuse those shapes.
|
|
107
|
+
|
|
68
108
|
## Diagnostic codes
|
|
69
109
|
|
|
70
110
|
| Code | Meaning | Usual fix |
|
|
71
111
|
| --- | --- | --- |
|
|
72
112
|
| `STAGE-ESM-001` | Unsupported slice kind; `StateChange`, `StateView` and supported event-triggered `Automation` slices render; Translate is `-024` | Keep the model; gap-fill refused scope |
|
|
73
113
|
| `STAGE-ESM-002`, `-003` | Concept values or validation Stage cannot express; unresolved property type | Simplify the concept; fix the type |
|
|
74
|
-
| `STAGE-ESM-004` | A `StateChange` slice without
|
|
114
|
+
| `STAGE-ESM-004` | A `StateChange` slice without commands | Add the modeled command; multiple commands render |
|
|
75
115
|
| `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 |
|
|
76
|
-
| `STAGE-ESM-006` | `produces` that cannot render without changing its destination or mappings (
|
|
116
|
+
| `STAGE-ESM-006` | `produces` that cannot render without changing its destination or mappings (expression/enum conditions, literal or computed mappings, `for` not a command identifier, mappings not one-to-one with event properties, duplicate tags) | Map properties one to one; supported conditional productions render as guarded events, not separate commands |
|
|
77
117
|
| `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 |
|
|
78
|
-
| `STAGE-ESM-010` | A query is neither an optional snapshot lookup by the read-model identifier nor
|
|
118
|
+
| `STAGE-ESM-010` | A query is neither an optional snapshot lookup by the read-model identifier nor a supported snapshot/observable collection query; each query is checked on its own. Both collection modes render. A scalar validated key renders as its primitive and is converted inside the query, so an out-of-rule key finds no instance instead of failing validation; a validated concept inside a composite or collection argument is refused | Keyed `XById => X optional` queries or snapshot/observable lists. Equality filters render on both collections; DateTime filters, required filters after optional ones and nested validated arguments refuse 010. Filter-name collisions refuse 012. Context/single-result filters, opaque scope/performer and composite `by` remain PLAY0268 |
|
|
79
119
|
| `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 |
|
|
80
120
|
| `STAGE-ESM-012` | Generated C# names collide (properties, types, namespaces, constraints) | Rename |
|
|
81
121
|
| `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 |
|
|
82
122
|
| `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 |
|
|
83
123
|
| `STAGE-ESM-015` | Authorization Stage cannot render exactly: 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 (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) and `not`/and/or render; roles are read through the identity's `RoleClaimType` | Reshape the policy to a portable condition; otherwise gap-fill |
|
|
84
|
-
| `STAGE-ESM-016` | Model language/semantic pair is not an audited ESM v1
|
|
85
|
-
| `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
|
|
124
|
+
| `STAGE-ESM-016` | Model language/semantic pair is not an audited ESM v1–v17 or v19 pair; v18 and v20 remain refused. A CLI bundle stopping at v16 reports `CLI-RENDER-004` above v16 first. v14 filters and v15 generation join v11 numbers, v12 enum numbers and v13 compliance as supported constructs, not blanket construct support | Not fixable by editing: the model needs a newer renderer. Keep the model, record the gap, gap-fill |
|
|
125
|
+
| `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, unsupported `all` mappings, the refused scope shapes below) | Reshape the projection without changing what it records, or record the gap |
|
|
86
126
|
| `STAGE-ESM-018` | `$strings.` key missing in the default locale or containing formatting characters | Fix the strings |
|
|
87
127
|
| `STAGE-ESM-019` | Reducer structure or body not admitted (outside a `StateView`, impure, does not compile) | An equivalent pure body, or gap-fill |
|
|
88
128
|
| `STAGE-ESM-020` | Implementation body missing, changed (hash differs) or refused by the loader | Provide the body inside the model root |
|
|
@@ -92,7 +132,7 @@ unformattable routed fixtures remain `STAGE-ESM-030`.
|
|
|
92
132
|
| `STAGE-ESM-024` | Interval, schedule, application, startup and shutdown triggers, opaque reaction bodies, captures, Translate (including directed Translate), and clock/trigger/capture specifications. Event-triggered Automation slices render as Chronicle reactors, subject to `-013` and `-034` to `-040` below | Keep refused scope as gap-fill; do not confuse semantic Host settlement with live reactor delivery |
|
|
93
133
|
| `STAGE-ESM-027` | A specification asserting a read model is absent (`then no readmodel`) is not rendered (the semantic specification engine executes keyed absence) | Keep the specification; verify absence another way and record the gap |
|
|
94
134
|
| `STAGE-ESM-028`, `-029` | Generated values or responses Stage cannot render. Supported scalar UUID/String-concept strategies, v15 freshness, generation fixtures, scalar/named responses and `then returns` render; unsupported generated types report `-028` | Probe the supported form; preserve refused combinations as gap-fill |
|
|
95
|
-
| `STAGE-ESM-038` | Generated/response results combined with routes, generated-property/concept rules, legacy allocation,
|
|
135
|
+
| `STAGE-ESM-038` | Generated/response results combined with routes, generated-property/concept rules, legacy allocation, non-scalar/non-command response sources or generated-name collisions | Keep the model; gap-fill that command |
|
|
96
136
|
| `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 above; never declassify protected values |
|
|
97
137
|
| `STAGE-ESM-030` | Named event-source or stream definition with a reserved stored name; unformattable routed fixtures or command replay routes. The default sandbox engine also reports it for every routed model | Rename the reserved name; render the model with `cratis render`, not `cratis run` |
|
|
98
138
|
| `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 |
|
|
@@ -100,13 +140,13 @@ unformattable routed fixtures remain `STAGE-ESM-030`.
|
|
|
100
140
|
| `STAGE-ESM-034` | Reaction `runs as` invoking claim-reading or opaque authorization; every `runs as` on legacy syntax paths | Keep the gate; gap-fill |
|
|
101
141
|
| `STAGE-ESM-035` | Observer filters on legacy syntax paths; semantic reaction/reducer filters render | Use semantic admission |
|
|
102
142
|
| `STAGE-ESM-036` | Per-production route overrides | Gap-fill |
|
|
103
|
-
| `STAGE-ESM-041` |
|
|
143
|
+
| `STAGE-ESM-041` | Older renderers refuse non-text secrets; supported renderers keep their original types | Keep classification; upgrade the renderer, never declassify |
|
|
104
144
|
| `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 | **Do not split the modeled reaction or drop an effect.** Gap-fill only with a proven retry-safe implementation; `[OnceOnly]` excludes replay, not retry |
|
|
105
145
|
| `STAGE-ESM-023` | Information: transition bodies analysed | none |
|
|
106
146
|
| `STAGE-CRATIS-001` to `-005` | Profile or `scene.json` not the package-owned shape; unrecognized or missing scaffold input; artifact path collision (`-004`, for example case names that normalize to one path); a modeled module or feature that would render into the reserved `Customizations/` (`-005`) | Rename the module, feature or case |
|
|
107
147
|
| `STAGE-AUTH-001` | Authorization cannot be rendered faithfully | As `STAGE-ESM-015` |
|
|
108
148
|
| `CLI-RENDER-001`, `-002` | Unknown target; invalid rendering name | Fix the option, or the model |
|
|
109
|
-
| `CLI-RENDER-004` | The bound model is
|
|
149
|
+
| `CLI-RENDER-004` | The bound model is above the CLI bundle's admitted ceiling (v16 for a bundle without v17 support) | Not fixable by editing: keep the model, gap-fill |
|
|
110
150
|
| `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 |
|
|
111
151
|
| `CLI-RENDER-007` to `-010` | `ui profile` refusals (package set, profile shape) | See `--package-set` |
|
|
112
152
|
| `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 |
|
|
@@ -148,7 +188,7 @@ Stage renders two projection forms; the restrictions differ.
|
|
|
148
188
|
`$eventSourceId` key. Forms: several distinct `from` blocks, `remove with`, root
|
|
149
189
|
`join ... on`, `children` with an identified element (one level, no children or joins
|
|
150
190
|
inside a child; `remove with` and `remove via join` inside a child are admitted), `nested`
|
|
151
|
-
over an optional composite property, and `every` with set-from-event-source mappings. Keys
|
|
191
|
+
over an optional composite property, and `every`/`all` with set-from-event-source mappings. Keys
|
|
152
192
|
are an event property or the event source. The key establishes the identifier, so it must
|
|
153
193
|
end up unmapped: a mapping onto it is refused unless it copies the key's own event
|
|
154
194
|
property, so an event-source key admits no mapping at all (`STAGE-ESM-017`). Auto-map
|
|
@@ -156,7 +196,14 @@ Stage renders two projection forms; the restrictions differ.
|
|
|
156
196
|
declare `no automap` and map the other properties explicitly. `from E` and
|
|
157
197
|
`from E key $eventSourceId` render when the identifier ends up unmapped, whether or not
|
|
158
198
|
the event repeats the identifier.
|
|
159
|
-
-
|
|
199
|
+
- `all` renders as Chronicle `FromAll` for event-source-identity mappings, including
|
|
200
|
+
unrelated event types/sources.
|
|
201
|
+
Requires Stage 4.91.0; older renderers refuse it.
|
|
202
|
+
Every property it leaves unmapped must be optional, text (not an enum) or a single
|
|
203
|
+
composite object so unrelated instances keep it unset, not a value-type default
|
|
204
|
+
Requires Stage 4.93.0 for this check; older renderers can silently materialize defaults.
|
|
205
|
+
- Refused in a scope (`STAGE-ESM-017`): composite keys; empty/literal `all` mappings;
|
|
206
|
+
unmapped `all` properties outside that nullable subset; `every` with
|
|
160
207
|
children included beside children or nested blocks; root `remove via join`; joins,
|
|
161
208
|
children or join removals inside `nested`; a `clear` inside `nested`; recursive children
|
|
162
209
|
and joins inside a child; duplicate event contracts among `from`, join or
|
|
@@ -180,9 +227,10 @@ same slice, a required Guid or text identifier and a matching keyed query. Code
|
|
|
180
227
|
|
|
181
228
|
## Specification rules (`STAGE-ESM-011`)
|
|
182
229
|
|
|
183
|
-
- A specification needs a `when <Command>` of its own slice
|
|
184
|
-
|
|
185
|
-
|
|
230
|
+
- A command-action specification needs a `when <Command>` of its own slice
|
|
231
|
+
(`PLAY0273` otherwise). Assert all productions taken by its condition witnesses,
|
|
232
|
+
not skipped ones; use `then no events` for accepted no-effect behavior. A view/query
|
|
233
|
+
assertion does not excuse omitting events that were produced.
|
|
186
234
|
- A `given caller` with a role-claim URI is refused; `role "X"` is accepted. `then denied`
|
|
187
235
|
needs an authorized command and a `given caller`; a `then query` on a protected query
|
|
188
236
|
needs a `given caller`.
|
|
@@ -50,8 +50,8 @@ The semantic Host encrypts personal-data and secret concepts at rest through Chr
|
|
|
50
50
|
releases values on read; erasure deletes event-source keys. Encryption applies to new
|
|
51
51
|
writes only: events already stored in plaintext in an existing Play store are not
|
|
52
52
|
retroactively encrypted, and key deletion is not erasure of those earlier plaintext events.
|
|
53
|
-
It does not supply explicit subject lineage. Non-text `secret` concepts
|
|
54
|
-
PII only
|
|
53
|
+
It does not supply explicit subject lineage. Non-text `secret` concepts render/run in their original types
|
|
54
|
+
(Requires Stage 4.96.0); older engines report `STAGE-ESM-041`. `pii secret` uses PII only. It executes equality filters, but its specification executor refuses filtered
|
|
55
55
|
query assertions with `STAGE-ESM-010`.
|
|
56
56
|
|
|
57
57
|
The semantic Host exposes `POST /stage/semantic/specifications/run`, running fresh isolated
|
|
@@ -500,7 +500,9 @@
|
|
|
500
500
|
"cratis-chronicle-reactor",
|
|
501
501
|
"cratis-chronicle-read-model",
|
|
502
502
|
"cratis-chronicle-reducer",
|
|
503
|
-
"cratis-event-model-diagram"
|
|
503
|
+
"cratis-event-model-diagram",
|
|
504
|
+
"cratis-multi-service-architecture",
|
|
505
|
+
"cratis-multi-service-local-orchestration"
|
|
504
506
|
],
|
|
505
507
|
"languages": [
|
|
506
508
|
"csharp",
|