@cratis/pi 7.48.2 → 7.48.4
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/agents/backend-developer.md +1 -1
- package/package/corpus/agents/slice-implementer.md +2 -2
- package/package/corpus/harnesses/copilot/instructions/application-profile.instructions.md +3 -3
- package/package/corpus/harnesses/copilot/instructions/csharp.instructions.md +3 -1
- package/package/corpus/harnesses/copilot/instructions/glossary.instructions.md +3 -3
- package/package/corpus/harnesses/copilot/instructions/profiles.instructions.md +1 -1
- package/package/corpus/harnesses/copilot/instructions/vertical-slices.instructions.md +6 -3
- package/package/corpus/prompts/add-projection.prompt.md +2 -1
- package/package/corpus/prompts/add-reducer.prompt.md +6 -4
- package/package/corpus/rules/application-profile.md +3 -3
- package/package/corpus/rules/csharp.md +3 -1
- package/package/corpus/rules/glossary.md +3 -3
- package/package/corpus/rules/profiles.md +1 -1
- package/package/corpus/rules/vertical-slices.md +6 -3
- package/package/corpus/skills/cratis-application-slice-conformance/SKILL.md +2 -2
- package/package/corpus/skills/cratis-chronicle-client-dotnet/SKILL.md +16 -33
- package/package/corpus/skills/cratis-chronicle-client-dotnet/references/discovery.md +92 -7
- package/package/corpus/skills/cratis-chronicle-event-modeling/SKILL.md +1 -1
- package/package/corpus/skills/cratis-chronicle-projection/SKILL.md +18 -10
- package/package/corpus/skills/cratis-chronicle-read-model/SKILL.md +46 -18
- package/package/corpus/skills/cratis-chronicle-read-model-specifications/SKILL.md +32 -14
- package/package/corpus/skills/cratis-chronicle-reducer/SKILL.md +194 -38
- package/package/corpus/skills/cratis-event-model-diagram/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/SKILL.md +4 -4
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/audit-format.md +1 -1
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/automation-patterns.md +3 -3
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/cases-to-specify.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 +2 -2
- 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 +6 -6
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/invocation-identity.md +3 -3
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/product-sources.md +1 -1
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/specifying-triggers-and-clock.md +1 -1
- package/package/corpus/skills/cratis-screenplay-command-surface/SKILL.md +3 -3
- package/package/corpus/skills/cratis-screenplay-command-surface/references/compliance.md +1 -1
- package/package/corpus/skills/cratis-screenplay-command-surface/references/context.md +1 -1
- package/package/corpus/skills/cratis-screenplay-command-surface/references/enum-numbers.md +1 -1
- package/package/corpus/skills/cratis-screenplay-delivery-planning/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-delivery-planning/references/slice-counting.md +1 -1
- package/package/corpus/skills/cratis-screenplay-discovery/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-event-modeling/SKILL.md +3 -3
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/parsed-not-runnable.md +2 -2
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/chronicle-observations.md +1 -1
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/generate-notes.md +4 -5
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/generated-recovery.md +1 -1
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/prologue-safety.md +1 -1
- package/package/corpus/skills/cratis-screenplay-model-authoring/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/language-reference.md +4 -4
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-tools.md +3 -3
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/model-notes.md +1 -1
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/screen-authoring-workflow.md +1 -1
- package/package/corpus/skills/cratis-screenplay-model-review/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/stop-or-assume.md +1 -1
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/verdicts-and-modes.md +1 -1
- package/package/corpus/skills/cratis-screenplay-projections/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-read-surface/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-read-surface/references/provenance.md +2 -2
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/SKILL.md +3 -3
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/drift-and-ledger.md +1 -1
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/gap-fill-handoff.md +2 -2
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/renderability-gate.md +2 -2
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/SKILL.md +2 -2
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/provenance.md +2 -2
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-catalogue.md +1 -1
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/spec-forms-by-mode.md +5 -5
- package/package/corpus/skills/cratis-screenplay-slice-design/SKILL.md +2 -2
- package/package/corpus/skills/cratis-screenplay-slice-design/references/worked-example.md +1 -1
- package/package/corpus/skills/cratis-screenplay-specifications/SKILL.md +3 -3
- package/package/corpus/skills/cratis-screenplay-specifications/references/examples-and-routes.md +2 -2
- 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/chronicle-boundaries.md +1 -1
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/consistency-and-concurrency.md +2 -2
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution.md +1 -1
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-patterns.md +2 -2
- package/package/corpus/skills/cratis-screenplay-toolchain/SKILL.md +42 -61
- package/package/corpus/skills/cratis-screenplay-toolchain/references/automation-translate-example.md +1 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/references/cheat-sheet-example.md +7 -9
- package/package/corpus/skills/cratis-screenplay-toolchain/references/cheat-sheet.md +15 -18
- package/package/corpus/skills/cratis-screenplay-toolchain/references/diagnostics.md +33 -53
- package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-example.md +1 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-subset.md +82 -93
- package/package/corpus/skills/cratis-screenplay-toolchain/references/generated-responses-example.md +4 -5
- package/package/corpus/skills/cratis-screenplay-toolchain/references/generation-strategies-example.md +1 -2
- package/package/corpus/skills/cratis-screenplay-toolchain/references/preferred-syntax.md +5 -9
- package/package/corpus/skills/cratis-screenplay-toolchain/references/production-routes-and-filters.md +7 -16
- package/package/corpus/skills/cratis-screenplay-toolchain/references/renderable-subset.md +38 -92
- package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract-exceptions.json +4 -11
- package/package/corpus/skills/cratis-screenplay-toolchain/references/sources-and-streams.md +14 -19
- package/package/corpus/skills/cratis-screenplay-toolchain/references/traps.md +32 -35
- package/package/corpus/skills/cratis-screenplay-toolchain/references/verdicts.md +119 -52
- package/package/corpus/skills/cratis-screenplay-toolchain/verification.json +18 -24
- package/package/corpus/skills/cratis-screenplay-ui-composition/SKILL.md +3 -3
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/screen-composition-contract.md +2 -2
- package/package.json +1 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/references/doc-contradictions.md +0 -72
- package/package/corpus/skills/cratis-screenplay-toolchain/references/provenance.md +0 -81
- package/package/corpus/skills/cratis-screenplay-toolchain/references/versions.md +0 -341
|
@@ -23,7 +23,8 @@ This skill is verified against these exact sources:
|
|
|
23
23
|
|
|
24
24
|
| Package | Version | Purpose |
|
|
25
25
|
| --- | --- | --- |
|
|
26
|
-
| `Cratis.Chronicle` | `18.3.0` |
|
|
26
|
+
| `Cratis.Chronicle` | `18.3.0` | Existing event, key and read-model APIs |
|
|
27
|
+
| `Cratis.Chronicle` | `19.59.4` | Style/discovery: `Source/Clients/DotNET/Reducers/{SelfReducerMethods,RegisteredReducerReadModel}.cs`, `ReadModels/ReadModelBuilderOwnership.cs`, `DefaultClientArtifactsProvider.cs` at tag `v19.59.4` |
|
|
27
28
|
| `Cratis.Arc.Core` | `22.75.0` | `Cratis.Arc.Queries.ModelBound.ReadModelAttribute` and `PathAttribute` |
|
|
28
29
|
| `Cratis.Arc.MongoDB` | `22.75.0` | the `Observe` family of `IMongoCollection<T>` extensions |
|
|
29
30
|
|
|
@@ -94,27 +95,52 @@ and [query cost and composition](references/queries.md#cost-and-composition).
|
|
|
94
95
|
|
|
95
96
|
## Step 3 — Choose a projection or a reducer
|
|
96
97
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
state
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
98
|
+
For application code, work down this ladder:
|
|
99
|
+
|
|
100
|
+
1. **Model-bound attributes** when the mapping reads clearly on the model.
|
|
101
|
+
2. **Fluent `IProjectionFor<T>`** when the definition needs structure or an
|
|
102
|
+
attribute-free contract. Counters, joins, children and composite keys remain
|
|
103
|
+
projection features; fluent lambdas are not arbitrary per-event code.
|
|
104
|
+
3. **Reducer code** when branching on prior state, calculations or guards read
|
|
105
|
+
better as state transitions. A reducer is a normal choice, not a last resort.
|
|
106
|
+
For new .NET code default to a **self-reducing model**: public static
|
|
107
|
+
`Reduce(TEvent @event, TSelf? current[, EventContext context])` on the model,
|
|
108
|
+
returning `TSelf`/`TSelf?` or `Task` of it. No marker or model activation.
|
|
109
|
+
Use a separate **`IReducerFor<T>`** when the fold needs injected services,
|
|
110
|
+
replay-time instance state or separation from the model.
|
|
111
|
+
4. **Nominated plain instance class** only when the contract/reducer assembly
|
|
112
|
+
cannot reference Chronicle; configure `ChronicleOptions.ExplicitArtifacts`
|
|
113
|
+
at the composition root before creating stores.
|
|
114
|
+
|
|
115
|
+
**PDL** is for definitions authored outside application code (Workbench,
|
|
116
|
+
Screenplay, ad-hoc queries), not the code-first default. This ladder does not
|
|
117
|
+
claim Stage renders static self reducers. The self form is .NET-only
|
|
118
|
+
(Cratis/Chronicle#4851); other SDKs keep their own reducer contracts.
|
|
119
|
+
|
|
120
|
+
Default discovery finds projections, interface reducers and complete self shapes.
|
|
121
|
+
Explicit registration remains available, and plain instance reducers require
|
|
122
|
+
nomination; see [discovery](../cratis-chronicle-client-dotnet/references/discovery.md).
|
|
123
|
+
An existing complete static shape becomes a reducer on upgrade without adding a
|
|
124
|
+
marker. Near misses warn (CHR0058). A self model and a competing projection or
|
|
125
|
+
reducer in one catalog fail with `AmbiguousReadModelBuilder`; remove the old
|
|
126
|
+
builder when switching and verify storage/replay separately from output equality.
|
|
127
|
+
|
|
128
|
+
Read [projection behavior](../cratis-chronicle-projection/SKILL.md) for mappings
|
|
129
|
+
and [reducers](../cratis-chronicle-reducer/SKILL.md) for complete signatures,
|
|
130
|
+
null deletion, replay hooks and preserving admission/ordering guards. Reducers
|
|
131
|
+
are source-keyed, have no native joins and are refused by decision reads.
|
|
112
132
|
|
|
113
133
|
## Step 4 — Add a query surface, if the model is read from outside
|
|
114
134
|
|
|
115
135
|
Queries are **static** methods on the read-model record, discovered by Arc.
|
|
116
136
|
Marking the record with `[ReadModel]` from `Cratis.Arc.Queries.ModelBound` is
|
|
117
|
-
what gives it that surface.
|
|
137
|
+
what gives it that surface. For a self-reducing model, put its `Reduce` methods
|
|
138
|
+
and queries on this same record. Before Arc 22.90.0, use
|
|
139
|
+
`[ReadModel(RequireQueryAttribute = true)]` plus `[Query]` on intended queries to
|
|
140
|
+
avoid exposing folds. From Arc 22.90.0, Arc excludes methods taking the
|
|
141
|
+
model itself from query discovery, and Arc.Chronicle claims self models for
|
|
142
|
+
command injection. See the existing
|
|
143
|
+
[explicit query-discovery guidance](references/queries.md#discovery-rules).
|
|
118
144
|
|
|
119
145
|
```csharp
|
|
120
146
|
using System.Reactive.Subjects;
|
|
@@ -206,7 +232,7 @@ This access distinction was checked against Chronicle **v19.31.2**
|
|
|
206
232
|
|
|
207
233
|
`[Passive]` on its own does **not** make a read model a projection. It is
|
|
208
234
|
deliberately excluded from the annotations that do; it changes how an existing
|
|
209
|
-
projection is
|
|
235
|
+
projection or reducer is read; it is not a builder by itself.
|
|
210
236
|
|
|
211
237
|
## Step 6 — Build and verify
|
|
212
238
|
|
|
@@ -236,6 +262,8 @@ spans streams.
|
|
|
236
262
|
`EventSourceId<T>` value.
|
|
237
263
|
- No reserved compliance-subject property name is used.
|
|
238
264
|
- Read-model properties carry no defaults that could hide unwired projection.
|
|
265
|
+
- The style follows the ladder; a self model has no competing builder, and Arc
|
|
266
|
+
folds are excluded from query exposure for the consuming version.
|
|
239
267
|
- Query methods are `static` and declare `ISubject<...>` rather than a concrete
|
|
240
268
|
subject type.
|
|
241
269
|
- A direct `GetInstanceById` result is checked for absence before use.
|
|
@@ -11,7 +11,8 @@ against a sequence of events. No Chronicle server, no database, no network — t
|
|
|
11
11
|
events go in, the materialized instance comes out.
|
|
12
12
|
|
|
13
13
|
Pure reducer decisions use `Specification` plus a direct method call by
|
|
14
|
-
default, with the event and current state supplied explicitly
|
|
14
|
+
default, with the event and current state supplied explicitly (for a self model,
|
|
15
|
+
`Model.Reduce(@event, current)`). Add
|
|
15
16
|
`ReadModelScenario<TReadModel>` only where declarative projection behavior,
|
|
16
17
|
event dispatch, filtering, metadata or read-model wiring contribute proof.
|
|
17
18
|
|
|
@@ -22,10 +23,11 @@ is no separate `When`: seeding the events is what makes the projection run.
|
|
|
22
23
|
|
|
23
24
|
| Package | Version | Purpose |
|
|
24
25
|
| --- | --- | --- |
|
|
25
|
-
| `Cratis.Chronicle.Testing` | `19.
|
|
26
|
+
| `Cratis.Chronicle.Testing` | `19.59.4` | `Source/Clients/Testing/ReadModels/ReadModelScenario.cs` at tag `v19.59.4`: scenario selection, self and nominated reducers |
|
|
27
|
+
| `Cratis.Chronicle` | `19.59.4` | `Source/Clients/DotNET/Reducers/{SelfReducerMethods,RegisteredReducerReadModel}.cs`, `ReadModels/ReadModelBuilderOwnership.cs` at tag `v19.59.4`: supported forms and ownership |
|
|
26
28
|
| `Cratis.Specifications.XUnit` | `4.x` | The `Specification` base and the `ShouldXxx` assertions |
|
|
27
29
|
|
|
28
|
-
Source: `Source/Clients/Testing/ReadModels/` at **Cratis/Chronicle v19.
|
|
30
|
+
Source: `Source/Clients/Testing/ReadModels/` at **Cratis/Chronicle v19.59.4**.
|
|
29
31
|
|
|
30
32
|
```bash
|
|
31
33
|
dotnet add package Cratis.Chronicle.Testing
|
|
@@ -87,7 +89,11 @@ Scenarios implement `IDisposable`; call `_scenario.Dispose()` in `Destroy()`.
|
|
|
87
89
|
and wins over discovery, **including a discovered reducer**. Per-run `Defaults`
|
|
88
90
|
can take a client artifacts provider, service provider and options;
|
|
89
91
|
`InMemoryClientArtifactsProvider` and `ChronicleOptions.ExplicitArtifacts` let a
|
|
90
|
-
specification isolate registrations without global discovery.
|
|
92
|
+
specification isolate registrations without global discovery. Nominate a plain
|
|
93
|
+
instance reducer with `options.ExplicitArtifacts.RegisterReducer<PlainReducer>()`
|
|
94
|
+
before constructing per-run `Defaults(artifacts, serviceProvider, options)`.
|
|
95
|
+
The same API accepts a self model; default discovery needs no marker. Do not
|
|
96
|
+
mutate `Defaults.Instance` across independent runs.
|
|
91
97
|
|
|
92
98
|
## Step 2 — Seed the events
|
|
93
99
|
|
|
@@ -143,16 +149,28 @@ specific reason in the skip message.
|
|
|
143
149
|
|
|
144
150
|
## Step 4 — Know what the scenario picked
|
|
145
151
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
1.
|
|
149
|
-
2. A **
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
152
|
+
`WithProjection` overrides discovery, including a reducer. Otherwise:
|
|
153
|
+
|
|
154
|
+
1. An **explicit projection recipe** for `TReadModel` suppresses reducer selection.
|
|
155
|
+
2. A **registered reducer handler** targeting it: a self-reducing model, a
|
|
156
|
+
separate `IReducerFor<TReadModel>`, or an explicitly nominated plain instance
|
|
157
|
+
class. The scenario uses the store's handler catalog, not its own interface
|
|
158
|
+
scan. Self signatures and registered event membership still matter.
|
|
159
|
+
3. A **fluent projection** implementing `IProjectionFor<TReadModel>`.
|
|
160
|
+
4. **Model-bound attributes** directly on `TReadModel`, then the matching
|
|
161
|
+
model-bound entry in the artifacts provider.
|
|
162
|
+
|
|
163
|
+
If no handler exists, processing throws `NoReadModelHandlerFound`. Classic
|
|
164
|
+
reducer precedence does not authorize competing self-model builders: the store
|
|
165
|
+
rejects those with `AmbiguousReadModelBuilder`. An inline scenario override can
|
|
166
|
+
exercise a different path than production; do not mistake it for registration
|
|
167
|
+
proof. See [reducers](../cratis-chronicle-reducer/SKILL.md) for signatures and
|
|
168
|
+
static direct-call/scenario examples.
|
|
169
|
+
|
|
170
|
+
For every reducer form, cover empty history, first-event null current, guarded
|
|
171
|
+
branches, deletion and recreation. Scenarios substitute storage, observer
|
|
172
|
+
lifecycle and compliance; they do not prove real-kernel registration, replay,
|
|
173
|
+
transport, encryption, erasure or migration.
|
|
156
174
|
|
|
157
175
|
For stricter runs, `WithStrictEventSubscription()` and `WithStrictFidelity()`
|
|
158
176
|
turn silent mismatches into failures.
|
|
@@ -7,9 +7,18 @@ license: MIT
|
|
|
7
7
|
# Chronicle reducers
|
|
8
8
|
|
|
9
9
|
A reducer builds a read model as "current state plus event produces next state",
|
|
10
|
-
with real C# control flow.
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
with real C# control flow. Start with model-bound attributes, use fluent
|
|
11
|
+
`IProjectionFor<T>` when mappings need structure, and choose a reducer when
|
|
12
|
+
branching on prior state, calculations or guards read better as code. A reducer
|
|
13
|
+
is a normal choice, not a last resort. For the application-code ladder and PDL's
|
|
14
|
+
outside-code role, read [choosing a style](../cratis-chronicle-read-model/SKILL.md#step-3--choose-a-projection-or-a-reducer).
|
|
15
|
+
|
|
16
|
+
For new .NET reducers, default to **self-reducing read models**: public static
|
|
17
|
+
`Reduce` methods beside the state, discovered by shape without a marker. Use a
|
|
18
|
+
separate `IReducerFor<T>` for fold-time DI, replay-time instance state or useful
|
|
19
|
+
separation; nominate a plain class only when its assembly cannot reference
|
|
20
|
+
Chronicle. Self reduction is .NET-only (Cratis/Chronicle#4851); other SDKs retain
|
|
21
|
+
their own contracts. This guidance does not claim Stage renders the self form.
|
|
13
22
|
|
|
14
23
|
## Verified product sources
|
|
15
24
|
|
|
@@ -17,33 +26,89 @@ This skill is verified against this exact source:
|
|
|
17
26
|
|
|
18
27
|
| Package | Version | Purpose |
|
|
19
28
|
| --- | --- | --- |
|
|
20
|
-
| `Cratis.Chronicle` | `19.50.1` |
|
|
29
|
+
| `Cratis.Chronicle` | `19.50.1` | Existing reducer, read-model and event APIs |
|
|
30
|
+
| `Cratis.Chronicle` | `19.59.4` | `Source/Clients/DotNET/Reducers/{SelfReducerMethods,SelfReducerInvoker,SelfReducerReplayHooks,RegisteredReducerReadModel,ReducerInvoker,ReducerCatalog}.cs`, `ReadModels/ReadModelBuilderOwnership.cs`, `DefaultClientArtifactsProvider.cs` at tag `v19.59.4`: self/instance forms, discovery and ownership |
|
|
31
|
+
| `Cratis.Chronicle.Testing` | `19.59.4` | `Source/Clients/Testing/ReadModels/ReadModelScenario.cs` at tag `v19.59.4`: static folds through scenarios |
|
|
21
32
|
|
|
22
33
|
Reverify product sources before claiming support for another version.
|
|
23
34
|
|
|
24
|
-
##
|
|
35
|
+
## Choose the form
|
|
36
|
+
|
|
37
|
+
- Direct property mapping, counters and sums usually read best as projections.
|
|
38
|
+
Fluent definitions add mapping structure, not arbitrary per-event code.
|
|
39
|
+
- Prior-state branches and guarded calculations often read best as reducers.
|
|
40
|
+
Explain the state-transition rule, rather than proving both projection APIs
|
|
41
|
+
incapable. Reducers fold per event source: no native cross-source joins,
|
|
42
|
+
custom aggregation keys or variant-group wiring.
|
|
43
|
+
- Keep the state and transition together by default. Choose `IReducerFor<T>`
|
|
44
|
+
when constructor dependencies, replay instance behavior or a separate data
|
|
45
|
+
contract make the extra type useful. Prefer event-recorded rates/times over
|
|
46
|
+
consulting today's service during replay. Never hide durable state on a
|
|
47
|
+
reducer service instance.
|
|
48
|
+
- When the assembly cannot reference Chronicle, nominate a plain instance class
|
|
49
|
+
through `ChronicleOptions.ExplicitArtifacts.RegisterReducer<PlainReducer>()`
|
|
50
|
+
before creating stores. Supported instance handlers must infer exactly one
|
|
51
|
+
model. See [discovery and nomination](../cratis-chronicle-client-dotnet/references/discovery.md).
|
|
52
|
+
|
|
53
|
+
## Default — a self-reducing read model
|
|
54
|
+
|
|
55
|
+
This example's debit guard derives a view; it does not reject the already
|
|
56
|
+
appended debit. Missing state stays absent until a credit creates it.
|
|
25
57
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
58
|
+
```csharp
|
|
59
|
+
using Cratis.Chronicle.Events;
|
|
60
|
+
using Cratis.Concepts;
|
|
61
|
+
|
|
62
|
+
public record Money(decimal Value) : ConceptAs<decimal>(Value);
|
|
63
|
+
|
|
64
|
+
/// <summary>Funds were credited to the account.</summary>
|
|
65
|
+
[EventType]
|
|
66
|
+
public record FundsCredited(Money Amount);
|
|
67
|
+
|
|
68
|
+
/// <summary>A debit was recorded for the account.</summary>
|
|
69
|
+
[EventType]
|
|
70
|
+
public record FundsDebited(Money Amount);
|
|
37
71
|
|
|
38
|
-
|
|
39
|
-
|
|
72
|
+
/// <summary>The balance view was cleared.</summary>
|
|
73
|
+
[EventType]
|
|
74
|
+
public record BalanceCleared;
|
|
75
|
+
|
|
76
|
+
public record AccountBalance(Money Total)
|
|
77
|
+
{
|
|
78
|
+
public static AccountBalance Reduce(FundsCredited @event, AccountBalance? current) =>
|
|
79
|
+
new(new Money((current?.Total.Value ?? 0m) + @event.Amount.Value));
|
|
80
|
+
|
|
81
|
+
public static AccountBalance? Reduce(FundsDebited @event, AccountBalance? current) =>
|
|
82
|
+
current is null || current.Total.Value < @event.Amount.Value
|
|
83
|
+
? current
|
|
84
|
+
: current with { Total = new Money(current.Total.Value - @event.Amount.Value) };
|
|
85
|
+
|
|
86
|
+
public static AccountBalance? Reduce(BalanceCleared @event, AccountBalance? current) => null;
|
|
87
|
+
}
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
No model activation, parameterless constructor or reducer marker is needed.
|
|
91
|
+
`[Reducer]` is optional configuration, not a discovery requirement.
|
|
92
|
+
|
|
93
|
+
### Arc on the same record
|
|
94
|
+
|
|
95
|
+
In Arc applications keep `[ReadModel]`, `Reduce` methods and static queries on
|
|
96
|
+
one record. Before Arc 22.90.0, use
|
|
97
|
+
`[ReadModel(RequireQueryAttribute = true)]` with `[Query]` on intended endpoints;
|
|
98
|
+
see [query discovery](../cratis-chronicle-read-model/references/queries.md#discovery-rules).
|
|
99
|
+
From Arc 22.90.0, Arc excludes methods taking the model itself from query
|
|
100
|
+
discovery, and Arc.Chronicle claims self-reducing models for command injection.
|
|
101
|
+
Check the consuming Arc version; Chronicle's discovery does not fix older Arc.
|
|
102
|
+
|
|
103
|
+
## Separate instance reducer
|
|
104
|
+
|
|
105
|
+
When the fold needs the separation described above, use the classic form:
|
|
40
106
|
|
|
41
107
|
```csharp
|
|
42
108
|
using Cratis.Chronicle.Events;
|
|
43
109
|
using Cratis.Chronicle.Reducers;
|
|
44
110
|
|
|
45
|
-
//
|
|
46
|
-
// per-event rule that no counter or projection operator expresses.
|
|
111
|
+
// This fold lives separately because the model is a shared data contract.
|
|
47
112
|
public class <ReadModelName>Reducer : IReducerFor<<ReadModelName>>
|
|
48
113
|
{
|
|
49
114
|
public <ReadModelName> <Opened>(<OpenedEvent> @event, <ReadModelName>? current, EventContext context) =>
|
|
@@ -66,7 +131,7 @@ plain setter. First inspect guards: does it require a creation event, ignore an
|
|
|
66
131
|
older attempt, preserve a terminal state, or compare prior values? Replacing it
|
|
67
132
|
with unconditional `[SetValue<T>]` can create state too early or resurrect a
|
|
68
133
|
finished entity. Keep the reducer when the projection APIs cannot express those
|
|
69
|
-
semantics; the
|
|
134
|
+
semantics; the style choice is about behavior, not handler length.
|
|
70
135
|
|
|
71
136
|
Evaluate variants for mutually exclusive lifecycle shapes (see the projection
|
|
72
137
|
skill). Their non-entering events are update-only, but that does not replace
|
|
@@ -75,10 +140,35 @@ keep specifications for update-before-create, late events after completion,
|
|
|
75
140
|
repeated events, and each guarded branch, as applicable. Assert the same outcomes
|
|
76
141
|
with the replacement, not only the happy-path final status.
|
|
77
142
|
|
|
78
|
-
## Method signatures —
|
|
143
|
+
## Method signatures — split by form
|
|
144
|
+
|
|
145
|
+
### Self-reducing model
|
|
146
|
+
|
|
147
|
+
The containing type must be concrete, non-generic and not implement `IReducer`.
|
|
148
|
+
Each handler is public static, non-generic and named **`Reduce`**.
|
|
149
|
+
|
|
150
|
+
| Signature | Meaning |
|
|
151
|
+
| --- | --- |
|
|
152
|
+
| `TSelf Reduce(TEvent @event, TSelf? current)` | complete next state |
|
|
153
|
+
| `TSelf Reduce(TEvent @event, TSelf? current, EventContext context)` | next state with metadata |
|
|
154
|
+
| `TSelf?` / `Task<TSelf>` / `Task<TSelf?>` with those parameters | nullable and/or awaited next state |
|
|
155
|
+
| bare `Task`, `ValueTask`, `Task<object>` | invalid self result, not deletion |
|
|
156
|
+
|
|
157
|
+
The event dispatch target is a non-`object` class or interface; current is exactly
|
|
158
|
+
the model type, nullable or nullable-oblivious. No by-ref, optional, `params`,
|
|
159
|
+
reordered or extra service arguments: **no DI in `Reduce`**. Return `null` to
|
|
160
|
+
leave absent state or delete; return `current` to ignore. Awaited results become
|
|
161
|
+
current state before the next event.
|
|
162
|
+
|
|
163
|
+
Dispatch selects from events registered in the owning client: exact type,
|
|
164
|
+
then nearest base class, then uniquely most-derived interface. Equal-specificity
|
|
165
|
+
ties (including overloads with/without context for one event) throw
|
|
166
|
+
`AmbiguousSelfReducerMethod`. Names and declaration order do not break ties.
|
|
167
|
+
|
|
168
|
+
### Separate or nominated instance reducer
|
|
79
169
|
|
|
80
170
|
Dispatch is by the **first parameter's type**, never by the method name. Name the
|
|
81
|
-
method for the reader.
|
|
171
|
+
instance method for the reader.
|
|
82
172
|
|
|
83
173
|
| Signature | Meaning |
|
|
84
174
|
| --- | --- |
|
|
@@ -97,14 +187,16 @@ The rules the invoker enforces:
|
|
|
97
187
|
- Public and non-public instance methods are both scanned, and **one method wins
|
|
98
188
|
per event type** — do not write two handlers for the same event.
|
|
99
189
|
- Return the complete next state. Never mutate `current` in place; use `with { }`.
|
|
100
|
-
-
|
|
101
|
-
|
|
190
|
+
- Keep durable state in the model. Instance replay bookkeeping is not durable
|
|
191
|
+
model state and must not make the fold depend on a previous activation.
|
|
192
|
+
- An instance reducer with no dispatchable methods is not registered. Logs name skipped
|
|
102
193
|
reducer-like methods; CHR0006/CHR0007 flag them. CHR0051 checks nullable current
|
|
103
194
|
state, and CHR0057 rejects multiple `IReducerFor<T>` targets on one class.
|
|
104
195
|
|
|
105
196
|
### Returning null deletes the instance
|
|
106
197
|
|
|
107
|
-
|
|
198
|
+
In either form, `null` sets the state to absent. In the **instance form only**,
|
|
199
|
+
a bare `Task` also sets the read-model state
|
|
108
200
|
to null, which removes the instance. That is the deletion mechanism, so do not
|
|
109
201
|
reach for `null` to mean "ignore this event". To ignore an event, return
|
|
110
202
|
`current` unchanged.
|
|
@@ -114,9 +206,9 @@ stops the reducer for that partition until an operator intervenes.
|
|
|
114
206
|
|
|
115
207
|
`current` is `null` on the first event for a given event source. For a model
|
|
116
208
|
seeded by one event and then updated by many, decide deliberately what an update
|
|
117
|
-
arriving before its seed should do
|
|
118
|
-
|
|
119
|
-
bug.
|
|
209
|
+
arriving before its seed should do. Returning `current` preserves absence;
|
|
210
|
+
synthesizing a partial instance is valid only when it is the deliberate view
|
|
211
|
+
policy. Specify that policy rather than hiding a missing-creation bug.
|
|
120
212
|
|
|
121
213
|
## Identity, passivity, and event sequence
|
|
122
214
|
|
|
@@ -129,7 +221,10 @@ public sealed class ReducerAttribute(string id = "", string? eventSequence = def
|
|
|
129
221
|
|
|
130
222
|
- `id` overrides the generated reducer identity.
|
|
131
223
|
- `eventSequence` selects the source sequence.
|
|
132
|
-
- `isActive: false`
|
|
224
|
+
- `isActive: false` disables active maintenance; it does **not** make reads passive.
|
|
225
|
+
|
|
226
|
+
For a self reducer, place configuration on the model; for a separate reducer,
|
|
227
|
+
place `[Reducer]` on its class. Keep `[Passive]` on the model in both forms.
|
|
133
228
|
|
|
134
229
|
`Cratis.Chronicle.ReadModels.PassiveAttribute` (`[Passive]`) goes on the **read
|
|
135
230
|
model type** and makes it passive as a whole: no sink, nothing materialized, and
|
|
@@ -141,9 +236,49 @@ decision reads. For a rule that must hold under concurrent writers use a flat
|
|
|
141
236
|
projection with a decision read; see
|
|
142
237
|
[choosing how a rule holds](../cratis-chronicle-decision-reads/references/choosing-how-a-rule-holds.md).
|
|
143
238
|
|
|
239
|
+
## Discovery, upgrades and ownership
|
|
240
|
+
|
|
241
|
+
Since 19.58.0, complete marker-free static shapes become reducers on upgrade,
|
|
242
|
+
including existing helpers. Review them before upgrading. Near-miss static
|
|
243
|
+
`Reduce` declarations whose current/result refers to the model warn (CHR0058)
|
|
244
|
+
and are skipped by implicit discovery; explicit nomination throws
|
|
245
|
+
`InvalidSelfReducerSignature`. Once one valid shape exists, invalid sibling
|
|
246
|
+
`Reduce` declarations and malformed hooks fail validation. No registered matching
|
|
247
|
+
event means no observer subscription; assembly membership alone is not event
|
|
248
|
+
membership. Types implementing `IReducer` stay classic even with a self-shaped
|
|
249
|
+
static helper.
|
|
250
|
+
|
|
251
|
+
Use the existing generic or Type `RegisterReducer` API for explicit self-model
|
|
252
|
+
nomination too; there is no special self API. A self model cannot share ownership
|
|
253
|
+
with a separate reducer, fluent projection or genuine model-bound mappings in the
|
|
254
|
+
same store catalog: `AmbiguousReadModelBuilder` rejects it. `[Passive]`, sequence
|
|
255
|
+
selection, filters and `[Reducer]` alone do not establish projection ownership.
|
|
256
|
+
Remove the old builder when switching; registration is not a data migration.
|
|
257
|
+
|
|
258
|
+
## Optional self replay hooks
|
|
259
|
+
|
|
260
|
+
Independently optional public static non-generic hooks return exactly `Task`:
|
|
261
|
+
|
|
262
|
+
```csharp
|
|
263
|
+
public static Task BeginReplay() => Task.CompletedTask;
|
|
264
|
+
public static Task EndReplay() => Task.CompletedTask;
|
|
265
|
+
public static Task BeginReplayPartition(Partition partition) => Task.CompletedTask;
|
|
266
|
+
public static Task EndReplayPartition(Partition partition) => Task.CompletedTask;
|
|
267
|
+
```
|
|
268
|
+
|
|
269
|
+
Place these methods on the model and import `Cratis.Chronicle.Observation` for
|
|
270
|
+
`Partition`. Global hooks accept only trailing class/interface service arguments;
|
|
271
|
+
partition hooks require `Partition` first. Services resolve in the notification's
|
|
272
|
+
async DI scope; missing registrations fail. Events, the model, `EventContext`
|
|
273
|
+
and extra partition arguments are not hook services. Chronicle awaits hooks and
|
|
274
|
+
scope disposal; absent hooks create no scope. Do not assume full replay delivers
|
|
275
|
+
partition notifications, failures deliver an end hook, or delivery is exactly
|
|
276
|
+
once. Instance reducers retain replay notification interfaces.
|
|
277
|
+
|
|
144
278
|
## Filtering which events reach the reducer
|
|
145
279
|
|
|
146
|
-
|
|
280
|
+
Place filters on the self model or separate reducer class. These attributes
|
|
281
|
+
genuinely filter a reducer's input, matching append metadata:
|
|
147
282
|
|
|
148
283
|
| Attribute | Filters on |
|
|
149
284
|
| --- | --- |
|
|
@@ -191,7 +326,27 @@ Start with `Specification` plus a direct call for pure reducer decisions:
|
|
|
191
326
|
pass the event and current state explicitly and assert the returned next state.
|
|
192
327
|
Add `ReadModelScenario<TReadModel>` only where event dispatch, filtering,
|
|
193
328
|
metadata or read-model wiring contribute proof; drive the event sequence and
|
|
194
|
-
assert on the resulting instance there.
|
|
329
|
+
assert on the resulting instance there. For the self example:
|
|
330
|
+
|
|
331
|
+
```csharp
|
|
332
|
+
var next = AccountBalance.Reduce(new FundsCredited(new Money(10m)), null);
|
|
333
|
+
next.Total.Value.ShouldEqual(10m);
|
|
334
|
+
|
|
335
|
+
using var scenario = new ReadModelScenario<AccountBalance>();
|
|
336
|
+
await scenario.Given.ForEventSource("account-42").Events(
|
|
337
|
+
new FundsCredited(new Money(10m)),
|
|
338
|
+
new BalanceCleared(),
|
|
339
|
+
new FundsCredited(new Money(3m)));
|
|
340
|
+
scenario.Instance!.Total.Value.ShouldEqual(3m);
|
|
341
|
+
```
|
|
342
|
+
|
|
343
|
+
Import `Cratis.Chronicle.Testing.ReadModels` for the scenario and the project's
|
|
344
|
+
specification assertions. Test deletion alone as absence, then recreation;
|
|
345
|
+
cover empty history and every event without current state. Scenario discovery
|
|
346
|
+
includes self models and nominated plain classes; see
|
|
347
|
+
[read-model specifications](../cratis-chronicle-read-model-specifications/SKILL.md).
|
|
348
|
+
In-process scenarios substitute storage, lifecycle and compliance: they do not
|
|
349
|
+
prove transport, replay, encryption, erasure or sink migration. Cover, at minimum:
|
|
195
350
|
|
|
196
351
|
- the first event, where `current` is `null`;
|
|
197
352
|
- accumulation across several events on one event source;
|
|
@@ -213,16 +368,17 @@ assert on the resulting instance there. Cover, at minimum:
|
|
|
213
368
|
|
|
214
369
|
## Verify
|
|
215
370
|
|
|
216
|
-
- The
|
|
217
|
-
|
|
218
|
-
-
|
|
371
|
+
- The style and placement fit the transition; no projection feature is rebuilt
|
|
372
|
+
unnecessarily and admission/ordering guards are preserved.
|
|
373
|
+
- Every handler accepts nullable current state (CHR0051 for instance methods,
|
|
374
|
+
CHR0058 for self near misses).
|
|
219
375
|
- Logs contain no skipped reducer-like method warning (CHR0006/CHR0007);
|
|
220
|
-
CHR0055–
|
|
376
|
+
CHR0055–CHR0061 are clean, including hooks, ties and ownership.
|
|
221
377
|
- No handler method has more than three parameters, and any third is
|
|
222
378
|
`EventContext`.
|
|
223
379
|
- Exactly one handler exists per event type.
|
|
224
|
-
-
|
|
225
|
-
- `null`
|
|
380
|
+
- Durable state lives in the model, not the reducer instance; never mutate `current`.
|
|
381
|
+
- `null` represents deliberately absent or deleted state, never a skip of existing state.
|
|
226
382
|
- No handler throws to skip an event.
|
|
227
383
|
- The project builds clean and the read-model specifications pass against the
|
|
228
384
|
verified package version.
|
|
@@ -21,7 +21,7 @@ before relying on a construct.
|
|
|
21
21
|
|
|
22
22
|
The Cratis artifacts a diagram refers to were originally checked against `Cratis.Chronicle`
|
|
23
23
|
18.3.0 and re-read against Chronicle 19.50.0 and the Arc query and command surface it is used with
|
|
24
|
-
(
|
|
24
|
+
(tool versions: `cratis-screenplay-toolchain` `SKILL.md`). The Mermaid claim above is
|
|
25
25
|
external and was not re-verified here.
|
|
26
26
|
|
|
27
27
|
## What an event model is
|
|
@@ -40,8 +40,8 @@ identity, effect and pending-work contract at that point; do not postpone it to
|
|
|
40
40
|
- Reaction `runs as system role "<Role>"` declares an invocation actor (ESM v10).
|
|
41
41
|
Without it the invoke has no caller. Historical CLI 3.41.0's 4.114.0 compiler
|
|
42
42
|
rejected the syntax (PLAY0137); previous CLI 3.46.1 refused ESM v10
|
|
43
|
-
at render admission (CLI-RENDER-004). The
|
|
44
|
-
`references/
|
|
43
|
+
at render admission (CLI-RENDER-004). The CLI/Stage pair (toolchain
|
|
44
|
+
`references/renderable-subset.md`) renders role/authenticated reaction identity; claim-reading/opaque gates retain STAGE-ESM-034. Checked model/diagnostics: captures-and-reactions
|
|
45
45
|
`references/invocation-identity.md`.
|
|
46
46
|
|
|
47
47
|
## Effect guarantees and recovery traps
|
|
@@ -72,7 +72,7 @@ even when it blocks binding. Never record bearer tokens, magic links or signed U
|
|
|
72
72
|
(a keyed hash or reference at most), and never put PII on the event-source id.
|
|
73
73
|
|
|
74
74
|
## Verified product sources
|
|
75
|
-
|
|
75
|
+
Tool versions: toolchain `SKILL.md`. Language claims were re-read at Screenplay v4.139.0,
|
|
76
76
|
renderer claims at Stage v4.89.1 (`Documentation/reference/reaction-rendering.md:6-98`,
|
|
77
77
|
`Source/Rendering.Cratis/Semantics/SemanticVersionFeatureAdmission.cs:25-46`): supported
|
|
78
78
|
event-triggered Automation renders; Translate/captures and refused reactions stay gap-fill. The
|
|
@@ -86,7 +86,7 @@ runtime facts at Arc v22.72.0 and Chronicle v19.50.1. Older reads kept as histor
|
|
|
86
86
|
| Arc | v22.72.0 (read; v22.50.5 earlier) | `ExecuteCommandsAsSystemAttribute` (since v20.56.0); mixed events-and-commands reactor returns (since v22.72.0) |
|
|
87
87
|
| Chronicle | v19.50.1 (read; v19.32.0 earlier) | `OnceOnlyAttribute`, `ReactorDelivery`, `Documentation/code-analysis/CHR0022.mdx` and `Documentation/reactors/delivery-identity.mdx` |
|
|
88
88
|
|
|
89
|
-
Read `
|
|
89
|
+
Read `SKILL.md` in `cratis-screenplay-toolchain` when selecting a tool; read the installed versions with `screenplay --version` and `cratis --version`. Reverify before claiming
|
|
90
90
|
another version behaves the same.
|
|
91
91
|
|
|
92
92
|
## When / when not
|
|
@@ -12,7 +12,7 @@ technique: partial work stays visible and nothing is skipped because it looked r
|
|
|
12
12
|
Result is `complete` only when every column is filled or says why it does not apply (for example
|
|
13
13
|
"direct effect: immediate, internal, cannot fail"). `open` names the unresolved decision and who
|
|
14
14
|
answers. `blocked` names the actual capability gap with intended behavior. For example,
|
|
15
|
-
the
|
|
15
|
+
the CLI/Stage pair (toolchain `references/renderable-subset.md`) admits through ESM v15 to construct checks; role/authenticated reaction identity
|
|
16
16
|
renders, while claim-reading/opaque system gates still refuse STAGE-ESM-034. Previous CLI 3.46.1 refused v10 at the version gate
|
|
17
17
|
with CLI-RENDER-004; do not report that historical refusal as the current gap.
|
|
18
18
|
|
|
@@ -72,9 +72,9 @@ Screenplay 4.125.0 declares the actor with reaction-level `runs as system role
|
|
|
72
72
|
"<Role>"` (ESM v10); without it a gated invocation has no caller and denies.
|
|
73
73
|
`given caller` is not an invocation actor. Role requirements remain enforced;
|
|
74
74
|
claim conditions for this system principal remain unknown. Historical CLI 3.41.0's
|
|
75
|
-
older compiler rejected the syntax (PLAY0137). The
|
|
76
|
-
`references/
|
|
77
|
-
Previous CLI 3.46.1 refused v10 at its version gate
|
|
75
|
+
older compiler rejected the syntax (PLAY0137). The CLI/Stage pair (toolchain
|
|
76
|
+
`references/renderable-subset.md`) renders role/authenticated reaction identity; claim-reading/opaque gates retain STAGE-ESM-034.
|
|
77
|
+
Previous CLI 3.46.1 refused v10 at its version gate.
|
|
78
78
|
Use the checked model in captures-and-reactions `references/invocation-identity.md`.
|
|
79
79
|
Arc gap-fill uses `[ExecuteCommandsAsSystem("<role>")]` for returned commands,
|
|
80
80
|
not identity inferred from prose or an imperative pipeline call.
|
|
@@ -57,7 +57,7 @@ One spec in the slice does not cover the others.
|
|
|
57
57
|
- Projection lag: the reaction's `reads` sees the queue before or after the closing fact?
|
|
58
58
|
The decision must not depend on it (it is not protected).
|
|
59
59
|
|
|
60
|
-
## Spec limits (tool differences: `cratis-screenplay-toolchain` `
|
|
60
|
+
## Spec limits (tool differences: `cratis-screenplay-toolchain` `SKILL.md`)
|
|
61
61
|
- Current admitted Automation/Translate specifications run through standalone
|
|
62
62
|
`screenplay test` or MCP `run-specifications`. Validate/render alone is not V4;
|
|
63
63
|
report unsupported/unbound separately from passing scenarios.
|
|
@@ -43,8 +43,8 @@ binds); tool-qualified verdict text; the trusted-actor text now names `[ExecuteC
|
|
|
43
43
|
`reactions.md`, `ReactionIdentityParser.cs`, `ReactionRefusalValidator.cs` and the
|
|
44
44
|
binder's v10 selection; the checked scenario passed reference execution. CLI
|
|
45
45
|
3.41.0's older parser and Stage 4.51.3's v7 planner were historical target limits.
|
|
46
|
-
Previous CLI 3.46.1 refused v10 at its version gate. The
|
|
47
|
-
(toolchain `references/
|
|
46
|
+
Previous CLI 3.46.1 refused v10 at its version gate. The CLI/Stage pair
|
|
47
|
+
(toolchain `references/renderable-subset.md`) renders role/authenticated reaction identity; claim-reading/opaque gates retain
|
|
48
48
|
STAGE-ESM-034 (Stage `v4.89.1:Documentation/reference/reaction-rendering.md:57-59`).
|
|
49
49
|
Public/direction forms and routes/filters follow Screenplay v4.135.0 decisions
|
|
50
50
|
0049–0051 and 0060–0066, not the older inbound-only translation scope.
|
|
@@ -120,7 +120,7 @@ Keep correlation and resulting private events in the model and report the runtim
|
|
|
120
120
|
ESM v9 shipped in Screenplay 4.117.0 and is selected only by use of public events,
|
|
121
121
|
origins, direction, event-target builders or events-source captures. At 4.135.0,
|
|
122
122
|
publication reference scenarios execute; imported shapes still refuse binding.
|
|
123
|
-
Stage 4.52.0 (previous CLI 3.46.1, history) audited only through v7. The
|
|
123
|
+
Stage 4.52.0 (previous CLI 3.46.1, history) audited only through v7. The CLI/Stage pair (toolchain `references/renderable-subset.md`)
|
|
124
124
|
reaches construct admission through v15 but still refuses publication (STAGE-ESM-032), foreign
|
|
125
125
|
events/events-source captures (STAGE-ESM-033); source admission is not rendering.
|
|
126
126
|
|
|
@@ -130,4 +130,4 @@ Source: Screenplay `v4.135.0:Documentation/screenplay/fixtures/public-events.pla
|
|
|
130
130
|
Renderer source: Stage `v4.52.0:Source/Rendering.Cratis/Semantics/SemanticCratisAdmission.cs`
|
|
131
131
|
and `v4.67.0:Source/Rendering.Cratis/Semantics/SemanticVersionFeatures.cs`.
|
|
132
132
|
Diagnostics and repairs: toolchain `references/diagnostics.md`; version allocation:
|
|
133
|
-
toolchain `references/
|
|
133
|
+
toolchain `references/executable-subset.md`.
|
|
@@ -9,7 +9,7 @@ closes the item. It binds on Screenplay 4.66.0 (`executableReady: true`), standa
|
|
|
9
9
|
3.28.2. Historical rendering: 3.28.2 refused the whole model (`STAGE-ESM-016`),
|
|
10
10
|
Stage 4.73.1 the reaction (`-024`). Stage 4.89.1 renders supported event reactions,
|
|
11
11
|
but this model's clock/cascade specs remain refused (`-024`/`-011`); keep them intact. The cratis 3.27.1 bundle (4.60.1)
|
|
12
|
-
rejected the Automation slice at binding with PLAY0268. Versions: `cratis-screenplay-toolchain` `
|
|
12
|
+
rejected the Automation slice at binding with PLAY0268. Versions: `cratis-screenplay-toolchain` `SKILL.md`.
|
|
13
13
|
|
|
14
14
|
The first spec lists the whole cascade (`then` names every new fact: `CoursePassed`, and
|
|
15
15
|
`CertificateSent` through the reaction), and `given clock` supplies the instant that
|