@cratis/pi 7.51.0 → 7.51.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package/corpus/skills/cratis-application-slice-conformance/SKILL.md +8 -7
- package/package/corpus/skills/cratis-application-slice-conformance/references/checklists.md +1 -1
- package/package/corpus/skills/cratis-application-slice-conformance/references/provenance.md +2 -2
- package/package/corpus/skills/cratis-application-slice-specifications/SKILL.md +15 -19
- package/package/corpus/skills/cratis-application-slice-specifications/references/provenance.md +1 -1
- package/package/corpus/skills/cratis-application-slice-specifications/references/query-and-decision-scenarios.md +8 -6
- package/package/corpus/skills/cratis-arc-react-page/SKILL.md +10 -14
- package/package/corpus/skills/cratis-arc-react-page/references/dialogs.md +4 -2
- package/package/corpus/skills/cratis-arc-react-page/references/from-screenplay.md +7 -7
- package/package/corpus/skills/cratis-arc-react-page/references/provenance.md +2 -2
- package/package/corpus/skills/cratis-arc-react-page/references/queries-and-commands.md +1 -1
- package/package/corpus/skills/cratis-arc-react-page/verification.json +0 -2
- package/package/corpus/skills/cratis-chronicle-reactor/SKILL.md +15 -19
- package/package/corpus/skills/cratis-chronicle-reactor/references/provenance.md +1 -1
- package/package/corpus/skills/cratis-chronicle-reactor/references/specifications.md +10 -8
- package/package/corpus/skills/cratis-chronicle-read-model-specifications/SKILL.md +7 -7
- package/package/corpus/skills/cratis-chronicle-read-model-specifications/references/provenance.md +3 -3
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/SKILL.md +30 -28
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/automation-patterns.md +8 -8
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/cases-to-specify.md +4 -4
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/effects-and-idempotency.md +3 -1
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/provenance.md +1 -14
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/public-events-and-direction.md +6 -4
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/realization-and-gap-fill.md +5 -6
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/todo-list-example.md +11 -12
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/translate-example.md +3 -3
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/translation-patterns.md +2 -2
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/SKILL.md +22 -20
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/complete-examples.md +1 -1
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/invocation-identity.md +9 -10
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/refusals-and-redelivery.md +1 -1
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/specifying-triggers-and-clock.md +3 -4
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/verification.json +0 -4
- package/package/corpus/skills/cratis-screenplay-command-surface/SKILL.md +16 -15
- package/package/corpus/skills/cratis-screenplay-command-surface/references/compliance.md +17 -17
- package/package/corpus/skills/cratis-screenplay-command-surface/references/context.md +8 -8
- package/package/corpus/skills/cratis-screenplay-command-surface/references/enum-numbers.md +8 -12
- package/package/corpus/skills/cratis-screenplay-command-surface/references/generated-values-and-responses.md +31 -29
- package/package/corpus/skills/cratis-screenplay-command-surface/references/inline-events.md +5 -5
- package/package/corpus/skills/cratis-screenplay-command-surface/references/operations.md +2 -2
- package/package/corpus/skills/cratis-screenplay-command-surface/references/policy-persona-seed.md +3 -3
- package/package/corpus/skills/cratis-screenplay-command-surface/references/shop-generation.md +10 -10
- package/package/corpus/skills/cratis-screenplay-command-surface/references/validate-rules.md +9 -7
- package/package/corpus/skills/cratis-screenplay-command-surface/verification.json +2 -5
- package/package/corpus/skills/cratis-screenplay-discovery/SKILL.md +14 -15
- package/package/corpus/skills/cratis-screenplay-discovery/references/facilitation.md +1 -1
- package/package/corpus/skills/cratis-screenplay-discovery/references/personas-and-causes.md +1 -1
- package/package/corpus/skills/cratis-screenplay-discovery/references/plotting-and-handoff.md +2 -2
- package/package/corpus/skills/cratis-screenplay-discovery/references/provenance.md +3 -3
- package/package/corpus/skills/cratis-screenplay-event-modeling/SKILL.md +13 -17
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/naming-primitives.md +2 -2
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/nine-steps.md +2 -2
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/parsed-not-runnable.md +11 -12
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/provenance.md +2 -2
- package/package/corpus/skills/cratis-screenplay-event-modeling/verification.json +0 -4
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/evidence-table-template.md +4 -4
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/generate-notes.md +34 -21
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/generated-recovery.md +18 -12
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/prologue-safety.md +7 -7
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/provenance.md +1 -1
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/rule-modeling.md +4 -4
- package/package/corpus/skills/cratis-screenplay-model-authoring/SKILL.md +24 -29
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/choosing-generation.md +1 -2
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/language-reference.md +44 -51
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-loop.md +31 -36
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-tools.md +56 -63
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/model-notes.md +11 -10
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/property-links.md +15 -15
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/release-baseline.md +25 -21
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/screen-authoring-workflow.md +16 -31
- package/package/corpus/skills/cratis-screenplay-model-authoring/verification.json +5 -4
- package/package/corpus/skills/cratis-screenplay-model-review/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-model-review/references/checklist.md +3 -3
- package/package/corpus/skills/cratis-screenplay-model-review/references/provenance.md +3 -4
- package/package/corpus/skills/cratis-screenplay-model-review/references/public-keys-and-routes.md +1 -1
- package/package/corpus/skills/cratis-screenplay-model-review/references/report-template.md +7 -5
- package/package/corpus/skills/cratis-screenplay-model-review/references/worked-example.md +2 -2
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/SKILL.md +11 -12
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/code-reading-and-tokens.md +2 -2
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/identity-and-edits.md +1 -1
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/opt-in.md +8 -10
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/provenance.md +6 -6
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/stop-or-assume.md +2 -2
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/verdicts-and-modes.md +1 -1
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/vocabulary-map.md +3 -3
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/worked-example.md +1 -1
- package/package/corpus/skills/cratis-screenplay-projections/SKILL.md +11 -22
- package/package/corpus/skills/cratis-screenplay-projections/references/pdl-grammar.md +1 -1
- package/package/corpus/skills/cratis-screenplay-projections/verification.json +0 -1
- package/package/corpus/skills/cratis-screenplay-read-surface/SKILL.md +16 -29
- package/package/corpus/skills/cratis-screenplay-read-surface/references/equality-filters.md +14 -18
- package/package/corpus/skills/cratis-screenplay-read-surface/references/guarded-actions.md +5 -7
- package/package/corpus/skills/cratis-screenplay-read-surface/references/named-keys.md +6 -6
- package/package/corpus/skills/cratis-screenplay-read-surface/references/provenance.md +1 -1
- package/package/corpus/skills/cratis-screenplay-read-surface/verification.json +1 -2
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/SKILL.md +18 -19
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/delivery-protocol.md +2 -2
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/gap-fill-handoff.md +6 -6
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/provenance.md +4 -4
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/renderability-gate.md +5 -6
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/worked-example.md +2 -3
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/verification.json +1 -1
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/SKILL.md +13 -15
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/invoicing-dues-design.md +1 -1
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/invoicing-dues-example.md +2 -2
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/provenance.md +4 -6
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-catalogue.md +4 -4
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-examples.md +3 -3
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/spec-forms-by-mode.md +11 -9
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/view-and-story-specs.md +5 -5
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/verification.json +0 -1
- package/package/corpus/skills/cratis-screenplay-slice-design/SKILL.md +11 -13
- package/package/corpus/skills/cratis-screenplay-slice-design/references/read-model-design.md +4 -4
- package/package/corpus/skills/cratis-screenplay-slice-design/references/rule-layers.md +6 -4
- package/package/corpus/skills/cratis-screenplay-slice-design/references/slicing.md +4 -2
- package/package/corpus/skills/cratis-screenplay-slice-design/references/worked-example.md +1 -1
- package/package/corpus/skills/cratis-screenplay-specifications/SKILL.md +37 -40
- package/package/corpus/skills/cratis-screenplay-specifications/references/actions-beyond-commands.md +10 -15
- package/package/corpus/skills/cratis-screenplay-specifications/references/child-ordering.md +14 -12
- package/package/corpus/skills/cratis-screenplay-specifications/references/concept-rules.md +1 -1
- package/package/corpus/skills/cratis-screenplay-specifications/references/examples-and-routes.md +9 -10
- package/package/corpus/skills/cratis-screenplay-specifications/references/generated-fixtures.md +5 -6
- package/package/corpus/skills/cratis-screenplay-specifications/references/reactions-and-cascades.md +8 -9
- package/package/corpus/skills/cratis-screenplay-specifications/references/source-notes.md +13 -16
- package/package/corpus/skills/cratis-screenplay-specifications/references/whitespace-rules.md +15 -13
- package/package/corpus/skills/cratis-screenplay-specifications/verification.json +4 -9
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +29 -29
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/chronicle-boundaries.md +18 -15
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/consistency-and-concurrency.md +16 -15
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution-example.md +1 -1
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution.md +19 -17
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/provenance.md +3 -3
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-patterns.md +1 -1
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/streams-example.md +2 -2
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/verification.json +2 -3
- package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-subset.md +2 -0
- package/package/corpus/skills/cratis-screenplay-toolchain/references/pdl-example.md +1 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract-exceptions.json +0 -28
- package/package/corpus/skills/cratis-screenplay-ui-composition/SKILL.md +21 -26
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/guarded-interactions.md +3 -3
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/provenance.md +1 -1
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/response-continuations.md +10 -10
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/screen-composition-contract.md +23 -30
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/worked-flow.md +4 -5
- package/package/corpus/skills/cratis-screenplay-ui-composition/verification.json +1 -5
- package/package.json +1 -1
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/product-sources.md +0 -15
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/provenance.md +0 -13
|
@@ -20,16 +20,15 @@ root. Never put a model under `.cratis/` or hand-copy it between repositories.
|
|
|
20
20
|
`cratis ai install` manages `.cratis/ai/`, never model files. Keep explanatory
|
|
21
21
|
Markdown in project documentation; `.play` is the single flow model.
|
|
22
22
|
|
|
23
|
-
##
|
|
23
|
+
## Product sources
|
|
24
24
|
|
|
25
25
|
Tool versions: toolchain `SKILL.md`; sources below. Compilation is not execution.
|
|
26
26
|
|
|
27
|
-
-
|
|
28
|
-
- `
|
|
29
|
-
-
|
|
30
|
-
-
|
|
31
|
-
-
|
|
32
|
-
- `4.148.0`: v15 generation strategies/strict fixtures/freshness; Stage `4.89.1` realization: `references/generated-values-and-responses.md`; shop: `references/shop-generation.md`.
|
|
27
|
+
- Examples and executable boundaries; inline events, repairs, canonical `optional`.
|
|
28
|
+
- `handler`, code attachments, `persona` and compliance binding (`Semantics/SemanticModelBinder*.cs`, `Diagnostics/DiagnosticCodes.cs`).
|
|
29
|
+
- Generated-value and response rules (ESM v7).
|
|
30
|
+
- Identity and compliance syntax (`identity.md`, `context.md`, `concepts.md`, `purposes.md`, `events.md`, `diagnostics.md`); v13 compliance admission: `references/compliance.md`.
|
|
31
|
+
- v15 generation strategies, strict fixtures and freshness; Stage realization: `references/generated-values-and-responses.md`; shop: `references/shop-generation.md`.
|
|
33
32
|
|
|
34
33
|
"Parses" and "runs" are different claims. The executable profile, and what
|
|
35
34
|
each construct binds to, is in the `cratis-screenplay-model-authoring` language
|
|
@@ -154,9 +153,9 @@ view name when that view is read once.
|
|
|
154
153
|
arrow of the event model; nothing checks at append time that the state is still
|
|
155
154
|
current. The executable model rejects every `reads` and `concurrency` with
|
|
156
155
|
`PLAY0271`, and `require` over a read-model path with `PLAY0268`, until
|
|
157
|
-
decision-consistent reads exist
|
|
158
|
-
`concurrency` block does not fix this: its scope is not the read's watermark, and
|
|
159
|
-
|
|
156
|
+
decision-consistent reads exist. Adding a
|
|
157
|
+
`concurrency` block does not fix this: its scope is not the read's watermark, and the
|
|
158
|
+
combination is planned to become an error once protected reads ship.
|
|
160
159
|
When a rule depends on state:
|
|
161
160
|
|
|
162
161
|
- if it is uniqueness, declare a `unique` constraint (below);
|
|
@@ -164,7 +163,7 @@ When a rule depends on state:
|
|
|
164
163
|
must enforce it consistently. Do not claim the model guarantees it.
|
|
165
164
|
|
|
166
165
|
Do not use `reads` to fetch data the caller could supply. A composite-key view's `by` block is
|
|
167
|
-
`PLAY0268` (
|
|
166
|
+
`PLAY0268` (read-surface `references/named-keys.md`).
|
|
168
167
|
|
|
169
168
|
## `validate`
|
|
170
169
|
|
|
@@ -209,7 +208,7 @@ A continuation line extends the clause.
|
|
|
209
208
|
`A and B`. Write the operator explicitly so the reader does not have to know this.
|
|
210
209
|
|
|
211
210
|
- Several `authorize` lines on one command or query combine with AND, in authored
|
|
212
|
-
order.
|
|
211
|
+
order.
|
|
213
212
|
- `authorize` on an enclosing `module` or `feature` is ANDed with the command's
|
|
214
213
|
own gate; an `or` inside one gate never bypasses another gate.
|
|
215
214
|
- Evaluation short-circuits left to right, module → feature → command. If it
|
|
@@ -246,7 +245,7 @@ choosing or omitting `for` on a production, or fixing `PLAY0469`-`PLAY0478`.
|
|
|
246
245
|
Conditions over command properties and constants bind; each is evaluated
|
|
247
246
|
independently, and when all are false the command is accepted with no events.
|
|
248
247
|
Compare an enumeration with a member bare (`status == sent`) or quoted
|
|
249
|
-
(`status == "sent"`); the bare form binds
|
|
248
|
+
(`status == "sent"`); the bare form binds, so quote it when a model
|
|
250
249
|
must bind on an older version.
|
|
251
250
|
Excerpt:
|
|
252
251
|
|
|
@@ -261,7 +260,7 @@ produces when isProForma == true
|
|
|
261
260
|
Routes bind as ESM v8; production `stream Source.Stream` overrides
|
|
262
261
|
select v10. Read toolchain [routes](../cratis-screenplay-toolchain/references/production-routes-and-filters.md)
|
|
263
262
|
and [source/stream declarations](../cratis-screenplay-toolchain/references/sources-and-streams.md).
|
|
264
|
-
|
|
263
|
+
A stored stream `All` / `id "All"` refuses PLAY0273;
|
|
265
264
|
rename and history-migration guidance is in that reference.
|
|
266
265
|
`public event X` is a local export; `event X from "store"` is a locally declared,
|
|
267
266
|
unverified foreign shape. Commands never produce public events. Read
|
|
@@ -298,9 +297,11 @@ to the routed scope. This does not make command `reads` protected.
|
|
|
298
297
|
UUID generation/responses bind as v7; serialized concept `generate` selects v15:
|
|
299
298
|
UUIDv7/ULID/TypeID/NanoID/bytes, strict fixtures and whole-source freshness.
|
|
300
299
|
Reuse rejects Concurrency, no append/retry. Generated rules/secrets and pattern/random/rule
|
|
301
|
-
remain refused.
|
|
300
|
+
remain refused.
|
|
302
301
|
Read [references/generated-values-and-responses.md](references/generated-values-and-responses.md)
|
|
303
302
|
for `generated`, `generate`, `returns`, strict fixtures/freshness and renderer limits.
|
|
303
|
+
|
|
304
|
+
Requires Screenplay 4.147.0 or later (`screenplay --version`) for concept generation strategies (ESM v15), 4.150.0 or later for the stored stream `All` refusal, 4.141.0 or later for compliance (ESM v13) and 4.139.0 or later for non-positional enum numbers (ESM v12).
|
|
304
305
|
Complete example: `cratis-screenplay-toolchain/references/generated-responses-example.md`.
|
|
305
306
|
Routes and realization: `cratis-screenplay-toolchain/references/sources-and-streams.md`.
|
|
306
307
|
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
## Contents
|
|
7
7
|
|
|
8
8
|
- Classify the value on its concept
|
|
9
|
-
- Recover classification from C#
|
|
9
|
+
- Recover classification from C#
|
|
10
10
|
- Declare the use separately
|
|
11
11
|
- Identify the person, not the stream
|
|
12
12
|
|
|
13
|
-
Authority: Screenplay
|
|
13
|
+
Authority: Screenplay `concepts.md`, `events.md`,
|
|
14
14
|
`Semantics/SemanticModelBinder.Compliance.cs` and `SemanticModelValidator.Compliance.cs`;
|
|
15
|
-
processing-purpose guidance
|
|
15
|
+
processing-purpose guidance in `purposes.md`. These declarations do not establish lawful
|
|
16
16
|
processing or enforce retention. Check provider support separately.
|
|
17
17
|
|
|
18
18
|
## Classify the value on its concept
|
|
@@ -61,8 +61,8 @@ new event generation.
|
|
|
61
61
|
|
|
62
62
|
C# provider mapping: `pii` → `[PII]`; `secret` → `[Encrypted]` + `[NotAudited]`;
|
|
63
63
|
`pii secret` → `[PII]` only (Chronicle refuses `[PII]` with `[Encrypted]`, CHR0053).
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
Screenplay binds optional concept `compliance` as ESM v13,
|
|
65
|
+
carrying markers, qualifiers and scopes. It applies
|
|
66
66
|
through command, event, read-model,
|
|
67
67
|
composite and response type references, including collection elements. Bare `pii`
|
|
68
68
|
writes `{"personal":{}}`; `secret scope namespace` writes
|
|
@@ -71,7 +71,7 @@ wins and no secret scope is stored; reasons stay report-only PLAY0270.
|
|
|
71
71
|
Unmarked models keep their exact executable bytes and revision. The reference
|
|
72
72
|
evaluator runs marked models with unchanged outcomes but tests neither encryption
|
|
73
73
|
nor erasure. Consumers must explicitly admit v13 and realize the protection;
|
|
74
|
-
CLI
|
|
74
|
+
A CLI whose compiler and Stage admit v13 render protection. Stage
|
|
75
75
|
renders `[PII]` or `[Encrypted]` + `[NotAudited]` on the concept, honoring secret
|
|
76
76
|
namespace/global scope; personal classification wins. Every protected command input,
|
|
77
77
|
including personal data and nested/collection uses, also gets property-level
|
|
@@ -81,9 +81,8 @@ already refuses the enum/identity shapes below). Non-text `secret` concepts (Int
|
|
|
81
81
|
refuse `STAGE-ESM-041`; `pii secret` uses PII and is exempt. No explicit subject lineage renders.
|
|
82
82
|
The semantic Host now protects values at rest and releases them on read, but existing stores keep
|
|
83
83
|
earlier plaintext events. Reference/specification success does not prove storage protection.
|
|
84
|
-
Never remove protection to fit a tool. Sources:
|
|
85
|
-
`
|
|
86
|
-
`Documentation/reference/compliance-rendering.md:16-70`.
|
|
84
|
+
Never remove protection to fit a tool. Sources: Stage
|
|
85
|
+
`Documentation/reference/compliance-rendering.md`.
|
|
87
86
|
|
|
88
87
|
Enum and identity concepts still refuse PLAY0268 at binding only (identity means
|
|
89
88
|
event-source/stream identity); source validation alone cannot report this binder diagnostic.
|
|
@@ -93,15 +92,17 @@ including nested composite and collection uses: subject lineage is not admitted.
|
|
|
93
92
|
In v13 the personal-data subject is the event source. Remove a mark only when that
|
|
94
93
|
source truly is the intended subject, not merely to pass binding.
|
|
95
94
|
|
|
96
|
-
## Recover classification from C#
|
|
95
|
+
## Recover classification from C#
|
|
97
96
|
|
|
98
97
|
Reverse generation is not the C# provider mapping above. Source authority: Arc
|
|
99
|
-
`
|
|
98
|
+
`Documentation/backend/csharp/generating-a-screenplay.md` (Operational
|
|
100
99
|
secrets), `Source/DotNET/Screenplay/Emission/Concepts/ConceptSyntaxBuilder.cs`
|
|
101
100
|
and `Source/DotNET/Screenplay/Analysis/Types/PersonalDataMarkings.cs`.
|
|
102
|
-
SP0058 to SP0060
|
|
103
|
-
|
|
104
|
-
|
|
101
|
+
SP0058 to SP0060 report partial or member-specific markings; SP0061 to SP0063 report the unstated
|
|
102
|
+
scope and related cases. A CLI-bundled Arc.Screenplay can predate SP0061 to SP0063, in which
|
|
103
|
+
case the CLI shows none of them; check the generator package actually loaded.
|
|
104
|
+
|
|
105
|
+
Requires Arc.Screenplay 22.70.0 or later for SP0061 to SP0063.
|
|
105
106
|
|
|
106
107
|
- Both `[Encrypted]` and `[NotAudited]` must be on the concept to recover
|
|
107
108
|
`secret`. Partial or member-specific markings report SP0058 (Information),
|
|
@@ -112,9 +113,8 @@ none of SP0061 to SP0063, so the CLI shows none of them; check the generator pac
|
|
|
112
113
|
Set `ScreenplayOptions.AuthoringOnlyConstructs = true` (CLI adapter flag
|
|
113
114
|
`--authoring-only-constructs`) to state `secret scope namespace` or
|
|
114
115
|
`secret scope global` in the concept body. Subject stays implicit. Scope
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
or the CLI bundle.
|
|
116
|
+
is syntax-only on the generator's compiler. Protected concepts instead select ESM v13
|
|
117
|
+
in Screenplay; this does not upgrade the generator or the CLI bundle.
|
|
118
118
|
`pii secret` gets no scope because the providers ignore it.
|
|
119
119
|
- A property or positional constructor parameter marked `[PII]` on a non-concept
|
|
120
120
|
type reports SP0062 (Information); the marking is not stated and no concept
|
|
@@ -51,14 +51,14 @@ time: `CommandAs<T>()`, `ArgumentsAs<T>()`, `ArtifactAs<T>()`, `ValueAs<T>()`, a
|
|
|
51
51
|
`StateAs<T>()`/`EventAs<T>()` on the reducer context. A payload of another type
|
|
52
52
|
throws `ContextPayloadTypeMismatch`.
|
|
53
53
|
|
|
54
|
-
|
|
54
|
+
Typed contexts before generation (`CommandValidation`,
|
|
55
55
|
`ConceptValidation`, `RulePredicate`, `PolicyPredicate`) expose **input properties
|
|
56
56
|
only**. Generated values exist only after authorization/validation, so they are
|
|
57
57
|
absent from those shapes. A generated identifier's policy subject is `unavailable`,
|
|
58
58
|
not the eventual id; never authorize against it. The handler CommandContext retains
|
|
59
59
|
the full command shape, including generated properties. Sidecars belong to the same
|
|
60
60
|
compilation/revision as their requirements, not a shape borrowed from another model.
|
|
61
|
-
Source: `
|
|
61
|
+
Source: `Documentation/screenplay/context.md`.
|
|
62
62
|
|
|
63
63
|
## The values they carry
|
|
64
64
|
|
|
@@ -100,18 +100,18 @@ An unknown `$context.` path is reported, so a typo does not silently become null
|
|
|
100
100
|
|
|
101
101
|
## Caller paths and identity details
|
|
102
102
|
|
|
103
|
-
Checked
|
|
103
|
+
Checked: `$identity.<property>` is the same caller value as
|
|
104
104
|
`$context.identity.<property>`. Prefer `$identity` in new mappings; the older root
|
|
105
|
-
is supported, not deprecated.
|
|
106
|
-
|
|
107
|
-
`$identity.<property>` mapping as a raw expression (`PLAY0268`). Those checks used standalone 4.127.0;
|
|
108
|
-
they are not current parser claims; compiler versions are covered in toolchain `SKILL.md`. Check current renderer
|
|
105
|
+
is supported, not deprecated. An older CLI-bundled compiler can reject a top-level `identity` block (`PLAY0001`) and read a
|
|
106
|
+
`$identity.<property>` mapping as a raw expression (`PLAY0268`); compiler versions are covered in toolchain `SKILL.md`. Check current renderer
|
|
109
107
|
admission separately before choosing caller mappings. Built-ins are `id`, `name`, `userName`,
|
|
110
108
|
`isAuthenticated`, `roles`, `claims.<name>` (everything after `claims.` is opaque).
|
|
111
109
|
Bare `$identity` reports PLAY0152; unknown properties report PLAY0155. Only
|
|
112
110
|
`$identity.id`/`.name`/`.userName` bind in portable `produces` mappings, exactly
|
|
113
111
|
like the older forms; roles, authentication status and claims still report PLAY0268.
|
|
114
112
|
|
|
113
|
+
Requires Screenplay 4.121.0 or later (`screenplay --version`) for `$identity`; before it use `$context.identity`.
|
|
114
|
+
|
|
115
115
|
A top-level `identity` block declares additional typed caller details:
|
|
116
116
|
|
|
117
117
|
```screenplay
|
|
@@ -143,7 +143,7 @@ Declarations alone do not block executable readiness. Executable reads of
|
|
|
143
143
|
`$identity.<detail>` report PLAY0268; `$context.identity` stays built-ins only.
|
|
144
144
|
`scoped to` is an opaque scope name, not a detail reference. PLAY0633–0646 diagnose
|
|
145
145
|
source/header/type/cardinality errors; there are no automatic identity repairs.
|
|
146
|
-
Authority:
|
|
146
|
+
Authority: `identity.md`, `context.md`, `diagnostics.md`.
|
|
147
147
|
|
|
148
148
|
## Production metadata is not a context expression
|
|
149
149
|
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
|
|
4
4
|
# Explicit enum member numbers
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
Non-positional executable numbers bind
|
|
7
|
+
as ESM v12 (Requires Screenplay 4.139.0 or later; authoring of numbers needs 4.137.0 or later). The model owns member identity, not the renderer.
|
|
8
8
|
|
|
9
9
|
```screenplay
|
|
10
10
|
domain EnumNumbers
|
|
@@ -77,17 +77,13 @@ length mismatch, duplicates, non-int32 entries or a positional array (non-canoni
|
|
|
77
77
|
Programmatic validation enforces the same contract. Specifications still compare
|
|
78
78
|
names; numbers are neither alternative fixture values nor flags.
|
|
79
79
|
|
|
80
|
-
Consumers must **explicitly admit v12**.
|
|
81
|
-
|
|
82
|
-
and negative, `-0` as 0; unnumbered enums keep declaration order). Stage first
|
|
83
|
-
admitted v12 in 4.76.0. Do not remove enum pins to fit an older consumer;
|
|
80
|
+
Consumers must **explicitly admit v12**. A renderer that admits v12 renders explicit numbers as `Member = N` (sparse
|
|
81
|
+
and negative, `-0` as 0; unnumbered enums keep declaration order). Do not remove enum pins to fit an older consumer;
|
|
84
82
|
report its admission gap. See toolchain `references/renderable-subset.md`.
|
|
85
83
|
|
|
86
|
-
Sources
|
|
87
|
-
`interoperability.md`, `diagnostics.md`, `mcp/authoring-tools.md`,
|
|
84
|
+
Sources: `Documentation/screenplay/concepts.md`,
|
|
85
|
+
`interoperability.md`, `diagnostics.md`, `mcp/authoring-tools.md`,
|
|
88
86
|
`Semantics/Versions.cs`, `SemanticModelValidator.EnumMemberNumbers.cs` and the
|
|
89
87
|
source-backed `EnumMemberNumbersCorpus.V12` (under `Source/DotNET/`). Consumer
|
|
90
|
-
|
|
91
|
-
`
|
|
92
|
-
`Source/Rendering.Cratis/Semantics/SemanticVersionFeatures.cs:100`,
|
|
93
|
-
`SemanticEnumMembers.cs:15-26`, `SemanticCommonArtifactRenderer.cs:56-65`.
|
|
88
|
+
admission: Stage `Source/Rendering.Cratis/Semantics/SemanticVersionFeatures.cs`,
|
|
89
|
+
`SemanticEnumMembers.cs`, `SemanticCommonArtifactRenderer.cs`.
|
|
@@ -8,21 +8,21 @@
|
|
|
8
8
|
- Inspect and edit generation through MCP
|
|
9
9
|
- Version and freshness
|
|
10
10
|
- Responses and pre-generation boundaries
|
|
11
|
-
- What CLI
|
|
12
|
-
|
|
13
|
-
`generated` properties and `returns` bind/reference-execute
|
|
14
|
-
Concept generation strategies and whole-source freshness
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
Sources: Cratis/Screenplay `
|
|
21
|
-
`generated-values/strategies.md
|
|
22
|
-
`Source/DotNET/Screenplay/Semantics/SemanticModelBinder.Generation.cs
|
|
23
|
-
Cratis/
|
|
24
|
-
`
|
|
25
|
-
|
|
11
|
+
- What the CLI and Stage realize
|
|
12
|
+
|
|
13
|
+
`generated` properties and `returns` bind/reference-execute (ESM v7).
|
|
14
|
+
Concept generation strategies and whole-source freshness bind as ESM v15. The CLI and Stage
|
|
15
|
+
render the supported strategies, scalar/named responses, fixtures and `then returns` when their
|
|
16
|
+
bundled compiler and renderer admit v15. Binding is not rendering.
|
|
17
|
+
|
|
18
|
+
Requires Screenplay 4.147.0 or later (`screenplay --version`) for concept generation strategies and whole-source freshness (ESM v15).
|
|
19
|
+
|
|
20
|
+
Sources: Cratis/Screenplay `Documentation/screenplay/generated-values.md`,
|
|
21
|
+
`generated-values/strategies.md`,
|
|
22
|
+
`Source/DotNET/Screenplay/Semantics/SemanticModelBinder.Generation.cs`;
|
|
23
|
+
Cratis/Stage
|
|
24
|
+
`Documentation/reference/generated-values-rendering.md`.
|
|
25
|
+
Only the released generation phase is taught here.
|
|
26
26
|
|
|
27
27
|
## Choosing a strategy
|
|
28
28
|
|
|
@@ -77,7 +77,7 @@ remove classification or pretend a random String is a credential contract.
|
|
|
77
77
|
|
|
78
78
|
## Inspect and edit generation through MCP
|
|
79
79
|
|
|
80
|
-
|
|
80
|
+
A concept `generation` summary and entropy repairs are available.
|
|
81
81
|
Use `screenplay_declaration_details` with `kind: "Concept"`, `view: "summary"`:
|
|
82
82
|
only authored `generate` gets a block, with strategy, set modifiers,
|
|
83
83
|
preview-only arguments, `entropyBits`, `entropyUnknownReason` when null,
|
|
@@ -102,12 +102,14 @@ exactly one production maps it to exactly one event property. Both require
|
|
|
102
102
|
individual review and `CanonicalizeTouchedDocuments`, with no pinned evidence.
|
|
103
103
|
Length changes affect all concept uses; uniqueness changes append-time behavior.
|
|
104
104
|
Derived regex, matches/checksum repairs and rule-proof status are not shipped.
|
|
105
|
-
CLI
|
|
106
|
-
supports existing typed concept proposals.
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
105
|
+
A CLI-bundled MCP can lack this summary and these repairs; it still
|
|
106
|
+
supports existing typed concept proposals.
|
|
107
|
+
|
|
108
|
+
Requires Screenplay 4.149.0 or later (`screenplay --version`) for the concept `generation` summary and entropy repairs. Full fields, mapping limits and tagged
|
|
109
|
+
source evidence: [MCP generation guide](../../cratis-screenplay-model-authoring/references/mcp-tools.md#concept-generation).
|
|
110
|
+
Sources: Cratis/Screenplay `Documentation/screenplay/generated-values.md`,
|
|
111
|
+
`Source/DotNET/Screenplay.Mcp/McpGenerationDetails.cs`,
|
|
112
|
+
`Source/DotNET/Screenplay/Workspaces/WorkspaceGenerationRepairs.cs`.
|
|
111
113
|
|
|
112
114
|
## Version and freshness
|
|
113
115
|
|
|
@@ -151,20 +153,20 @@ and [generation strategies](../../cratis-screenplay-toolchain/references/generat
|
|
|
151
153
|
- A generated identifier is the implicit inline production destination; a plain
|
|
152
154
|
destination-less `produces` retains a separate allocation channel. A fixture
|
|
153
155
|
never satisfies that channel.
|
|
154
|
-
- Screenplay
|
|
155
|
-
continuations without changing ESM.
|
|
156
|
-
resolution, and Stage
|
|
157
|
-
binding. See UI composition [response continuations](../../cratis-screenplay-ui-composition/references/response-continuations.md).
|
|
156
|
+
- Screenplay resolves response names in form submit and execute-success
|
|
157
|
+
continuations without changing ESM. An older CLI compiler lacks that
|
|
158
|
+
resolution, and Stage does not provide Scene runtime continuation
|
|
159
|
+
binding. Requires Screenplay 4.148.0 or later (`screenplay --version`) for the resolution. See UI composition [response continuations](../../cratis-screenplay-ui-composition/references/response-continuations.md).
|
|
158
160
|
|
|
159
|
-
## What CLI
|
|
161
|
+
## What the CLI and Stage realize
|
|
160
162
|
|
|
161
163
|
Stage emits strategy-specific `IGeneratable<T>.New()` factories over Fundamentals
|
|
162
|
-
7.24.0 (via the Arc scaffold pin in Stage's `references/rendered-application.md`). v15 generated destinations use explicit
|
|
164
|
+
7.24.0 or later (via the Arc scaffold pin in Stage's `references/rendered-application.md`). v15 generated destinations use explicit
|
|
163
165
|
`EventsWithConcurrencyScopes` with `BeforeFirst` whole-source scopes; Chronicle
|
|
164
166
|
checks atomically at append: a batch's scopes are checked once against the state before
|
|
165
167
|
the batch, all or nothing, and a storage retry that renumbers the append checks them again. Generated rejection specs assert
|
|
166
168
|
`ValidationResultReason.ConcurrencyViolation`, not Arc's message text. This is
|
|
167
|
-
Stage's explicit realization, not a claim that Arc
|
|
169
|
+
Stage's explicit realization, not a claim that Arc delivers the same guard.
|
|
168
170
|
Time-based factories use wall clock, not command-receipt timestamps.
|
|
169
171
|
|
|
170
172
|
| Refusal | Still unsupported |
|
|
@@ -7,7 +7,7 @@ Cratis prefers inline `produces event <Name>` for a generation-1 event owned by
|
|
|
7
7
|
one command. Keep a standalone `event` when several commands or reactions share
|
|
8
8
|
it, and use plain `produces <Name>` with explicit `for <identifier>` on commands.
|
|
9
9
|
Reactions cannot declare inline events. This is a corpus convention, not a
|
|
10
|
-
compiler requirement. Screenplay
|
|
10
|
+
compiler requirement. Screenplay `Documentation/screenplay/commands.md`
|
|
11
11
|
documents the destination defaults and calls plain omission legacy omission behavior.
|
|
12
12
|
|
|
13
13
|
This complete example declares its payload and mappings together:
|
|
@@ -51,12 +51,12 @@ in event context. Extract an inline declaration when another producer needs it;
|
|
|
51
51
|
read-only consumers alone do not require extraction. Preserve a shipped contract
|
|
52
52
|
rather than mechanically removing an existing identity field.
|
|
53
53
|
|
|
54
|
-
**Stage caveat:** rendered Arc commands ignore production `for` (
|
|
55
|
-
|
|
54
|
+
**Stage caveat:** rendered Arc commands ignore production `for` (see Screenplay
|
|
55
|
+
`commands.md`). Verify target routing separately.
|
|
56
56
|
|
|
57
57
|
Keep conditional `produces when` events standalone: its next line must be a
|
|
58
|
-
plain event name, not `event <Name>` (Screenplay
|
|
59
|
-
`Source/DotNET/Screenplay/Parsing/ProducesParser.cs
|
|
58
|
+
plain event name, not `event <Name>` (Screenplay
|
|
59
|
+
`Source/DotNET/Screenplay/Parsing/ProducesParser.cs`). Also retain plain
|
|
60
60
|
production when a site-specific tag must not become an event-type tag.
|
|
61
61
|
|
|
62
62
|
Inline declarations are slice-owned contracts, usable by other consumers.
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
A top-level `system` names an external business system. A slice-owned `operation`
|
|
15
15
|
declares exactly one `uses <System>`, typed inputs, optional description and
|
|
16
16
|
execute/compensate phases. Operations and their specification steps are
|
|
17
|
-
**authoring-only
|
|
17
|
+
**authoring-only**: compile acceptance is not execution;
|
|
18
18
|
binding refuses the whole model with PLAY0268. Source: released `operations.md`.
|
|
19
19
|
|
|
20
20
|
`produces operation <Name>` declares an inline slice-owned operation with typed
|
|
@@ -43,7 +43,7 @@ must preserve its production sequence, mappings, comments and attachment paths.
|
|
|
43
43
|
|
|
44
44
|
## Specification intent
|
|
45
45
|
|
|
46
|
-
This complete authoring-only model compiles with `--warnaserror
|
|
46
|
+
This complete authoring-only model compiles with `--warnaserror`.
|
|
47
47
|
`screenplay test` intentionally returns exit 3/unbound with PLAY0268; it proves
|
|
48
48
|
no failure/compensation behavior today:
|
|
49
49
|
|
package/package/corpus/skills/cratis-screenplay-command-surface/references/policy-persona-seed.md
CHANGED
|
@@ -31,8 +31,8 @@ A `persona` is authoring metadata: the binder reports it as information `PLAY027
|
|
|
31
31
|
|
|
32
32
|
## Policy negation
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
form
|
|
34
|
+
`not <condition>` is a portable ESM v7 policy-condition
|
|
35
|
+
form, not a named-policy operator in `authorize`. It can negate
|
|
36
36
|
atoms/groups, not an opaque inline/file implementation. Precedence is `not`,
|
|
37
37
|
then `and`, then `or`; parentheses override grouping. Double negation restores
|
|
38
38
|
a known value, not an unknown target.
|
|
@@ -49,7 +49,7 @@ Opaque predicates reached in authored short-circuit order return unsupported,
|
|
|
49
49
|
never false or permission under negation. Binding warns with PLAY0546 when a
|
|
50
50
|
negated claim's target is optional, non-string, or a subject without a command
|
|
51
51
|
identifier. This C# semantic check does not come from ordinary editor validation.
|
|
52
|
-
Source: `
|
|
52
|
+
Source: `Documentation/screenplay/policies.md`.
|
|
53
53
|
|
|
54
54
|
## `seed`
|
|
55
55
|
|
package/package/corpus/skills/cratis-screenplay-command-surface/references/shop-generation.md
CHANGED
|
@@ -14,18 +14,18 @@ encodings, entropy, MCP edits, fixtures and freshness.
|
|
|
14
14
|
|
|
15
15
|
**Context-dependent generation is not released in Screenplay.** The OrderId below
|
|
16
16
|
is time-ordered TypeID, not Arc's received-time/tenant factory contract; Stage
|
|
17
|
-
|
|
17
|
+
emits a wall-clock `New()`. Passed-through GenerationContext in Arc source
|
|
18
18
|
recovery describes that strategy shape, not equivalent clock/tenant semantics.
|
|
19
|
-
Context-member/rule recovery stays in code
|
|
19
|
+
Context-member/rule recovery stays in code.
|
|
20
20
|
|
|
21
21
|
The shop's ApiKey remains a **secret**. In .NET its factory is `Bytes(32)` and its
|
|
22
22
|
concept is `[NotAudited]`. It is never an identifier (event-source IDs are plaintext
|
|
23
23
|
metadata); a separate `ApiKeyId` identifies the key. Executable secret generation is **not released in
|
|
24
|
-
Screenplay
|
|
24
|
+
Screenplay**. The declaration below preserves classification without
|
|
25
25
|
adding `generate bytes 32` or a generated command property. No API-key issuance
|
|
26
26
|
behavior is claimed; retain it as an explicit gap/owning implementation contract.
|
|
27
27
|
|
|
28
|
-
This complete reference-executable model
|
|
28
|
+
This complete reference-executable model compiles with the standalone tool:
|
|
29
29
|
|
|
30
30
|
```screenplay
|
|
31
31
|
concept CustomerId : String
|
|
@@ -88,10 +88,10 @@ sequence allocation and secret generation stay explicit upstream gaps.
|
|
|
88
88
|
|
|
89
89
|
## Tagged evidence
|
|
90
90
|
|
|
91
|
-
Screenplay `
|
|
92
|
-
`Documentation/screenplay/generated-values.md
|
|
93
|
-
`Documentation/screenplay/concepts.md
|
|
94
|
-
`Source/DotNET/Screenplay/Semantics/SemanticModelBinder.Generation.cs
|
|
95
|
-
Stage `
|
|
96
|
-
Arc `
|
|
91
|
+
Screenplay `Documentation/screenplay/generated-values/choosing.md`,
|
|
92
|
+
`Documentation/screenplay/generated-values.md`,
|
|
93
|
+
`Documentation/screenplay/concepts.md` (header secret classification),
|
|
94
|
+
`Source/DotNET/Screenplay/Semantics/SemanticModelBinder.Generation.cs`.
|
|
95
|
+
Stage `Documentation/reference/generated-values-rendering.md`.
|
|
96
|
+
Arc `Documentation/backend/csharp/generating-a-screenplay.md`.
|
|
97
97
|
Sources for the released .NET context/secret helpers are in the linked shop reference.
|
package/package/corpus/skills/cratis-screenplay-command-surface/references/validate-rules.md
CHANGED
|
@@ -14,11 +14,13 @@
|
|
|
14
14
|
| `all > <v>` / `all >= <v>` | `lines.quantity all > 0` |
|
|
15
15
|
| `rule <Name>` | `orgNumber rule BeAValidOrganizationNumber` |
|
|
16
16
|
|
|
17
|
-
## `not empty` means non-blank text
|
|
17
|
+
## `not empty` means non-blank text
|
|
18
18
|
|
|
19
19
|
On text, `not empty` rejects null, empty text and whitespace-only text; at least
|
|
20
20
|
one non-whitespace character is required. Concept and command property rules
|
|
21
|
-
have the same meaning in **every ESM version
|
|
21
|
+
have the same meaning in **every ESM version**.
|
|
22
|
+
|
|
23
|
+
Requires Screenplay 4.151.0 or later (`screenplay --version`) for the Unicode `not empty` correction.
|
|
22
24
|
The rule does not trim or normalize the value: `" a "` passes unchanged.
|
|
23
25
|
Whitespace is Unicode `White_Space` (.NET `char.IsWhiteSpace`): U+0009–U+000D,
|
|
24
26
|
U+0020, U+0085, U+00A0, U+1680, U+2000–U+200A, U+2028, U+2029, U+202F,
|
|
@@ -38,10 +40,10 @@ A standalone pass is not proof that a bundled compiler or renderer has adopted
|
|
|
38
40
|
this correction. Complete exercised model:
|
|
39
41
|
[whitespace rule specifications](../../cratis-screenplay-specifications/references/whitespace-rules.md).
|
|
40
42
|
|
|
41
|
-
Sources: Cratis/Screenplay
|
|
42
|
-
`Source/DotNET/Screenplay/Semantics/Execution/SemanticEvaluator.cs
|
|
43
|
-
`Documentation/screenplay/commands.md
|
|
44
|
-
folder
|
|
43
|
+
Sources: Cratis/Screenplay
|
|
44
|
+
`Source/DotNET/Screenplay/Semantics/Execution/SemanticEvaluator.cs`,
|
|
45
|
+
`Documentation/screenplay/commands.md`, `concepts.md` in the same
|
|
46
|
+
folder.
|
|
45
47
|
|
|
46
48
|
## Rules whose logic is code
|
|
47
49
|
|
|
@@ -61,7 +63,7 @@ A bodied rule or fenced block on a validation, rule or policy binds as opaque co
|
|
|
61
63
|
implementation. Two exceptions never bind: the command `handler`, and a `file`
|
|
62
64
|
constraint (the binder records the requirement, then rejects it with `PLAY0268`;
|
|
63
65
|
only `unique` constraints bind).
|
|
64
|
-
Stage
|
|
66
|
+
Stage renders pure reducer transitions and opaque policy bodies, but refuses command and
|
|
65
67
|
concept code validations and rule predicates (STAGE-ESM-005): those are gap-fill code. Prefer a
|
|
66
68
|
declarative rule when one can say it. What binds and what the executable model rejects (Date and
|
|
67
69
|
DateTime comparisons, nested-path rules): `cratis-screenplay-toolchain` `references/executable-subset.md`.
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
{ "kind": "play-compiles" },
|
|
7
7
|
{ "kind": "skill-contains", "value": "screenplay_declaration_details", "file": "references/generated-values-and-responses.md" },
|
|
8
8
|
{ "kind": "skill-contains", "value": "do not hand-edit the text", "file": "references/generated-values-and-responses.md" },
|
|
9
|
-
{ "kind": "skill-contains", "value": "CLI
|
|
9
|
+
{ "kind": "skill-contains", "value": "A CLI-bundled MCP can lack this summary", "file": "references/generated-values-and-responses.md" },
|
|
10
10
|
{ "kind": "skill-contains", "value": "optional concept `compliance` as ESM v13", "file": "references/compliance.md" },
|
|
11
11
|
{ "kind": "skill-contains", "value": "PLAY0268 at binding only", "file": "references/compliance.md" },
|
|
12
12
|
{ "kind": "skill-contains", "value": "reasons stay report-only PLAY0270", "file": "references/compliance.md" },
|
|
13
13
|
{ "kind": "skill-contains", "value": "`STAGE-ESM-040`", "file": "references/compliance.md" },
|
|
14
|
-
{ "kind": "skill-contains", "value": "CLI
|
|
14
|
+
{ "kind": "skill-contains", "value": "A CLI whose compiler and Stage admit v13", "file": "references/compliance.md" },
|
|
15
15
|
{ "kind": "skill-contains", "value": "Enum and identity", "file": "references/compliance.md" },
|
|
16
16
|
{ "kind": "skill-contains", "value": "PLAY0653", "file": "references/compliance.md" },
|
|
17
17
|
{ "kind": "skill-contains", "value": "personal` is an alias of `pii", "file": "references/compliance.md" },
|
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
{ "kind": "skill-contains", "value": "--check purposes", "file": "references/compliance.md" },
|
|
20
20
|
{ "kind": "skill-contains", "value": "PLAY0633–0646", "file": "references/context.md" },
|
|
21
21
|
{ "kind": "skill-contains", "value": "The block is **authoring metadata**", "file": "references/context.md" },
|
|
22
|
-
{ "kind": "skill-contains", "value": "main `fd18129`" },
|
|
23
22
|
{ "kind": "skill-contains", "value": "produces event ProjectRenamed", "file": "references/inline-events.md" },
|
|
24
23
|
{ "kind": "skill-contains", "value": "name ProjectName = name", "file": "references/inline-events.md" },
|
|
25
24
|
{ "kind": "skill-contains", "value": "In ESM v2+, it inherits a sibling production's resolved\ndestination through the command destination default", "file": "references/inline-events.md" },
|
|
@@ -97,8 +96,6 @@
|
|
|
97
96
|
{ "kind": "skill-contains", "value": "Generated values are not request inputs", "file": "references/generated-values-and-responses.md" },
|
|
98
97
|
{ "kind": "skill-contains", "value": "Generated-concept validation rules\nand compliance markers, including generated secrets, remain refused.", "file": "references/generated-values-and-responses.md" },
|
|
99
98
|
{ "kind": "skill-contains", "value": "Only acceptance has a response", "file": "references/generated-values-and-responses.md" },
|
|
100
|
-
{ "kind": "skill-contains", "value": "STAGE-ESM-028/029", "file": "references/generated-values-and-responses.md" },
|
|
101
|
-
{ "kind": "skill-contains", "value": "4.68.0" },
|
|
102
99
|
{ "kind": "skill-contains", "value": "whole source", "file": "references/generated-values-and-responses.md" },
|
|
103
100
|
{ "kind": "skill-contains", "value": "`Concurrency`", "file": "references/generated-values-and-responses.md" },
|
|
104
101
|
{ "kind": "skill-contains", "value": "PLAY0682", "file": "references/generated-values-and-responses.md" },
|
|
@@ -43,26 +43,25 @@ syntax and tool commands in `cratis-screenplay-toolchain`.
|
|
|
43
43
|
`references/document-intake.md` (facts file, certainty marks, exact figures, contradictions, a
|
|
44
44
|
coverage pass, the blueprint summary).
|
|
45
45
|
|
|
46
|
-
##
|
|
46
|
+
## Product sources
|
|
47
47
|
|
|
48
|
-
Tool versions are covered in `cratis-screenplay-toolchain` `SKILL.md`.
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
and decision 0045:40-79; tool sources: model-authoring `references/model-notes.md`.
|
|
48
|
+
Tool versions are covered in `cratis-screenplay-toolchain` `SKILL.md`.
|
|
49
|
+
Model notes use Screenplay `Documentation/screenplay/model-notes.md`;
|
|
50
|
+
tool sources: model-authoring `references/model-notes.md`.
|
|
51
|
+
Requires Screenplay 4.144.0 or later (`screenplay --version`) for model notes.
|
|
53
52
|
|
|
54
53
|
| Fact used here | Source |
|
|
55
54
|
| --- | --- |
|
|
56
|
-
| Persona syntax, report-only, policies must be declared | Screenplay `
|
|
57
|
-
| Description order; authored/import board order and order-preserving MCP layouts | Screenplay `
|
|
58
|
-
| Single-line and fenced `description` (`FencedText`) | `
|
|
59
|
-
| `<Type>[]`, shapes must be declared;
|
|
60
|
-
| `then denied`, `given caller`, `then error` | `
|
|
61
|
-
| PII on an event-source id is rejected by Chronicle (CHR0034); nullable event properties warn (CHR0012) | Chronicle `
|
|
62
|
-
|
|
|
55
|
+
| Persona syntax, report-only, policies must be declared | Screenplay `Documentation/screenplay/personas.md` |
|
|
56
|
+
| Description order; authored/import board order and order-preserving MCP layouts | Screenplay `Documentation/screenplay/grammar.md`, `folders.md`, `imports.md` |
|
|
57
|
+
| Single-line and fenced `description` (`FencedText`) | `Documentation/screenplay/slices.md#descriptions`, `grammar.md` |
|
|
58
|
+
| `<Type>[]`, shapes must be declared; `pii` and `reason` on concepts | `Documentation/screenplay/events.md`, `concepts.md` |
|
|
59
|
+
| `then denied`, `given caller`, `then error` | `Documentation/screenplay/specifications.md` |
|
|
60
|
+
| PII on an event-source id is rejected by Chronicle (CHR0034); nullable event properties warn (CHR0012) | Chronicle `Source/Clients/DotNET.CodeAnalysis/DiagnosticIds.cs` |
|
|
61
|
+
| Bare `pii` and `secret` on a concept bind as ESM v13; legacy `@`-prefixed markers are deprecated (PLAY0565); enum/identity compliance fails binding (PLAY0268); current markers are in `cratis-screenplay-command-surface` | `Source/DotNET/Screenplay/Semantics/SemanticModelBinder.Concepts.cs` |
|
|
63
62
|
|
|
64
63
|
Every complete `screenplay` fence in this skill compiles with the standalone compiler
|
|
65
|
-
|
|
64
|
+
(`--warnaserror`).
|
|
66
65
|
|
|
67
66
|
## Interview phase
|
|
68
67
|
|
|
@@ -132,7 +131,7 @@ Never put secrets or personal data in note text; `.screenplay/notes.json` is com
|
|
|
132
131
|
two business facts that make it meaningful. A simple state transition may carry no payload
|
|
133
132
|
beyond its identity: do not pad events with fields just to reach a count. Domain names; `<Type>[]` for collections (declare the `type`); a
|
|
134
133
|
`concept` for a value with its own meaning; classify personal data on the concept with
|
|
135
|
-
bare `pii` and a reason now; operational secrets use `secret
|
|
134
|
+
bare `pii` and a reason now; operational secrets use `secret`.
|
|
136
135
|
Either blocks binding (PLAY0268); record the gap, never drop protection.
|
|
137
136
|
Ask what use, lawful basis, retention, recipient/transfer and erasure needs the
|
|
138
137
|
data serves; declare those in a `purpose`, not a concept reason. Special/criminal
|
|
@@ -57,7 +57,7 @@ in notes. See "Evidence and privacy" in SKILL.md.
|
|
|
57
57
|
5. Per workflow give the happy path, the decision points and the terminal facts in a few lines.
|
|
58
58
|
6. Propose the next step: the next workflow, or `cratis-screenplay-slice-design` for this one.
|
|
59
59
|
7. Update STATE.md (phase, status, carry-forward); keep durable rationale in fenced Markdown
|
|
60
|
-
`documentation`, summaries in `description`.
|
|
60
|
+
`documentation`, summaries in `description`. Canonical printing retains
|
|
61
61
|
documentation on its owner; MCP exposes it, but it changes no `modelRevision` and
|
|
62
62
|
reaches no rendered code. Inspect dropped comments after canonicalizing edits.
|
|
63
63
|
|
|
@@ -64,7 +64,7 @@ into exactly one of these:
|
|
|
64
64
|
plus a `then denied` specification using `given caller as <Persona>` for a
|
|
65
65
|
synthesized witness, or an explicit effective-gate caller (`cratis-screenplay-scenario-coverage`). Every command and query
|
|
66
66
|
under an inherited module or feature `authorize` gets its own denial spec. Ownership
|
|
67
|
-
against a text, Uuid, Date or DateTime subject renders
|
|
67
|
+
against a text, Uuid, Date or DateTime subject renders; other subjects are STAGE-ESM-015: note it.
|
|
68
68
|
2. **Gap or target requirement.** The check depends on stored state ("only the requester may
|
|
69
69
|
withdraw") or cannot be gated today. Record it as a gap with its target enforcement for
|
|
70
70
|
`cratis-screenplay-streams-and-consistency`; it is not enforcement and not a passed denial.
|