@cratis/pi 7.150.3 → 7.151.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package/corpus/agents/backend-developer.md +2 -2
- package/package/corpus/agents/slice-implementer.md +1 -1
- package/package/corpus/harnesses/copilot/instructions/application-profile.instructions.md +1 -1
- package/package/corpus/harnesses/copilot/instructions/code-quality.instructions.md +4 -0
- package/package/corpus/harnesses/copilot/instructions/csharp.instructions.md +1 -1
- package/package/corpus/harnesses/copilot/instructions/documentation.instructions.md +1 -1
- package/package/corpus/harnesses/copilot/instructions/github-actions.instructions.md +7 -0
- package/package/corpus/harnesses/copilot/instructions/local-work-artifacts.instructions.md +14 -14
- package/package/corpus/harnesses/copilot/instructions/vertical-slices.instructions.md +1 -1
- package/package/corpus/harnesses/pi/agents/backend-developer.md +2 -2
- package/package/corpus/harnesses/pi/agents/slice-implementer.md +1 -1
- package/package/corpus/hooks/README.md +10 -6
- package/package/corpus/hooks/scripts/quality-gates.json +7 -5
- package/package/corpus/rules/application-profile.md +1 -1
- package/package/corpus/rules/code-quality.md +4 -0
- package/package/corpus/rules/csharp.md +1 -1
- package/package/corpus/rules/documentation.md +1 -1
- package/package/corpus/rules/general.md +6 -8
- package/package/corpus/rules/github-actions.md +7 -0
- package/package/corpus/rules/local-work-artifacts.md +14 -14
- package/package/corpus/rules/vertical-slices.md +1 -1
- package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/SKILL.md +7 -0
- package/package/corpus/skills/cratis-arc-command/references/proxy-generation.md +14 -7
- package/package/corpus/skills/cratis-chronicle-event-type-migration/SKILL.md +11 -3
- package/package/corpus/skills/cratis-engineering-ci-gates/SKILL.md +5 -0
- package/package/corpus/skills/cratis-screenplay-toolchain/references/renderable-subset.md +1 -1
- package/package/corpus/skills/cratis-stage-rendering-and-sandbox/references/admission.md +1 -1
- package/package.json +1 -1
|
@@ -97,7 +97,7 @@ public record RegisterProject(ProjectName Name)
|
|
|
97
97
|
|
|
98
98
|
## Events — critical rules
|
|
99
99
|
|
|
100
|
-
- Record decorated with `[EventType]` (from `Cratis.Chronicle.Events`)
|
|
100
|
+
- Record decorated with `[EventType]` (from `Cratis.Chronicle.Events`) plain for new events — the type name is the identifier; an explicit id only to retain an already-persisted id or resolve a cross-package short-name collision, never to change a persisted id.
|
|
101
101
|
- Past-tense, one purpose, never nullable, never carries the event-source id. Add an XML `<summary>`.
|
|
102
102
|
|
|
103
103
|
```csharp
|
|
@@ -128,7 +128,7 @@ Before handing back:
|
|
|
128
128
|
- [ ] Namespace mirrors the folder path under the source root
|
|
129
129
|
- [ ] File header present; no separate handler classes
|
|
130
130
|
- [ ] Business rejection returns a `ValidationResult`/`Result<,>` — never thrown
|
|
131
|
-
- [ ] `[EventType]`
|
|
131
|
+
- [ ] New events use plain `[EventType]` (explicit id only to retain a persisted id or resolve a cross-package collision); events carry no event-source id and no nullable properties
|
|
132
132
|
- [ ] No `.AutoMap()` call anywhere (it is on by default)
|
|
133
133
|
|
|
134
134
|
---
|
|
@@ -94,7 +94,7 @@ Proxies now exist. Build React components from the generated proxies (`react.md`
|
|
|
94
94
|
- All backend artifacts in one `<Slice>.cs`; namespace mirrors the path; layout per `general.md` (no `Features/` wrapper; `<Module>` optional).
|
|
95
95
|
- `Handle()` returns the event/result directly (no `Task.FromResult` without `await`); validation in `CommandValidator<T>`/`ConceptValidator<T>`/`Provide()`; **never throw for normal business rejection** — return `ValidationResult`/`Result<,>`.
|
|
96
96
|
- Start with model-bound attributes, fluent for structured mappings, reducer code for clearer prior-state branches/calculations/guards; **never `.AutoMap()`**. New .NET reducers default to static `Reduce` on the model; separate `IReducerFor<T>` for DI/replay instance behavior/separation; plain-class nomination only when its assembly cannot reference Chronicle. Follow the read-model/reducer skills for Arc query discovery, exact signatures and builder ownership. Preserve admission/ordering guards when converting; do not infer Stage renders the self form or apply it to other SDKs.
|
|
97
|
-
- Events:
|
|
97
|
+
- Events: plain `[EventType]` for new events (explicit id only to retain a persisted id or resolve a cross-package short-name collision; never change a persisted id), non-nullable, past tense, `<summary>`, never carry the event-source id.
|
|
98
98
|
- `[OnceOnly]` on non-idempotent reactor side effects; reactors return side-effect events or use `ICommandPipeline` (never `IEventLog`).
|
|
99
99
|
- Specs compiled into the application assembly use `#if DEBUG`; dedicated spec projects need no wrapper. Command aliased, per-test unique values.
|
|
100
100
|
- Never hand-edit Stage-managed (rendered) output, and never leave a modeled rule living only in code.
|
|
@@ -51,7 +51,7 @@ Tagged **[contract]** (framework-enforced) or **[convention]** (house default).
|
|
|
51
51
|
4. **[contract] Events never carry the event-source id** — it is implicit in the event context.
|
|
52
52
|
5. **[contract] `[Key]` / `[Subject]` are distinct.** `[Key]` is for event-source/read-model/projection key resolution; `[Subject]` is compliance identity only. Don't put either on an `EventSourceId<T>` value (it already is both); use them only for non-`EventSourceId<T>` values.
|
|
53
53
|
6. **[contract] Avoid nullable event properties** — Chronicle's analyzer warns on them. Model optional facts as a separate event; resolve nullable command inputs to a non-null sentinel before constructing the event. **Likewise `Handle()` never returns a nullable event or `null` for "nothing to do"** — Arc treats a `null` result as success with nothing appended, so the caller is told a command succeeded that never happened. Missing state or a failed rule is a rejection: return `Result<TEvent, ValidationResult>` with `ValidationResult.Error(...)`, or reject in a validator or `Provide()`. Optional `ICommandOperation` returns are a separate contract and unaffected.
|
|
54
|
-
7. **[
|
|
54
|
+
7. **[convention] New events use plain `[EventType]`** — the type name is the id, public contracts included; "public" never implies a UUID or any explicit id. This is a house convention (decision 152), not a Chronicle contract: Chronicle accepts any string id. An explicit id is allowed only (a) to keep an already-persisted id after a CLR rename, or (b) to resolve a cross-package short-name collision (`MultipleEventTypesWithSameIdFound`). Never change an existing persisted id. Schema changes get a new generation + an `EventTypeMigration<TUpgrade,TPrevious>` (never edit stored-event semantics silently). An enum that only gains a member, or has one renamed, is the exception — Chronicle accepts that in place; a *removed* or *renumbered* member still needs a generation, plus a value map saying what the old values became.
|
|
55
55
|
8. **[convention] Every `[EventType]` has an XML `<summary>`** — a Cratis C# documentation convention (not a Chronicle rule); events live in the log forever, so record why they exist.
|
|
56
56
|
9. **[convention] `[ReadModel]` properties carry no default values** except semantically meaningful enum initial states and `[SetValue<T>]`-driven `bool` flags. False defaults hide missing projection wiring.
|
|
57
57
|
10. **[contract] AutoMap is on by default — never call `.AutoMap()`.** Match property names so AutoMap wires them; diverge with `[SetFrom<T>]` / fluent `.Set().To()` only for genuine name differences. Re-enable `.AutoMap()` only inside a scope where it was disabled with `.NoAutoMap()`.
|
|
@@ -29,6 +29,10 @@ Prefer composing behavior from smaller, focused collaborators over building clas
|
|
|
29
29
|
- Never extend a concrete class to add or change behavior — inject a collaborator instead.
|
|
30
30
|
- Inheritance is acceptable only for framework integration points where a base class is part of a well-defined extension mechanism.
|
|
31
31
|
|
|
32
|
+
## Comments carry no issue or spec references
|
|
33
|
+
|
|
34
|
+
Code comments never cite issue numbers, PR numbers or spec sections; that context belongs in the commit message and pull request. A comment says why code is non-obvious.
|
|
35
|
+
|
|
32
36
|
## Single Responsibility Principle
|
|
33
37
|
|
|
34
38
|
Every type and every method should have **one reason to change** — it should do one thing and do it well. A class that fetches data, transforms it, validates it, and sends an email has four reasons to change. When any of those concerns shifts, you have to touch — and risk breaking — all the others.
|
|
@@ -332,7 +332,7 @@ These are the building blocks. Each type has a specific role in the vertical sli
|
|
|
332
332
|
| --- | --- |
|
|
333
333
|
| `ConceptAs<T>` | Strongly-typed domain *value* wrapper (see [concepts.md](./concepts.instructions.md)) |
|
|
334
334
|
| `EventSourceId<T>` | Strongly-typed *identity* base — derive event-source ids from this, not `ConceptAs<T>` |
|
|
335
|
-
| `[EventType]` | Marks a record as a Chronicle event —
|
|
335
|
+
| `[EventType]` | Marks a record as a Chronicle event — plain for a new event (explicit id only per application-profile.md item 7) |
|
|
336
336
|
| `[Command]` | Marks a record as a model-bound command — define `Handle()` directly on the record |
|
|
337
337
|
| `[ReadModel]` | Marks a record as a model-bound query — define static query methods on the record |
|
|
338
338
|
| `CommandValidator<T>` | FluentValidation validator for commands |
|
|
@@ -85,7 +85,7 @@ The project's voice is **direct, practical, and opinionated**. Write like an exp
|
|
|
85
85
|
## Code examples
|
|
86
86
|
|
|
87
87
|
- Prefer `record` types for events, commands, and read models — match the codebase.
|
|
88
|
-
- Use
|
|
88
|
+
- Use plain `[EventType]` for new events. A new generation or an explicit id is valid only when documenting evolution of an existing stored-event contract (a retained persisted id) or a cross-package short-name collision.
|
|
89
89
|
- A standalone example must be **complete and correct** at its stated scope. Mark a partial excerpt as an excerpt, state its prerequisites, and never leave an essential step behind `// ...`. Do not offer an incomplete block as click-to-copy code.
|
|
90
90
|
- **State version requirements, not the test log.** Name minimum, fixed or breaking releases and meaningful compatibility or peer ranges. Ordinary installation follows the supported latest-release path, not universal exact-patch pins; latest does not imply every package combination is compatible. Keep resolved versions in maintained manifests/lockfiles, or pin deliberately reproducible tutorials when needed. Preserve required security/deployment constraints and production image policy. Do not end a page with verification provenance (SDK build, image digest or SHA, date, "tested with", unrun samples); that belongs in the change summary. See **cratis-technical-examples**.
|
|
91
91
|
- **Short illustrative snippets** may be purpose-built after checking their framework APIs against source. Derive substantial or runnable examples from compiled, tested sample or spec code; extract or check displayed snippets with the owning repository's tooling so they do not drift. Never substitute a bare “see the repository” link for showing the code.
|
|
@@ -103,6 +103,13 @@ capacity numbers into workflows or guidance.
|
|
|
103
103
|
- **Never** route `pull_request`-triggered jobs of a *public* repository to self-hosted
|
|
104
104
|
runners — that hands code execution on our infrastructure to any fork.
|
|
105
105
|
|
|
106
|
+
## Arc proxies
|
|
107
|
+
|
|
108
|
+
- Workflows never generate Arc TypeScript proxies; the client commits them. Every `dotnet
|
|
109
|
+
build`/`publish` of an Arc project passes `-p:CratisProxiesOutputPath=` (empty, Arc's off
|
|
110
|
+
switch; `DisableProxyGenerator` is repository-defined, not Arc's). See the
|
|
111
|
+
**cratis-arc-command** proxy-generation reference.
|
|
112
|
+
|
|
106
113
|
## Automation that writes back
|
|
107
114
|
|
|
108
115
|
- A bot that pushes to a branch must **retry with `git pull --rebase`** — the branch
|
|
@@ -38,21 +38,21 @@ dumps, and similar coordination files. These are **work records, not documentati
|
|
|
38
38
|
replace the prompt.
|
|
39
39
|
- **A worktree is a work record too.** Create it outside the repository tree, for
|
|
40
40
|
example in a sibling `../.worktrees/` directory. A nested worktree inherits the
|
|
41
|
-
parent's `.globalconfig`, causing .NET
|
|
42
|
-
|
|
41
|
+
parent's `.globalconfig`, causing .NET `MultipleGlobalAnalyzerKeys` errors or silently
|
|
42
|
+
changing analyzer severities. In a container worker whose checkout is the workspace root
|
|
43
|
+
with a read-only parent (such as `/workspace`), use `$HOME/.worktrees/<name>`,
|
|
44
|
+
never `..` outside the workspace or inside the checkout. **Delivered work is cleaned up by
|
|
43
45
|
`.cratis/ai/hooks/scripts/cratis-cleanup-worktrees.sh`, not by memory:** run it from the
|
|
44
|
-
main checkout when a
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
worktree and branch behind, which is why the script exists. If the branch must outlive the
|
|
55
|
-
task unmerged, leave the worktree and say so in the handoff. Never `--force` a removal; a
|
|
46
|
+
main checkout when a PR merges or you finish a task (hooks and **ship-changes** also run it). It
|
|
47
|
+
removes a worktree and its branch only on evidence the work reached the default branch —
|
|
48
|
+
pushed is not merged — and never forces. It keeps worktrees with non-empty `.ai-work/`
|
|
49
|
+
directories; manual `--include-work-records` deletes them once you have preserved what you
|
|
50
|
+
need; hooks never opt in. Pin a long-lived worktree with `git worktree lock <path>`;
|
|
51
|
+
locked worktrees are always kept, even with opt-in. Ignored files (`.env`, local databases) are
|
|
52
|
+
deleted with a removed worktree: move what you need out first. Do not hand-remove worktrees
|
|
53
|
+
or `git branch -D` a delivered branch when the script can; `gh pr merge --delete-branch`
|
|
54
|
+
inside a worktree leaves the worktree and branch behind. If the branch must outlive the task
|
|
55
|
+
unmerged, leave the worktree and say so in the handoff. Never `--force` a removal; a
|
|
56
56
|
refusal means look, not push harder.
|
|
57
57
|
- **Scan for secrets before archiving or sharing.** Before anything from `.ai-work/` is archived,
|
|
58
58
|
attached or shared, run `gitleaks detect --no-git --source <dir>` (or the repository's equivalent)
|
|
@@ -231,7 +231,7 @@ Apply authorization attributes on the `[Command]` record or query method. **[con
|
|
|
231
231
|
|
|
232
232
|
`[EventType]` records are the schema-bound truth of the system.
|
|
233
233
|
|
|
234
|
-
- **[
|
|
234
|
+
- **[convention] Plain `[EventType]` for new events, public ones included** — the type name is the id; an explicit id only to retain a persisted id or resolve a cross-package collision, never to change one (application-profile.md item 7, decision 152). Evolve a contract with `generation:` (invoke the **cratis-chronicle-event-type-migration** skill).
|
|
235
235
|
- **[contract] Past-tense, one-purpose names** (`AuthorRegistered`, not `Updated`/`FormSubmitted`) — Chronicle requires past-tense, single-purpose facts. Self-describing without slice context.
|
|
236
236
|
- **[contract] Avoid nullable properties** — Chronicle's analyzer warns on nullable event members; model optional facts as a separate event, or resolve a nullable command input to a non-null sentinel before constructing the event.
|
|
237
237
|
- **[contract] `Handle()` never returns a nullable event or `null` for "nothing to do"** — Arc treats a `null` result as success with nothing appended, so the caller is told a command succeeded that never happened. Missing state or a failed rule is a rejection: return `Result<TEvent, ValidationResult>` with `ValidationResult.Error(...)`, or reject in a validator or `Provide()`. Optional `ICommandOperation` returns are a separate contract and unaffected.
|
|
@@ -92,7 +92,7 @@ public record RegisterProject(ProjectName Name)
|
|
|
92
92
|
|
|
93
93
|
## Events — critical rules
|
|
94
94
|
|
|
95
|
-
- Record decorated with `[EventType]` (from `Cratis.Chronicle.Events`)
|
|
95
|
+
- Record decorated with `[EventType]` (from `Cratis.Chronicle.Events`) plain for new events — the type name is the identifier; an explicit id only to retain an already-persisted id or resolve a cross-package short-name collision, never to change a persisted id.
|
|
96
96
|
- Past-tense, one purpose, never nullable, never carries the event-source id. Add an XML `<summary>`.
|
|
97
97
|
|
|
98
98
|
```csharp
|
|
@@ -123,7 +123,7 @@ Before handing back:
|
|
|
123
123
|
- [ ] Namespace mirrors the folder path under the source root
|
|
124
124
|
- [ ] File header present; no separate handler classes
|
|
125
125
|
- [ ] Business rejection returns a `ValidationResult`/`Result<,>` — never thrown
|
|
126
|
-
- [ ] `[EventType]`
|
|
126
|
+
- [ ] New events use plain `[EventType]` (explicit id only to retain a persisted id or resolve a cross-package collision); events carry no event-source id and no nullable properties
|
|
127
127
|
- [ ] No `.AutoMap()` call anywhere (it is on by default)
|
|
128
128
|
|
|
129
129
|
---
|
|
@@ -89,7 +89,7 @@ Proxies now exist. Build React components from the generated proxies (`react.md`
|
|
|
89
89
|
- All backend artifacts in one `<Slice>.cs`; namespace mirrors the path; layout per `general.md` (no `Features/` wrapper; `<Module>` optional).
|
|
90
90
|
- `Handle()` returns the event/result directly (no `Task.FromResult` without `await`); validation in `CommandValidator<T>`/`ConceptValidator<T>`/`Provide()`; **never throw for normal business rejection** — return `ValidationResult`/`Result<,>`.
|
|
91
91
|
- Start with model-bound attributes, fluent for structured mappings, reducer code for clearer prior-state branches/calculations/guards; **never `.AutoMap()`**. New .NET reducers default to static `Reduce` on the model; separate `IReducerFor<T>` for DI/replay instance behavior/separation; plain-class nomination only when its assembly cannot reference Chronicle. Follow the read-model/reducer skills for Arc query discovery, exact signatures and builder ownership. Preserve admission/ordering guards when converting; do not infer Stage renders the self form or apply it to other SDKs.
|
|
92
|
-
- Events:
|
|
92
|
+
- Events: plain `[EventType]` for new events (explicit id only to retain a persisted id or resolve a cross-package short-name collision; never change a persisted id), non-nullable, past tense, `<summary>`, never carry the event-source id.
|
|
93
93
|
- `[OnceOnly]` on non-idempotent reactor side effects; reactors return side-effect events or use `ICommandPipeline` (never `IEventLog`).
|
|
94
94
|
- Specs compiled into the application assembly use `#if DEBUG`; dedicated spec projects need no wrapper. Command aliased, per-test unique values.
|
|
95
95
|
- Never hand-edit Stage-managed (rendered) output, and never leave a modeled rule living only in code.
|
|
@@ -841,12 +841,16 @@ source root is not `Source/` re-scopes the `paths` globs there too.
|
|
|
841
841
|
|
|
842
842
|
**One property gates the proxy generator.** The generator's MSBuild target is
|
|
843
843
|
`Condition="'$(CratisProxiesOutputPath)' != ''"`, so clearing that property with
|
|
844
|
-
`-p:CratisProxiesOutputPath=` is
|
|
845
|
-
|
|
846
|
-
looks like it works and changes nothing.
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
the
|
|
844
|
+
`-p:CratisProxiesOutputPath=` is Arc's off switch. `DisableProxyGenerator` is not an Arc
|
|
845
|
+
property; it works only where a repository defines it — MSBuild silently accepts unknown `-p:`
|
|
846
|
+
names, so passing it elsewhere looks like it works and changes nothing. Proxies are generated and
|
|
847
|
+
committed by the client, never in CI, so CI builds always clear the path.
|
|
848
|
+
|
|
849
|
+
The Debug/Release split applies to the shipped client-side local gates only: Release clears the
|
|
850
|
+
path, and the committing client's Debug gate does not, because `general.md` makes the Debug build
|
|
851
|
+
the canonical trigger for regenerating the TypeScript proxies the frontend phase depends on, and
|
|
852
|
+
the client commits the result. A consuming repository's CI never copies the Debug proxy step; it
|
|
853
|
+
passes `-p:CratisProxiesOutputPath=` in every configuration.
|
|
850
854
|
|
|
851
855
|
## Unattended runs
|
|
852
856
|
|
|
@@ -69,11 +69,13 @@
|
|
|
69
69
|
"Commands are pinned to .cratis/ai/rules/general.md 'Quality Gates' and .cratis/ai/hooks/agent-stop.md.",
|
|
70
70
|
"Note the Release build passes -p:CratisProxiesOutputPath= per general.md so the proxy",
|
|
71
71
|
"generator does not re-run and touch already-correct generated files. That property is the",
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"so passing
|
|
75
|
-
"
|
|
76
|
-
"
|
|
72
|
+
"Arc off switch: the generator's target is Condition=\"'$(CratisProxiesOutputPath)' != ''\".",
|
|
73
|
+
"DisableProxyGenerator is not an Arc property, only repository-defined \u2014 MSBuild accepts",
|
|
74
|
+
"unknown -p: names silently, so passing it elsewhere looks effective and does nothing.",
|
|
75
|
+
"The Debug/Release split is for these client-side local hooks only: the committing client's",
|
|
76
|
+
"Debug gate omits the override because general.md makes Debug the canonical proxy-regeneration",
|
|
77
|
+
"trigger, and the client commits the result. CI never copies that Debug proxy step: it passes",
|
|
78
|
+
"-p:CratisProxiesOutputPath= in every configuration."
|
|
77
79
|
],
|
|
78
80
|
"enabled": true,
|
|
79
81
|
"failFast": true,
|
|
@@ -50,7 +50,7 @@ Tagged **[contract]** (framework-enforced) or **[convention]** (house default).
|
|
|
50
50
|
4. **[contract] Events never carry the event-source id** — it is implicit in the event context.
|
|
51
51
|
5. **[contract] `[Key]` / `[Subject]` are distinct.** `[Key]` is for event-source/read-model/projection key resolution; `[Subject]` is compliance identity only. Don't put either on an `EventSourceId<T>` value (it already is both); use them only for non-`EventSourceId<T>` values.
|
|
52
52
|
6. **[contract] Avoid nullable event properties** — Chronicle's analyzer warns on them. Model optional facts as a separate event; resolve nullable command inputs to a non-null sentinel before constructing the event. **Likewise `Handle()` never returns a nullable event or `null` for "nothing to do"** — Arc treats a `null` result as success with nothing appended, so the caller is told a command succeeded that never happened. Missing state or a failed rule is a rejection: return `Result<TEvent, ValidationResult>` with `ValidationResult.Error(...)`, or reject in a validator or `Provide()`. Optional `ICommandOperation` returns are a separate contract and unaffected.
|
|
53
|
-
7. **[
|
|
53
|
+
7. **[convention] New events use plain `[EventType]`** — the type name is the id, public contracts included; "public" never implies a UUID or any explicit id. This is a house convention (decision 152), not a Chronicle contract: Chronicle accepts any string id. An explicit id is allowed only (a) to keep an already-persisted id after a CLR rename, or (b) to resolve a cross-package short-name collision (`MultipleEventTypesWithSameIdFound`). Never change an existing persisted id. Schema changes get a new generation + an `EventTypeMigration<TUpgrade,TPrevious>` (never edit stored-event semantics silently). An enum that only gains a member, or has one renamed, is the exception — Chronicle accepts that in place; a *removed* or *renumbered* member still needs a generation, plus a value map saying what the old values became.
|
|
54
54
|
8. **[convention] Every `[EventType]` has an XML `<summary>`** — a Cratis C# documentation convention (not a Chronicle rule); events live in the log forever, so record why they exist.
|
|
55
55
|
9. **[convention] `[ReadModel]` properties carry no default values** except semantically meaningful enum initial states and `[SetValue<T>]`-driven `bool` flags. False defaults hide missing projection wiring.
|
|
56
56
|
10. **[contract] AutoMap is on by default — never call `.AutoMap()`.** Match property names so AutoMap wires them; diverge with `[SetFrom<T>]` / fluent `.Set().To()` only for genuine name differences. Re-enable `.AutoMap()` only inside a scope where it was disabled with `.NoAutoMap()`.
|
|
@@ -28,6 +28,10 @@ Prefer composing behavior from smaller, focused collaborators over building clas
|
|
|
28
28
|
- Never extend a concrete class to add or change behavior — inject a collaborator instead.
|
|
29
29
|
- Inheritance is acceptable only for framework integration points where a base class is part of a well-defined extension mechanism.
|
|
30
30
|
|
|
31
|
+
## Comments carry no issue or spec references
|
|
32
|
+
|
|
33
|
+
Code comments never cite issue numbers, PR numbers or spec sections; that context belongs in the commit message and pull request. A comment says why code is non-obvious.
|
|
34
|
+
|
|
31
35
|
## Single Responsibility Principle
|
|
32
36
|
|
|
33
37
|
Every type and every method should have **one reason to change** — it should do one thing and do it well. A class that fetches data, transforms it, validates it, and sends an email has four reasons to change. When any of those concerns shifts, you have to touch — and risk breaking — all the others.
|
|
@@ -331,7 +331,7 @@ These are the building blocks. Each type has a specific role in the vertical sli
|
|
|
331
331
|
| --- | --- |
|
|
332
332
|
| `ConceptAs<T>` | Strongly-typed domain *value* wrapper (see [concepts.md](./concepts.md)) |
|
|
333
333
|
| `EventSourceId<T>` | Strongly-typed *identity* base — derive event-source ids from this, not `ConceptAs<T>` |
|
|
334
|
-
| `[EventType]` | Marks a record as a Chronicle event —
|
|
334
|
+
| `[EventType]` | Marks a record as a Chronicle event — plain for a new event (explicit id only per application-profile.md item 7) |
|
|
335
335
|
| `[Command]` | Marks a record as a model-bound command — define `Handle()` directly on the record |
|
|
336
336
|
| `[ReadModel]` | Marks a record as a model-bound query — define static query methods on the record |
|
|
337
337
|
| `CommandValidator<T>` | FluentValidation validator for commands |
|
|
@@ -84,7 +84,7 @@ The project's voice is **direct, practical, and opinionated**. Write like an exp
|
|
|
84
84
|
## Code examples
|
|
85
85
|
|
|
86
86
|
- Prefer `record` types for events, commands, and read models — match the codebase.
|
|
87
|
-
- Use
|
|
87
|
+
- Use plain `[EventType]` for new events. A new generation or an explicit id is valid only when documenting evolution of an existing stored-event contract (a retained persisted id) or a cross-package short-name collision.
|
|
88
88
|
- A standalone example must be **complete and correct** at its stated scope. Mark a partial excerpt as an excerpt, state its prerequisites, and never leave an essential step behind `// ...`. Do not offer an incomplete block as click-to-copy code.
|
|
89
89
|
- **State version requirements, not the test log.** Name minimum, fixed or breaking releases and meaningful compatibility or peer ranges. Ordinary installation follows the supported latest-release path, not universal exact-patch pins; latest does not imply every package combination is compatible. Keep resolved versions in maintained manifests/lockfiles, or pin deliberately reproducible tutorials when needed. Preserve required security/deployment constraints and production image policy. Do not end a page with verification provenance (SDK build, image digest or SHA, date, "tested with", unrun samples); that belongs in the change summary. See **cratis-technical-examples**.
|
|
90
90
|
- **Short illustrative snippets** may be purpose-built after checking their framework APIs against source. Derive substantial or runnable examples from compiled, tested sample or spec code; extract or check displayed snippets with the owning repository's tooling so they do not drift. Never substitute a bare “see the repository” link for showing the code.
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
Cratis repositories come in **two profiles**, and the rules are scoped to them. **Identify your profile first** — it decides which rules apply.
|
|
4
4
|
|
|
5
5
|
- **Application profile (default)** — you are *building an application on Cratis*: event-sourced CQRS with **Cratis Chronicle** + **Cratis Arc**, vertical slices, read models persisted to MongoDB/EF Core, and a React + Cratis Components (4.x) frontend in MVVM. Most of this corpus targets this profile.
|
|
6
|
-
- **Framework profile** — you are *contributing to a Cratis framework repository itself* (Arc, Chronicle, Fundamentals, Components, …). These are **libraries**
|
|
6
|
+
- **Framework profile** — you are *contributing to a Cratis framework repository itself* (Arc, Chronicle, Fundamentals, Components, …). These are **libraries** (source generators, the Chronicle kernel, client SDKs, a React component library), **not** vertical-slice event-sourced apps. The application-architecture rules here **do not apply**; follow **[framework.md](./framework.md)**.
|
|
7
7
|
|
|
8
8
|
**How to tell:** if the repo's own package is `Cratis.*` / `@cratis/*` and it *builds* the framework, you are in the framework profile. If it *consumes* Cratis to build a product, you are in the application profile.
|
|
9
9
|
|
|
10
|
-
**See [profiles.md](./profiles.md) for
|
|
10
|
+
**See [profiles.md](./profiles.md) for all profiles and how to configure them.**
|
|
11
11
|
|
|
12
|
-
Profile-specific rules declare a **`profile:`** in their frontmatter (`application` or `framework`); a rule **without** one is **universal** and applies everywhere — C#/TypeScript style, code quality, specs (`Cratis.Specifications`), documentation, commits/PRs, American English. In this file, everything from **Project Layout** through the **Implementation Workflow** is *application profile* (skip to the Framework profile section
|
|
12
|
+
Profile-specific rules declare a **`profile:`** in their frontmatter (`application` or `framework`); a rule **without** one is **universal** and applies everywhere — C#/TypeScript style, code quality, specs (`Cratis.Specifications`), documentation, commits/PRs, American English. In this file, everything from **Project Layout** through the **Implementation Workflow** is *application profile* (framework contributors: skip to the Framework profile section); Philosophy, Authority, Verification, Quality Gates, and the closing sections are universal.
|
|
13
13
|
|
|
14
14
|
> **Arc is a standalone CQRS framework — not bound to event sourcing.** Even within the application profile, Arc provides model-bound commands/queries, validation, authorization, and full-stack proxy generation, and works **without** Chronicle (Arc.Core does not depend on Chronicle). A `[Command]` `Handle()` does not *have* to append events — it can return a response, return `void`, or work through injected services. The event-sourcing behavior (a returned event gets appended; `EventForEventSourceId`; "never inject `IEventLog`") comes from the **Arc + Chronicle** integration. This application is event-sourced, so the slice guidance assumes event-sourced commands — read the event-centric rules as the *house default for this app*, not universal Arc laws.
|
|
15
15
|
|
|
16
|
-
The framework is convention-over-configuration. **Idiomatic Cratis is the goal — not custom abstractions over it.**
|
|
16
|
+
The framework is convention-over-configuration. **Idiomatic Cratis is the goal — not custom abstractions over it.** Recommend the idiomatic way; when unclear, prefer the Cratis convention, do not invent. The rules and skills under `.cratis/ai/` are the authoritative answer — if your question is not answered there, ask rather than inferring framework behavior from package internals.
|
|
17
17
|
|
|
18
18
|
## Project Philosophy
|
|
19
19
|
|
|
@@ -22,7 +22,7 @@ Every rule here serves **ease of use**, **productivity**, and **maintainability*
|
|
|
22
22
|
- **Lovable APIs** — APIs should be pleasant to use: sane defaults, flexible, extensible, overridable. If an API feels awkward, it is wrong.
|
|
23
23
|
- **Easy to do things right, hard to do things wrong** — convention over configuration; artifact discovery by naming/attributes; minimal boilerplate. The framework guides you into the pit of success.
|
|
24
24
|
- **Events are facts** — immutable records of what happened. Past tense, one purpose, never ambiguous. If you reach for a nullable property on an event, you need a second event.
|
|
25
|
-
- **Strongly-typed primitives are the foundation — get them right first.** The most important, load-bearing decisions in every slice are the domain primitives: `ConceptAs<T>` value types and `EventSourceId<T>` identities (never raw `Guid`/`string`/`int` for a domain value); `ConceptValidator<T>` for invariants that travel with a value everywhere it appears; `CommandValidator<T>` for command-level rules; and past-tense, self-describing `[EventType]` names.
|
|
25
|
+
- **Strongly-typed primitives are the foundation — get them right first.** The most important, load-bearing decisions in every slice are the domain primitives: `ConceptAs<T>` value types and `EventSourceId<T>` identities (never raw `Guid`/`string`/`int` for a domain value); `ConceptValidator<T>` for invariants that travel with a value everywhere it appears; `CommandValidator<T>` for command-level rules; and past-tense, self-describing `[EventType]` names. They make the model type-safe end to end, rules enforceable in one place and events trustworthy forever; a slice built on sloppy primitives is wrong however good the rest is.
|
|
26
26
|
- **High cohesion through vertical slices** — everything for a behavior lives together: backend, frontend, specs. Navigate by feature, not by technical layer.
|
|
27
27
|
- **Full-stack type safety** — shared models flow from C# through proxy generation to TypeScript. End-to-end typing without manual synchronization.
|
|
28
28
|
- **Specialization over reuse** — focused, purpose-built read models over one model reused across conflicting scenarios.
|
|
@@ -53,9 +53,7 @@ obtaining credentials, and other local conventions ("Product policy" above).
|
|
|
53
53
|
use, but it must never contain credential values, tokens, keys, passwords, or
|
|
54
54
|
other secrets.
|
|
55
55
|
- A repository's accepted decision records (`decisions/`) and project rules bind AI work: read those matching your paths, follow them, never work around one.
|
|
56
|
-
- Project-specific guidance wins when it
|
|
57
|
-
but it may not weaken organization security, authorization, or required
|
|
58
|
-
quality gates.
|
|
56
|
+
- Project-specific guidance wins when it narrows shared behavior for product policy, but may not weaken organization security, authorization, or required quality gates. For `[convention]` idioms the corpus wins over repository-local specs, design docs, and existing code or checks; a deviation needs an accepted ADR in the repository's decisions folder naming the corpus rule it replaces. It never relaxes `[contract]` rules, security, authorization or gates, or rewrites persisted ids.
|
|
59
57
|
- Scope project file concerns with `paths`; put operational workflows in
|
|
60
58
|
`.agents/skills/`, not global `applyTo: "**/*"` rules.
|
|
61
59
|
|
|
@@ -102,6 +102,13 @@ capacity numbers into workflows or guidance.
|
|
|
102
102
|
- **Never** route `pull_request`-triggered jobs of a *public* repository to self-hosted
|
|
103
103
|
runners — that hands code execution on our infrastructure to any fork.
|
|
104
104
|
|
|
105
|
+
## Arc proxies
|
|
106
|
+
|
|
107
|
+
- Workflows never generate Arc TypeScript proxies; the client commits them. Every `dotnet
|
|
108
|
+
build`/`publish` of an Arc project passes `-p:CratisProxiesOutputPath=` (empty, Arc's off
|
|
109
|
+
switch; `DisableProxyGenerator` is repository-defined, not Arc's). See the
|
|
110
|
+
**cratis-arc-command** proxy-generation reference.
|
|
111
|
+
|
|
105
112
|
## Automation that writes back
|
|
106
113
|
|
|
107
114
|
- A bot that pushes to a branch must **retry with `git pull --rebase`** — the branch
|
|
@@ -37,21 +37,21 @@ dumps, and similar coordination files. These are **work records, not documentati
|
|
|
37
37
|
replace the prompt.
|
|
38
38
|
- **A worktree is a work record too.** Create it outside the repository tree, for
|
|
39
39
|
example in a sibling `../.worktrees/` directory. A nested worktree inherits the
|
|
40
|
-
parent's `.globalconfig`, causing .NET
|
|
41
|
-
|
|
40
|
+
parent's `.globalconfig`, causing .NET `MultipleGlobalAnalyzerKeys` errors or silently
|
|
41
|
+
changing analyzer severities. In a container worker whose checkout is the workspace root
|
|
42
|
+
with a read-only parent (such as `/workspace`), use `$HOME/.worktrees/<name>`,
|
|
43
|
+
never `..` outside the workspace or inside the checkout. **Delivered work is cleaned up by
|
|
42
44
|
`.cratis/ai/hooks/scripts/cratis-cleanup-worktrees.sh`, not by memory:** run it from the
|
|
43
|
-
main checkout when a
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
worktree and branch behind, which is why the script exists. If the branch must outlive the
|
|
54
|
-
task unmerged, leave the worktree and say so in the handoff. Never `--force` a removal; a
|
|
45
|
+
main checkout when a PR merges or you finish a task (hooks and **ship-changes** also run it). It
|
|
46
|
+
removes a worktree and its branch only on evidence the work reached the default branch —
|
|
47
|
+
pushed is not merged — and never forces. It keeps worktrees with non-empty `.ai-work/`
|
|
48
|
+
directories; manual `--include-work-records` deletes them once you have preserved what you
|
|
49
|
+
need; hooks never opt in. Pin a long-lived worktree with `git worktree lock <path>`;
|
|
50
|
+
locked worktrees are always kept, even with opt-in. Ignored files (`.env`, local databases) are
|
|
51
|
+
deleted with a removed worktree: move what you need out first. Do not hand-remove worktrees
|
|
52
|
+
or `git branch -D` a delivered branch when the script can; `gh pr merge --delete-branch`
|
|
53
|
+
inside a worktree leaves the worktree and branch behind. If the branch must outlive the task
|
|
54
|
+
unmerged, leave the worktree and say so in the handoff. Never `--force` a removal; a
|
|
55
55
|
refusal means look, not push harder.
|
|
56
56
|
- **Scan for secrets before archiving or sharing.** Before anything from `.ai-work/` is archived,
|
|
57
57
|
attached or shared, run `gitleaks detect --no-git --source <dir>` (or the repository's equivalent)
|
|
@@ -230,7 +230,7 @@ Apply authorization attributes on the `[Command]` record or query method. **[con
|
|
|
230
230
|
|
|
231
231
|
`[EventType]` records are the schema-bound truth of the system.
|
|
232
232
|
|
|
233
|
-
- **[
|
|
233
|
+
- **[convention] Plain `[EventType]` for new events, public ones included** — the type name is the id; an explicit id only to retain a persisted id or resolve a cross-package collision, never to change one (application-profile.md item 7, decision 152). Evolve a contract with `generation:` (invoke the **cratis-chronicle-event-type-migration** skill).
|
|
234
234
|
- **[contract] Past-tense, one-purpose names** (`AuthorRegistered`, not `Updated`/`FormSubmitted`) — Chronicle requires past-tense, single-purpose facts. Self-describing without slice context.
|
|
235
235
|
- **[contract] Avoid nullable properties** — Chronicle's analyzer warns on nullable event members; model optional facts as a separate event, or resolve a nullable command input to a non-null sentinel before constructing the event.
|
|
236
236
|
- **[contract] `Handle()` never returns a nullable event or `null` for "nothing to do"** — Arc treats a `null` result as success with nothing appended, so the caller is told a command succeeded that never happened. Missing state or a failed rule is a rejection: return `Result<TEvent, ValidationResult>` with `ValidationResult.Error(...)`, or reject in a validator or `Provide()`. Optional `ICommandOperation` returns are a separate contract and unaffected.
|
|
@@ -212,6 +212,13 @@ behavior.
|
|
|
212
212
|
Arc tenancy is request-scoped tenant *resolution*. It is not Chronicle's tenant
|
|
213
213
|
namespace isolation — that is separate guidance.
|
|
214
214
|
|
|
215
|
+
## Headless reusable modules
|
|
216
|
+
|
|
217
|
+
A reusable module that must work in any host ships backend contracts only:
|
|
218
|
+
commands, queries, events and the identity/claims integration. It has no pages,
|
|
219
|
+
routes, styling or UI components. Sign-in, consent and profile UI belong to the
|
|
220
|
+
host application, which composes the module's endpoints.
|
|
221
|
+
|
|
215
222
|
## Frontend
|
|
216
223
|
|
|
217
224
|
Read [references/frontend.md](references/frontend.md#identity-hook-examples) when you need the `<Arc>` provider and `useIdentity`/`RequireRole` examples.
|
|
@@ -102,13 +102,20 @@ On the frontend, the generated route already starts with the API prefix.
|
|
|
102
102
|
|
|
103
103
|
## Skipping generation
|
|
104
104
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
105
|
+
**Proxies are generated by the committing client, never in CI.** The client that
|
|
106
|
+
changes a command or query builds Debug, generates the proxies and commits them
|
|
107
|
+
with the change. CI builds compile against the committed proxies; a CI build that
|
|
108
|
+
regenerates them produces diffs nobody commits or drift that exists only on the
|
|
109
|
+
runner. Every CI build of an Arc project passes `-p:CratisProxiesOutputPath=`
|
|
110
|
+
(empty), in every configuration.
|
|
111
|
+
|
|
112
|
+
`-p:CratisProxiesOutputPath=` is Arc's off switch: the `CratisProxyGenerator`
|
|
113
|
+
target runs only when `CratisProxiesOutputPath` is non-empty, so an empty value
|
|
114
|
+
makes it a no-op. `DisableProxyGenerator` is **not an Arc property**; it works only
|
|
115
|
+
in a repository that defines it itself (for example a project that gates
|
|
116
|
+
`CratisProxiesOutputPath` and the generator reference on it, as the Chronicle
|
|
117
|
+
kernel `Core.csproj` does). MSBuild accepts unknown `-p:` names silently, so passing
|
|
118
|
+
it where it is not defined looks effective and does nothing.
|
|
112
119
|
|
|
113
120
|
## What the generator extracts for client-side validation
|
|
114
121
|
|
|
@@ -83,10 +83,15 @@ generation. There is no id argument, which is the point: the event type id is
|
|
|
83
83
|
resolved from the current record's `[EventType]`, so the two generations cannot
|
|
84
84
|
end up with mismatched ids.
|
|
85
85
|
|
|
86
|
+
Persisted event type ids are immutable identity, and an explicit id is a house
|
|
87
|
+
exception (decision 152): new events use plain `[EventType]`, and an id string is
|
|
88
|
+
written only to retain an already-persisted id after a rename (below) or to
|
|
89
|
+
resolve a cross-package short-name collision. Never change or "normalize" one.
|
|
90
|
+
|
|
86
91
|
The older style — giving the prior record its own
|
|
87
92
|
`[EventType("<explicit-id>", generation: 1)]` with an id string identical to the
|
|
88
|
-
current generation's — is still supported and still works.
|
|
89
|
-
`[EventTypeGenerationFor<T>]` for anything new: with the explicit-id style, an
|
|
93
|
+
current generation's — is still supported and still works, as a retained id.
|
|
94
|
+
Prefer `[EventTypeGenerationFor<T>]` for anything new: with the explicit-id style, an
|
|
90
95
|
omitted or mistyped id silently defaults to the CLR type name, Chronicle then
|
|
91
96
|
treats the two as unrelated event types, and the migration never applies.
|
|
92
97
|
|
|
@@ -183,7 +188,7 @@ Adding/removing an **optional** property at any depth still needs a migration
|
|
|
183
188
|
class to complete the new generation chain, but no property operations: the
|
|
184
189
|
target schema supplies absence/drops undeclared properties. That is a migration
|
|
185
190
|
fact, not a reason to put nullable facts on newly authored events. Schema `title`
|
|
186
|
-
is ignored, so renaming a CLR record
|
|
191
|
+
is ignored, so renaming a CLR record whose persisted id is retained with `[EventType("id")]` does not
|
|
187
192
|
raise `EventTypeSchemaChanged`. A property described only by `default` may gain
|
|
188
193
|
`type`/`format` without that error. Source:
|
|
189
194
|
`Documentation/migrations/dotnet-client.mdx` and the kernel event-type schema comparison.
|
|
@@ -297,6 +302,7 @@ is expected, since the prior generation records history rather than new intent.
|
|
|
297
302
|
| Adding a nullable property to represent "missing on old events" | CHR0012; supply a `DefaultValue` instead |
|
|
298
303
|
| Splitting one event into two inside `Upcast` | a migration produces one event; model a split as a reactor or a command |
|
|
299
304
|
| Adding a new generation for a renamed enum member | not needed; only removal or renumbering requires one |
|
|
305
|
+
| Deriving an operational identity from the event type id (outbox deduplication key, derived fact id, fence-log key, replay receipt) and then renaming | generations do not cover it; keep the old id value or migrate that store |
|
|
300
306
|
|
|
301
307
|
## Verify
|
|
302
308
|
|
|
@@ -307,6 +313,8 @@ is expected, since the prior generation records history rather than new intent.
|
|
|
307
313
|
implements both `Upcast` and `Downcast` with the correct generic order.
|
|
308
314
|
- `MapValues` is overridden only where a value's meaning changed.
|
|
309
315
|
- No nullable property was added to an `[EventType]` record.
|
|
316
|
+
- Any explicit id retains a persisted id or resolves a collision, and no store
|
|
317
|
+
keyed by an event type id (deduplication keys, receipts) was left behind.
|
|
310
318
|
- The build is clean with no `CHR0012`, `CHR0037`, `CHR0049`, or `CHR0050`
|
|
311
319
|
outstanding.
|
|
312
320
|
- Old-generation events replay into the current shape through the read-model
|
|
@@ -59,6 +59,11 @@ before an external effect. A request to verify does not authorize a push.
|
|
|
59
59
|
7. A change to a command, read model or query shape runs the repository's proxy
|
|
60
60
|
and API regeneration checks; never hand-edit generated files. A package bump
|
|
61
61
|
regenerates the checked-in snapshots that pin versions, in the same commit.
|
|
62
|
+
Arc TypeScript proxies are generated and committed by the client, never in CI:
|
|
63
|
+
CI, and local gates that mirror CI, pass `-p:CratisProxiesOutputPath=` (empty;
|
|
64
|
+
the `DisableProxyGenerator` name is repository-defined, not Arc's); only the
|
|
65
|
+
client's own Debug hook regenerates proxies. See the
|
|
66
|
+
**cratis-arc-command** proxy-generation reference.
|
|
62
67
|
|
|
63
68
|
Use affected-project checks while coding and writing specifications. Build once
|
|
64
69
|
at the end: run the full local gate when the work is believed complete, not after
|
|
@@ -67,7 +67,7 @@ This table is a reading of the renderer's admission, not a render result: run th
|
|
|
67
67
|
| Enum numbers / compliance | explicit enum numbers (v12); concept `[PII]` or scoped `[Encrypted]` + `[NotAudited]` (v13), property-level `[NotAudited]` for protected command inputs | protected identities/enums (`-040`); explicit subject lineage remains unadmitted |
|
|
68
68
|
| Specifications | command scenarios and supported single-hop reaction appends; Stage's `admission.md` | appends outside the single-hop subset and commands cascading into reactions (`-011`); `then no readmodel` (`-027`); an unauthenticated caller carrying roles or claims (`-011`); command `given clock` renders only whole milliseconds at or after 1970 |
|
|
69
69
|
| v9 and v10 | reaction/reducer `from` filters; role/authenticated `runs as`; bounded source-event captures and outbound public projection | unsupported public-event production (`-032`), foreign-event uses (`-033`) and Translate shapes (`-024`); claim-reading/opaque `runs as` gates (`-034`); legacy `from` (`-035`); per-production route overrides (`-036`) |
|
|
70
|
-
| Stored event names (v16) | `[EventType("storedName")]`
|
|
70
|
+
| Stored event names (v16) | `[EventType("storedName")]` is a retained id (stored identity) while the class follows the model name | changed/unreadable destination event ids: `STAGE-EVENT-002`, CLI `CLI-RENDER-016` |
|
|
71
71
|
| No events / redelivery (v17) | otherwise admitted command no-event specs; one production-only reaction no-effect spec; located redelivery to one trigger with productions or one supported invocation | fan-out, deeper cascades, constraints, read/query expectations, redelivery with refusal branches, appends with no observer: `-011` |
|
|
72
72
|
| Refusal branches (v19) | ordered Arc `OnRefused`/`Acknowledge`, refusal values and supported single-hop append specs | same-event multi-trigger refusal groups, localized `$refusal.message`, ambiguous multiple-constraint `$refusal.constraint`: `-039`; specification limits: `-011` |
|
|
73
73
|
| Evolved events | initial revisions only (migrations are not rendered) | `STAGE-ESM-026` |
|
|
@@ -151,7 +151,7 @@ multi-trigger refusal groups, localized `$refusal.message`, or `$refusal.constra
|
|
|
151
151
|
when several constraints can fail together report STAGE-ESM-039. Unsupported branch
|
|
152
152
|
conditions/routes/mappings retain -039, specification shapes -011.
|
|
153
153
|
|
|
154
|
-
Differing event pins render as `[EventType("storedName")]
|
|
154
|
+
Differing event pins render as `[EventType("storedName")]` (a retained stored id); the class follows the
|
|
155
155
|
model name. Destination event-id changes or unreadable existing ids block every
|
|
156
156
|
publication scope with STAGE-EVENT-002 / CLI-RENDER-016, even under `--force`.
|
|
157
157
|
Requires Cratis CLI 3.60.0 (`cratis --version`) for this publication check; older
|