@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
package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/prologue-safety.md
CHANGED
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
- 4. Cleanup DDL to propose (run by the DBA after the Extractor is stopped)
|
|
9
9
|
- 5. Capture verification before interpreting
|
|
10
10
|
|
|
11
|
-
Sources: Prologue
|
|
12
|
-
Interpretation) and cratis CLI
|
|
11
|
+
Sources: Prologue (the version the CLI bundles; Extractor, Configuration,
|
|
12
|
+
Interpretation) and the cratis CLI (`Source/Cli/Commands/Prologue/*`,
|
|
13
13
|
`LlmOptionsResolver.cs`, `Documentation/reference/prologue.md`). Tool versions: `cratis-screenplay-toolchain`
|
|
14
14
|
`SKILL.md`.
|
|
15
15
|
Everything here that touches a target system is
|
|
@@ -31,8 +31,7 @@ with explicit approval).
|
|
|
31
31
|
An explicit user request naming the effect and target counts as approval; ask again only when
|
|
32
32
|
the target or consequence expands.
|
|
33
33
|
|
|
34
|
-
Nothing in Prologue removes what the Extractor created. Cleanup is manual
|
|
35
|
-
(open) tracks the missing cleanup, so write the cleanup before capture starts.
|
|
34
|
+
Nothing in Prologue removes what the Extractor created. Cleanup is manual, so write the cleanup before capture starts.
|
|
36
35
|
|
|
37
36
|
## 2. Configuration and privacy
|
|
38
37
|
- `start` is interactive only; for a reviewable plan, hand-write `cratis-prologue.json` in
|
|
@@ -56,8 +55,7 @@ Nothing in Prologue removes what the Extractor created. Cleanup is manual; Crati
|
|
|
56
55
|
when its brief records this preflight and the user's approval, otherwise it proposes)
|
|
57
56
|
`cratis prologue interpret --no-llm` forces heuristics-only interpretation: it never creates a
|
|
58
57
|
chat client and sends no capture evidence to a model, whatever the local or global configuration
|
|
59
|
-
says (
|
|
60
|
-
closed. Without `--no-llm` the effective provider resolves in this order
|
|
58
|
+
says (confirm with `cratis prologue interpret --help`). Without `--no-llm` the effective provider resolves in this order
|
|
61
59
|
(`LlmOptionsResolver.ResolveWithSource`):
|
|
62
60
|
1. an explicit local `llm.enabled` in `cratis-prologue.json`: `true` -> that provider, `false`
|
|
63
61
|
-> disabled, with no fallback to the global configuration;
|
|
@@ -69,13 +67,15 @@ file`, `global config`, `--no-llm`, `none`) to stderr before it sends any eviden
|
|
|
69
67
|
and unattended runs; the JSON result carries an `llm` object. That notice informs the user; it
|
|
70
68
|
does not replace the approval.
|
|
71
69
|
|
|
70
|
+
Requires cratis CLI 3.37.1 or later (`cratis --version`) for `cratis prologue interpret --no-llm`.
|
|
71
|
+
|
|
72
72
|
Unattended default: pass `--no-llm` unless the brief records the approved disclosure.
|
|
73
73
|
|
|
74
74
|
Preflight (read-only):
|
|
75
75
|
- `cratis llm show -o json` (the key is masked) and the `llm` section of the
|
|
76
76
|
`cratis-prologue.json` that interpret will find (PATH, then the current directory).
|
|
77
77
|
- Report the effective provider, model and endpoint. If it is hosted, the whole payload sent
|
|
78
|
-
is (`RefinementPrompt.Evidence`, `EvidenceFormatter.cs`
|
|
78
|
+
is (`RefinementPrompt.Evidence`, `EvidenceFormatter.cs`):
|
|
79
79
|
- the provisional model outline and the list of every provisional name in it, **uncapped**
|
|
80
80
|
(inferred command, event and property names from all captures);
|
|
81
81
|
- observed behaviour, each list capped at 50 distinct entries: `METHOD path` lines (concrete
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|---|---|---|---|
|
|
5
5
|
| Interview protocol (critical questions, follow-up triggers, interview flow, findings capture, green-light checklist) in `SKILL.md` and `references/interview-findings.md` | TrogonStack/agentskills `plugins/trogonstack-eventmodeling/skills/eventmodeling-integrating-legacy-systems/SKILL.md` at `7b249d3ee42d8b7e11fa564141ebd5fbc37aadf1` | MIT, Copyright (c) 2025 Straw Hat, LLC (notice in `LICENSE`) | Adapted closely: questions restructured around Screenplay extraction, the Cratis toolchain and the approval rules; the freeze question kept as the first gate |
|
|
6
6
|
| Freeze agreement, side-car pattern, extraction options, traffic routing phases, integration patterns, anti-patterns, quality checklist in `references/side-car-migration.md` | same file | MIT (as above) | Adapted: the target store is Chronicle, extraction is a code or Prologue concern, and the new behaviour is authored as a Screenplay model; the dual-write exception and its controls are kept |
|
|
7
|
-
| Evidence ladder, locators, loss report, unknowns, generator/Prologue coverage notes, rule modeling, signal-to-intent table, `references/intent-example.md` | Cratis/AI corpus drafts
|
|
7
|
+
| Evidence ladder, locators, loss report, unknowns, generator/Prologue coverage notes, rule modeling, signal-to-intent table, `references/intent-example.md` | Cratis/AI corpus drafts, written for Cratis | MIT (Cratis) | Own work |
|
|
8
8
|
|
|
9
9
|
Where product facts come from: `verified-sources.md`.
|
|
10
10
|
|
package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/rule-modeling.md
CHANGED
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
## State-dependent rules
|
|
14
14
|
A rule that depends on stored state (current status, existing records, balances) is written
|
|
15
15
|
as `reads <View>` + `require <expr> message "…"` and the slice description says it is **NOT
|
|
16
|
-
enforced in the model today** (PLAY0268/0271 at binding are expected in design mode
|
|
17
|
-
|
|
16
|
+
enforced in the model today** (PLAY0268/0271 at binding are expected in design mode).
|
|
17
|
+
Name the invariant, the race it leaves open, and the target:
|
|
18
18
|
`[ProtectedDecision]` + `DecisionRead<T>` (Arc 22.39.0 and later; available to gap-fill
|
|
19
|
-
in Stage
|
|
19
|
+
in Stage's rendered package set, not automatically emitted), or a Chronicle
|
|
20
20
|
`concurrency` scope on the event source or stream, or a constraint where one fits. Forbidden: caller-supplied copies of state
|
|
21
21
|
in `require`, boolean inputs standing in for a rule (`confirmsX == true`), and rules hidden in
|
|
22
|
-
`handler`/`implementation hint` prose. Descriptions render only as XML doc comments
|
|
22
|
+
`handler`/`implementation hint` prose. Descriptions render only as XML doc comments, so a rule
|
|
23
23
|
that exists only in prose is unenforced; list it in LOSS.md too.
|
|
24
24
|
|
|
25
25
|
## Unique indexes
|
|
@@ -23,14 +23,9 @@ same model root or workspace export to all checks. Workflow:
|
|
|
23
23
|
|
|
24
24
|
## Verified product sources
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
([sources](references/mcp-tools.md#concept-generation-41490)); other MCP v4.139.0
|
|
30
|
-
`Documentation/screenplay/mcp/`. Stored names v4.152.0; baseline v4.153.0
|
|
31
|
-
(`references/release-baseline.md`). Discover installed schemas; bundles differ.
|
|
32
|
-
Tool versions: toolchain `SKILL.md`. Historical probes 4.66.0; registration
|
|
33
|
-
compilation/execution 4.68.0. Attribution: `references/provenance.md`.
|
|
26
|
+
Source: `Cratis/Screenplay`, `Documentation/screenplay/` and `Documentation/screenplay/mcp/`
|
|
27
|
+
(notes, property planner, compliance, concept generation, release baseline). Discover
|
|
28
|
+
installed schemas; bundles differ. Tool versions: toolchain `SKILL.md`.
|
|
34
29
|
|
|
35
30
|
Record open modeling questions as `question` notes in committed
|
|
36
31
|
`.screenplay/notes.json`, not chat or `description` text. Never put secrets or
|
|
@@ -45,7 +40,7 @@ editing concept generation or `generated identifier`.
|
|
|
45
40
|
|
|
46
41
|
## When not to
|
|
47
42
|
|
|
48
|
-
The same reference separates inputs, credentials and
|
|
43
|
+
The same reference separates inputs, credentials and context/secret generation that is not available.
|
|
49
44
|
|
|
50
45
|
## Locate and connect
|
|
51
46
|
|
|
@@ -82,7 +77,7 @@ The CLI entry point is:
|
|
|
82
77
|
cratis screenplay mcp <model-folder>
|
|
83
78
|
```
|
|
84
79
|
|
|
85
|
-
CLI
|
|
80
|
+
The CLI-bundled MCP can be older than the standalone tool and lack newer capabilities, such as the generation summary and entropy repairs.
|
|
86
81
|
Discover installed capabilities. Do not ask for a second global .NET tool, Docker
|
|
87
82
|
or hand-copied managed MCP configuration. Installation/status must confirm adapter
|
|
88
83
|
support and no conflicts.
|
|
@@ -100,7 +95,7 @@ can keep that entry point; use the project's supported installation channel.
|
|
|
100
95
|
Before a property change, read [property links](references/property-links.md):
|
|
101
96
|
`kind: "Property"`, `Owner.member` / `Owner.generationN.member`, direct mappings.
|
|
102
97
|
`complete: false` is incomplete evidence, never a successful empty list.
|
|
103
|
-
Edit through MCP proposals, not hand-edited text; [generation](references/mcp-tools.md#concept-generation
|
|
98
|
+
Edit through MCP proposals, not hand-edited text; [generation](references/mcp-tools.md#concept-generation).
|
|
104
99
|
3. Read diagnostics and coverage limitations. Use `dependency-graph` for container
|
|
105
100
|
edges, declared-dependency coverage, cycles and advisory order; the board's
|
|
106
101
|
dependency-map toggle exposes this evidence visually. Unknown or ambiguous
|
|
@@ -161,9 +156,11 @@ Others send an edit request ([MCP loop](references/mcp-loop.md)).
|
|
|
161
156
|
identity-state change through `workspace-state`. Review `orphanedNotes` on
|
|
162
157
|
source proposals; reanchor or resolve affected questions before applying
|
|
163
158
|
([notes and orphan impact](references/model-notes.md#source-proposals-can-orphan-notes)).
|
|
164
|
-
7. Run `run-specifications` with `proposalId` before applying
|
|
165
|
-
|
|
166
|
-
|
|
159
|
+
7. Run `run-specifications` with `proposalId` before applying. Record V4 separately: PLAY0285
|
|
160
|
+
(impossible `then`) unbinds the whole model. Paging and read-only candidate semantics:
|
|
161
|
+
[MCP tool guide](references/mcp-tools.md#run-reference-specifications).
|
|
162
|
+
|
|
163
|
+
Requires Screenplay 4.145.0 or later (`screenplay --version`) for `proposalId`; earlier servers run only the current workspace.
|
|
167
164
|
8. `apply` only the reviewed server-produced proposal within the user's requested
|
|
168
165
|
change. The proposal ID and before revisions are required; stale state rejects.
|
|
169
166
|
When the user already requested apply, do it after checks without asking again;
|
|
@@ -206,7 +203,7 @@ from silently changing the reviewed candidate.
|
|
|
206
203
|
No automatic generation-evolution repair ships.
|
|
207
204
|
- `PLAY0479`: migrate optionality spelling with `PreserveTrivia`; document scope
|
|
208
205
|
migrates all occurrences together. Keep the `query Q => observable?` exception.
|
|
209
|
-
- Generation repairs PLAY0683/0684: [subjects, review and limits](references/mcp-tools.md#concept-generation
|
|
206
|
+
- Generation repairs PLAY0683/0684: [subjects, review and limits](references/mcp-tools.md#concept-generation).
|
|
210
207
|
- Compliance repairs PLAY0565/0653: [MCP tool guide](references/mcp-tools.md).
|
|
211
208
|
|
|
212
209
|
`propose-number-enum-members` pins an unnumbered enum to current positions.
|
|
@@ -214,14 +211,16 @@ Opt-in MCP `checks: "enum-pinning"` / `--check enum-pinning` (PLAY0671) hints at
|
|
|
214
211
|
stored enums, not correctness repairs. Arguments/review: `references/mcp-tools.md`.
|
|
215
212
|
|
|
216
213
|
Use `propose-extract-inline-event` before adding generations (canonical consent;
|
|
217
|
-
no comment loss/reverse).
|
|
214
|
+
no comment loss/reverse). The [release baseline](references/release-baseline.md):
|
|
218
215
|
admit in the release job; no baseline requires an explicit mode;
|
|
219
|
-
`eventNeverPersisted: true` cannot unfreeze admitted revisions.
|
|
220
|
-
`storedName` in ESM v16
|
|
221
|
-
shared by all generations and unique (PLAY0472).
|
|
222
|
-
|
|
216
|
+
`eventNeverPersisted: true` cannot unfreeze admitted revisions. Differing event pins carry
|
|
217
|
+
`storedName` in ESM v16. Pins are event-name identifiers,
|
|
218
|
+
shared by all generations and unique (PLAY0472). A renderer admits only the ESM versions it
|
|
219
|
+
bundles, so an older Stage can refuse v16. Stored stream `All` (even `id "All"`) refuses PLAY0273; rename without
|
|
223
220
|
that pin. Evidence/limits: [MCP tool guide](references/mcp-tools.md).
|
|
224
221
|
|
|
222
|
+
Requires Screenplay 4.153.0 or later (`screenplay --version`) for the release baseline and its `baseline` command, and 4.152.0 or later for `storedName` (ESM v16).
|
|
223
|
+
|
|
225
224
|
## Choose a readable layout
|
|
226
225
|
|
|
227
226
|
Use `recommend-layout` for size-admissible options, then review an `expand-layout`
|
|
@@ -232,14 +231,14 @@ proposal. Layout is not application semantics.
|
|
|
232
231
|
- Use one file per feature when nested features need separate review.
|
|
233
232
|
- Use one file per slice when a large model needs isolated diffs.
|
|
234
233
|
|
|
235
|
-
Compose split files with quoted imports (`import "<path or glob>"
|
|
234
|
+
Compose split files with quoted imports (`import "<path or glob>"`).
|
|
236
235
|
Each level above the slices is a barrel file: `application.play` holds `domain`
|
|
237
236
|
and imports `Shared/*.play` and each module file; a module file declares the
|
|
238
237
|
module and its features, each feature importing its folder
|
|
239
238
|
(`import "Orders/*.play"`); a slice file holds only its `slice`, because the
|
|
240
239
|
import places it in its feature. When you write or reorganize files yourself,
|
|
241
240
|
do not restate `module`/`feature` in a slice file, and do not leave a barrel
|
|
242
|
-
that declares a scope but imports nothing.
|
|
241
|
+
that declares a scope but imports nothing. `expand-layout` writes
|
|
243
242
|
import barrels and slice-only leaves, preserving sibling and interleaved member
|
|
244
243
|
order. It refuses a proposal that would change that order; without an ordering
|
|
245
244
|
root its review discloses the path-order fallback. When choosing file placement, read the
|
|
@@ -296,9 +295,9 @@ paths or diagnosing `PLAY0430`-`PLAY0434`; `read-workspace`/`read-proposal`
|
|
|
296
295
|
clean run is not a bound or executable result.
|
|
297
296
|
- Operations/`numbers exact` remain unadmitted; routes bind as v8, public
|
|
298
297
|
boundaries v9, identity/overrides/filters v10, qualifying non-route Double
|
|
299
|
-
literals v11, enum numbers v12, compliance v13 (
|
|
300
|
-
|
|
301
|
-
|
|
298
|
+
literals v11, enum numbers v12, compliance v13 (limits: command-surface
|
|
299
|
+
`references/compliance.md`). The compiler and renderer bundled in the CLI can be older than the
|
|
300
|
+
standalone tool (toolchain `SKILL.md`). Never drop or stub source contracts to bind.
|
|
302
301
|
- Distinguish authoring acceptance from `executableReady`; unsupported backend
|
|
303
302
|
capabilities are not a reason to drop source constructs or invent stubs.
|
|
304
303
|
- If execution is intended, validate with the owning downstream runtime as well.
|
|
@@ -332,7 +331,3 @@ Never invent commands, parameters, syntax nodes or downstream capabilities.
|
|
|
332
331
|
| Lifecycle, verdicts V1 to V5 and the model-first decision | `cratis-screenplay-modeling-lifecycle` |
|
|
333
332
|
| Compiler, CLI and MCP versions, diagnostics, capability tables | `cratis-screenplay-toolchain` |
|
|
334
333
|
| Event-model diagrams rather than .play source | `cratis-event-model-diagram` |
|
|
335
|
-
|
|
336
|
-
## Lineage
|
|
337
|
-
|
|
338
|
-
Read `references/provenance.md` when checking the sources or attribution of the connection and edit-route guidance: [provenance](references/provenance.md).
|
package/package/corpus/skills/cratis-screenplay-model-authoring/references/choosing-generation.md
CHANGED
|
@@ -26,5 +26,4 @@ Do not replace client-minted inputs, authorization, idempotency keys or a gaples
|
|
|
26
26
|
invoice allocator with generation. Secret generation, pattern/random/rule execution
|
|
27
27
|
and generated-concept rule consistency are not released capabilities. Preserve
|
|
28
28
|
refused rules instead of deleting them or inventing a repair.
|
|
29
|
-
|
|
30
|
-
`Documentation/screenplay/generated-values.md:70-72`.
|
|
29
|
+
Sources: `Documentation/screenplay/generated-values/choosing.md` and `Documentation/screenplay/generated-values.md` in `Cratis/Screenplay`.
|
package/package/corpus/skills/cratis-screenplay-model-authoring/references/language-reference.md
CHANGED
|
@@ -32,7 +32,7 @@ attachments, `feature`.
|
|
|
32
32
|
**Inside a feature:** `description`, `authorize`, `import "<glob>"`, nested
|
|
33
33
|
`feature`, `slice`, `contribute`, `on`/`uses` behavior attachments.
|
|
34
34
|
|
|
35
|
-
**Files
|
|
35
|
+
**Files.** `import "<path or glob>"` - quoted - imports `.play` files
|
|
36
36
|
relative to the importing file; unquoted, `import` still names a contract from
|
|
37
37
|
another bounded context. At the top level it brings in whole documents. Inside a
|
|
38
38
|
`module` or `feature` it places each imported file there, and that file's top
|
|
@@ -66,8 +66,8 @@ repeated header markers report PLAY0653 warning. Purposes declare the use/basis/
|
|
|
66
66
|
separately; see command-surface `references/compliance.md`.
|
|
67
67
|
|
|
68
68
|
Enum member `name = N` pins are unique int32 values, all members or none.
|
|
69
|
-
Unnumbered enums retain positions. Non-positional numbers bind as ESM v12
|
|
70
|
-
|
|
69
|
+
Unnumbered enums retain positions. Non-positional numbers bind as ESM v12;
|
|
70
|
+
positional pins preserve older bytes/version. Fixtures and conditions
|
|
71
71
|
still name members. Syntax, stored-number safety and consumer admission:
|
|
72
72
|
command-surface `references/enum-numbers.md`.
|
|
73
73
|
|
|
@@ -78,7 +78,7 @@ members or translating names from memory.
|
|
|
78
78
|
|
|
79
79
|
## Caller, subject and stream nodes
|
|
80
80
|
|
|
81
|
-
|
|
81
|
+
The typed syntax includes `IdentityExpressionSyntax` (`$identity`),
|
|
82
82
|
`IdentitySyntax`, `IdentityDetailSyntax`, `ClaimIdentitySourceSyntax`,
|
|
83
83
|
`QueryIdentitySourceSyntax`, `CodeIdentitySourceSyntax`, `FileIdentitySourceSyntax`.
|
|
84
84
|
`ApplicationSyntax.Identity` carries the block; query schemas before editing JSON.
|
|
@@ -87,6 +87,8 @@ are authoring-only and refuse executable binding (PLAY0268), while the block alo
|
|
|
87
87
|
does not block readiness. Claim/query sources have exactly one source and no body.
|
|
88
88
|
See command-surface `references/context.md` for key/type/gate restrictions.
|
|
89
89
|
|
|
90
|
+
Requires Screenplay 4.121.0 or later (`screenplay --version`) for `$identity` expressions, and 4.122.0 or later for the `identity` block.
|
|
91
|
+
|
|
90
92
|
`PropertySyntax.isSubject` marks an event's required unprotected scalar subject,
|
|
91
93
|
omitted from structural JSON when false. It is lineage metadata (PLAY0270), not
|
|
92
94
|
runtime subject propagation or generated C# `[Subject]`. Read-model marks are
|
|
@@ -99,7 +101,7 @@ old PLAY0268 gap. Never infer composite parts by splitting legacy scalar ids.
|
|
|
99
101
|
|
|
100
102
|
## Container dependencies and exact numbers
|
|
101
103
|
|
|
102
|
-
|
|
104
|
+
Modules and features accept `depends on <Name>`, one
|
|
103
105
|
per line. Bare targets resolve inside out (siblings, ancestor siblings, root
|
|
104
106
|
modules); qualified targets match an unambiguous trailing address. Merged files
|
|
105
107
|
accumulate each owner's declarations in file-path order; imports affect board
|
|
@@ -107,6 +109,8 @@ order, not accumulation. Dependencies are optional authoring metadata, not runti
|
|
|
107
109
|
or implementation order. See `cratis-screenplay-slice-design` `references/slicing.md`
|
|
108
110
|
for coverage diagnostics and MCP `dependency-graph` `declarations` evidence.
|
|
109
111
|
|
|
112
|
+
Requires Screenplay 4.76.0 or later (`screenplay --version`) for `depends on` container dependencies (PLAY0554).
|
|
113
|
+
|
|
110
114
|
A top-level `numbers exact` preamble opts each file into bounded decimal source
|
|
111
115
|
literals without Double rounding. All files/import barrels must agree on mode
|
|
112
116
|
(PLAY0508–PLAY0513 diagnose directive/range/mode errors). Exact mode is authorable,
|
|
@@ -124,14 +128,13 @@ not opt a Legacy root in. Change mode as a whole-tree edit (leaves and all root
|
|
|
124
128
|
options), not just a flag; fragment printing keeps the owner's mode without a
|
|
125
129
|
nested preamble.
|
|
126
130
|
|
|
127
|
-
Sources:
|
|
131
|
+
Sources: `slices.md`, `folders.md`, `ast-authoring.md`, `grammar.md` in `Documentation/screenplay/`.
|
|
128
132
|
|
|
129
133
|
## Complete model
|
|
130
134
|
|
|
131
135
|
This registration model uses an inline event and context identity rather than
|
|
132
|
-
copying the identifier into payload. It
|
|
133
|
-
|
|
134
|
-
check runs its specifications. Inline lowering
|
|
136
|
+
copying the identifier into payload. It compiles with zero source diagnostics under
|
|
137
|
+
`--warnaserror`; neither check runs its specifications. Inline lowering
|
|
135
138
|
and `optional` spelling do not themselves select a newer ESM version.
|
|
136
139
|
|
|
137
140
|
```screenplay
|
|
@@ -182,8 +185,7 @@ module Projects
|
|
|
182
185
|
|
|
183
186
|
## Source validity is not execution
|
|
184
187
|
|
|
185
|
-
The table and binding inventory below
|
|
186
|
-
probe labels; do not use them as current tool admission evidence. At 4.125.0,
|
|
188
|
+
The table and binding inventory below are a snapshot, not tool admission evidence.
|
|
187
189
|
`screenplay test` and MCP `run-specifications` expose reference execution,
|
|
188
190
|
and sources/streams/routes bind as ESM v8. Operations and exact numeric mode
|
|
189
191
|
still refuse binding. Use the installed tool, read as described in
|
|
@@ -221,18 +223,14 @@ The ESM version is selected by what a model uses, never by the author:
|
|
|
221
223
|
distinct revision property identities. Historical declarations are not migration
|
|
222
224
|
implementations; a target without migration support must reject the contract.
|
|
223
225
|
- **v5** adds keyed read-model absence assertions (`then no readmodel`).
|
|
224
|
-
- **v6**
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
responses, generated fixtures and `then returns` expectations, and is selected only by a model that
|
|
233
|
-
uses one (decision 0026). The Cratis CLI 3.28.3 bundles 4.66.0 and reports `PLAY0268`; Stage 4.24.2
|
|
234
|
-
refuses v7 with `STAGE-ESM-016` (tracked in Stage#201). Details:
|
|
235
|
-
`cratis-screenplay-command-surface`.
|
|
226
|
+
- **v6** admits reactions, captures, application triggers and the clock, hence
|
|
227
|
+
`Automation` and `Translate` slices. A compiler that stops before v6 reports these
|
|
228
|
+
constructs as `PLAY0268`. Name the tool with every bound result;
|
|
229
|
+
`cratis-screenplay-toolchain` describes the two compilers.
|
|
230
|
+
- **v7** admits generated command properties, `returns` responses, generated fixtures
|
|
231
|
+
and `then returns` expectations, and is selected only by a model that uses one. A
|
|
232
|
+
compiler or renderer that stops before v7 reports `PLAY0268` or `STAGE-ESM-016`.
|
|
233
|
+
Details: `cratis-screenplay-command-surface`.
|
|
236
234
|
|
|
237
235
|
Inline events lower to slice-owned standalone contracts and preserve equivalent
|
|
238
236
|
canonical bytes. Event `description`, `documentation` and rename-only `id` are
|
|
@@ -244,14 +242,10 @@ admitted. One refused construct blocks the whole plan, so no specification in
|
|
|
244
242
|
the model runs, including specifications that never touch it.
|
|
245
243
|
|
|
246
244
|
What binds today, what the reference execution plan refuses, what is opaque, what is
|
|
247
|
-
authorable but not executable, and what blocks binding.
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
Read-model identity below is corrected to 4.135.0; equality query filters are
|
|
253
|
-
updated to standalone 4.153.0 (admitted in 4.143.0, ESM v14):
|
|
254
|
-
explicit trailing `key` wins; otherwise single-instance queries in the owning slice
|
|
245
|
+
authorable but not executable, and what blocks binding. A bundled compiler can be older
|
|
246
|
+
than the standalone tool and refuse a row that binds below (toolchain `SKILL.md`).
|
|
247
|
+
|
|
248
|
+
Read-model identity: explicit trailing `key` wins; otherwise single-instance queries in the owning slice
|
|
255
249
|
must agree on `by`. Only with no single-instance identifier and an admitted list
|
|
256
250
|
query does conventional `*Id` inference run. Queryless views need explicit `key`.
|
|
257
251
|
See read-surface `references/named-keys.md` for the collection-key exclusion algorithm.
|
|
@@ -260,23 +254,22 @@ See read-surface `references/named-keys.md` for the collection-key exclusion alg
|
|
|
260
254
|
| --- | --- |
|
|
261
255
|
| Binds and runs in the reference runner | `StateChange`/`StateView` slices; `produces` including `when` conditions over command properties and literal tags; the portable validation rules, `matches email`, quoted `matches` patterns and `require` over command properties; declarative policies and `authorize` on modules, features, commands and keyed queries; `unique` constraints; projections as Chronicle lowers them, including variants, except the projection constructs in the next row; specifications, including `given caller`, `then denied` and `when append` |
|
|
262
256
|
| Binds, but the reference execution plan refuses it | A projection-level `remove via join`; `all` beside removals, `children` or `nested`; a `join`, `children` or `remove via join` inside `nested`; any event-context value other than the event source identity in a projection mapping or key, such as `$eventContext.occurred`, `$eventContext.sequenceNumber` or `$eventContext.causedBy.subject` (`$eventSourceId` and `$eventContext.eventSourceId` run) |
|
|
263
|
-
| Binds as ESM v6
|
|
264
|
-
| Reaction with trigger `reads` | Direct-producing (or code-bodied) reaction with `reads`: `PLAY0268` ("ESM v6 cannot protect that decision dependency"
|
|
265
|
-
| Binds as opaque code (v3); reference runner reports unsupported | Bodied reducers, bodied named rules, fenced `validate` blocks, code or file policies. A pure reducer body is the only attachment Stage
|
|
266
|
-
| Information only, never blocks
|
|
267
|
-
| Binds as ESM v7
|
|
257
|
+
| Binds as ESM v6 (`PLAY0268` on a compiler that stops before v6) | `Automation` and `Translate` slices, reactions that produce or invoke, captures, top-level `trigger`, clock, trigger and capture specifications. The standalone `screenplay test`/MCP reference route evaluates admitted v6 actions; Stage renders supported event-triggered Automation, with remaining refusals in the Stage skill's `references/admission.md` |
|
|
258
|
+
| Reaction with trigger `reads` | Direct-producing (or code-bodied) reaction with `reads`: `PLAY0268` ("ESM v6 cannot protect that decision dependency"), non-executable. Invokes-only reaction with `reads`: information only; the invoked command must declare and protect its own decision reads. Keep the `reads`; never remove them to obtain binding |
|
|
259
|
+
| Binds as opaque code (v3); reference runner reports unsupported | Bodied reducers, bodied named rules, fenced `validate` blocks, code or file policies. A pure reducer body is the only attachment Stage admits |
|
|
260
|
+
| Information only, never blocks | `persona` (report-only: `PLAY0270`, the policies it lists must exist), `authentication`, `domain`, `seed`, descriptions and `file` provenance. A persona does not block binding and does not change behavior, so state persona scope in a description or a policy the model uses |
|
|
261
|
+
| Binds as ESM v7 (`PLAY0268` on a compiler that stops before v7) | `generated` properties and `returns` responses, generated fixtures and `then returns`: bound and executed by the reference runner; a policy, rule or requirement that references a generated value is `PLAY0273`, and a generated property on a concept with validation rules is `PLAY0268`. Stage renders supported UUID/String strategies, scalar/named responses and fixtures; unsupported types/result combinations remain `-028`/`-038` |
|
|
268
262
|
| Authorable, not executable (PLAY0268) | Systems/operations, the `numbers exact` source mode (PLAY0268; exact lowering of qualifying Double literals is the admitted v11) and refusal/redelivery remain unadmitted |
|
|
269
|
-
| Concept generation strategies (ESM v15
|
|
270
|
-
| Response-name UI continuations (
|
|
271
|
-
| Collection equality filters (ESM v14
|
|
272
|
-
| Current routing and actor admission | Sources/streams and command/specification routes bind and reference-execute as v8; reaction `runs as system role` supplies the invocation actor as v10
|
|
273
|
-
| Blocks binding (`PLAY0268`) | enum/identity compliance and events combining personal or explicitly subject-scoped secret values with explicit subject marks
|
|
263
|
+
| Concept generation strategies (ESM v15) | Required scalar generatable Uuid/String concepts; concept-owned uuid/uuidv7/ulid/typeid/nanoid/bytes strategies and admitted modifiers. Strict fixture encoding; Guarded whole-source freshness rejects Concurrency with no append/retry. Rules, generated secrets, pattern/random/rule and sequence remain refused. Stage renders supported strategies: command-surface `references/generated-values-and-responses.md` |
|
|
264
|
+
| Response-name UI continuations (no ESM change) | Form submit and execute-success scopes, own failure PLAY0685, nested shadowing and outer success in inner failure; field/parameter precedence. An older bundled compiler lacks resolution; Scene runtime binding remains downstream. UI composition `references/response-continuations.md` |
|
|
265
|
+
| Collection equality filters (ESM v14) | Caller-supplied `filter name Type [optional]`, no `from`, matching a same-named scalar primitive/concept/enum read-model property with the same nominal type. AND with `by`; optional omission does not narrow, supplied null is refused. PLAY0468 covers unknown/repeated/missing required spec arguments; result rows compare by read-model/key regardless of order. Read read-surface `references/equality-filters.md` for the compiled example and renderer ceilings |
|
|
266
|
+
| Current routing and actor admission | Sources/streams and command/specification routes bind and reference-execute as v8; reaction `runs as system role` supplies the invocation actor as v10. Whole-workspace binding determines executable availability; CLI/Stage realization remains separate |
|
|
267
|
+
| Blocks binding (`PLAY0268`) | enum/identity compliance and events combining personal or explicitly subject-scoped secret values with explicit subject marks; a compiler that stops before v13 refuses all `pii`/`secret` concepts ("compliance attributes require portable data-subject semantics"), while v13 binds them and Stage renders protection; command `handler` (never binds; a command cannot declare both `produces` and `handler`, `PLAY0035`), bare `rule <Name>`, `require` or conditions over read-model paths, dates and `today` in comparisons, `$context.tenant`/claims/roles/causation in `produces`, `$env` conditions, `file` constraints, unquoted `import` of an external contract, a read model with neither explicit `key` nor unambiguous query-based identity as described above (composite keys remain unadmitted), queries with context `from` sources (typed query context is unadmitted), single-result filters (collections only), `scoped to` (opaque scope), `performer` (opaque implementation) or composite `by` blocks; optional keyed and collection queries, including caller-supplied equality filters and observable delivery, bind, `$causedBy` and templates in projections |
|
|
274
268
|
| Blocks binding (`PLAY0271`, legacy meaning) | Command `reads` and `concurrency` |
|
|
275
269
|
| Deferred (`PLAY0269`, information) | Screens, layouts, templates, forms, contributions, UI profiles, themes, behaviors and `on`/`uses` |
|
|
276
270
|
| Metadata only (`PLAY0270`, information) | `domain`, `seed`, `persona`, trigger and other descriptions, and `file` provenance on declarations |
|
|
277
271
|
|
|
278
|
-
The table is a snapshot, not a contract
|
|
279
|
-
v4.31.0 and v4.66.0 documentation): ask the binder (MCP `executable-diagnostics`
|
|
272
|
+
The table is a snapshot, not a contract: ask the binder (MCP `executable-diagnostics`
|
|
280
273
|
view) rather than extrapolating from it. Neither `screenplay` nor
|
|
281
274
|
`cratis screenplay validate` binds, so a clean validation says nothing about this table. Retain valid source that the
|
|
282
275
|
backend cannot represent rather than downgrading it to a stub. MCP `run-specifications` executes the admitted reference subset, not embedded
|
|
@@ -285,12 +278,12 @@ runtime admission.
|
|
|
285
278
|
|
|
286
279
|
## Not in the language yet
|
|
287
280
|
|
|
288
|
-
|
|
281
|
+
A reaction trigger may declare
|
|
289
282
|
`reads <View> [as <alias>] [by <trigger value>]` (see
|
|
290
|
-
`cratis-screenplay-captures-and-reactions`).
|
|
283
|
+
`cratis-screenplay-captures-and-reactions`). A direct-producing
|
|
291
284
|
reaction with `reads` fails binding (`PLAY0268`); an invokes-only reaction reports
|
|
292
285
|
the reads as information, and the invoked command must protect its own
|
|
293
|
-
dependencies.
|
|
286
|
+
dependencies.
|
|
294
287
|
|
|
295
288
|
Do not infer availability from an accepted decision. Event generations and typed
|
|
296
289
|
diagnostic repairs now exist; see the event and MCP references rather than the
|
|
@@ -300,14 +293,14 @@ Code attachment/source-map support likewise does not prove code round-trip
|
|
|
300
293
|
execution equivalence.
|
|
301
294
|
|
|
302
295
|
Operations remain authorable/unadmitted (PLAY0268). Named event sources/streams
|
|
303
|
-
and routes bind and reference-execute as v8
|
|
296
|
+
and routes bind and reference-execute as v8; reaction identity as v10.
|
|
304
297
|
Use standalone `screenplay test` or MCP `run-specifications` for a reference
|
|
305
298
|
verdict, and independently check CLI/Stage admission. Never drop a contract to bind.
|
|
306
|
-
Generated values and `returns` are
|
|
299
|
+
Generated values and `returns` are not in this group: they bind as ESM v7.
|
|
307
300
|
Protected reads and `derive`/`provide` (not admitted by any supported ESM version) have no documented
|
|
308
|
-
syntax
|
|
309
|
-
remain unavailable here. Event `subject` is report-only authoring metadata
|
|
310
|
-
|
|
301
|
+
syntax: do not teach or invent one. Affected-instance declarations and query paging/sorting/change-set delivery
|
|
302
|
+
remain unavailable here. Event `subject` is report-only authoring metadata;
|
|
303
|
+
public events/origin are admitted as ESM v9 (not provider realization).
|
|
311
304
|
Purpose declarations, references and processing records are authoring metadata,
|
|
312
305
|
not retention or lawful-processing enforcement.
|
|
313
306
|
|
|
@@ -19,11 +19,8 @@
|
|
|
19
19
|
The working loop for the session that owns the model connection: connect, orient,
|
|
20
20
|
choose an edit route, propose, review, run specifications, apply, verify. Tool-by-tool arguments and
|
|
21
21
|
refusals are in the [MCP tool guide](mcp-tools.md); verdict names (V1 to V5) are
|
|
22
|
-
defined by `cratis-screenplay-modeling-lifecycle`.
|
|
23
|
-
|
|
24
|
-
and probed against the standalone 4.66.0 tool and, for the connection behavior,
|
|
25
|
-
4.63.1. Cratis CLI 3.28.2 bundles Screenplay 4.66.0 (probed: 29 tools and the same views);
|
|
26
|
-
Cratis CLI before 3.28.2 bundled 4.60.1, whose tool set and views differ: read `tools/list`.
|
|
22
|
+
defined by `cratis-screenplay-modeling-lifecycle`. Discover the installed tool set and views with
|
|
23
|
+
`tools/list`: the CLI-bundled server can differ from the standalone one.
|
|
27
24
|
|
|
28
25
|
## Connect
|
|
29
26
|
|
|
@@ -39,7 +36,7 @@ Cratis CLI before 3.28.2 bundled 4.60.1, whose tool set and views differ: read `
|
|
|
39
36
|
`.screenplay` metadata.
|
|
40
37
|
4. Read `tools/list` schemas once per connection; never hard-code counts or
|
|
41
38
|
argument lists. MCP-Apps hosts also expose `visualize-model`.
|
|
42
|
-
5.
|
|
39
|
+
5. (Requires Screenplay 4.81.0 or later.) A startup root may switch to the same relative model folder in a
|
|
43
40
|
registered Git worktree of its repository. `open-workspace.path` accepts the
|
|
44
41
|
checkout or exact model folder. Shared Git directory and registration
|
|
45
42
|
back-pointer must agree physically; unrelated/malformed/unregistered roots,
|
|
@@ -49,19 +46,20 @@ Cratis CLI before 3.28.2 bundled 4.60.1, whose tool set and views differ: read `
|
|
|
49
46
|
worktree is removed, explicitly return to the startup root; if the startup
|
|
50
47
|
root is removed, start a new connection. No simultaneous named workspaces.
|
|
51
48
|
|
|
52
|
-
###
|
|
49
|
+
### Dynamic roots and the workaround
|
|
53
50
|
|
|
54
|
-
|
|
55
|
-
client's roots
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
**not** avoid it, because the error is sent before `open-workspace` runs.
|
|
51
|
+
A server started **without** a root binds one on first use: `open-workspace.path`, then the
|
|
52
|
+
client's `roots/list` root, then a working-directory or fallback model folder. Avoid depending on
|
|
53
|
+
that by fixing the root at launch (the forms in step 1). The `cratis/screenplay` profile
|
|
54
|
+
registration fixes it in an installed project, and the CLI locates the model itself, so no model
|
|
55
|
+
directory has to exist.
|
|
60
56
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
57
|
+
Requires Screenplay 4.63.2 or later (standalone, or a Cratis CLI 3.28.2 or later that bundles it)
|
|
58
|
+
for a server without a root facing a client that advertises roots. Before it, the server read the
|
|
59
|
+
roots reply from the wrong member and answered with an error with `id: null` immediately after
|
|
60
|
+
`notifications/initialized`, before any tool call; real hosts treat that as fatal and drop the
|
|
61
|
+
connection. Passing `open-workspace.path` does **not** avoid it, because the error is sent before
|
|
62
|
+
`open-workspace` runs. On such a tool, fix the root at launch.
|
|
65
63
|
|
|
66
64
|
## Who owns the connection
|
|
67
65
|
|
|
@@ -108,15 +106,15 @@ the server sends `roots/list` and serves `tools/list` after the reply).
|
|
|
108
106
|
`find-modeling-smells` as questions needing a domain consequence, and compare
|
|
109
107
|
generated/curated exported snapshots with `semantic-diff`.
|
|
110
108
|
Before a property change, use `find-references`/`dependencies`
|
|
111
|
-
`kind: "Property"`
|
|
109
|
+
`kind: "Property"` and `Owner.member` or historical event
|
|
112
110
|
`Owner.generationN.member`. Follow direct mapping counterparts one query at a
|
|
113
111
|
time; inspect incomplete/ambiguous evidence and `reasons`. `complete: false`
|
|
114
112
|
is not an empty successful result. Shapes/roles: [property links](property-links.md).
|
|
115
|
-
|
|
113
|
+
Inspect concept `generate` with `declaration-details`
|
|
116
114
|
`kind: "Concept"`, `view: "summary"`: `generation.executable.status` distinguishes
|
|
117
115
|
`admitted`, `refused`, `notAssessed`; empty local error codes do not prove binding.
|
|
118
|
-
|
|
119
|
-
Fields and tagged evidence: [concept generation](mcp-tools.md#concept-generation
|
|
116
|
+
A bundle that predates this summary also lacks the entropy repairs.
|
|
117
|
+
Fields and tagged evidence: [concept generation](mcp-tools.md#concept-generation).
|
|
120
118
|
3. `open-workspace` and keep `revision` and `catalogRevision`. Opening writes
|
|
121
119
|
nothing. With `identityPersistence: "root-local-on-apply"` the identities file
|
|
122
120
|
is written only by `apply`.
|
|
@@ -144,7 +142,7 @@ the server sends `roots/list` and serves `tools/list` after the reply).
|
|
|
144
142
|
diagnostics, report V3 as not binding-ready, and never drop or stub the
|
|
145
143
|
construct. The server's own guidance is to apply such a proposal only when
|
|
146
144
|
the user accepts a model that does not run yet.
|
|
147
|
-
7.
|
|
145
|
+
7. Run `run-specifications` with the
|
|
148
146
|
retained `proposalId` before `apply`. This read-only V4 route runs the candidate,
|
|
149
147
|
including retained identities and planned renames, without applying, refreshing
|
|
150
148
|
from disk or discarding it. `read-proposal view: "semantic-diff"` is static
|
|
@@ -191,9 +189,9 @@ the server sends `roots/list` and serves `tools/list` after the reply).
|
|
|
191
189
|
A text rename plus an `id "<old name>"` pin preserves authored stored-name intent
|
|
192
190
|
but leaves the identity catalog pointing at the old declaration; the next
|
|
193
191
|
`apply` can mint new identities silently. Use the identity-preserving operation.
|
|
194
|
-
|
|
195
|
-
that does not repair a stale catalog or admit the model to
|
|
196
|
-
|
|
192
|
+
Differing event pins carry `storedName` in ESM v16;
|
|
193
|
+
that does not repair a stale catalog or admit the model to a renderer that stops before
|
|
194
|
+
v16. Evidence and target limits: `mcp-tools.md`.
|
|
197
195
|
5. **A session without MCP** (a subagent, or a harness with no server) carries out a
|
|
198
196
|
requested rename by text with `id "<Old>"` pins and an identity note when no
|
|
199
197
|
`.screenplay/identities.json` exists. When it exists, it does not edit
|
|
@@ -209,7 +207,7 @@ the server sends `roots/list` and serves `tools/list` after the reply).
|
|
|
209
207
|
| Inline event extraction | `produces event ...` to a declared event | `propose-extract-inline-event` |
|
|
210
208
|
| Parser-invalid document | no editable handles | `propose-source` `replace-document` with corrected source, or typed `propose-ast` document replacement |
|
|
211
209
|
| Unadmitted constructs | systems/operations, the `numbers exact` source mode, refusal/redelivery | reviewed Authoring `propose-source` (whole documents) or `propose-ast` (typed edits); preserve intent and report PLAY0268 |
|
|
212
|
-
| Admitted source/stream routing | ESM v8
|
|
210
|
+
| Admitted source/stream routing | ESM v8 | typed `propose-ast`; `propose-rename` repairs proven route references; target admission separate |
|
|
213
211
|
|
|
214
212
|
PLAY0683/PLAY0684 repairs raise NanoID size or bytes count to at least 64 random
|
|
215
213
|
bits using the concept subject (possibly across documents). PLAY0683 can instead
|
|
@@ -220,11 +218,11 @@ and `read-workspace view: "repairs"`, then `propose-repair` with both revisions
|
|
|
220
218
|
Neither action supports fix-all or pinned evidence. A concept change affects all
|
|
221
219
|
uses; uniqueness changes append-time behavior. Derived regex, matches/checksum
|
|
222
220
|
repairs and rule-proof status await phase 2b-2; details and source citations are in
|
|
223
|
-
[concept generation](mcp-tools.md#concept-generation
|
|
221
|
+
[concept generation](mcp-tools.md#concept-generation).
|
|
224
222
|
|
|
225
223
|
## Self-describing identity migration refusals
|
|
226
224
|
|
|
227
|
-
|
|
225
|
+
Read `identityMigrationIssues` on rejected proposals
|
|
228
226
|
(conflict `InvalidIdentityMigration`). Each entry names typed `address.kind` and
|
|
229
227
|
`address.parts`, and the input `arguments` it belongs in: `semanticRenames`,
|
|
230
228
|
`eventRenames`, `retiredSemanticAddresses`, `retiredEventAddresses`. Stale renames
|
|
@@ -233,7 +231,9 @@ not an instruction to retire. Include both event-contract and semantic assignmen
|
|
|
233
231
|
and all assigned descendants. Rename/apply messages name the same offending addresses.
|
|
234
232
|
Supply exactly the entries required for the intended change instead of retrying
|
|
235
233
|
by trial and error. Re-read actual revisions when stale; never clear the catalog.
|
|
236
|
-
Authority:
|
|
234
|
+
Authority: `mcp/reference.md`, `mcp/authoring-tools.md`.
|
|
235
|
+
|
|
236
|
+
Requires Screenplay 4.89.0 or later (`screenplay --version`) for `identityMigrationIssues`.
|
|
237
237
|
|
|
238
238
|
## Identity state (`.screenplay/identities.json`)
|
|
239
239
|
|
|
@@ -253,7 +253,7 @@ Authority: v4.127.0 `mcp/reference.md`, `mcp/authoring-tools.md`.
|
|
|
253
253
|
|
|
254
254
|
### Root discovery conflicts
|
|
255
255
|
|
|
256
|
-
|
|
256
|
+
Default discovery preserves `.screenplay/identities.json`
|
|
257
257
|
or `pending.json` on the ancestor-or-self path from the offered project to the
|
|
258
258
|
discovered model. Empty metadata folders/backups do not count. With several
|
|
259
259
|
state roots, the nearest the offered project wins. `rootBindingConflict` in
|
|
@@ -320,10 +320,5 @@ rejects the plan.
|
|
|
320
320
|
|
|
321
321
|
## Provenance
|
|
322
322
|
|
|
323
|
-
Proposal execution: Screenplay v4.145.0
|
|
324
|
-
`Source/DotNET/Screenplay.Mcp/McpWorkspaces.Specifications.cs:12-79` and
|
|
325
|
-
`Source/DotNET/Tool/ModelTest.cs:14-108`; `Documentation/screenplay/mcp/authoring-tools.md:500-535`.
|
|
326
|
-
|
|
327
323
|
The structure of this loop (ownership, edit-request shape, failure handling) is
|
|
328
|
-
adapted from the project's earlier event-modeling toolkit draft
|
|
329
|
-
against the Screenplay sources named above. See [provenance](provenance.md).
|
|
324
|
+
adapted from the project's earlier event-modeling toolkit draft.
|