@cratis/pi 7.46.0 → 7.47.1
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 +3 -3
- package/package/corpus/skills/cratis-arc-command/references/shop-generation.md +3 -1
- package/package/corpus/skills/cratis-fundamentals-concept/references/shop-generation.md +3 -1
- package/package/corpus/skills/cratis-screenplay-command-surface/references/generated-values-and-responses.md +3 -2
- package/package/corpus/skills/cratis-screenplay-command-surface/references/shop-generation.md +2 -1
- package/package/corpus/skills/cratis-screenplay-model-authoring/SKILL.md +13 -14
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/language-reference.md +1 -1
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-loop.md +3 -3
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-tools.md +26 -15
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/property-links.md +11 -7
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/release-baseline.md +140 -0
- package/package/corpus/skills/cratis-screenplay-model-authoring/verification.json +16 -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 +1 -1
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/delivery-protocol.md +1 -1
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +7 -4
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution-example.md +5 -4
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution.md +50 -23
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/verification.json +7 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/SKILL.md +2 -2
- package/package/corpus/skills/cratis-screenplay-toolchain/references/diagnostics.md +13 -11
- package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-subset.md +2 -2
- package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract-exceptions.json +7 -0
- package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract.json +963 -7
- package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract.version +1 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/references/verdicts.md +12 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/references/versions.md +51 -7
- package/package/corpus/skills/cratis-screenplay-toolchain/verification.json +5 -1
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/SKILL.md +9 -6
- package/package.json +1 -1
package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
## Contents
|
|
4
4
|
|
|
5
5
|
- Classify the change
|
|
6
|
-
-
|
|
6
|
+
- Stored event names (ESM v16, 4.152.0)
|
|
7
7
|
- Enum identities are stored contracts
|
|
8
8
|
- Compatibility scenarios (write before editing)
|
|
9
9
|
- Identity rules
|
|
@@ -15,6 +15,17 @@ when old and new code run side by side. The best evolution is the one you avoid:
|
|
|
15
15
|
lifecycles and events that record what the business decided (not table rows) change less.
|
|
16
16
|
|
|
17
17
|
## Classify the change
|
|
18
|
+
|
|
19
|
+
**Screenplay 4.153.0 release baseline:** commit `.screenplay/release-baseline.json`,
|
|
20
|
+
written by explicit `screenplay baseline admit <root> --release <label>` in the release
|
|
21
|
+
job; gate later edits with `screenplay baseline check <root>`. Without a baseline,
|
|
22
|
+
current-property edits still require exactly one of `newGeneration` or
|
|
23
|
+
`eventNeverPersisted`; unadmitted revisions default to in-place edits; admitted
|
|
24
|
+
revisions accept only explicit `newGeneration`. Never hand-edit the sidecar except
|
|
25
|
+
a reviewed correction. The baseline freezes resolved shared schemas too, not just
|
|
26
|
+
event declaration text. Full CLI exits, MCP review and source evidence:
|
|
27
|
+
model-authoring [release baseline](../../cratis-screenplay-model-authoring/references/release-baseline.md).
|
|
28
|
+
|
|
18
29
|
Edit class depends on whether the event is **persisted** (facts may be stored: the model was
|
|
19
30
|
accepted, deployed or rendered into a running system; ask when unsure). Changing an
|
|
20
31
|
unpersisted event's members is an ordinary text edit when no `.screenplay/identities.json` exists; with it, adding or removing event properties changes catalog addresses and goes through MCP. Any change to a
|
|
@@ -29,29 +40,43 @@ compatibility scenarios below first; the identity owner then applies the change
|
|
|
29
40
|
| add a property with no sensible old value | the old fact lacks information | usually a **new event** for the new situation, or a separate fact recording the extra information | review with the expert |
|
|
30
41
|
| remove a property | yes, if no reader needs it | new generation without it; every reference fails with PLAY0273 until removed | contract evolution, check readers |
|
|
31
42
|
| change meaning (same name, different business fact) | **no** | **new event** with its own name; old event stays for history | identity: add, not rename |
|
|
32
|
-
| rename (same meaning) | yes | identity-aware rename by the identity owner; `id "OldName"`
|
|
43
|
+
| rename (same meaning) | yes | identity-aware rename by the identity owner; `id "OldName"` carries the old stored name in ESM v16; the target must admit it explicitly | identity-affecting |
|
|
33
44
|
| split one event into two / merge two | depends | new events from now on; never rewrite history; projections read both old and new | identity-affecting |
|
|
34
45
|
| rename a constraint | n/a | starts an empty index: values claimed before are unprotected. Ask first | identity-affecting |
|
|
35
46
|
|
|
36
|
-
##
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
Screenplay **4.
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
`
|
|
51
|
-
|
|
52
|
-
`
|
|
53
|
-
|
|
54
|
-
|
|
47
|
+
## Stored event names (ESM v16, 4.152.0)
|
|
48
|
+
|
|
49
|
+
A rename that keeps the same business fact and must read old stored events pins
|
|
50
|
+
its old stored name: `event NewName` with `id "OldName"`. Screenplay **4.152.0**
|
|
51
|
+
carries a differing pin as `storedName` on the current event contract and selects
|
|
52
|
+
ESM v16. All generations share that effective stored name (pin, otherwise name);
|
|
53
|
+
it does not replace or rehash the catalog's portable `EventContractId`.
|
|
54
|
+
|
|
55
|
+
Pins must be event-name identifiers: ASCII letter or underscore first, then word
|
|
56
|
+
characters, nonempty and without surrounding whitespace. Invalid pins, different
|
|
57
|
+
effective names across generations and duplicate stored names across the application
|
|
58
|
+
refuse binding with **PLAY0472**. An equal-name pin is a no-op: no `storedName`, no
|
|
59
|
+
v16 selection; PLAY0471 removal preserves ESM bytes. Models without differing pins
|
|
60
|
+
retain earlier versions, bytes and revisions. **The interim event-pin warning is retired**; MCP's
|
|
61
|
+
compatibility `eventPinWarnings` array is empty.
|
|
62
|
+
|
|
63
|
+
Consumers must explicitly admit v16 and preserve `storedName`, or refuse it.
|
|
64
|
+
Released Stage **4.92.0** and CLI **3.59.0** do not: Stage admits through v15 and
|
|
65
|
+
emits argument-free `[EventType]`; CLI still bundles Screenplay 4.147.1. Do not
|
|
66
|
+
promise rendered storage compatibility or remove the pin to make rendering pass.
|
|
67
|
+
A passing reference specification is not a stored-history test: reference facts
|
|
68
|
+
still use contract/display names. If an older renderer already stored events under
|
|
69
|
+
the new name, switching the stored type needs a reviewed baseline correction or
|
|
70
|
+
data migration, not a silent re-render. Release-baseline tooling ships in 4.153.0;
|
|
71
|
+
its `--from-esm` stored-name limitation is in the release-baseline reference.
|
|
72
|
+
|
|
73
|
+
Sources: Cratis/Screenplay `v4.152.0`, `Documentation/screenplay/events.md:116-124`,
|
|
74
|
+
`Source/DotNET/Screenplay/Semantics/SemanticModelBinder.StoredEventNames.cs:15-35`,
|
|
75
|
+
`SemanticModelBinder.Structure.cs:16-17,215` in the same folder, and
|
|
76
|
+
`Source/DotNET/Screenplay.Mcp/McpWorkspaces.Refactoring.cs:82`.
|
|
77
|
+
Target evidence: toolchain `references/versions.md` (Stored-name rendering boundary).
|
|
78
|
+
Source/stream stored names already travel in ESM v8; stream `All` remains reserved
|
|
79
|
+
regardless of a pin (toolchain `sources-and-streams.md`).
|
|
55
80
|
|
|
56
81
|
A test for "generation or new event": a new version must be convertible from the old one
|
|
57
82
|
without inventing facts. If it is not, it is a different event.
|
|
@@ -96,8 +121,10 @@ For each changed event, answer in the slice `documentation` or `STATE.md`:
|
|
|
96
121
|
- Generations of one event live in one slice; a same-named event in another slice is a
|
|
97
122
|
different contract, not a generation (and ambiguous to the binder).
|
|
98
123
|
- Leave `id` absent on new events; a pin equal to the event's current name is information
|
|
99
|
-
PLAY0471 (Screenplay `events.md`).
|
|
100
|
-
|
|
124
|
+
PLAY0471 (Screenplay `events.md`). Without a release baseline, renames pin by default;
|
|
125
|
+
"never persisted" requires storage evidence. With a baseline, an unadmitted event gets
|
|
126
|
+
no new pin; any admitted revision requires retaining its stored name and refuses
|
|
127
|
+
`eventNeverPersisted`. Inspect `eventRename.mutability` / `pinAdded` before apply.
|
|
101
128
|
- Every rename, move or removal of an event, constraint, command, read model, slice, feature
|
|
102
129
|
or module is identity-affecting and is done by the identity owner.
|
|
103
130
|
|
|
@@ -3,9 +3,15 @@
|
|
|
3
3
|
"input": "Review the stream identities in our Screenplay model, tell me whether two people can enrol in the last seat at once, and what happens when a client retries after a lost reply.",
|
|
4
4
|
"fixtures": [],
|
|
5
5
|
"assertions": [
|
|
6
|
+
{ "kind": "skill-contains", "value": "revisions need `newGeneration`" },
|
|
7
|
+
{ "kind": "skill-contains", "value": "unadmitted revisions default to in-place edits", "file": "references/evolution.md" },
|
|
8
|
+
{ "kind": "skill-contains", "value": "screenplay baseline check", "file": "references/evolution.md" },
|
|
6
9
|
{ "kind": "play-compiles" },
|
|
7
10
|
{ "kind": "skill-contains", "value": "stream name exactly `All`" },
|
|
8
|
-
{ "kind": "skill-contains", "value": "
|
|
11
|
+
{ "kind": "skill-contains", "value": "**The interim event-pin warning is retired**", "file": "references/evolution.md" },
|
|
12
|
+
{ "kind": "skill-contains", "value": "duplicate stored names across the application", "file": "references/evolution.md" },
|
|
13
|
+
{ "kind": "skill-contains", "value": "An equal-name pin is a no-op", "file": "references/evolution.md" },
|
|
14
|
+
{ "kind": "skill-contains", "value": "Consumers must explicitly admit v16 and preserve `storedName`", "file": "references/evolution.md" },
|
|
9
15
|
{ "kind": "skill-contains", "value": "never arrives leaves the child absent", "file": "references/consistency-and-concurrency.md" },
|
|
10
16
|
{ "kind": "skill-contains", "value": "one business identity per stream" },
|
|
11
17
|
{ "kind": "skill-contains", "value": "NOT enforced in the model today" },
|
|
@@ -24,7 +24,7 @@ files is one application: always check the folder, never one file of it.
|
|
|
24
24
|
|
|
25
25
|
When choosing or upgrading a tool, or checking version-specific capabilities, read `references/versions.md`; it is the only version table, and other skills point to it. For exact diagnostic codes, MCP names/parameters and standalone CLI options, search the large published [references/screenplay-contract.json](references/screenplay-contract.json), pinned by [references/screenplay-contract.version](references/screenplay-contract.version), rather than loading it in full. Locate a diagnostic by its exact `code` (for example `"code": "PLAY0029"`), a tool by its exact `name` (for example `"name": "read-workspace"`), or a command in `cliCommands`; read the matched object for retirement, parameters or options. [references/screenplay-contract-exceptions.json](references/screenplay-contract-exceptions.json) records reasoned exceptions for historical statements; it does not change the current contract.
|
|
26
26
|
|
|
27
|
-
The standalone pin is Screenplay 4.
|
|
27
|
+
The standalone pin is Screenplay 4.153.0.
|
|
28
28
|
CLI and bundled package pins: `references/versions.md`. The single version table records
|
|
29
29
|
released source evidence and historical probes separately; do not relabel an old
|
|
30
30
|
render/browser result as a probe of the current packages.
|
|
@@ -46,7 +46,7 @@ or the current standalone pin.
|
|
|
46
46
|
3. **Pick the compiler deliberately and name it.** Standalone `screenplay` for
|
|
47
47
|
current language checks and reference specifications; `cratis` for rendering
|
|
48
48
|
and generation. Bundled and standalone versions differ (CLI 3.57.0 bundles 4.147.1;
|
|
49
|
-
the standalone pin is 4.
|
|
49
|
+
the standalone pin is 4.153.0). Report both tool and
|
|
50
50
|
version, rather than transferring a verdict across releases.
|
|
51
51
|
4. **Know the mode** (design, executable, renderable) and write from its subset.
|
|
52
52
|
5. **Capability is not correctness.** The tool you ran decides what is accepted today; the
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
- Source reference and identifier checks
|
|
7
7
|
- Public events and translation direction
|
|
8
8
|
- Explicit enum member numbers
|
|
9
|
-
- Reserved stored names and event
|
|
9
|
+
- Reserved stored names and event pins (4.152.0)
|
|
10
10
|
- Named keys, production routes and observer filters
|
|
11
11
|
- Caller identity, compliance and routes
|
|
12
12
|
- Specification metadata, callers, cases and locators
|
|
@@ -99,23 +99,25 @@ remain specification values. Non-positional pins select v12; positional pins kee
|
|
|
99
99
|
older executable bytes/version. Consumer admission is separate (`versions.md`).
|
|
100
100
|
Source: `v4.139.0:Documentation/screenplay/diagnostics.md`, decision 0065.
|
|
101
101
|
|
|
102
|
-
## Reserved stored names and event
|
|
102
|
+
## Reserved stored names and event pins (4.152.0)
|
|
103
103
|
|
|
104
104
|
| Code | Layer / severity | Meaning / fix |
|
|
105
105
|
| --- | --- | --- |
|
|
106
106
|
| PLAY0273 | Binding error | A stored source exactly `Default`, or stored stream exactly `All` (name or `id "All"` pin), is reserved. Authoring still parses/prints it. Rename the stream with discovered `propose-rename`; keeping `id "All"` cannot fix it. Comparison is ordinal: streams `all`, `ALL` and `Default` remain valid. Old `All` events read as source-only appends; moving history needs a Chronicle migration, not a language repair. |
|
|
107
|
-
|
|
|
107
|
+
| PLAY0472 | Binding error | An event pin is not a valid event-name identifier, effective stored names differ across generations, or two events share a stored name. Use a valid, application-unique stored name shared by all generations; never rename stored history merely to hide the error. |
|
|
108
|
+
| PLAY0686 | Retired | Screenplay 4.152.0 carries differing event pins as `storedName` in ESM v16. MCP's compatibility `eventPinWarnings` array is empty. Renderer admission remains separate; released Stage 4.92.0 and CLI 3.59.0 do not admit v16. |
|
|
108
109
|
|
|
109
110
|
MCP readiness exposes the binding refusal. PLAY0273 is reused, not a new ESM
|
|
110
|
-
version; match its reserved-name message before choosing the rename.
|
|
111
|
-
|
|
112
|
-
|
|
111
|
+
version; match its reserved-name message before choosing the rename.
|
|
112
|
+
Source/stream pins already travel in ESM v8; differing event pins require v16.
|
|
113
|
+
Equal-name event pins are no-ops; PLAY0471 removal preserves canonical bytes.
|
|
113
114
|
Sources: Cratis/Screenplay `v4.150.0`,
|
|
114
|
-
`Source/DotNET/Screenplay/Semantics/SemanticModelBinder.EventSources.cs:17-52
|
|
115
|
-
`
|
|
116
|
-
`
|
|
117
|
-
`
|
|
118
|
-
`
|
|
115
|
+
`Source/DotNET/Screenplay/Semantics/SemanticModelBinder.EventSources.cs:17-52` and
|
|
116
|
+
`decisions/0073-reserve-the-stored-event-stream-name-all.md:35-63`;
|
|
117
|
+
`v4.152.0:Documentation/screenplay/events.md:116-124`,
|
|
118
|
+
`Source/DotNET/Screenplay/Semantics/SemanticModelBinder.StoredEventNames.cs:15-35`,
|
|
119
|
+
`Source/DotNET/Screenplay.Mcp/McpWorkspaces.Refactoring.cs:82`.
|
|
120
|
+
Target evidence: `versions.md` (Stored-name rendering boundary).
|
|
119
121
|
|
|
120
122
|
## Named keys, production routes and observer filters
|
|
121
123
|
|
|
@@ -26,7 +26,7 @@ reaction refusals/redelivery remain unadmitted. Use the actual
|
|
|
26
26
|
binder before promoting an older probe to a current capability claim.
|
|
27
27
|
|
|
28
28
|
What the binder admits, and what it refuses with which code. The answer depends on the
|
|
29
|
-
compiler version: the standalone tool (4.
|
|
29
|
+
compiler version: the standalone tool (4.153.0) binds through v16; the compiler bundled in cratis
|
|
30
30
|
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)
|
|
31
31
|
are history.
|
|
32
32
|
Tool facts and the exact v6 messages: `versions.md`. Always name
|
|
@@ -140,7 +140,7 @@ same-named scalar primitive/concept/enum property of the same nominal type
|
|
|
140
140
|
filters AND with `by`; optional omission does not narrow, supplied null is refused.
|
|
141
141
|
`then query … arguments` and `when query` accept both `by` and filters; PLAY0468
|
|
142
142
|
reports unknown/repeated/missing required arguments. Collection results match by
|
|
143
|
-
read model/key regardless of row order. The standalone 4.
|
|
143
|
+
read model/key regardless of row order. The standalone 4.153.0 pin admits this;
|
|
144
144
|
CLI 3.57.0's 4.147.1 compiler and Stage 4.89.1 admit it through v15, subject to
|
|
145
145
|
construct checks (snapshot lists/DateTime filters/parameter order still refuse). Complete compiled specs:
|
|
146
146
|
read-surface [equality filters](../../cratis-screenplay-read-surface/references/equality-filters.md).
|
|
@@ -61,5 +61,12 @@
|
|
|
61
61
|
"kind": "toolCount",
|
|
62
62
|
"value": "37",
|
|
63
63
|
"reason": "Historical CLI 3.40.7 / standalone 4.122.0 transcript (version vector in preceding lines). Remove when this probe is removed or replaced."
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"file": ".cratis/ai/skills/cratis-screenplay-toolchain/references/diagnostics.md",
|
|
67
|
+
"text": "| PLAY0686 | Retired | Screenplay 4.152.0 carries differing event pins as `storedName` in ESM v16. MCP's compatibility `eventPinWarnings` array is empty. Renderer admission remains separate; released Stage 4.92.0 and CLI 3.59.0 do not admit v16. |",
|
|
68
|
+
"kind": "diagnostic",
|
|
69
|
+
"value": "PLAY0686",
|
|
70
|
+
"reason": "Explicit retirement notice, not an active diagnostic or repair recommendation. Screenplay v4.152.0 published contract marks PLAY0686 retired; Documentation/screenplay/events.md:124 confirms retirement and empty compatibility warnings. Remove when this notice is removed or replaced."
|
|
64
71
|
}
|
|
65
72
|
]
|