@cratis/pi 7.14.1 → 7.14.3
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/security-reviewer.md +2 -1
- package/package/corpus/rules/concepts.md +13 -7
- package/package/corpus/rules/glossary.md +2 -1
- package/package/corpus/rules/vertical-slices.md +5 -4
- package/package/corpus/skills/cratis-application-slice-conformance/SKILL.md +11 -2
- package/package/corpus/skills/cratis-application-slice-conformance/references/build-prompts.md +8 -0
- package/package/corpus/skills/cratis-application-slice-conformance/references/checklists.md +10 -6
- package/package/corpus/skills/cratis-application-slice-specifications/SKILL.md +1 -1
- package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/SKILL.md +11 -7
- package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/authentication.md +12 -2
- package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/authorization.md +16 -1
- package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/frontend.md +7 -0
- package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/observable-emission-guards.md +9 -0
- package/package/corpus/skills/cratis-arc-command/SKILL.md +24 -16
- package/package/corpus/skills/cratis-arc-command/references/command-result.md +7 -0
- package/package/corpus/skills/cratis-arc-command/references/handler-shapes.md +10 -3
- package/package/corpus/skills/cratis-arc-command-execution/SKILL.md +1 -1
- package/package/corpus/skills/cratis-arc-command-operation/SKILL.md +5 -1
- package/package/corpus/skills/cratis-arc-command-operation/references/execution-and-recovery.md +12 -0
- package/package/corpus/skills/cratis-arc-command-operation/references/testing.md +10 -3
- package/package/corpus/skills/cratis-arc-command-typescript/SKILL.md +20 -116
- package/package/corpus/skills/cratis-arc-command-typescript/references/chronicle-events.md +11 -8
- package/package/corpus/skills/cratis-arc-command-typescript/references/command-specifications.md +63 -0
- package/package/corpus/skills/cratis-arc-command-typescript/references/hosting-and-storage.md +10 -0
- package/package/corpus/skills/cratis-arc-command-typescript/references/proxy-generation.md +38 -0
- package/package/corpus/skills/cratis-arc-command-typescript/references/slice-layout.md +19 -0
- package/package/corpus/skills/cratis-arc-command-typescript/verification.json +1 -1
- package/package/corpus/skills/cratis-arc-command-validation/SKILL.md +1 -1
- package/package/corpus/skills/cratis-arc-query-paging/SKILL.md +11 -10
- package/package/corpus/skills/cratis-arc-react-page/SKILL.md +30 -19
- package/package/corpus/skills/cratis-arc-react-page/references/data-page.md +11 -0
- package/package/corpus/skills/cratis-arc-react-page/references/data-tables.md +10 -0
- package/package/corpus/skills/cratis-arc-react-page/references/dialogs.md +12 -10
- package/package/corpus/skills/cratis-arc-react-page/references/from-screenplay.md +10 -0
- package/package/corpus/skills/cratis-arc-react-page/references/mvvm.md +11 -0
- package/package/corpus/skills/cratis-arc-react-page/references/queries-and-commands.md +7 -0
- package/package/corpus/skills/cratis-chronicle-client-dotnet/SKILL.md +58 -122
- package/package/corpus/skills/cratis-chronicle-client-dotnet/references/compatibility-check.md +26 -0
- package/package/corpus/skills/cratis-chronicle-client-dotnet/references/discovery.md +22 -0
- package/package/corpus/skills/cratis-chronicle-client-dotnet/references/hosting.md +31 -0
- package/package/corpus/skills/cratis-chronicle-client-elixir/SKILL.md +52 -131
- package/package/corpus/skills/cratis-chronicle-client-elixir/references/append-api.md +19 -0
- package/package/corpus/skills/cratis-chronicle-client-elixir/references/variants.md +73 -0
- package/package/corpus/skills/cratis-chronicle-client-kotlin/SKILL.md +29 -232
- package/package/corpus/skills/cratis-chronicle-client-kotlin/references/connection-lifecycle.md +20 -0
- package/package/corpus/skills/cratis-chronicle-client-kotlin/references/discovery-and-registration.md +44 -0
- package/package/corpus/skills/cratis-chronicle-client-kotlin/references/java-api.md +33 -0
- package/package/corpus/skills/cratis-chronicle-client-kotlin/references/spring-boot.md +54 -0
- package/package/corpus/skills/cratis-chronicle-client-kotlin/references/variants.md +77 -0
- package/package/corpus/skills/cratis-chronicle-client-typescript/SKILL.md +26 -102
- package/package/corpus/skills/cratis-chronicle-client-typescript/references/read-models-and-projections.md +23 -0
- package/package/corpus/skills/cratis-chronicle-client-typescript/references/variants.md +63 -0
- package/package/corpus/skills/cratis-chronicle-compliance/SKILL.md +11 -2
- package/package/corpus/skills/cratis-chronicle-event-modeling/SKILL.md +2 -2
- package/package/corpus/skills/cratis-chronicle-event-type-migration/SKILL.md +13 -13
- package/package/corpus/skills/cratis-chronicle-mcp-inspection/SKILL.md +1 -1
- package/package/corpus/skills/cratis-chronicle-projection/SKILL.md +13 -4
- package/package/corpus/skills/cratis-chronicle-projection/references/fluent-builder.md +10 -0
- package/package/corpus/skills/cratis-chronicle-projection/references/model-bound-attributes.md +14 -6
- package/package/corpus/skills/cratis-chronicle-projection/references/variants.md +9 -0
- package/package/corpus/skills/cratis-chronicle-reactor/SKILL.md +7 -49
- package/package/corpus/skills/cratis-chronicle-reactor/references/domain-failures.md +19 -0
- package/package/corpus/skills/cratis-chronicle-reactor/references/specifications.md +33 -0
- package/package/corpus/skills/cratis-chronicle-read-model/SKILL.md +2 -2
- package/package/corpus/skills/cratis-chronicle-read-model/references/queries.md +11 -0
- package/package/corpus/skills/cratis-chronicle-read-model-specifications/SKILL.md +1 -0
- package/package/corpus/skills/cratis-chronicle-reducer/SKILL.md +1 -1
- package/package/corpus/skills/cratis-chronicle-web-workbench/SKILL.md +24 -24
- package/package/corpus/skills/cratis-content-length/SKILL.md +1 -1
- package/package/corpus/skills/cratis-content-length/references/length-evidence.md +12 -0
- package/package/corpus/skills/cratis-developer-marketing/SKILL.md +19 -19
- package/package/corpus/skills/cratis-developer-marketing/references/measurement.md +10 -0
- package/package/corpus/skills/cratis-developer-marketing/references/playbook-evidence.md +10 -0
- package/package/corpus/skills/cratis-engineering-csharp-conventions/SKILL.md +5 -0
- package/package/corpus/skills/cratis-engineering-csharp-conventions/references/code-style.md +15 -0
- package/package/corpus/skills/cratis-engineering-csharp-conventions/references/exceptions-logging-and-di.md +9 -4
- package/package/corpus/skills/cratis-engineering-decision-record/SKILL.md +1 -2
- package/package/corpus/skills/cratis-engineering-decision-record/references/record-format.md +8 -0
- package/package/corpus/skills/cratis-engineering-docs-authoring/SKILL.md +1 -2
- package/package/corpus/skills/cratis-engineering-effect-boundaries/references/failure-archetypes.md +10 -0
- package/package/corpus/skills/cratis-fundamentals-concept/SKILL.md +4 -4
- package/package/corpus/skills/cratis-fundamentals-type-discovery/SKILL.md +1 -1
- package/package/corpus/skills/cratis-lens-browser-extension/SKILL.md +18 -18
- package/package/corpus/skills/cratis-performance-review/SKILL.md +1 -1
- package/package/corpus/skills/cratis-release-notes/SKILL.md +1 -0
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/SKILL.md +29 -4
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/automation-patterns.md +16 -4
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/effects-and-idempotency.md +4 -15
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/todo-list-example.md +6 -2
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/translation-patterns.md +1 -6
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/SKILL.md +45 -245
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/capture-map-and-example.md +42 -0
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/complete-examples.md +155 -0
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/specifying-triggers-and-clock.md +27 -0
- package/package/corpus/skills/cratis-screenplay-captures-and-reactions/references/trigger-reads-example.md +21 -0
- package/package/corpus/skills/cratis-screenplay-command-surface/SKILL.md +70 -221
- package/package/corpus/skills/cratis-screenplay-command-surface/references/context.md +10 -0
- package/package/corpus/skills/cratis-screenplay-command-surface/references/generated-values-and-responses.md +51 -0
- package/package/corpus/skills/cratis-screenplay-command-surface/references/inline-events.md +62 -0
- package/package/corpus/skills/cratis-screenplay-command-surface/references/policy-persona-seed.md +46 -0
- package/package/corpus/skills/cratis-screenplay-command-surface/references/validate-rules.md +36 -0
- package/package/corpus/skills/cratis-screenplay-command-surface/verification.json +11 -11
- package/package/corpus/skills/cratis-screenplay-discovery/SKILL.md +10 -3
- package/package/corpus/skills/cratis-screenplay-discovery/references/facilitation.md +1 -6
- package/package/corpus/skills/cratis-screenplay-discovery/references/human-workshop.md +13 -0
- package/package/corpus/skills/cratis-screenplay-discovery/references/personas-and-causes.md +8 -0
- package/package/corpus/skills/cratis-screenplay-discovery/references/plotting-and-handoff.md +11 -0
- package/package/corpus/skills/cratis-screenplay-discovery/references/storming-loop.md +7 -0
- package/package/corpus/skills/cratis-screenplay-event-modeling/SKILL.md +75 -198
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/file-layout.md +89 -0
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/naming-primitives.md +26 -0
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/nine-steps.md +14 -1
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/parsed-not-runnable.md +8 -0
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/provenance.md +10 -0
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/slice-type-rules.md +12 -0
- package/package/corpus/skills/cratis-screenplay-event-modeling/verification.json +12 -6
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/SKILL.md +5 -6
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/candidate-inventory.md +11 -0
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/prologue-safety.md +8 -0
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/side-car-migration.md +11 -0
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/ui-observation.md +1 -1
- package/package/corpus/skills/cratis-screenplay-model-authoring/SKILL.md +33 -10
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/language-reference.md +8 -0
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-loop.md +13 -17
- package/package/corpus/skills/cratis-screenplay-model-authoring/references/mcp-tools.md +11 -0
- package/package/corpus/skills/cratis-screenplay-model-review/SKILL.md +9 -9
- package/package/corpus/skills/cratis-screenplay-model-review/references/business-questions.md +9 -0
- package/package/corpus/skills/cratis-screenplay-model-review/references/checklist.md +16 -1
- package/package/corpus/skills/cratis-screenplay-model-review/references/report-template.md +9 -0
- package/package/corpus/skills/cratis-screenplay-model-review/references/worked-example.md +9 -0
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/SKILL.md +17 -8
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/handoff-template.md +8 -0
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/identity-and-edits.md +1 -6
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/phases.md +19 -0
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/safety.md +1 -1
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/verdicts-and-modes.md +11 -1
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/vocabulary-map.md +2 -2
- package/package/corpus/skills/cratis-screenplay-projections/SKILL.md +3 -4
- package/package/corpus/skills/cratis-screenplay-projections/references/pdl-grammar.md +8 -0
- package/package/corpus/skills/cratis-screenplay-read-surface/SKILL.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/gap-fill-handoff.md +1 -1
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/renderability-gate.md +1 -1
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/worked-example.md +8 -0
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/SKILL.md +10 -10
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/coverage-matrix.md +8 -0
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/invoicing-dues-example.md +4 -0
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-catalogue.md +17 -0
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-examples.md +10 -0
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-workshop.md +11 -0
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/view-and-story-specs.md +12 -0
- package/package/corpus/skills/cratis-screenplay-slice-design/SKILL.md +2 -2
- package/package/corpus/skills/cratis-screenplay-slice-design/references/command-inventory.md +7 -0
- package/package/corpus/skills/cratis-screenplay-slice-design/references/field-lineage.md +8 -0
- package/package/corpus/skills/cratis-screenplay-slice-design/references/read-model-design.md +16 -0
- package/package/corpus/skills/cratis-screenplay-slice-design/references/slicing.md +10 -0
- package/package/corpus/skills/cratis-screenplay-specifications/SKILL.md +52 -360
- package/package/corpus/skills/cratis-screenplay-specifications/references/actions-beyond-commands.md +34 -0
- package/package/corpus/skills/cratis-screenplay-specifications/references/concept-rules.md +77 -0
- package/package/corpus/skills/cratis-screenplay-specifications/references/generated-fixtures.md +39 -0
- package/package/corpus/skills/cratis-screenplay-specifications/references/reactions-and-cascades.md +72 -0
- package/package/corpus/skills/cratis-screenplay-specifications/references/worked-example.md +110 -0
- package/package/corpus/skills/cratis-screenplay-specifications/verification.json +6 -6
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/SKILL.md +23 -3
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/boundaries.md +13 -0
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/chronicle-boundaries.md +3 -3
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/consistency-and-concurrency.md +16 -20
- package/package/corpus/skills/cratis-screenplay-streams-and-consistency/references/stream-patterns.md +16 -0
- package/package/corpus/skills/cratis-screenplay-toolchain/SKILL.md +13 -7
- package/package/corpus/skills/cratis-screenplay-toolchain/references/diagnostics.md +10 -0
- package/package/corpus/skills/cratis-screenplay-toolchain/references/doc-contradictions.md +1 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/references/executable-subset.md +12 -2
- package/package/corpus/skills/cratis-screenplay-toolchain/references/generated-responses-example.md +1 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/references/provenance.md +2 -2
- package/package/corpus/skills/cratis-screenplay-toolchain/references/renderable-subset.md +1 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/references/traps.md +1 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/references/verdicts.md +10 -0
- package/package/corpus/skills/cratis-screenplay-toolchain/references/versions.md +15 -5
- package/package/corpus/skills/cratis-screenplay-ui-composition/SKILL.md +11 -13
- package/package/corpus/skills/cratis-screenplay-ui-composition/references/flow-review.md +1 -1
- package/package/corpus/skills/cratis-security-review/SKILL.md +13 -8
- package/package/corpus/skills/cratis-social-feed-post/SKILL.md +10 -10
- package/package/corpus/skills/cratis-social-feed-post/references/engagement-evidence.md +12 -0
- package/package/corpus/skills/cratis-specifications-csharp/SKILL.md +13 -2
- package/package/corpus/skills/cratis-specifications-csharp/references/application-scenarios.md +10 -10
- package/package/corpus/skills/cratis-specifications-csharp/references/csharp-patterns.md +10 -0
- package/package/corpus/skills/cratis-specifications-csharp/references/integration-specs.md +9 -0
- package/package/corpus/skills/cratis-specifications-typescript/SKILL.md +1 -2
- package/package/corpus/skills/cratis-specifications-typescript/references/typescript-patterns.md +11 -1
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/SKILL.md +30 -21
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/admission.md +9 -0
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/render-example.md +5 -0
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/sandbox-and-specrunner.md +2 -4
- package/package/corpus/skills/cratis-studio-mcp-safety-guidance/SKILL.md +2 -2
- package/package/corpus/skills/cratis-writing-voice-and-cadence/SKILL.md +39 -39
- package/package/corpus/skills/cratis-writing-voice-and-cadence/references/ai-tells.md +10 -0
- package/package.json +1 -1
|
@@ -323,15 +323,14 @@ What the executable model does with it (ESM v3):
|
|
|
323
323
|
**Prefer a projection where one will do.** A reducer is code, and code is the part
|
|
324
324
|
of a document a reader cannot check at a glance.
|
|
325
325
|
|
|
326
|
-
Read [pdl-grammar.md](references/pdl-grammar.md)
|
|
327
|
-
projection diagnostic codes, and worked examples.
|
|
326
|
+
Read [pdl-grammar.md](references/pdl-grammar.md) when checking exact syntax, interpreting a projection diagnostic code, or needing a worked example.
|
|
328
327
|
|
|
329
328
|
## Verify
|
|
330
329
|
|
|
331
330
|
- [ ] Standalone `screenplay <model> --warnaserror` (4.68.0) reports zero errors and zero
|
|
332
331
|
warnings; or `cratis screenplay validate --warnings-as-errors` on the model folder
|
|
333
332
|
(3.28.2 bundles the same Screenplay 4.66.0; before 3.28.2 bundled 4.60.1, ESM v5
|
|
334
|
-
or lower). Name which tool produced the result.
|
|
333
|
+
or lower). Name which tool produced the result. If it reports diagnostics, correct the model and rerun the same command; report unresolved diagnostics as blockers rather than a passing verification.
|
|
335
334
|
- [ ] Each read model has **exactly one** builder.
|
|
336
335
|
- [ ] No projection-level `key`; every `from` that must address the same
|
|
337
336
|
instance is keyed on the same identity.
|
|
@@ -351,7 +350,7 @@ projection diagnostic codes, and worked examples.
|
|
|
351
350
|
- [ ] A reducer is present only because a projection genuinely could not express it,
|
|
352
351
|
and every rule has a body in a tagged fence or a `file`.
|
|
353
352
|
|
|
354
|
-
|
|
353
|
+
Read `cratis-screenplay-toolchain` (`references/versions.md`) when selecting a tool/version or checking tool capabilities and the executable and renderable subsets. Where a construct sits in the
|
|
355
354
|
method: `cratis-screenplay-modeling-lifecycle` and `cratis-screenplay-slice-design`.
|
|
356
355
|
|
|
357
356
|
## Route near misses
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# PDL — syntax grammar, meaning and diagnostics
|
|
2
2
|
|
|
3
|
+
## Contents
|
|
4
|
+
|
|
5
|
+
- Grammar
|
|
6
|
+
- Parser regexes
|
|
7
|
+
- Diagnostics
|
|
8
|
+
- Syntax that parses but means something else
|
|
9
|
+
- Worked examples
|
|
10
|
+
|
|
3
11
|
Checked against `Documentation/screenplay/projections/{grammar,semantic-model,keys,variants}.md`
|
|
4
12
|
and `Source/DotNET/Screenplay/Parsing/ProjectionParser.cs` at Screenplay tag
|
|
5
13
|
`v4.31.0` (commit `355dffb`).
|
|
@@ -163,7 +163,7 @@ on the header line is a declaration error, not a shorthand.
|
|
|
163
163
|
|
|
164
164
|
### What runs
|
|
165
165
|
|
|
166
|
-
In the executable model
|
|
166
|
+
In the Screenplay 4.66.0 executable model, only the keyed snapshot shape binds:
|
|
167
167
|
`=> <ReadModel> optional` with one caller-supplied `by` argument and no `observable`,
|
|
168
168
|
`filter`, `scoped to` or `performer`. Anything else, including `=> <ReadModel>`
|
|
169
169
|
and `=> <ReadModel>[]`, reports `PLAY0268`. Its `authorize` gate runs before
|
|
@@ -271,7 +271,7 @@ binding failures are errors.
|
|
|
271
271
|
- [ ] Each read model has exactly one builder and every field traces to an event.
|
|
272
272
|
- [ ] No screen reference is left ambiguous or unresolved.
|
|
273
273
|
|
|
274
|
-
|
|
274
|
+
Read `references/versions.md` in `cratis-screenplay-toolchain` when choosing a tool, checking versions, or assessing executable and renderable subsets. Where a construct sits in the
|
|
275
275
|
method: `cratis-screenplay-modeling-lifecycle` and `cratis-screenplay-slice-design`.
|
|
276
276
|
|
|
277
277
|
## Route near misses
|
|
@@ -21,7 +21,7 @@ rule is in `cratis-screenplay-modeling-lifecycle` ("Decide the level first"); it
|
|
|
21
21
|
|
|
22
22
|
## Verified product sources
|
|
23
23
|
|
|
24
|
-
Version pins live once in `cratis-screenplay-toolchain` `references/versions.md`.
|
|
24
|
+
Version pins live once in `cratis-screenplay-toolchain` `references/versions.md`. Read that file before selecting the compiler and renderer versions for delivery.
|
|
25
25
|
|
|
26
26
|
| Source | Pin | Used for |
|
|
27
27
|
| --- | --- | --- |
|
|
@@ -186,8 +186,8 @@ Before reporting done:
|
|
|
186
186
|
- `references/delivery-protocol.md` - inputs, commands, reading results, `Customizations/`.
|
|
187
187
|
- `references/gap-fill-handoff.md` - the brief for `slice-implementer`, ledger flow.
|
|
188
188
|
- `references/drift-and-ledger.md` - drift, publication refusals, the fallback ledger.
|
|
189
|
-
- `references/worked-example.md`
|
|
190
|
-
- `references/provenance.md`
|
|
189
|
+
- Read `references/worked-example.md` when preparing the classification and report for a refused render; it contains a complete model.
|
|
190
|
+
- Read `references/provenance.md` when checking sources and attribution for the render workflow or gap-fill brief.
|
|
191
191
|
|
|
192
192
|
## Lineage
|
|
193
193
|
|
package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/gap-fill-handoff.md
CHANGED
|
@@ -75,7 +75,7 @@ gap-fill): the registration goes through the seams in `Customizations/Program.cs
|
|
|
75
75
|
not bind a modeled reaction or capture. Case C (no generated application): there is no generated
|
|
76
76
|
`Program.cs` or partial hook, so the registration follows the hand-written application's own
|
|
77
77
|
composition conventions (`rules/vertical-slices.md`, `cratis-chronicle-reactor`).
|
|
78
|
-
A reaction invokes a command with no caller (Screenplay has no caller syntax
|
|
78
|
+
A reaction invokes a command with no caller (Screenplay 4.68.0 has no caller syntax), so the
|
|
79
79
|
code needs a trusted path (`[ExecuteCommandsAsSystem]`, Arc 20.56.0 and later, in a rendered
|
|
80
80
|
application's Arc 22.25.0 too); never invent `runs as`.
|
|
81
81
|
|
package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/renderability-gate.md
CHANGED
|
@@ -48,7 +48,7 @@ ESM). Only the probe answers renderability. `PLAY0270` entries are information,
|
|
|
48
48
|
Read at the time of writing (all open): portable query semantics Stage#58 (list, observable and
|
|
49
49
|
filtered queries); Automation and Translate slices Stage#79; mapping expressions and projection
|
|
50
50
|
blocks Stage#117; modeled authentication Stage#120; event generation v4 Stage#165; per-persona
|
|
51
|
-
screens Stage#194
|
|
51
|
+
screens Stage#194. Check that an issue is still open before citing
|
|
52
52
|
it, and cite only numbers you have just read. A closed issue is a trigger to probe again.
|
|
53
53
|
|
|
54
54
|
## Reference outcomes
|
package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/worked-example.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Worked example: a refused render, the classification and the report
|
|
2
2
|
|
|
3
|
+
## Contents
|
|
4
|
+
|
|
5
|
+
- The model
|
|
6
|
+
- The probe
|
|
7
|
+
- Classification
|
|
8
|
+
- Decision and ledger entry
|
|
9
|
+
- The report
|
|
10
|
+
|
|
3
11
|
A marina model with one renderable command and one list view. The model compiles; `cratis render`
|
|
4
12
|
refuses it, so nothing is published. The example shows how to classify, decide and report.
|
|
5
13
|
|
|
@@ -80,7 +80,7 @@ question is not four approvals.
|
|
|
80
80
|
caller-supplied copies of state in `require`, boolean attestation inputs (`confirmsX ==
|
|
81
81
|
true`) and rules hidden in `handler`/hint prose. Never drop an unresolved given or assertion
|
|
82
82
|
to make a spec compile: record the blocked case and continue.
|
|
83
|
-
10. **Validate** the batch (V1, warnings as errors); V2/V3 when executable or renderable. The
|
|
83
|
+
10. **Validate** the batch (V1, warnings as errors); V2/V3 when executable or renderable. Fix diagnostics without dropping intended rules, prerequisites or assertions, then rerun the applicable verdicts; if the chosen mode cannot admit the construct, preserve it and report the blocked scope explicitly. The
|
|
84
84
|
phase report carries the matrix path, spec names added or changed, `recorded`, `open` and
|
|
85
85
|
`gap` cells and open questions.
|
|
86
86
|
|
|
@@ -199,17 +199,17 @@ scope is reported as explicitly incomplete); V1 passes with the tool named in
|
|
|
199
199
|
`cratis-specifications-csharp`.
|
|
200
200
|
|
|
201
201
|
## References (load on demand)
|
|
202
|
-
- `references/scenario-catalogue.md` - each type: ask, applies when, n/a when, shape, traps; example data.
|
|
203
|
-
- `references/view-and-story-specs.md` - view specs, lifecycle families, ordering, lag.
|
|
204
|
-
- `references/coverage-matrix.md` - obligations from declarations, template, worked matrix.
|
|
202
|
+
- `references/scenario-catalogue.md` - each type: ask, applies when, n/a when, shape, traps; example data. Read when deciding applicability, eliciting cases or choosing example data.
|
|
203
|
+
- `references/view-and-story-specs.md` - view specs, lifecycle families, ordering, lag. Read before deciding each view's lifecycle family and drafting view specifications.
|
|
204
|
+
- `references/coverage-matrix.md` - obligations from declarations, template, worked matrix. Read before constructing or reconciling the coverage matrix.
|
|
205
205
|
- `references/scenario-examples.md` - compact worked examples per category, good and bad forms,
|
|
206
206
|
list and todo-list views; copied from the complete `references/invoicing-dues-example.md`
|
|
207
207
|
(runnable) and, for compensation, `references/invoicing-dues-design.md` (design mode: holds the
|
|
208
|
-
stored-state rules, does not bind).
|
|
209
|
-
- `references/scenario-workshop.md` - facilitation guide for group scenario sessions.
|
|
210
|
-
- `references/chronicle-verification.md` - guarantees that need more than a `.play` outcome.
|
|
211
|
-
- `references/spec-forms-by-mode.md` - admitted forms in design, executable, renderable.
|
|
212
|
-
- `references/berth-reservations.md` - complete compiled example (marina guest berths).
|
|
208
|
+
stored-state rules, does not bind). Read `references/scenario-examples.md` when drafting a category and you need good/bad or worked specification forms; read `references/invoicing-dues-example.md` when you need the complete executable declarations behind the invoicing excerpts; read `references/invoicing-dues-design.md` when specifying stored-state invoicing rules or their compensation scenarios in design mode.
|
|
209
|
+
- `references/scenario-workshop.md` - facilitation guide for group scenario sessions. Read when facilitating a group scenario session.
|
|
210
|
+
- `references/chronicle-verification.md` - guarantees that need more than a `.play` outcome. Read when a claimed guarantee needs in-process or real-kernel evidence beyond `.play` outcomes.
|
|
211
|
+
- `references/spec-forms-by-mode.md` - admitted forms in design, executable, renderable. Read after choosing the mode and before drafting its admitted specification forms.
|
|
212
|
+
- `references/berth-reservations.md` - complete compiled example (marina guest berths). Read when you need a complete design-mode example of a coverage matrix realized as specifications.
|
|
213
213
|
|
|
214
214
|
## Lineage
|
|
215
|
-
Attribution and adapted sources: `references/provenance.md`.
|
|
215
|
+
Attribution and adapted sources: `references/provenance.md`. Read `references/provenance.md` when checking attribution or how an adapted practice differs from its source.
|
package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/coverage-matrix.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Coverage matrix
|
|
2
2
|
|
|
3
|
+
## Contents
|
|
4
|
+
|
|
5
|
+
- Cell values
|
|
6
|
+
- Derive obligations from the model
|
|
7
|
+
- Template: commands, reactions, captures
|
|
8
|
+
- Template: read models
|
|
9
|
+
- Worked example (`berth-reservations.md`, design mode)
|
|
10
|
+
|
|
3
11
|
Write it **before** drafting specs, keep it in `.ai-work/screenplay/<model-slug>/coverage.md` (or the
|
|
4
12
|
`STATE.md` beside it), and update it with the specs. Reviewers check it against the model. The Screenplay MCP does not yet report which specifications a command, read model, policy or constraint still lacks (Screenplay#390, open, not available): the matrix is that report, built by hand from the declarations.
|
|
5
13
|
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Invoicing and dues: worked example for the scenario-examples excerpts
|
|
2
2
|
|
|
3
|
+
## Contents
|
|
4
|
+
|
|
5
|
+
- Notes
|
|
6
|
+
|
|
3
7
|
Complete executable model (harbor club dues) holding every declaration the excerpts in
|
|
4
8
|
`scenario-examples.md` and `view-and-story-specs.md` rely on, except the stored-state rules. Each
|
|
5
9
|
of those excerpts is copied verbatim from the fence below (names are the specification names),
|
package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-catalogue.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# Scenario catalogue
|
|
2
2
|
|
|
3
|
+
## Contents
|
|
4
|
+
|
|
5
|
+
- Eliciting cases
|
|
6
|
+
- 1. Happy path
|
|
7
|
+
- 2. Rule rejection (one per rule)
|
|
8
|
+
- 3. Authorization denial
|
|
9
|
+
- 4. State violation
|
|
10
|
+
- 5. Duplicate action and retry
|
|
11
|
+
- 6. Competing claim (concurrency)
|
|
12
|
+
- 7. Alternative path
|
|
13
|
+
- 8. Ordering and timing
|
|
14
|
+
- 9. External failure
|
|
15
|
+
- 10. Compensation
|
|
16
|
+
- 11. Evolution compatibility
|
|
17
|
+
- 12. Views
|
|
18
|
+
- Example data
|
|
19
|
+
|
|
3
20
|
For each type: the question to put to the domain, when it applies, when "n/a" is a legitimate
|
|
4
21
|
answer, the Screenplay shape, and traps. Excerpts point to the complete compiled example
|
|
5
22
|
`berth-reservations.md` (marina guest berths). An `n/a` must name a domain reason; a
|
package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-examples.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Scenario examples, category by category
|
|
2
2
|
|
|
3
|
+
## Contents
|
|
4
|
+
|
|
5
|
+
- Good and bad forms
|
|
6
|
+
- 1. Command: success, rule rejection and denial
|
|
7
|
+
- 2. Command: state violations
|
|
8
|
+
- 3. External failure: the capture, then the retry
|
|
9
|
+
- 4. Compensation
|
|
10
|
+
- 5. Views: population, update, accumulation
|
|
11
|
+
- 6. Views: list contents and the empty list
|
|
12
|
+
|
|
3
13
|
Compact examples for each scenario category, in one invoicing domain so the shapes compare
|
|
4
14
|
easily. Every excerpt below is copied verbatim from the complete document in
|
|
5
15
|
`invoicing-dues-example.md`, which compiles with warnings as errors and whose 21 specifications
|
package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-workshop.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Scenario workshop (human facilitation guide)
|
|
2
2
|
|
|
3
|
+
## Contents
|
|
4
|
+
|
|
5
|
+
- Before the workshop
|
|
6
|
+
- During: one command at a time
|
|
7
|
+
- During: one view at a time
|
|
8
|
+
- Reading back
|
|
9
|
+
- Multi-role check (before leaving the room)
|
|
10
|
+
- Common mistakes
|
|
11
|
+
- Tips for rapid capture
|
|
12
|
+
- Rules of thumb, deliberately different from the source guide
|
|
13
|
+
|
|
3
14
|
Use this when scenarios are written together with business people, developers and testers
|
|
4
15
|
instead of by one author. The facilitation structure is adapted from the Workshop Facilitation
|
|
5
16
|
Guide in TrogonStack `eventmodeling-elaborating-scenarios` (MIT; see `provenance.md`) and
|
package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/view-and-story-specs.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# View specifications and lifecycle families
|
|
2
2
|
|
|
3
|
+
## Contents
|
|
4
|
+
|
|
5
|
+
- Per read model, decide before drafting
|
|
6
|
+
- Required specs per projected read model
|
|
7
|
+
- Lifecycle families (storyline emulation)
|
|
8
|
+
- Worked family: a todo list
|
|
9
|
+
- Removal is a positive obligation
|
|
10
|
+
- Ordering, lag and rebuild
|
|
11
|
+
- Performer-backed views (no events build them)
|
|
12
|
+
- Cross-context views
|
|
13
|
+
- Gated views
|
|
14
|
+
|
|
3
15
|
Views cannot reject a stored fact, so view specs have no error cases. They answer: after these
|
|
4
16
|
facts, what does the screen (or automation input) show?
|
|
5
17
|
|
|
@@ -211,7 +211,7 @@ Examples compile with `screenplay` 4.68.0 `--warnaserror` and `cratis screenplay
|
|
|
211
211
|
|
|
212
212
|
- V1 (V3 if executable/renderable) passes, naming tool and version. Walk the Gate (every element ok / exempt with reason / gap); each persona `Cannot` line has a
|
|
213
213
|
gate plus a denied spec, or is a gap.
|
|
214
|
-
- Worked reference: `references/worked-example.md` (design mode, compiles clean).
|
|
214
|
+
- Worked reference: `references/worked-example.md` (design mode, compiles clean). Read when you need a complete design-mode example to compare with command inventories, lineage, and state-transition tables.
|
|
215
215
|
|
|
216
216
|
## Route near misses
|
|
217
217
|
|
|
@@ -235,4 +235,4 @@ Examples compile with `screenplay` 4.68.0 `--warnaserror` and `cratis screenplay
|
|
|
235
235
|
|
|
236
236
|
## Lineage
|
|
237
237
|
|
|
238
|
-
Attribution: `references/provenance.md`.
|
|
238
|
+
Attribution: `references/provenance.md`. Read when checking source attribution or adaptation history.
|
package/package/corpus/skills/cratis-screenplay-slice-design/references/command-inventory.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Command design and the per-command refusal inventory
|
|
2
2
|
|
|
3
|
+
## Contents
|
|
4
|
+
|
|
5
|
+
- Command card
|
|
6
|
+
- The inventory
|
|
7
|
+
- Filled for `worked-example.md`
|
|
8
|
+
- Common mistakes
|
|
9
|
+
|
|
3
10
|
For every command, record what it needs, where each input comes from, how it can succeed and
|
|
4
11
|
every way it can be refused. The inventory is the design output that
|
|
5
12
|
`cratis-screenplay-scenario-coverage` consumes: each refusal becomes a specification there,
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Field lineage
|
|
2
2
|
|
|
3
|
+
## Contents
|
|
4
|
+
|
|
5
|
+
- Where values come from, per element
|
|
6
|
+
- The matrix
|
|
7
|
+
- The reason line per contributing event
|
|
8
|
+
- Gap handling
|
|
9
|
+
- Adding or renaming a field along a chain (manual checklist)
|
|
10
|
+
|
|
3
11
|
Every value in the model has a place it comes from and a place it goes. If you cannot say
|
|
4
12
|
where a field comes from, the model is missing an input, an event field or a decision. If an
|
|
5
13
|
event field goes nowhere, ask why it is recorded (audit and history are valid answers; say so).
|
package/package/corpus/skills/cratis-screenplay-slice-design/references/read-model-design.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Read-model design
|
|
2
2
|
|
|
3
|
+
## Contents
|
|
4
|
+
|
|
5
|
+
- Start from the consumer
|
|
6
|
+
- The typical slice pattern
|
|
7
|
+
- Events or views
|
|
8
|
+
- Components
|
|
9
|
+
- Fan-in per field
|
|
10
|
+
- Builder and freshness
|
|
11
|
+
- Query shape follows the business view
|
|
12
|
+
- No clock-relative state
|
|
13
|
+
- Who may see what
|
|
14
|
+
- Collections and many-at-once
|
|
15
|
+
- Building it
|
|
16
|
+
- Omissions are decisions
|
|
17
|
+
- Checks before handing off
|
|
18
|
+
|
|
3
19
|
## Start from the consumer
|
|
4
20
|
|
|
5
21
|
List every consumer before designing any read model: each screen area a person looks at, and
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Slicing, state transitions and the next slice
|
|
2
2
|
|
|
3
|
+
## Contents
|
|
4
|
+
|
|
5
|
+
- Slices are the authoring unit
|
|
6
|
+
- Slice dependencies
|
|
7
|
+
- State-transition table (per entity)
|
|
8
|
+
- Generic edits
|
|
9
|
+
- Rule coverage
|
|
10
|
+
- Slice audit
|
|
11
|
+
- The next slice
|
|
12
|
+
|
|
3
13
|
## Slices are the authoring unit
|
|
4
14
|
|
|
5
15
|
In Screenplay every construct already lives in a typed slice, so slicing is not a separate
|