Repository navigation
Releases
Release v0.13.0
Changed
- Build against Screenplay 7.1.0 and Stage Contracts 6.13.0, and accept Screenplay semantic models 57 to 60; new members report the existing unsupported-semantics diagnostics, and generated output is unchanged (#116)
- Selected modules and features without slices now report their context-provided values and implementations instead of dropping them silently (#116)
- The CLI version check now lets the renderer's Screenplay and Stage pins lead the CLI's, with a warning naming the CLI update still owed; pins behind the CLI still fail, and versions are compared the way NuGet orders them (#116)
Release v0.12.0
Summary
Generated HTTP contract tests now accept modeled examples for whole- and decimal-number concepts whose validation is Minimum, Maximum or Equal. These examples were skipped before. They are checked with the same comparison as the generated Java constructor. Axon rendering now admits Screenplay semantic model 56 (Screenplay 6.32.0, Stage 6.2.4). Constructs it cannot render yet degrade visibly, and availability gates fail closed.
Added
- Number examples with
Minimum,MaximumandEqualrules can now drive the generated HTTP contract tests (#81). - Axon rendering accepts Screenplay models up to semantic model 56 (Screenplay 6.32.0, Stage 6.2.4). New constructs it does not render yet, such as systems, abilities, provided context, graph collections, ordered tags and free screens, are reported as warnings or
UNSUPPORTEDdiagnostics instead of being dropped silently (#110).
Changed
- Commands, queries, performed queries and reactions under an availability gate on their module, feature or slice now fail closed. Gated command and query handlers deny every caller, and gated reactions are not run. Each case is reported with a
STAGE-AXON-AUTHORIZATIONdiagnostic (#110).
Fixed
HttpOptionalQueryContractTestand the other HTTP proofs are no longer dropped withSTAGE-AXON-HTTP-SPECwhen the only rules are supported numeric rules. Out-of-range rows are skipped in order until a valid row is found. Unsupported numeric rules still skip with the diagnostic (#81).
Removed
- The pull-request policy check no longer runs the Dependabot label normalizer first (part of Cratis/Workflows#244).
Release v0.11.1
Changed
- Stage.Axon is built with the latest C# language version instead of C# 14, in line with the other Cratis repositories on .NET 11. (#94)
Release v0.11.0
Summary
Stage.Axon now builds against Stage 5.11.0 and Screenplay 6.22.0 (the versions the CLI uses) and admits semantic versions up to V50.
Changed
- Stage.Axon moves to Stage 5.11.0 / Screenplay 6.22.0 and admits semantic versions through V50; every new SDK member is classified (#90)
- Screens, systems, agents, projection ordering and set-once, the new
Contains/StartsWithconditions and caller-identity operands are reported as unsupported (warning, refused in strict mode) instead of being silently ignored (#90)
Security
- State, typed, read-dependent and input-mapped policies, and query row narrowing, now deny access (
denyAll()) on both the HTTP endpoint and the handler instead of rendering a weaker check (#90)
Release v0.10.0
Summary
Stage.Axon now builds with the .NET 11 SDK, and the Cratis.Stage.Rendering.Axon package ships for both .NET 10 and .NET 11.
Changed
Cratis.Stage.Rendering.Axontargetsnet10.0andnet11.0; building the repository requires the .NET 11 SDK (11.0.100 or a later feature band, no previews) (#87)
Release v0.9.0
Changed
- Stage.Axon now builds against Cratis.Stage.Contracts 5.0.0 and Cratis.Screenplay 6.0.0, with the vendored corpus migrated to Screenplay 6 syntax (#89)
- The renderer refuses Screenplay 6 constructs it cannot render (state machines, workflows, graph, clock and calendar operands, one-of, possible events, date-only operands, application time zone and context members) with
STAGE-AXON-UNSUPPORTED-SEMANTICS: a warning by default, an error in strict mode (#89) - Generated TypeScript client files now carry the generated-file header, which Stage 5 owns (#89)
Release v0.8.0
Added
- Applications without modeled constraints gain an optional
persistentSpring profile with JPA event and token storage and an H2 file database. Applications with constraints retain in-memory event storage and reportSTAGE-AXON-PERSISTENT. (part of #1)
Changed
- Generated Maven projects still depend on
io.cratis:stage-axon-runtime; removing that dependency is planned as part of the idiomatic Axon work. (part of #1) - Read models now use typed Spring Data JPA entities and repositories, with in-memory H2 by default. Rewrite inline query performers that use
ReadModelStoreagainst the generated repository; affected bodies become commented stubs with diagnostics. (part of #1) - Composite projection keys now use JPA
@EmbeddedId, including keyed removal. Reducers targeting composite-key models reportSTAGE-AXON-0305. (#58) - Views are now processed by a pooled streaming event processor with sequential ordering, so concurrent events on the same read-model row no longer conflict. Reads are eventually consistent: a query issued right after a command may not yet see its effect. (part of #1)
- Reducers and scoped projections now render as plain
@EventHandlercomponents writing through typed repositories, including child collections, nested scopes and supported joins. Replace custom reducer-bean overrides with event-handler components. (part of #1) - Reactions now use Axon event handlers and Spring scheduled methods to send commands. New reaction processors start at the latest token, so initial startup does not replay historical commands; scheduling remains process-local. (#73) (part of #1)
- Commands, queries and subscription opening now use native Spring Security and Axon authorization; commands, queries, subscriptions and reactions carry only the caller's name and authorities as message metadata, never credentials. Unsupported policies deny access. Endpoints authorized by a composition of inline policies (for example
IsWriter and IsFinanceStaff) now deny every caller and are listed inUNSUPPORTED.md; native composition is planned (see #79). An inline policy that reads claims needs bearer JWT authentication; under HTTP Basic it denies access. (#75) UNSUPPORTED.mdnow groups diagnostics by code and identifies model locations, generated Java artifacts, intended behavior and limitations.- Validations without a Java implementation now generate documented no-ops with diagnostics rather than preventing rendering.
Fixed
- Projections that remove root rows now generate working deletion handlers; repeated scoped removals tolerate concurrent deletion. (#59) (part of #1)
- Generated policy bodies avoid local-name collisions and ignore comments and string literals when detecting declarations.
- Whole-number projection values now convert correctly to decimal targets; read-model identifier, decimal and text persistence mappings are corrected.
Removed
- The previous persistent runtime profile is retired. Regenerate projects and migrate configuration to the new optional profile where supported; applications with modeled constraints cannot use it. Default-profile event and read-model data remain in memory and are lost on restart. (part of #1)
- Legacy
ReadModelStore,InMemoryReadModelStoreandReadModelTransactiontypes are removed. Migrate custom code to generated repositories. (part of #1)
Release v0.7.0
Added
- Inline Java command handlers can now produce or release events covered by property-uniqueness constraints: appends are reserved and released in the same unit of work, exactly one of several concurrent claimants wins, and conflicts return 409. Previously these handlers failed with STAGE-AXON-0801. Unsupported constraint forms still fail closed (#64)
unique eventconstraints (once per event source, withreleased by) are now enforced at append time in memory and with the persistent JPA profile; concurrent duplicates get a 409 (#64)
Changed
- Existing persistent databases and processor tokens from earlier generated Axon applications are refused at startup and must be rebuilt, because persistent read-model processing now uses row-key sequencing (#65)
Fixed
- Uniqueness conflicts on the persistent profile now return 409 instead of 500 for lock timeouts, deadlocks and other databases' duplicate-key errors, and lock waits are bounded (#64)
- Generated Axon applications using persistent read models now process all events for one read-model row in stream order, even when those events come from different event sources (#65)
- Scoped and reducer projectors in generated Axon applications now discard their read-model writes, and the scoped projectors' join and deferred-event state, when the unit of work rolls back in the default in-memory profile, so a rolled-back event never reaches a later query or concurrent unit of work (#46)
Release v0.6.0
Added
- Inline
javaauthorization policies in a model now run natively in generated Axon apps, including on performed queries, instead of denying all access. Each policy receives the caller's authentication and claims; any policy failure denies, and policies in other languages still degrade with a warning or a refusal under the strict profile. (#54) - Generated Axon applications using the persistent profile now include a test proving that live query subscriptions see committed read-model rows and receive nothing when a unit of work rolls back. (#55)
Changed
- The read-model and persistence helpers of generated Axon applications now come from
io.cratis:stage-axon-runtimeinstead of being generated into each application (part of #17) - Existing persistent read-model databases rebuild their views once after upgrading, because the persistence fingerprint changes. (part of #17)
- The STAGE-AXON-0308 notes in generated Axon applications now say whether the persistent profile stores each read model durably, and why persistent startup refuses the ones it does not support. (#56)
- Generated Axon applications now report read models that nothing writes with their own STAGE-AXON-0309 note instead of STAGE-AXON-0308, and those read models no longer block persistent startup unless a query can change them. (#60)
- An inline implementation body on a reaction that cannot be placed is now reported once, through the unplaced-body diagnostic (
STAGE-AXON-IMPL-LANGUAGEorSTAGE-AXON-IMPL), with its specific reason in the warning, the generated comment andUNSUPPORTED.md; the reaction'sSTAGE-AXON-0504"not registered" warning no longer repeats the reason (#61) - The Axon renderer builds against Stage Contracts 4.205.0 and Screenplay 4.251.0, the versions the
cratisCLI 3.105.0 bundles (part of #39)
Fixed
- A renderer built from source warns, and comments in the generated
pom.xml, that its applications depend on an unpublishedstage-axon-runtimeversion, and names how to install it locally (#63)
Release v0.5.0
Added
- The Axon runtime helpers ship as the Maven package
io.cratis:stage-axon-runtime, so generated applications stay smaller and pick up runtime fixes by raising one version (part of #17)
Changed
- Generated Axon applications depend on
io.cratis:stage-axon-runtimeat the renderer's version instead of carrying the core runtime helpers inline (part of #17) - Generated Axon command and trigger request bodies use the modelled property name when it differs from the Java member name (for example
classinstead ofclass_), matching responses, events and read models; callers that send the Java member name must send the modelled name (#44) - Generated Axon applications can now keep read models with event-context values, nested targets and reducer-only models in the persistent profile. (part of #3)
Fixed
-
Command validation errors in generated Axon applications name the property as it was sent in the request, so clients can show the error on the right field when a property's name had to be adjusted to be a valid Java identifier (#44)
-
Generated Axon applications no longer show projector changes from a failed or rolled-back unit of work in the default in-memory read-model store. Changes are applied only when the unit of work commits, and concurrent changes to the same read-model row wait for each other instead of overwriting each other. (#32)
-
Generated Axon applications with persistent read models no longer apply an event twice after a multi-segment rollback or restart, and live queries over persistent read models now receive their updates. (#35)
-
Inline Java reaction bodies authored in Screenplay are now placed in the generated reaction instead of being refused as unregistered (#50)
-
Generated command handlers with an inline Java body import the events they append, so bodies can use the event's simple name (#50)
-
A reaction whose inline implementation body cannot be placed now reports the specific reason (for example a foreign language or a mismatched owner) in the
STAGE-AXON-0504"not registered" warning, the generated reaction comment andUNSUPPORTED.md, instead of only a generic message; strict mode still refuses the reaction (#53)