@cratis/pi 7.49.0 → 7.51.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.
- package/package/corpus/agents/screenplay-modeler.md +5 -2
- package/package/corpus/agents/screenplay-reviewer.md +1 -0
- package/package/corpus/harnesses/copilot/instructions/authoring-skills.instructions.md +93 -0
- package/package/corpus/harnesses/copilot/instructions/profiles.instructions.md +4 -0
- package/package/corpus/harnesses/copilot/instructions/react.instructions.md +1 -0
- package/package/corpus/hooks/README.md +23 -0
- package/package/corpus/hooks/scripts/cratis-pattern-scan.sh +1 -1
- package/package/corpus/hooks/scripts/cratis-patterns.json +8 -0
- package/package/corpus/hooks/scripts/cratis-quality-gate.sh +6 -0
- package/package/corpus/hooks/scripts/cratis-slice-scope-report.sh +54 -0
- package/package/corpus/prompts/review-skill.prompt.md +6 -8
- package/package/corpus/rules/authoring-skills.md +92 -0
- package/package/corpus/rules/general.md +1 -0
- package/package/corpus/rules/profiles.md +4 -0
- package/package/corpus/rules/react.md +1 -0
- package/package/corpus/skills/cratis-application-react-specifications/SKILL.md +1 -1
- package/package/corpus/skills/cratis-application-slice-conformance/references/build-prompts.md +9 -1
- package/package/corpus/skills/cratis-application-slice-conformance/references/checklists.md +4 -1
- package/package/corpus/skills/cratis-application-slice-conformance/references/provenance.md +3 -0
- package/package/corpus/skills/cratis-application-slice-specifications/LICENSE +4 -0
- package/package/corpus/skills/cratis-application-slice-specifications/references/provenance.md +9 -0
- package/package/corpus/skills/cratis-application-slice-specifications/references/query-and-decision-scenarios.md +8 -0
- package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/SKILL.md +23 -29
- package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/authentication.md +7 -7
- package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/authorization.md +34 -32
- package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/authproxy.md +1 -1
- package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/frontend.md +2 -2
- package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/local-development.md +3 -3
- package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/observable-emission-guards.md +8 -6
- package/package/corpus/skills/cratis-arc-authentication-authorization-and-identity/references/tenancy.md +3 -3
- package/package/corpus/skills/cratis-arc-command/SKILL.md +23 -25
- package/package/corpus/skills/cratis-arc-command/references/command-result.md +1 -1
- package/package/corpus/skills/cratis-arc-command/references/decisions-and-routing.md +9 -9
- package/package/corpus/skills/cratis-arc-command/references/generated-values.md +11 -12
- package/package/corpus/skills/cratis-arc-command/references/handler-shapes.md +4 -4
- package/package/corpus/skills/cratis-arc-command/references/proxy-generation.md +3 -3
- package/package/corpus/skills/cratis-arc-command/references/read-model-injection.md +1 -3
- package/package/corpus/skills/cratis-arc-command/references/shop-generation.md +11 -14
- package/package/corpus/skills/cratis-arc-command-execution/LICENSE +6 -0
- package/package/corpus/skills/cratis-arc-command-execution/SKILL.md +17 -19
- package/package/corpus/skills/cratis-arc-command-kotlin/SKILL.md +8 -7
- package/package/corpus/skills/cratis-arc-command-kotlin/references/read-model-naming.md +2 -2
- package/package/corpus/skills/cratis-arc-command-operation/SKILL.md +14 -15
- package/package/corpus/skills/cratis-arc-command-operation/references/execution-and-recovery.md +2 -2
- package/package/corpus/skills/cratis-arc-command-operation/references/testing.md +7 -8
- package/package/corpus/skills/cratis-arc-command-typescript/SKILL.md +14 -11
- package/package/corpus/skills/cratis-arc-command-typescript/references/chronicle-events.md +7 -7
- package/package/corpus/skills/cratis-arc-command-typescript/references/command-operations.md +4 -4
- package/package/corpus/skills/cratis-arc-command-typescript/references/hosting-and-storage.md +11 -7
- package/package/corpus/skills/cratis-arc-command-typescript/references/identity-and-introspection.md +4 -2
- package/package/corpus/skills/cratis-arc-command-typescript/references/observability-and-host-scopes.md +2 -2
- package/package/corpus/skills/cratis-arc-command-typescript/references/proxy-generation.md +3 -3
- package/package/corpus/skills/cratis-arc-command-typescript/references/slice-layout.md +1 -1
- package/package/corpus/skills/cratis-arc-command-typescript/verification.json +2 -2
- package/package/corpus/skills/cratis-arc-command-validation/SKILL.md +10 -14
- package/package/corpus/skills/cratis-arc-ef-core-migration/LICENSE +6 -0
- package/package/corpus/skills/cratis-arc-ef-core-migration/SKILL.md +9 -10
- package/package/corpus/skills/cratis-arc-go/SKILL.md +14 -15
- package/package/corpus/skills/cratis-arc-go/references/queries.md +2 -2
- package/package/corpus/skills/cratis-arc-hosting/SKILL.md +8 -8
- package/package/corpus/skills/cratis-arc-hosting/references/integrations-and-publish.md +11 -11
- package/package/corpus/skills/cratis-arc-identity-and-tenancy-kotlin/SKILL.md +3 -3
- package/package/corpus/skills/cratis-arc-observable-query-http/SKILL.md +13 -13
- package/package/corpus/skills/cratis-arc-observable-query-http/verification.json +1 -1
- package/package/corpus/skills/cratis-arc-query-kotlin/SKILL.md +2 -3
- package/package/corpus/skills/cratis-arc-query-paging/SKILL.md +11 -14
- package/package/corpus/skills/cratis-arc-query-typescript/SKILL.md +3 -3
- package/package/corpus/skills/cratis-arc-query-typescript/references/storage-observation-and-compliance.md +2 -2
- package/package/corpus/skills/cratis-arc-react-page/LICENSE +4 -0
- package/package/corpus/skills/cratis-arc-react-page/references/from-screenplay.md +6 -0
- package/package/corpus/skills/cratis-arc-react-page/references/provenance.md +9 -0
- package/package/corpus/skills/cratis-arc-spring-data-kotlin/SKILL.md +3 -3
- package/package/corpus/skills/cratis-arc-testing-kotlin/SKILL.md +3 -3
- package/package/corpus/skills/cratis-arc-validation-kotlin/SKILL.md +1 -2
- package/package/corpus/skills/cratis-arc-validation-typescript/SKILL.md +4 -4
- package/package/corpus/skills/cratis-chronicle-cli-operations/SKILL.md +19 -22
- package/package/corpus/skills/cratis-chronicle-cli-operations/references/command-effects.md +10 -10
- package/package/corpus/skills/cratis-chronicle-client-dotnet/SKILL.md +36 -36
- package/package/corpus/skills/cratis-chronicle-client-dotnet/references/additional-surfaces.md +4 -2
- package/package/corpus/skills/cratis-chronicle-client-dotnet/references/client-construction.md +1 -1
- package/package/corpus/skills/cratis-chronicle-client-dotnet/references/compatibility-check.md +13 -13
- package/package/corpus/skills/cratis-chronicle-client-dotnet/references/discovery.md +10 -10
- package/package/corpus/skills/cratis-chronicle-client-dotnet/references/hosting.md +10 -10
- package/package/corpus/skills/cratis-chronicle-client-dotnet/references/pinned-generation-delivery.md +7 -5
- package/package/corpus/skills/cratis-chronicle-client-elixir/SKILL.md +59 -64
- package/package/corpus/skills/cratis-chronicle-client-elixir/references/append-api.md +17 -17
- package/package/corpus/skills/cratis-chronicle-client-elixir/references/compliance.md +5 -3
- package/package/corpus/skills/cratis-chronicle-client-elixir/references/connections.md +15 -11
- package/package/corpus/skills/cratis-chronicle-client-elixir/references/event-sources.md +3 -1
- package/package/corpus/skills/cratis-chronicle-client-elixir/references/pitfalls.md +4 -4
- package/package/corpus/skills/cratis-chronicle-client-elixir/references/projections.md +8 -4
- package/package/corpus/skills/cratis-chronicle-client-elixir/references/upgrading.md +19 -19
- package/package/corpus/skills/cratis-chronicle-client-elixir/references/variants.md +3 -8
- package/package/corpus/skills/cratis-chronicle-client-elixir/verification.json +2 -2
- package/package/corpus/skills/cratis-chronicle-client-go/SKILL.md +16 -18
- package/package/corpus/skills/cratis-chronicle-client-go/references/projections.md +2 -2
- package/package/corpus/skills/cratis-chronicle-client-kotlin/SKILL.md +61 -58
- package/package/corpus/skills/cratis-chronicle-client-kotlin/references/connection-lifecycle.md +9 -10
- package/package/corpus/skills/cratis-chronicle-client-kotlin/references/discovery-and-registration.md +6 -6
- package/package/corpus/skills/cratis-chronicle-client-kotlin/references/event-sources.md +4 -2
- package/package/corpus/skills/cratis-chronicle-client-kotlin/references/java-api.md +4 -4
- package/package/corpus/skills/cratis-chronicle-client-kotlin/references/options.md +1 -1
- package/package/corpus/skills/cratis-chronicle-client-kotlin/references/spring-boot.md +24 -24
- package/package/corpus/skills/cratis-chronicle-client-kotlin/references/variants.md +6 -5
- package/package/corpus/skills/cratis-chronicle-client-typescript/SKILL.md +26 -20
- package/package/corpus/skills/cratis-chronicle-client-typescript/references/read-models-and-projections.md +4 -4
- package/package/corpus/skills/cratis-chronicle-client-typescript/references/testing.md +1 -1
- package/package/corpus/skills/cratis-chronicle-client-typescript/references/variants.md +4 -3
- package/package/corpus/skills/cratis-chronicle-client-typescript/verification.json +2 -2
- package/package/corpus/skills/cratis-chronicle-compliance/SKILL.md +9 -9
- package/package/corpus/skills/cratis-chronicle-decision-reads/SKILL.md +11 -10
- package/package/corpus/skills/cratis-chronicle-decision-reads/references/admission-and-ownership.md +1 -1
- package/package/corpus/skills/cratis-chronicle-decision-reads/references/choosing-how-a-rule-holds.md +5 -6
- package/package/corpus/skills/cratis-chronicle-event-constraints/SKILL.md +7 -7
- package/package/corpus/skills/cratis-chronicle-event-constraints/references/closing-streams.md +1 -1
- package/package/corpus/skills/cratis-chronicle-event-modeling/SKILL.md +12 -1
- package/package/corpus/skills/cratis-chronicle-event-specifications/SKILL.md +6 -6
- package/package/corpus/skills/cratis-chronicle-event-type-migration/SKILL.md +12 -10
- package/package/corpus/skills/cratis-chronicle-event-type-migration/references/pinned-generations.md +2 -3
- package/package/corpus/skills/cratis-chronicle-hosting/SKILL.md +7 -7
- package/package/corpus/skills/cratis-chronicle-hosting/references/operations.md +5 -5
- package/package/corpus/skills/cratis-chronicle-mcp-inspection/SKILL.md +6 -6
- package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/blocked-tools.md +5 -5
- package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/deployment.md +9 -10
- package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/observational-tools.md +29 -29
- package/package/corpus/skills/cratis-chronicle-multi-tenancy/SKILL.md +9 -9
- package/package/corpus/skills/cratis-chronicle-projection/SKILL.md +13 -14
- package/package/corpus/skills/cratis-chronicle-projection/references/fluent-builder.md +3 -5
- package/package/corpus/skills/cratis-chronicle-projection/references/model-bound-attributes.md +2 -4
- package/package/corpus/skills/cratis-chronicle-projection/references/variants.md +1 -3
- package/package/corpus/skills/cratis-chronicle-reactor/LICENSE +4 -0
- package/package/corpus/skills/cratis-chronicle-reactor/references/provenance.md +10 -0
- package/package/corpus/skills/cratis-chronicle-reactor/references/slice-delivery-checklist.md +33 -0
- package/package/corpus/skills/cratis-chronicle-reactor/references/specifications.md +17 -1
- package/package/corpus/skills/cratis-chronicle-read-model/SKILL.md +16 -15
- package/package/corpus/skills/cratis-chronicle-read-model/references/queries.md +8 -8
- package/package/corpus/skills/cratis-chronicle-reducer/SKILL.md +14 -13
- package/package/corpus/skills/cratis-chronicle-web-workbench/SKILL.md +11 -12
- package/package/corpus/skills/cratis-cli-terminal-workbench/SKILL.md +6 -6
- package/package/corpus/skills/cratis-code-review/SKILL.md +13 -17
- package/package/corpus/skills/cratis-components-accessibility/SKILL.md +3 -3
- package/package/corpus/skills/cratis-components-common-controls/SKILL.md +15 -15
- package/package/corpus/skills/cratis-components-data-surfaces/SKILL.md +29 -29
- package/package/corpus/skills/cratis-components-schema-editor/SKILL.md +4 -4
- package/package/corpus/skills/cratis-components-schema-editor/references/tree-layout.md +1 -1
- package/package/corpus/skills/cratis-components-stepper-command-dialog/SKILL.md +6 -6
- package/package/corpus/skills/cratis-components-styling/LICENSE +6 -0
- package/package/corpus/skills/cratis-components-styling/SKILL.md +5 -4
- package/package/corpus/skills/cratis-components-toolbar/SKILL.md +5 -5
- package/package/corpus/skills/cratis-developer-marketing/SKILL.md +2 -2
- package/package/corpus/skills/cratis-engineering-csharp-conventions/SKILL.md +3 -3
- package/package/corpus/skills/cratis-engineering-csharp-conventions/references/exceptions-logging-and-di.md +1 -1
- package/package/corpus/skills/cratis-engineering-effect-boundaries/references/failure-archetypes.md +4 -4
- package/package/corpus/skills/cratis-event-model-diagram/LICENSE +5 -0
- package/package/corpus/skills/cratis-event-model-diagram/SKILL.md +6 -1
- package/package/corpus/skills/cratis-event-model-diagram/references/provenance.md +9 -0
- package/package/corpus/skills/cratis-fundamentals-concept/SKILL.md +19 -24
- package/package/corpus/skills/cratis-fundamentals-concept/references/shop-generation.md +10 -10
- package/package/corpus/skills/cratis-fundamentals-concept/references/typescript-concepts.md +8 -8
- package/package/corpus/skills/cratis-fundamentals-concept-go/SKILL.md +10 -11
- package/package/corpus/skills/cratis-fundamentals-telemetry/SKILL.md +18 -18
- package/package/corpus/skills/cratis-fundamentals-telemetry/verification.json +1 -1
- package/package/corpus/skills/cratis-fundamentals-type-discovery/SKILL.md +4 -4
- package/package/corpus/skills/cratis-lens-browser-extension/SKILL.md +19 -19
- package/package/corpus/skills/cratis-orleans-jobs/SKILL.md +27 -27
- package/package/corpus/skills/cratis-orleans-jobs/references/state-machines.md +12 -12
- package/package/corpus/skills/cratis-performance-review/SKILL.md +8 -10
- package/package/corpus/skills/cratis-release-notes/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/LICENSE +5 -0
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/SKILL.md +2 -2
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/automation-patterns.md +24 -0
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/integration-contracts.md +19 -0
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/provenance.md +10 -0
- package/package/corpus/skills/cratis-screenplay-automations-and-translations/references/realization-and-gap-fill.md +1 -1
- package/package/corpus/skills/cratis-screenplay-discovery/SKILL.md +10 -12
- package/package/corpus/skills/cratis-screenplay-discovery/references/divergent-sweep.md +9 -0
- package/package/corpus/skills/cratis-screenplay-discovery/references/document-intake.md +123 -0
- package/package/corpus/skills/cratis-screenplay-discovery/references/domain-analysis-template.md +1 -12
- package/package/corpus/skills/cratis-screenplay-discovery/references/event-naming.md +49 -0
- package/package/corpus/skills/cratis-screenplay-discovery/references/facilitation.md +2 -0
- package/package/corpus/skills/cratis-screenplay-discovery/references/human-workshop.md +26 -1
- package/package/corpus/skills/cratis-screenplay-discovery/references/plotting-and-handoff.md +17 -0
- package/package/corpus/skills/cratis-screenplay-discovery/references/provenance.md +5 -1
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/nine-steps.md +7 -3
- package/package/corpus/skills/cratis-screenplay-event-modeling/references/provenance.md +2 -0
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/SKILL.md +50 -79
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/evidence-table-template.md +39 -4
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/expert-verification.md +15 -1
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/intent-example.md +31 -7
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/interview-findings.md +8 -2
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/loss-report-template.md +4 -0
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/provenance.md +8 -2
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/re-entry-and-passes.md +102 -3
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/side-car-migration.md +3 -1
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/signal-to-intent.md +29 -0
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/ui-observation.md +2 -1
- package/package/corpus/skills/cratis-screenplay-legacy-extraction/references/verified-sources.md +20 -0
- package/package/corpus/skills/cratis-screenplay-model-review/SKILL.md +27 -54
- package/package/corpus/skills/cratis-screenplay-model-review/references/baseline-comparison.md +9 -0
- package/package/corpus/skills/cratis-screenplay-model-review/references/business-questions.md +6 -1
- package/package/corpus/skills/cratis-screenplay-model-review/references/checklist.md +1 -1
- package/package/corpus/skills/cratis-screenplay-model-review/references/mode-compliance.md +5 -0
- package/package/corpus/skills/cratis-screenplay-model-review/references/model-inventory-report.md +48 -11
- package/package/corpus/skills/cratis-screenplay-model-review/references/provenance.md +5 -2
- package/package/corpus/skills/cratis-screenplay-model-review/references/quick-self-check.md +20 -0
- package/package/corpus/skills/cratis-screenplay-model-review/references/stressor-analysis.md +22 -10
- package/package/corpus/skills/cratis-screenplay-model-review/references/verified-sources.md +15 -0
- package/package/corpus/skills/cratis-screenplay-model-review/references/walkthrough.md +135 -0
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/LICENSE +5 -0
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/core-rules-digest.md +7 -0
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/per-turn-protocol.md +6 -2
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/phases.md +16 -1
- package/package/corpus/skills/cratis-screenplay-modeling-lifecycle/references/provenance.md +21 -0
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/SKILL.md +1 -0
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/drift-and-fallback-record.md +7 -30
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/hand-written-changes.md +150 -0
- package/package/corpus/skills/cratis-screenplay-render-and-gap-fill/references/provenance.md +2 -2
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/provenance.md +1 -0
- package/package/corpus/skills/cratis-screenplay-scenario-coverage/references/scenario-catalogue.md +17 -0
- package/package/corpus/skills/cratis-screenplay-slice-design/SKILL.md +1 -1
- package/package/corpus/skills/cratis-screenplay-slice-design/references/command-inventory.md +6 -0
- package/package/corpus/skills/cratis-screenplay-slice-design/references/field-lineage.md +9 -1
- package/package/corpus/skills/cratis-screenplay-slice-design/references/provenance.md +6 -0
- package/package/corpus/skills/cratis-screenplay-slice-design/references/read-model-design.md +23 -6
- package/package/corpus/skills/cratis-screenplay-slice-design/references/review-questions.md +4 -0
- package/package/corpus/skills/cratis-screenplay-slice-design/references/slicing.md +69 -0
- package/package/corpus/skills/cratis-screenplay-slice-design/references/worked-example.md +4 -1
- package/package/corpus/skills/cratis-screenplay-toolchain/references/screenplay-contract-exceptions.json +0 -7
- package/package/corpus/skills/cratis-security-review/SKILL.md +8 -10
- package/package/corpus/skills/cratis-security-review/references/arc-boundaries.md +18 -16
- package/package/corpus/skills/cratis-specification-by-example/SKILL.md +1 -1
- package/package/corpus/skills/cratis-specifications-csharp/SKILL.md +26 -29
- package/package/corpus/skills/cratis-specifications-csharp/references/application-scenarios.md +8 -8
- package/package/corpus/skills/cratis-specifications-csharp/references/csharp-patterns.md +2 -2
- package/package/corpus/skills/cratis-specifications-csharp/references/integration-specs.md +6 -4
- package/package/corpus/skills/cratis-specifications-csharp/references/shared-lifecycle.md +6 -2
- package/package/corpus/skills/cratis-specifications-typescript/SKILL.md +2 -2
- package/package/corpus/skills/cratis-studio-mcp-safety-guidance/SKILL.md +4 -4
- package/package/corpus/skills/cratis-writing-voice-and-cadence/SKILL.md +1 -1
- package/package/corpus/skills/guiding-refactoring-with-code-health/SKILL.md +1 -1
- package/package/corpus/skills/prioritizing-technical-debt/SKILL.md +1 -1
- package/package/corpus/skills/risk-based-testing-with-code-health/SKILL.md +3 -3
- package/package/corpus/skills/safeguarding-ai-generated-code/SKILL.md +1 -1
- package/package.json +1 -1
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
|
|
4
4
|
# Chronicle MCP deployment and denials
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
[configuration](https://github.com/Cratis/Chronicle.Mcp/blob/
|
|
8
|
-
[deployment profiles](https://github.com/Cratis/Chronicle.Mcp/blob/
|
|
9
|
-
[ToolCatalog.cs](https://github.com/Cratis/Chronicle.Mcp/blob/
|
|
10
|
-
and [Program.cs](https://github.com/Cratis/Chronicle.Mcp/blob/
|
|
6
|
+
Source: `Cratis/Chronicle.Mcp`:
|
|
7
|
+
[configuration](https://github.com/Cratis/Chronicle.Mcp/blob/main/Documentation/configuration.md),
|
|
8
|
+
[deployment profiles](https://github.com/Cratis/Chronicle.Mcp/blob/main/Documentation/deployment-profiles.md),
|
|
9
|
+
[ToolCatalog.cs](https://github.com/Cratis/Chronicle.Mcp/blob/main/Source/Authorization/ToolCatalog.cs)
|
|
10
|
+
and [Program.cs](https://github.com/Cratis/Chronicle.Mcp/blob/main/Source/Program.cs).
|
|
11
11
|
|
|
12
12
|
## Registration and target
|
|
13
13
|
|
|
@@ -15,12 +15,11 @@ The product documents Docker/stdio launch using `docker run -i --rm`, passing
|
|
|
15
15
|
`Cratis__Chronicle__Mcp__ConnectionString` into the container. Use a verified
|
|
16
16
|
image/version and your harness's stdio registration shape, only when setup is
|
|
17
17
|
requested. The registry identity is `io.github.Cratis/chronicle-mcp`, but
|
|
18
|
-
`server.json`
|
|
19
|
-
manifest as a v2.0.0 image pin. The [tagged README](https://github.com/Cratis/Chronicle.Mcp/blob/v2.0.0/README.md)
|
|
18
|
+
the checked-in `server.json` can lag the release; do not treat its version/image as an image pin. The [README](https://github.com/Cratis/Chronicle.Mcp/blob/main/README.md)
|
|
20
19
|
documents transport setup.
|
|
21
20
|
|
|
22
|
-
`cratis ai`
|
|
23
|
-
Studio ([AiMcpHarnesses.cs](https://github.com/Cratis/cli/blob/
|
|
21
|
+
`cratis ai` only writes the Screenplay descriptor, not Chronicle or
|
|
22
|
+
Studio ([AiMcpHarnesses.cs](https://github.com/Cratis/cli/blob/main/Source/Cli/Commands/Ai/AiMcpHarnesses.cs)).
|
|
24
23
|
Do not add an unsupported descriptor to the corpus catalog.
|
|
25
24
|
|
|
26
25
|
For unset connection values: explicit options → `CHRONICLE_CONNECTION_STRING`
|
|
@@ -73,5 +72,5 @@ text block, for example:
|
|
|
73
72
|
Mutation checks run in table order through `not_authorized`, first failure wins;
|
|
74
73
|
`chronicle_denied` occurs only after reaching Chronicle. The envelope/log omits
|
|
75
74
|
scope, target, principal, credentials and exception text. These codes are
|
|
76
|
-
verified in [DenialCodes.cs](https://github.com/Cratis/Chronicle.Mcp/blob/
|
|
75
|
+
verified in [DenialCodes.cs](https://github.com/Cratis/Chronicle.Mcp/blob/main/Source/Authorization/DenialCodes.cs).
|
|
77
76
|
Never turn a denial into success or widen policy automatically.
|
package/package/corpus/skills/cratis-chronicle-mcp-inspection/references/observational-tools.md
CHANGED
|
@@ -3,46 +3,46 @@
|
|
|
3
3
|
|
|
4
4
|
# Observational Chronicle MCP tools
|
|
5
5
|
|
|
6
|
-
Hand-maintained classification
|
|
6
|
+
Hand-maintained classification of `Cratis/Chronicle.Mcp`.
|
|
7
7
|
Disposition: `passive-allowed` only for an authorized, bounded read with an
|
|
8
8
|
appropriate output/redaction review. Read-only does not mean public data.
|
|
9
9
|
All 24 tools below declare `ReadOnly=true`, `OpenWorld=false`; their bodies read
|
|
10
10
|
Chronicle or transform the returned data without writing store state.
|
|
11
11
|
|
|
12
12
|
Paths below are relative to
|
|
13
|
-
[Source/Tools
|
|
14
|
-
|
|
13
|
+
[Source/Tools](https://github.com/Cratis/Chronicle.Mcp/tree/main/Source/Tools).
|
|
14
|
+
Read a tool's method body for effect evidence.
|
|
15
15
|
|
|
16
|
-
| Tool | Source
|
|
16
|
+
| Tool | Source | Output and narrowing |
|
|
17
17
|
| --- | --- | --- |
|
|
18
|
-
| `list_event_stores` | [EventStoreTools.cs
|
|
19
|
-
| `list_namespaces` | [EventStoreTools.cs
|
|
20
|
-
| `list_event_types` | [EventTypeTools.cs
|
|
21
|
-
| `describe_event_type` | [Design/SchemaTools.cs
|
|
22
|
-
| `list_observers` | [ObserverTools.cs
|
|
23
|
-
| `get_observer` | [ObserverTools.cs
|
|
24
|
-
| `list_failed_partitions` | [FailedPartitionTools.cs
|
|
25
|
-
| `list_projections` | [ProjectionTools.cs
|
|
26
|
-
| `list_read_models` | [ReadModelTools.cs
|
|
27
|
-
| `get_read_model_instances` | [ReadModelTools.cs
|
|
28
|
-
| `get_events` | [EventTools.cs
|
|
29
|
-
| `get_tail_sequence_number` | [EventTools.cs
|
|
30
|
-
| `list_recommendations` | [RecommendationTools.cs
|
|
31
|
-
| `get_server_version` | [ServerTools.cs
|
|
32
|
-
| `list_jobs` | [Jobs/JobTools.cs
|
|
33
|
-
| `get_job` | [Jobs/JobTools.cs
|
|
34
|
-
| `get_job_steps` | [Jobs/JobTools.cs
|
|
35
|
-
| `generate_event_catalog` | [Design/EventCatalogTools.cs
|
|
36
|
-
| `audit_unconsumed_event_types` | [Design/EventTypeAuditTools.cs
|
|
37
|
-
| `scaffold_read_model` | [Design/ReadModelDesignTools.cs
|
|
38
|
-
| `explain_causal_trace` | [Design/CausalTraceTools.cs
|
|
39
|
-
| `describe_system` | [Design/SystemDescriptionTools.cs
|
|
40
|
-
| `suggest_next_event_types` | [Design/SystemEvolutionTools.cs
|
|
41
|
-
| `run_ad_hoc_projection` | [Design/AdHocProjectionTools.cs
|
|
18
|
+
| `list_event_stores` | [EventStoreTools.cs](https://github.com/Cratis/Chronicle.Mcp/blob/main/Source/Tools/EventStoreTools.cs) | store identifiers |
|
|
19
|
+
| `list_namespaces` | [EventStoreTools.cs](https://github.com/Cratis/Chronicle.Mcp/blob/main/Source/Tools/EventStoreTools.cs) | namespace identifiers in one store |
|
|
20
|
+
| `list_event_types` | [EventTypeTools.cs](https://github.com/Cratis/Chronicle.Mcp/blob/main/Source/Tools/EventTypeTools.cs) | registered types/schemas |
|
|
21
|
+
| `describe_event_type` | [Design/SchemaTools.cs](https://github.com/Cratis/Chronicle.Mcp/blob/main/Source/Tools/Design/SchemaTools.cs) | one registered schema |
|
|
22
|
+
| `list_observers` | [ObserverTools.cs](https://github.com/Cratis/Chronicle.Mcp/blob/main/Source/Tools/ObserverTools.cs) | metadata; type filter `reactor`, `reducer`, `projection`, `all` |
|
|
23
|
+
| `get_observer` | [ObserverTools.cs](https://github.com/Cratis/Chronicle.Mcp/blob/main/Source/Tools/ObserverTools.cs) | one observer's state |
|
|
24
|
+
| `list_failed_partitions` | [FailedPartitionTools.cs](https://github.com/Cratis/Chronicle.Mcp/blob/main/Source/Tools/FailedPartitionTools.cs) | failure reasons; redact errors/identifiers |
|
|
25
|
+
| `list_projections` | [ProjectionTools.cs](https://github.com/Cratis/Chronicle.Mcp/blob/main/Source/Tools/ProjectionTools.cs) | projection definitions |
|
|
26
|
+
| `list_read_models` | [ReadModelTools.cs](https://github.com/Cratis/Chronicle.Mcp/blob/main/Source/Tools/ReadModelTools.cs) | definitions, `queryable` flag |
|
|
27
|
+
| `get_read_model_instances` | [ReadModelTools.cs](https://github.com/Cratis/Chronicle.Mcp/blob/main/Source/Tools/ReadModelTools.cs) | payload data; `page`, `pageSize` (default 20) |
|
|
28
|
+
| `get_events` | [EventTools.cs](https://github.com/Cratis/Chronicle.Mcp/blob/main/Source/Tools/EventTools.cs) | payloads; `from`, `to`, `eventSourceId`, `eventType`; no row limit |
|
|
29
|
+
| `get_tail_sequence_number` | [EventTools.cs](https://github.com/Cratis/Chronicle.Mcp/blob/main/Source/Tools/EventTools.cs) | highest sequence number, not a count |
|
|
30
|
+
| `list_recommendations` | [RecommendationTools.cs](https://github.com/Cratis/Chronicle.Mcp/blob/main/Source/Tools/RecommendationTools.cs) | recommendations, not their execution |
|
|
31
|
+
| `get_server_version` | [ServerTools.cs](https://github.com/Cratis/Chronicle.Mcp/blob/main/Source/Tools/ServerTools.cs) | server version |
|
|
32
|
+
| `list_jobs` | [Jobs/JobTools.cs](https://github.com/Cratis/Chronicle.Mcp/blob/main/Source/Tools/Jobs/JobTools.cs) | metadata/progress; optional status filter |
|
|
33
|
+
| `get_job` | [Jobs/JobTools.cs](https://github.com/Cratis/Chronicle.Mcp/blob/main/Source/Tools/Jobs/JobTools.cs) | one job's metadata/progress |
|
|
34
|
+
| `get_job_steps` | [Jobs/JobTools.cs](https://github.com/Cratis/Chronicle.Mcp/blob/main/Source/Tools/Jobs/JobTools.cs) | step metadata/progress |
|
|
35
|
+
| `generate_event_catalog` | [Design/EventCatalogTools.cs](https://github.com/Cratis/Chronicle.Mcp/blob/main/Source/Tools/Design/EventCatalogTools.cs) | catalog text; no file write |
|
|
36
|
+
| `audit_unconsumed_event_types` | [Design/EventTypeAuditTools.cs](https://github.com/Cratis/Chronicle.Mcp/blob/main/Source/Tools/Design/EventTypeAuditTools.cs) | registered types without consumers |
|
|
37
|
+
| `scaffold_read_model` | [Design/ReadModelDesignTools.cs](https://github.com/Cratis/Chronicle.Mcp/blob/main/Source/Tools/Design/ReadModelDesignTools.cs) | code text; no file write or registration |
|
|
38
|
+
| `explain_causal_trace` | [Design/CausalTraceTools.cs](https://github.com/Cratis/Chronicle.Mcp/blob/main/Source/Tools/Design/CausalTraceTools.cs) | payloads and identities; redact both |
|
|
39
|
+
| `describe_system` | [Design/SystemDescriptionTools.cs](https://github.com/Cratis/Chronicle.Mcp/blob/main/Source/Tools/Design/SystemDescriptionTools.cs) | schema/relationship metadata |
|
|
40
|
+
| `suggest_next_event_types` | [Design/SystemEvolutionTools.cs](https://github.com/Cratis/Chronicle.Mcp/blob/main/Source/Tools/Design/SystemEvolutionTools.cs) | candidates, not accepted domain decisions |
|
|
41
|
+
| `run_ad_hoc_projection` | [Design/AdHocProjectionTools.cs](https://github.com/Cratis/Chronicle.Mcp/blob/main/Source/Tools/Design/AdHocProjectionTools.cs) | folded payload data; `limit=100` bounds returned instances only, not event reads; no persistence |
|
|
42
42
|
|
|
43
43
|
Three prompts return workflow text without calling tools themselves:
|
|
44
44
|
`describe_system`, `suggest_next_event_types`, `query_system`
|
|
45
|
-
([Design/SystemPrompts.cs
|
|
45
|
+
([Design/SystemPrompts.cs](https://github.com/Cratis/Chronicle.Mcp/blob/main/Source/Tools/Design/SystemPrompts.cs)).
|
|
46
46
|
Prompt text and returned guidance are not authority to chain tool calls.
|
|
47
47
|
|
|
48
48
|
Even metadata may identify people or confidential business structure. Confirm
|
|
@@ -19,12 +19,12 @@ survives a second tenant is not.
|
|
|
19
19
|
|
|
20
20
|
## Verified product sources
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
Sources:
|
|
23
23
|
|
|
24
|
-
| Package |
|
|
25
|
-
| --- | --- |
|
|
26
|
-
| `Cratis.Chronicle` | `
|
|
27
|
-
| `Cratis.Chronicle.AspNetCore` |
|
|
24
|
+
| Package | Purpose |
|
|
25
|
+
| --- | --- |
|
|
26
|
+
| `Cratis.Chronicle` | `EventStoreNamespaceName`, `IEventStoreNamespaceResolver`, `IChronicleClient.GetEventStore` |
|
|
27
|
+
| `Cratis.Chronicle.AspNetCore` | the header and subdomain namespace resolvers |
|
|
28
28
|
|
|
29
29
|
Reverify product sources before claiming support for another version.
|
|
30
30
|
|
|
@@ -39,17 +39,17 @@ Reverify product sources before claiming support for another version.
|
|
|
39
39
|
implicit conversion from `string`, a `Default` value of `"Default"`, and a
|
|
40
40
|
`NotSet` value.
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
In Arc .NET there is no tenant-required configuration switch.
|
|
43
43
|
An unresolved header/query tenant is `TenantId.NotSet`; Arc's
|
|
44
44
|
`TenantNamespaceResolver` maps `IsDefault` (`NotSet` or `Default`) to Chronicle's
|
|
45
45
|
default namespace. Refuse unresolved tenants in application authorization where
|
|
46
|
-
required, not through an invented switch. Sources
|
|
46
|
+
required, not through an invented switch. Sources:
|
|
47
47
|
`Source/DotNET/Arc.Core/Tenancy/TenancyOptions.cs` and
|
|
48
48
|
`Source/DotNET/Chronicle/Tenancy/TenantNamespaceResolver.cs`.
|
|
49
49
|
|
|
50
50
|
## What a namespace actually isolates
|
|
51
51
|
|
|
52
|
-
|
|
52
|
+
Derived from the storage naming and the grain keys, not inferred:
|
|
53
53
|
|
|
54
54
|
**Per namespace:**
|
|
55
55
|
|
|
@@ -96,7 +96,7 @@ When the namespace is omitted, the registered **namespace resolver** supplies it
|
|
|
96
96
|
`IEventStore` exposes the namespace it was resolved for, and
|
|
97
97
|
`IEventStore.GetNamespaces(...)` lists them.
|
|
98
98
|
|
|
99
|
-
Behind Cratis AuthProxy
|
|
99
|
+
Behind Cratis AuthProxy the tenant reaches the backend on
|
|
100
100
|
`x-cratis-tenant-id`, from the proxy's own resolver (host, claim, route,
|
|
101
101
|
subdomain, selection page or fixed), and Arc resolves it per request. Map that
|
|
102
102
|
tenant to the Chronicle namespace through the resolver; the proxy does not
|
|
@@ -17,12 +17,11 @@ class. See [reducers](../cratis-chronicle-reducer/SKILL.md) for that contract.
|
|
|
17
17
|
|
|
18
18
|
## Verified product sources
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
Sources:
|
|
21
21
|
|
|
22
|
-
| Package |
|
|
23
|
-
| --- | --- |
|
|
24
|
-
| `Cratis.Chronicle` | `
|
|
25
|
-
| `Cratis.Chronicle` | `19.59.4` | Self-model builder conflicts: `Source/Clients/DotNET/ReadModels/ReadModelBuilderOwnership.cs`, `Reducers/SelfReducerMethods.cs` at tag `v19.59.4` |
|
|
22
|
+
| Package | Purpose |
|
|
23
|
+
| --- | --- |
|
|
24
|
+
| `Cratis.Chronicle` | `Cratis.Chronicle.Projections`, `Cratis.Chronicle.Projections.ModelBound`, `Cratis.Chronicle.Keys`, `Cratis.Chronicle.EventSequences`; self-model builder conflicts (`Source/Clients/DotNET/ReadModels/ReadModelBuilderOwnership.cs`, `Reducers/SelfReducerMethods.cs`) |
|
|
26
25
|
|
|
27
26
|
Reverify product sources before claiming support for another version.
|
|
28
27
|
|
|
@@ -105,7 +104,7 @@ They live on the per-event builder that `From<TEvent>` hands to your callback.
|
|
|
105
104
|
## Choose a bounded projection shape
|
|
106
105
|
|
|
107
106
|
Project the fields a consumer needs, rather than building a universal entity
|
|
108
|
-
with every detail and
|
|
107
|
+
with every detail and past entry. Children are useful for bounded related
|
|
109
108
|
state, not an invitation to embed an unbounded timeline. Give growing histories
|
|
110
109
|
their own paged read model. A slim summary may combine event facts without
|
|
111
110
|
query-time joins, but there is no framework requirement that a query read only
|
|
@@ -153,7 +152,7 @@ variants only when the shapes genuinely diverge; a single read model with a
|
|
|
153
152
|
`Status` flag is still right when every stage shares almost all its
|
|
154
153
|
properties.
|
|
155
154
|
|
|
156
|
-
|
|
155
|
+
Requires `Cratis.Chronicle` 19.1.0 or later for variants.
|
|
157
156
|
|
|
158
157
|
Both approaches use the identity type only to anchor the group — it does not
|
|
159
158
|
need to be a read model itself, and does not need a common CLR base type with
|
|
@@ -249,9 +248,9 @@ or a reactor rather than annotating the projection.
|
|
|
249
248
|
event types are excluded). It is for audit/log models; pair it with
|
|
250
249
|
`[NotRewindable]`. It targets a **property only**, not a positional parameter.
|
|
251
250
|
Fluent `.FromAll()` can count into dictionaries using a per-event context key.
|
|
252
|
-
- `[FromEvery]` captures across events the model **already** consumes, including
|
|
251
|
+
- `[FromEvery]` (Requires Chronicle 19.49.0 for child-only events) captures across events the model **already** consumes, including
|
|
253
252
|
events handled **only by child or nested-child collections**, updating the
|
|
254
|
-
owning parent
|
|
253
|
+
owning parent. It subscribes to nothing new. Model-bound always
|
|
255
254
|
includes children; fluent `IFromEveryBuilder.ExcludeChildProjections()` opts
|
|
256
255
|
out (PDL: `exclude children`).
|
|
257
256
|
|
|
@@ -260,24 +259,24 @@ property)]` and `[FromEvery(property, contextProperty)]`. Name them.
|
|
|
260
259
|
|
|
261
260
|
## Definition changes replay
|
|
262
261
|
|
|
263
|
-
|
|
262
|
+
Per `Documentation/hosting/configuration/observers.md`, the kernel
|
|
264
263
|
classifies a changed definition as no action, partial replay, or full replay.
|
|
265
264
|
`observers.definitionEvolution` defaults to `Automatic`; `PartialOnly` applies
|
|
266
265
|
partial/no-action plans but recommends full replay; `Manual` recommends both
|
|
267
266
|
replay kinds. Mapping, key, filter, join and child changes require full replay
|
|
268
267
|
when independence cannot be proved. Counters and joins are repaired by replay,
|
|
269
|
-
not by deploying corrected mappings:
|
|
270
|
-
|
|
268
|
+
not by deploying corrected mappings: earlier double-counts remain until rebuilt.
|
|
269
|
+
A `FromAll` subscription change redefines existing projections.
|
|
271
270
|
|
|
272
271
|
Projection replay and catch-up each walk the sequence in **one globally ordered
|
|
273
272
|
job step**, not parallel per-source steps. A new failure during catch-up stops
|
|
274
273
|
that ordered step even if other sources are healthy. Full replay keeps the
|
|
275
274
|
observer inactive; completion routes to catch-up/live unless quarantined.
|
|
276
|
-
|
|
275
|
+
A next-event storage error leaves the cursor unchanged and waits for
|
|
277
276
|
retry; only `NotFound` proves absence. It does not certify previously skipped
|
|
278
277
|
history. Sources: `Documentation/projections/registration-lifecycle.md`,
|
|
279
278
|
`Documentation/concepts/observers.mdx`, `Observation/Jobs/{CatchUpObserver,ReplayObserver}.cs`
|
|
280
|
-
and `Observation/States/Routing.cs` (under `Source/Kernel/Core/`)
|
|
279
|
+
and `Observation/States/Routing.cs` (under `Source/Kernel/Core/`).
|
|
281
280
|
|
|
282
281
|
Closing a stream does not erase its events or prevent a projection replay.
|
|
283
282
|
Keep the closing fact as history; see **cratis-chronicle-event-constraints**.
|
|
@@ -10,8 +10,7 @@
|
|
|
10
10
|
- When the fluent form is the only option
|
|
11
11
|
- AutoMap default
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
`Cratis.Chronicle.Projections`.
|
|
13
|
+
Namespace: `Cratis.Chronicle.Projections`.
|
|
15
14
|
|
|
16
15
|
## The interfaces
|
|
17
16
|
|
|
@@ -42,8 +41,7 @@ IProjectionBuilderFor<TReadModel> VariantOf<TIdentity>(Expression<Func<TReadMode
|
|
|
42
41
|
IProjectionBuilderFor<TReadModel> EntersOn<TEvent>();
|
|
43
42
|
```
|
|
44
43
|
|
|
45
|
-
`VariantOf<TIdentity>` and `EntersOn<TEvent
|
|
46
|
-
`19.1.0` or later — newer than this file's `18.3.0` baseline. See
|
|
44
|
+
Requires `Cratis.Chronicle` 19.1.0 or later for `VariantOf<TIdentity>` and `EntersOn<TEvent>`. See
|
|
47
45
|
[variants.md](variants.md) for the full mechanics: the identity type anchors a
|
|
48
46
|
group of mutually exclusive read models, only the event named in `EntersOn`
|
|
49
47
|
can create or resurrect the variant, and every other `.From<TEvent>()` on the
|
|
@@ -51,7 +49,7 @@ same builder is automatically reclassified into an update-only join. There is
|
|
|
51
49
|
no fluent equivalent of the model-bound `[GlobalFor<T>]` shared handler — a
|
|
52
50
|
mapping shared across variants is repeated on each variant's builder.
|
|
53
51
|
|
|
54
|
-
|
|
52
|
+
`FromEvery` also maps child-only events onto
|
|
55
53
|
the owning parent. `IFromEveryBuilder.ExcludeChildProjections()` opts out;
|
|
56
54
|
model-bound `[FromEvery]` has no opt-out. `FromAll` can count into dictionary
|
|
57
55
|
properties with a per-event context key (`Projections/FromEveryBuilder.cs`,
|
package/package/corpus/skills/cratis-chronicle-projection/references/model-bound-attributes.md
CHANGED
|
@@ -13,8 +13,6 @@
|
|
|
13
13
|
- What makes a type a model-bound projection
|
|
14
14
|
- AutoMap
|
|
15
15
|
|
|
16
|
-
Verified against `Cratis.Chronicle` `18.3.0`.
|
|
17
|
-
|
|
18
16
|
Unless noted, every attribute below lives in
|
|
19
17
|
`Cratis.Chronicle.Projections.ModelBound`. Generic arity is stated exactly:
|
|
20
18
|
`<T>` means one generic parameter naming the event type; "non-generic" means the
|
|
@@ -54,7 +52,7 @@ attribute takes no generic parameter at all.
|
|
|
54
52
|
Note that `[FromAll]` and `[FromEvery]` take their two optional arguments in
|
|
55
53
|
**opposite order**. Always pass them by name.
|
|
56
54
|
|
|
57
|
-
|
|
55
|
+
`[FromEvery]` includes child-only and nested-child
|
|
58
56
|
contributing events in the owning parent's mappings (no attribute opt-out).
|
|
59
57
|
`[FromAll]` subscribes to every sequence event type except join-only types;
|
|
60
58
|
pair it with `[NotRewindable]`. `[NotProjected]` excludes a query-assembled member
|
|
@@ -99,7 +97,7 @@ that key. That is a different mechanism from the fluent builder's
|
|
|
99
97
|
| `[EntersOn<T>]` | `<T>` | `(string? key = default)` | class, struct; repeatable |
|
|
100
98
|
| `[GlobalFor<TIdentity>]` | `<TIdentity>` | none | class, struct; single |
|
|
101
99
|
|
|
102
|
-
Requires `Cratis.Chronicle`
|
|
100
|
+
Requires `Cratis.Chronicle` 19.1.0 or later for variants. See
|
|
103
101
|
[variants.md](variants.md) for the full mechanics, the update-only
|
|
104
102
|
reclassification of non-entering events, and the `VariantMustDeclareEntersOnEvent`
|
|
105
103
|
startup trap.
|
|
@@ -9,9 +9,7 @@
|
|
|
9
9
|
- Startup-crash trap
|
|
10
10
|
- Best practices
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
feature; the skill's own baseline in `SKILL.md` is `18.3.0` — variants need at
|
|
14
|
-
least `19.1.0`).
|
|
12
|
+
Requires `Cratis.Chronicle` 19.1.0 or later.
|
|
15
13
|
|
|
16
14
|
Reach for variants when a single logical entity has genuinely different shapes
|
|
17
15
|
across its lifecycle — a work item that is a backlog entry, then a pull
|
|
@@ -7,3 +7,7 @@ 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 Eventmodelers Build-Kits by Martin Dilger and Nebulit GmbH
|
|
12
|
+
(https://github.com/Nebulit-GmbH/Eventmodelers-Build-Kits; https://nebulit.de), used with their
|
|
13
|
+
explicit consent. The adapted material remains credited to Martin Dilger and Nebulit GmbH.
|
|
@@ -6,6 +6,16 @@
|
|
|
6
6
|
| --- | --- | --- |
|
|
7
7
|
| Successful work is removed from its pending-work view and removal is specified | `slice-delivery-checklist.md`, Checklist and Specifications | Martin Dilger / Nebulit GmbH, Eventmodelers build kits (`prototype`), used with their explicit consent; idea, our own wording |
|
|
8
8
|
|
|
9
|
+
## Eventmodelers Build-Kits
|
|
10
|
+
|
|
11
|
+
Source: https://github.com/Nebulit-GmbH/Eventmodelers-Build-Kits, by Martin Dilger and Nebulit GmbH
|
|
12
|
+
(https://nebulit.de), used with their explicit consent.
|
|
13
|
+
|
|
14
|
+
| Source skill | Used in | How |
|
|
15
|
+
|---|---|---|
|
|
16
|
+
| kurrent `build-automation` and `idempotent-dispatch-patterns`; opencqrs/umadb `build-automation` | `slice-delivery-checklist.md`, `specifications.md` | copied and translated: contract-authorized duplicate-refusal handling per dispatch, narrow result matching, independent fan-out; command exceptions replaced by Arc pipeline results |
|
|
17
|
+
| axon/kurrent `build-automation` test cases | `specifications.md` | copied and translated: matching/non-matching state, temporal cases and per-item fan-out; independent Chronicle observers replace subscription-group ordering, and passive reads are not claimed as as-of snapshots |
|
|
18
|
+
|
|
9
19
|
## Adapted closely (Martin Dilger and Nebulit GmbH)
|
|
10
20
|
|
|
11
21
|
Source: https://github.com/Nebulit-GmbH/agentic-engineer at commit `07b0f30648d663cb588d7e2c7aa031af9dfc21f2`,
|
package/package/corpus/skills/cratis-chronicle-reactor/references/slice-delivery-checklist.md
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
- Start from the contract
|
|
6
6
|
- Build order
|
|
7
7
|
- Handler patterns
|
|
8
|
+
- Redelivery against a refusing command
|
|
8
9
|
- What no longer applies
|
|
9
10
|
- Checklist
|
|
10
11
|
- Specifications
|
|
@@ -61,10 +62,40 @@ give the reactor `[ExecuteCommandsAsSystem]` naming that role.
|
|
|
61
62
|
| A condition narrows the trigger | Realize exactly the stated `where`. Show it with one specification where it skips and one for the neighboring case where it acts |
|
|
62
63
|
| A fact on another event source | `EventForEventSourceId` with the stated target id |
|
|
63
64
|
| The trigger's fields are not enough | Inject the read model the contract names; do not widen the mapping |
|
|
65
|
+
| The invoked command refuses an exact repeat | Apply the contract's redelivery disposition to that refusal only; see below |
|
|
64
66
|
|
|
65
67
|
Which return shape expresses "do nothing" for a given handler is established by a scenario that
|
|
66
68
|
runs it, not assumed. Use only the return shapes listed in `SKILL.md`.
|
|
67
69
|
|
|
70
|
+
## Redelivery against a refusing command
|
|
71
|
+
Recovery can redeliver the trigger even with `[OnceOnly]`. If the invoked command's own
|
|
72
|
+
"already done" rule refuses the repeat, returning that command without a refusal disposition
|
|
73
|
+
fails the partition. Decide from the contract, in this order:
|
|
74
|
+
|
|
75
|
+
1. A redelivery specification says the repeat is harmless (`then no events`). If the command's
|
|
76
|
+
own contract says an exact repeat succeeds without new facts, realize that no-op in the
|
|
77
|
+
command. Otherwise execute through the imperative pipeline (`cratis-arc-command-execution`)
|
|
78
|
+
and acknowledge only the exact already-done validation result or named constraint authorized
|
|
79
|
+
by the contract. Identify it from the command's rule and result, never by guessing an exception
|
|
80
|
+
type or treating every validation failure as a duplicate. Preserve the modeled system identity
|
|
81
|
+
when using the pipeline; a returned command's role handling is not implicit in an imperative call.
|
|
82
|
+
2. A refusal branch states the disposition: realize its exact selector and its acknowledgment
|
|
83
|
+
or produced fact. Screenplay refusal branches are authoring-only; hand-written delivery keeps
|
|
84
|
+
the model as the contract, not a claim of reference execution or render admission.
|
|
85
|
+
3. The redelivery specification expects an error, or no redelivery disposition is stated: do not
|
|
86
|
+
acknowledge on your own, because that changes failure behavior. Report the possibility of a
|
|
87
|
+
paused partition on recovery as an edit request to the model owner.
|
|
88
|
+
|
|
89
|
+
Every other refusal, denial or exception still fails the handler. Never catch broadly: it hides
|
|
90
|
+
mapping bugs and real validation failures. Authorization denial needs an explicit authorization
|
|
91
|
+
selector; concurrency conflicts are not refusals and must fail for retry.
|
|
92
|
+
|
|
93
|
+
For fan-out where the contract requires independent item progress, execute each item through the
|
|
94
|
+
pipeline and apply the disposition at that call, not around the loop. A returned collection stops
|
|
95
|
+
at the first failure, and even an acknowledged refusal can end that collection's execution; it
|
|
96
|
+
cannot prove later items ran. Unexpected failures still fail the handler, so completed items need
|
|
97
|
+
retry-safe behavior too.
|
|
98
|
+
|
|
68
99
|
## What no longer applies
|
|
69
100
|
Processor identity strings, consumer instance ids, lock and retry configuration, a dead-letter
|
|
70
101
|
store, `schema.migrate()` and a hand-written start and stop call belong to a different runtime.
|
|
@@ -82,6 +113,8 @@ fact, not handled (`references/domain-failures.md`).
|
|
|
82
113
|
- [ ] Handlers that return events or commands carry `[OnceOnly]`; the effect is idempotent regardless
|
|
83
114
|
- [ ] A gated command has `[ExecuteCommandsAsSystem]` naming the role the command requires
|
|
84
115
|
- [ ] Repeated delivery of the same trigger is specified (what happens when it fires twice)
|
|
116
|
+
- [ ] If the invoked command refuses a repeat, its disposition comes from the contract and is
|
|
117
|
+
realized for exactly that rule; nothing is caught broadly
|
|
85
118
|
- [ ] For a pending-work read model, the successful effect records the event that removes the
|
|
86
119
|
selected item, directly or through the invoked command; success leaves no completed work pending
|
|
87
120
|
- [ ] A modeled slice matches its `.play` contract; the model was not edited to fit the code
|
|
@@ -129,7 +129,23 @@ Specify the contract, not only the happy path:
|
|
|
129
129
|
every event it delivers its own sequence number, so firing the same event twice
|
|
130
130
|
through `Given` is two deliveries, not a re-delivery; to prove the
|
|
131
131
|
re-delivery guard, call the handler twice with the same `ReactorDelivery`, or
|
|
132
|
-
assert it on the collaborator that holds the receipt.
|
|
132
|
+
assert it on the collaborator that holds the receipt. Map a contract redelivery specification
|
|
133
|
+
one to one: deliver the same trigger with the same delivery identity, or call directly with the
|
|
134
|
+
command already applied, and assert its disposition (no new events, the named fact, or refusal
|
|
135
|
+
surfaced as failure). The refusing-command procedure is in `slice-delivery-checklist.md`.
|
|
136
|
+
- **Read-model timing.** An injected materialized model has its own observer; resolving it does
|
|
137
|
+
not pin its state to the trigger's sequence number. It can lag the trigger or include later
|
|
138
|
+
events. Seed the state the contract means with `Given.ForEventSourceId(id).ReadModel(instance)`:
|
|
139
|
+
matching state dispatches, non-matching state does not, and a separate specification uses the
|
|
140
|
+
state before the setup event (or declared absence). These are decision specifications, not
|
|
141
|
+
proof of production ordering. For a decision exactly as of the trigger, prefer values carried
|
|
142
|
+
on that event. A `[Passive]` model computes on demand but is not an as-of snapshot; a
|
|
143
|
+
state-dependent invariant requiring atomic protection belongs in the invoked command through
|
|
144
|
+
`cratis-chronicle-decision-reads`.
|
|
145
|
+
- **Per-item fan-out.** Seed two matching entries and one non-matching entry; assert exactly two
|
|
146
|
+
effects, each with its entry's values. When the contract requires independent progress,
|
|
147
|
+
specify an acknowledged duplicate refusal for one entry and prove the other entry still
|
|
148
|
+
completes. Unexpected refusals remain failures; successful entries must tolerate retry.
|
|
133
149
|
- **Unrelated events.** `WithStrictEventSubscription()` belongs to
|
|
134
150
|
`ReadModelScenario<T>` and only fails a specification that *seeds* an event the
|
|
135
151
|
projection does not subscribe to; it does not prove a subscription set, and
|
|
@@ -19,14 +19,13 @@ all.
|
|
|
19
19
|
|
|
20
20
|
## Verified product sources
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
Sources:
|
|
23
23
|
|
|
24
|
-
| Package |
|
|
25
|
-
| --- | --- |
|
|
26
|
-
| `Cratis.Chronicle` | `
|
|
27
|
-
| `Cratis.
|
|
28
|
-
| `Cratis.Arc.
|
|
29
|
-
| `Cratis.Arc.MongoDB` | `22.75.0` | the `Observe` family of `IMongoCollection<T>` extensions |
|
|
24
|
+
| Package | Purpose |
|
|
25
|
+
| --- | --- |
|
|
26
|
+
| `Cratis.Chronicle` | `Cratis.Chronicle.Events`, `Cratis.Chronicle.Keys`, `Cratis.Chronicle.ReadModels`; style and discovery (`Source/Clients/DotNET/Reducers/{SelfReducerMethods,RegisteredReducerReadModel}.cs`, `ReadModels/ReadModelBuilderOwnership.cs`, `DefaultClientArtifactsProvider.cs`) |
|
|
27
|
+
| `Cratis.Arc.Core` | `Cratis.Arc.Queries.ModelBound.ReadModelAttribute` and `PathAttribute` |
|
|
28
|
+
| `Cratis.Arc.MongoDB` | the `Observe` family of `IMongoCollection<T>` extensions |
|
|
30
29
|
|
|
31
30
|
Reverify product sources before claiming support for another version. Confirm
|
|
32
31
|
the exact Arc package version in the consuming project before citing one.
|
|
@@ -82,7 +81,7 @@ public record <ReadModelName>(
|
|
|
82
81
|
|
|
83
82
|
Prefer a slim, purpose-built projection over assembling a screen by repeatedly
|
|
84
83
|
joining broad collections at query time. A summary needs summary fields, not
|
|
85
|
-
every detail and
|
|
84
|
+
every detail and past entry. This is a design convention, **not a
|
|
86
85
|
one-collection framework requirement**: bounded query composition remains valid,
|
|
87
86
|
including when separate security or compliance boundaries must be preserved.
|
|
88
87
|
|
|
@@ -114,8 +113,10 @@ For application code, work down this ladder:
|
|
|
114
113
|
|
|
115
114
|
**PDL** is for definitions authored outside application code (Workbench,
|
|
116
115
|
Screenplay, ad-hoc queries), not the code-first default. This ladder does not
|
|
117
|
-
claim Stage renders static self reducers. The self form is .NET-only
|
|
118
|
-
|
|
116
|
+
claim Stage renders static self reducers. The self form is .NET-only;
|
|
117
|
+
other SDKs keep their own reducer contracts.
|
|
118
|
+
|
|
119
|
+
Requires Chronicle 19.58.0 for self-reducing read models.
|
|
119
120
|
|
|
120
121
|
Default discovery finds projections, interface reducers and complete self shapes.
|
|
121
122
|
Explicit registration remains available, and plain instance reducers require
|
|
@@ -135,9 +136,9 @@ are source-keyed, have no native joins and are refused by decision reads.
|
|
|
135
136
|
Queries are **static** methods on the read-model record, discovered by Arc.
|
|
136
137
|
Marking the record with `[ReadModel]` from `Cratis.Arc.Queries.ModelBound` is
|
|
137
138
|
what gives it that surface. For a self-reducing model, put its `Reduce` methods
|
|
138
|
-
and queries on this same record.
|
|
139
|
+
and queries on this same record. On an Arc older than 22.90.0, use
|
|
139
140
|
`[ReadModel(RequireQueryAttribute = true)]` plus `[Query]` on intended queries to
|
|
140
|
-
avoid exposing folds.
|
|
141
|
+
avoid exposing folds. Requires Arc 22.90.0 for the automatic behavior: Arc excludes methods taking the
|
|
141
142
|
model itself from query discovery, and Arc.Chronicle claims self models for
|
|
142
143
|
command injection. See the existing
|
|
143
144
|
[explicit query-discovery guidance](references/queries.md#discovery-rules).
|
|
@@ -226,9 +227,9 @@ history length, invocation frequency, and the consistency/security requirement;
|
|
|
226
227
|
repeated reconstruction of large histories on a hot path is the concern.
|
|
227
228
|
Passivity does not itself authorize access or encrypt secrets.
|
|
228
229
|
|
|
229
|
-
This access distinction
|
|
230
|
-
([passive projections](https://github.com/Cratis/Chronicle/blob/
|
|
231
|
-
[passive reducers](https://github.com/Cratis/Chronicle/blob/
|
|
230
|
+
This access distinction is described in
|
|
231
|
+
([passive projections](https://github.com/Cratis/Chronicle/blob/main/Documentation/projections/declarative/passive.mdx),
|
|
232
|
+
[passive reducers](https://github.com/Cratis/Chronicle/blob/main/Documentation/reducers/passive-reducers.mdx)).
|
|
232
233
|
|
|
233
234
|
`[Passive]` on its own does **not** make a read model a projection. It is
|
|
234
235
|
deliberately excluded from the annotations that do; it changes how an existing
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
- Custom routes
|
|
12
12
|
- Reading without a query surface
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
Sources: `Cratis.Arc.Core` and `Cratis.Arc.MongoDB`.
|
|
15
15
|
Chronicle projection behavior is owned by the Chronicle guidance.
|
|
16
16
|
|
|
17
17
|
## Where the pieces live
|
|
@@ -40,8 +40,8 @@ query declarations; ARCCHR0019 warns about fold-like statics exposed by conventi
|
|
|
40
40
|
A `CancellationToken` parameter is supplied by Arc, not a query argument/proxy
|
|
41
41
|
input. Concept parameters are always caller-supplied, never DI. Invalid bool,
|
|
42
42
|
overflow, concept or collection-element GET/QUERY arguments return HTTP 400.
|
|
43
|
-
Minimal-API concepts serialize as primitives
|
|
44
|
-
Sources
|
|
43
|
+
Minimal-API concepts serialize as primitives.
|
|
44
|
+
Sources: `Arc.Core/Queries/ModelBound/ReadModelAttribute.cs`,
|
|
45
45
|
`QueryAttribute.cs`, and `Documentation/backend/csharp/chronicle/code-analysis/ARCCHR0019.md`.
|
|
46
46
|
|
|
47
47
|
The declared return type is validated after unwrapping at most one `Task<>`:
|
|
@@ -149,9 +149,9 @@ Guard React `result.hasData` and `result.isReady` before dereferencing data.
|
|
|
149
149
|
|
|
150
150
|
## Cost and composition
|
|
151
151
|
|
|
152
|
-
The behavior below
|
|
153
|
-
([collection observation](https://github.com/Cratis/Arc/blob/
|
|
154
|
-
[implementation](https://github.com/Cratis/Arc/blob/
|
|
152
|
+
The behavior below is described in
|
|
153
|
+
([collection observation](https://github.com/Cratis/Arc/blob/main/Documentation/backend/csharp/mongodb/observing-collections.md),
|
|
154
|
+
[implementation](https://github.com/Cratis/Arc/blob/main/Source/DotNET/MongoDB/MongoCollectionExtensions.cs)).
|
|
155
155
|
Do not generalize it to every provider or custom observable.
|
|
156
156
|
|
|
157
157
|
- Per-collection `Observe` reads an initial filtered set, retains it in memory,
|
|
@@ -177,9 +177,9 @@ Do not generalize it to every provider or custom observable.
|
|
|
177
177
|
- Prefer a purpose-built projected summary for frequently recomputed joins.
|
|
178
178
|
Query-time composition is supported, not forbidden. Bound each input and define
|
|
179
179
|
count, paging, missing-related-data, and subscription-disposal behavior.
|
|
180
|
-
|
|
180
|
+
MongoDB and EF auxiliary observations can use `ignoreQueryContext: true` so client
|
|
181
181
|
paging/counts belong to the primary source. That option reads **all matching
|
|
182
|
-
auxiliary rows**; it is not a performance limit. Confirm
|
|
182
|
+
auxiliary rows**; it is not a performance limit. Confirm the installed Arc supports it before
|
|
183
183
|
using it, and keep an explicit narrow filter.
|
|
184
184
|
|
|
185
185
|
Use the **cratis-arc-query-paging** skill for source-side paging. Paging an
|