@cratis/pi 7.48.2 → 7.48.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package/corpus/agents/backend-developer.md +1 -1
- package/package/corpus/agents/slice-implementer.md +2 -2
- package/package/corpus/harnesses/copilot/instructions/application-profile.instructions.md +3 -3
- package/package/corpus/harnesses/copilot/instructions/csharp.instructions.md +3 -1
- package/package/corpus/harnesses/copilot/instructions/glossary.instructions.md +3 -3
- package/package/corpus/harnesses/copilot/instructions/profiles.instructions.md +1 -1
- package/package/corpus/harnesses/copilot/instructions/vertical-slices.instructions.md +6 -3
- package/package/corpus/prompts/add-projection.prompt.md +2 -1
- package/package/corpus/prompts/add-reducer.prompt.md +6 -4
- package/package/corpus/rules/application-profile.md +3 -3
- package/package/corpus/rules/csharp.md +3 -1
- package/package/corpus/rules/glossary.md +3 -3
- package/package/corpus/rules/profiles.md +1 -1
- package/package/corpus/rules/vertical-slices.md +6 -3
- package/package/corpus/skills/cratis-application-slice-conformance/SKILL.md +2 -2
- package/package/corpus/skills/cratis-chronicle-client-dotnet/SKILL.md +16 -33
- package/package/corpus/skills/cratis-chronicle-client-dotnet/references/discovery.md +92 -7
- package/package/corpus/skills/cratis-chronicle-event-modeling/SKILL.md +1 -1
- package/package/corpus/skills/cratis-chronicle-projection/SKILL.md +18 -10
- package/package/corpus/skills/cratis-chronicle-read-model/SKILL.md +46 -18
- package/package/corpus/skills/cratis-chronicle-read-model-specifications/SKILL.md +32 -14
- package/package/corpus/skills/cratis-chronicle-reducer/SKILL.md +194 -38
- package/package/corpus/skills/cratis-event-model-diagram/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/SKILL.md +4 -4
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/audit-format.md +1 -1
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/automation-patterns.md +3 -3
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/cases-to-specify.md +1 -1
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/provenance.md +2 -2
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/public-events-and-direction.md +2 -2
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/todo-list-example.md +1 -1
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/SKILL.md +6 -6
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/invocation-identity.md +3 -3
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/product-sources.md +1 -1
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/specifying-triggers-and-clock.md +1 -1
- package/package/corpus/skills/cratis-screenplay-command-surface/SKILL.md +3 -3
- package/package/corpus/skills/cratis-screenplay-command-surface/references/compliance.md +1 -1
- package/package/corpus/skills/cratis-screenplay-command-surface/references/context.md +1 -1
- package/package/corpus/skills/cratis-screenplay-command-surface/references/enum-numbers.md +1 -1
- package/package/corpus/skills/cratis-screenplay-delivery-planning/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-delivery-planning/references/slice-counting.md +1 -1
- package/package/corpus/skills/cratis-screenplay-discovery/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-event-modeling/SKILL.md +3 -3
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/parsed-not-runnable.md +2 -2
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/chronicle-observations.md +1 -1
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/generate-notes.md +4 -5
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/generated-recovery.md +1 -1
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/prologue-safety.md +1 -1
- package/package/corpus/skills/cratis-screenplay-model-authoring/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/language-reference.md +4 -4
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-tools.md +3 -3
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/model-notes.md +1 -1
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/screen-authoring-workflow.md +1 -1
- package/package/corpus/skills/cratis-screenplay-model-review/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/stop-or-assume.md +1 -1
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/verdicts-and-modes.md +1 -1
- package/package/corpus/skills/cratis-screenplay-projections/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-read-surface/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-read-surface/references/provenance.md +2 -2
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/SKILL.md +3 -3
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/drift-and-ledger.md +1 -1
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/gap-fill-handoff.md +2 -2
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/renderability-gate.md +2 -2
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/SKILL.md +2 -2
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/provenance.md +2 -2
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-catalogue.md +1 -1
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/spec-forms-by-mode.md +5 -5
- package/package/corpus/skills/cratis-screenplay-slice-design/SKILL.md +2 -2
- package/package/corpus/skills/cratis-screenplay-slice-design/references/worked-example.md +1 -1
- package/package/corpus/skills/cratis-screenplay-specifications/SKILL.md +3 -3
- package/package/corpus/skills/cratis-screenplay-specifications/references/examples-and-routes.md +2 -2
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +4 -4
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/boundaries.md +1 -1
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/chronicle-boundaries.md +1 -1
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/consistency-and-concurrency.md +2 -2
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution.md +1 -1
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-patterns.md +2 -2
- package/package/corpus/skills/cratis-screenplay-toolchain/SKILL.md +42 -61
- package/package/corpus/skills/cratis-screenplay-toolchain/references/automation-translate-example.md +1 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/references/cheat-sheet-example.md +7 -9
- package/package/corpus/skills/cratis-screenplay-toolchain/references/cheat-sheet.md +15 -18
- package/package/corpus/skills/cratis-screenplay-toolchain/references/diagnostics.md +33 -53
- package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-example.md +1 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-subset.md +82 -93
- package/package/corpus/skills/cratis-screenplay-toolchain/references/generated-responses-example.md +4 -5
- package/package/corpus/skills/cratis-screenplay-toolchain/references/generation-strategies-example.md +1 -2
- package/package/corpus/skills/cratis-screenplay-toolchain/references/preferred-syntax.md +5 -9
- package/package/corpus/skills/cratis-screenplay-toolchain/references/production-routes-and-filters.md +7 -16
- package/package/corpus/skills/cratis-screenplay-toolchain/references/renderable-subset.md +38 -92
- package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract-exceptions.json +4 -11
- package/package/corpus/skills/cratis-screenplay-toolchain/references/sources-and-streams.md +14 -19
- package/package/corpus/skills/cratis-screenplay-toolchain/references/traps.md +32 -35
- package/package/corpus/skills/cratis-screenplay-toolchain/references/verdicts.md +119 -52
- package/package/corpus/skills/cratis-screenplay-toolchain/verification.json +18 -24
- package/package/corpus/skills/cratis-screenplay-ui-composition/SKILL.md +3 -3
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/screen-composition-contract.md +2 -2
- package/package.json +1 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/references/doc-contradictions.md +0 -72
- package/package/corpus/skills/cratis-screenplay-toolchain/references/provenance.md +0 -81
- package/package/corpus/skills/cratis-screenplay-toolchain/references/versions.md +0 -341
|
@@ -27,8 +27,8 @@ Retained inline-fact update evidence: [source notes](references/source-notes.md)
|
|
|
27
27
|
The historical parser/binder/reference-runner version table is in the source notes.
|
|
28
28
|
|
|
29
29
|
Specification syntax was checked against Screenplay v4.127.0 `specifications.md`;
|
|
30
|
-
older probes in the table remain historical.
|
|
31
|
-
`
|
|
30
|
+
older probes in the table remain historical. Tool versions: `cratis-screenplay-toolchain`
|
|
31
|
+
`SKILL.md`. Compile commands check source, not reference execution.
|
|
32
32
|
Use `screenplay test` or MCP `run-specifications` for V4; Stage/target tests are
|
|
33
33
|
separate evidence. On Screenplay **4.145.0 and later**, propose → review →
|
|
34
34
|
`run-specifications` with `proposalId` → apply.
|
|
@@ -287,7 +287,7 @@ For view specifications:
|
|
|
287
287
|
## Verify
|
|
288
288
|
|
|
289
289
|
- [ ] Validate the complete root with warnings as errors, naming tool/version.
|
|
290
|
-
Standalone
|
|
290
|
+
Standalone tool version: `cratis-screenplay-toolchain/SKILL.md`. Run specification examples through
|
|
291
291
|
`screenplay test`; expected unadmitted syntax reports unbound, not passed.
|
|
292
292
|
- [ ] Executable diagnostics are clean too: `PLAY0350`, `PLAY0352`, `PLAY0388`,
|
|
293
293
|
`PLAY0389` and `PLAY0273` are only reported at binding.
|
package/package/corpus/skills/cratis-screenplay-specifications/references/examples-and-routes.md
CHANGED
|
@@ -143,8 +143,8 @@ so UUID casing is immaterial. Composite mappings supply each named part once,
|
|
|
143
143
|
using literals only; encoding escapes `%`/`|` and preserves declaration order.
|
|
144
144
|
Source: v4.127.0 `event-sources.md`, `specifications.md`, `diagnostics.md`.
|
|
145
145
|
|
|
146
|
-
Previous CLI 3.46.1 refused above v7; the
|
|
147
|
-
(`cratis-screenplay-toolchain/references/
|
|
146
|
+
Previous CLI 3.46.1 refused above v7; the CLI/Stage pair
|
|
147
|
+
(`cratis-screenplay-toolchain/references/renderable-subset.md`) reaches route checks through v10. Routed read-model/query replay can still refuse
|
|
148
148
|
STAGE-ESM-030. Source/reference success never establishes target parity.
|
|
149
149
|
|
|
150
150
|
Command and read-model examples refuse routes (PLAY0526). Effective role and
|
|
@@ -29,7 +29,7 @@ Chronicle, asserting one append wins, one is rejected, and `IAppendResult.Concur
|
|
|
29
29
|
is `true` (a skipped check and a passing one look identical otherwise; a current client against
|
|
30
30
|
an older kernel always reads `false`). This was source- and documentation-inspected, not
|
|
31
31
|
concurrency-tested here. The Stage scaffold pins Chronicle client/kernel and Arc releases (see `cratis-stage-rendering-and-sandbox` `references/rendered-application.md`;
|
|
32
|
-
the CLI bundle's Chronicle
|
|
32
|
+
the CLI bundle's Chronicle follows the installed CLI: `cratis --version`); the APIs exist for gap-fill, not as automatically rendered enforcement.
|
|
33
33
|
|
|
34
34
|
## Verified product sources
|
|
35
35
|
|
|
@@ -40,7 +40,7 @@ the CLI bundle's Chronicle is in `cratis-screenplay-toolchain` `references/versi
|
|
|
40
40
|
| Arc | v22.72.0 | `[ProtectedDecision]` and `DecisionRead<T>` (since v22.39.0) |
|
|
41
41
|
| Stage | v4.89.1 | rendered apps pin the Arc and Chronicle client/kernel listed in the Stage skill's `references/rendered-application.md`; protected-read APIs available to gap-fill. Historical 4.24.2 admission probe: ESM v4, evolved events refused with `STAGE-ESM-026` |
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
Tool versions: `cratis-screenplay-toolchain` `SKILL.md`. Re-check the three
|
|
44
44
|
Chronicle issues before relying on a constraint in a later release.
|
|
45
45
|
|
|
46
46
|
## When / when not
|
|
@@ -88,7 +88,7 @@ option, mark it `ASSUMED` in the slice or module `documentation` and in the sess
|
|
|
88
88
|
namespace, process-stream routing and concurrency scope apart
|
|
89
89
|
(`references/chronicle-boundaries.md`). Declared `eventsource`/`stream`/`streamId` and
|
|
90
90
|
command/specification routes bind and reference-execute as ESM v8 on 4.125.0.
|
|
91
|
-
The
|
|
91
|
+
The CLI (toolchain `references/renderable-subset.md`) reaches Stage construct checks through v15; keep the routing
|
|
92
92
|
contract when target admission requires gap-fill. Forms/boundaries:
|
|
93
93
|
toolchain `references/sources-and-streams.md`. A `generated identifier` (ESM v7, standalone 4.68.0 and later; Stage 4.89.1 renders supported UUID/String strategies and v15 freshness; unsupported types/results still refuse -028/-038) is
|
|
94
94
|
generated fresh on every acceptance: it is not a retry identity, and generated values give no
|
|
@@ -144,7 +144,7 @@ option, mark it `ASSUMED` in the slice or module `documentation` and in the sess
|
|
|
144
144
|
decisions and capability gaps in `STATE.md`. Then the gate below.
|
|
145
145
|
|
|
146
146
|
## Rules
|
|
147
|
-
**Compiler contracts** (diagnostics at Screenplay v4.66.0 and v4.68.0; capability per tool in `
|
|
147
|
+
**Compiler contracts** (diagnostics at Screenplay v4.66.0 and v4.68.0; capability per tool in the toolchain `references/executable-subset.md`)
|
|
148
148
|
- `identifier` on an event property is PLAY0019; the source id is never payload by declaration.
|
|
149
149
|
Copying it as a payload value is PLAY0469 (information, warning for inline events).
|
|
150
150
|
- In the executable model a production's `for` must resolve to the command's scalar identifier:
|
package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/boundaries.md
CHANGED
|
@@ -171,7 +171,7 @@ integration support.
|
|
|
171
171
|
| Situation | Construct |
|
|
172
172
|
|---|---|
|
|
173
173
|
| another module in the same application | reference the event by name (cross-module resolution works within one application) |
|
|
174
|
-
| another bounded context's contract | `event X from "store"` (shape declared locally, ESM v9); an unquoted `import Context.Event` or `import Q.X from "store"` has no local shape and stays PLAY0268 (see `
|
|
174
|
+
| another bounded context's contract | `event X from "store"` (shape declared locally, ESM v9); an unquoted `import Context.Event` or `import Q.X from "store"` has no local shape and stays PLAY0268 (see toolchain `references/executable-subset.md`) |
|
|
175
175
|
| my own files | quoted `import "glob"` |
|
|
176
176
|
| outside data entering | `Translate` slice: `capture`, or a translator `reaction` over an imported event (`cratis-screenplay-automations-and-translations`) |
|
|
177
177
|
| our fact another context needs | a public summary event; the other side translates it into its own language |
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Chronicle boundaries
|
|
2
2
|
|
|
3
3
|
Read when consistency, tenancy or personal data decides where a boundary falls. These are
|
|
4
|
-
target facts; the `.play` model declares only part of them (`
|
|
4
|
+
target facts; the `.play` model declares only part of them (`references/executable-subset.md` in
|
|
5
5
|
`cratis-screenplay-toolchain`).
|
|
6
6
|
|
|
7
7
|
## Pins
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
- 9. Corrections and backdated facts
|
|
14
14
|
- 10. Specification limits (no local spec engine)
|
|
15
15
|
|
|
16
|
-
Historical checks: Screenplay v4.66.0, Chronicle v19.32.0, Arc v22.50.5, Stage v4.24.2 (
|
|
16
|
+
Historical checks: Screenplay v4.66.0, Chronicle v19.32.0, Arc v22.50.5, Stage v4.24.2 (for installed tool versions see `SKILL.md` of
|
|
17
17
|
`cratis-screenplay-toolchain`).
|
|
18
18
|
|
|
19
19
|
Routing identity checks verified at 4.127.0: PLAY0515 refuses personal/secret
|
|
@@ -198,7 +198,7 @@ behaviour. Write the answer in the slice `documentation`.
|
|
|
198
198
|
between two different sources: `for` on `given` events (ESM v2) establishes a claim on one source
|
|
199
199
|
and attempts the same value on another (`specifications.md`; `streams-example.md` uses it). It is a
|
|
200
200
|
sequential history, not a race proof. The `constraints.md` sentence that it "cannot yet show a
|
|
201
|
-
collision between two event sources" is stale (`
|
|
201
|
+
collision between two event sources" is stale (Screenplay `constraints.md` versus `specifications.md`).
|
|
202
202
|
Spec outcomes come only from a reference run (V4) or rendered tests. See `cratis-screenplay-scenario-coverage`.
|
|
203
203
|
- Constraint violation messages are fixed strings: copy them exactly into `then error`.
|
|
204
204
|
- For every value constraint write a competing-claim spec (one source owns the value, a
|
package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/evolution.md
CHANGED
|
@@ -74,7 +74,7 @@ Sources: Cratis/Screenplay `v4.152.0`, `Documentation/screenplay/events.md:116-1
|
|
|
74
74
|
`Source/DotNET/Screenplay/Semantics/SemanticModelBinder.StoredEventNames.cs:15-35`,
|
|
75
75
|
`SemanticModelBinder.Structure.cs:16-17,215` in the same folder, and
|
|
76
76
|
`Source/DotNET/Screenplay.Mcp/McpWorkspaces.Refactoring.cs:82`.
|
|
77
|
-
Target evidence: toolchain `references/
|
|
77
|
+
Target evidence: toolchain `references/diagnostics.md` (Reserved stored names and event pins).
|
|
78
78
|
Source/stream stored names already travel in ESM v8; stream `All` remains reserved
|
|
79
79
|
regardless of a pin (toolchain `sources-and-streams.md`).
|
|
80
80
|
|
|
@@ -216,8 +216,8 @@ Some event stores decide consistency by a query over tagged events instead of on
|
|
|
216
216
|
check to event types, source type or stream (`concurrency` block, Screenplay
|
|
217
217
|
`commands.md`). Legacy concurrency metadata still fails binding (PLAY0271),
|
|
218
218
|
but sources/streams/routes bind and reference-execute as ESM v8 on 4.125.0.
|
|
219
|
-
Route admission does not make a view read protected. The
|
|
220
|
-
through v10
|
|
219
|
+
Route admission does not make a view read protected. The CLI (toolchain `references/renderable-subset.md`) reaches Stage construct checks
|
|
220
|
+
through v10. Model the stream by business
|
|
221
221
|
identity; when a rule truly needs a cross-stream decision, record it (see
|
|
222
222
|
`consistency-and-concurrency.md`) rather than inventing a construct.
|
|
223
223
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: cratis-screenplay-toolchain
|
|
3
|
-
description: "
|
|
3
|
+
description: "How to run and check Cratis Screenplay `.play` models: locating the model, choosing the standalone `screenplay` tool or the `cratis` CLI, the exact command behind each verdict V1 to V5 and what a pass looks like, the executable and renderable subsets, reading PLAY, STAGE and CLI-RENDER diagnostics, traps, and a compiled cheat-sheet. Use when choosing a compiler, running or reading a verdict, fixing a diagnostic, or deciding whether syntax binds or renders. Not for: what to model or the phase workflow (use `cratis-screenplay-modeling-lifecycle`), the MCP editing loop (use `cratis-screenplay-model-authoring`), rendering workflow (use `cratis-screenplay-render-and-gap-fill`)."
|
|
4
4
|
license: MIT
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -20,20 +20,15 @@ skill answers "does it compile, bind, render, and which compiler said so". The m
|
|
|
20
20
|
Look first in the model root: the folder holding the project's `.play` files (else `Source/` or `src/`, else `Screenplay/`), or the root the project set with `mcpServers.screenplay.root` in `.cratis/ai.json`. A folder of `.play`
|
|
21
21
|
files is one application: always check the folder, never one file of it.
|
|
22
22
|
|
|
23
|
-
##
|
|
23
|
+
## Tool versions and the contract
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
Read the installed versions first: `screenplay --version`, `cratis --version`, and `which -a cratis`
|
|
26
|
+
(an older copy earlier on `PATH` shadows a newer install). The standalone tool and the compiler
|
|
27
|
+
bundled in the CLI are different releases, and the bundled one can be older; a construct the
|
|
28
|
+
standalone tool binds may be refused or unrendered through the CLI. Capabilities that need a
|
|
29
|
+
minimum release carry a one-line `Requires ...` note in the reference that teaches them.
|
|
26
30
|
|
|
27
|
-
|
|
28
|
-
CLI and bundled package pins: `references/versions.md`. The single version table records
|
|
29
|
-
released source evidence and historical probes separately; do not relabel an old
|
|
30
|
-
render/browser result as a probe of the current packages.
|
|
31
|
-
|
|
32
|
-
Historical screens-release evidence: CLI 3.40.7 / Stage 4.51.1 / bundled
|
|
33
|
-
Screenplay 4.114.0 opened the canonical corpus with `executableReady true`
|
|
34
|
-
and the stdio transcript exposed 37 tools; standalone language 4.122.0 was
|
|
35
|
-
recorded in that vector. These retained results are not a rerun on CLI 3.53.1
|
|
36
|
-
or the current standalone pin.
|
|
31
|
+
For exact diagnostic codes, MCP names/parameters and standalone CLI options, search the large published [references/screenplay-contract.json](references/screenplay-contract.json), named by [references/screenplay-contract.version](references/screenplay-contract.version), rather than loading it in full. Locate a diagnostic by its exact `code` (for example `"code": "PLAY0029"`), a tool by its exact `name` (for example `"name": "read-workspace"`), or a command in `cliCommands`; read the matched object for retirement, parameters or options. [references/screenplay-contract-exceptions.json](references/screenplay-contract-exceptions.json) records reasoned exceptions for superseded statements; it does not change the current contract.
|
|
37
32
|
|
|
38
33
|
## Ground rules
|
|
39
34
|
|
|
@@ -44,12 +39,11 @@ or the current standalone pin.
|
|
|
44
39
|
`cratis screenplay validate <folder> --warnings-as-errors`. Warnings hide defects:
|
|
45
40
|
PLAY0029 (a misspelt keyword or a `type` inside a slice) drops a construct silently.
|
|
46
41
|
3. **Pick the compiler deliberately and name it.** Standalone `screenplay` for
|
|
47
|
-
|
|
48
|
-
and generation.
|
|
49
|
-
|
|
50
|
-
version, rather than transferring a verdict across releases.
|
|
42
|
+
language checks and reference specifications; `cratis` for rendering
|
|
43
|
+
and generation. Report both tool and version, rather than transferring a verdict across
|
|
44
|
+
releases.
|
|
51
45
|
4. **Know the mode** (design, executable, renderable) and write from its subset.
|
|
52
|
-
5. **Capability is not correctness.** The tool you ran decides what is accepted
|
|
46
|
+
5. **Capability is not correctness.** The tool you ran decides what is accepted; the
|
|
53
47
|
domain and the documented semantics decide what is correct. On conflict keep the correct
|
|
54
48
|
model and record a tool gap; never reshape a model to silence a tool.
|
|
55
49
|
6. **Never remove `pii`, `secret`, authorization, list queries, automations or rules
|
|
@@ -70,9 +64,11 @@ or the current standalone pin.
|
|
|
70
64
|
| Scope/checks | `--scope <address>`, `--check <names>`; a scoped pass is not whole-application success | `validate --executable` (bundled binder, no write), `--check <names>`, `--scope`; `render --scope`/`--check`; `cratis screenplay conform` |
|
|
71
65
|
| Reference execution | `screenplay test <root>` or MCP `run-specifications` | Discover bundled MCP capability; target tests are not V4 |
|
|
72
66
|
| MCP | `screenplay mcp <root>`; discover schemas | `cratis screenplay mcp [root]`; registered by `cratis ai install` |
|
|
73
|
-
| Render
|
|
67
|
+
| Render boundary | Binder admission is not Stage admission | The CLI renders only ESM versions it knows; a newer bound model gets `CLI-RENDER-004` |
|
|
68
|
+
|
|
69
|
+
Read `references/verdicts.md` for exact commands, exit codes, the MCP roots caveat and the model notes gate.
|
|
74
70
|
|
|
75
|
-
|
|
71
|
+
Requires Cratis CLI 3.57.0 or later (`cratis --version`) to render models that use equality filters or concept generation strategies (ESM v14 and v15); an older CLI answers `CLI-RENDER-004`.
|
|
76
72
|
|
|
77
73
|
MCP calls below use the `screenplay` server declared in `.cratis/ai/mcp-servers.json`, for example `screenplay` → `read-workspace`.
|
|
78
74
|
|
|
@@ -89,10 +85,9 @@ Independent results, not a ladder. Read `references/verdicts.md` for the command
|
|
|
89
85
|
| V5 | rendered and target-verified | `cratis render`, then Debug build and tests; report admission, publication, build and tests separately |
|
|
90
86
|
|
|
91
87
|
V2 and V3 need MCP (V3 alone can also be read from `cratis screenplay validate --executable <root>`, labeled as the bundled compiler): send `initialize`, then `notifications/initialized`, and start the
|
|
92
|
-
server with a fixed root
|
|
93
|
-
4.60.1 bundled by cratis before 3.28.2; 4.66.0 and later and cratis 3.28.2 are fine). A subagent without MCP reports "V2 not run: no MCP in this agent".
|
|
88
|
+
server with a fixed root. A subagent without MCP reports "V2 not run: no MCP in this agent".
|
|
94
89
|
|
|
95
|
-
One line per verdict, tool first, for example `V1 pass (screenplay
|
|
90
|
+
One line per verdict, tool first, for example `V1 pass (screenplay <version>, 3 files)` and
|
|
96
91
|
`V3 blocked: PLAY0268 x3 (context filter, enum compliance)`. Name the source identity (commit plus the digest from
|
|
97
92
|
the source-identity helper (`cratis-screenplay-modeling-lifecycle` `references/verdicts-and-modes.md` "Source identity")) the verdict ran on; keep it apart from the MCP
|
|
98
93
|
`modelRevision`, which is semantic and, without `.screenplay/identities.json`,
|
|
@@ -103,46 +98,36 @@ changes with the root folder name.
|
|
|
103
98
|
- **Design**: every construct family parses; use it to model first. Compiled shapes:
|
|
104
99
|
`references/cheat-sheet.md`. Read [references/cheat-sheet-example.md](references/cheat-sheet-example.md) when you need one complete design-mode document with every construct family.
|
|
105
100
|
- **Executable** (binds, V3): `references/executable-subset.md`. Optional keyed lookups, unfiltered
|
|
106
|
-
lists and lists narrowed by one `by` key (observable too); caller-supplied equality
|
|
107
|
-
filters on collections bind as v14
|
|
101
|
+
lists and lists narrowed by one `by` key (observable too) bind; caller-supplied equality
|
|
102
|
+
filters on collections bind as ESM v14. Context `from`, single-result
|
|
108
103
|
filters, opaque `scoped to`/`performer` and composite `by` remain PLAY0268. Read
|
|
109
104
|
read-surface [equality filters](../cratis-screenplay-read-surface/references/equality-filters.md). No handler (PLAY0268, with or without `implementation`/`hint`); `reads` and
|
|
110
|
-
`concurrency` do not bind (PLAY0271); concept compliance binds as v13
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
from Screenplay 4.68.0 (also in the current CLI bundle) (`references/generated-responses-example.md`). Read [references/executable-example.md](references/executable-example.md) when you need a small StateChange and StateView model that binds executable, [references/pdl-example.md](references/pdl-example.md) when writing projection forms that bind and run, and [references/automation-translate-example.md](references/automation-translate-example.md) when writing Automation and Translate slices (ESM v6).
|
|
115
|
-
- **Renderable** (V5): `references/renderable-subset.md` has the current Stage 4.89.1 table and
|
|
116
|
-
explicitly labeled older probes. CLI 3.57.0 admits through v15; supported UUID/String
|
|
105
|
+
`concurrency` do not bind (PLAY0271); concept compliance binds as v13 (precise refusals: command-surface `references/compliance.md`);
|
|
106
|
+
generated values and `returns` responses bind (ESM v7, `references/generated-responses-example.md`). Read [references/executable-example.md](references/executable-example.md) when you need a small StateChange and StateView model that binds executable, [references/pdl-example.md](references/pdl-example.md) when writing projection forms that bind and run, and [references/automation-translate-example.md](references/automation-translate-example.md) when writing Automation and Translate slices (ESM v6).
|
|
107
|
+
- **Renderable** (V5): `references/renderable-subset.md` has the admission table. The CLI admits through
|
|
108
|
+
its newest known ESM version to construct checks; supported UUID/String
|
|
117
109
|
generation/responses, enum numbers, compliance, equality filters and event reactions render.
|
|
118
110
|
Unsupported generated types still get `STAGE-ESM-028`; result combinations get `-038`.
|
|
119
111
|
Newer versions refuse `CLI-RENDER-004`. Run admission
|
|
120
112
|
before claiming a particular model renders (`cratis render --scope` for an admitted part, `--check`
|
|
121
113
|
for no-write planning).
|
|
122
|
-
- **Event sources, streams and routes** bind as ESM v8
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
qualifying retained non-route Double literals select v11 at 4.135.0.
|
|
129
|
-
Composite view keys remain authoring-only (PLAY0268, #599), while one explicit
|
|
114
|
+
- **Event sources, streams and routes** bind as ESM v8. Operations and exact numeric source mode remain
|
|
115
|
+
unadmitted. Details: `references/sources-and-streams.md`.
|
|
116
|
+
- **Public contracts and routes (v9/v10/v11):** public contracts and direction select v9;
|
|
117
|
+
reaction identity, production overrides and observer filters select v10;
|
|
118
|
+
qualifying retained non-route Double literals select v11.
|
|
119
|
+
Composite view keys remain authoring-only (PLAY0268), while one explicit
|
|
130
120
|
`key` binds. Read `references/production-routes-and-filters.md` and read-surface
|
|
131
|
-
`references/named-keys.md
|
|
132
|
-
|
|
133
|
-
- **Published v12 (4.139.0):** non-positional enum numbers bind; canonical
|
|
121
|
+
`references/named-keys.md`.
|
|
122
|
+
- **Enum numbers (v12):** non-positional enum numbers bind; canonical
|
|
134
123
|
`numbers` parallels `values`. Positional pins preserve earlier executable
|
|
135
|
-
bytes/version. Specifications still use names.
|
|
136
|
-
non-positional numbers, and Stage 4.89.1 admits v12 and emits `Member = N`. Syntax:
|
|
124
|
+
bytes/version. Specifications still use names. Stage admits v12 and emits `Member = N`. Syntax:
|
|
137
125
|
command-surface `references/enum-numbers.md`; errors PLAY0667–0670 and opt-in
|
|
138
126
|
`enum-pinning` hint PLAY0671: `references/diagnostics.md`.
|
|
139
|
-
|
|
140
|
-
- **Published v15 (4.147.0):** concept strategies and Guarded freshness; strict fixture shapes,
|
|
127
|
+
- **Concept strategies (v15):** concept strategies and Guarded freshness; strict fixture shapes,
|
|
141
128
|
no silent retry. Read [references/generation-strategies-example.md](references/generation-strategies-example.md)
|
|
142
129
|
and command-surface `references/generated-values-and-responses.md` for supported strategies/refusals.
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
- **Caller/compliance metadata** at 4.127.0: `$identity` aliases caller built-ins;
|
|
130
|
+
- **Caller/compliance metadata:** `$identity` aliases caller built-ins;
|
|
146
131
|
additional identity details are metadata and executable reads still refuse.
|
|
147
132
|
Bare `pii`/`secret` replace legacy spellings; `pii personal` repeats one marker
|
|
148
133
|
(PLAY0653). Purposes/checks/processing records and event `subject` are report-only,
|
|
@@ -173,14 +158,14 @@ changes with the root folder name.
|
|
|
173
158
|
|
|
174
159
|
## Top traps
|
|
175
160
|
|
|
176
|
-
All 44, with fixes: `references/traps.md`. Read `references/traps.md` when diagnosing an unexpected compile, binding, rendering or MCP result.
|
|
161
|
+
All 44 traps, with fixes: `references/traps.md`. Read `references/traps.md` when diagnosing an unexpected compile, binding, rendering or MCP result.
|
|
177
162
|
|
|
178
|
-
Read [references/diagnostics.md](references/diagnostics.md) when a PLAY, STAGE or CLI-RENDER diagnostic needs its meaning and fix.
|
|
163
|
+
Read [references/diagnostics.md](references/diagnostics.md) when a PLAY, STAGE or CLI-RENDER diagnostic needs its meaning and fix. When the Screenplay documentation and the compiler disagree, follow the compiler for what is accepted, keep the intended semantics in the model, and record the gap.
|
|
179
164
|
|
|
180
165
|
1. Clean V1 is not executable: only MCP (V2) or `render` binds.
|
|
181
166
|
2. Prefer inline `produces event` for a command-owned event; plain command productions need explicit `for <identifier>`.
|
|
182
167
|
3. PLAY0029 is a warning: validate with warnings as errors.
|
|
183
|
-
4. Validate the folder; name the compiler
|
|
168
|
+
4. Validate the folder; name the compiler.
|
|
184
169
|
5. V1 warns on undeclared projection targets (`PLAY0514`) and removal/capture
|
|
185
170
|
event references (`PLAY0166`). Unmapped declared fields can be reported by
|
|
186
171
|
opt-in `--check field-origins` (`PLAY0534`); unknown coverage is skipped, so
|
|
@@ -190,7 +175,7 @@ Read [references/diagnostics.md](references/diagnostics.md) when a PLAY, STAGE o
|
|
|
190
175
|
7. Mark read-model identity with trailing `key`, not `identifier`. Otherwise single-instance
|
|
191
176
|
queries must agree on `by`; only with none and an admitted list query can `*Id`
|
|
192
177
|
inference run. Queryless views need `key` (read-surface `references/named-keys.md`).
|
|
193
|
-
Align projection keys. Multipart keys remain PLAY0268
|
|
178
|
+
Align projection keys. Multipart keys remain PLAY0268.
|
|
194
179
|
8. Projection `key` routes only on `from`; joins never create; `all` is per source.
|
|
195
180
|
9. `null` only for optional read-model properties in specifications.
|
|
196
181
|
10. `then` events are exhaustive and ordered; after `when append` they list only what followed.
|
|
@@ -216,9 +201,9 @@ reason; blocked verdicts list codes and keep the protection they blocked on.
|
|
|
216
201
|
- [ ] Any new example fence compiles with the standalone tool; unmarked fences also pass
|
|
217
202
|
`cratis screenplay validate --warnings-as-errors`.
|
|
218
203
|
|
|
219
|
-
Read [model notes gate](references/
|
|
220
|
-
unresolved questions: standalone
|
|
221
|
-
|
|
204
|
+
Read [model notes gate](references/verdicts.md#model-notes-gate) when checking
|
|
205
|
+
unresolved questions: the standalone tool has `--open-questions fail`; `cratis screenplay validate`
|
|
206
|
+
does not. It is separate from compilation and `--warnaserror`.
|
|
222
207
|
|
|
223
208
|
## Route near misses
|
|
224
209
|
|
|
@@ -230,7 +215,3 @@ unresolved questions: standalone 4.144.0 has `--open-questions fail`; Cratis CLI
|
|
|
230
215
|
- Rendering and gap-fill: `cratis-screenplay-render-and-gap-fill`,
|
|
231
216
|
`cratis-stage-rendering-and-sandbox`.
|
|
232
217
|
- Running systems (Chronicle server operations through the `cratis` CLI, with its authorization boundaries): `cratis-chronicle-cli-operations`.
|
|
233
|
-
|
|
234
|
-
## Lineage
|
|
235
|
-
|
|
236
|
-
Read `references/provenance.md` when checking attribution or the sources behind this guidance.
|
package/package/corpus/skills/cratis-screenplay-toolchain/references/automation-translate-example.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Automation and Translate example (ESM v6)
|
|
2
2
|
|
|
3
|
-
Executable Automation and Translate slices. Binds
|
|
3
|
+
Executable Automation and Translate slices. Binds as `executableReady` on the standalone tool and on the compiler bundled in the CLI; see [executable-subset.md](executable-subset.md) for what renders. Shows a reaction `produces` cascade, `invokes`, `where`, clock `at`, an application trigger, a capture with translate and a transition `when`, and v6 specifications.
|
|
4
4
|
|
|
5
5
|
The `Renew` command is ungated so that the reaction can invoke it: this is a syntax demonstration, not a safe production design. Reactions invoke with no caller, so a real model needs a trusted path (see [cratis-screenplay-automations-and-translations](../../cratis-screenplay-automations-and-translations/SKILL.md)).
|
|
6
6
|
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
# Cheat-sheet example (design mode)
|
|
2
2
|
|
|
3
|
-
One complete document with every construct family. Design mode, not executable. Prose rules: [cheat-sheet.md](cheat-sheet.md);
|
|
3
|
+
One complete document with every construct family. Design mode, not executable. Prose rules: [cheat-sheet.md](cheat-sheet.md); what binds: [executable-subset.md](executable-subset.md).
|
|
4
4
|
|
|
5
|
-
Binding blockers: unquoted import, `reads` (PLAY0271), `starts with`. Caller-supplied collection equality filters bind as ESM v14
|
|
5
|
+
Binding blockers: unquoted import, `reads` (PLAY0271), `starts with`. Caller-supplied collection equality filters bind as ESM v14; context and single-result filters remain blocked. Executable shapes are in the sibling examples. `RecordingAPayment` lists the `InvoiceClosed` cascade; an older bundled compiler rejected it with a false PLAY0285 ("outcome cannot be produced by 'RecordPayment'").
|
|
6
6
|
|
|
7
|
-
Concept compliance itself binds as ESM v13
|
|
8
|
-
|
|
9
|
-
4.147.1 / Stage 4.89.1 and renders v13 concept protection. Binder-only PLAY0268
|
|
10
|
-
refusals and subject-lineage limits: command-surface `references/compliance.md`.
|
|
7
|
+
Concept compliance itself binds as ESM v13; reasons remain report-only PLAY0270. Stage renders v13 concept
|
|
8
|
+
protection. Binder-only PLAY0268 refusals and subject-lineage limits: command-surface `references/compliance.md`.
|
|
11
9
|
|
|
12
10
|
```screenplay test=unbound
|
|
13
11
|
// Design-mode cheat-sheet: every construct family; compiles warning-free on the standalone tool.
|
|
@@ -17,7 +15,7 @@ import Customers.CustomerRegistered // unquoted = another bounded context
|
|
|
17
15
|
|
|
18
16
|
concept InvoiceId : Uuid // primitives: Uuid String Int Decimal Bool Date DateTime Enum
|
|
19
17
|
concept PaymentId : Uuid
|
|
20
|
-
concept Email : String pii //
|
|
18
|
+
concept Email : String pii // concept compliance binds as ESM v13
|
|
21
19
|
pii reason "Identifies a person"
|
|
22
20
|
validate
|
|
23
21
|
not empty message "An email is required"
|
|
@@ -158,7 +156,7 @@ module Billing
|
|
|
158
156
|
number String
|
|
159
157
|
query InvoiceById => InvoiceRow optional // keyed optional lookup (unfiltered lists bind too)
|
|
160
158
|
by invoiceId InvoiceId
|
|
161
|
-
query ListInvoices => observable InvoiceRow[] // caller-supplied equality filter: ESM v14
|
|
159
|
+
query ListInvoices => observable InvoiceRow[] // caller-supplied equality filter: ESM v14
|
|
162
160
|
filter number String optional
|
|
163
161
|
projection InvoiceList => InvoiceRow
|
|
164
162
|
from InvoiceRegistered
|
|
@@ -248,7 +246,7 @@ module Housekeeping // no gates: this reaction
|
|
|
248
246
|
produces event InvoiceMarkedOverdue
|
|
249
247
|
overdueAt DateTime = $context.occurred
|
|
250
248
|
// No command spec here: under ESM v6 it must list the ReminderSent cascade. The file is
|
|
251
|
-
// RecordingAPayment's cascade
|
|
249
|
+
// RecordingAPayment's cascade: an older bundled compiler reported a false PLAY0285 here.
|
|
252
250
|
// The cascade form: automation-translate-example.md (SubscribingAMember).
|
|
253
251
|
|
|
254
252
|
slice Automation RemindOverdue
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Screenplay cheat-sheet
|
|
1
|
+
# Screenplay cheat-sheet
|
|
2
2
|
|
|
3
3
|
## Contents
|
|
4
4
|
|
|
@@ -17,17 +17,15 @@ Released boundary forms: `public event X`, `event X from "store"`, Translate
|
|
|
17
17
|
and capture `source events` with `from ForeignEvent` select v9. Read
|
|
18
18
|
[public contracts](../../cratis-screenplay-automations-and-translations/references/public-events-and-direction.md).
|
|
19
19
|
View properties use trailing `key`; multipart `by` query/read blocks remain
|
|
20
|
-
PLAY0268
|
|
20
|
+
PLAY0268, not v10. Read [named keys](../../cratis-screenplay-read-surface/references/named-keys.md).
|
|
21
21
|
Production `stream Source.Stream` overrides and reaction/reducer `from Source[.Stream]`
|
|
22
22
|
select released v10: [routes and filters](production-routes-and-filters.md).
|
|
23
|
-
Qualifying non-route Double literals select
|
|
23
|
+
Qualifying non-route Double literals select v11;
|
|
24
24
|
`numbers exact` does not bind. Non-positional enum member numbers (`draft = 1`)
|
|
25
|
-
select
|
|
26
|
-
while specifications still use names.
|
|
25
|
+
select v12; positional pins keep earlier bytes/version,
|
|
26
|
+
while specifications still use names. Stage admits v12 and renders explicit numbers.
|
|
27
27
|
Syntax/example: command-surface `references/enum-numbers.md`.
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
Current pins: `versions.md` (the single table). Compile evidence below keeps its historical tool labels.
|
|
28
|
+
Published ESM versions never change meaning; later byte-changing features take a new version.
|
|
31
29
|
|
|
32
30
|
The syntax lives in compiled example files next to this one (each is a Markdown file holding
|
|
33
31
|
one complete `screenplay` fence). Copy shapes from them; do not write a form that none of
|
|
@@ -36,16 +34,16 @@ examples belong to `cheat-sheet-example.md` and its siblings.
|
|
|
36
34
|
|
|
37
35
|
| File | Mode | V1, warnings as errors | V3 (binds) |
|
|
38
36
|
| --- | --- | --- | --- |
|
|
39
|
-
| `cheat-sheet-example.md` | design: every construct family | 0 diagnostics, both tools (
|
|
37
|
+
| `cheat-sheet-example.md` | design: every construct family | 0 diagnostics, both tools (an older bundled compiler reported a false PLAY0285 on the `RecordingAPayment` cascade spec) | not ready by design (its header lists why; fewer blockers on the standalone tool) |
|
|
40
38
|
| `executable-example.md` | executable, StateChange and StateView | 0 diagnostics, both tools | ready, both tools |
|
|
41
39
|
| `pdl-example.md` | executable projections | 0 diagnostics, both tools | ready, both tools |
|
|
42
|
-
| `automation-translate-example.md` | executable Automation and Translate (ESM v6) | 0 diagnostics, both tools (
|
|
40
|
+
| `automation-translate-example.md` | executable Automation and Translate (ESM v6) | 0 diagnostics, both tools (an older bundled compiler could not bind it) | ready, both tools |
|
|
43
41
|
|
|
44
42
|
Screenplay sources: `Documentation/screenplay/grammar.md` (EBNF; checked against the parsers
|
|
45
43
|
by `for_Documentation/when_comparing_the_grammar_against_the_parsers.cs`),
|
|
46
44
|
`projections/grammar.md`, `captures/grammar.md`. Documentation examples compile in
|
|
47
45
|
Screenplay CI (`when_compiling_every_example.cs`) against repository main: the standalone
|
|
48
|
-
compiler
|
|
46
|
+
compiler; the compiler bundled in `cratis` can be older and lack the newest ESM versions.
|
|
49
47
|
|
|
50
48
|
## Samples and preview fixtures
|
|
51
49
|
|
|
@@ -53,7 +51,7 @@ Invoicing is a warning-free syntax showcase, not a runnable whole-language proof
|
|
|
53
51
|
The released samples policy excepts these preview families and points to dedicated
|
|
54
52
|
fixtures; do not infer binder admission from the sample's coverage list:
|
|
55
53
|
|
|
56
|
-
| Family | Screenplay
|
|
54
|
+
| Family | Screenplay fixture |
|
|
57
55
|
| --- | --- |
|
|
58
56
|
| Exact numbers | `Source/Screenplay/Compiler/Conformance/exact-named-rule-intent.play` |
|
|
59
57
|
| Sources/streams/command routes | `Documentation/screenplay/fixtures/source-streams.play` |
|
|
@@ -61,9 +59,8 @@ fixtures; do not infer binder admission from the sample's coverage list:
|
|
|
61
59
|
| Systems/operations/specification steps | `Documentation/screenplay/fixtures/operations.play` |
|
|
62
60
|
| Refusals/redelivery/no-events | `Source/Screenplay/Compiler/Conformance/reaction-refusals-redelivery.play`, `no-events.play` in that directory |
|
|
63
61
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
its old blanket PLAY0268 wording is not the current route verdict. Other rows
|
|
62
|
+
The Screenplay samples policy lists these preview families. Sources and specification routes
|
|
63
|
+
are admitted as v8 by the binder and runner, so a blanket PLAY0268 is not their verdict. Other rows
|
|
67
64
|
remain unadmitted. Compile and test each relevant fixture with the chosen tool.
|
|
68
65
|
|
|
69
66
|
## Lexical and structural rules
|
|
@@ -87,7 +84,7 @@ remain unadmitted. Compile and test each relevant fixture with the chosen tool.
|
|
|
87
84
|
generated identifier` (PLAY0484); legacy `?` is PLAY0479 (information).
|
|
88
85
|
- Ownership policies: `require claim "ownerId" matches subject` (subject = command identifier
|
|
89
86
|
or keyed query argument) or `matches <commandProperty>`; executable; renderable only for
|
|
90
|
-
text-backed targets
|
|
87
|
+
text-backed targets, Uuid and Date claim targets (see `renderable-subset.md`; unsupported subjects: STAGE-ESM-015).
|
|
91
88
|
|
|
92
89
|
## Exact numeric source mode
|
|
93
90
|
|
|
@@ -112,14 +109,14 @@ description, properties, `reads`, `authorize`, `validate`, `produces`/`handler`,
|
|
|
112
109
|
## `$context.` paths (command `produces`)
|
|
113
110
|
`occurred`, `tenant`, `command.<p>`, `arguments.<p>`, `causedBy.subject|name|userName`,
|
|
114
111
|
`causation.type`, `identity.id|name|userName|isAuthenticated|roles|claims.<n>`.
|
|
115
|
-
Binder-supported
|
|
112
|
+
Binder-supported: `occurred`, `identity.id` (= `causedBy.subject`),
|
|
116
113
|
`identity.name` (= `causedBy.name`), `identity.userName` (= `causedBy.userName`). `tenant`,
|
|
117
114
|
roles, claims, causation, `command.<p>`, `arguments.<p>`: PLAY0268. Binding is not execution:
|
|
118
115
|
a reference scenario that supplies only a clock carries no caller audit identity, so check the
|
|
119
116
|
reference runner before relying on identity paths in a specification. Renderable:
|
|
120
117
|
`$context.occurred` only.
|
|
121
118
|
|
|
122
|
-
|
|
119
|
+
`$identity.id`/`.name`/`.userName` map to the same ESM kinds as
|
|
123
120
|
`$context.identity`; prefer the shorter root, but the older one stays supported.
|
|
124
121
|
Other built-ins parse but roles/claims/authentication status do not bind in
|
|
125
122
|
produces mappings. Identity details are metadata: executable detail reads report
|