@cratis/pi 7.6.5 → 7.7.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/agents/backend-developer.md +14 -0
- package/package/corpus/agents/code-reviewer.md +16 -0
- package/package/corpus/agents/coordinator.md +17 -0
- package/package/corpus/agents/frontend-developer.md +17 -0
- package/package/corpus/agents/orchestrator.md +18 -0
- package/package/corpus/agents/planner.md +24 -0
- package/package/corpus/agents/screenplay-modeler.md +57 -0
- package/package/corpus/agents/screenplay-renderer.md +42 -0
- package/package/corpus/agents/screenplay-reviewer.md +45 -0
- package/package/corpus/agents/slice-implementer.md +32 -5
- package/package/corpus/agents/spec-writer.md +16 -3
- package/package/corpus/prompts/add-reactor.prompt.md +5 -3
- package/package/corpus/prompts/new-vertical-slice.prompt.md +16 -5
- package/package/corpus/prompts/write-specs.prompt.md +12 -6
- package/package/corpus/rules/application-profile.md +7 -3
- package/package/corpus/rules/general.md +8 -3
- package/package/corpus/rules/glossary.md +1 -1
- package/package/corpus/rules/profiles.md +42 -4
- package/package/corpus/rules/reactors.md +30 -22
- package/package/corpus/rules/vertical-slices.md +3 -1
- package/package/corpus/skills/cratis-application-react-specifications/SKILL.md +13 -0
- package/package/corpus/skills/cratis-application-slice-conformance/LICENSE +2 -0
- package/package/corpus/skills/cratis-application-slice-conformance/SKILL.md +173 -0
- package/package/corpus/skills/cratis-application-slice-conformance/references/checklists.md +66 -0
- package/package/corpus/skills/cratis-application-slice-conformance/references/contract-and-precedence.md +49 -0
- package/package/corpus/skills/cratis-application-slice-conformance/references/provenance.md +23 -0
- package/package/corpus/skills/cratis-application-slice-conformance/references/worked-example.md +91 -0
- package/package/corpus/skills/cratis-application-slice-conformance/verification.json +14 -0
- package/package/corpus/skills/cratis-application-slice-specifications/SKILL.md +57 -1
- package/package/corpus/skills/cratis-application-slice-specifications/references/provenance.md +16 -0
- package/package/corpus/skills/cratis-arc-command/SKILL.md +10 -0
- package/package/corpus/skills/cratis-arc-command-execution/SKILL.md +10 -0
- package/package/corpus/skills/cratis-arc-command-validation/SKILL.md +10 -0
- package/package/corpus/skills/cratis-arc-observable-query-http/SKILL.md +10 -0
- package/package/corpus/skills/cratis-arc-query-paging/SKILL.md +10 -0
- package/package/corpus/skills/cratis-arc-react-page/SKILL.md +68 -8
- package/package/corpus/skills/cratis-arc-react-page/references/from-screenplay.md +199 -0
- package/package/corpus/skills/cratis-arc-react-page/references/provenance.md +13 -0
- package/package/corpus/skills/cratis-chronicle-event-constraints/SKILL.md +10 -0
- package/package/corpus/skills/cratis-chronicle-event-modeling/SKILL.md +38 -10
- package/package/corpus/skills/cratis-chronicle-event-type-migration/SKILL.md +13 -0
- package/package/corpus/skills/cratis-chronicle-projection/SKILL.md +13 -0
- package/package/corpus/skills/cratis-chronicle-reactor/SKILL.md +58 -6
- package/package/corpus/skills/cratis-chronicle-reactor/references/provenance.md +9 -0
- package/package/corpus/skills/cratis-chronicle-read-model/SKILL.md +13 -0
- package/package/corpus/skills/cratis-chronicle-read-model-specifications/SKILL.md +47 -0
- package/package/corpus/skills/cratis-chronicle-read-model-specifications/references/provenance.md +11 -0
- package/package/corpus/skills/cratis-chronicle-reducer/SKILL.md +13 -0
- package/package/corpus/skills/cratis-components-stepper-command-dialog/SKILL.md +13 -0
- package/package/corpus/skills/cratis-event-model-diagram/SKILL.md +35 -16
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/LICENSE +28 -0
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/SKILL.md +166 -0
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/audit-format.md +31 -0
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/automation-patterns.md +139 -0
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/cases-to-specify.md +69 -0
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/effects-and-idempotency.md +88 -0
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/integration-contracts.md +64 -0
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/provenance.md +37 -0
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/realization-and-gap-fill.md +34 -0
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/todo-list-example.md +208 -0
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/translate-example.md +126 -0
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/translation-patterns.md +93 -0
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/worked-integration.md +98 -0
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/verification.json +15 -0
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/SKILL.md +267 -50
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/complete-examples.md +185 -0
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/verification.json +60 -12
- package/package/corpus/skills/cratis-screenplay-command-surface/SKILL.md +42 -12
- package/package/corpus/skills/cratis-screenplay-discovery/LICENSE +30 -0
- package/package/corpus/skills/cratis-screenplay-discovery/SKILL.md +229 -0
- package/package/corpus/skills/cratis-screenplay-discovery/references/divergent-sweep.md +37 -0
- package/package/corpus/skills/cratis-screenplay-discovery/references/event-naming.md +64 -0
- package/package/corpus/skills/cratis-screenplay-discovery/references/facilitation.md +62 -0
- package/package/corpus/skills/cratis-screenplay-discovery/references/human-workshop.md +222 -0
- package/package/corpus/skills/cratis-screenplay-discovery/references/interview-questions.md +66 -0
- package/package/corpus/skills/cratis-screenplay-discovery/references/personas-and-causes.md +152 -0
- package/package/corpus/skills/cratis-screenplay-discovery/references/plotting-and-handoff.md +111 -0
- package/package/corpus/skills/cratis-screenplay-discovery/references/provenance.md +37 -0
- package/package/corpus/skills/cratis-screenplay-discovery/references/storming-loop.md +119 -0
- package/package/corpus/skills/cratis-screenplay-discovery/references/worked-session.md +87 -0
- package/package/corpus/skills/cratis-screenplay-discovery/verification.json +15 -0
- package/package/corpus/skills/cratis-screenplay-event-modeling/SKILL.md +140 -77
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/invoicing-example.md +51 -0
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/nine-steps.md +114 -28
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/parsed-not-runnable.md +50 -0
- package/package/corpus/skills/cratis-screenplay-event-modeling/verification.json +28 -3
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/LICENSE +31 -0
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/SKILL.md +239 -0
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/chronicle-observations.md +25 -0
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/evidence-table-template.md +79 -0
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/expert-verification.md +48 -0
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/generate-notes.md +75 -0
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/intent-example.md +164 -0
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/interview-findings.md +88 -0
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/loss-report-template.md +47 -0
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/prologue-safety.md +147 -0
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/provenance.md +10 -0
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/rule-modeling.md +36 -0
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/side-car-migration.md +126 -0
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/signal-to-intent.md +57 -0
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/ui-observation.md +52 -0
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/verification.json +17 -0
- package/package/corpus/skills/cratis-screenplay-model-authoring/SKILL.md +77 -57
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/language-reference.md +50 -20
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-loop.md +211 -0
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-tools.md +44 -6
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/provenance.md +13 -0
- package/package/corpus/skills/cratis-screenplay-model-authoring/verification.json +64 -10
- package/package/corpus/skills/cratis-screenplay-model-review/LICENSE +34 -0
- package/package/corpus/skills/cratis-screenplay-model-review/SKILL.md +209 -0
- package/package/corpus/skills/cratis-screenplay-model-review/references/anti-patterns.md +89 -0
- package/package/corpus/skills/cratis-screenplay-model-review/references/business-questions.md +128 -0
- package/package/corpus/skills/cratis-screenplay-model-review/references/checklist.md +176 -0
- package/package/corpus/skills/cratis-screenplay-model-review/references/provenance.md +36 -0
- package/package/corpus/skills/cratis-screenplay-model-review/references/report-template.md +149 -0
- package/package/corpus/skills/cratis-screenplay-model-review/references/review-questions.md +59 -0
- package/package/corpus/skills/cratis-screenplay-model-review/references/worked-example.md +255 -0
- package/package/corpus/skills/cratis-screenplay-model-review/verification.json +13 -0
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/LICENSE +32 -0
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/SKILL.md +239 -0
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/code-reading-and-tokens.md +55 -0
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/handoff-template.md +124 -0
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/identity-and-edits.md +84 -0
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/opt-in.md +48 -0
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/phase-report-inventories.md +25 -0
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/phases.md +162 -0
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/principles.md +53 -0
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/provenance.md +63 -0
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/reasoning-notes.md +31 -0
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/safety.md +31 -0
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/stop-or-assume.md +46 -0
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/verdicts-and-modes.md +204 -0
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/vocabulary-map.md +55 -0
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/worked-example.md +86 -0
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/verification.json +16 -0
- package/package/corpus/skills/cratis-screenplay-projections/SKILL.md +14 -3
- package/package/corpus/skills/cratis-screenplay-read-surface/SKILL.md +15 -1
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/LICENSE +2 -0
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/SKILL.md +179 -0
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/delivery-protocol.md +99 -0
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/drift-and-ledger.md +67 -0
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/gap-fill-handoff.md +72 -0
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/provenance.md +27 -0
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/renderability-gate.md +56 -0
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/worked-example.md +124 -0
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/verification.json +14 -0
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/LICENSE +31 -0
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/SKILL.md +200 -0
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/berth-reservations.md +579 -0
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/chronicle-verification.md +24 -0
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/coverage-matrix.md +102 -0
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/provenance.md +41 -0
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-catalogue.md +196 -0
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-workshop.md +102 -0
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/spec-forms-by-mode.md +71 -0
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/view-and-story-specs.md +91 -0
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/verification.json +13 -0
- package/package/corpus/skills/cratis-screenplay-slice-design/LICENSE +30 -0
- package/package/corpus/skills/cratis-screenplay-slice-design/SKILL.md +236 -0
- package/package/corpus/skills/cratis-screenplay-slice-design/references/command-inventory.md +107 -0
- package/package/corpus/skills/cratis-screenplay-slice-design/references/field-lineage.md +130 -0
- package/package/corpus/skills/cratis-screenplay-slice-design/references/provenance.md +20 -0
- package/package/corpus/skills/cratis-screenplay-slice-design/references/read-model-design.md +201 -0
- package/package/corpus/skills/cratis-screenplay-slice-design/references/review-questions.md +23 -0
- package/package/corpus/skills/cratis-screenplay-slice-design/references/rule-layers.md +41 -0
- package/package/corpus/skills/cratis-screenplay-slice-design/references/slicing.md +122 -0
- package/package/corpus/skills/cratis-screenplay-slice-design/references/worked-example.md +305 -0
- package/package/corpus/skills/cratis-screenplay-slice-design/verification.json +43 -0
- package/package/corpus/skills/cratis-screenplay-specifications/SKILL.md +217 -36
- package/package/corpus/skills/cratis-screenplay-specifications/verification.json +28 -4
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/LICENSE +33 -0
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +191 -0
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/boundaries.md +154 -0
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/chronicle-boundaries.md +54 -0
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/consistency-and-concurrency.md +191 -0
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution-example.md +70 -0
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution.md +65 -0
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/provenance.md +13 -0
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-patterns.md +128 -0
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/streams-example.md +378 -0
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/verification.json +14 -0
- package/package/corpus/skills/cratis-screenplay-toolchain/LICENSE +2 -0
- package/package/corpus/skills/cratis-screenplay-toolchain/SKILL.md +177 -0
- package/package/corpus/skills/cratis-screenplay-toolchain/references/automation-translate-example.md +121 -0
- package/package/corpus/skills/cratis-screenplay-toolchain/references/cheat-sheet-example.md +319 -0
- package/package/corpus/skills/cratis-screenplay-toolchain/references/cheat-sheet.md +96 -0
- package/package/corpus/skills/cratis-screenplay-toolchain/references/diagnostics.md +107 -0
- package/package/corpus/skills/cratis-screenplay-toolchain/references/doc-contradictions.md +48 -0
- package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-example.md +113 -0
- package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-subset.md +148 -0
- package/package/corpus/skills/cratis-screenplay-toolchain/references/pdl-example.md +267 -0
- package/package/corpus/skills/cratis-screenplay-toolchain/references/provenance.md +51 -0
- package/package/corpus/skills/cratis-screenplay-toolchain/references/renderable-subset.md +88 -0
- package/package/corpus/skills/cratis-screenplay-toolchain/references/traps.md +51 -0
- package/package/corpus/skills/cratis-screenplay-toolchain/references/verdicts.md +134 -0
- package/package/corpus/skills/cratis-screenplay-toolchain/references/versions.md +134 -0
- package/package/corpus/skills/cratis-screenplay-toolchain/verification.json +15 -0
- package/package/corpus/skills/cratis-screenplay-ui-composition/SKILL.md +53 -5
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/flow-review.md +56 -0
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/provenance.md +13 -0
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/worked-flow.md +65 -0
- package/package/corpus/skills/cratis-screenplay-ui-composition/verification.json +4 -1
- package/package/corpus/skills/cratis-specification-by-example/SKILL.md +44 -1
- package/package/corpus/skills/cratis-specifications-csharp/SKILL.md +10 -0
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/SKILL.md +186 -219
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/admission.md +177 -0
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/render-example.md +150 -0
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/rendered-application.md +87 -0
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/sandbox-and-specrunner.md +98 -0
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/verification.json +19 -0
- package/package/profile-catalog.json +11 -0
- package/package.json +1 -1
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
# Versions and capabilities by tool (the only version table)
|
|
2
|
+
|
|
3
|
+
Every other Screenplay skill and reference points here instead of repeating a version
|
|
4
|
+
or a tool capability. When a tool changes, update this file first, then re-run the
|
|
5
|
+
example compile gate with both tools (see `verdicts.md`, "Example gate").
|
|
6
|
+
|
|
7
|
+
Pinned and re-verified against product source on 2026-10-05. Facts marked *source* were
|
|
8
|
+
read with `git show <tag>:<path>`; facts marked *probed* were run against the installed
|
|
9
|
+
tool.
|
|
10
|
+
|
|
11
|
+
## Pin set
|
|
12
|
+
|
|
13
|
+
| Source | Pin | Notes |
|
|
14
|
+
| --- | --- | --- |
|
|
15
|
+
| Screenplay (language, compiler, standalone tool, MCP server) | **v4.64.0** (`7e16162`), published as `Cratis.Screenplay.Tool` 4.64.0 | Most behaviour below was probed on 4.63.1 (`7769dc4`). The 4.63.1 to 4.64.0 diff adds only the `numbers exact` syntax (binding refuses it), the MCP roots fix from 4.63.2 and fence-registry plumbing; `Semantics/Execution` is unchanged. Example compile and the toolchain commands in this skill were run on 4.64.0 |
|
|
16
|
+
| cratis CLI | **v3.27.1** (`a327e89`) | Bundles **Screenplay 4.60.1** (ESM v1 to v5, MCP roots bug, false PLAY0285), **Stage 4.24.0**, `Cratis.Arc.Screenplay` 22.50.2, Generation 0.18.0 |
|
|
17
|
+
| Stage | **v4.24.0** (`fa48546`) | Pins Screenplay 4.60.0; admits ESM schema v1 to v3. Rendered apps use .NET 10, **Arc 22.25.0**, **Chronicle 19.8.1** and a React/Vite frontend scaffold (Components 4.14.0, Scene 4.2.0) |
|
|
18
|
+
| Arc | **v22.50.5** (`eefd098`) | `[ExecuteCommandsAsSystem]` since v20.56.0; `[ProtectedDecision]` and `DecisionRead<T>` since v22.39.0. A Stage-rendered application is on 22.25.0, so `[ProtectedDecision]` is **not** available there |
|
|
19
|
+
| Chronicle | **v19.32.0** (`f17a2ff`) | CHR0012 (`EventTypeShouldAvoidNullableProperties`) and CHR0034 (`PiiOnEventSourceId`) exist. Open runtime defects at v19.32.0: #3744 (unique claims not settled by the store on SQL and InMemory), #4123 (constraint index updates run after commit and fail silently), #4131 (composite unique constraints collide when a component contains the separator) |
|
|
20
|
+
|
|
21
|
+
Install or update the standalone tool: `dotnet tool update -g Cratis.Screenplay.Tool`
|
|
22
|
+
(first install: `dotnet tool install -g Cratis.Screenplay.Tool`). Check what is on the
|
|
23
|
+
machine before relying on any row: `screenplay --version`, `cratis --version`, and MCP
|
|
24
|
+
`initialize` -> `serverInfo.version`. A stale `cratis` earlier on `PATH` (for example a
|
|
25
|
+
global `dotnet` tool) shadows a newer one; confirm with `which -a cratis`.
|
|
26
|
+
|
|
27
|
+
## Two compilers, one rule
|
|
28
|
+
|
|
29
|
+
| | Standalone `screenplay` | `cratis screenplay ...` |
|
|
30
|
+
| --- | --- | --- |
|
|
31
|
+
| Version | 4.64.0 (this pin) | 3.27.1, bundling Screenplay 4.60.1 |
|
|
32
|
+
| ESM admitted by the binder | v1 to v6 (v6: clocks, application triggers, captures, reactions, Automation and Translate slices) | v1 to v5 only |
|
|
33
|
+
| `numbers exact` | syntax parses; binding refuses (PLAY0268). Absent from the grammar page; documented only in `diagnostics.md` (PLAY0508 to PLAY0513) | PLAY0001 "Unexpected 'numbers'" |
|
|
34
|
+
| Cascade specs (a command spec listing events a reaction appends) | compiles | **false PLAY0285** (cli#242, open) |
|
|
35
|
+
| Imports in file mode | follows imports | ignores imports, reports false unknown-name warnings (PLAY0165, cli#244, open): validate the folder |
|
|
36
|
+
| Used for | V1, V2, V3 on the current language; MCP | `render`, `screenplay generate`, `prologue`, `run`; V1 fallback when the standalone tool is absent |
|
|
37
|
+
|
|
38
|
+
**Routing rule.** Verdicts V1 to V3 on the current language come from the standalone tool
|
|
39
|
+
when it is installed. `cratis` is the route for rendering (V5) and the fallback for V1.
|
|
40
|
+
Projects set up by `cratis ai install` register `cratis screenplay mcp`, which runs the
|
|
41
|
+
bundled 4.60.1 compiler: expect lagging diagnostics there. **Name the tool and its version
|
|
42
|
+
with every verdict**; a verdict from one tool does not carry to the other.
|
|
43
|
+
|
|
44
|
+
### Exact messages that tell the tools apart
|
|
45
|
+
|
|
46
|
+
Only binding (MCP or `render`) prints these; neither `screenplay <folder>` nor
|
|
47
|
+
`cratis screenplay validate` binds. *source*: `Semantics/Versions.cs`,
|
|
48
|
+
`SemanticModelBinder.Structure.cs`, `SemanticModelBinder.SliceMembers.cs`,
|
|
49
|
+
`SemanticModelBinder.Specifications.cs`.
|
|
50
|
+
|
|
51
|
+
| Construct | cratis 3.27.1 (Screenplay 4.60.1) reports (PLAY0268) | Standalone 4.64.0 |
|
|
52
|
+
| --- | --- | --- |
|
|
53
|
+
| Automation or Translate slice | `Slice '<name>' of type '<type>' is not admitted by ESM v1.` | binds as ESM v6 |
|
|
54
|
+
| Reaction | `Reaction '<n>' requires portable occurrence and effect semantics.` | binds |
|
|
55
|
+
| Capture | `Capture '<n>' requires a portable compiled CDL plan.` | binds |
|
|
56
|
+
| Clock, trigger or capture specification | `... which the executable model does not admit yet - clocks, application triggers and capture records are proposed for ESM v6 in decision 0022.` | binds |
|
|
57
|
+
|
|
58
|
+
The substring "is not admitted by ESM v1" still appears on 4.64.0 for constraints,
|
|
59
|
+
expressions and projection blocks that the binder cannot represent, so that text alone does
|
|
60
|
+
not prove the older compiler: read the construct it names.
|
|
61
|
+
|
|
62
|
+
## Standalone `screenplay` 4.64.0
|
|
63
|
+
|
|
64
|
+
| Fact | Value | Evidence |
|
|
65
|
+
| --- | --- | --- |
|
|
66
|
+
| V1 command | `screenplay <file.play or folder> --warnaserror --no-color`. No `validate` verb, no JSON output. Text lines `file(line,col): severity PLAYnnnn: message` and a summary `N file(s) compiled - E error(s), W warning(s)` | `--help`, probed |
|
|
67
|
+
| Exit codes | 0 pass; 1 on errors, on warnings with `--warnaserror`, or on a missing path. Warnings without `--warnaserror` exit 0; information never fails. **An empty folder prints "No .play files found beneath ..." and exits 0**: check the summary's file count | probed |
|
|
68
|
+
| File versus folder | file mode follows imports (`app.play` importing `Shared/*.play` compiled 2 files). A folder is one application | probed |
|
|
69
|
+
| MCP | `screenplay mcp <model-folder>` (fixed root) or `screenplay mcp` (dynamic root). Protocol `2025-06-18`; 29 tools (30 on hosts that advertise the MCP-Apps UI extension: adds `visualize-model`). Needs `notifications/initialized` before tool calls (otherwise -32600 "Initialize and send notifications/initialized before using tools."). Refuses symlinked paths ("Symbolic links and reparse points are not admitted"): pass a physical path (on macOS `/tmp` is a symlink) | source `McpToolCatalog.cs`, `McpConnection.cs`; probed on 4.63.1 |
|
|
70
|
+
| `read-workspace` views | `documents`, `semantics`, `eventContracts`, `diagnostics`, `executable-diagnostics`, `implementation-requirements`, `handler-intents`, `source-map`, `typed-contexts`, `executable-model`, `repairs`, and the event-source, event-stream and command-route views. `executable-model` returns `available:false` unless the model binds; when it binds it carries `modelRevision` (`rev1:<sha256>`), `languageVersion`, `semanticVersion` and `attachmentManifestRevision` | source `McpToolSchemas.cs`, `McpWorkspaces.Reading.cs` |
|
|
71
|
+
| Empty root | `state: "empty"`, `authoringAccepted: true`, PLAY0289 | probed |
|
|
72
|
+
| Pin of the roots bug | fixed (from 4.63.2); see "MCP roots bug" below | source `McpConnection.cs` |
|
|
73
|
+
|
|
74
|
+
## cratis 3.27.1 (Screenplay 4.60.1)
|
|
75
|
+
|
|
76
|
+
| Fact | Value | Evidence |
|
|
77
|
+
| --- | --- | --- |
|
|
78
|
+
| V1 command | `cratis screenplay validate <folder> --warnings-as-errors -o json-compact` | `--help`, probed |
|
|
79
|
+
| Exit codes | 0 pass; 5 errors (or warnings with `--warnings-as-errors`); 1 path missing **or no `.play` files**. Information never fails | probed |
|
|
80
|
+
| Output | JSON lines: a `diagnostics` array with `severity`, `code`, `message`, `location`, then either `{"path","files","diagnostics":0}` or an error object. A passing folder run prints the file count | probed on 3.27.1 |
|
|
81
|
+
| File versus folder | file mode compiles one document and **ignores imports** (cli#244). Validate the folder | probed |
|
|
82
|
+
| MCP | `cratis screenplay mcp <root>`, or no argument inside a project whose `.cratis/ai.json` resolves the fixed `defaultRoot` `.cratis/screenplay`; 29 tools, no event-source, stream or route views. Fails fast when `.cratis/screenplay/` does not exist | source `ScreenplayMcpRoot.cs:20-37` |
|
|
83
|
+
| Render | `cratis render` binds with the bundled compiler first, then Stage 4.24.0 admits. See `renderable-subset.md` | source |
|
|
84
|
+
| `prologue interpret` | no `--no-llm` flag; LLM resolution and `screenplay generate` flags were checked on 3.27.0 | source |
|
|
85
|
+
|
|
86
|
+
## MCP roots bug (4.63.1 and earlier; fixed in 4.63.2)
|
|
87
|
+
|
|
88
|
+
A dynamic-root server (`screenplay mcp` with no folder) asks a roots-capable client for
|
|
89
|
+
`roots`, reads the wrong field and replies with an error whose `id` is `null`; real hosts
|
|
90
|
+
treat that as fatal. It happens right after `notifications/initialized`, before any tool
|
|
91
|
+
call, and only when the root is dynamic. **Passing `open-workspace.path` does not avoid
|
|
92
|
+
it.** Avoid it with a fixed root: `screenplay mcp <model-folder>`, `cratis screenplay mcp
|
|
93
|
+
<path>`, or `cratis screenplay mcp` inside a project with `.cratis/ai.json`; or use 4.63.2
|
|
94
|
+
or later. The bundled 4.60.1 has the bug, so only the fixed-root forms are safe there.
|
|
95
|
+
MCP loop procedure and proposals: `cratis-screenplay-model-authoring`.
|
|
96
|
+
|
|
97
|
+
## Revisions and descriptions
|
|
98
|
+
|
|
99
|
+
- `modelRevision` exists only when the model binds; design-only models have none. It is stable
|
|
100
|
+
across reopens, but it **changes when the root folder is renamed** and no
|
|
101
|
+
`.screenplay/identities.json` exists, because the application identity is bootstrapped
|
|
102
|
+
from the root. A file move changes it only if it changes logical placement or application
|
|
103
|
+
identity. It is computed from canonical semantic JSON (descriptions and source locations live
|
|
104
|
+
in the separate source map), so line positions and description edits do not change it. A
|
|
105
|
+
workspace or source revision can change without a `modelRevision` change. Re-read after every edit.
|
|
106
|
+
- `cratis render` records its own `semanticRevision` in `.cratis-render.json`, computed with
|
|
107
|
+
the `--name` identity and the 4.60.1 compiler. **Never compare the MCP `modelRevision`
|
|
108
|
+
with a render manifest.** Drift is detected by comparing successive `semanticRevision`
|
|
109
|
+
values from renders made with the same name and inputs. Unverified: whether 4.60.1 and
|
|
110
|
+
4.64.0 produce byte-identical `rev1` values for the same v1 to v3 model.
|
|
111
|
+
- Source identity for a verdict is the commit plus the digest from
|
|
112
|
+
the source-identity helper (`cratis-screenplay-modeling-lifecycle` `references/verdicts-and-modes.md` "Source identity"). Keep it apart from the MCP `modelRevision`.
|
|
113
|
+
- `description` and `documentation` never reach rendered code (Stage#178, open).
|
|
114
|
+
|
|
115
|
+
## Roadmap items that would change a verdict (all open at the pin)
|
|
116
|
+
|
|
117
|
+
Screenplay#377 (run specifications from MCP or the tool), #388 (completeness and lineage
|
|
118
|
+
report), #383 (identity for an `invokes` caller), #384 (`@pii` on identifiers, `@sensitive`
|
|
119
|
+
meaning), #379 (`visualize-model` counts reactions); Stage#79 (render Automation and
|
|
120
|
+
Translate slices), Stage#165 (admit ESM v4), Stage#197 (`@pii` identifier renders as
|
|
121
|
+
`[PII]` event source id); cli#242 (false PLAY0285), cli#243 (`validate --executable`),
|
|
122
|
+
cli#244 (file mode ignores imports), cli#245 (`render --check`). The standalone tool at
|
|
123
|
+
4.64.0 has only the compile command and `mcp` (no `test`); the reference runner is library
|
|
124
|
+
only. Until these land, "specifications written" or "bound" is never "specifications
|
|
125
|
+
pass".
|
|
126
|
+
|
|
127
|
+
## Upgrade checklist
|
|
128
|
+
|
|
129
|
+
1. `screenplay --version`, `cratis --version`; note whether `cratis` bundles a newer
|
|
130
|
+
Screenplay (then the routing rule collapses).
|
|
131
|
+
2. Update the pin table, the two-compiler table and the message table above.
|
|
132
|
+
3. Re-run the example compile gate with both tools; re-probe one binding example through
|
|
133
|
+
MCP.
|
|
134
|
+
4. Check whether a `screenplay test` or `cratis screenplay test` exists (a V4 route).
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"skill": "cratis-screenplay-toolchain",
|
|
3
|
+
"input": "Check a Screenplay model folder: which compiler should I run, what do V1 to V3 mean, and why does cratis reject my Automation slice?",
|
|
4
|
+
"fixtures": [],
|
|
5
|
+
"assertions": [
|
|
6
|
+
{ "kind": "skill-contains", "value": "references/versions.md" },
|
|
7
|
+
{ "kind": "skill-contains", "value": "PLAY0029" },
|
|
8
|
+
{ "kind": "skill-contains", "value": "--warnaserror" },
|
|
9
|
+
{ "kind": "skill-contains", "value": "4.64.0" },
|
|
10
|
+
{ "kind": "skill-contains", "value": "cratis screenplay validate" },
|
|
11
|
+
{ "kind": "skill-contains", "value": "cli#244" },
|
|
12
|
+
{ "kind": "skill-contains", "value": "`notifications/initialized`" },
|
|
13
|
+
{ "kind": "skill-contains", "value": "A handler never binds" }
|
|
14
|
+
]
|
|
15
|
+
}
|
|
@@ -27,6 +27,7 @@ source is the single flow model.
|
|
|
27
27
|
| --- | --- | --- |
|
|
28
28
|
| `Cratis.Screenplay` | `4.31.0` | Original UI composition parser evidence |
|
|
29
29
|
| `Cratis.Screenplay` | main `fd18129` | Cancellation routing and `optional`; changed example compiled |
|
|
30
|
+
| `Cratis.Screenplay` | `4.64.0` (`7e16162`) | Statements in this skill re-verified: the nine `Documentation/screenplay/` pages above are unchanged since `v4.31.0` except `file-references.md` (typed-context and `implementation` paragraphs); `PLAY0269` in `Diagnostics/DiagnosticCodes.cs`; the new section compiled with `screenplay` 4.64.0 and `cratis screenplay validate` 3.27.1 |
|
|
30
31
|
|
|
31
32
|
The update follows `commands.md`, `events.md`, `queries.md` and decision 0023
|
|
32
33
|
at that main commit (after v4.52.0). It does not verify UI rendering.
|
|
@@ -36,6 +37,9 @@ Checked against the Screenplay repository at tag `v4.31.0` (commit `355dffb`):
|
|
|
36
37
|
Those checks established the original baseline. The changed cancellation
|
|
37
38
|
example uses the newer main commit above, not the old tag.
|
|
38
39
|
|
|
40
|
+
Versions of the tools that check these examples: `cratis-screenplay-toolchain`
|
|
41
|
+
`references/versions.md`.
|
|
42
|
+
|
|
39
43
|
Every construct on this page is deferred from the executable model with
|
|
40
44
|
information `PLAY0269`: it never blocks binding, and it is not evidence that a
|
|
41
45
|
target renders it.
|
|
@@ -46,6 +50,36 @@ dispatches on a keyword entry. On an older language-service version they still
|
|
|
46
50
|
look unrecognized — **check `screenplay`, not the editor**, because absent
|
|
47
51
|
highlighting was never evidence that a construct is wrong.
|
|
48
52
|
|
|
53
|
+
## Compose in this order
|
|
54
|
+
|
|
55
|
+
Decide what every screen is for before deciding how any of it is laid out. Layout
|
|
56
|
+
work on a screen whose purpose is unsettled is rework.
|
|
57
|
+
|
|
58
|
+
1. **Level 1 for every screen in the flow first** (`cratis-screenplay-read-surface`:
|
|
59
|
+
`data` plus `action`). Read the whole set, not one screen at a time.
|
|
60
|
+
2. **Review the flow before adding layout.** Walk it screen by screen as text
|
|
61
|
+
(format in `references/flow-review.md`). When the host advertises the MCP-Apps
|
|
62
|
+
extension, `visualize-model` (a `proposalId` or a `sketch`) can also show it on
|
|
63
|
+
a board; that is optional, and the text review is enough on its own. Do not
|
|
64
|
+
use the Stage sandbox as the review: it renders only part of a screen, and
|
|
65
|
+
nothing here establishes that Stage renders an authored screen faithfully.
|
|
66
|
+
3. **Add structure only to screens whose Level 1 is agreed**: template, sections,
|
|
67
|
+
forms, `on`/`uses`. Use Level 3 inline code last, and only where Level 2 cannot
|
|
68
|
+
say it.
|
|
69
|
+
4. **Trace every field.** Each `form` `field` is a property of the form's command.
|
|
70
|
+
A prefilled value comes from `populate` or `from`; a derived one from
|
|
71
|
+
`compose using`. Each `summary` or `column` field is a property of the
|
|
72
|
+
screen's read model. A value with no origin means the command or read model is
|
|
73
|
+
missing it: fix the slice, never invent the value in the screen.
|
|
74
|
+
5. **Read before editing.** Open the existing screen (or `read-workspace` /
|
|
75
|
+
`declaration-details` over MCP) and change only the directives that were asked
|
|
76
|
+
for. Adding `layout` must not rewrite the Level-1 intent beneath it.
|
|
77
|
+
6. **Report each screen in two or three sentences**: what it shows and what the
|
|
78
|
+
user can do. Not everyone reviewing can see a board.
|
|
79
|
+
|
|
80
|
+
A complete worked flow (two Level-1 screens, their command, read model and form,
|
|
81
|
+
with the field trace): `references/worked-flow.md`.
|
|
82
|
+
|
|
49
83
|
## `layout` — the application shell
|
|
50
84
|
|
|
51
85
|
One per application, declared at the top level and selected by a `ui profile`.
|
|
@@ -232,9 +266,12 @@ module Invoicing
|
|
|
232
266
|
```
|
|
233
267
|
|
|
234
268
|
The inline event targets `invoiceId` without copying it into payload; the
|
|
235
|
-
projection obtains it from event context.
|
|
236
|
-
|
|
237
|
-
|
|
269
|
+
projection obtains it from event context. At v4.64.0 a command `returns` clause
|
|
270
|
+
(scalar or record) is authorable but syntax-only: binding reports `PLAY0268` until
|
|
271
|
+
ESM v8 (`commands.md`, "Generated values and responses"). Form `on submit` and
|
|
272
|
+
interaction `on success` response-name scopes, failure clearing and response
|
|
273
|
+
execution remain unavailable.
|
|
274
|
+
An existing success continuation does not imply a response contract.
|
|
238
275
|
|
|
239
276
|
- Write the one-off case inline; name it with `behavior` when several places need
|
|
240
277
|
the same wiring. A `uses` site must supply exactly the declared parameters
|
|
@@ -300,7 +337,8 @@ the printer emits it unquoted so a round trip preserves it.
|
|
|
300
337
|
|
|
301
338
|
Three meanings, one word:
|
|
302
339
|
|
|
303
|
-
- **Backend implementation attachment.** On a command `handler
|
|
340
|
+
- **Backend implementation attachment.** On a command `handler` (which never
|
|
341
|
+
binds, `PLAY0268`), a validation
|
|
304
342
|
rule predicate, a query `performer`, a reducer rule, a reaction trigger, a
|
|
305
343
|
`constraint` and a `policy`, `file` stands in for the inline body: the
|
|
306
344
|
implementation lives there. These are the files a host inventories.
|
|
@@ -337,7 +375,12 @@ a trigger value named `file` is written `@file`.
|
|
|
337
375
|
|
|
338
376
|
## Verify
|
|
339
377
|
|
|
340
|
-
- [ ] `screenplay <model> --warnaserror` reports zero errors and zero
|
|
378
|
+
- [ ] `screenplay <model> --warnaserror` (standalone) reports zero errors and zero
|
|
379
|
+
warnings; `cratis screenplay validate --warnings-as-errors` says the same for
|
|
380
|
+
constructs its bundled compiler knows (versions: `cratis-screenplay-toolchain`
|
|
381
|
+
`references/versions.md`).
|
|
382
|
+
- [ ] Every screen in the flow has Level 1 reviewed before any layout, and every
|
|
383
|
+
form field and screen field traces to a command or read-model property.
|
|
341
384
|
- [ ] Every slot a `contribute` targets is declared `contributes <Point>` somewhere
|
|
342
385
|
that encloses it.
|
|
343
386
|
- [ ] No `dialog template` declares `fits slot`.
|
|
@@ -354,5 +397,10 @@ a trigger value named `file` is written `@file`.
|
|
|
354
397
|
|
|
355
398
|
- A screen's own data, actions and name resolution: `cratis-screenplay-read-surface`.
|
|
356
399
|
- Application triggers and reactions: `cratis-screenplay-captures-and-reactions`.
|
|
400
|
+
- Reviewing the whole flow's design: `cratis-screenplay-model-review`.
|
|
357
401
|
- Deriving wireframes from the model (step 4): `cratis-screenplay-event-modeling`.
|
|
358
402
|
- Building the actual React application: `cratis-arc-react-page`, `cratis-components-styling`.
|
|
403
|
+
|
|
404
|
+
## Lineage
|
|
405
|
+
|
|
406
|
+
`references/provenance.md`.
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# Flow review (text form)
|
|
2
|
+
|
|
3
|
+
Use this before any layout work (`SKILL.md`, *Compose in this order*, step 2). It needs
|
|
4
|
+
no board: the `.play` source and your own words are enough. If the host offers
|
|
5
|
+
`visualize-model` (MCP-Apps hosts only) you may add a board view; it never replaces this.
|
|
6
|
+
|
|
7
|
+
## Procedure
|
|
8
|
+
|
|
9
|
+
1. List the screens of the flow in the order a user meets them. Take them from the
|
|
10
|
+
model, not from memory: read the `screen` declarations first.
|
|
11
|
+
2. Write one entry per screen in the shape below.
|
|
12
|
+
3. Walk each `action ... navigate to` and each `on submit navigate to`: the target
|
|
13
|
+
screen must exist and the entry for it must say how the user arrived.
|
|
14
|
+
4. Mark gaps instead of filling them: a field with no origin, a screen with neither
|
|
15
|
+
`data` nor `action`, an action nobody reaches.
|
|
16
|
+
5. Ask the person owning the flow to confirm or correct the entries. Only then move to
|
|
17
|
+
templates, forms and interactions.
|
|
18
|
+
|
|
19
|
+
## Entry shape
|
|
20
|
+
|
|
21
|
+
```text
|
|
22
|
+
<Screen>
|
|
23
|
+
Shows: <read model and the fields that matter, in plain words>
|
|
24
|
+
Arrived by: <action, navigation or entry point>
|
|
25
|
+
Can do: <intents; each one a command or a navigation>
|
|
26
|
+
Gaps: <none, or what has no origin / no target>
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Two or three sentences per screen is enough. Name states the screen must cope with
|
|
30
|
+
(empty list, command refused, caller not allowed) so that nobody discovers them in
|
|
31
|
+
the build.
|
|
32
|
+
|
|
33
|
+
## Example (marina bookings)
|
|
34
|
+
|
|
35
|
+
```text
|
|
36
|
+
BerthListScreen
|
|
37
|
+
Shows: the berths booked so far (berth, boat name).
|
|
38
|
+
Arrived by: the entry point, and after a booking is submitted.
|
|
39
|
+
Can do: book a berth (BookBerth, opens BookBerthScreen).
|
|
40
|
+
Gaps: none. Empty list: nothing booked yet.
|
|
41
|
+
|
|
42
|
+
BookBerthScreen
|
|
43
|
+
Shows: the same berth list for context.
|
|
44
|
+
Arrived by: "book a berth" on BerthListScreen.
|
|
45
|
+
Can do: enter a boat name and submit BookBerth; then return to BerthListScreen.
|
|
46
|
+
Gaps: none. Refusal state (berth already taken) not yet modeled: ask.
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## Field trace table
|
|
50
|
+
|
|
51
|
+
| Where | Field | Origin | Status |
|
|
52
|
+
| --- | --- | --- | --- |
|
|
53
|
+
| `BookBerthForm` | `boatName` | `BookBerth.boatName` | traced |
|
|
54
|
+
| `BerthListScreen` | berth, boat name | `BerthListView` properties | traced |
|
|
55
|
+
|
|
56
|
+
A row whose origin is blank is a model gap, not a screen detail.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Provenance
|
|
2
|
+
|
|
3
|
+
Nebulit-GmbH/agentic-engineer has no licence; its material is recorded as ideas written
|
|
4
|
+
independently, with no text reused beyond a short phrase. No TrogonStack text is adapted
|
|
5
|
+
in this skill.
|
|
6
|
+
|
|
7
|
+
| Item | Source | Licence | Treatment | Where in this skill |
|
|
8
|
+
|---|---|---|---|---|
|
|
9
|
+
| Plan every screen of the flow before building any; review the flow before layout | idea from Nebulit-GmbH/agentic-engineer@07b0f30:.claude/skills/storyboard, written independently | none | IDEA | SKILL.md *Compose in this order* steps 1-3 |
|
|
10
|
+
| Read the existing screen first and change only what was asked | idea from Nebulit-GmbH/agentic-engineer@07b0f30:.claude/skills/html-screen, written independently | none | IDEA | SKILL.md step 5 |
|
|
11
|
+
| Every displayed or captured value has a named source | idea from Nebulit-GmbH/agentic-engineer@07b0f30:.claude/skills/eventmodeling-storyboarding-events and storyboard, written independently | none | IDEA | SKILL.md step 4; references/flow-review.md |
|
|
12
|
+
| Short per-screen description (what it shows, what the user can do) | idea from Nebulit-GmbH/agentic-engineer@07b0f30:.claude/skills/storyboard-screen, written independently | none | IDEA | SKILL.md step 6; references/flow-review.md |
|
|
13
|
+
| Language constructs, rules and Verify list | Cratis/Screenplay v4.31.0 documentation, re-verified at v4.64.0 | MIT | original | SKILL.md |
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# Worked flow: marina berth bookings
|
|
2
|
+
|
|
3
|
+
Complete document, design-mode (the list query `ListBerths` keeps it out of the executable
|
|
4
|
+
subset; see `cratis-screenplay-slice-design`). Used by `SKILL.md`, *Compose in this order*.
|
|
5
|
+
|
|
6
|
+
```screenplay
|
|
7
|
+
concept BerthId : Uuid
|
|
8
|
+
concept BoatName : String
|
|
9
|
+
|
|
10
|
+
module Marina
|
|
11
|
+
feature BerthBookings
|
|
12
|
+
slice StateChange BookBerth
|
|
13
|
+
command BookBerth
|
|
14
|
+
berthId BerthId identifier
|
|
15
|
+
boatName BoatName
|
|
16
|
+
produces event BerthBooked
|
|
17
|
+
boatName BoatName = boatName
|
|
18
|
+
screen BookBerthScreen
|
|
19
|
+
title "Book a berth"
|
|
20
|
+
data BerthListView[] via query ListBerths
|
|
21
|
+
action BookBerth
|
|
22
|
+
navigate to BerthListScreen
|
|
23
|
+
slice StateView BerthList
|
|
24
|
+
readmodel BerthListView
|
|
25
|
+
berthId BerthId
|
|
26
|
+
boatName BoatName
|
|
27
|
+
projection BerthListProjection => BerthListView
|
|
28
|
+
from BerthBooked
|
|
29
|
+
berthId = $eventSourceId
|
|
30
|
+
boatName = boatName
|
|
31
|
+
query ListBerths => BerthListView[]
|
|
32
|
+
screen BerthListScreen
|
|
33
|
+
data BerthListView[] via query ListBerths
|
|
34
|
+
action BookBerth
|
|
35
|
+
navigate to BookBerthScreen
|
|
36
|
+
|
|
37
|
+
form BookBerthForm for BookBerth
|
|
38
|
+
field berthId label "Berth"
|
|
39
|
+
field boatName label "Boat name"
|
|
40
|
+
on submit navigate to BerthListScreen
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Field trace
|
|
44
|
+
|
|
45
|
+
| Where | Field | Origin | Status |
|
|
46
|
+
| --- | --- | --- | --- |
|
|
47
|
+
| `BookBerthForm` | `berthId` | `BookBerth.berthId`, typed by the user | traced |
|
|
48
|
+
| `BookBerthForm` | `boatName` | `BookBerth.boatName` | traced |
|
|
49
|
+
| `BerthBooked` | `boatName` | `BookBerth.boatName` (declared payload) | traced |
|
|
50
|
+
| `BerthListView` | `boatName` | `BerthBooked.boatName` | traced |
|
|
51
|
+
| `BerthListView` | `berthId` | event source id of `BerthBooked`, which is `BookBerth.berthId` | traced |
|
|
52
|
+
|
|
53
|
+
Command to event to read model to screen: each hop is declared. A projection cannot read a
|
|
54
|
+
payload field the event never declares, so the event payload line matters.
|
|
55
|
+
|
|
56
|
+
## Notes
|
|
57
|
+
|
|
58
|
+
- `identifier` marks which property names the event source. It neither generates the value nor
|
|
59
|
+
fills it. Here the user supplies the berth. Other sources are a prefill (`populate via query`
|
|
60
|
+
or `populate from item` when the user chose a berth on the previous screen) or a modeled
|
|
61
|
+
selection. `generated identifier` is syntax-only at v4.64.0 (binding reports `PLAY0268` until
|
|
62
|
+
ESM v8).
|
|
63
|
+
- The form is found through `action BookBerth`; neither screen names it.
|
|
64
|
+
- Compiled with `screenplay` 4.64.0 `--warnaserror` and `cratis screenplay validate
|
|
65
|
+
--warnings-as-errors` 3.27.1.
|
|
@@ -15,6 +15,9 @@
|
|
|
15
15
|
{ "kind": "skill-contains", "value": "override-priority order" },
|
|
16
16
|
{ "kind": "skill-contains", "value": "A declared `trigger` is not a UI event" },
|
|
17
17
|
{ "kind": "skill-contains", "value": "**Loaded is not run.**" },
|
|
18
|
-
{ "kind": "skill-contains", "value": "belong only on actions that can fail" }
|
|
18
|
+
{ "kind": "skill-contains", "value": "belong only on actions that can fail" },
|
|
19
|
+
{ "kind": "skill-contains", "value": "## Compose in this order" },
|
|
20
|
+
{ "kind": "skill-contains", "value": "**Level 1 for every screen in the flow first**" },
|
|
21
|
+
{ "kind": "skill-contains", "value": "**Read before editing.**" }
|
|
19
22
|
]
|
|
20
23
|
}
|
|
@@ -50,6 +50,22 @@ before claiming behavior for another version.
|
|
|
50
50
|
- Deciding what a command, projection, reducer, or reactor *should do*: that is
|
|
51
51
|
a modeling question. Settle the behavior first; a specification records a
|
|
52
52
|
decision, it does not make one.
|
|
53
|
+
- The scope is model-first (the behavior lives in `specification` blocks of the
|
|
54
|
+
model). Decide this with the decision rule in
|
|
55
|
+
`cratis-screenplay-modeling-lifecycle`: model-first only when an accepted
|
|
56
|
+
model under the model root covers this scope, or the repository is opted in
|
|
57
|
+
(the root holds a committed `.play` file (`git ls-tree -r --name-only HEAD -- <root>` lists it), or the project set `mcpServers.screenplay.root`
|
|
58
|
+
in `.cratis/ai.json`); an empty directory, install output, a `.play` file
|
|
59
|
+
outside the root or an uncommitted draft does not count, and framework, infrastructure, client, adapter and not-opted-in
|
|
60
|
+
brownfield work stays code-first. Opted in but no model for this scope: model
|
|
61
|
+
it first (`cratis-screenplay-discovery`, then `cratis-screenplay-slice-design`)
|
|
62
|
+
before writing specifications. If those Screenplay skills are not installed,
|
|
63
|
+
say so and stop; never author `.play` from memory. Never edit Stage-managed
|
|
64
|
+
output, and never change a model specification to match existing code. Write model specifications with
|
|
65
|
+
`cratis-screenplay-specifications`, decide coverage with
|
|
66
|
+
`cratis-screenplay-scenario-coverage`, and treat code specifications as
|
|
67
|
+
realizations of them (`cratis-application-slice-specifications`;
|
|
68
|
+
`cratis-application-slice-conformance` checks the two against each other).
|
|
53
69
|
|
|
54
70
|
## Step 1 — State the behavior as a sentence
|
|
55
71
|
|
|
@@ -157,6 +173,32 @@ A specification is only as good as the signal it reads.
|
|
|
157
173
|
it changes for reasons that have nothing to do with the behavior. Assert on
|
|
158
174
|
the identity of what failed — an error code, a constraint name, a typed
|
|
159
175
|
result — never on the sentence shown to a user.
|
|
176
|
+
- **In code (C#, TypeScript):** never assert a message string.
|
|
177
|
+
- **In a `.play` model:** a rejection specification pins the message, or
|
|
178
|
+
its localization key, with `then error "<message>"` or
|
|
179
|
+
`then error "$strings.<key>"`, because the model has no reason codes. Bare
|
|
180
|
+
`then error` leaves the reason to the specification's name. The model pins
|
|
181
|
+
the message; the code specification pins the kind. They do not conflict.
|
|
182
|
+
|
|
183
|
+
```screenplay
|
|
184
|
+
concept InvoiceId : Uuid
|
|
185
|
+
concept InvoiceNumber : String
|
|
186
|
+
module Invoicing
|
|
187
|
+
feature Registration
|
|
188
|
+
slice StateChange RegisterInvoice
|
|
189
|
+
command RegisterInvoice
|
|
190
|
+
invoiceId InvoiceId identifier
|
|
191
|
+
invoiceNumber InvoiceNumber
|
|
192
|
+
validate
|
|
193
|
+
invoiceNumber not empty message "Invoice number is required"
|
|
194
|
+
produces event InvoiceRegistered
|
|
195
|
+
invoiceNumber InvoiceNumber = invoiceNumber
|
|
196
|
+
specification RejectingAnEmptyInvoiceNumber
|
|
197
|
+
when RegisterInvoice
|
|
198
|
+
invoiceId = "9c858901-8a57-4791-81fe-4c455b099bc9"
|
|
199
|
+
invoiceNumber = ""
|
|
200
|
+
then error "Invoice number is required"
|
|
201
|
+
```
|
|
160
202
|
- **Never wait on the clock.** A sleep before an assertion passes because the
|
|
161
203
|
machine happened to be fast, and writes today's latency into the suite. Await
|
|
162
204
|
a completion signal, under a deadline. A timeout turns a hang into a named
|
|
@@ -183,6 +225,7 @@ edge someone chose is a different thing from one nobody saw.
|
|
|
183
225
|
- One specification per file; one outcome per specification.
|
|
184
226
|
- No action and no assertion sits on a `given/` context.
|
|
185
227
|
- Nothing trivial, delegated, or compiler-verified is specified.
|
|
186
|
-
- No assertion reads a presentation message string
|
|
228
|
+
- No code assertion reads a presentation message string; a `.play` rejection
|
|
229
|
+
pins its message or key deliberately.
|
|
187
230
|
- No sleep, bare delay, or poll loop stands in for a completion signal.
|
|
188
231
|
- The suite runs green, and the report names what was not covered.
|
|
@@ -35,6 +35,16 @@ another version. Never translate an assertion or helper name from memory.
|
|
|
35
35
|
- The repository builds a Cratis library rather than an application: stay on the
|
|
36
36
|
plain `Specification` base in this file and do not reach for the scenario
|
|
37
37
|
family except to test the very engine that repository provides.
|
|
38
|
+
- An accepted `.play` model under the model root covers the behavior, or the
|
|
39
|
+
repository is opted in (the root holds a committed `.play` file (`git ls-tree -r --name-only HEAD -- <root>` lists it), or the project set
|
|
40
|
+
`mcpServers.screenplay.root` in `.cratis/ai.json`; an empty directory, install
|
|
41
|
+
output, an uncommitted `.play` draft or a `.play` file outside the root does not count; master definition:
|
|
42
|
+
`cratis-screenplay-modeling-lifecycle`): change the model first with
|
|
43
|
+
`cratis-screenplay-event-modeling`. If the Screenplay skills are not installed,
|
|
44
|
+
say so and do not author `.play` from memory.
|
|
45
|
+
Edit code here only for infrastructure, clients, adapters, Screenplay code
|
|
46
|
+
attachments, or gap-fill scope (`cratis-screenplay-render-and-gap-fill`);
|
|
47
|
+
never edit Stage-managed output.
|
|
38
48
|
|
|
39
49
|
## Step 1 — Choose the specification surface
|
|
40
50
|
|