@cratis/pi 7.40.0 → 7.42.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/local-work-artifacts.instructions.md +12 -6
- package/package/corpus/harnesses/pi/extensions/cratis-hooks/index.ts +35 -2
- package/package/corpus/hooks/README.md +24 -0
- package/package/corpus/hooks/scripts/cratis-cleanup-worktrees.sh +184 -0
- package/package/corpus/hooks/settings.template.json +21 -0
- package/package/corpus/product-sync.json +10 -10
- package/package/corpus/prompts/ship-changes.prompt.md +15 -0
- package/package/corpus/rules/local-work-artifacts.md +12 -6
- package/package/corpus/skills/cratis-arc-command/references/generated-values.md +3 -2
- package/package/corpus/skills/cratis-chronicle-reactor/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/SKILL.md +3 -3
- 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 +5 -4
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/todo-list-example.md +1 -1
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/SKILL.md +5 -5
- 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 +7 -6
- package/package/corpus/skills/cratis-screenplay-command-surface/references/enum-numbers.md +4 -4
- package/package/corpus/skills/cratis-screenplay-command-surface/references/generated-values-and-responses.md +137 -50
- package/package/corpus/skills/cratis-screenplay-command-surface/verification.json +12 -7
- package/package/corpus/skills/cratis-screenplay-event-modeling/SKILL.md +7 -7
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/nine-steps.md +1 -1
- 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 +1 -1
- 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 -10
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/SKILL.md +11 -11
- 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 +4 -4
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/renderability-gate.md +5 -5
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/verification.json +1 -1
- 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 +10 -3
- package/package/corpus/skills/cratis-screenplay-specifications/references/reactions-and-cascades.md +5 -5
- 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 +1 -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 +17 -13
- package/package/corpus/skills/cratis-screenplay-toolchain/references/cheat-sheet-example.md +2 -2
- package/package/corpus/skills/cratis-screenplay-toolchain/references/diagnostics.md +6 -3
- package/package/corpus/skills/cratis-screenplay-toolchain/references/doc-contradictions.md +2 -2
- package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-subset.md +26 -21
- 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/renderable-subset.md +32 -32
- 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 +2 -2
- package/package/corpus/skills/cratis-screenplay-toolchain/references/traps.md +3 -3
- package/package/corpus/skills/cratis-screenplay-toolchain/references/verdicts.md +2 -2
- package/package/corpus/skills/cratis-screenplay-toolchain/references/versions.md +50 -38
- package/package/corpus/skills/cratis-screenplay-toolchain/verification.json +8 -6
- package/package/corpus/skills/cratis-screenplay-ui-composition/SKILL.md +5 -4
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/response-continuations.md +109 -0
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/worked-flow.md +1 -1
- package/package/corpus/skills/cratis-screenplay-ui-composition/verification.json +5 -0
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/SKILL.md +17 -18
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/admission.md +47 -35
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/rendered-application.md +7 -7
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/sandbox-and-specrunner.md +20 -8
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/scene-runtime.md +1 -1
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/verification.json +4 -1
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
- Admitted on both compilers
|
|
7
7
|
- Equality query filters (ESM v14, since 4.143.0)
|
|
8
8
|
- Admitted from Screenplay 4.61 (ESM v6): standalone tool and cratis 3.28.2 or later
|
|
9
|
-
- Generated values and responses (ESM v7):
|
|
9
|
+
- Generated values and responses (ESM v7/v15): current compiler and renderer boundaries
|
|
10
10
|
- Released public boundaries and observer routes
|
|
11
11
|
- Code attachments (what binds, what never does)
|
|
12
12
|
- Refused (code, reason): fix, or record as a mode gap
|
|
@@ -18,13 +18,14 @@ Current pins: `versions.md`. Detailed
|
|
|
18
18
|
admits routes as ESM v8, public/direction constructs as v9, identity/overrides/filters
|
|
19
19
|
as v10, qualifying non-route Double literals as v11 (exact lowering of Double-mode literals)
|
|
20
20
|
and non-positional enum numbers as v12; concept compliance as v13; caller-supplied
|
|
21
|
-
collection equality filters as v14 since 4.143.0
|
|
21
|
+
collection equality filters as v14 since 4.143.0; concept generation strategies/freshness
|
|
22
|
+
as v15 since 4.147.0. Operations, the `numbers exact` **source mode** (PLAY0268) and
|
|
22
23
|
reaction refusals/redelivery remain unadmitted. Use the actual
|
|
23
24
|
binder before promoting an older probe to a current capability claim.
|
|
24
25
|
|
|
25
26
|
What the binder admits, and what it refuses with which code. The answer depends on the
|
|
26
|
-
compiler version: the standalone tool (4.
|
|
27
|
-
3.
|
|
27
|
+
compiler version: the standalone tool (4.148.0) binds through v15; the compiler bundled in cratis
|
|
28
|
+
3.57.0 (4.147.1) and its renderer admit through v15; older bundles (4.66.0 in cratis 3.28.x, admitting v1 to v6; 4.60.1 before 3.28.2, v1 to v5)
|
|
28
29
|
are history.
|
|
29
30
|
Tool facts and the exact v6 messages: `versions.md`. Always name
|
|
30
31
|
the tool with a V2 or V3 result. When tool and documentation disagree, the tool decides
|
|
@@ -39,7 +40,7 @@ never bind (`verdicts.md`).
|
|
|
39
40
|
Complete examples that bind live in `executable-example.md` (both compilers),
|
|
40
41
|
`pdl-example.md` (projections, both compilers) and `automation-translate-example.md`
|
|
41
42
|
(ESM v6; standalone tool and cratis 3.28.2 or later) and `generated-responses-example.md`
|
|
42
|
-
(ESM v7; standalone tool 4.68.0 or later, and the cratis 3.
|
|
43
|
+
(ESM v7; standalone tool 4.68.0 or later, and the cratis 3.57.0 bundle).
|
|
43
44
|
|
|
44
45
|
## Caller and compliance boundary (4.142.0)
|
|
45
46
|
|
|
@@ -51,7 +52,7 @@ readiness. Executable reads of declared `$identity.<detail>` do (PLAY0268);
|
|
|
51
52
|
`$context.identity` remains built-ins only. Purposes and event `subject` marks
|
|
52
53
|
are metadata (PLAY0270), not source resolution, retention or subject propagation.
|
|
53
54
|
Bare `pii`/`personal` and `secret` concepts, scopes and qualifiers bind as v13
|
|
54
|
-
on standalone 4.142.0; CLI 3.
|
|
55
|
+
on standalone 4.142.0; CLI 3.57.0 bundles Screenplay 4.147.1, which binds them too. Enum/identity
|
|
55
56
|
compliance and events mixing protected values with explicit subject marks remain
|
|
56
57
|
refused; see command-surface `references/compliance.md` for the precise boundary.
|
|
57
58
|
Legacy spellings compile with PLAY0565 information; duplicates warn PLAY0653.
|
|
@@ -106,9 +107,9 @@ same-named scalar primitive/concept/enum property of the same nominal type
|
|
|
106
107
|
filters AND with `by`; optional omission does not narrow, supplied null is refused.
|
|
107
108
|
`then query … arguments` and `when query` accept both `by` and filters; PLAY0468
|
|
108
109
|
reports unknown/repeated/missing required arguments. Collection results match by
|
|
109
|
-
read model/key regardless of row order. The standalone 4.
|
|
110
|
-
CLI 3.
|
|
111
|
-
|
|
110
|
+
read model/key regardless of row order. The standalone 4.148.0 pin admits this;
|
|
111
|
+
CLI 3.57.0's 4.147.1 compiler and Stage 4.89.1 admit it through v15, subject to
|
|
112
|
+
construct checks (snapshot lists/DateTime filters/parameter order still refuse). Complete compiled specs:
|
|
112
113
|
read-surface [equality filters](../../cratis-screenplay-read-surface/references/equality-filters.md).
|
|
113
114
|
|
|
114
115
|
## Admitted from Screenplay 4.61 (ESM v6): standalone tool and cratis 3.28.2 or later
|
|
@@ -118,7 +119,7 @@ read-surface [equality filters](../../cratis-screenplay-read-surface/references/
|
|
|
118
119
|
...` with an explicit `for`. Without a declared actor, a gated invocation denies.
|
|
119
120
|
On 4.125.0 reaction `runs as system role "<Role>"` supplies the actor and
|
|
120
121
|
selects ESM v10; keep the gate. CLI 3.41.0's older compiler rejected this syntax;
|
|
121
|
-
The pinned CLI bundle (`versions.md`) supports it,
|
|
122
|
+
The pinned CLI bundle (`versions.md`) supports it, and Stage renders role/authenticated reaction identity; claim-reading/opaque gates retain STAGE-ESM-034.
|
|
122
123
|
Standalone reference execution admits it.
|
|
123
124
|
- Application `trigger` declarations and `when trigger` specifications.
|
|
124
125
|
- `slice Translate` with `capture` (`key`, `map ... translate`, `append ... when x from "a"
|
|
@@ -130,20 +131,24 @@ read-surface [equality filters](../../cratis-screenplay-read-surface/references/
|
|
|
130
131
|
- Command specifications that list reaction cascades (no false PLAY0285).
|
|
131
132
|
- In a `then` list after `when append`, only what followed the appended event.
|
|
132
133
|
|
|
133
|
-
## Generated values and responses (ESM v7):
|
|
134
|
+
## Generated values and responses (ESM v7/v15): current compiler and renderer boundaries
|
|
134
135
|
|
|
135
136
|
Facts read at `v4.68.0`: decision 0026 and `Documentation/screenplay/{commands,specifications,interoperability}.md`.
|
|
136
137
|
A model selects ESM v7 only when it uses a generated property, a response, a generated fixture or a `then returns`
|
|
137
138
|
expectation; every other model keeps its version, bytes and revision. The cratis CLI 3.28.3 (bundled 4.66.0)
|
|
138
|
-
reported `PLAY0268` for these constructs (history). The current CLI (3.
|
|
139
|
-
and Stage 4.
|
|
139
|
+
reported `PLAY0268` for these constructs (history). The current CLI (3.57.0, bundled 4.147.1) binds them
|
|
140
|
+
and Stage 4.89.1 renders supported UUID/String strategies, v15 freshness, scalar/named responses,
|
|
140
141
|
fixtures and `then returns`. Unsupported generated types (`-028`) and result combinations
|
|
141
142
|
(`-038`) remain refused; see `renderable-subset.md` and command-surface
|
|
142
|
-
`references/generated-values-and-responses.md`.
|
|
143
|
-
`generated-
|
|
143
|
+
`references/generated-values-and-responses.md`. The v15 rules below are sourced at
|
|
144
|
+
Screenplay `v4.148.0:Documentation/screenplay/generated-values.md:26-60`.
|
|
145
|
+
Complete examples: `generated-responses-example.md`, `generation-strategies-example.md`.
|
|
144
146
|
|
|
145
|
-
- A generated property is command-only, required, scalar and a concept backed by
|
|
146
|
-
types are invalid.
|
|
147
|
+
- A generated property is command-only, required, scalar and a generatable concept backed by Uuid or String;
|
|
148
|
+
bare primitives, optional and collection types are invalid. Uuid has implicit `uuid`; String needs a strategy.
|
|
149
|
+
Explicit serialized generation selects v15, with strict fixture encoding and whole-source freshness for all
|
|
150
|
+
generated destinations. `pattern`, `random`, `rule`, `sequence`, generated rules/secrets remain unadmitted.
|
|
151
|
+
See command-surface `references/generated-values-and-responses.md` and `generation-strategies-example.md`. Modifier order is `Type optional generated identifier`.
|
|
147
152
|
- Generated values are not request inputs, form fields, invocation arguments or ordinary `when` values. Generation
|
|
148
153
|
runs after authorization and validation and before productions, so a denial or a validation failure never
|
|
149
154
|
reaches it.
|
|
@@ -183,7 +188,7 @@ Qualifying retained non-route Double literals bind/reference-execute as v11 on
|
|
|
183
188
|
Non-positional enum member numbers bind as ESM v12 from 4.139.0; positional
|
|
184
189
|
pins preserve the earlier executable version/bytes. The optional canonical last
|
|
185
190
|
`numbers` array parallels `values`; specifications still use member names.
|
|
186
|
-
Consumers must admit v12 explicitly; CLI 3.
|
|
191
|
+
Consumers must admit v12 explicitly; CLI 3.57.0/Stage 4.89.1 do. Syntax:
|
|
187
192
|
command-surface `references/enum-numbers.md`; version contract: `versions.md`.
|
|
188
193
|
|
|
189
194
|
Concept `pii`/`personal` and `secret`, qualifiers and scopes bind as optional
|
|
@@ -191,7 +196,7 @@ Concept `pii`/`personal` and `secret`, qualifiers and scopes bind as optional
|
|
|
191
196
|
report-only PLAY0270; reference execution proves neither encryption nor erasure.
|
|
192
197
|
Enum/identity concepts and an event combining personal or explicitly subject-scoped
|
|
193
198
|
secret values with an explicit `subject` mark refuse PLAY0268 at binding only.
|
|
194
|
-
CLI 3.
|
|
199
|
+
CLI 3.57.0 bundles Screenplay 4.147.1 / Stage 4.89.1 and renders v13 concept
|
|
195
200
|
protection; protected identities/enums still refuse `STAGE-ESM-040`. Preserve protection, not a falsely green bind.
|
|
196
201
|
|
|
197
202
|
## Code attachments (what binds, what never does)
|
|
@@ -237,7 +242,7 @@ bodies still leave their owner non-executable.
|
|
|
237
242
|
| --- | --- | --- |
|
|
238
243
|
| `Automation` or `Translate` slice, `reaction`, `capture`, `trigger`; `given clock`, `when clock`, `when trigger`, `when capture` | PLAY0268 | **cratis before 3.28.2 bundles only** (4.60.1); messages in `versions.md` |
|
|
239
244
|
| Unquoted `import Other.Contract` | PLAY0268 | external contract import is not bound |
|
|
240
|
-
| `pii` or `secret` on a concept | PLAY0268 | Historical blanket refusal on CLI 3.53.1's 4.137.0 bundle only. CLI 3.
|
|
245
|
+
| `pii` or `secret` on a concept | PLAY0268 | Historical blanket refusal on CLI 3.53.1's 4.137.0 bundle only. CLI 3.57.0 and standalone 4.142.0+ admit v13 except enum/identity compliance and events mixing personal or explicitly subject-scoped secret values with explicit subject marks; see `compliance.md` in command-surface references |
|
|
241
246
|
| `query` with a composite `by` block, or `by ... from` context-derived arguments | PLAY0268 | composite `by` blocks remain unadmitted (#599). An optional scalar snapshot lookup, an unfiltered list (`RM[]`) and a list narrowed by one caller-supplied `by` key bind, in their `observable` form too (since 4.105.0) |
|
|
242
247
|
| Context `from`, single-result filters, `scoped to`, `performer` queries | PLAY0268 | Typed query context, filtering of single results, opaque scope and query implementation remain unadmitted; each refusal names its reason. Caller-supplied collection equality filters bind as v14. `observable` goes in the return position (`=> observable RM[]`); as a body line it is PLAY0048 |
|
|
243
248
|
| `contains` or `starts with` in conditions | PLAY0268 | equality and numeric ordering only |
|
|
@@ -280,7 +285,7 @@ bodies still leave their owner non-executable.
|
|
|
280
285
|
Do not remove `pii`, `secret`, `authorize` or policies, list queries, automations or
|
|
281
286
|
rules a domain needs just to make binding pass. Report `V3 blocked: <codes>` and record the
|
|
282
287
|
slice in the gap list. A `pii` or `secret` marker selects v13 on standalone
|
|
283
|
-
4.142.0 (since 4.141.0). CLI 3.
|
|
288
|
+
4.142.0 (since 4.141.0). CLI 3.57.0 bundles Screenplay 4.147.1 / Stage 4.89.1, which renders concept
|
|
284
289
|
protection; protected identities/enums still refuse `STAGE-ESM-040`. Either attribute on an identifier or typed destination is a source error
|
|
285
290
|
PLAY0515 on the current compiler (including stream-id parts and route mapping
|
|
286
291
|
sources). Chronicle also rejects `[PII]`/`[Encrypted]` on event-source identifiers
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Generation strategies example (ESM v15)
|
|
2
|
+
|
|
3
|
+
A deterministic UUIDv7 identifier and NanoID receipt, with an accepted response
|
|
4
|
+
and a reused-source rejection. Fixtures, not random seeds, make this executable.
|
|
5
|
+
Source contract: Cratis/Screenplay `v4.148.0:Documentation/screenplay/generated-values.md:30-60`;
|
|
6
|
+
strategy encodings: `generated-values/strategies.md:34-89`.
|
|
7
|
+
|
|
8
|
+
```screenplay
|
|
9
|
+
concept InvoiceId : Uuid
|
|
10
|
+
generate uuidv7
|
|
11
|
+
concept Receipt : String
|
|
12
|
+
generate nanoid
|
|
13
|
+
module Billing
|
|
14
|
+
feature Drafts
|
|
15
|
+
slice StateChange Start
|
|
16
|
+
command StartDraft
|
|
17
|
+
invoiceId InvoiceId generated identifier
|
|
18
|
+
receipt Receipt generated
|
|
19
|
+
produces event DraftStarted
|
|
20
|
+
receipt Receipt = receipt
|
|
21
|
+
returns invoiceId
|
|
22
|
+
specification StartsWithPinnedValues
|
|
23
|
+
when StartDraft
|
|
24
|
+
for "00112233-4455-7677-8899-aabbccddeeff"
|
|
25
|
+
generated receipt = "abcdefghijklmnopqrstu"
|
|
26
|
+
then DraftStarted
|
|
27
|
+
for "00112233-4455-7677-8899-aabbccddeeff"
|
|
28
|
+
receipt = "abcdefghijklmnopqrstu"
|
|
29
|
+
then returns "00112233-4455-7677-8899-aabbccddeeff"
|
|
30
|
+
specification RejectsAUsedGeneratedSource
|
|
31
|
+
given DraftStarted
|
|
32
|
+
for "00112233-4455-7677-8899-aabbccddeeff"
|
|
33
|
+
receipt = "abcdefghijklmnopqrstu"
|
|
34
|
+
when StartDraft
|
|
35
|
+
for "00112233-4455-7677-8899-aabbccddeeff"
|
|
36
|
+
generated receipt = "abcdefghijklmnopqrstu"
|
|
37
|
+
then error "A generated event source already has facts; retry the command with a fresh generated value."
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
The rejection appends no new facts and returns no response. v15 guards the whole
|
|
41
|
+
source even if the old fact uses another stream or event type. Removing every
|
|
42
|
+
serialized generation strategy restores the earlier Unguarded contract, not an
|
|
43
|
+
alternative way to make a stale-source specification pass.
|
|
@@ -108,8 +108,11 @@ contract. A consumer admitting v10 must include all three, not just identity.
|
|
|
108
108
|
Composite **read-model** keys are separate and remain unadmitted (PLAY0268, #599).
|
|
109
109
|
|
|
110
110
|
Previous CLI 3.46.1/Stage 4.52.0 refused versions above v7 before planning.
|
|
111
|
-
The pinned CLI/Stage pair (`versions.md`) admits through
|
|
112
|
-
still refuse STAGE-ESM-036
|
|
111
|
+
The pinned CLI/Stage pair (`versions.md`) admits through v15 to construct checks: production overrides
|
|
112
|
+
still refuse STAGE-ESM-036; reaction/reducer filters render on the semantic path,
|
|
113
|
+
while legacy syntax paths retain STAGE-ESM-035.
|
|
114
|
+
Source: Stage `v4.89.1:Source/Rendering.Cratis/Semantics/SemanticVersionFeatureAdmission.cs:27-34`,
|
|
115
|
+
`Documentation/reference/reaction-rendering.md:33-34,83-98`.
|
|
113
116
|
A supported version number alone never proves target support or a passing render.
|
|
114
117
|
|
|
115
118
|
Source: Screenplay `v4.135.0:Documentation/screenplay/{event-sources,readmodels,reactions,diagnostics}.md`,
|
|
@@ -2,25 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
## Contents
|
|
4
4
|
|
|
5
|
-
- Current admission (Stage 4.
|
|
5
|
+
- Current admission (Stage 4.89.1)
|
|
6
6
|
- Historical: what Stage 4.24 admitted
|
|
7
7
|
- Authoring consequences in renderable mode
|
|
8
8
|
- Ownership, publication and recovery
|
|
9
9
|
- Reading V5
|
|
10
10
|
|
|
11
|
-
Current compiler/CLI/Stage pins: `versions.md`. CLI 3.
|
|
12
|
-
checks, not blanket rendering; above
|
|
13
|
-
STAGE-ESM-016).
|
|
14
|
-
|
|
15
|
-
reducer filters render. v8 routed read-model/query companion replay now renders; reserved names and
|
|
11
|
+
Current compiler/CLI/Stage pins: `versions.md`. CLI 3.57.0 / Stage 4.89.1 admit through v15 to construct
|
|
12
|
+
checks, not blanket rendering; above v15 is CLI-RENDER-004 (direct Stage:
|
|
13
|
+
STAGE-ESM-016). Public/foreign facts and production overrides retain 032/033/036.
|
|
14
|
+
Reaction identity renders role/authenticated gates, not claim-reading/opaque gates (034).
|
|
15
|
+
Reaction and reducer filters render on the semantic path; legacy paths retain 034/035. v8 routed read-model/query companion replay now renders; reserved names and
|
|
16
16
|
unformattable fixtures remain STAGE-ESM-030 (Stage
|
|
17
|
-
`v4.
|
|
17
|
+
`v4.89.1:Documentation/reference/event-source-routing.md:62-72`). Case tables and v8+ `long`
|
|
18
18
|
whole numbers apply to the current default. Previous CLI 3.46.1/Stage 4.52.0
|
|
19
19
|
admitted only through v7 and applied neither newer rule. The historical v7 canonical-corpus check got
|
|
20
20
|
STAGE-ESM-028/029 for generated values/responses
|
|
21
21
|
(`v3.41.0:Source/Cli.Specs/for_ScreenplayPlanning/when_planning_an_esm_v7_model.cs`).
|
|
22
22
|
The following detailed Stage 4.24.x results are **historical**, not reverified
|
|
23
|
-
4.
|
|
23
|
+
4.89.1 claims. Non-positional enum numbers select v12 and now render through
|
|
24
24
|
the CLI bundle; concept compliance selects v13 and also renders. Run the bundled renderer before asserting current renderability.
|
|
25
25
|
|
|
26
26
|
Historical sources, all read at tags: Stage v4.24.1 `Source/Rendering.Cratis/Semantics/SemanticSurfaceLedger.cs`
|
|
@@ -31,38 +31,38 @@ render itself before claiming renderability: this table is a reading of the sour
|
|
|
31
31
|
render result.
|
|
32
32
|
|
|
33
33
|
Renderable is a strict subset of executable (`executable-subset.md`). Order of events in
|
|
34
|
-
`cratis render`: the CLI binds the **whole** model with its **bundled Screenplay** (4.
|
|
35
|
-
3.
|
|
34
|
+
`cratis render`: the CLI binds the **whole** model with its **bundled Screenplay** (4.147.1 in cratis
|
|
35
|
+
3.57.0, so PLAY0268 and friends appear first, even with `--scope`), then Stage admits or rejects
|
|
36
36
|
members of the selected scope. (Historical, cratis 3.28.2: an ESM v6 model bound but Stage refused it
|
|
37
37
|
whole with `STAGE-ESM-016`.)
|
|
38
38
|
|
|
39
|
-
## Current admission (Stage 4.
|
|
39
|
+
## Current admission (Stage 4.89.1)
|
|
40
40
|
|
|
41
|
-
Read at Stage `v4.
|
|
42
|
-
`SemanticVersionFeatureAdmission.cs:25-
|
|
43
|
-
`Documentation/
|
|
44
|
-
`v3.
|
|
45
|
-
Source reading, not a render run. Stage admits ESM v1 to
|
|
41
|
+
Read at Stage `v4.89.1` (`Source/Rendering.Cratis/Semantics/SemanticVersionFeatures.cs:105`,
|
|
42
|
+
`SemanticVersionFeatureAdmission.cs:25-46`, `SemanticCratisAdmission.StateView.cs:139-199`,
|
|
43
|
+
`Documentation/reference/reaction-rendering.md:57-98`, `generated-values-rendering.md:62-146`)
|
|
44
|
+
and CLI `v3.57.0:Source/Cli/Commands/Render/RenderedSemanticVersions.cs:34-47`.
|
|
45
|
+
Source reading, not a render run. Stage admits ESM v1 to v15 by
|
|
46
46
|
version; each construct it does not render refuses with its own code before any artifact is planned.
|
|
47
47
|
|
|
48
|
-
| Area | Renders at 4.
|
|
48
|
+
| Area | Renders at 4.89.1 | Refused (code) |
|
|
49
49
|
| --- | --- | --- |
|
|
50
|
-
| Slice kinds | `StateChange`, `StateView`, supported event-triggered `Automation` with Chronicle reactors | Translate, captures, non-event triggers, opaque bodies, clock/trigger/capture specs (`-024`); `runs as` (`-034`),
|
|
51
|
-
| Queries | optional keyed snapshot lookups; observable collections, keyed or unkeyed
|
|
50
|
+
| Slice kinds | `StateChange`, `StateView`, supported event-triggered `Automation` with Chronicle reactors | Translate, captures, non-event triggers, opaque bodies, clock/trigger/capture specs (`-024`); claim-reading/opaque `runs as` gates (`-034`), mixed effects from one handler (`-037`, redelivery can duplicate events), unsupported conditions/destinations/mappings (`-039`). Keep refused reactions whole |
|
|
51
|
+
| Queries | optional keyed snapshot lookups; observable collections, keyed or unkeyed, with v14 equality filters | a snapshot list: `STAGE-ESM-010`; context/single-result filters, opaque `scoped to`/`performer` and composite `by`: PLAY0268. DateTime filters and required parameters after optional filters refuse `-010`; filter-name collisions refuse `-012`; validated scalar keys render as primitives and convert inside the query (an out-of-rule key finds no instance), nested validated keys still refuse `-010` |
|
|
52
52
|
| Authorization | 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`), `not`/and/or; roles read through the identity's `RoleClaimType` | role-claim URIs, nested opaque policies, unresolved or non-portable policies, no single identifier, opaque-policy subjects that are not text, Uuid, Date or DateTime (`STAGE-ESM-015`; Stage 4.73.1 `IsTextualSubject`, a restriction separate from declarative claim targets) |
|
|
53
53
|
| Event sources, streams, routes (ESM v8) | rendered, including routed read-model/query companion replay | reserved stored names, unformattable routed fixtures (`STAGE-ESM-030`) |
|
|
54
54
|
| Numbers, case tables | whole numbers as `long` from ESM v8; case tables | out-of-`int` literals below v8 (`STAGE-ESM-031`) |
|
|
55
|
-
| Generated values and responses (v7) | required scalar UUID
|
|
56
|
-
| Enum numbers / compliance | explicit enum numbers (v12); concept `[PII]` or scoped `[Encrypted]` + `[NotAudited]` (v13), property-level `[NotAudited]` for protected command inputs | protected identities/enums (`-040`); explicit subject lineage remains unadmitted |
|
|
57
|
-
| Specifications |
|
|
58
|
-
| v9 and v10 | reducer
|
|
55
|
+
| Generated values and responses (v7/v15) | required scalar UUID/String strategies, Guarded v15 freshness, scalar/named responses, generation fixtures and `then returns` | unsupported generated types (`-028`); routed/generated-rule/legacy-allocation/unique-constraint/name-collision or unsupported response combinations, unpinned unordered/projected expectations (`-038`); no blanket `-029` refusal |
|
|
56
|
+
| Enum numbers / compliance | explicit enum numbers (v12); concept `[PII]` or scoped `[Encrypted]` + `[NotAudited]` (v13), property-level `[NotAudited]` for protected command inputs | protected identities/enums (`-040`); non-text secrets (`-041`, not `pii secret`); explicit subject lineage remains unadmitted |
|
|
57
|
+
| Specifications | command scenarios and supported single-hop reaction appends; Stage's `admission.md` | appends outside the single-hop subset and commands cascading into reactions (`-011`); `then no readmodel` (`-027`); an unauthenticated caller carrying roles or claims, `$context.occurred`-derived fixed values asserted (`-011`) |
|
|
58
|
+
| v9 and v10 | reaction/reducer `from` filters; role/authenticated `runs as` | public events and event-target projections (`-032`); foreign origins and event-source captures (`-033`); directed Translate (`-024`); claim-reading/opaque `runs as` gates (`-034`); legacy `from` (`-035`); per-production route overrides (`-036`) |
|
|
59
59
|
| Evolved events | initial revisions only | `STAGE-ESM-026` (Stage#204) |
|
|
60
60
|
| Descriptions, documentation | XML `<summary>`/`<remarks>` doc comments only (Stage#178 closed) | characters invalid in XML: `CLI-RENDER-005`; never behavior |
|
|
61
61
|
|
|
62
|
-
CLI 3.
|
|
62
|
+
CLI 3.57.0 bundles Screenplay 4.147.1. That compiler still refuses `reads` and
|
|
63
63
|
`concurrency` (PLAY0271), command `handler`s (PLAY0268) at binding, before Stage
|
|
64
|
-
admission. It binds
|
|
65
|
-
|
|
64
|
+
admission. It binds through v15; supported filters and strategies render.
|
|
65
|
+
Response-name authoring scopes are in standalone 4.148.0, not this bundle or Scene runtime. Rows below naming Stage 4.24
|
|
66
66
|
behavior are historical.
|
|
67
67
|
|
|
68
68
|
## Historical: what Stage 4.24 admitted
|
|
@@ -96,8 +96,8 @@ whole automation is hand-written (gap-fill).
|
|
|
96
96
|
At standalone 4.127.0, compliance uses bare `pii`/`secret` (legacy markers are
|
|
97
97
|
accepted with PLAY0565 information); either still refuses binding on that compiler.
|
|
98
98
|
Standalone 4.142.0 admits concept compliance as v13 (from 4.141.0) with narrower refusals
|
|
99
|
-
(command-surface `references/compliance.md`). CLI 3.
|
|
100
|
-
4.
|
|
99
|
+
(command-surface `references/compliance.md`). CLI 3.57.0 bundles Screenplay
|
|
100
|
+
4.147.1 / Stage 4.89.1 and renders concept protection as v13. Identity blocks,
|
|
101
101
|
purposes and event `subject` are authoring metadata, not provider realization;
|
|
102
102
|
executing identity detail reads still refuses PLAY0268. Current source/stream
|
|
103
103
|
routes are admitted as v8, including composite ids, not the historical binding
|
|
@@ -108,13 +108,13 @@ legacy ids or drop protected ids into routing to fit a renderer (PLAY0515).
|
|
|
108
108
|
|
|
109
109
|
- `produces when` is STAGE-ESM-006: split conditional outcomes into separate commands, or
|
|
110
110
|
record the slice as non-renderable (gap-fill) without distorting a design-mode model.
|
|
111
|
-
-
|
|
111
|
+
- Only supported single-hop reaction `when append` specifications render; no general when-less event-replay proofs. Prove a projection
|
|
112
112
|
with a command-action scenario (given events, `when <Command>`, `then query` or `then
|
|
113
113
|
readmodel`). The seeded when-less `then query` only checks a lookup over a given read-model
|
|
114
114
|
state; it proves no projection (Stage `SemanticSpecificationAdmission.Callers.cs`).
|
|
115
115
|
- Use `$context.occurred` only; no `$context.identity.*` mappings.
|
|
116
|
-
- A list query binds (unfiltered, or narrowed by one `by` key); Stage 4.
|
|
117
|
-
`observable` collection, and refuses a snapshot list with `STAGE-ESM-010
|
|
116
|
+
- A list query binds (unfiltered, or narrowed by one `by` key); Stage 4.89.1 renders it only as an
|
|
117
|
+
`observable` collection, including supported equality filters, and refuses a snapshot list with `STAGE-ESM-010`;
|
|
118
118
|
context/single-result filters, opaque `scoped to` and `performer` block binding. Keep a list the domain needs and report
|
|
119
119
|
the capability gap; marking it `observable` or keying it is a modeling decision for the user.
|
|
120
120
|
- A `handler` (with or without `implementation` or `hint`) never binds; the slice is
|
|
@@ -140,7 +140,7 @@ legacy ids or drop protected ids into routing to fit a renderer (PLAY0515).
|
|
|
140
140
|
`Customizations/styles.css`. The planner never reads it, and it never binds a modeled
|
|
141
141
|
reaction or capture. A customization never makes a rejected model renderable.
|
|
142
142
|
- `cratis render` does **not** build, test or run the application.
|
|
143
|
-
- Stage 4.
|
|
143
|
+
- Stage 4.89.1's scaffold pins .NET 10 and Arc and Chronicle client/kernel releases
|
|
144
144
|
and emits a `.frontend/` React/Vite app (Components and Scene releases pinned too); these are not the latest
|
|
145
145
|
releases (`cratis-stage-rendering-and-sandbox` `references/rendered-application.md`).
|
|
146
146
|
`CratisEmbeddedScreenplayEnabled=false`; `Directory.Packages.props` is managed,
|