Cratis.CritterStack.Screenplay
0.17.0
Prefix Reserved
See the version list below for details.
dotnet add package Cratis.CritterStack.Screenplay --version 0.17.0
NuGet\Install-Package Cratis.CritterStack.Screenplay -Version 0.17.0
<PackageReference Include="Cratis.CritterStack.Screenplay" Version="0.17.0" />
<PackageVersion Include="Cratis.CritterStack.Screenplay" Version="0.17.0" />
<PackageReference Include="Cratis.CritterStack.Screenplay" />
paket add Cratis.CritterStack.Screenplay --version 0.17.0
#r "nuget: Cratis.CritterStack.Screenplay, 0.17.0"
#:package Cratis.CritterStack.Screenplay@0.17.0
#addin nuget:?package=Cratis.CritterStack.Screenplay&version=0.17.0
#tool nuget:?package=Cratis.CritterStack.Screenplay&version=0.17.0
Screenplay.CritterStack
Generate verified Cratis Screenplay definitions from Marten, Wolverine, and independently composed .NET source semantics.
Cratis.CritterStack.Screenplay follows the same package architecture as Cratis.Arc.Screenplay: a host supplies Roslyn compilations, and the package analyzes framework conventions, builds one semantic application model, lowers it through the shared Screenplay generation SDK, prints canonical .play source, and verifies it with the Screenplay compiler.
This is an independent Cratis compatibility project. It is not affiliated with or endorsed by JasperFx. Marten, Wolverine, JasperFx, and Critter Stack names belong to their respective owners. Generated models may require human review wherever diagnostics report semantic loss.
Goals
- Marten-only event stores, documents, aggregates, projections, and queries.
- Generic and instance-based Marten projection registrations, with exact authored projection name/version evidence and explicit diagnostics for unsupported async/live lifecycle semantics.
- Async daemon mode and first-class subscription registration/configuration evidence without inventing state views, automations, translations, events, messages, or document consequences from arbitrary processing code.
- Marten document identities from exact configuration, identity attributes, and conventions, without guessing unresolved expressions.
- Authored Marten event aliases, schema-version helpers, naming style, and current upcast registrations retained as
MARTEN0011/MARTEN0012diagnostic evidence without renaming or originating events or inferring upcast behavior. - Marten compiled-query execution linked to proven Wolverine HTTP query entry points, including public plan parameters; unresolved nested executable flow reports
MARTEN0006instead of guessing. - Marten + Wolverine HTTP and message handlers.
- Vogen concepts, primitive representations, authored validation hooks, nullable usages, and explicit loss diagnostics through the separately composed
Cratis.Screenplay.Generation.DotNet.Vogenadapter. - Current store-agnostic Wolverine event-sourcing APIs and legacy Marten-specific APIs.
- Target-aware exact current and legacy
IEventStream<T>appends across multiple handler parameters, including commandless HTTP and metadata-only loaded streams, with per-binding identities and explicit diagnostics instead of first-stream guesses. - Markerless event/message discovery from actual framework usage.
- Deterministic output without starting the application or connecting to PostgreSQL.
- Explicit diagnostics whenever source behavior cannot be represented faithfully.
Architecture
Roslyn compilations
-> Vogen concept contribution (when exact authored evidence exists)
-> Critter Stack Marten/Wolverine contribution (when framework evidence exists)
-> subject-aware concept usage binding
-> Cratis.Screenplay.Generation (all contributions, once)
-> verified .play source
CritterStackScreenplayAdapter remains a low-level Marten/Wolverine adapter and matches those framework APIs by metadata name without runtime package references. The generator facade depends on the separate Vogen adapter package; neither production package depends on the Vogen source-generator/runtime package used by analyzed applications.
Generator composition
The parameterless facade composes Vogen and Critter Stack by default. Each adapter first identifies whether it can analyze the supplied projects, then contributes independently identified facts to one ScreenplayDefinitionGenerator:
var result = new CritterStackScreenplayGenerator().Generate(
projects,
new CritterStackScreenplayOptions { Domain = "Ordering" });
Hosts can replace the default composition with one collection expression. Adapter order does not choose conflicts, and each contribution retains its own adapter identity and evidence:
IDotNetScreenplayAdapter[] adapters =
[
new VogenConceptScreenplayAdapter(),
new CritterStackScreenplayAdapter(),
externalAdapter
];
var generator = new CritterStackScreenplayGenerator(adapters);
var result = generator.Generate(projects, options);
The existing (IDotNetScreenplayAdapter, ScreenplayDefinitionGenerator) constructor remains available for hosts that supply one adapter and their own shared pipeline.
Shared generation infrastructure lives in Cratis/Screenplay.Generation. Cratis CLI owns MSBuildWorkspace, project/host selection, and output.
Canonical fixtures
The compatibility plan uses:
- Wolverine's current
src/Samples/IncidentService; JasperFx/CritterStackHelpDeskfor Marten 6/Wolverine 1 behavior;- BankAccountES and other focused applications from the local Critter Stack sample corpus;
- MartenWithProjectAspire for instance-registered async, multi-stream, and event projections;
- the repository-owned
VogenConceptsfixture pinned to Vogen 8.0.7, Marten 9.29.0, and Wolverine 6.29.2.
See:
STRATEGY.md— why the adapter is public and how it supports visualization, interoperability, and migrationCOMPATIBILITY.md— exact canonical package sets, research baselines, and support tiersCRITTER_STACK_PATTERN_DISCOVERY_RESEARCH.md— how source behavior maps to State Change, State View, Automation, and TranslationMVP_ACCEPTANCE.md— the explicit stopping criteria for a credible preview and a later 1.0CRITTER_STACK_SCREENPLAY_RESEARCH_AND_ARCHITECTURE.mdCRITTER_STACK_SCREENPLAY_IMPLEMENTATION_HANDOVER.mdIMPLEMENTATION_STATUS.md
Build and test
dotnet test Screenplay.CritterStack.slnx --configuration Debug
dotnet build Screenplay.CritterStack.slnx --configuration Release
dotnet pack Screenplay.CritterStack.slnx --no-build --configuration Release -o Artifacts/NuGet
License
Screenplay.CritterStack is licensed under the MIT license.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Cratis.Screenplay.Generation (>= 0.7.0)
- Cratis.Screenplay.Generation.Contracts (>= 0.7.0)
- Cratis.Screenplay.Generation.DotNet (>= 0.7.0)
- Cratis.Screenplay.Generation.DotNet.Vogen (>= 0.7.0)
- Microsoft.CodeAnalysis.CSharp (>= 5.9.0)
-
net8.0
- Cratis.Screenplay.Generation (>= 0.7.0)
- Cratis.Screenplay.Generation.Contracts (>= 0.7.0)
- Cratis.Screenplay.Generation.DotNet (>= 0.7.0)
- Cratis.Screenplay.Generation.DotNet.Vogen (>= 0.7.0)
- Microsoft.CodeAnalysis.CSharp (>= 5.9.0)
-
net9.0
- Cratis.Screenplay.Generation (>= 0.7.0)
- Cratis.Screenplay.Generation.Contracts (>= 0.7.0)
- Cratis.Screenplay.Generation.DotNet (>= 0.7.0)
- Cratis.Screenplay.Generation.DotNet.Vogen (>= 0.7.0)
- Microsoft.CodeAnalysis.CSharp (>= 5.9.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.24.0 | 83 | 8/30/2026 |
| 0.23.1 | 89 | 8/27/2026 |
| 0.23.0 | 107 | 8/26/2026 |
| 0.22.0 | 107 | 8/25/2026 |
| 0.21.0 | 122 | 8/23/2026 |
| 0.20.0 | 91 | 8/23/2026 |
| 0.19.0 | 109 | 8/23/2026 |
| 0.18.0 | 87 | 8/23/2026 |
| 0.17.0 | 97 | 8/23/2026 |
| 0.16.0 | 97 | 8/22/2026 |
| 0.15.0 | 102 | 8/22/2026 |
| 0.14.0 | 91 | 8/22/2026 |
| 0.13.1 | 110 | 8/22/2026 |
| 0.13.0 | 92 | 8/22/2026 |
| 0.12.0 | 88 | 8/22/2026 |
| 0.11.0 | 90 | 8/22/2026 |
| 0.10.0 | 92 | 8/22/2026 |
| 0.7.0 | 86 | 8/22/2026 |
| 0.6.0 | 76 | 8/22/2026 |
| 0.5.0 | 76 | 8/22/2026 |