@cratis/pi 7.51.0 → 7.51.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/skills/cratis-application-slice-conformance/SKILL.md +8 -7
- package/package/corpus/skills/cratis-application-slice-conformance/references/checklists.md +1 -1
- package/package/corpus/skills/cratis-application-slice-conformance/references/provenance.md +2 -2
- package/package/corpus/skills/cratis-application-slice-specifications/SKILL.md +15 -19
- package/package/corpus/skills/cratis-application-slice-specifications/references/provenance.md +1 -1
- package/package/corpus/skills/cratis-application-slice-specifications/references/query-and-decision-scenarios.md +8 -6
- package/package/corpus/skills/cratis-arc-react-page/SKILL.md +10 -14
- package/package/corpus/skills/cratis-arc-react-page/references/dialogs.md +4 -2
- package/package/corpus/skills/cratis-arc-react-page/references/from-screenplay.md +7 -7
- package/package/corpus/skills/cratis-arc-react-page/references/provenance.md +2 -2
- package/package/corpus/skills/cratis-arc-react-page/references/queries-and-commands.md +1 -1
- package/package/corpus/skills/cratis-arc-react-page/verification.json +0 -2
- package/package/corpus/skills/cratis-chronicle-reactor/SKILL.md +15 -19
- package/package/corpus/skills/cratis-chronicle-reactor/references/provenance.md +1 -1
- package/package/corpus/skills/cratis-chronicle-reactor/references/specifications.md +10 -8
- package/package/corpus/skills/cratis-chronicle-read-model-specifications/SKILL.md +7 -7
- package/package/corpus/skills/cratis-chronicle-read-model-specifications/references/provenance.md +3 -3
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/SKILL.md +30 -28
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/automation-patterns.md +8 -8
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/cases-to-specify.md +4 -4
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/effects-and-idempotency.md +3 -1
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/provenance.md +1 -14
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/public-events-and-direction.md +6 -4
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/realization-and-gap-fill.md +5 -6
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/todo-list-example.md +11 -12
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/translate-example.md +3 -3
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/translation-patterns.md +2 -2
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/SKILL.md +22 -20
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/complete-examples.md +1 -1
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/invocation-identity.md +9 -10
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/refusals-and-redelivery.md +1 -1
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/specifying-triggers-and-clock.md +3 -4
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/verification.json +0 -4
- package/package/corpus/skills/cratis-screenplay-command-surface/SKILL.md +16 -15
- package/package/corpus/skills/cratis-screenplay-command-surface/references/compliance.md +17 -17
- package/package/corpus/skills/cratis-screenplay-command-surface/references/context.md +8 -8
- package/package/corpus/skills/cratis-screenplay-command-surface/references/enum-numbers.md +8 -12
- package/package/corpus/skills/cratis-screenplay-command-surface/references/generated-values-and-responses.md +31 -29
- package/package/corpus/skills/cratis-screenplay-command-surface/references/inline-events.md +5 -5
- package/package/corpus/skills/cratis-screenplay-command-surface/references/operations.md +2 -2
- package/package/corpus/skills/cratis-screenplay-command-surface/references/policy-persona-seed.md +3 -3
- package/package/corpus/skills/cratis-screenplay-command-surface/references/shop-generation.md +10 -10
- package/package/corpus/skills/cratis-screenplay-command-surface/references/validate-rules.md +9 -7
- package/package/corpus/skills/cratis-screenplay-command-surface/verification.json +2 -5
- package/package/corpus/skills/cratis-screenplay-discovery/SKILL.md +14 -15
- package/package/corpus/skills/cratis-screenplay-discovery/references/facilitation.md +1 -1
- package/package/corpus/skills/cratis-screenplay-discovery/references/personas-and-causes.md +1 -1
- package/package/corpus/skills/cratis-screenplay-discovery/references/plotting-and-handoff.md +2 -2
- package/package/corpus/skills/cratis-screenplay-discovery/references/provenance.md +3 -3
- package/package/corpus/skills/cratis-screenplay-event-modeling/SKILL.md +13 -17
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/naming-primitives.md +2 -2
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/nine-steps.md +2 -2
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/parsed-not-runnable.md +11 -12
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/provenance.md +2 -2
- package/package/corpus/skills/cratis-screenplay-event-modeling/verification.json +0 -4
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/evidence-table-template.md +4 -4
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/generate-notes.md +34 -21
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/generated-recovery.md +18 -12
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/prologue-safety.md +7 -7
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/provenance.md +1 -1
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/rule-modeling.md +4 -4
- package/package/corpus/skills/cratis-screenplay-model-authoring/SKILL.md +24 -29
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/choosing-generation.md +1 -2
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/language-reference.md +44 -51
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-loop.md +31 -36
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-tools.md +56 -63
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/model-notes.md +11 -10
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/property-links.md +15 -15
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/release-baseline.md +25 -21
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/screen-authoring-workflow.md +16 -31
- package/package/corpus/skills/cratis-screenplay-model-authoring/verification.json +5 -4
- package/package/corpus/skills/cratis-screenplay-model-review/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-model-review/references/checklist.md +3 -3
- package/package/corpus/skills/cratis-screenplay-model-review/references/provenance.md +3 -4
- package/package/corpus/skills/cratis-screenplay-model-review/references/public-keys-and-routes.md +1 -1
- package/package/corpus/skills/cratis-screenplay-model-review/references/report-template.md +7 -5
- package/package/corpus/skills/cratis-screenplay-model-review/references/worked-example.md +2 -2
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/SKILL.md +11 -12
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/code-reading-and-tokens.md +2 -2
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/identity-and-edits.md +1 -1
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/opt-in.md +8 -10
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/provenance.md +6 -6
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/stop-or-assume.md +2 -2
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/verdicts-and-modes.md +1 -1
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/vocabulary-map.md +3 -3
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/worked-example.md +1 -1
- package/package/corpus/skills/cratis-screenplay-projections/SKILL.md +11 -22
- package/package/corpus/skills/cratis-screenplay-projections/references/pdl-grammar.md +1 -1
- package/package/corpus/skills/cratis-screenplay-projections/verification.json +0 -1
- package/package/corpus/skills/cratis-screenplay-read-surface/SKILL.md +16 -29
- package/package/corpus/skills/cratis-screenplay-read-surface/references/equality-filters.md +14 -18
- package/package/corpus/skills/cratis-screenplay-read-surface/references/guarded-actions.md +5 -7
- package/package/corpus/skills/cratis-screenplay-read-surface/references/named-keys.md +6 -6
- package/package/corpus/skills/cratis-screenplay-read-surface/references/provenance.md +1 -1
- package/package/corpus/skills/cratis-screenplay-read-surface/verification.json +1 -2
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/SKILL.md +18 -19
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/delivery-protocol.md +2 -2
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/gap-fill-handoff.md +6 -6
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/provenance.md +4 -4
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/renderability-gate.md +5 -6
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/worked-example.md +2 -3
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/verification.json +1 -1
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/SKILL.md +13 -15
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/invoicing-dues-design.md +1 -1
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/invoicing-dues-example.md +2 -2
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/provenance.md +4 -6
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-catalogue.md +4 -4
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-examples.md +3 -3
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/spec-forms-by-mode.md +11 -9
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/view-and-story-specs.md +5 -5
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/verification.json +0 -1
- package/package/corpus/skills/cratis-screenplay-slice-design/SKILL.md +11 -13
- package/package/corpus/skills/cratis-screenplay-slice-design/references/read-model-design.md +4 -4
- package/package/corpus/skills/cratis-screenplay-slice-design/references/rule-layers.md +6 -4
- package/package/corpus/skills/cratis-screenplay-slice-design/references/slicing.md +4 -2
- package/package/corpus/skills/cratis-screenplay-slice-design/references/worked-example.md +1 -1
- package/package/corpus/skills/cratis-screenplay-specifications/SKILL.md +37 -40
- package/package/corpus/skills/cratis-screenplay-specifications/references/actions-beyond-commands.md +10 -15
- package/package/corpus/skills/cratis-screenplay-specifications/references/child-ordering.md +14 -12
- package/package/corpus/skills/cratis-screenplay-specifications/references/concept-rules.md +1 -1
- package/package/corpus/skills/cratis-screenplay-specifications/references/examples-and-routes.md +9 -10
- package/package/corpus/skills/cratis-screenplay-specifications/references/generated-fixtures.md +5 -6
- package/package/corpus/skills/cratis-screenplay-specifications/references/reactions-and-cascades.md +8 -9
- package/package/corpus/skills/cratis-screenplay-specifications/references/source-notes.md +13 -16
- package/package/corpus/skills/cratis-screenplay-specifications/references/whitespace-rules.md +15 -13
- package/package/corpus/skills/cratis-screenplay-specifications/verification.json +4 -9
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +29 -29
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/chronicle-boundaries.md +18 -15
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/consistency-and-concurrency.md +16 -15
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution-example.md +1 -1
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution.md +19 -17
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/provenance.md +3 -3
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-patterns.md +1 -1
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/streams-example.md +2 -2
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/verification.json +2 -3
- package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-subset.md +2 -0
- package/package/corpus/skills/cratis-screenplay-toolchain/references/pdl-example.md +1 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract-exceptions.json +0 -28
- package/package/corpus/skills/cratis-screenplay-ui-composition/SKILL.md +21 -26
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/guarded-interactions.md +3 -3
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/provenance.md +1 -1
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/response-continuations.md +10 -10
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/screen-composition-contract.md +23 -30
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/worked-flow.md +4 -5
- package/package/corpus/skills/cratis-screenplay-ui-composition/verification.json +1 -5
- package/package.json +1 -1
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/product-sources.md +0 -15
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/provenance.md +0 -13
|
@@ -3,24 +3,21 @@
|
|
|
3
3
|
|
|
4
4
|
# Retained source notes
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
`Documentation/screenplay/{specifications,policies,constraints,readmodels,diagnostics}.md
|
|
8
|
-
|
|
9
|
-
events and canonical optionality added later need their own current check.
|
|
6
|
+
The original worked example had reference-runner evidence in Screenplay
|
|
7
|
+
`Documentation/screenplay/{specifications,policies,constraints,readmodels,diagnostics}.md`;
|
|
8
|
+
inline events and canonical optionality added later need their own current check.
|
|
10
9
|
|
|
11
10
|
Actions beyond commands (`given clock`, `when clock`, `when trigger`, `given capture`,
|
|
12
|
-
`when capture`, `when query`, `then result`, `then no result`)
|
|
13
|
-
|
|
14
|
-
and proposed decision 0022. These actions do not exist before v4.48.0.
|
|
11
|
+
`when capture`, `when query`, `then result`, `then no result`) follow
|
|
12
|
+
`Documentation/screenplay/{specifications,diagnostics}.md`.
|
|
15
13
|
|
|
16
|
-
|
|
|
17
|
-
| --- | --- |
|
|
18
|
-
|
|
|
19
|
-
|
|
|
20
|
-
|
|
|
21
|
-
|
|
|
14
|
+
| Area | Purpose |
|
|
15
|
+
| --- | --- |
|
|
16
|
+
| Parser, binder and reference execution | Original evidence for the worked example |
|
|
17
|
+
| Inline facts, `optional` and clock spelling | Changed examples compile; the reference runner was not rerun for them |
|
|
18
|
+
| ESM v7 | Generated fixtures and `then returns` (`specifications.md` "Generated fixtures and return expectations"): the excerpt matches the compiled example in `cratis-screenplay-toolchain`, whose specifications run in the reference runner |
|
|
19
|
+
| ESM v6 | Specification actions and reaction cascades, `then no readmodel`, `$strings` rejections, `invokes` caller rule |
|
|
22
20
|
|
|
23
21
|
The inline-facts update followed `commands.md`, `events.md`, `types.md` and
|
|
24
|
-
`specifications.md
|
|
25
|
-
|
|
26
|
-
source evidence distinct from the current source-check gate and V4 execution.
|
|
22
|
+
`specifications.md`. That pass compiled the changed examples; it did not rerun the reference
|
|
23
|
+
runner. Keep this source evidence distinct from the current source-check gate and V4 execution.
|
package/package/corpus/skills/cratis-screenplay-specifications/references/whitespace-rules.md
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
<!-- Copyright (c) Cratis. All rights reserved. -->
|
|
2
2
|
<!-- Licensed under the MIT license. See LICENSE file in the project root for full license information. -->
|
|
3
3
|
|
|
4
|
-
# Whitespace-only rule rejection
|
|
4
|
+
# Whitespace-only rule rejection
|
|
5
5
|
|
|
6
6
|
## Contents
|
|
7
7
|
|
|
8
|
-
-
|
|
8
|
+
- Product sources
|
|
9
9
|
- Complete model
|
|
10
10
|
|
|
11
11
|
Text `not empty` rejects null, empty text and Unicode `White_Space`-only text
|
|
12
|
-
for concept and command property rules.
|
|
13
|
-
|
|
12
|
+
for concept and command property rules. The reference execution rejects them for
|
|
13
|
+
**every ESM version**, without changing canonical bytes. Existing
|
|
14
14
|
specifications expecting whitespace acceptance now fail. Keep the rule and
|
|
15
15
|
correct its expected outcome, not its input to hide the rejection.
|
|
16
16
|
|
|
@@ -21,15 +21,15 @@ text (event-source and stream-id parts) still treats whitespace as a value.
|
|
|
21
21
|
Null command/event fixture values are not admitted in source specifications;
|
|
22
22
|
the null check has evaluator-source evidence, not a fabricated passing fixture.
|
|
23
23
|
|
|
24
|
-
##
|
|
24
|
+
## Product sources
|
|
25
25
|
|
|
26
|
-
Cratis/Screenplay
|
|
27
|
-
- `Source/DotNET/Screenplay/Semantics/Execution/SemanticEvaluator.cs
|
|
28
|
-
- `Documentation/screenplay/commands.md
|
|
29
|
-
- `Source/DotNET/Screenplay.CanonicalCorpus/Corpus/NotEmptyWhitespace/source.play
|
|
26
|
+
Cratis/Screenplay:
|
|
27
|
+
- `Source/DotNET/Screenplay/Semantics/Execution/SemanticEvaluator.cs`.
|
|
28
|
+
- `Documentation/screenplay/commands.md`, `concepts.md` in the same folder.
|
|
29
|
+
- `Source/DotNET/Screenplay.CanonicalCorpus/Corpus/NotEmptyWhitespace/source.play`
|
|
30
30
|
supplies the complete model below; only the explanatory Unicode comments are added.
|
|
31
|
-
- `Source/DotNET/Screenplay/Semantics/Execution/for_SemanticEvaluator/when_validating_not_empty/with_empty_text.cs
|
|
32
|
-
`with_non_whitespace_text.cs
|
|
31
|
+
- `Source/DotNET/Screenplay/Semantics/Execution/for_SemanticEvaluator/when_validating_not_empty/with_empty_text.cs`,
|
|
32
|
+
`with_non_whitespace_text.cs` and `with_a_collection.cs` in the same folder
|
|
33
33
|
check concept/property rejection, U+FEFF acceptance and collection boundaries
|
|
34
34
|
across versions. Decision 0071 documents unchanged identity text (`:37-41,79`).
|
|
35
35
|
|
|
@@ -114,6 +114,8 @@ module Names
|
|
|
114
114
|
Save the fenced model as `whitespace-rules.play`, then run
|
|
115
115
|
`screenplay test whitespace-rules.play --format json` with the standalone pin.
|
|
116
116
|
All seven specifications must pass; the corpus gate executes the complete fence.
|
|
117
|
-
A passing reference result does not prove that
|
|
117
|
+
A passing reference result does not prove that an older CLI-bundled compiler or
|
|
118
118
|
Stage/Arc targets have adopted the Unicode correction. Their own specifications
|
|
119
|
-
must establish parity
|
|
119
|
+
must establish parity.
|
|
120
|
+
|
|
121
|
+
Requires Screenplay 4.151.0 or later (`screenplay --version`) for the Unicode `not empty` correction.
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"fixtures": [],
|
|
5
5
|
"assertions": [
|
|
6
6
|
{ "kind": "play-compiles" },
|
|
7
|
-
{ "kind": "skill-contains", "value": "
|
|
7
|
+
{ "kind": "skill-contains", "value": "Whitespace-acceptance specs fail." },
|
|
8
8
|
{ "kind": "skill-contains", "value": "specification RejectingWhitespaceOnAConcept", "file": "references/whitespace-rules.md" },
|
|
9
9
|
{ "kind": "skill-contains", "value": "specification RejectingWhitespaceOnAProperty", "file": "references/whitespace-rules.md" },
|
|
10
10
|
{ "kind": "skill-contains", "value": "U+0085 and U+00A0 are whitespace; U+FEFF is not.", "file": "references/whitespace-rules.md" },
|
|
@@ -12,14 +12,9 @@
|
|
|
12
12
|
{ "kind": "skill-contains", "value": "specification ChildBeforeGivenParent", "file": "references/child-ordering.md" },
|
|
13
13
|
{ "kind": "skill-contains", "value": "specification ParentNeverArrives", "file": "references/child-ordering.md" },
|
|
14
14
|
{ "kind": "skill-contains", "value": "earlier-child-creation branch", "file": "references/child-ordering.md" },
|
|
15
|
-
{
|
|
16
|
-
"kind": "skill-contains",
|
|
17
|
-
"value": "main `fd18129`", "file": "references/source-notes.md"
|
|
18
|
-
},
|
|
19
15
|
{ "kind": "skill-contains", "value": "Generated fixtures and return expectations (ESM v7)" },
|
|
20
16
|
{ "kind": "skill-contains", "value": "`then returns` counts as a success outcome but does not relax event comparison", "file": "references/generated-fixtures.md" },
|
|
21
17
|
{ "kind": "skill-contains", "value": "`Unsupported(IdentityAllocation)`", "file": "references/generated-fixtures.md" },
|
|
22
|
-
{ "kind": "skill-contains", "value": "4.68.0", "file": "references/source-notes.md" },
|
|
23
18
|
{
|
|
24
19
|
"kind": "skill-contains",
|
|
25
20
|
"value": "Inline events are ordinary named facts", "file": "references/worked-example.md"
|
|
@@ -66,7 +61,7 @@
|
|
|
66
61
|
},
|
|
67
62
|
{
|
|
68
63
|
"kind": "skill-contains",
|
|
69
|
-
"value": "
|
|
64
|
+
"value": "A compiler that stops before ESM v6 executes `when query` only.", "file": "references/actions-beyond-commands.md"
|
|
70
65
|
},
|
|
71
66
|
{
|
|
72
67
|
"kind": "skill-contains",
|
|
@@ -82,11 +77,11 @@
|
|
|
82
77
|
},
|
|
83
78
|
{
|
|
84
79
|
"kind": "skill-contains",
|
|
85
|
-
"value": "Version skew: cascades and the false `PLAY0285`
|
|
80
|
+
"value": "Version skew: cascades and the false `PLAY0285`"
|
|
86
81
|
},
|
|
87
82
|
{
|
|
88
83
|
"kind": "skill-contains",
|
|
89
|
-
"value": "
|
|
84
|
+
"value": "Specification outcome 'ReminderScheduled' cannot be produced", "file": "references/reactions-and-cascades.md"
|
|
90
85
|
},
|
|
91
86
|
{ "kind": "skill-contains", "value": "Examples typed from another document", "file": "references/examples-and-routes.md" },
|
|
92
87
|
{ "kind": "skill-contains", "value": "`PLAY0520`", "file": "references/examples-and-routes.md" }
|
|
@@ -12,7 +12,7 @@ which it only records, and what a retry, a race or a replay does. Grammar lives
|
|
|
12
12
|
skills; this skill owns the decisions. The `.play` model is the source of truth: a rule that
|
|
13
13
|
lives only in code, or only in a description, is a finding, not a solution.
|
|
14
14
|
|
|
15
|
-
**First append into a scope
|
|
15
|
+
**First append into a scope.** The default optimistic
|
|
16
16
|
strategy compares the scope's tail sequence number. When nothing matches the scope yet (the
|
|
17
17
|
first event on a new event source, or the first event of a new source type, stream type or
|
|
18
18
|
stream id), there is no tail and the append is **not checked**: two writers opening the same
|
|
@@ -27,21 +27,17 @@ needs it:
|
|
|
27
27
|
Require target evidence that the check ran: a concurrent first-append scenario against a real
|
|
28
28
|
Chronicle, asserting one append wins, one is rejected, and `IAppendResult.ConcurrencyCheckPerformed`
|
|
29
29
|
is `true` (a skipped check and a passing one look identical otherwise; a current client against
|
|
30
|
-
an older kernel always reads `false`).
|
|
31
|
-
concurrency-tested here. The Stage scaffold pins Chronicle client/kernel and Arc releases (see `cratis-stage-rendering-and-sandbox` `references/rendered-application.md`;
|
|
30
|
+
an older kernel always reads `false`). Treat the default as unchecked until target evidence shows otherwise (a future major release can flip the default, so read the target's release notes). The Stage scaffold pins Chronicle client/kernel and Arc releases (see `cratis-stage-rendering-and-sandbox` `references/rendered-application.md`;
|
|
32
31
|
the CLI bundle's Chronicle follows the installed CLI: `cratis --version`); the APIs exist for gap-fill, not as automatically rendered enforcement.
|
|
33
32
|
|
|
34
|
-
##
|
|
33
|
+
## Product sources
|
|
35
34
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
Tool versions: `cratis-screenplay-toolchain` `SKILL.md`. Re-check the three
|
|
44
|
-
Chronicle issues before relying on a constraint in a later release.
|
|
35
|
+
Screenplay (`identifier`, `for`, constraints, generations, `id` pins and their diagnostics),
|
|
36
|
+
Chronicle (CHR0012, CHR0034 and the constraint and concurrency behavior below), Arc
|
|
37
|
+
(`[ProtectedDecision]`, `DecisionRead<T>`) and Stage (rendered apps pin the Arc and
|
|
38
|
+
Chronicle client/kernel listed in the Stage skill's `references/rendered-application.md`;
|
|
39
|
+
protected-read APIs are available to gap-fill). Tool versions: `cratis-screenplay-toolchain`
|
|
40
|
+
`SKILL.md`. Re-check the Chronicle limits below before relying on a constraint in a new release.
|
|
45
41
|
|
|
46
42
|
## When / when not
|
|
47
43
|
- Use: choosing `identifier` and `for`; adding or naming a `constraint`; a rule that depends on
|
|
@@ -87,10 +83,10 @@ option, mark it `ASSUMED` in the slice or module `documentation` and in the sess
|
|
|
87
83
|
invariant consequences, not names or length. For Chronicle keep event-source identity,
|
|
88
84
|
namespace, process-stream routing and concurrency scope apart
|
|
89
85
|
(`references/chronicle-boundaries.md`). Declared `eventsource`/`stream`/`streamId` and
|
|
90
|
-
command/specification routes bind and reference-execute as ESM v8
|
|
86
|
+
command/specification routes bind and reference-execute as ESM v8.
|
|
91
87
|
The CLI (toolchain `references/renderable-subset.md`) reaches Stage construct checks through v15; keep the routing
|
|
92
88
|
contract when target admission requires gap-fill. Forms/boundaries:
|
|
93
|
-
toolchain `references/sources-and-streams.md`. A `generated identifier` (ESM v7
|
|
89
|
+
toolchain `references/sources-and-streams.md`. A `generated identifier` (ESM v7; Stage renders supported UUID/String strategies and v15 freshness; unsupported types/results still refuse -028/-038) is
|
|
94
90
|
generated fresh on every acceptance: it is not a retry identity, and generated values give no
|
|
95
91
|
idempotency, retry or deduplication guarantee. When a retry must find the same stream, the caller
|
|
96
92
|
supplies the identifier before the first attempt.
|
|
@@ -129,7 +125,7 @@ option, mark it `ASSUMED` in the slice or module `documentation` and in the sess
|
|
|
129
125
|
`references/compliance.md` for allowed types and the policy/encryption distinction.
|
|
130
126
|
5. **Plan evolution** with `references/evolution.md`: classify each event change (additive,
|
|
131
127
|
meaning change, rename, removal, split or merge) and write its compatibility scenarios before
|
|
132
|
-
editing. Admit the **
|
|
128
|
+
editing. Admit the **release baseline** in the release job; admitted
|
|
133
129
|
revisions need `newGeneration`. Modes/CLI/MCP: `references/evolution.md`.
|
|
134
130
|
Pin persisted/public enum member numbers before reordering or removing
|
|
135
131
|
members; never renumber or reuse a published number. Positional pins preserve
|
|
@@ -144,7 +140,7 @@ option, mark it `ASSUMED` in the slice or module `documentation` and in the sess
|
|
|
144
140
|
decisions and capability gaps in `STATE.md`. Then the gate below.
|
|
145
141
|
|
|
146
142
|
## Rules
|
|
147
|
-
**Compiler contracts** (diagnostics
|
|
143
|
+
**Compiler contracts** (diagnostics; capability per tool in the toolchain `references/executable-subset.md`)
|
|
148
144
|
- `identifier` on an event property is PLAY0019; the source id is never payload by declaration.
|
|
149
145
|
Copying it as a payload value is PLAY0469 (information, warning for inline events).
|
|
150
146
|
- In the executable model a production's `for` must resolve to the command's scalar identifier:
|
|
@@ -153,41 +149,45 @@ option, mark it `ASSUMED` in the slice or module `documentation` and in the sess
|
|
|
153
149
|
directly on the event (PLAY0391); never mix event and property rules under one name (PLAY0135);
|
|
154
150
|
`ignore casing` is not allowed on `unique event` (PLAY0393).
|
|
155
151
|
- Generations are declared in full, numbered 1..N without gaps, in the same slice
|
|
156
|
-
(PLAY0446-0448). Referencing a removed property is PLAY0273; a `given` needing a
|
|
152
|
+
(PLAY0446-0448). Referencing a removed property is PLAY0273; a `given` needing a previous-generation
|
|
157
153
|
shape is PLAY0449. An `id` pin equal to the event's current name is PLAY0471 (information).
|
|
158
|
-
|
|
154
|
+
Differing pins carry `storedName` in ESM v16;
|
|
159
155
|
equal-name pins are no-ops. Pins are event-name identifiers, shared by all
|
|
160
156
|
generations and unique application-wide (PLAY0472). Consumers must admit v16;
|
|
161
|
-
|
|
157
|
+
a renderer that stops before v16 does not. See `references/evolution.md`.
|
|
162
158
|
- `reads` is PLAY0271 and `require` over read-model paths is PLAY0268 at binding. A `concurrency`
|
|
163
159
|
block compiles but is PLAY0271 at binding. Keep both when they state real intent; they are not
|
|
164
160
|
protection. `description` text never reaches rendered code: a rule that lives only in prose is
|
|
165
161
|
unenforced there.
|
|
166
|
-
- `pii` and `secret` bind as ESM v13
|
|
162
|
+
- `pii` and `secret` bind as ESM v13;
|
|
167
163
|
enum/identity compliance and protected events with explicit subject marks still
|
|
168
164
|
refuse PLAY0268 (command-surface `references/compliance.md`). Legacy markers are
|
|
169
165
|
deprecated (PLAY0565). Never remove protection to pass a tool. PLAY0515 also refuses
|
|
170
166
|
scalar/composite stream-id types and route mapping sources, including nested paths.
|
|
171
|
-
-
|
|
167
|
+
- Stream-id literals must be nonempty, well-formed NFC text (refused,
|
|
172
168
|
not normalized); integer ids in Double mode stay within ±(2^53−1). Exact mode
|
|
173
169
|
has no such bound but is unadmitted. PLAY0504 is an error for route/destination
|
|
174
170
|
nominal type mismatch. Composite ids use at least two named scalar parts,
|
|
175
171
|
complete named mappings and canonical comparison, not guessed legacy splits.
|
|
176
172
|
Stored key-schema changes require a new stream identity or migration; see
|
|
177
|
-
toolchain `references/sources-and-streams.md`.
|
|
178
|
-
a stored stream name exactly `All` (name or `id "All"`) refuses binding with
|
|
173
|
+
toolchain `references/sources-and-streams.md`. A stored stream name exactly `All` (name or `id "All"`) refuses binding with
|
|
179
174
|
PLAY0273, parallel to source `Default`. Streams `all`, `ALL` and `Default`
|
|
180
175
|
remain valid. Rename via `propose-rename`; a pin retaining `All` cannot fix it.
|
|
181
176
|
Existing `All` history reads as source-only appends, not the renamed stream.
|
|
182
177
|
Source evidence and migration limits are in that reference.
|
|
183
|
-
- Chronicle
|
|
184
|
-
|
|
185
|
-
collide on the separator
|
|
186
|
-
- `[ProtectedDecision]`
|
|
187
|
-
rendered package set. It is not emitted protection: gap-fill must enroll an admitted
|
|
178
|
+
- Chronicle limits: before 19.59.6 (InMemory: 19.59.3) the SQL and InMemory providers do not settle unique claims (see the Requires line below);
|
|
179
|
+
index updates run after commit and may fail silently; composite values can
|
|
180
|
+
collide on the separator. A declared constraint is a declaration, not a runtime test.
|
|
181
|
+
- `[ProtectedDecision]` ships in Arc and Stage's rendered package set. It is not emitted protection: gap-fill must enroll an admitted
|
|
188
182
|
decision read, or redesign the stream/identity when the shape is refused
|
|
189
183
|
(`references/consistency-and-concurrency.md`, section 3).
|
|
190
184
|
|
|
185
|
+
Requires Screenplay 4.150.0 or later (`screenplay --version`) for the `All` stored-stream refusal, 4.152.0 or later for `storedName` (ESM v16) and 4.153.0 or later for the release baseline.
|
|
186
|
+
|
|
187
|
+
Requires Arc 22.39.0 or later and Chronicle 19.23.0 or later for `[ProtectedDecision]`.
|
|
188
|
+
|
|
189
|
+
Requires Chronicle 19.59.6 or later (19.59.3 for the InMemory provider) for the SQL provider to settle unique-constraint claims; before it, two concurrent appends can both claim one value.
|
|
190
|
+
|
|
191
191
|
**Modeling defaults** (deviate with a recorded reason)
|
|
192
192
|
- One business identity per stream; cross-stream references are payload properties.
|
|
193
193
|
- Copy the source id into the payload only when a consumer needs it as a value.
|
|
@@ -4,19 +4,23 @@ Read when consistency, tenancy or personal data decides where a boundary falls.
|
|
|
4
4
|
target facts; the `.play` model declares only part of them (`references/executable-subset.md` in
|
|
5
5
|
`cratis-screenplay-toolchain`).
|
|
6
6
|
|
|
7
|
-
##
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
InMemory providers do not settle unique claims
|
|
11
|
-
and fail silently
|
|
12
|
-
separator
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
protected (see `consistency-and-concurrency.md` section 3).
|
|
16
|
-
constraint in a new release.
|
|
17
|
-
A concurrency scope's first append is unchecked by default
|
|
7
|
+
## Target facts
|
|
8
|
+
|
|
9
|
+
Chronicle has CHR0012 (nullable event properties) and CHR0034 (PII on an event-source id).
|
|
10
|
+
Three runtime limits apply: on older Chronicle releases (see the Requires line below) the SQL and InMemory providers do not settle unique claims,
|
|
11
|
+
constraint index updates run after commit and fail silently, and composite unique
|
|
12
|
+
constraints collide when a component contains the separator. Arc has `[ProtectedDecision]`;
|
|
13
|
+
Stage-rendered apps pin an Arc and Chronicle client/kernel release (see the Stage skill's
|
|
14
|
+
`references/rendered-application.md`) that include it, so the APIs are available to gap-fill,
|
|
15
|
+
not automatically emitted or protected (see `consistency-and-concurrency.md` section 3).
|
|
16
|
+
Re-check these limits before relying on a constraint in a new release.
|
|
17
|
+
A concurrency scope's first append is unchecked by default; see
|
|
18
18
|
SKILL.md, ‘First append into a scope’.
|
|
19
19
|
|
|
20
|
+
Requires Arc 22.39.0 or later and Chronicle 19.23.0 or later for `[ProtectedDecision]`.
|
|
21
|
+
|
|
22
|
+
Requires Chronicle 19.59.6 or later (19.59.3 for the InMemory provider) for the SQL provider to settle unique-constraint claims; before it, two concurrent appends can both claim one value.
|
|
23
|
+
|
|
20
24
|
## Identity, routing and claims
|
|
21
25
|
Name four things separately: the event store/namespace, the business event-source identity, any
|
|
22
26
|
process streams that route work, and the scope of each invariant. Use source/stream
|
|
@@ -27,8 +31,8 @@ tenants.
|
|
|
27
31
|
A value constraint protects a claim across sources within its configured scope; an event-type
|
|
28
32
|
constraint protects one occurrence per source. List every event that claims, changes or
|
|
29
33
|
releases the value, including correction and import paths. Post-commit index maintenance is not
|
|
30
|
-
atomic durability
|
|
31
|
-
SQL and InMemory providers do not settle unique claims (
|
|
34
|
+
atomic durability; composite separators can collide; on older Chronicle releases the
|
|
35
|
+
SQL and InMemory providers do not settle unique claims (Requires line above).
|
|
32
36
|
|
|
33
37
|
## State used for decisions
|
|
34
38
|
Materialized views may lag. A passive read folds events on demand but does not protect the
|
|
@@ -44,8 +48,7 @@ A namespace scopes event positions, claims, observer progress and encryption key
|
|
|
44
48
|
whether uniqueness and completion are per tenant or genuinely cross-tenant.
|
|
45
49
|
|
|
46
50
|
Decide the data subject before the event/view shape: one person per event or
|
|
47
|
-
read-model instance, not necessarily the stream's identity.
|
|
48
|
-
trailing event `subject` is report-only lineage, not runtime propagation or C#
|
|
51
|
+
read-model instance, not necessarily the stream's identity. Trailing event `subject` is report-only lineage, not runtime propagation or C#
|
|
49
52
|
`[Subject]`; read-model marks remain unsupported. Use bare `pii` for personal
|
|
50
53
|
values and `secret` for operational secrets on concepts, never on identities or
|
|
51
54
|
subjects. Current PLAY0515 is a source error, including destinations, stream-id
|
|
@@ -13,10 +13,9 @@
|
|
|
13
13
|
- 9. Corrections and backdated facts
|
|
14
14
|
- 10. Specification limits (no local spec engine)
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
`cratis-screenplay-toolchain`).
|
|
16
|
+
For installed tool versions see `SKILL.md` of `cratis-screenplay-toolchain`.
|
|
18
17
|
|
|
19
|
-
Routing identity checks verified
|
|
18
|
+
Routing identity checks verified: PLAY0515 refuses personal/secret
|
|
20
19
|
concepts in stream-id types, composite parts and route sources, including nested
|
|
21
20
|
paths. Composite keys require every named scalar part, not a legacy separator
|
|
22
21
|
split. Text must be well-formed, nonempty NFC and Double integer ids bounded by
|
|
@@ -43,8 +42,8 @@ Status describes how the model treats the requirement:
|
|
|
43
42
|
compensating fact and the consequence that remains possible.
|
|
44
43
|
|
|
45
44
|
`enforced` is a declaration, not a runtime test result. In Chronicle the kernel checks a
|
|
46
|
-
constraint at append, but the SQL and InMemory providers do not settle unique claims
|
|
47
|
-
|
|
45
|
+
constraint at append, but before Chronicle 19.59.6 (InMemory: 19.59.3) the SQL and InMemory providers do not settle unique claims,
|
|
46
|
+
and index updates run after commit; composite values can collide when a component contains the separator; name the target's storage
|
|
48
47
|
provider when you rely on a constraint, record runtime evidence separately, and never claim
|
|
49
48
|
atomic index-and-append durability. Per row, cite the exact construct or description address
|
|
50
49
|
and the scenario names; on extracted models keep the legacy evidence locator and separate an
|
|
@@ -95,8 +94,8 @@ b. **reservation by identity**: if the scarce things can be named (seat 1..N, sl
|
|
|
95
94
|
c. **accept and compensate**: allow the over-commit, detect it in a view or automation and
|
|
96
95
|
record a compensating fact (`EnrolmentWaitlisted`); only when the business agrees.
|
|
97
96
|
|
|
98
|
-
Target realization (for the handoff, not the model): in an Arc/Chronicle target (Arc
|
|
99
|
-
later, Chronicle 19.23 or later) the rule is a `[ProtectedDecision]` command reading `DecisionRead<T>` (or `IDecisionReads.Get<T>(key)` for
|
|
97
|
+
Target realization (for the handoff, not the model): in an Arc/Chronicle target (Arc 22.39.0 or
|
|
98
|
+
later, Chronicle 19.23 or later; see the Requires line below) the rule is a `[ProtectedDecision]` command reading `DecisionRead<T>` (or `IDecisionReads.Get<T>(key)` for
|
|
100
99
|
another event source) in `Provide()`/`Handle()` and returning a validation result; a conflict
|
|
101
100
|
at commit is reported as a concurrency violation. Equivalently a Chronicle decision-consistency
|
|
102
101
|
read with a `concurrency` scope on the event source or stream. A passive read is fresh
|
|
@@ -106,7 +105,7 @@ empty or `$eventSourceId`). Reducers, joins, children, nested sources and **even
|
|
|
106
105
|
routing** (fan-in from many streams by a payload reference) are refused, and a concurrency scope
|
|
107
106
|
on the referenced source does not see appends made on other sources. A rule over such a view, for
|
|
108
107
|
example a course capacity computed from enrolment streams, needs option a or b: write the
|
|
109
|
-
deciding fact on the source that owns the state, or give each scarce item its own identity. Sources: Arc `
|
|
108
|
+
deciding fact on the source that owns the state, or give each scarce item its own identity. Sources: Arc `Documentation/backend/csharp/chronicle/read-models/injecting-into-commands.md` (limits unchanged);
|
|
110
109
|
`chronicle-boundaries.md`.
|
|
111
110
|
|
|
112
111
|
**Availability in Stage-rendered applications.** The Stage scaffold pins Arc and Chronicle client/kernel
|
|
@@ -119,14 +118,16 @@ read in the active unit of work. For refused shapes choose option a/b (state on
|
|
|
119
118
|
its owning stream or one identity per scarce item), or agreed compensation c.
|
|
120
119
|
Keep the rule **NOT enforced in the model today** with its race consequence.
|
|
121
120
|
Never infer protection from `.play` `reads` + `require`, weaken the rule to render,
|
|
122
|
-
or edit managed dependency files.
|
|
121
|
+
or edit managed dependency files. A rendered scaffold pins its own Arc and Chronicle releases and does not move with newer ones.
|
|
122
|
+
|
|
123
|
+
Requires Arc 22.39.0 or later and Chronicle 19.23.0 or later for `[ProtectedDecision]`.
|
|
123
124
|
|
|
124
125
|
## 4. Concurrency scenarios
|
|
125
126
|
For each enforced or recorded rule write three short scenarios:
|
|
126
127
|
- **race**: two commands for the same claim at the same moment -> which one wins, what the
|
|
127
128
|
loser sees. With constraints: one append commits, the other is rejected. Note: Chronicle
|
|
128
129
|
checks uniqueness before the commit and updates the index after it; index update failures
|
|
129
|
-
are logged, not rolled back (Screenplay `constraints.md`, Chronicle#4123, open
|
|
130
|
+
are logged, not rolled back (Screenplay `constraints.md`, Chronicle#4123, open). Do not call it an
|
|
130
131
|
atomic index-and-append guarantee.
|
|
131
132
|
- **retry** (same request and operation identity, after a lost reply) -> must not record a
|
|
132
133
|
second occurrence, without blocking a different legitimate operation. A once-only fact uses
|
|
@@ -161,16 +162,16 @@ behaviour. Write the answer in the slice `documentation`.
|
|
|
161
162
|
## 7. Ordering
|
|
162
163
|
- Within one source, facts are in append order. Across sources, do not assume an order
|
|
163
164
|
unless a single sequence guarantees it in the target; views combining sources must tolerate
|
|
164
|
-
any arrival order (a child before its parent).
|
|
165
|
-
and later**, pin that order with `given <ChildEvent>`, then `given <ParentEvent>`,
|
|
165
|
+
any arrival order (a child before its parent). Pin that order with `given <ChildEvent>`, then `given <ParentEvent>`,
|
|
166
166
|
then `then readmodel`; also cover a given child followed by `when append <ParentEvent>`.
|
|
167
167
|
The reference evaluator defers the child until its original parent exists. A parent
|
|
168
168
|
that never arrives leaves the child absent; an ambiguous parent still fails closed.
|
|
169
169
|
This is reference execution, not a Chronicle runtime/race proof. Complete example:
|
|
170
170
|
[child ordering](../../cratis-screenplay-specifications/references/child-ordering.md).
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
`
|
|
171
|
+
Requires Screenplay 4.149.1 or later (`screenplay --version`) for child-before-parent ordering.
|
|
172
|
+
Sources: Cratis/Screenplay
|
|
173
|
+
`Documentation/screenplay/projections/semantic-model.md` and
|
|
174
|
+
`Source/DotNET/Screenplay/Semantics/Execution/SemanticScopedProjection.Deferred.cs`.
|
|
174
175
|
- Constraints are evaluated in append order, including earlier appends of the same command.
|
|
175
176
|
|
|
176
177
|
## 8. Projection lag and rebuild
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
A complete design-mode model showing the three evolution routes from `evolution.md`: a new
|
|
4
4
|
generation (compatible change), an identity-aware rename that keeps the authored stored-name
|
|
5
5
|
intent as an `id` pin, and a changed meaning that becomes a new event. Several generations
|
|
6
|
-
alone select ESM v4; the differing event pin selects v16
|
|
6
|
+
alone select ESM v4; the differing event pin selects v16.
|
|
7
7
|
It carries `storedName`, but released Stage 4.92.0 does not admit v16: this example
|
|
8
8
|
does not prove rendered stored-history compatibility.
|
|
9
9
|
See `evolution.md` for source evidence and the deployment boundary.
|
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
|
-
- Stored event names
|
|
6
|
+
- Stored event names
|
|
7
7
|
- Enum identities are stored contracts
|
|
8
8
|
- Compatibility scenarios (write before editing)
|
|
9
9
|
- Identity rules
|
|
@@ -16,7 +16,7 @@ lifecycles and events that record what the business decided (not table rows) cha
|
|
|
16
16
|
|
|
17
17
|
## Classify the change
|
|
18
18
|
|
|
19
|
-
**
|
|
19
|
+
**Release baseline:** commit `.screenplay/release-baseline.json`,
|
|
20
20
|
written by explicit `screenplay baseline admit <root> --release <label>` in the release
|
|
21
21
|
job; gate later edits with `screenplay baseline check <root>`. Without a baseline,
|
|
22
22
|
current-property edits still require exactly one of `newGeneration` or
|
|
@@ -44,10 +44,10 @@ compatibility scenarios below first; the identity owner then applies the change
|
|
|
44
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 |
|
|
45
45
|
| rename a constraint | n/a | starts an empty index: values claimed before are unprotected. Ask first | identity-affecting |
|
|
46
46
|
|
|
47
|
-
## Stored event names
|
|
47
|
+
## Stored event names
|
|
48
48
|
|
|
49
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
|
|
50
|
+
its old stored name: `event NewName` with `id "OldName"`. Screenplay
|
|
51
51
|
carries a differing pin as `storedName` on the current event contract and selects
|
|
52
52
|
ESM v16. All generations share that effective stored name (pin, otherwise name);
|
|
53
53
|
it does not replace or rehash the catalog's portable `EventContractId`.
|
|
@@ -57,23 +57,25 @@ characters, nonempty and without surrounding whitespace. Invalid pins, different
|
|
|
57
57
|
effective names across generations and duplicate stored names across the application
|
|
58
58
|
refuse binding with **PLAY0472**. An equal-name pin is a no-op: no `storedName`, no
|
|
59
59
|
v16 selection; PLAY0471 removal preserves ESM bytes. Models without differing pins
|
|
60
|
-
retain earlier versions, bytes and revisions.
|
|
60
|
+
retain earlier versions, bytes and revisions. MCP's
|
|
61
61
|
compatibility `eventPinWarnings` array is empty.
|
|
62
62
|
|
|
63
63
|
Consumers must explicitly admit v16 and preserve `storedName`, or refuse it.
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
A renderer that stops before v16 does not: it emits argument-free `[EventType]`, and a CLI
|
|
65
|
+
bundle can carry an older compiler. Do not
|
|
66
66
|
promise rendered storage compatibility or remove the pin to make rendering pass.
|
|
67
67
|
A passing reference specification is not a stored-history test: reference facts
|
|
68
68
|
still use contract/display names. If an older renderer already stored events under
|
|
69
69
|
the new name, switching the stored type needs a reviewed baseline correction or
|
|
70
|
-
data migration, not a silent re-render.
|
|
71
|
-
|
|
70
|
+
data migration, not a silent re-render. The `--from-esm` stored-name behavior is in the
|
|
71
|
+
release-baseline reference.
|
|
72
72
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
`Source/DotNET/Screenplay
|
|
73
|
+
Requires Screenplay 4.152.0 or later (`screenplay --version`) for `storedName` (ESM v16) and 4.153.0 or later for the release baseline.
|
|
74
|
+
|
|
75
|
+
Sources: Cratis/Screenplay `Documentation/screenplay/events.md`,
|
|
76
|
+
`Source/DotNET/Screenplay/Semantics/SemanticModelBinder.StoredEventNames.cs`,
|
|
77
|
+
`SemanticModelBinder.Structure.cs` in the same folder, and
|
|
78
|
+
`Source/DotNET/Screenplay.Mcp/McpWorkspaces.Refactoring.cs`.
|
|
77
79
|
Target evidence: toolchain `references/diagnostics.md` (Reserved stored names and event pins).
|
|
78
80
|
Source/stream stored names already travel in ESM v8; stream `All` remains reserved
|
|
79
81
|
regardless of a pin (toolchain `sources-and-streams.md`).
|
|
@@ -91,9 +93,9 @@ when those positions match storage. Never renumber or reuse a published member's
|
|
|
91
93
|
number. Removing a member still needs replay and mixed-reader compatibility decisions.
|
|
92
94
|
|
|
93
95
|
Numbered members may have sparse or negative unique int32 values, all or none per
|
|
94
|
-
enum. Source authoring shipped
|
|
95
|
-
|
|
96
|
-
|
|
96
|
+
enum. Source authoring shipped; non-positional numbers bind as ESM v12
|
|
97
|
+
Positional pins retain older executable bytes/version. A renderer that admits v12 renders
|
|
98
|
+
explicit member numbers; keep the pins.
|
|
97
99
|
Short-lived input/view-only enums may remain positional. Use opt-in
|
|
98
100
|
`--check enum-pinning` (PLAY0671) to find unnumbered enums used by event properties.
|
|
99
101
|
Syntax/example and source evidence: command-surface [enum numbers](../../cratis-screenplay-command-surface/references/enum-numbers.md).
|
|
@@ -133,7 +135,7 @@ Procedure and ownership: the identity procedure in `cratis-screenplay-modeling-l
|
|
|
133
135
|
owning session, or a brief that asks for the rename, applies it; a subagent without MCP returns
|
|
134
136
|
the catalog-changing request to the owner; never leave a requested change silently unapplied).
|
|
135
137
|
- Several generations select ESM v4; that binds executably on both tools (compiled
|
|
136
|
-
with `evolution-example.md`). Stage (still
|
|
138
|
+
with `evolution-example.md`). Stage (still) admits v4 but refuses any evolved event and its
|
|
137
139
|
dependent scope with `STAGE-ESM-026` (it cannot render event-type migrations yet, Stage#204,
|
|
138
140
|
which depends on Screenplay#71), and its runtime still refuses evolved events: the evolved
|
|
139
141
|
events are gap-fill, with migrations hand-written per `cratis-chronicle-event-type-migration`.
|
package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/provenance.md
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
| Interface and processor inventory per boundary, communication trace, system-organization output shape, quality checklist | same file | MIT | ADAPT | `boundaries.md` "Ownership and interface inventory", "Boundary record" |
|
|
7
7
|
| Event-by-event stream identity check, decision per identity, "design first, snapshot second" | TrogonStack/agentskills@7b249d3:plugins/trogonstack-eventmodeling/skills/eventmodeling-optimizing-stream-design/SKILL.md and its patterns reference | MIT | ADAPT (arbitrary length thresholds and mandatory archival splits dropped) | `stream-patterns.md` |
|
|
8
8
|
| Growth-estimate interview and the order "redesign, then read model, then measure, then snapshot" | same skill | MIT | ADAPT | SKILL.md "Interview phase", `stream-patterns.md` "Growth and snapshots" |
|
|
9
|
-
| Invariant table, state-dependent rule recording, race/retry/duplicate scenarios, evolution classes, Chronicle boundaries | Cratis corpus drafts
|
|
10
|
-
| Worked examples (courses and enrolment, memberships, marina berths) | written for this skill
|
|
9
|
+
| Invariant table, state-dependent rule recording, race/retry/duplicate scenarios, evolution classes, Chronicle boundaries | Cratis corpus drafts | MIT | ORIGINAL | `consistency-and-concurrency.md`, `evolution.md`, `chronicle-boundaries.md` |
|
|
10
|
+
| Worked examples (courses and enrolment, memberships, marina berths) | written for this skill | MIT | ORIGINAL | `streams-example.md`, `evolution-example.md`, `boundaries.md` |
|
|
11
11
|
|
|
12
12
|
Event Modeling practice is by Adam Dymitruk and Martin Dilger, cited as practice; no text taken.
|
|
13
13
|
|
|
@@ -19,7 +19,7 @@ by Martin Dilger and Nebulit GmbH (https://nebulit.de), used with the explicit c
|
|
|
19
19
|
| Source file | Used in | How |
|
|
20
20
|
|---|---|---|
|
|
21
21
|
| `.claude/skills/eventmodeling-optimizing-stream-design/SKILL.md`: golden rule, identity-then-every-event review, classification table | `SKILL.md` Procedure 1, `references/stream-patterns.md` "Identity and event-membership review", "Interpret the evidence" | adapted closely; "long history is fine" kept, translated to `identifier`/`for` |
|
|
22
|
-
| `.claude/skills/eventmodeling-optimizing-stream-design`, patterns reference: decision tree, red flags 2-4, composite and collection and log patterns | `references/stream-patterns.md` "Boundary decision tree", "Red flags", "Boundary patterns by domain" | adapted closely
|
|
22
|
+
| `.claude/skills/eventmodeling-optimizing-stream-design`, patterns reference: decision tree, red flags 2-4, composite and collection and log patterns | `references/stream-patterns.md` "Boundary decision tree", "Red flags", "Boundary patterns by domain" | adapted closely; red flag 1 ("no natural end") dropped because it contradicts long-lived identities; event-granularity tip dropped (generic update events are a defect here) |
|
|
23
23
|
| `.claude/skills/eventmodeling-optimizing-stream-design`, domain-patterns reference: per-domain identity entries | `references/stream-patterns.md` "Boundary patterns by domain" | translated to invoicing, marina, memberships, enrolment and hire; lifetimes and archival splits dropped |
|
|
24
24
|
| `.claude/skills/eventmodeling-applying-conways-law/SKILL.md`: interview questions with follow-up triggers, six-step ownership workflow, quality checklist | `references/boundaries.md` "Ownership interview", "Ownership and interface inventory", "Responsibility matrix and ownership timeline", "Boundary checklist" | adapted closely; "team = system" absolutes deliberately not adopted, kept "not by law" |
|
|
25
25
|
| `.claude/skills/eventmodeling-applying-conways-law`, examples reference: responsibility matrix, swimlane timeline, inter-system communication | `references/boundaries.md` "Responsibility matrix and ownership timeline", "Worked walkthrough" | translated to marina and invoicing (see the next row for the indirect-producer attribution) |
|
|
@@ -20,7 +20,7 @@ A stream in Screenplay is the event source a production lands on: `identifier` o
|
|
|
20
20
|
command, `for <identifier>` on each `produces`, `$eventSourceId` in projections, `for "<id>"`
|
|
21
21
|
in specifications. Choosing the identifier *is* choosing the stream.
|
|
22
22
|
|
|
23
|
-
Composite stream keys
|
|
23
|
+
Composite stream keys declare `streamId` with two or more
|
|
24
24
|
named scalar parts and map every part on routes (specification parts are literals).
|
|
25
25
|
Scalar forms remain valid. Text is nonempty, well-formed NFC; Double integer ids
|
|
26
26
|
stay within ±(2^53−1). Protected concepts cannot be key types/parts or mapping
|
|
@@ -5,10 +5,10 @@ cross-stream references as payload, three kinds of uniqueness constraint, a stat
|
|
|
5
5
|
rule recorded as **NOT enforced in the model today**, a declared `concurrency` scope, and an
|
|
6
6
|
active-state view with removal. Read it with `consistency-and-concurrency.md` (sections 1-4).
|
|
7
7
|
|
|
8
|
-
The model compiles
|
|
8
|
+
The model compiles (V1, warnings as errors) but is not binding-ready by design:
|
|
9
9
|
`reads` and the `concurrency` block are PLAY0271, and `require` over a view is PLAY0268.
|
|
10
10
|
The `pii` concept failed binding on that compiler and still fails on the pinned CLI,
|
|
11
|
-
but binds as v13 on standalone 4.142.0
|
|
11
|
+
but binds as v13 on standalone 4.142.0. Keep those lines: they state real intent.
|
|
12
12
|
|
|
13
13
|
```screenplay expect PLAY0516 test=unbound
|
|
14
14
|
// cratis-screenplay-streams-and-consistency: complete design-mode example (V1 with --warnings-as-errors).
|
|
@@ -8,14 +8,14 @@
|
|
|
8
8
|
{ "kind": "skill-contains", "value": "screenplay baseline check", "file": "references/evolution.md" },
|
|
9
9
|
{ "kind": "play-compiles" },
|
|
10
10
|
{ "kind": "skill-contains", "value": "stream name exactly `All`" },
|
|
11
|
-
{ "kind": "skill-contains", "value": "
|
|
11
|
+
{ "kind": "skill-contains", "value": "compatibility `eventPinWarnings` array is empty", "file": "references/evolution.md" },
|
|
12
12
|
{ "kind": "skill-contains", "value": "duplicate stored names across the application", "file": "references/evolution.md" },
|
|
13
13
|
{ "kind": "skill-contains", "value": "An equal-name pin is a no-op", "file": "references/evolution.md" },
|
|
14
14
|
{ "kind": "skill-contains", "value": "Consumers must explicitly admit v16 and preserve `storedName`", "file": "references/evolution.md" },
|
|
15
15
|
{ "kind": "skill-contains", "value": "never arrives leaves the child absent", "file": "references/consistency-and-concurrency.md" },
|
|
16
16
|
{ "kind": "skill-contains", "value": "one business identity per stream" },
|
|
17
17
|
{ "kind": "skill-contains", "value": "NOT enforced in the model today" },
|
|
18
|
-
{ "kind": "skill-contains", "value": "
|
|
18
|
+
{ "kind": "skill-contains", "value": "do not settle unique claims" },
|
|
19
19
|
{ "kind": "skill-contains", "value": "`[ProtectedDecision]`" },
|
|
20
20
|
{ "kind": "skill-contains", "value": "ownership interview" },
|
|
21
21
|
{ "kind": "skill-contains", "value": "retry identity" },
|
|
@@ -23,7 +23,6 @@
|
|
|
23
23
|
{ "kind": "skill-contains", "value": "No calculated events" },
|
|
24
24
|
{ "kind": "skill-contains", "value": "decision tree and red flags" },
|
|
25
25
|
{ "kind": "skill-contains", "value": "bind and reference-execute as ESM v8" },
|
|
26
|
-
{ "kind": "skill-contains", "value": "STAGE-ESM-026" },
|
|
27
26
|
{ "kind": "skill-contains", "value": "generated values give no\n idempotency, retry or deduplication guarantee" },
|
|
28
27
|
{ "kind": "skill-contains", "value": "Stage construct checks through v15" }
|
|
29
28
|
]
|
|
@@ -132,6 +132,8 @@ read-surface [equality filters](../../cratis-screenplay-read-surface/references/
|
|
|
132
132
|
|
|
133
133
|
Requires Screenplay 4.143.0 or later (`screenplay --version`) for equality filters; earlier compilers refuse them.
|
|
134
134
|
|
|
135
|
+
Requires Screenplay 4.105.0 or later (`screenplay --version`) for list queries (unfiltered, or narrowed by one `by` key); earlier compilers refuse them with PLAY0268.
|
|
136
|
+
|
|
135
137
|
## Time, reactions and captures (ESM v6)
|
|
136
138
|
|
|
137
139
|
- `slice Automation` with `reaction`: `when <Event>` (with values) then `produces` (no
|