@cratis/pi 7.51.0 → 7.51.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package/corpus/harnesses/copilot/instructions/application-profile.instructions.md +15 -1
- package/package/corpus/harnesses/copilot/instructions/authoring-skills.instructions.md +1 -1
- package/package/corpus/harnesses/copilot/instructions/cratis-folder-is-configuration.instructions.md +3 -1
- package/package/corpus/harnesses/copilot/instructions/exit-codes-and-wrappers.instructions.md +7 -1
- package/package/corpus/harnesses/copilot/instructions/guards-and-fuses.instructions.md +7 -1
- package/package/corpus/harnesses/pi/extensions/shared/rules.ts +9 -1
- package/package/corpus/rules/application-profile.md +15 -1
- package/package/corpus/rules/authoring-skills.md +1 -1
- package/package/corpus/rules/cratis-folder-is-configuration.md +3 -1
- package/package/corpus/rules/exit-codes-and-wrappers.md +7 -1
- package/package/corpus/rules/general.md +8 -6
- package/package/corpus/rules/guards-and-fuses.md +7 -1
- 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/src/index.ts +9 -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
|
@@ -17,7 +17,7 @@ They share item conditions/subject rules but run once without a click-time refet
|
|
|
17
17
|
|
|
18
18
|
A label-headed `action "<text>"` (or `$strings.<key>`) can choose a command
|
|
19
19
|
from the displayed item's state. The label replaces a plain action's `label`
|
|
20
|
-
child. This complete model
|
|
20
|
+
child. This complete model compiles without warnings;
|
|
21
21
|
it is authoring evidence, not a rendered interaction test:
|
|
22
22
|
|
|
23
23
|
```screenplay
|
|
@@ -75,11 +75,9 @@ The guard controls an offer, never server permission. The selected command still
|
|
|
75
75
|
runs authorization, validation and constraints; denial never falls through to a
|
|
76
76
|
second command. Screens remain outside portable ESM execution. A downstream
|
|
77
77
|
renderer must explicitly admit guarded selection or report unsupported behavior,
|
|
78
|
-
not approximate it as a plain action.
|
|
79
|
-
|
|
80
|
-
cannot establish usable controls. Since Stage 4.65 a guard comparing `item.<field>` with a literal is
|
|
81
|
-
rendered and evaluated at runtime (public CLI 3.53.1 with `cratis/stage:4.73.1`, Cratis/Screenplay#671);
|
|
78
|
+
not approximate it as a plain action. An older Stage reported unsupported guarded actions with STAGE-SCENE-ACTION-001; source compilation alone
|
|
79
|
+
cannot establish usable controls. A current Stage renders and evaluates at runtime a guard comparing `item.<field>` with a literal;
|
|
82
80
|
STAGE-SCENE-ACTION-001 remains for a guard Stage cannot evaluate.
|
|
83
81
|
|
|
84
|
-
Authority: Screenplay `
|
|
85
|
-
CLI `
|
|
82
|
+
Authority: Screenplay `Documentation/screenplay/screens.md`;
|
|
83
|
+
CLI `Documentation/reference/screenplay.md` for renderer disposition.
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
A trailing `key` on a top-level read-model property declares instance identity.
|
|
16
16
|
One explicit mark replaces inference and binds byte-identically to the equivalent
|
|
17
|
-
inferred identifier. Several marks declare a composite key.
|
|
17
|
+
inferred identifier. Several marks declare a composite key. Identity
|
|
18
18
|
selection is:
|
|
19
19
|
|
|
20
20
|
1. Explicit `key` marks take precedence over inference.
|
|
@@ -96,7 +96,7 @@ keep tenant/subject ownership at the runtime boundary, not in editable UI filter
|
|
|
96
96
|
A composite absence fixture uses an object with every named part. Query result
|
|
97
97
|
assertions may omit keys when arguments already select the instance.
|
|
98
98
|
|
|
99
|
-
|
|
99
|
+
Composite read-model keys, query `by` blocks and fixtures
|
|
100
100
|
over those views remain authoring-only: binding reports PLAY0268 citing
|
|
101
101
|
Screenplay#599 (still open). They do not reference-execute or render. This is not
|
|
102
102
|
ESM v10 admission; v10 covers reaction identity, production routes and observer
|
|
@@ -115,8 +115,8 @@ model and projection/query shape, not just the key modifier.
|
|
|
115
115
|
preserved. Use the model-authoring proposal/preview/apply contract, not a text
|
|
116
116
|
shortcut around an identity-preserving refusal.
|
|
117
117
|
|
|
118
|
-
Source: Screenplay `
|
|
119
|
-
`fixtures/named-read-model-keys.play`,
|
|
118
|
+
Source: Screenplay `Documentation/screenplay/{readmodels,queries,commands,reactions,specifications}.md`,
|
|
119
|
+
`fixtures/named-read-model-keys.play`, and
|
|
120
120
|
`Source/DotNET/Screenplay/Semantics/SemanticModelBinder.ReadModels.cs` (identity inference).
|
|
121
|
-
Its authoring delivery
|
|
122
|
-
|
|
121
|
+
Its authoring delivery does not include
|
|
122
|
+
an executable composite-key contract.
|
|
@@ -8,7 +8,7 @@ and Nebulit GmbH. The notice is in this skill's `LICENSE`.
|
|
|
8
8
|
|
|
9
9
|
| Source file | Used in | How |
|
|
10
10
|
|---|---|---|
|
|
11
|
-
| `.claude/skills/eventmodeling-storyboarding-events/SKILL.md`, "Common Patterns": input screen, status screen, error state | `references/screen-patterns.md` | Adapted closely and mapped to `screen`, `data`, `action` and `specification` (`then error`); one screen per column, lanes, actor perspective rows and mandatory rendering not adopted; the example
|
|
11
|
+
| `.claude/skills/eventmodeling-storyboarding-events/SKILL.md`, "Common Patterns": input screen, status screen, error state | `references/screen-patterns.md` | Adapted closely and mapped to `screen`, `data`, `action` and `specification` (`then error`); one screen per column, lanes, actor perspective rows and mandatory rendering not adopted; the example compiles with the standalone compiler |
|
|
12
12
|
|
|
13
13
|
Not adopted: HTML screen reconstruction and wireframe sketching (`html-screen`, `storyboard-screen`), which are board
|
|
14
14
|
mechanics; Screenplay screens are declarative and Stage renders them.
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
{ "kind": "skill-contains", "value": "Supplied `null` is refused", "file": "references/equality-filters.md" },
|
|
12
12
|
{ "kind": "skill-contains", "value": "PLAY0468", "file": "references/equality-filters.md" },
|
|
13
13
|
{ "kind": "skill-contains", "value": "without regard to row order", "file": "references/equality-filters.md" },
|
|
14
|
-
{ "kind": "skill-contains", "value": "main `fd18129`" },
|
|
15
14
|
{ "kind": "skill-contains", "value": "filter status InvoiceStatus optional" },
|
|
16
15
|
{ "kind": "skill-contains", "value": "query Q => observable?" },
|
|
17
16
|
{ "kind": "skill-contains", "value": "information `PLAY0479`" },
|
|
@@ -22,6 +21,6 @@
|
|
|
22
21
|
{ "kind": "skill-contains", "value": "warnings, not errors" },
|
|
23
22
|
{ "kind": "skill-contains", "value": "the executable model binds `observable` queries" },
|
|
24
23
|
{ "kind": "skill-contains", "value": "A compiling query is not evidence that access control works" },
|
|
25
|
-
{ "kind": "skill-contains", "value": "
|
|
24
|
+
{ "kind": "skill-contains", "value": "are planned but **not in the language yet**" }
|
|
26
25
|
]
|
|
27
26
|
}
|
|
@@ -25,21 +25,20 @@ rule is in `cratis-screenplay-modeling-lifecycle` ("Decide the level first"); it
|
|
|
25
25
|
Tool versions are covered in `cratis-screenplay-toolchain` `SKILL.md`; read it before
|
|
26
26
|
selecting the compiler and renderer for delivery: the CLI bundles its own Screenplay and Stage;
|
|
27
27
|
its compiler version differs from the standalone pin. Render options (`--scope`,
|
|
28
|
-
`--check`, `--package-set`) and exit codes
|
|
29
|
-
and `cratis render --help`; admission
|
|
30
|
-
`SemanticVersionFeatureAdmission.cs
|
|
31
|
-
Chronicle releases, which are not the latest (`cratis-stage-rendering-and-sandbox`
|
|
28
|
+
`--check`, `--package-set`) and exit codes: cli `Documentation/reference/screenplay.md`
|
|
29
|
+
and `cratis render --help`; admission: Stage `SemanticVersionFeatures.cs`,
|
|
30
|
+
`SemanticVersionFeatureAdmission.cs`, `SemanticCratisAdmission.Automation.cs`. Stage's scaffold pins Arc and
|
|
31
|
+
Chronicle releases, which are not necessarily the latest (`cratis-stage-rendering-and-sandbox`
|
|
32
32
|
`references/rendered-application.md`). Source reading is not a new render run.
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
the browser; the CLI 3.40.7 browser acceptance run passed 51 assertions (Cratis/Screenplay#605). The AI
|
|
34
|
+
The worked example (`references/worked-example.md`) was probed with the public CLI (observed). The
|
|
35
|
+
canonical `ScreenComposition` corpus was rendered and published successfully, and an MCP-edited copy
|
|
36
|
+
was rendered, run and checked in the browser. The AI
|
|
38
37
|
repository's `screenplay-mcp-transcript.ts` harness proves the real stdio proposal/apply path against the
|
|
39
|
-
packaged CLI. Guarded Close actions and double-click interactions
|
|
40
|
-
`STAGE-SCENE-INTERACTION-001`)
|
|
41
|
-
remain for a guard Stage cannot evaluate, which is never emulated
|
|
42
|
-
rejection (`CLI-RENDER-007` to `-010`) and render-then-recover
|
|
38
|
+
packaged CLI. Guarded Close actions and double-click interactions are refused by an older Stage
|
|
39
|
+
(`STAGE-SCENE-ACTION-001`, `STAGE-SCENE-INTERACTION-001`); a current Stage renders and runs them, and the codes
|
|
40
|
+
remain for a guard Stage cannot evaluate, which is never emulated. UI-profile
|
|
41
|
+
rejection (`CLI-RENDER-007` to `-010`) and render-then-recover are CLI behavior. The
|
|
43
42
|
renderer facts are owned by `cratis-stage-rendering-and-sandbox`; this skill links them and never
|
|
44
43
|
restates the admission table.
|
|
45
44
|
|
|
@@ -71,10 +70,10 @@ assume an answer to 4, and record it as `blocked` for the user.
|
|
|
71
70
|
| **B. Generated base plus authorized gap-fill** | an admitted render (whole, or a `--scope` of the admitted slices) exists and the user separately authorized hand-written scope, or a seam the model names needs an adapter | the generated output stays managed and untouched; hand-written code lives in `Customizations/` or a separate project (seam adapters by this skill, business gap-fill by `slice-implementer`), serves named model elements only, never claims render admission, and V5 is reported for the generated base **with its scope stated** |
|
|
72
71
|
| **C. Fully hand-written delivery** | the scope cannot render and no generated base is wanted | `slice-implementer` delivers it with the model as the contract (`references/gap-fill-handoff.md`); V5 is `not run: no render` |
|
|
73
72
|
|
|
74
|
-
Evolved events are gap-fill too: Stage still refuses
|
|
73
|
+
Evolved events are gap-fill too: Stage still refuses any evolved event and its dependent scope with `STAGE-ESM-026`, because it cannot render Chronicle event-type migrations yet (Stage#204). Events at their initial revision still render. Hand-write the evolved events and their migrations per `cratis-chronicle-event-type-migration`, with the model as the contract.
|
|
75
74
|
|
|
76
75
|
Supported UUID/String generation strategies, v15 freshness and scalar/named `returns`
|
|
77
|
-
responses, fixtures and `then returns` render with CLI
|
|
76
|
+
responses, fixtures and `then returns` render with the CLI and Stage. Unsupported generated
|
|
78
77
|
types (`STAGE-ESM-028`) and result combinations (`-038`) still require case A or C:
|
|
79
78
|
preserve the model and its specifications. See Stage's `references/admission.md`.
|
|
80
79
|
Supported event-triggered Automation slices also render as managed Chronicle reactors;
|
|
@@ -90,13 +89,13 @@ never infer target support from binding. Read Stage's `references/admission.md`
|
|
|
90
89
|
toolchain `references/sources-and-streams.md`.
|
|
91
90
|
|
|
92
91
|
**Mixed reaction effects.** A reaction that both `produces` events and `invokes` commands is refused by
|
|
93
|
-
Stage (`STAGE-ESM-037
|
|
92
|
+
Stage (`STAGE-ESM-037`) although Arc runs one reactor returning events
|
|
94
93
|
and commands (events appended first as one batch, then commands in order, no cross-effect
|
|
95
94
|
transaction; a retry can repeat the events). The scaffold now includes the mixed-result handler,
|
|
96
95
|
but Stage still refuses it because redelivery can duplicate events. `[OnceOnly]` excludes replay,
|
|
97
96
|
not retries. Keep the modeled reaction whole; gap-fill needs a proven retry-safe realization,
|
|
98
97
|
not splitting or dropping effects to get a render. Source: Stage
|
|
99
|
-
`
|
|
98
|
+
`Documentation/reference/reaction-rendering.md`.
|
|
100
99
|
|
|
101
100
|
Two rules hold in every case: a customization never makes a rejected model renderable, and
|
|
102
101
|
a whole-application V5 is never claimed from a subset. `--scope` renders an admitted part (the whole
|
|
@@ -109,8 +108,8 @@ model still compiles and binds) and its V5 states the scope.
|
|
|
109
108
|
`references/verdicts-and-modes.md` "Source identity"), the model root, `--name`,
|
|
110
109
|
`--project-name`, `--root-namespace` and target `cratis`. Take V1 and V3 from
|
|
111
110
|
`cratis-screenplay-toolchain`; report each with tool and version. V3 from a different
|
|
112
|
-
compiler version does not prove the cratis-bundled binder admits the model (the bundle
|
|
113
|
-
|
|
111
|
+
compiler version does not prove the cratis-bundled binder admits the model (the bundle
|
|
112
|
+
can be older than the standalone tool). `cratis screenplay validate --executable <root>` binds with
|
|
114
113
|
the bundled compiler and writes nothing: use it as the bundled-binder check (toolchain `references/verdicts.md`).
|
|
115
114
|
2. **Probe.** `cratis render <model-root> --name <App> --destination <probe-dir> -o json`
|
|
116
115
|
(exit 0 published, 5 refused with nothing published, 1 missing input); add `--check` to plan
|
|
@@ -158,7 +157,7 @@ Adapters and non-renderable scope follow the contract rules of `cratis-applicati
|
|
|
158
157
|
(`cratis-application-slice-conformance` `references/build-prompts.md`).
|
|
159
158
|
- One scope per `slice-implementer` brief; the brief carries addresses and paths, not contents.
|
|
160
159
|
- Model-enforced rules realized in code (state-dependent rules) need a protected read or
|
|
161
|
-
concurrency scope; never claim them from prose. Stage
|
|
160
|
+
concurrency scope; never claim them from prose. Stage-rendered apps scaffold
|
|
162
161
|
the Arc/Chronicle set in `cratis-stage-rendering-and-sandbox` `references/rendered-application.md`; API availability alone is not verified enforcement.
|
|
163
162
|
- Adapters that call outside systems follow `cratis-engineering-effect-boundaries`; slice
|
|
164
163
|
specifications follow `cratis-application-slice-specifications`.
|
package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/delivery-protocol.md
CHANGED
|
@@ -30,7 +30,7 @@ per tool call and read each result from its exit status, never from a grep of th
|
|
|
30
30
|
| --- | --- | --- |
|
|
31
31
|
| Admission and publication | `cratis render <root> --name <App> --destination <dir> [--project-name <P>] [--root-namespace <N>] -o json` (forward every option recorded in section 1) | exit 0 published (receipt on stdout), 5 refused (diagnostics, nothing published), 1 missing input |
|
|
32
32
|
| Drift or pending-change check | the same command plus `--check` (and `--scope`, `--force` as used) | no write, no recovery: exit 0 current, 6 `changes_pending`, 5 planning failure, refusal or pending recovery |
|
|
33
|
-
| Bundled-binder check | `cratis screenplay validate --executable <root>` | exit 5 with "does not bind into an executable semantic model" when it does not; never renders or writes. Uses the bundled compiler
|
|
33
|
+
| Bundled-binder check | `cratis screenplay validate --executable <root>` | exit 5 with "does not bind into an executable semantic model" when it does not; never renders or writes. Uses the bundled compiler, not standalone 4.153.0 |
|
|
34
34
|
| Debug build | `dotnet build <dir>/<Project>.csproj -c Debug` | the build's exit status |
|
|
35
35
|
| Debug tests | `dotnet test <dir>/<Project>.csproj -c Debug --no-build` | the test runner's exit status plus per-test results |
|
|
36
36
|
| List the generated classes | `dotnet test <dir>/<Project>.csproj -c Debug --no-build --list-tests` | the names to map to specifications |
|
|
@@ -52,7 +52,7 @@ file (for example `--logger "trx"` with a results directory under the probe fold
|
|
|
52
52
|
or the manifest identity changed (`drift-and-fallback-record.md`). Ok means `recovered: false` and
|
|
53
53
|
`written + unchanged` equal to the artifact count (for a `--scope` render, the scope's artifacts: other
|
|
54
54
|
scopes' files are preserved and never counted; compare against the receipt's `owners`/`sources` for the
|
|
55
|
-
selected slices and the `orphaned` list). The receipt's `sources`
|
|
55
|
+
selected slices and the `orphaned` list). The receipt's `sources` map generated files back to
|
|
56
56
|
specifications and slices.
|
|
57
57
|
- **Build:** Debug exit status. Classify each error location as `Customizations/`, managed or outside.
|
|
58
58
|
An error in a managed file after a clean render is a renderer defect or an environment problem:
|
package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/gap-fill-handoff.md
CHANGED
|
@@ -70,12 +70,12 @@ ambiguous addresses; contracts are never inferred from names.
|
|
|
70
70
|
A rule that exists only in a description, or a state-dependent rule the model marks as not
|
|
71
71
|
enforced, is unenforced in generated scope. List it in the fallback record as a target requirement. In
|
|
72
72
|
hand-written code it needs an atomic enforcement point: a protected read or a concurrency scope
|
|
73
|
-
(Stage
|
|
73
|
+
(Stage-rendered apps scaffold the Arc/Chronicle set in `cratis-stage-rendering-and-sandbox` `references/rendered-application.md`: protected-read APIs
|
|
74
74
|
are available to gap-fill, with projection/key admission and active enrollment), or a Chronicle constraint. A stale view or
|
|
75
75
|
a caller-supplied status is not enforcement.
|
|
76
76
|
|
|
77
77
|
## Automation and Translate scope
|
|
78
|
-
Stage
|
|
78
|
+
Stage renders supported event-triggered Automation as Chronicle reactors.
|
|
79
79
|
Translate/captures and refused reactions are gap-fill against the slice and its specifications;
|
|
80
80
|
see Stage's `references/admission.md` for precise limits. The realization follows the actual construct and
|
|
81
81
|
trigger, not the slice label: a capture is an ingestion adapter, an event reaction (including a
|
|
@@ -86,8 +86,8 @@ not bind a modeled reaction or capture. Case C (no generated application): there
|
|
|
86
86
|
`Program.cs` or partial hook, so the registration follows the hand-written application's own
|
|
87
87
|
composition conventions (`rules/vertical-slices.md`, `cratis-chronicle-reactor`).
|
|
88
88
|
Declare the trusted actor with reaction `runs as system role "<Role>"`
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
; `given caller` is not an invocation actor.
|
|
90
|
+
An older compiler rejects the syntax. The CLI/Stage pair
|
|
91
91
|
(`cratis-screenplay-toolchain/references/renderable-subset.md`) renders role/authenticated reaction identity; claim-reading/opaque system gates still
|
|
92
92
|
refuse STAGE-ESM-034. Gap-fill retains the declared role and uses Arc
|
|
93
93
|
`[ExecuteCommandsAsSystem]` for returned commands. Checked model and diagnostics:
|
|
@@ -95,11 +95,11 @@ captures-and-reactions `references/invocation-identity.md`.
|
|
|
95
95
|
|
|
96
96
|
A reaction that both produces events and invokes commands keeps its single modeled form
|
|
97
97
|
(`STAGE-ESM-037` is Stage's refusal, not a model defect). Hand-write one reactor returning the events
|
|
98
|
-
and the commands:
|
|
98
|
+
and the commands: in Arc (the Stage scaffold includes the handler, but mixed reactions remain refused because redelivery can duplicate events) the runtime appends the events first as one batch, then
|
|
99
99
|
runs the commands in order, with no transaction across the two effects; a failing command stops the
|
|
100
100
|
later ones but keeps the committed events, and a retry can append the events again, so make the
|
|
101
101
|
handler idempotent independently of `[OnceOnly]`, which excludes replay only, not recovery
|
|
102
|
-
or crash redelivery (Chronicle
|
|
102
|
+
or crash redelivery (Chronicle `Documentation/code-analysis/CHR0022.mdx`;
|
|
103
103
|
see `cratis-chronicle-reactor`). Return a
|
|
104
104
|
stable array or list. The Stage scaffold pins an older Arc, so raise the version through
|
|
105
105
|
`Customizations/Dependencies.props` only after a restore and build proves it. Never split the
|
package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/provenance.md
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
## Moved and rewritten (Cratis)
|
|
4
4
|
- The render workflow of the earlier model skill set: capability probe, renderability
|
|
5
|
-
classification, delivery protocol, drift and fallback record. Rewritten for Stage
|
|
6
|
-
|
|
5
|
+
classification, delivery protocol, drift and fallback record. Rewritten for Stage and the CLI and checked
|
|
6
|
+
by running `cratis render`; the
|
|
7
7
|
helper scripts are not shipped (their steps are the manual commands in `references/delivery-protocol.md`).
|
|
8
8
|
- The fallback-conformance checklist moved into `cratis-application-slice-conformance`
|
|
9
9
|
(`references/checklists.md`); this skill links it and keeps no copy.
|
|
10
10
|
- Three delivery cases (admission failure, generated base plus authorized gap-fill, fully
|
|
11
|
-
hand-written delivery) and the whole-model rule: from the
|
|
11
|
+
hand-written delivery) and the whole-model rule: from the plan review of render versus gap-fill.
|
|
12
12
|
|
|
13
13
|
## Adapted closely (Martin Dilger and Nebulit GmbH)
|
|
14
14
|
|
|
@@ -18,7 +18,7 @@ by Martin Dilger and Nebulit GmbH (https://nebulit.de), used with the explicit c
|
|
|
18
18
|
| Source file | Used in | How |
|
|
19
19
|
|---|---|---|
|
|
20
20
|
| `.claude/skills/build-state-change/SKILL.md` and `build-state-view/SKILL.md`: verify against a contract with population, update and removal checks; repeat rejected versus idempotent success | `references/gap-fill-handoff.md`, via `cratis-application-slice-conformance` | Idea; our own wording kept |
|
|
21
|
-
| `.build-kit/CLAUDE.md`, `.build-kit/lib/prompt.md`, `.build-kit/lib/backend-prompt.md`: the specification as oracle, never weakened; one scope per brief; the repository pattern beats a template; added-specifications re-delivery; ambiguity escalates; claim conflict | `references/gap-fill-handoff.md` "One scope per brief" and the build-prompts paragraph |
|
|
21
|
+
| `.build-kit/CLAUDE.md`, `.build-kit/lib/prompt.md`, `.build-kit/lib/backend-prompt.md`: the specification as oracle, never weakened; one scope per brief; the repository pattern beats a template; added-specifications re-delivery; ambiguity escalates; claim conflict | `references/gap-fill-handoff.md` "One scope per brief" and the build-prompts paragraph | Adapted closely, with the claim translated to per-brief ownership and git left to separate authorization |
|
|
22
22
|
| `.claude/skills/update-slice-status/SKILL.md`: closed status vocabulary and the already-in-status claim guard | `references/gap-fill-handoff.md`; the `done \| partial \| blocked` status | Idea; our own wording kept (statuses differ on purpose) |
|
|
23
23
|
|
|
24
24
|
No TrogonStack/agentskills text is used in this skill.
|
package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/renderability-gate.md
CHANGED
|
@@ -7,15 +7,14 @@ The admitted subset itself (what Stage renders, member by member) is owned by
|
|
|
7
7
|
probe reports and choosing what to do. Do not copy the code table here.
|
|
8
8
|
|
|
9
9
|
## Pipeline that produces the codes
|
|
10
|
-
1. The CLI compiles and binds the **whole** model with its **bundled** Screenplay (
|
|
11
|
-
cratis 3.57.0, ESM up to v15 for rendering; older bundles bound less). Binding is never scoped:
|
|
10
|
+
1. The CLI compiles and binds the **whole** model with its **bundled** Screenplay (the ESM level it renders is bounded by the bundle; older bundles bound less). Binding is never scoped:
|
|
12
11
|
any binding error blocks even a `--scope` render. Binding errors are `PLAY0268` (outside the admitted vertical), `PLAY0269`
|
|
13
12
|
(deferred), `PLAY0270` (report-only information), `PLAY0271` (legacy semantics) and `PLAY0273`
|
|
14
13
|
(a specification shape).
|
|
15
14
|
2. Execution planning builds the plan and can emit `PLAN-*` diagnostics before Stage runs.
|
|
16
15
|
3. Stage plans the target and admits or rejects each member: `STAGE-ESM-0xx`; profile and path
|
|
17
16
|
problems `STAGE-CRATIS-0xx`. An evolved event is reported with Stage's own `STAGE-ESM-026`
|
|
18
|
-
(still refused
|
|
17
|
+
(still refused); the CLI adds nothing. Stage admits ESM v1 to v15 by version and
|
|
19
18
|
refuses each construct it does not render with its own code (see Stage's current code table, including `-024`, `-027`, `-028`, `-030` to `-041`).
|
|
20
19
|
4. Any error in the selected scope publishes nothing: the run ends with exit 5 and the diagnostics.
|
|
21
20
|
Without `--scope` the scope is the whole application. With `--scope`, `PLAN-*` problems in
|
|
@@ -29,9 +28,9 @@ ESM). Only the probe answers renderability. `PLAY0270` entries are information,
|
|
|
29
28
|
|
|
30
29
|
| Class | Meaning | Typical examples (each verified in `admission.md`) | Action |
|
|
31
30
|
| --- | --- | --- | --- |
|
|
32
|
-
| **Model fix (in mode)** | the model is in, or the user chose, renderable mode and breaks its own subset in a way that has a renderable equivalent with the same meaning | a `produces` whose `for` is not the command identifier; one `StateChange` slice with two commands (`STAGE-ESM-004`); two projections for one read model (`-007`); a policy Stage cannot express portably (`-015`; role-only and opaque pure policies render
|
|
31
|
+
| **Model fix (in mode)** | the model is in, or the user chose, renderable mode and breaks its own subset in a way that has a renderable equivalent with the same meaning | a `produces` whose `for` is not the command identifier; one `StateChange` slice with two commands (`STAGE-ESM-004`); two projections for one read model (`-007`); a policy Stage cannot express portably (`-015`; role-only and opaque pure policies render) | edit request to the modeler session with address, change and rationale |
|
|
33
32
|
| **Capability gap** | the intended meaning needs a construct Stage does not render yet | a snapshot list query (`-010`; observable lists and keyed or unkeyed lists bind and observable lists render), DateTime equality filters and required parameters after optional filters (`-010`); context/single-result filters, opaque `scoped to`/`performer` and composite `by` remain PLAY0268; Translate, clocks, captures, non-event triggers and opaque reaction bodies (`-024`); claim-reading/opaque `runs as` gates (`-034`), legacy `from` (`-035`), mixed effects in one handler (`-037`, retries can duplicate events; keep it whole), unsupported reaction mappings (`-039`); unsupported generated types/result combinations (`-028`/`-038`); `then no readmodel` (`-027`); evolved events (`STAGE-ESM-026`); conditional `produces when` (`-006`); `reads` (`PLAY0271`); code validation (`-005`); protected identities/enums (`-040`), non-text secrets (`-041`) or unadmitted explicit subject lineage (`PLAY0268`); a command `handler` (`PLAY0268`) | keep the model; fallback record entry; options a to c in `SKILL.md`; link the Stage issue |
|
|
34
|
-
| **Tool skew** | the bundled compiler disagrees with documented semantics | the false `PLAY0285` on reaction cascades from
|
|
33
|
+
| **Tool skew** | the bundled compiler disagrees with documented semantics | the false `PLAY0285` on reaction cascades from an older bundle; codes the standalone compiler does not raise | record in the session state and the fallback record; never "fix" a correct model |
|
|
35
34
|
| **Environment** | not the model | restore failures, missing SDK, a destination that is not writable | fix the environment or report blocked |
|
|
36
35
|
|
|
37
36
|
## Triage rules
|
|
@@ -58,5 +57,5 @@ it, and cite only numbers you have just read. A closed issue is a trigger to pro
|
|
|
58
57
|
|
|
59
58
|
## Reference outcomes
|
|
60
59
|
- The complete marina model of `cratis-stage-rendering-and-sandbox` `references/render-example.md`:
|
|
61
|
-
admission ok,
|
|
60
|
+
admission ok, Debug build ok and its tests passed on the public CLI.
|
|
62
61
|
- The model in `worked-example.md`: admission refused with 2 blocking `PLAY0268` diagnostics, nothing published.
|
package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/worked-example.md
CHANGED
|
@@ -10,8 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
A marina model with one renderable command and one snapshot list view. The model compiles and binds;
|
|
12
12
|
`cratis render` refuses it, so nothing is published. The example shows how to classify, decide and
|
|
13
|
-
report. Probed with the standalone compiler
|
|
14
|
-
earlier 3.28.2 outcome (two `PLAY0268` binding errors) is history.
|
|
13
|
+
report. Probed with the standalone compiler and the public CLI (scratch model, observed).
|
|
15
14
|
|
|
16
15
|
## The model
|
|
17
16
|
|
|
@@ -64,7 +63,7 @@ module Berths
|
|
|
64
63
|
|
|
65
64
|
## The probe
|
|
66
65
|
|
|
67
|
-
Source identity recorded first (`<commit>+<digest>`), tools named
|
|
66
|
+
Source identity recorded first (`<commit>+<digest>`), tools named with their versions (`screenplay --version`, `cratis --version`).
|
|
68
67
|
V1 passed; the specification passes in `screenplay test`. Then:
|
|
69
68
|
|
|
70
69
|
```text
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"kind": "skill-contains",
|
|
45
45
|
"value": "STAGE-ESM-026"
|
|
46
46
|
},
|
|
47
|
-
{ "kind": "skill-contains", "value": "render with CLI
|
|
47
|
+
{ "kind": "skill-contains", "value": "render with the CLI and Stage" },
|
|
48
48
|
{ "kind": "skill-contains", "value": "Unsupported generated\ntypes (`STAGE-ESM-028`) and result combinations (`-038`)" },
|
|
49
49
|
{ "kind": "skill-contains", "value": "authored-UI parity" },
|
|
50
50
|
{ "kind": "skill-contains", "value": "responsible tool version" }
|
|
@@ -23,11 +23,10 @@ language cannot express today are recorded, not faked. Grammar and outcome compa
|
|
|
23
23
|
(`cratis-screenplay-automations-and-translations`); C# specs (`cratis-specifications-csharp`,
|
|
24
24
|
`cratis-specification-by-example`); a full audit (`cratis-screenplay-model-review`).
|
|
25
25
|
|
|
26
|
-
##
|
|
27
|
-
Screenplay
|
|
28
|
-
|
|
29
|
-
`
|
|
30
|
-
`cratis-screenplay-toolchain` `SKILL.md`. At Screenplay v4.127.0,
|
|
26
|
+
## Product sources
|
|
27
|
+
Screenplay `Documentation/screenplay/specifications.md` and `queries.md` and the standalone compiler
|
|
28
|
+
describe the released behavior (including ESM v7 fixtures and `then returns`). Reading the installed tool and bundle versions is covered in
|
|
29
|
+
`cratis-screenplay-toolchain` `SKILL.md`.
|
|
31
30
|
MCP `find-specification-obligations` derives SPEC001–SPEC008 from declarations;
|
|
32
31
|
met means matching authored presence, not full coverage or passing execution.
|
|
33
32
|
Use it to seed, never replace, the matrix. Multi-step storylines remain unavailable;
|
|
@@ -84,7 +83,7 @@ question is not four approvals.
|
|
|
84
83
|
`cratis-screenplay-specifications` `references/persona-callers-and-cases.md`.
|
|
85
84
|
8. **Separate view pass**: population, each update, accumulation, removal (with a surviving
|
|
86
85
|
row), absence, ordering. Mark lifecycle branches. Views combining sources must
|
|
87
|
-
tolerate any arrival order.
|
|
86
|
+
tolerate any arrival order. Pin a child before its parent (Requires Screenplay 4.149.1 or later):
|
|
88
87
|
given child, then parent, then read model; "parent never arrives" leaves the
|
|
89
88
|
child absent. Evidence/example: `references/view-and-story-specs.md`.
|
|
90
89
|
9. **State-dependent rules**: `reads <View>` + `require <expr> message "..."` as stated intent,
|
|
@@ -149,7 +148,7 @@ target requirements.
|
|
|
149
148
|
- Format rules belong on a `concept`: give each concept rule representative acceptance,
|
|
150
149
|
rejection and boundary specs once (through one command that carries it), not on every use;
|
|
151
150
|
never `n/a` automatically. Include a whitespace-only rejection for text `not empty`:
|
|
152
|
-
|
|
151
|
+
this changes outcomes in every ESM version (Requires Screenplay 4.151.0 or later). Unicode/identity boundaries
|
|
153
152
|
and evidence: command-surface `references/validate-rules.md`.
|
|
154
153
|
A business rule gets one rejection spec if an expert could recognize it from its message;
|
|
155
154
|
binder-enforced shape is no scenario (catalogue §2).
|
|
@@ -195,15 +194,14 @@ production route failure, matching/wrong source/stream and unrouted facts;
|
|
|
195
194
|
see toolchain `references/production-routes-and-filters.md`.
|
|
196
195
|
|
|
197
196
|
## Version skew: reaction cascades and false PLAY0285
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
a spec (cli#242); the standalone `screenplay` 4.66.0 and `cratis` 3.28.2 accept it (probed).
|
|
197
|
+
Under ESM v6 a command spec's `then` lists the events reactions cascade from it. A compiler
|
|
198
|
+
bundled in an older `cratis` reports a **false PLAY0285** for such
|
|
199
|
+
a spec; the standalone `screenplay` and a `cratis` whose compiler admits v6 accept it.
|
|
202
200
|
Neither checks that a cascade event is *missing*.
|
|
203
|
-
-
|
|
201
|
+
- A compiler that admits v6 (standalone, or a current `cratis`): write the v6-correct spec
|
|
204
202
|
(own productions plus cascade); validate with `screenplay <folder> --warnaserror --no-color`
|
|
205
203
|
or `cratis screenplay validate <folder> --warnings-as-errors`.
|
|
206
|
-
- Only
|
|
204
|
+
- Only an older `cratis` bundle and no standalone tool: keep the command spec to its own productions, specify the reaction in its
|
|
207
205
|
Automation slice (`when append <Trigger>` -> `then <Produced>`), record the pending cascade
|
|
208
206
|
expectation in `STATE.md` as known-incomplete. Never delete the reaction.
|
|
209
207
|
|
|
@@ -220,8 +218,8 @@ scope is reported as explicitly incomplete); V1 passes with the tool named in
|
|
|
220
218
|
- V1 passes (standalone `screenplay` required when cascades are specified); report tool and
|
|
221
219
|
version.
|
|
222
220
|
- Run V4 through standalone `screenplay test` or MCP `run-specifications`;
|
|
223
|
-
|
|
224
|
-
apply. PLAY0285 (impossible `then`) unbinds
|
|
221
|
+
propose → review → run with `proposalId` →
|
|
222
|
+
apply (Requires Screenplay 4.145.0 or later). PLAY0285 (impossible `then`) unbinds
|
|
225
223
|
the whole model; no spec runs.
|
|
226
224
|
if not executed, report the actual host/input reason, not a blanket no-route
|
|
227
225
|
claim. Stage's runner is target-engine evidence, never V4; V1/V3 do not prove pass. V5 is "not run" unless rendering was attempted; report admission, publication, build and
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
**Design mode, not binding-ready by design.** This document states the stored-state rules of the
|
|
4
4
|
invoicing example as the skill requires (`reads <View>` + `require ... message`, marked NOT
|
|
5
5
|
enforced in the slice `description`, target named). It compiles (V1, warnings as errors) but
|
|
6
|
-
does not bind
|
|
6
|
+
does not bind, and the only blockers are `reads` (PLAY0271) and `require` over
|
|
7
7
|
a view (PLAY0268), so no specification here runs (V3 blocked). `PaymentReceived` has its producer
|
|
8
8
|
here (the capture and `ReceivedTranslator`), so nothing else blocks: with every `reads` and
|
|
9
9
|
`require` line removed the document binds. The rules cover an unknown invoice, voiding a paid
|
|
@@ -428,5 +428,5 @@ module Invoicing
|
|
|
428
428
|
(`ReversingAReceivedPayment`, `RequestingARefundAfterAReversal`) are in
|
|
429
429
|
`invoicing-dues-design.md`, because the command needs a stored-state rule.
|
|
430
430
|
- The query answers "absent" with no `result` block. The `ListOpenInvoices` list query and its two
|
|
431
|
-
specifications bind and run (list queries bind
|
|
432
|
-
not bind
|
|
431
|
+
specifications bind and run (list queries bind on Screenplay 4.105.0 or later; they compiled but did
|
|
432
|
+
not bind); only `filter`, `scoped to` and `performer` queries stay design-mode: see `view-and-story-specs.md`.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Provenance
|
|
2
2
|
|
|
3
3
|
Lineage of `cratis-screenplay-scenario-coverage`. The method was first drafted for the Cratis
|
|
4
|
-
corpus from Screenplay specification semantics
|
|
4
|
+
corpus from Screenplay specification semantics and refined against two
|
|
5
5
|
external event-modeling skill sets.
|
|
6
6
|
|
|
7
7
|
## Adapted closely (MIT)
|
|
@@ -23,7 +23,7 @@ by Martin Dilger and Nebulit GmbH (https://nebulit.de), used with the explicit c
|
|
|
23
23
|
| Source file | Used in | How |
|
|
24
24
|
|---|---|---|
|
|
25
25
|
| `.claude/skills/eventmodeling-elaborating-scenarios/SKILL.md`: Interview Phase, Workshop Facilitation Guide, Multi-Role Review, Common Workshop Mistakes, Tips for Rapid Creation | `SKILL.md` "Interview phase", `references/scenario-workshop.md` | Text shared with TrogonStack's version (rows above, MIT; rationale, "what if" capture and multi-role review passages are not Nebulit-only); the Nebulit file is recorded here for completeness. Time-boxes and the three-to-five quota are kept only as optional pacing (`scenario-workshop.md` "Optional pacing"), subordinate to the coverage matrix |
|
|
26
|
-
| same file: GWT vs. Storyline decision rule, Workflow 0 (decide per read model before drafting any payload; one reused schema may indicate a skipped judgment), todo lists as the prime storyline candidate, repeated event type as a driver | `SKILL.md` Procedure 5, `references/view-and-story-specs.md` "Worked family: a todo list" |
|
|
26
|
+
| same file: GWT vs. Storyline decision rule, Workflow 0 (decide per read model before drafting any payload; one reused schema may indicate a skipped judgment), todo lists as the prime storyline candidate, repeated event type as a driver | `SKILL.md` Procedure 5, `references/view-and-story-specs.md` "Worked family: a todo list" | Adapted closely; storylines become lifecycle families of independent specs because Screenplay has no multi-step specification; storyline JSON, beats and layout dropped (board transport) |
|
|
27
27
|
| same file: Scenario Types (seven questions, "not a good/bad pair", skip only for a domain reason) | `references/scenario-catalogue.md` | Idea; our own, broader catalogue kept |
|
|
28
28
|
| same file: Quality Checklist (no command has only two scenarios; read models a separate, equally mandatory pass; why behind rules documented) | `SKILL.md` "Quality checklist" | Adapted closely; board posting and `expectEmptyList` items dropped |
|
|
29
29
|
| same file: Gherkin Best Practices (good and bad givens, outcomes, rejections), Key Principles | `references/scenario-examples.md` "Good and bad forms" | Shared with TrogonStack's version (row above); adapted closely, mapped to `.play` specification style |
|
|
@@ -49,11 +49,9 @@ Chronicle verification obligations, version skew for reaction cascades, spec for
|
|
|
49
49
|
the berth reservations example.
|
|
50
50
|
|
|
51
51
|
## Product facts checked
|
|
52
|
-
- Screenplay
|
|
52
|
+
- Screenplay `Documentation/screenplay/specifications.md` (actions, outcomes,
|
|
53
53
|
`then denied`, `then no readmodel`, `then query`, `then events in any order`, PLAY0352,
|
|
54
54
|
PLAY0389) and the capability notes in `cratis-screenplay-toolchain`
|
|
55
55
|
`references/executable-subset.md`.
|
|
56
|
-
-
|
|
57
|
-
open when written: cited as not available.
|
|
58
|
-
- Stage v4.24.0: `STAGE-ESM-015` and `STAGE-ESM-011` admission diagnostics for policies and
|
|
56
|
+
- Stage `STAGE-ESM-015` and `STAGE-ESM-011` admission diagnostics for policies and
|
|
59
57
|
fixtures (`Documentation/guides/build-renderer-target.md`).
|
package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-catalogue.md
CHANGED
|
@@ -88,7 +88,7 @@ name them as unfinished.
|
|
|
88
88
|
`result`, then `then denied`; or `when query` + `then denied`). See `RefusingASkipper`.
|
|
89
89
|
An empty `given caller` block is the anonymous caller.
|
|
90
90
|
- Use `given caller as <Persona>` for one authenticated witness synthesized from
|
|
91
|
-
that persona's policies
|
|
91
|
+
that persona's policies. Inspect the leftmost buildable `or` choice;
|
|
92
92
|
it does not represent every possible caller. Use explicit roles/claims for
|
|
93
93
|
anonymous or ownership fixtures, missing conjuncts, or refused synthesis.
|
|
94
94
|
One denial per persona that can reach the screen but may not act. Derive
|
|
@@ -97,7 +97,7 @@ name them as unfinished.
|
|
|
97
97
|
spec, not `then denied`); denial only when the whole gate is false.
|
|
98
98
|
- Ownership policies (`claim ... matches subject|<property>`): the denial gives the right role
|
|
99
99
|
and a claim with another value (`claim "ownerId" = "<other id>"`); the success spec gives the
|
|
100
|
-
matching value. Both are needed. Ownership checks on text, Uuid, Date and DateTime subjects render
|
|
100
|
+
matching value. Both are needed. Ownership checks on text, Uuid, Date and DateTime subjects render;
|
|
101
101
|
other subjects are STAGE-ESM-015: note it.
|
|
102
102
|
- Traps: `then error` for a denial; a denial spec whose inputs also break a rule (it still
|
|
103
103
|
denies, but reads ambiguously); trusting a `cratis run` sandbox answer (the default engine's enforcement is unverified here;
|
|
@@ -161,11 +161,11 @@ name them as unfinished.
|
|
|
161
161
|
all conditions are false the unconditional productions still occur. See
|
|
162
162
|
`RecordingACleanDeparture` (only `BoatDeparted`) and `RecordingADepartureWithDamage` (both).
|
|
163
163
|
- Zero new facts: a command whose productions are all conditional may be accepted with no
|
|
164
|
-
facts. `then no events` parses but binding refuses it with PLAY0268
|
|
164
|
+
facts. `then no events` parses but binding refuses it with PLAY0268: state the zero-fact outcome through a
|
|
165
165
|
read-model or query assertion, and an action with no outcome at all does not bind. A command spec with no `then` events but with a
|
|
166
166
|
view or query assertion is still executable as a zero-fact check: the runner compares the
|
|
167
167
|
command's facts with the (empty) expected list by exact count, so any fact produced fails it
|
|
168
|
-
|
|
168
|
+
. Write it that way, name it for the zero-fact outcome, and keep the view
|
|
169
169
|
assertion for the visible state. Record the obligation as unasserted only where the runner is
|
|
170
170
|
not available.
|
|
171
171
|
|
package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-examples.md
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
Compact examples for each scenario category, in one invoicing domain so the shapes compare
|
|
14
14
|
easily. Every excerpt below is copied verbatim from the complete document in
|
|
15
15
|
`invoicing-dues-example.md`, which compiles with warnings as errors and whose 23 specifications
|
|
16
|
-
pass in the reference evaluator
|
|
16
|
+
pass in the reference evaluator; it also holds the declarations the excerpts depend on. The two
|
|
17
17
|
compensation excerpts in section 4 come from `invoicing-dues-design.md` instead: that document
|
|
18
18
|
holds the stored-state rules (`reads` + `require`), compiles but does not bind (PLAY0271,
|
|
19
19
|
PLAY0268), so its specifications are design mode and do not run. A second
|
|
@@ -150,7 +150,7 @@ A reversal needs a paid history, the reversal action and the exact consequence.
|
|
|
150
150
|
lists the declared consequence (`RefundRequested`); the reaction is also specified on its own.
|
|
151
151
|
`RefundRequested` is a recorded request, not proof that money moved, and there is no
|
|
152
152
|
`then <Command>` form. What the target must do to deliver the refund is a requirement, not a spec.
|
|
153
|
-
From `invoicing-dues-design.md` (design mode; the specs do not run
|
|
153
|
+
From `invoicing-dues-design.md` (design mode; the specs do not run):
|
|
154
154
|
```screenplay excerpt parent=references/invoicing-dues-design.md#1 expect PLAY0516 test=unbound
|
|
155
155
|
specification ReversingAReceivedPayment
|
|
156
156
|
given caller
|
|
@@ -210,7 +210,7 @@ A list query asserts one `result` block per expected row: count is exact, but ro
|
|
|
210
210
|
match by read model and key regardless of order. The
|
|
211
211
|
empty-list intent is a separate claim from a keyed row being absent (`view-and-story-specs.md`
|
|
212
212
|
"Removal is a positive obligation"). The backing example proves the keyed forms only; whole-list
|
|
213
|
-
queries are executable too (`ListOpenInvoices` in the backing example); caller-supplied equality filters on collections bind as ESM v14
|
|
213
|
+
queries are executable too (`ListOpenInvoices` in the backing example); caller-supplied equality filters on collections bind as ESM v14.
|
|
214
214
|
Pass `by` and filters in query arguments; PLAY0468 reports unknown, repeated or
|
|
215
215
|
missing required arguments. Optional filters may be omitted, supplied null is refused.
|
|
216
216
|
Context-sourced/single-result filters, opaque `scoped to`/`performer`, and composite
|
package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/spec-forms-by-mode.md
CHANGED
|
@@ -16,17 +16,17 @@ Typed example/override forms: `cratis-screenplay-specifications`
|
|
|
16
16
|
| `given readmodel` | yes | yes (complete instance with key) | only as the query-only lookup below |
|
|
17
17
|
| `when append <Event>` | yes | yes | supported single-hop reaction effects/invocation only; fan-out, deeper cascades and other refused assertions retain STAGE-ESM-011 |
|
|
18
18
|
| `then readmodel` / `then query` (keyed `ById`, `arguments`, `result`) | yes | yes | yes |
|
|
19
|
-
| `then query` on an unfiltered list or a list narrowed by one `by` key (observable too) | yes | yes
|
|
20
|
-
| Collection query with caller-supplied equality `filter`, including observable | yes | yes
|
|
19
|
+
| `then query` on an unfiltered list or a list narrowed by one `by` key (observable too) | yes | yes: no `arguments` for an unkeyed list, one `result` per row stating the read-model identifier, no `result` = empty list | observable lists render, a non-observable list is `STAGE-ESM-010` |
|
|
20
|
+
| Collection query with caller-supplied equality `filter`, including observable | yes | yes, ESM v14: same-named scalar property/type, AND with `by`; optional omission allowed, supplied null refused; PLAY0468 checks arguments; row order does not matter | yes on supported observable collections / Stage; DateTime/filter parameter order and snapshot lists refuse -010; independent Stage executor still refuses filtered assertions (-010) |
|
|
21
21
|
| Context `from`, single-result filters, `scoped to`, `performer` or composite `by` | yes | PLAY0268: query context, collection-only filtering, opaque scope/implementation or multipart lookup are unadmitted | no |
|
|
22
22
|
| `then no readmodel <RM> for "<key>"` | yes | yes | no |
|
|
23
23
|
| `when query` -> `then result` / `then no result` | yes | yes | same as `then query`: only the query-only cases below |
|
|
24
|
-
| `given clock` / `when clock`, `when trigger`, `given`/`when capture` | yes | yes (standalone and any
|
|
25
|
-
| Command spec listing reaction cascade events | yes (v6 semantics) | false PLAY0285 on
|
|
26
|
-
| `generated <name> = <value>` under `when`, `then returns` (ESM v7) | yes | yes on
|
|
24
|
+
| `given clock` / `when clock`, `when trigger`, `given`/`when capture` | yes | yes (standalone and any cratis whose compiler admits v6; an older bundle does not, see toolchain `references/executable-subset.md`) | no |
|
|
25
|
+
| Command spec listing reaction cascade events | yes (v6 semantics) | false PLAY0285 on an older cratis bundle only; see SKILL.md "Version skew" | no: STAGE-ESM-011; generated CommandScenario does not settle reactions |
|
|
26
|
+
| `generated <name> = <value>` under `when`, `then returns` (ESM v7) | yes | yes on a compiler that admits v7 (PLAY0268 on an older bundle) | yes on Stage for supported UUID/String strategies and v15 freshness and scalar/named responses; unsupported types/combinations remain -028/-038 |
|
|
27
27
|
| v15 generation strategy fixtures and used-source rejection | yes | strict encoding/size/case/version/variant; Contract for invalid pins, Concurrency for reused source | supported strategies/freshness render; invalid pins refuse -011, unpinned unordered/projected assertions -038; source: command-surface `references/generated-values-and-responses.md` |
|
|
28
28
|
| `then events in any order` | yes | yes | yes |
|
|
29
|
-
| Event `stream` / `no stream`, typed `for` and stream ids | yes | ESM v8
|
|
29
|
+
| Event `stream` / `no stream`, typed `for` and stream ids | yes | ESM v8 | The CLI reaches Stage route checks (toolchain `references/renderable-subset.md`); routed read-model/query replay now renders; reserved names/unformattable fixtures remain STAGE-ESM-030 |
|
|
30
30
|
| Typed examples and overrides | yes | expanded and type-checked before binding; required fields remain required | depends on expanded contract, not fixture reuse |
|
|
31
31
|
| `given operation ... fails`, `then operation`, `then compensated` | yes | unadmitted PLAY0268 | gap-fill |
|
|
32
32
|
| Refusal branches, `when redelivered`, `then no events` | yes | unadmitted PLAY0268 | gap-fill |
|
|
@@ -35,10 +35,12 @@ Typed example/override forms: `cratis-screenplay-specifications`
|
|
|
35
35
|
| Bodied rules, code policies | spec them | spec reported **unsupported**, never passed | no |
|
|
36
36
|
| Command handlers, `file` constraints, query `performer`s | spec them in design | blocked: PLAY0268 at binding, no spec runs (V3 blocked) | no |
|
|
37
37
|
|
|
38
|
+
Requires Screenplay 4.105.0 or later (`screenplay --version`) for list-query specifications, and 4.143.0 or later for collection equality filters (ESM v14).
|
|
39
|
+
|
|
38
40
|
## Design mode
|
|
39
41
|
Write the full intended behaviour, including scenarios the executable subset cannot run
|
|
40
42
|
(filtered, scoped and performer-backed views; clock, trigger and capture scenarios when only a
|
|
41
|
-
cratis
|
|
43
|
+
older cratis bundle is available). Mark each such spec in the coverage matrix as
|
|
42
44
|
`gap: <reason>` for the narrower modes so the verification and render phases know what will not execute.
|
|
43
45
|
|
|
44
46
|
## Executable mode
|
|
@@ -56,7 +58,7 @@ cratis before 3.28.2 bundle is available). Mark each such spec in the coverage m
|
|
|
56
58
|
- Specs use given events, a command `when`, and then events / readmodel / query / error /
|
|
57
59
|
denied. No `when append` or `then no readmodel`. `given readmodel` appears only in the
|
|
58
60
|
query-only lookup below.
|
|
59
|
-
- Query-only specs (no command `when`) are admitted by Stage
|
|
61
|
+
- Query-only specs (no command `when`) are admitted by Stage in exactly two cases, and
|
|
60
62
|
`when query` and `then query` are the same case: Screenplay normalises `when query` to the
|
|
61
63
|
`then query` model, so the spelling never decides admission.
|
|
62
64
|
- Denial: `given caller` (no role claims), no given events or read models, one query under a
|
|
@@ -71,7 +73,7 @@ cratis before 3.28.2 bundle is available). Mark each such spec in the coverage m
|
|
|
71
73
|
executable, not renderable).
|
|
72
74
|
- Prove projections with `given` events + `when <Command>` + `then query` (or `then readmodel`).
|
|
73
75
|
Removal has no admitted form: record it as a gap for renderable scope.
|
|
74
|
-
- A `then error` must name a constraint or rule that is actually rendered. Stage
|
|
76
|
+
- A `then error` must name a constraint or rule that is actually rendered. Stage admits
|
|
75
77
|
a value constraint only when each target is a single, required, text-typed property (not
|
|
76
78
|
composite, optional, collection or nontext), and rejects a command that produces more than one
|
|
77
79
|
event affected by the same value constraint (claims or releases) in one batch. The number of
|