@cratis/pi 7.48.3 → 7.49.0

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.
Files changed (79) hide show
  1. package/package/corpus/agents/backend-developer.md +1 -1
  2. package/package/corpus/agents/screenplay-modeler.md +2 -1
  3. package/package/corpus/agents/screenplay-renderer.md +2 -2
  4. package/package/corpus/agents/screenplay-reviewer.md +1 -1
  5. package/package/corpus/agents/slice-implementer.md +15 -5
  6. package/package/corpus/harnesses/copilot/instructions/application-profile.instructions.md +3 -3
  7. package/package/corpus/harnesses/copilot/instructions/csharp.instructions.md +3 -1
  8. package/package/corpus/harnesses/copilot/instructions/glossary.instructions.md +3 -3
  9. package/package/corpus/harnesses/copilot/instructions/vertical-slices.instructions.md +6 -3
  10. package/package/corpus/hooks/README.md +28 -1
  11. package/package/corpus/hooks/scripts/cratis-guard-writes.sh +75 -0
  12. package/package/corpus/prompts/add-projection.prompt.md +2 -1
  13. package/package/corpus/prompts/add-reducer.prompt.md +6 -4
  14. package/package/corpus/rules/application-profile.md +3 -3
  15. package/package/corpus/rules/csharp.md +3 -1
  16. package/package/corpus/rules/glossary.md +3 -3
  17. package/package/corpus/rules/vertical-slices.md +6 -3
  18. package/package/corpus/skills/cratis-application-slice-conformance/LICENSE +5 -0
  19. package/package/corpus/skills/cratis-application-slice-conformance/references/build-prompts.md +38 -19
  20. package/package/corpus/skills/cratis-application-slice-conformance/references/checklists.md +4 -0
  21. package/package/corpus/skills/cratis-application-slice-conformance/references/provenance.md +17 -0
  22. package/package/corpus/skills/cratis-application-slice-specifications/SKILL.md +27 -0
  23. package/package/corpus/skills/cratis-application-slice-specifications/references/provenance.md +6 -0
  24. package/package/corpus/skills/cratis-chronicle-client-dotnet/SKILL.md +16 -33
  25. package/package/corpus/skills/cratis-chronicle-client-dotnet/references/discovery.md +92 -7
  26. package/package/corpus/skills/cratis-chronicle-event-modeling/LICENSE +5 -0
  27. package/package/corpus/skills/cratis-chronicle-event-modeling/SKILL.md +4 -1
  28. package/package/corpus/skills/cratis-chronicle-projection/SKILL.md +18 -10
  29. package/package/corpus/skills/cratis-chronicle-reactor/references/provenance.md +6 -0
  30. package/package/corpus/skills/cratis-chronicle-reactor/references/slice-delivery-checklist.md +5 -0
  31. package/package/corpus/skills/cratis-chronicle-read-model/SKILL.md +46 -18
  32. package/package/corpus/skills/cratis-chronicle-read-model-specifications/SKILL.md +34 -14
  33. package/package/corpus/skills/cratis-chronicle-reducer/SKILL.md +194 -38
  34. package/package/corpus/skills/cratis-screenplay-discovery/LICENSE +5 -0
  35. package/package/corpus/skills/cratis-screenplay-discovery/SKILL.md +3 -0
  36. package/package/corpus/skills/cratis-screenplay-discovery/references/domain-analysis-template.md +26 -1
  37. package/package/corpus/skills/cratis-screenplay-discovery/references/provenance.md +9 -0
  38. package/package/corpus/skills/cratis-screenplay-event-modeling/LICENSE +5 -0
  39. package/package/corpus/skills/cratis-screenplay-event-modeling/SKILL.md +7 -5
  40. package/package/corpus/skills/cratis-screenplay-event-modeling/references/provenance.md +10 -0
  41. package/package/corpus/skills/cratis-screenplay-legacy-extraction/LICENSE +5 -0
  42. package/package/corpus/skills/cratis-screenplay-legacy-extraction/SKILL.md +31 -34
  43. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/evidence-table-template.md +64 -2
  44. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/expert-verification.md +18 -1
  45. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/interview-findings.md +5 -2
  46. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/loss-report-template.md +5 -0
  47. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/provenance.md +20 -0
  48. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/re-entry-and-passes.md +89 -0
  49. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/rule-modeling.md +9 -0
  50. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/signal-to-intent.md +28 -1
  51. package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/ui-observation.md +4 -0
  52. package/package/corpus/skills/cratis-screenplay-legacy-extraction/verification.json +4 -0
  53. package/package/corpus/skills/cratis-screenplay-model-review/LICENSE +5 -0
  54. package/package/corpus/skills/cratis-screenplay-model-review/SKILL.md +5 -0
  55. package/package/corpus/skills/cratis-screenplay-model-review/references/checklist.md +1 -1
  56. package/package/corpus/skills/cratis-screenplay-model-review/references/model-inventory-report.md +11 -0
  57. package/package/corpus/skills/cratis-screenplay-model-review/references/provenance.md +10 -0
  58. package/package/corpus/skills/cratis-screenplay-model-review/references/stressor-analysis.md +74 -0
  59. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/LICENSE +5 -0
  60. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/SKILL.md +12 -11
  61. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/delivery-protocol.md +2 -2
  62. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/{drift-and-ledger.md → drift-and-fallback-record.md} +53 -6
  63. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/gap-fill-handoff.md +12 -11
  64. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/provenance.md +11 -1
  65. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/renderability-gate.md +3 -3
  66. package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/worked-example.md +2 -2
  67. package/package/corpus/skills/cratis-screenplay-scenario-coverage/LICENSE +5 -0
  68. package/package/corpus/skills/cratis-screenplay-scenario-coverage/SKILL.md +6 -6
  69. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/coverage-matrix.md +7 -0
  70. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/provenance.md +9 -0
  71. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-catalogue.md +29 -3
  72. package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-examples.md +2 -0
  73. package/package/corpus/skills/cratis-screenplay-slice-design/LICENSE +5 -0
  74. package/package/corpus/skills/cratis-screenplay-slice-design/SKILL.md +5 -4
  75. package/package/corpus/skills/cratis-screenplay-slice-design/references/command-inventory.md +64 -0
  76. package/package/corpus/skills/cratis-screenplay-slice-design/references/field-lineage.md +24 -0
  77. package/package/corpus/skills/cratis-screenplay-slice-design/references/provenance.md +10 -0
  78. package/package/corpus/skills/cratis-screenplay-specifications/SKILL.md +1 -0
  79. package/package.json +1 -1
@@ -0,0 +1,74 @@
1
+ # Stressor analysis (optional resilience pass)
2
+
3
+ The critic review asks whether the model is correct and complete. This pass asks how the model
4
+ behaves when the world changes: an outside partner disappears, a rule of law changes, a person
5
+ leaves. Run it on request, or for business-critical scope, after the critic review and before
6
+ acceptance. It reads the model and proposes edit requests; it never edits. The method is
7
+ residuality theory (Barry O'Reilly), applied to event models in the Eventmodelers work of
8
+ Martin Dilger and Nebulit GmbH, which this reference adapts closely (`provenance.md`).
9
+
10
+ ## Contents
11
+
12
+ - Procedure
13
+ - Incidence matrix
14
+ - Redesign proposals
15
+ - Output
16
+
17
+ ## Procedure
18
+
19
+ 1. **Scope, read once.** One feature or module at a fixed source revision. Inventory its slices,
20
+ commands, events, read models, reactions, captures and personas from the `.play` files or the
21
+ MCP views, never from memory.
22
+ 2. **Stressors.** About fifteen, deliberately wide, in business words and without mechanics. Draw
23
+ most from outside the model (people, law, market, nature, partners, the organization itself)
24
+ and the rest from inside the domain. Alternate the two. Their value is variety, not
25
+ likelihood.
26
+ 3. **Residue per stressor.** One sentence each: which slices still work, which facts are still
27
+ recorded, which views go stale or wrong, who is not told. A residue is observed, not
28
+ designed. A fix is not a residue.
29
+ 4. **The person decides** which residues are unacceptable, because that is a business decision.
30
+ Unattended, record each as a question with an assumed default (lifecycle
31
+ `references/stop-or-assume.md`) and say so in the report.
32
+ 5. **Incidence matrix** (below). Name the shared cause of every cluster.
33
+ 6. **Redesign proposals** for one cluster at a time (below). State the new residue for each
34
+ stressor.
35
+ 7. **Validate with fresh stressors** not used before. Report the share of acceptable residues
36
+ before and after. Stop when new stressors stop hitting declarations that were not hit before.
37
+
38
+ Do not invent requirements. A stressor is a question about the business, answered by the person,
39
+ not a feature to add.
40
+
41
+ ## Incidence matrix
42
+
43
+ A Markdown table in the review report: one row per declaration a stressor hits, one column per
44
+ unacceptable stressor, sorted by how many stressors hit the row. Declarations hit by the same
45
+ stressors are hidden coupling: name the shared cause (one outside system, one persona, one
46
+ clock). A cluster that crosses modules is boundary evidence for
47
+ `cratis-screenplay-streams-and-consistency`.
48
+
49
+ | Declaration | Partner outage | Law change | Key person leaves | Hits |
50
+ |---|---|---|---|---|
51
+ | `ConfirmPayment` | x | x | | 2 |
52
+ | `PaymentStatus` | x | | x | 2 |
53
+
54
+ ## Redesign proposals
55
+
56
+ Each proposal is an edit request, written like every other review fix (address, change,
57
+ reason). Typical shapes, most of them Translate or Automation slices
58
+ (`cratis-screenplay-automations-and-translations`):
59
+
60
+ - an outside dependency: a `capture` and a Translate slice, so outside facts arrive as our own
61
+ events instead of being read live;
62
+ - reconciliation: a todo-list view plus a `reaction`, so work that could not finish is visible
63
+ and retried;
64
+ - a grace period or expiry: an event raised on a clock trigger;
65
+ - a blocked actor: a second command origin or persona;
66
+ - an undo: a compensating command.
67
+
68
+ Persisted events and accepted slices are not changed. New slices go beside them, and identity
69
+ ownership follows the lifecycle (`cratis-screenplay-modeling-lifecycle`).
70
+
71
+ ## Output
72
+
73
+ The matrix plus the edit requests, in the review report. Every finding is pinned to a
74
+ declaration like any other finding.
@@ -7,3 +7,8 @@ This skill adapts material from agentic-engineer by Martin Dilger and Nebulit Gm
7
7
  (https://github.com/Nebulit-GmbH/agentic-engineer, commit 07b0f30648d663cb588d7e2c7aa031af9dfc21f2;
8
8
  https://nebulit.de), used with the explicit consent of Martin Dilger and Nebulit GmbH. The adapted
9
9
  material remains credited to Martin Dilger and Nebulit GmbH.
10
+
11
+ This skill also adapts material from the Eventmodelers Build-Kits skills by Martin Dilger and
12
+ Nebulit GmbH (https://github.com/Nebulit-GmbH/Eventmodelers-Build-Kits; https://nebulit.de), used
13
+ with the explicit consent of Martin Dilger and Nebulit GmbH. The adapted material remains credited
14
+ to Martin Dilger and Nebulit GmbH.
@@ -121,9 +121,9 @@ model still compiles and binds) and its V5 states the scope.
121
121
  3. **When admission fails** (case A) present the options, the user decides:
122
122
  (a) keep design mode and record the gaps; (b) narrow to renderable mode, where the modeler
123
123
  changes the model for business reasons and **without** removing protection (`pii`,
124
- authorization, rules); (c) deliver the non-renderable scope by hand (case C), with a ledger
125
- entry (`references/drift-and-ledger.md`); (d) render the admitted part with `--scope` and gap-fill the rest
126
- (case B).
124
+ authorization, rules); (c) deliver the non-renderable scope by hand (case C), with a fallback
125
+ record entry (`references/drift-and-fallback-record.md`); (d) render the admitted part with
126
+ `--scope` and gap-fill the rest (case B).
127
127
  4. **Publish.** The probe destination by default. Another destination needs the user's intent;
128
128
  `--force` needs approval naming its effect and destination (a request that already names them
129
129
  counts). Read the receipt: written, unchanged, removed, `recovered`. `recovered: true` means
@@ -143,8 +143,9 @@ model still compiles and binds) and its V5 states the scope.
143
143
  default composition is a failure (Stage 4.24 rendered the default composition only).
144
144
  8. **Drift:** `cratis render ... --check` (exit 6 pending); also compare the manifest's `semanticRevision`
145
145
  with a fresh render under the same inputs. For hand-written scope, `cratis screenplay conform` gives
146
- structural code-vs-model evidence (`references/drift-and-ledger.md`).
147
- 9. **Hand off** the packet: verdict lines, spec mapping, edit requests for the modeler, ledger
146
+ structural code-vs-model evidence (`references/drift-and-fallback-record.md`). For changes since verification,
147
+ follow that reference's "Hand-written code changed since it was last verified" procedure.
148
+ 9. **Hand off** the packet: verdict lines, spec mapping, edit requests for the modeler, fallback record
148
149
  entries, UI omissions, learning candidates (at most 3).
149
150
 
150
151
  ## Hand-written parts
@@ -155,7 +156,7 @@ Adapters and non-renderable scope follow the contract rules of `cratis-applicati
155
156
 
156
157
  - Hand-written scope is `done` only when no specification lacks an executable equivalent
157
158
  (`cratis-application-slice-conformance` `references/build-prompts.md`).
158
- - One ledger scope per `slice-implementer` brief; the brief carries addresses and paths, not contents.
159
+ - One scope per `slice-implementer` brief; the brief carries addresses and paths, not contents.
159
160
  - Model-enforced rules realized in code (state-dependent rules) need a protected read or
160
161
  concurrency scope; never claim them from prose. Stage 4.89.1 rendered apps scaffold
161
162
  the Arc/Chronicle set in `cratis-stage-rendering-and-sandbox` `references/rendered-application.md`; API availability alone is not verified enforcement.
@@ -173,7 +174,7 @@ Adapters and non-renderable scope follow the contract rules of `cratis-applicati
173
174
  - Code reading is bounded: `Customizations/*`, the file and line a build or test error names,
174
175
  and the declared hooks. Never browse managed output, `bin/` or `obj/`.
175
176
  - `description` and `documentation` reach rendered code only as XML documentation comments (Stage#178),
176
- never as behavior. A rule stated only in prose is unenforced: ledger entry or target requirement,
177
+ never as behavior. A rule stated only in prose is unenforced: fallback record entry or target requirement,
177
178
  never "delivered".
178
179
  - The `cratis run` sandbox enforces neither validation nor authorization on its default engine; it
179
180
  is no evidence for denial behaviour.
@@ -190,13 +191,13 @@ Adapters and non-renderable scope follow the contract rules of `cratis-applicati
190
191
  Before reporting done:
191
192
  - Source identity, tool versions, `--name` and destination are recorded.
192
193
  - V5 is four lines: admission, publication, build (Debug), tests (Debug), each a result or `not run: <reason>`.
193
- - Every diagnostic is classified; every non-renderable scope has a ledger entry or the user's decision to stay in design mode.
194
+ - Every diagnostic is classified; every non-renderable scope has a fallback record entry or the user's decision to stay in design mode.
194
195
  - No managed file was edited; no `--force` without approval naming it.
195
196
 
196
197
  ## Verify
197
198
 
198
199
  - Expected specifications versus generated classes versus passed, listed; a count is not a mapping.
199
- - Fallback delivery: the ledger entry maps specifications to tests, records the field inventory
200
+ - Fallback delivery: the fallback record entry maps specifications to tests, records the field inventory
200
201
  and divergences, and `cratis-application-slice-conformance` returned a status.
201
202
  - A passing test does not claim runtime guarantees (namespace, subject, constraint scope, guarded
202
203
  reads, migrations, replay) or omitted UI were delivered.
@@ -217,8 +218,8 @@ Before reporting done:
217
218
 
218
219
  - `references/renderability-gate.md` - classify the probe's codes, estimate the blast radius.
219
220
  - `references/delivery-protocol.md` - inputs, commands, reading results, `Customizations/`.
220
- - `references/gap-fill-handoff.md` - the brief for `slice-implementer`, ledger flow.
221
- - `references/drift-and-ledger.md` - drift, publication refusals, the fallback ledger.
221
+ - `references/gap-fill-handoff.md` - the brief for `slice-implementer`, fallback record flow.
222
+ - `references/drift-and-fallback-record.md` - drift, publication refusals, the fallback record, code changed since verification.
222
223
  - Read `references/worked-example.md` when preparing the classification and report for a refused render; it contains a complete model.
223
224
  - Read `references/provenance.md` when checking sources and attribution for the render workflow or gap-fill brief.
224
225
 
@@ -49,7 +49,7 @@ file (for example `--logger "trx"` with a results directory under the probe fold
49
49
  - **Admission:** ok, or error codes classified with `renderability-gate.md`.
50
50
  - **Publication:** written, unchanged and removed counts, plus `recovered`. `refused` when a managed file
51
51
  was modified, an unmanaged file sits on a planned path, a modified stale file would be removed,
52
- or the manifest identity changed (`drift-and-ledger.md`). Ok means `recovered: false` and
52
+ or the manifest identity changed (`drift-and-fallback-record.md`). Ok means `recovered: false` and
53
53
  `written + unchanged` equal to the artifact count (for a `--scope` render, the scope's artifacts: other
54
54
  scopes' files are preserved and never counted; compare against the receipt's `owners`/`sources` for the
55
55
  selected slices and the `orphaned` list). The receipt's `sources` (CLI 3.45.0 or later) map generated files back to
@@ -100,7 +100,7 @@ rejected model renderable, and never turns a refusal into a V5 pass.
100
100
  ## 5. Done check (before reporting)
101
101
  - Every modeled specification in the rendered scope has a generated class family that passed.
102
102
  - No hand-written behaviour duplicates or extends a rendered slice.
103
- - Seam adapters only serve named seams; authorized business gap-fill is in the ledger; no managed file was edited.
103
+ - Seam adapters only serve named seams; authorized business gap-fill is in the fallback record; no managed file was edited.
104
104
  - UI omissions are listed: modeled screens, forms, layouts, themes and persona views that the
105
105
  default composition does not render.
106
106
  - V5 is reported as four lines, with the scope it covers stated. The runtime (`docker compose
@@ -1,4 +1,12 @@
1
- # Drift, publication refusals and the fallback ledger
1
+ # Drift, publication refusals and the fallback record
2
+
3
+ ## Contents
4
+
5
+ - 1. Drift: the model changed, the output was not re-rendered
6
+ - 2. Publication refusals (code changed under the model)
7
+ - 3. Build breaks in `Customizations/` after a re-render
8
+ - Hand-written code changed since it was last verified
9
+ - 4. Fallback record
2
10
 
3
11
  ## 1. Drift: the model changed, the output was not re-rendered
4
12
  The ownership manifest `.cratis-render.json` at the destination records `semanticRevision`
@@ -59,10 +67,40 @@ Re-render checklist: `cratis-stage-rendering-and-sandbox` `references/rendered-a
59
67
  A generated contract changed. Read the error line and the generated type it names, fix the
60
68
  adapter, rebuild. Never edit the generated file.
61
69
 
62
- ## 4. Fallback ledger
63
- One file per model: `.ai-work/screenplay/<model-slug>/fallback-ledger.md`, untracked. A durable
64
- record belongs in repository documentation or an issue, not in the ledger file. One entry per
65
- non-renderable scope:
70
+ ## Hand-written code changed since it was last verified
71
+
72
+ Use the fallback record's `last verified` code source identity, or the extraction's analysis
73
+ history, as the baseline. If it is missing, unreachable or includes uncommitted changes, ask for
74
+ an agreed starting commit; do not replace that question with a whole-repository comparison.
75
+
76
+ 1. List commits oldest first over the recorded files, shared seams and `Customizations/`, then
77
+ inspect each commit's changes per file. Include current uncommitted changes separately; a net
78
+ diff can hide a hand edit followed by another delivery.
79
+ 2. Separate behavior changes from dependency, CI, formatting and documentation noise. Ignore
80
+ work records and corpus configuration; Stage-managed output belongs to the manifest refusal
81
+ procedure above. Do not dismiss a changed rule merely because its commit also contains noise.
82
+ 3. Locate affected slices through the record's element map, field inventory and specification
83
+ mapping, then structural addresses from `cratis screenplay conform`, then names as a last
84
+ resort. Read only the contracts and changed code those mappings identify.
85
+ 4. Report each difference once, at the declaration where it begins: fields, rules/specifications,
86
+ screens, wiring (`produces`, `reads`, reaction or capture triggers), declarations or a whole
87
+ slice. Model-only work is planned delivery, not a code-change finding. A change restoring
88
+ conformance or an approved, recorded divergence is not a new finding.
89
+ 5. With an accepted model, restore the code to its contract by re-delivery, or return an explicit
90
+ model edit request through the modeler, review and acceptance, naming identity effects.
91
+ Accidental edits favor restoration; never silently revise the model to fit code. For an
92
+ extraction with no accepted model, propose updating the candidate from the new evidence,
93
+ retaining expert confirmation rather than treating the code as an accepted decision.
94
+
95
+ Advance `last verified` only after every finding has a decided resolution and the resulting
96
+ code has been checked. An unanswered finding keeps the baseline unchanged. This investigation
97
+ and `conform` are not behavioral equivalence verdicts; passing specifications remain necessary.
98
+
99
+ ## 4. Fallback record
100
+ One file per model: `.ai-work/screenplay/<model-slug>/fallback-record.md`, untracked. A durable
101
+ record belongs in repository documentation or an issue, not in this work record. Use the same
102
+ fields for a hand-written slice's result packet; add probe-specific fields only where applicable.
103
+ One entry per assigned scope, with realization rows per slice:
66
104
 
67
105
  | Field | Content |
68
106
  | --- | --- |
@@ -72,13 +110,22 @@ non-renderable scope:
72
110
  | class | capability gap / tool skew / model fix pending |
73
111
  | decision | stay design / renderable-mode change (user, date) / implementer |
74
112
  | fallback location | project and folder of the hand-written code |
113
+ | delivered at | delivery code source identity, using the lifecycle's source-identity definition; name the accepted model identity separately |
114
+ | element map | one row per qualified command, event, read model, query, screen, reaction or capture declaration: code symbol and repository-relative file location, or `no counterpart, because …` |
115
+ | files | created and modified paths, distinguished |
116
+ | seams touched outside the slice folder | each shared path, symbol and reason (registration, route, migration or adapter hook), or `none`; retain these for removal or re-delivery |
117
+ | assumptions | each declaration address, non-behavioral choice and consequence if wrong, or `none`; the delivery block list wins |
118
+ | checks run | exact iteration and completion commands, each with result or `not run: <reason>` |
75
119
  | spec mapping | `.play` specification to test name, one line each; missing tests listed |
76
120
  | field inventory | `n/n` command, event and read-model properties mapped; extras: none, or listed with reason |
77
121
  | realization requirements applied | explicit realization notes from slice `description` or `documentation` applied, one line each; other description prose used as a hint is listed separately |
78
122
  | spec delta | at re-delivery: specifications added, changed or removed since `last verified`, each with test status |
79
123
  | divergences | where the code deliberately differs from the model, with reason and approver |
80
124
  | revisit trigger | issue and condition (for example "Stage#58 ships list queries") |
81
- | last verified | source identity and date the mapping was checked |
125
+ | last verified | accepted model identity, code source identity and date the whole mapping and check results were reconciled |
126
+
127
+ Keep one row per element, field and specification, with no code excerpts. These mappings help a
128
+ reviewer navigate; they are not proof of behavior without the checks they name.
82
129
 
83
130
  When a revisit trigger fires, probe again; if the scope now renders, plan the migration from
84
131
  hand-written code to managed output with the user.
@@ -16,11 +16,11 @@ reconciliation, specification mapping, delta delivery and the final status are o
16
16
  comes back.
17
17
 
18
18
  ## One scope per brief
19
- One ledger entry (`drift-and-ledger.md`), one scope, one implementer. The brief is a set of
20
- paths and addresses, not pasted contents:
19
+ One fallback record entry (`drift-and-fallback-record.md`), one scope, one implementer. The brief
20
+ is a set of paths and addresses, not pasted contents:
21
21
  - model root, source identity, the qualified slice addresses (`Module/Feature/Slice`) in scope,
22
22
  their specifications and the referenced contract locations;
23
- - the blocking codes from the probe and the ledger entry id;
23
+ - the blocking codes from the probe and the fallback record entry id;
24
24
  - target project, owned paths, and the repository's conventions (Arc and Chronicle hand-written
25
25
  slices; `rules/vertical-slices.md`);
26
26
  - the skill per slice kind: State Change `cratis-screenplay-command-surface`; State View
@@ -45,9 +45,9 @@ The brief also carries, from the slice build prompts (`cratis-application-slice-
45
45
  `done` only if every scenario in the contract is implemented and no specification lacks an
46
46
  executable equivalent; a re-delivery can be only added specifications; touch only the slice's
47
47
  own paths; do not change existing specification files unless an approved contract revision says so (`build-prompts.md` section 1); when the
48
- requirements are genuinely ambiguous or contradictory, do not guess and do not build anyway,
49
- return an edit request and report `blocked`. Ownership is assigned per brief, one implementer
50
- per scope; a ledger or `STATE.md` line records it and is not a lock, and atomic claiming is used
48
+ requirements hit the delivery block list, return an edit request and report `blocked`; non-behavioral
49
+ assumptions follow `build-prompts.md` section 3 and remain visible. Ownership is assigned per brief,
50
+ one implementer per scope; a fallback record or `STATE.md` line records it and is not a lock, and atomic claiming is used
51
51
  only where a tracker provides a verified operation. Git effects follow the brief's separate
52
52
  authorization.
53
53
 
@@ -57,8 +57,9 @@ ambiguous addresses; contracts are never inferred from names.
57
57
 
58
58
  ## What comes back
59
59
  - Status `done | partial | blocked` from `cratis-application-slice-conformance`.
60
- - The specification mapping (specification, test, result), the field inventory, divergences
61
- with who approved them, and the check results, recorded in the ledger entry.
60
+ - The realization fields from `drift-and-fallback-record.md`, "Fallback record", in the slice's
61
+ result packet: element and specification mappings, files, shared seams, assumptions, identities
62
+ and check results, with no second schema.
62
63
  - Edit requests for the modeler session: address, change, rationale. Walkthrough-derived cases
63
64
  belong in accepted `.play` specifications first, never as a second behavioural contract in
64
65
  code-only tests. Integration tests may check wiring and persistence without inventing rules.
@@ -67,7 +68,7 @@ ambiguous addresses; contracts are never inferred from names.
67
68
 
68
69
  ## Rules the model states only in prose
69
70
  A rule that exists only in a description, or a state-dependent rule the model marks as not
70
- enforced, is unenforced in generated scope. List it in the ledger as a target requirement. In
71
+ enforced, is unenforced in generated scope. List it in the fallback record as a target requirement. In
71
72
  hand-written code it needs an atomic enforcement point: a protected read or a concurrency scope
72
73
  (Stage 4.73.1 rendered apps scaffold the Arc/Chronicle set in `cratis-stage-rendering-and-sandbox` `references/rendered-application.md`: protected-read APIs
73
74
  are available to gap-fill, with projection/key admission and active enrollment), or a Chronicle constraint. A stale view or
@@ -105,8 +106,8 @@ stable array or list. The Stage scaffold pins an older Arc, so raise the version
105
106
  reaction or drop an effect to dodge rendering.
106
107
 
107
108
  ## Re-delivery
108
- The work list is the full in-scope contract delta since the ledger's last verified source
109
+ The work list is the full in-scope contract delta since the fallback record's last verified source
109
110
  identity (specifications, rules, mappings, realization notes), then the whole contract is
110
- reconciled again and the field inventory redone. The specification delta is one ledger field.
111
+ reconciled again and the field inventory redone. The specification delta is one fallback record field.
111
112
  When the scope later renders (a revisit trigger fires), plan the migration to managed output
112
113
  with the user: the hand-written files collide with planned paths and must move first.
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## Moved and rewritten (Cratis)
4
4
  - The render workflow of the earlier model skill set: capability probe, renderability
5
- classification, delivery protocol, drift and fallback ledger. Rewritten for Stage 4.24 and cli
5
+ classification, delivery protocol, drift and fallback record. Rewritten for Stage 4.24 and cli
6
6
  3.27.1, then re-verified on cli 3.28.2 (Stage 4.24.1) and 3.28.3 (Stage 4.24.2) by running `cratis render`; the
7
7
  helper scripts are not shipped (their steps are the manual commands in `references/delivery-protocol.md`).
8
8
  - The fallback-conformance checklist moved into `cratis-application-slice-conformance`
@@ -22,3 +22,13 @@ by Martin Dilger and Nebulit GmbH (https://nebulit.de), used with the explicit c
22
22
  | `.claude/skills/update-slice-status/SKILL.md`: closed status vocabulary and the already-in-status claim guard | `references/gap-fill-handoff.md`; the `done \| partial \| blocked` status | Idea; our own wording kept (statuses differ on purpose) |
23
23
 
24
24
  No TrogonStack/agentskills text is used in this skill.
25
+
26
+ ### Eventmodelers Build-Kits
27
+
28
+ Source: https://github.com/Nebulit-GmbH/Eventmodelers-Build-Kits, by Martin Dilger and Nebulit GmbH
29
+ (https://nebulit.de), used with the explicit consent of Martin Dilger and Nebulit GmbH.
30
+
31
+ | Source skill | Used in | How |
32
+ |---|---|---|
33
+ | `detect-model-drift` | `references/drift-and-fallback-record.md` *Hand-written code changed since it was last verified*; `SKILL.md` step 8 | adapted closely: baseline from the recorded identity, commits walked oldest first rather than a net diff, behavior separated from noise per file, one finding at the declaration where it begins, planned model work and restorations not reported; model-first default kept, so the fix restores code or raises a model edit request |
34
+ | `record-evidence` (classic stack) | `references/drift-and-fallback-record.md` *Fallback record*; `references/gap-fill-handoff.md` result pointer | adapted closely: element, field and specification mapping, files, shared seams, assumptions and checks per slice, with no code excerpts |
@@ -30,8 +30,8 @@ ESM). Only the probe answers renderability. `PLAY0270` entries are information,
30
30
  | Class | Meaning | Typical examples (each verified in `admission.md`) | Action |
31
31
  | --- | --- | --- | --- |
32
32
  | **Model fix (in mode)** | the model is in, or the user chose, renderable mode and breaks its own subset in a way that has a renderable equivalent with the same meaning | a `produces` whose `for` is not the command identifier; one `StateChange` slice with two commands (`STAGE-ESM-004`); two projections for one read model (`-007`); a policy Stage cannot express portably (`-015`; role-only and opaque pure policies render at 4.73.1) | edit request to the modeler session with address, change and rationale |
33
- | **Capability gap** | the intended meaning needs a construct Stage does not render yet | a snapshot list query (`-010`; observable lists and keyed or unkeyed lists bind and observable lists render), DateTime equality filters and required parameters after optional filters (`-010`); context/single-result filters, opaque `scoped to`/`performer` and composite `by` remain PLAY0268; Translate, clocks, captures, non-event triggers and opaque reaction bodies (`-024`); claim-reading/opaque `runs as` gates (`-034`), legacy `from` (`-035`), mixed effects in one handler (`-037`, retries can duplicate events; keep it whole), unsupported reaction mappings (`-039`); unsupported generated types/result combinations (`-028`/`-038`); `then no readmodel` (`-027`); evolved events (`STAGE-ESM-026`); conditional `produces when` (`-006`); `reads` (`PLAY0271`); code validation (`-005`); protected identities/enums (`-040`), non-text secrets (`-041`) or unadmitted explicit subject lineage (`PLAY0268`); a command `handler` (`PLAY0268`) | keep the model; ledger entry; options a to c in `SKILL.md`; link the Stage issue |
34
- | **Tool skew** | the bundled compiler disagrees with documented semantics | the false `PLAY0285` on reaction cascades from a cratis before 3.28.2 bundle (cli#242); codes the standalone compiler does not raise | record in the session state and the ledger; never "fix" a correct model |
33
+ | **Capability gap** | the intended meaning needs a construct Stage does not render yet | a snapshot list query (`-010`; observable lists and keyed or unkeyed lists bind and observable lists render), DateTime equality filters and required parameters after optional filters (`-010`); context/single-result filters, opaque `scoped to`/`performer` and composite `by` remain PLAY0268; Translate, clocks, captures, non-event triggers and opaque reaction bodies (`-024`); claim-reading/opaque `runs as` gates (`-034`), legacy `from` (`-035`), mixed effects in one handler (`-037`, retries can duplicate events; keep it whole), unsupported reaction mappings (`-039`); unsupported generated types/result combinations (`-028`/`-038`); `then no readmodel` (`-027`); evolved events (`STAGE-ESM-026`); conditional `produces when` (`-006`); `reads` (`PLAY0271`); code validation (`-005`); protected identities/enums (`-040`), non-text secrets (`-041`) or unadmitted explicit subject lineage (`PLAY0268`); a command `handler` (`PLAY0268`) | keep the model; fallback record entry; options a to c in `SKILL.md`; link the Stage issue |
34
+ | **Tool skew** | the bundled compiler disagrees with documented semantics | the false `PLAY0285` on reaction cascades from a cratis before 3.28.2 bundle (cli#242); codes the standalone compiler does not raise | record in the session state and the fallback record; never "fix" a correct model |
35
35
  | **Environment** | not the model | restore failures, missing SDK, a destination that is not writable | fix the environment or report blocked |
36
36
 
37
37
  ## Triage rules
@@ -48,7 +48,7 @@ ESM). Only the probe answers renderability. `PLAY0270` entries are information,
48
48
  - Admission can pass and a Debug test still fail. Admission is never a passing test; see
49
49
  `cratis-stage-rendering-and-sandbox` `references/render-example.md`.
50
50
 
51
- ## Stage issues to cite in ledger entries
51
+ ## Stage issues to cite in fallback record entries
52
52
  Historical issue pointers (not a fresh issue-state check): portable query semantics Stage#58;
53
53
  Translate and unsupported automation forms Stage#79; mapping expressions and projection blocks Stage#117; modeled authentication
54
54
  Stage#120; per-persona screens Stage#194; evolved events Stage#204; mixed reaction effects Stage#207;
@@ -5,7 +5,7 @@
5
5
  - The model
6
6
  - The probe
7
7
  - Classification
8
- - Decision and ledger entry
8
+ - Decision and fallback record entry
9
9
  - The report
10
10
 
11
11
  A marina model with one renderable command and one snapshot list view. The model compiles and binds;
@@ -92,7 +92,7 @@ lookup, or marking the list `observable`. The first changes what the harbour mas
92
92
  second changes delivery from a snapshot to a live subscription. Both are **modeling decisions for
93
93
  the user**, never renderer workarounds. Here the user keeps the snapshot list.
94
94
 
95
- ## Decision and ledger entry
95
+ ## Decision and fallback record entry
96
96
 
97
97
  Case A, then case B for `ReserveBerth` (rendered with `--scope`) and case C for the list: the user keeps
98
98
  the full model, the view is delivered by hand, and the model stays the contract.
@@ -34,3 +34,8 @@ This skill also adapts material from agentic-engineer by Martin Dilger and Nebul
34
34
  (https://github.com/Nebulit-GmbH/agentic-engineer, commit 07b0f30648d663cb588d7e2c7aa031af9dfc21f2;
35
35
  https://nebulit.de), used with the explicit consent of Martin Dilger and Nebulit GmbH. The adapted
36
36
  material remains credited to Martin Dilger and Nebulit GmbH.
37
+
38
+ This skill also adapts material from the Eventmodelers Build-Kits skills by Martin Dilger and
39
+ Nebulit GmbH (https://github.com/Nebulit-GmbH/Eventmodelers-Build-Kits; https://nebulit.de), used
40
+ with the explicit consent of Martin Dilger and Nebulit GmbH. The adapted material remains credited
41
+ to Martin Dilger and Nebulit GmbH.
@@ -64,7 +64,7 @@ question is not four approvals.
64
64
  4. **Coverage matrix before any spec** (`references/coverage-matrix.md`). Rows: every command,
65
65
  reaction, capture, read model and gated query. Columns: the scenario types below. Each cell
66
66
  is `spec <Name>`, `n/a: <domain reason>`, `recorded: <why not expressible>`,
67
- `open: <case>`, `question: <id>` or `gap: <code>`. "Fewer specs" is never a reason; a
67
+ `n/a: technical` (closed list), `open: <case>`, `question: <id>` or `gap: <code>`. "Fewer specs" is never a reason; a
68
68
  declaration (constraint, policy) or another command's denial is not a spec.
69
69
  5. **Per read model, decide the shape**: single-transition specs only, or also a lifecycle
70
70
  family (cumulative givens). Write the decision and reason in the matrix, before drafting any
@@ -105,7 +105,7 @@ question is not four approvals.
105
105
  | Rule rejection | Which input is refused, with what message? | one spec per rule; `then error "<exact message>"` (prefer `$strings.<key>`); always pinned (a bare `then error` is valid language but not accepted here) |
106
106
  | Denial | Who must not do this? | `given caller` without the policy -> `then denied`; one per gated command and query, only where the whole Boolean gate is false; ownership claims need other-owner denial |
107
107
  | State violation | Which prior facts make this wrong? | givens + constraint (`unique event` exclusivity) -> `then error`; else `recorded` |
108
- | Duplicate / retry | Same request again (lost acknowledgement)? | `when <Command>`, same identifier, earlier fact as `given` -> constraint message, or the accepted repeat |
108
+ | Duplicate / retry | Done again to something in that state, or sent twice (lost acknowledgement)? | `when <Command>`, same identifier, earlier fact as `given` -> constraint message, or the accepted repeat |
109
109
  | Competing claim | Two people claim the same thing at once? | `when <Command>`, other source's fact as `given` (different `for`) -> constraint "another event source..." |
110
110
  | Alternative path | Which branches exist, including "nothing happens"? | true and false witnesses per `produces when`; unconditional productions always fire |
111
111
  | Ordering | Facts late or out of order? | view family with reordered givens; translation specs; else `recorded` |
@@ -151,12 +151,12 @@ target requirements.
151
151
  never `n/a` automatically. Include a whitespace-only rejection for text `not empty`:
152
152
  **4.151.0** changes outcomes in every ESM version. Unicode/identity boundaries
153
153
  and evidence: command-surface `references/validate-rules.md`.
154
- This matches `cratis-screenplay-specifications`, which also
155
- requires one rejection spec per concept rule. Business rules get one rejection spec each.
154
+ A business rule gets one rejection spec if an expert could recognize it from its message;
155
+ binder-enforced shape is no scenario (catalogue §2).
156
156
  - Persona Cannot lines are intent: each needs an executable gate plus a `then denied` spec whose
157
157
  caller is a synthesized persona witness or an explicit gate fixture, else record a gap.
158
- - Descriptions are not rendered: a rule only in prose is unenforced in rendered scope; turn it
159
- into a rule layer, a spec or a recorded target requirement.
158
+ - Descriptions are not rendered: a rule only in prose is unenforced; make it a rule layer, a
159
+ spec or a recorded target requirement.
160
160
  - Prove projections with events (`given`/`when append`), not `given readmodel`; seed read models
161
161
  only for performer-backed views or commands that decide on view state.
162
162
  - No contradiction between a family and single-transition specs of the same view.
@@ -21,6 +21,13 @@ Write it **before** drafting specs, keep it in `.ai-work/screenplay/<model-slug>
21
21
  PLAY0268/0271; report the model as design-complete, not binding-ready) and marked
22
22
  NOT enforced in the slice `description`, with its target named (Arc `[ProtectedDecision]`,
23
23
  Chronicle DCB, or a constraint). It is also in the phase report.
24
+ - `n/a: technical` - deliberately unspecified because the language or runtime already
25
+ guarantees it. The list is closed: binder-enforced shape (type, required property),
26
+ collision of `generated` identifiers, and an infrastructure fault the runtime absorbs with
27
+ nothing a person could notice. A repeat or re-delivery the business would notice (a second
28
+ fact, email, charge or count) is never technical: it is Duplicate/retry (catalogue section 5).
29
+ Anything else needs a domain reason or another cell value. Review treats a spec in these
30
+ categories as a smell, not as coverage.
24
31
  - `open: <required case>` - planned but not yet drafted. Never counts as coverage.
25
32
  - `question: <id>` - needs a domain answer; listed in open questions.
26
33
  - `gap: <code>` - expressible in design mode but blocked in the chosen mode (e.g. removal in
@@ -31,6 +31,15 @@ by Martin Dilger and Nebulit GmbH (https://nebulit.de), used with the explicit c
31
31
  | `.claude/skills/examples/SKILL.md`: neighborhood-first reading, never overwrite existing examples, short domain-specific values, report fields changed and reused | `references/scenario-catalogue.md` "Example data" | Handoff report (fixtures changed, preserved, reused value origins, inconsistencies) adapted; rest idea, our own wording kept (board tooling, `add_field_examples` and name-based type guessing dropped because declared types decide values) |
32
32
  | `.claude/skills/eventmodeling-elaborating-scenarios/SKILL.md`: Step 3 skip unresolved steps, board-only restrictions, "every scenario produces events" | none | Considered and not adopted: removing a prerequisite changes the test; Screenplay has rejections and queries |
33
33
 
34
+ ### Eventmodelers Build-Kits
35
+
36
+ Source: https://github.com/Nebulit-GmbH/Eventmodelers-Build-Kits, by Martin Dilger and Nebulit GmbH
37
+ (https://nebulit.de), used with the explicit consent of Martin Dilger and Nebulit GmbH.
38
+
39
+ | Source skill | Used in | How |
40
+ |---|---|---|
41
+ | `eventmodeling-elaborating-scenarios` | `references/scenario-catalogue.md` sections 2 and 5, *Example data*; `references/scenario-examples.md`; `references/coverage-matrix.md` *Cell values*; `SKILL.md` | adapted closely: a rejection earns a scenario only if a domain expert could recognize the rule, the duplicate question put as a business question, essential values shown in the body with the rest left out, descriptions that carry no fact a step could state, and a closed list of technical cases left unspecified; concept-rule and once-only specifications are kept on purpose, and a repeat the business would notice is never technical |
42
+
34
43
  ## Cratis-original
35
44
  Coverage matrix and obligation derivation from declarations, cell vocabulary (`spec`, `n/a`,
36
45
  `recorded`, `open`, `question`, `gap`), scenario types per Screenplay semantics, denial fixtures
@@ -56,6 +56,13 @@ name them as unfinished.
56
56
 
57
57
  ## 2. Rule rejection (one per rule)
58
58
  - Ask: "Which values would you refuse, and what would you tell the person?"
59
+ - Test: could a domain expert recognize the rule from its message and argue about it? If not,
60
+ it is not a scenario. Not scenarios in Screenplay: a type mismatch the binder rejects, a
61
+ missing required property, malformed JSON, a collision of `generated` identifiers, an
62
+ infrastructure fault (matrix cell `n/a: technical`).
63
+ - Deliberate exceptions: a concept rule is domain vocabulary that renders into a validator at
64
+ every use, so it gets its one acceptance, rejection and boundary set; this is not per-field
65
+ schema testing. Every rule stated in the brief or a persona `Cannot` line maps to a matrix cell.
59
66
  - Applies: every command `validate`/`require` rule that is a business rule, and every
60
67
  `concept` rule.
61
68
  - Concept rules travel with every use: cover each once with representative acceptance,
@@ -114,9 +121,12 @@ name them as unfinished.
114
121
  protected decision.
115
122
 
116
123
  ## 5. Duplicate action and retry
117
- - Ask: "What if the same request arrives twice - a double click, a timeout and retry, a
118
- replayed message?"
119
- - Decide which promise the business needs:
124
+ - Ask first as a business question: "What if someone does this again to something already in
125
+ that state?" (confirm a confirmed reservation, resolve a resolved todo). Then take the
126
+ delivery view: a double click, a timeout and retry, a replayed message; retry semantics are
127
+ owned by `cratis-screenplay-streams-and-consistency`.
128
+ - Decide which promise the business needs (once-only facts are business promises, such as
129
+ "a reservation is confirmed once", and stay specified):
120
130
  - **once-only fact**: the second attempt must not create a second fact (`unique event`);
121
131
  - **idempotent handling**: the second attempt must *succeed* without a new fact - not
122
132
  expressible as a constraint outcome; record it as a target requirement;
@@ -221,6 +231,22 @@ rules, gates, mappings or contracts to make an example pass.
221
231
  condition. Denial: valid business input, vary only the caller. Validation: satisfy every other
222
232
  rule.
223
233
  - Unknown domain values stay questions, not plausible inventions.
234
+ - Show the deciding values in the spec body: the values the rule reads (the command card's
235
+ `Reads:` line in slice-design `references/command-inventory.md`), the identities tying the
236
+ steps together (the same `for` and identifier throughout) and the asserted outcome. Choose them
237
+ at the edge that matters (one day past the limit, the amount exactly at the cap), never vague.
238
+ Screenplay requires every required property on givens, commands and expected events, so
239
+ put the non-deciding values in a typed `example` fixture at feature scope and write only
240
+ the deciding values as step overrides; reuse an example only where its meaning agrees across
241
+ features. If a rule needs a value no declaration carries, add the property (an input, event
242
+ field or view field) instead of explaining it in `description`.
243
+ - Comparison differs by `then` form. An event `then` states every required property and the
244
+ whole set of new facts must match (assert nothing extra, in order unless `events in any
245
+ order`). `then readmodel` and `then query` match as a subset of the stated properties unless
246
+ `exactly` is written, and a query's row count is always exact. Use `exactly` only when an
247
+ unexpected extra property must fail.
248
+ - A spec `description` names the behavior witnessed or an outside condition or regulation.
249
+ It never carries a fact that belongs in a `given`, a value or an outcome.
224
250
  - Handoff after fixture work reports: the spec names added or changed; each meaningful fixture
225
251
  change and why (a demonstrated contradiction, never a rule changed to fit); which existing
226
252
  intentional examples were preserved; where a reused value came from (the event, command input
@@ -29,6 +29,8 @@ Screenplay specifications.
29
29
  | Then (success) | every expected event with payload and an explicit `for`, including events the command declares inline (the inline default applies to the `produces event` declaration, not to the expectation) | "an event is produced" |
30
30
  | Then (refusal) | `then error "Invoice already settled"`, the rule's own message | `then error` with no message, or `then error ""` |
31
31
  | Then (denial) | `then denied` | `then error` for a caller who is not allowed |
32
+ | Description | the behavior witnessed, or an outside condition or regulation | `description "customer already ordered twice"` with no givens (write two `given OrderPlaced` with the same `for`) |
33
+ | Values | the deciding values stated literally, others from a typed `example` | every field filled with noise, so the deciding value hides |
32
34
  | Reason | slice `documentation` says why the rule exists | the rule appears only in a spec title |
33
35
 
34
36
  ## 1. Command: success, rule rejection and denial
@@ -33,3 +33,8 @@ This skill also adapts material from agentic-engineer by Martin Dilger and Nebul
33
33
  (https://github.com/Nebulit-GmbH/agentic-engineer, commit 07b0f30648d663cb588d7e2c7aa031af9dfc21f2;
34
34
  https://nebulit.de), used with the explicit consent of Martin Dilger and Nebulit GmbH. The adapted
35
35
  material remains credited to Martin Dilger and Nebulit GmbH.
36
+
37
+ This skill also adapts material from the Eventmodelers Build-Kits skills by Martin Dilger and
38
+ Nebulit GmbH (https://github.com/Nebulit-GmbH/Eventmodelers-Build-Kits; https://nebulit.de), used
39
+ with the explicit consent of Martin Dilger and Nebulit GmbH. The adapted material remains credited
40
+ to Martin Dilger and Nebulit GmbH.
@@ -74,7 +74,8 @@ report and slice `documentation`, and continue.
74
74
  separate reasons change these values, then split (`references/slicing.md` *Generic edits*).
75
75
  One input per thing the caller decides or supplies; `identifier` on the property naming the
76
76
  instance (omit only for allocation); inline `produces event <Name>` (no `for`) when the command owns the event; plain `produces <Name>` needs `for <identifier>`. Trace each input
77
- (`references/field-lineage.md`). A conditional input is a granularity question: two
77
+ (`references/field-lineage.md`) and list the values each rule reads: input, state or context
78
+ (`references/command-inventory.md`). A conditional input is a granularity question: two
78
79
  decisions are two commands; one decision with a dependent rule is an implication
79
80
  (`require a == false or b > c`). Never a boolean attestation input (`confirmsX == true`)
80
81
  standing in for a rule. Place each rule in its layer (`references/rule-layers.md`). A rule
@@ -83,7 +84,7 @@ report and slice `documentation`, and continue.
83
84
  `[ProtectedDecision]` + `DecisionRead<T>` on Arc 22.39.0+ (available to gap-fill
84
85
  code with the Arc and Chronicle the Stage 4.73.1 scaffold pins); Chronicle DCB; or a constraint). Never copy state
85
86
  into the command as input or hide a rule in `handler` / hint prose; descriptions reach code
86
- only as XML comments (Stage#178). Fill the **refusal inventory**: success, each distinct refusal with
87
+ only as XML comments. Fill the **refusal inventory**: success, each distinct refusal with
87
88
  layer and message, and the denied persona.
88
89
  4. **Name and shape the event.** Past tense, the specific change that became true
89
90
  (`LockerRelocated`, `VolumeCorrected`); never `XUpdated`/`Changed`/`Edited`/`Saved`/
@@ -131,7 +132,7 @@ report and slice `documentation`, and continue.
131
132
  (`references/read-model-design.md`). One actor's point of view
132
133
  per screen, at a real beat of the story, not one per persona for symmetry; know where the
133
134
  actor sees each state change's result. Beyond Level 1: `cratis-screenplay-ui-composition`.
134
- 8. **Lineage pass.** Build the matrix in `references/field-lineage.md` from the `.play` files
135
+ 8. **Lineage pass.** After each field edit run `--check field-origins,input-surfaces`. Build the matrix in `references/field-lineage.md` from the `.play` files
135
136
  (read them), not from memory or an earlier summary. For each read model, write one line per
136
137
  contributing event in its StateView slice `documentation`: which fields it sets and why. An
137
138
  event with no reason does not belong in the view. A field without an origin is a gap: add
@@ -166,7 +167,7 @@ report and slice `documentation`, and continue.
166
167
  - A `unique` constraint names a property the event declares directly; the constraint name is
167
168
  its identity (renaming starts an empty index).
168
169
  - Unauthorized is `then denied`; a broken rule is `then error`; authorization runs first.
169
- - A mapping to an undeclared target fails only at binding (V3, PLAY0273); a declared property that nothing maps (for example after a one-sided rename that AutoMap relied on) is reported by no tool: check field lineage by hand.
170
+ - A mapping to an undeclared target fails only at binding (V3, PLAY0273); a declared property that nothing maps (for example after a one-sided rename that AutoMap relied on) is reported by `field-origins` only where coverage is known: trace by hand too.
170
171
 
171
172
  ### Modeling defaults (follow unless the domain gives a reason not to)
172
173