Upgrade a Deployment
A service is upgraded by a rolling update: new nodes start beside the old ones, the partitions move to them, and the old ones stop. For a while, two versions run at once, against the same database and the same topics. This page explains what makes that safe, for an upgrade of Wow and for an upgrade of your own code.
Two versions side by side
Within one major version, adjacent minor versions of Wow run side by side in one service and across services. Their internal protocols, the cluster channel, the wait signals, the wire forms, and their stored formats stay compatible:
- Stored formats are versioned per structure, not per row: each log, snapshot and timer table records its format in
wow_format. Within a major version the format does not change, and readers ignore what they do not know. A column or a field added within a format is added in place where a store does that today: ClickHouse's_state(When the state schema changes) and the Elasticsearch mappings (A field mapped later). - Wire forms (the Kafka envelope, commands, receipts, wait signals) carry their format too. A new optional field is read by one minor version before the next one writes it.
- A new value of an enumeration, such as a result's status, a hop's stage or a Manifest's
creation, follows the same order: readers first, then writers. A reader older than its writer reads a value it does not know leniently: Wow's clients and nodes read an unknown status, stage or function kind asUNKNOWN, and a Manifest reader leaves out what an unknown value belongs to (a command of an unknowncreation, an aggregate of an unknownownership, a subscription of an unknown kind or start, an error entry of an unknownretry) and logs it. The TypeScript generator leaves such an error code out too: it has no constant until the client is generated again with a newer@ahoo-wang/wow-generator. A server still refuses an unknown value in a request. - A schedule's rule and a timer's status are not read leniently. A schedule rule's kind, a cron rule's
misfireand a timer's status are read before they are written: a node that cannot read one cannot load the aggregate whose schedule it is. So a new one comes in two minors, the first letting every node read it and the next letting an application write it. Adjacent minors side by side, and a rollback one minor down, read what either writes (Protocols). - A Manifest that changes what a part of it means lists a marker in
requires. A reader that does not understand one refuses the Manifest instead of misreading it. - An incompatible change waits for the next major version, whose migration handles it.
So upgrade one minor version at a time, and let each rollout finish before the next.
Your code: events
An event's class may change between two versions of your service, and both versions read the log during the rollout:
- A new optional field with a default needs nothing.
- Any other change raises the event's revision, with an upgrade function from the old one (Evolve Events). Deploy the reading side first: once every node can read revision
n + 1, deploy the code that writes it. Otherwise an old node may read a record it has no upgrade for. - A consumer in another service reads the new revision as a
PublishedEventuntil its api is upgraded, and is not called for it in a handler of the event's class (Publish and Consume Streams).
Your code: state
A change of the state's structure raises @AggregateRoot(stateRevision = n). During the rollout, the new nodes claim the snapshot table at the new revision and rebuild it in place, while the old nodes keep writing at the old one; the store keeps an old node from overwriting a rebuilt snapshot. A rollback lowers the claim again only once no node of the higher revision is left (Rebuild and Replay).
The warehouse's flat view follows the same rule: a writer replaces it only with a newer definition, so an old node that restarts does not undo a new one's view (ClickHouse).
Your code: access attributes
A new or removed access attribute needs nothing: the nodes walk the history once the last node of the version before has stopped. On Elasticsearch under ddl: validate, map a new attribute on each snapshot index first: a node refuses to start while one lacks it. Under auto too, a retyped attribute that a snapshot index maps with its earlier kind refuses the start until the index is recreated (Elasticsearch). An attribute derived another way, its name, type and multiplicity unchanged, raises @AggregateRoot(accessRevision = n), which walks the history the same way; a rollback walks it again (Rebuild and Replay). Wow cannot see a changed derivation: without a new revision the history keeps the earlier values until each aggregate commits again.
Your code: the contract
The commands, events, state and errors a service exposes are its contract with its clients and peers. The Gradle plugin compares each build's Manifest with the committed baseline and fails a change that breaks a client: a removed command or event, a new required field, a field removed or retyped. Record an intended change with updateWowManifestBaseline and review it with the code (Test a Service). Within the baseline's compatibility line, the service's major version, the update refuses a breaking change: it needs the service's next major version, which records the break and the new line, or a new command beside the old one.
A Java record command's aggregate id. When @JsonProperty or @JsonNaming renames a record's @AggregateId component, the Manifest's idProperty is now that name, the field Jackson reads, where it was the component's name. A client generated from the Manifest names the id by idProperty: generate it again. A baseline recorded before names the component, so the check that compares idProperty reads the id as moved to another field, which is breaking.
What the check reads differently from this version. A command whose aggregate id moves to another field of its body, or leaves it (idProperty), fails the check, as a removed field does: a client names the aggregate by that field. Like any break, it needs the service's next major version or a new command beside the old one. The check no longer reports as breaking a command or event renamed with its old name kept as an alias, simple or full (additive), an alias rewritten between its simple and its full name (no change), or a polymorphic field made optional (additive). An anyOf or oneOf whose alternatives overlap, left as it was, is no change, where one of its alternatives was reported added or breaking. A baseline that a Wow pre-release recorded with a Java record command's id under its component's name (the paragraph above: this version names it as Jackson writes it) reads as the id moved: run ./gradlew updateWowManifestBaseline -Pwow.manifest.allowBreaking once, which records the new idProperty within the line and logs it in build/wow/manifest-baseline.txt, then review and commit the baseline (a service on a pre-release of its major's first version, such as 1.0.0-beta.1, records it without the flag).
An aggregate named as a member of its contract. An aggregate whose name, in Pascal case, is NAME, Errors or Wait is <Name>Aggregate in its context's generated contract, in Kotlin and in TypeScript alike: an aggregate errors is ErrorsAggregate, and wait is WaitAggregate. A TypeScript client of an aggregate wait reads <Context>Contract.WaitAggregate where it read <Context>Contract.Wait, and a Kotlin peer of an aggregate errors in a context with no shared error codes reads <Context>Contract.ErrorsAggregate where it read <Context>Contract.Errors: generate the client again, or rebuild the api module, and rename what the compiler reports.
The order of a rollout that adds a property to a command. A service refuses a body that gives a property its command does not have (unknown-property) wherever the command arrives from outside it: its ports, a peer's call, its command topic and a forward between its own nodes alike. So its nodes are upgraded before anything sends the new property, and a service that calls another, or writes to its command topic, is upgraded after the one it calls. Within one service too, a node of the version before refuses a newer node's forward, or a command from the topic, that gives the property: wow.command.malformed with the unknown-property violation, answered to the command's wait and to its saga's @OnRejected handler, and never committed without the property. A release that adds a property and sends it from the same service, a saga deriving the command, therefore sends it only from the release after, once every node reads it. A schedule is the scheduling context's stored data: one for the context's own command runs without a property a later release removed from it, as its stored events read; one for another context's command is sent there when it falls due and is refused by that context's intake, as wow.command.malformed, if the context no longer declares one of its properties.
Subscriptions during a rollout
A partition moves to a new node with its checkpoints, and the new node's subscriptions go on from there. A handler added in the new version starts by its kind (Subscriptions): a projection at the beginning; a reactor or a saga of its own context's log at the end; a reactor's or a saga's handler of another context's stream where its service joins it, at the beginning when no other subscription of the service has read it, else at the end. @OnEvent(start = ...) or wow.subscriptions.[<context>.<processor.function>].start overrides it.
A subscription's name is its identity, so check the renames before the rollout:
- A renamed processor or handler is a new subscription. It starts by the same rule, as if new: a saga or a reactor at the end, skipping whatever its old name had not handled yet, a projection at the beginning, which rebuilds its read model. Its old name's checkpoint and parked entries stay behind, unread.
- To keep its position, pin the old name with
@Nameon the renamed class or function. - The new nodes warn at their first start of the checkpoints under names no subscription has any more;
GET /wow/ops/subscriptionslists them (The Ops Service and Console). - A new name is the only rewind: no checkpoint is ever set back. Deploying a handler under a new name with an earlier
startis how a stream is read again.
Calls while a node goes
A node that a rollout stops goes with notice. It hands its partitions off and drains while its internal port still answers, then closes its connections. A saga's call that reaches it meanwhile is answered, and one that comes after fails to connect and goes to the service's next node within the same attempt, at a cost of at most the connect timeout (wow.peer.connect-timeout, 2 seconds).
A node lost without notice, such as a pod deleted by force or a machine gone, costs more. A call sent on a connection to it gets no answer and ends at its wait and a grace after it, 12 seconds by default, then its subscription retries it. The node's address stays among the service's nodes until their list is read again, at most 30 seconds later, so a call that lands on another connection to it pays the same.
A fixed tenant across services
A type's fixed tenant (wow.aggregates.[<context>.<aggregate>].tenant) is its own service's configuration. A command that goes to another service, a saga's, a timer's or a caller's relayed through the command topic, says the tenant its sender acted for (actingTenant, Commands on a topic), and the target's service decides its own type's tenant from it (A fixed tenant). 10.0.0-beta.12 and earlier send none, and their intakes apply no fixed tenant. So while either side of such a command still runs one of those nodes:
- An older sender, a newer target. The command says no acting tenant, so the tenant its ref names counts as named: one to a type the target fixes to another tenant is refused as
wow.command.malformed. A saga's@OnRejectedhandler takes it, or the subscription parks the aggregate that derived it; nothing lands outside the fixed tenant. Retry the parked entries once the sender's nodes all run the new version: the command is derived again, with its acting tenant, and lands in the fixed tenant. - A newer sender, an older target. The older intake reads no acting tenant and applies no fixed tenant: it runs the command in the tenant its ref names, where the target's other nodes do not look for it. Upgrade a service that fixes a type's tenant before the services that send commands to that type.
- Within one service, an older node still derives and fires its commands in the tenant of their execution, as before, until it stops.
The ref of ACCEPTED and of COMMITTED. A command relayed through the command topic is answered ACCEPTED by the node that sent it, with the ref its sender gave, in the sender's tenant. Its COMMITTED, which the target's intake signals, names the tenant the target decided. A client that waits only for ACCEPTED of a command to another service's fixed type reads the sender's tenant in it; wait for COMMITTED to read where the command landed.
Sensitive values on a published stream
10.0.0-beta.14 and earlier publish every value as committed, @Sensitive ones included. A later release masks them as it writes, every DISPLAY value too unless the owner declares the stream revealing (Sensitive values). What was published before stays:
- On the topic. The records an older node wrote keep their values until the topic's retention removes them; the transport sink does not publish them again. To remove them sooner, start a new topic (
@AggregateRoot(topic), a breaking change of the contract) and delete the old one once its consumers read the new. The new topic carries only what is published from then on, so a projection rebuilt from its beginning starts from that point. - During the rollout. An older node of the owner publishes raw values until it stops, so a consumer may receive raw and masked records side by side meanwhile.
- A consumer that needs
DISPLAYvalues raw receives them masked once the owner upgrades, unless the owner declares the stream revealing. Declare it in the owner's release that masks them, so its consumers never see the masks.
Longer aggregate ids
10.0.0-beta.16 and earlier refuse an aggregate id longer than 256 characters percent-encoded, which is 28 characters of Chinese, Japanese or Korean. A later release takes up to 512 bytes in UTF-8, which is 170 of them (Aggregate ids). An id is longer than before only where both ends take it:
- The gateway first. CoSec 8.0.0-beta.5 and earlier refuse a path segment longer than 256 characters as received, encoded, with 400 before the service sees the request. Upgrade the gateway to CoSec 8.0.0-beta.6 or later, which counts a segment decoded, before the services.
- Then every node. While a service still runs older nodes, they refuse a longer id as
wow.command.malformed, and so does an older peer that relays a call. A creation that a newer node took may be followed by a command that an older node refuses. A saga's command to an older target is refused the same way. Let no client or saga create an aggregate with a longer id until every node of the service, and of each service that sends commands to it, runs the new version. - Routes. The build refuses a Manifest whose route by id takes more than 512 characters besides the id, or has a segment of more than 256 characters, naming the route and the name to shorten.
- Elasticsearch. A document's id is the tenant and the aggregate id. It stays as it was while it is at most 512 bytes in UTF-8, so indices need no rebuild. A longer one, a long id behind a long tenant, which an earlier release failed to write, is its prefix and the SHA-256 of the whole.
Settings that must not change
wow.log.partitions is fixed once the log holds entries, and the nodes of one service share their store layout (Configure a Service).
Jackson
Wow's JSON runs on Jackson 3.1 and 3.2, the two minors its tests run on. 3.1 is the one Spring Boot 4.2 manages, which a Maven build under Boot's parent and a Gradle build with Spring's dependency-management plugin resolve. 3.2 is the one a Gradle build that imports Boot's BOM with platform(...) resolves where springdoc is on the class path, since swagger-core 3 asks for it. On either, with Jackson's modules at one version, there is nothing to do.
On another Jackson, Wow says what to change before the first read:
- At build time.
checkWowJackson, part ofcheck, fails whenjackson-core,jackson-databindorjackson-module-kotlinresolve at a minor Wow's JSON was not verified on, or at two minors, naming the versions, what asked for them and the change to make. It checks a domain module's test class path (me.ahoo.wow) and a service's runtime and test class paths (me.ahoo.wow.service). - At start. The Spring Boot host does not start on such a Jackson, and names the versions it found and the change to make. This covers a Maven build and a build without Wow's Gradle plugin. The host reads each module's version from the Maven metadata its jar carries (
META-INF/maven/.../pom.properties), so a jar repackaged without it, a shaded or stripped jar, is not seen: such a build relies on the build-time check, or on its own.
A Jackson module only the application uses, a data format or a datatype, is the application's to keep in line: Wow checks the modules its own JSON runs on.
To keep one Jackson, Spring Boot's, on every class path of a Gradle 9 build, put Jackson's BOM in a dependency scope that every resolvable configuration extends, at the version Boot's BOM gives, read from it rather than copied:
// One Jackson, Spring Boot's, on every class path this build resolves. A dependency scope: nothing is published.
val bootBom = "org.springframework.boot:spring-boot-dependencies:4.2.0"
val jacksonPlatform = configurations.dependencyScope("jacksonPlatform") {
withDependencies {
val databind = "tools.jackson.core:jackson-databind"
val bootJackson = project.configurations
.detachedConfiguration(project.dependencies.platform(bootBom), project.dependencies.create(databind))
.incoming.resolutionResult.allComponents.mapNotNull { it.moduleVersion }
.single { "${it.group}:${it.name}" == databind }.version
add(project.dependencies.enforcedPlatform("tools.jackson:jackson-bom:$bootJackson"))
}
}
configurations.matching { it.isCanBeResolved && !it.isCanBeConsumed && it.name != jacksonPlatform.name }
.configureEach { extendsFrom(jacksonPlatform.get()) }A dependency scope is never published, so the module's POM and Gradle metadata name no enforced platform. The version moves with bootBom, so the update that moves Spring Boot moves Jackson with it. Declared on implementation instead, the enforced platform would be published, and Gradle refuses to write a publication's metadata that holds one; declared on testRuntimeClasspath, it is refused at once, since no dependency is declared on a resolvable configuration.
A major version
A new major version may change formats and protocols. Its nodes do not run beside the previous major's: it comes with a migration, run before or during a cut-over, as V10 does from 9.x (Migrating from 9.x).
From a 10.0.0 pre-release
A 10.0.0 pre-release (alpha, beta, rc) makes no compatibility promise for what it stores or for its API. Its stores are not carried over: start this version on empty stores. A MongoDB log a pre-release wrote has no tenant-scoped access keys, so an equality on the owner or the space finds none of its streams until a stamp writes their attributes again. A search store on Elasticsearch is one of those stores: an index a pre-release created, [<prefix>_]wow_snapshot__<context>__<aggregate> or [<prefix>_]wow_events__<context>__<aggregate>, is a concrete index of the name this version keeps as an alias, and the store refuses it, naming it (Indices and their aliases). Delete those indices before this version starts. A deployment that kept its log all the same fills them again from it: the snapshot copy by raising the type's snapshot generation and restarting the nodes (Stores and formats), the events index by a new generation of its sink, wow.stores.<name>.sink.generation (Rebuild). A service coming from 9.x follows Migrating from 9.x.
Before the rollout
A rolling update from a pre-release runs its nodes beside this version's for a while. Before each service's update:
- Let its sagas, reactors and timers catch up. Each saga and reactor that reads its own context's log reads
wow.subscription.backlog0 andwow.subscription.parked.aggregates0, and no timer comes due within the update. One that reads another context's topic does not go on from the checkpoint it reached: it reads the topic created again as its start says (Published streams on Kafka). The request ids Wow derives for the commands its handlers, its decide functions' calls and its timers send changed with this version, and the ids Wow gives its own commands start withwow:: a commit or a timer handled before the upgrade and again after it would send its commands once more, under ids their targets do not recognize. - Upgrade a called service before its callers. Nodes are upgraded before their clients, and a service that calls another through its public port, in user mode, is a client of it (HTTP API). The internal port keeps reading what a peer of the next minor version sends.
- Upgrade the ops service with the services that publish to it. A parked entry's last automatic retry is
lastRetryAt, and each side refuses the other's record across the rename; a service publishes its entries again once both run this version (Stores and formats). - Expect no forwards between a pre-release's nodes and this version's. A node refuses a forward of a format it does not read (
refused: "unknown-format") and one it cannot read at all (refused: "malformed", where it answered 400), so its sender runs the command itself. It answers 400 to wait signals of another format and to aWow-Callof another (wow.command.malformed), and reads a forward's reply of another format as an unknown outcome. The cluster channel's forward and reply name their formatformat, where they named itv, andWow-Callcarries one. A batch of wait signals refused as too large is sent again in halves instead of dropped. Every structure is format 1, so nothing changes between nodes of this version. - Kafka. A service that publishes or reads a state topic, or takes commands from its command topic, follows Published streams on Kafka.
Stores and formats
A store under ddl: validate or ddl: none (wow.ddl, or a store's wow.stores.<name>.ddl) records each log or timer table or collection in its registry, wow_log_aggregate or wow_timer_aggregate, and refuses to go on without the record. On PostgreSQL, under validate a node whose account may not insert a missing record is refused, naming the table, the registry and the row: at start for a type whose events queries the store serves, at its first append or read for any other; under none a table's first append, read or timer is refused so. On MongoDB the first append or timer of such a collection fails, naming the document to insert. A pre-release started instead and lost delivery: no other node's tail read the table, and its timers never came due. Grant the store's account INSERT on both registries, or insert each record the refusal names. On MongoDB the stores read each registry before they write it: the account needs find on both, insert only to write a record that is missing, and update on wow_log_aggregate and on the log collections (wow_log__<context>__<aggregate>, whose streams every access stamp updates) whenever the log's access walk is due; a schema ddl: auto created has its records (PostgreSQL, MongoDB). A MongoDB store also compares each index named as one of Wow's (version_key, request_key, timer_due and the others) with the definition this version creates, under ddl: validate and ddl: auto alike: one made by hand or by a tool with other keys or key order, without unique, sparse, with another partial filter or with a collation refuses the start, naming each difference. Drop it and start once with ddl: auto, or create it as the message gives it, after checking the collection for the duplicates a unique key that was not unique let in.
PostgreSQL: the keys of Wow's tables are checked at start. Under wow.ddl: auto and validate, a PostgreSQL store refuses a table that lacks a unique key of Wow's schema (a log table's version or request key, any table's primary key), naming the table and the key, and under validate a missing index of Wow's schema, naming it. A schema created by Wow passes; a schema applied by hand must keep every PRIMARY KEY and UNIQUE of Wow's statements.
PostgreSQL stores are recreated. The pre-release layout is not read: start from an empty database. The log stores an event's data as events[].body; timers and reservations name their aggregate aggregate_tenant_id/aggregate_id, and a timer's scope and operator are flat columns; wow_lease_member is keyed by service and records each node's version of Wow (wow_version); the failure ledger names aggregate and last_retry_at; stored enumerations are their lower-kebab names. A column Wow adds within the format later is added by ddl: auto and refused, named, by validate.
MongoDB stores are recreated. The pre-release layout is not read: start from an empty database. The log stores an event's data as events[].body; timers and reservations name their aggregate aggregate: {tenant_id, id}; wow_lease_member is keyed by service and records each node's version of Wow (wow_version); the failure ledger names aggregate; stored enumerations are their lower-kebab names; a timer's null field is left out of its document.
A lease or a checkpoint names its group lease_group. wow_lease and wow_checkpoint name the group a lease or a checkpoint belongs to lease_group, on PostgreSQL and on MongoDB, where they named it subscription_group; a statement of an operator's over them (those of Kafka, for one) names lease_group. A store an earlier 10.0 beta wrote is not carried over, as the other stores of a pre-release are not. To keep one anyway, stop every node of every service whose leases it holds, then run the statements below and start this version. There is no rolling upgrade here: services that share a database share its leases and checkpoints, and a node of either version does not see the leases the other writes, so on MongoDB a partition would have two owners.
On PostgreSQL (a primary key follows its column):
ALTER TABLE wow_lease RENAME COLUMN subscription_group TO lease_group;
ALTER TABLE wow_checkpoint RENAME COLUMN subscription_group TO lease_group;On MongoDB, in mongosh on the store's database (if lease_key or checkpoint_key was already dropped, leave out its dropIndex):
db.wow_lease.dropIndex('lease_key');
db.wow_lease.updateMany(
{ subscription_group: { $exists: true } },
{ $rename: { subscription_group: 'lease_group' } },
);
db.wow_checkpoint.dropIndex('checkpoint_key');
db.wow_checkpoint.updateMany(
{ subscription_group: { $exists: true } },
{ $rename: { subscription_group: 'lease_group' } },
);Then start with ddl: auto, which creates both indexes. Under ddl: validate, create them first:
db.wow_lease.createIndex(
{ lease_group: 1, partition: 1 },
{ unique: true, name: 'lease_key' },
);
db.wow_checkpoint.createIndex(
{ lease_group: 1, subscription: 1, partition: 1 },
{ unique: true, name: 'checkpoint_key' },
);Without these statements, ddl: auto and ddl: validate refuse the start. PostgreSQL names the key the table lacks (wow_checkpoint has no unique key on (lease_group, subscription, partition)), and MongoDB the index that differs (The index lease_key of wow_lease is not the one this version of Wow creates). The MongoDB refusal's remedy, dropping the index and starting with ddl: auto, is not enough for a renamed field: every document still lacks lease_group, so the new unique index meets duplicates and the start fails again. Rename the field as above. Under ddl: none nothing is checked. On PostgreSQL every lease and checkpoint call fails on the missing column, so the node holds no partition and runs no subscription. On MongoDB the node sees none of the earlier leases and checkpoints: it takes partitions an earlier node may hold, so a partition has two owners and its entries are handled twice, and each subscription starts again from its start position.
A snapshot table registry names who fills a table by its wire name. fill is subscription or backfill in every snapshot store, where a pre-release wrote SUBSCRIPTION/BACKFILL; the stores a 10.0 pre-release wrote are recreated with the upgrade, as its other stores are. Elasticsearch indices a 10.0 pre-release created are recreated with the upgrade. The snapshot table registry is mapped dynamic: false, as the snapshot and events indices are, so a field a later version adds to a record is stored, not indexed, rather than refused; an existing registry keeps the mapping it was created with. A node writes a record over the one it read, so a claim, a mark, a renewal or a removal's mark keeps a field its version does not know, as PostgreSQL and MongoDB keep a column or a field their writes do not name. A snapshot document names its stateRevision, and an events document holding access attributes names the accessVersion they are of: a pre-release's document without them is refused rather than read with a default.
wow_catalog names its closed sets in lower case, keeps a sensitivity level it does not know, and the ClickHouse Sink refuses an insert a table has no place for. ownership is owner or tenant, a sensitive level display or confidential, access policy or default; a tool that reads wow_catalog itself reads those names. A sensitivity level a node does not know, a later version's, is kept in wow_catalog as written and masked as CONFIDENTIAL, never less. Every insert of the Sink refuses a field the table has no column or tuple element for, under every ddl mode, where ClickHouse dropped it: a pre-release table kept under ddl: none parks the aggregate until it is recreated (drop it and raise the Sink's generation). The parked entry's reason names ClickHouse's error code, and the node's warning of the park names the field.
The ClickHouse Sink's tables name an event's data body. _state_events.events is Array(Tuple(name, revision, body)) and _events has body, where both said payload; a dataset or a query reads body, and the catalog's sensitive paths are events.body.<path> and body.<path>. The tables a 10.0 pre-release wrote are recreated with the upgrade, as its other stores are: the Sink refuses them, naming the column; drop them and raise the Sink's generation, which fills them from the log. A table may hold columns of its operator's own, which the Sink leaves as they are.
The ClickHouse Sink's tables name the state's fingerprint schema_fingerprint and an event's place in its commit event_index. _state_events and _state have schema_fingerprint, and _events has event_index, where they had state_fingerprint and sequence; a dataset or a query that reads either names the new column. The tables a 10.0 pre-release wrote are recreated with the upgrade. Under ddl: auto and ddl: validate the Sink refuses them before its first write, naming each column. Under ddl: none ClickHouse refuses its inserts. Either way the aggregate parks until the tables are recreated. Roll every node to this version with wow.clickhouse.sink.generation raised by one. Then drop the Sink's tables and views (The tables), and the new generation fills them again from the log; the entries it parked meanwhile are retried by their automatic retries, or by an operator from the ops console. Drop the Sink's tables only after the last node of the earlier version is gone: an earlier node under ddl: auto creates a missing table again, in its own layout, at its next check of the tables (every minute), and this version's Sink refuses that table. In Kotlin, ClickHouseSinkProvider.SINK_GENERATION is GENERATION.
An events index on Elasticsearch, or the ClickHouse warehouse, is filled again from the log by a new generation of its sink: empty it (delete the concrete index <name>--1, or drop the sink's tables), raise wow.stores.<name>.sink.generation (Elasticsearch) or wow.clickhouse.sink.generation (ClickHouse) by one, and roll the nodes. The setting is 1 by default, which keeps the sinks' names; only raise it. The old generation's checkpoints and parked entries stay, listed as orphans by the ops service and warned of at start; skip its parked entries.
A sink's raised generation is named @<n>. The subscriptions of a sink raised to generation n are named <processor>@<n>.<aggregate> (wow.clickhouse-sink@2.order, wow.elasticsearch-sink@2.order), as a snapshot table's backfill is (…#order@2), where they were named <processor>-g<n>.<aggregate>. A sink at generation 1, the default, keeps its name. A sink whose generation was raised before this version runs under the new name as a new subscription. It writes its streams again from the beginning of the log into the same tables or index, which keep each commit once: an Elasticsearch create answered 409 counts as written, and ClickHouse's ReplacingMergeTree merges a replayed row away. What its earlier name left behind, its checkpoints and parked entries, is neither warned of at start nor listed as orphans. Delete those checkpoints, on PostgreSQL with DELETE FROM wow_checkpoint WHERE subscription ~ '^wow\.(clickhouse|elasticsearch)-sink-g[0-9]+\.' and on MongoDB with db.wow_checkpoint.deleteMany({ subscription: /^wow\.(clickhouse|elasticsearch)-sink-g[0-9]+\./ }), and skip its parked entries.
A parked entry's last automatic retry is lastRetryAt, beside nextRetryAt: in the SPI (ParkedAggregate, ParkedAmendment.Restate), in the record a service publishes to ops, in the operator routes' JSON and in the ops console. The failure ledger stores it as last_retry_at, on MongoDB as on PostgreSQL. A pre-release store is not carried over; to keep the value in a MongoDB one, rename it before starting this version: db.wow_failure_ledger.updateMany({retry_at: {$exists: true}}, {$rename: {retry_at: "last_retry_at"}}).
A snapshot table (an Elasticsearch index, a PostgreSQL table, a MongoDB collection) that is deleted while its record in wow_snapshot_table is kept is no longer created again and served as if it had caught up. The store records it removed; the type's snapshot queries answer 409 wow.query.dataset-unavailable, naming the type and the store; its commands and state reads go on from the log; nothing is written to it and no aggregate is parked. Stores written by a pre-release are not carried over. A third-party snapshot store compiled against an earlier wow-spi is recompiled.
A snapshot table removed under its record is filled again by raising its generation. Each snapshot table records a generation, 1 from its first claim. To fill again a table that a node reported removed under its record (or one emptied in place), delete it or leave it deleted, raise wow.aggregates.[<context>.<aggregate>].snapshot.generation (or .query.snapshot.generation for a query copy) above the generation the error names, and restart the nodes one by one: the first node at the raised generation makes the table again and a backfill named …#<aggregate>@<n> fills it from the log's beginning, its queries answering rebuilding until it caught up. Only raise it: a lowered key is warned of and the record's generation stands. The registries of the snapshot tables gain a generation field in place; a pre-release's stores are not carried over.
A pre-release refused an Elasticsearch store as an aggregate type's own snapshot store; this version takes it (Elasticsearch). A deployment that keeps its snapshots on its database with a copy on Elasticsearch changes nothing. One that wants the type's state stored once names the Elasticsearch store in the type's snapshot.store. The store is then filled from the log, and the type answers rebuilding meanwhile (Rebuild and Replay).
The failure ledger's parked entries are named and reached in bounded form, so an entry of any aggregate that may exist is recorded by the ops service and reached by an operator through a gateway (Ops Console):
- The ops service's
parkedaggregate is named by a hash. An entry's id ispand 32 hexadecimal digits, the first 128 bits of the SHA-256 of its service, subscription and aggregate, where it joined them. The service, subscription, tenant and id are the entry's fields, as before. The ops service records an entry only under the id its fields hash to. Start the ops service of this version on an empty store, as every store of a pre-release: entries recorded under the earlier ids would stay unresolved, the services' later records going to the new ones. The services' own ledgers keep their entries, and their next scan publishes them again. - A service's operator routes take the entry in the body. Each is a
POSTunder/wow/ops/parkedwhose path holds no data:list(subscription,after,limitin the body),entry,retry,skip,mark-recoverableandapply-retry-spec, the entry named bysubscription,context,aggregate,tenantIdandid. A script, a webhook receiver or a gateway policy that builtGET /wow/ops/parked?…,GET /wow/ops/parked/{subscription}/{context}/{aggregate}/{tenant}/{id}or itsPOST …/retrypaths moves to these. Ledger.parkedIdanswers the hash, with the same signature; code that parsed its earlier form reads the entry's fields instead.
An owning service answers an operator's action for the parking the action names: a retry, a skip, a mark or a retry spec on a parking it no longer holds is published as resolved for that parking alone, so the ops service keeps a later parking open. An answer that leaves the entry as it was, such as a spec applied again unchanged, now ends the request the ops console shows as pending. The fix is on both sides: a service still on the earlier runtime publishes undated resolutions and reuses the entry's request id, so upgrade the services that publish their ledgers as well as the ops service (The Ops Service and Console).
The ops service's operator requests name their parking. A skip through the ops service (POST /ops/parked/{id}/skip) names the parking it discards, {"failedAt": <epoch ms>} as the entry shows it, and one without it is refused with 400 wow.command.malformed; a retry, a mark and a retry spec may still leave it out and act on the parking the entry holds. The ops console always sends it; a script that skips through the ops service sends it too. The four requests the parked aggregate records, RetryRequested, SkipRequested, MarkRecoverableRequested and ApplyRetrySpecRequested, carry failedAt as a required field. 10.0.0-alpha.1 to alpha.5 recorded a skip request without it, and alpha.1 to beta.1 a mark or a retry spec request; their retry request was ResumeRequested, which no release since reads. An ops service upgraded as above starts on an empty store (since beta.17, its entries are named by a hash), so it holds none of these. An ops store kept from those releases anyway cannot replay such an entry. An operator's action on it is answered 500 wow.command.failed and commits nothing. Its service's next record fails in the ops service's command intake, which parks the entry among the ops service's own parked entries (ops.wow.commands), so the entry no longer follows its service. Its history still reads as stored. Start the ops service on an empty store: each service publishes every entry its ledger holds at its next scan (wow.ops.publish.interval, 30 seconds by default), with the request pending on it, and the console lists them again. The ops store's history of resolved entries and of past requests is not rebuilt.
Configuration
Where a node's ports listen, and when it runs for development, follow what you wrote rather than the machine (Configure a Service):
- In a development profile (
wow.dev-profiles) the internal port binds127.0.0.1unlesswow.internal.hostorwow.node.addressnames an address. The public port is unchanged: it listens whereserver.addresssays, and a node that takes its callers from request headers names that address at startup when it is not the loopback interface. A profile that bound the internal port to the loopback interface where Spring Boot detects no cloud platform (spring.config.activate.on-cloud-platform: nonewithwow.internal.host: 127.0.0.1) can go. A development node that must be reached from another machine names its addresses. - Outside a development profile the internal port binds, as before, the address this host's name resolves to, but a node refuses to start when that is a public address: the port takes no credential. Name the private address with
wow.internal.host; an address you name is taken as written. - A host name that resolves to a loopback address (
127.0.1.1in Debian's/etc/hosts) no longer makes a node a development one. Such a node without a development profile is a deployment: without a durable backend, or without aCallerResolver, it refuses to start where it used to run in memory and serve the anonymous caller. Namewow.internal.host, and give it its backend and resolver, or activate a development profile on purpose.
A node runs for development only in a profile of wow.dev-profiles (dev and local by default). A test or demo profile no longer is one: a node that relies on one refuses to start as a deployment, so list the profile in wow.dev-profiles, or use dev. A loopback wow.internal.host or wow.node.address no longer makes it one: such a node served every request to its public port as the anonymous caller when it had no CallerResolver, and fell back to memory without a database, a deployment bound to loopback behind a sidecar included. Without a development profile it now refuses what any deployment refuses: no durable backend, no CallerResolver, topics in memory. A local run that relied on its loopback internal port activates dev; a deployment gives the node its database and its CallerResolver (or CoSec). A wowServer test without a development profile is refused the same way: give it "dev" (wowServer<App>("dev")), or what a deployment needs (wow.backend=memory named, a CallerResolver). wowServer(…, topics = …) needs a development profile.
A pre-release that listed its snapshot stores changes its configuration before this version starts. The keys wow.snapshot.stores, wow.snapshot.primary, and an aggregate's snapshot.stores and snapshot.primary are gone, and each refuses the start, naming itself. Name each type's one store with wow.snapshot.store or the aggregate's snapshot.store. A deployment that kept a search copy, snapshot.stores: [main, search] with query.snapshot.store: search, drops snapshot.stores and keeps query.snapshot.store: the copy's subscription keeps its name, wow.snapshot:search, so its index and its checkpoints are kept, and nothing is read again.
A provider's option, under wow.<type> (wow.kafka.*, wow.mongo.*, a peer discovery's, a dataset backend's) or a store's own under wow.stores.<name>, is read in every form Spring binds, as the configuration keys' check reads it: an environment variable (WOW_KAFKA_COMMANDINTAKE_ENABLED) or camelCase (commandIntake.enabled) means what the kebab-case key means, and the environment's order decides between two of them. A pre-release took a provider's option only by its kebab-case key in some file: a variable or a camelCase key whose kebab-case form no file set passed the startup check and was not read. Such a setting now takes effect; check what a deployment sets that way. Wow's own eShop payment chart set WOW_KAFKA_COMMANDINTAKE_ENABLED: "true", which a pre-release ignored: its command intake now runs. The values in deploy/ for the eShop's basket, inventory, ordering and payment services and for the ops service set WOW_KAFKA_DDL: validate, which a pre-release ran as auto: a node of this version creates no topic and does not start while one is missing, as each of those READMEs says, so create the topics first.
spring.codec.max-in-memory-size no longer sets the internal port's message limit: Spring Boot 4 binds only spring.http.codecs.max-in-memory-size, and both ports follow it.
Two settings a pre-release started with now refuse the start, each naming its key and its bound. wow.health.liveness.stall-timeout must be longer than wow.cluster.reconcile-timeout (1m by default), so a stuck node leaves the members before its liveness fails: wow.health.liveness.stall-timeout is 1m, not longer than wow.cluster.reconcile-timeout. wow.query.dataset.max-concurrent must be 0 or more, where a pre-release ran a negative value as no bound: set 0 for no bound (wow.query.dataset.max-concurrent is -1, below 0.).
PostgreSQL and Elasticsearch: an operation timeout must bound something. A store's operation-timeout (wow.postgres.operation-timeout, wow.elasticsearch.operation-timeout, wow.stores.<name>.operation-timeout) of zero or below now refuses the start, naming the key, as MongoDB's already did; on PostgreSQL so does one past about 24.8 days. A PostgreSQL timeout of zero left every call unbounded, and a negative one failed every call.
wow.node.address names its port. An address without a port, with port 0 or past 65535 now refuses the start, naming the key: the other nodes reached such a node at port 80, or nowhere. Write host:port, an IPv6 host in brackets.
Every wow.aggregates entry names a served aggregate type. An entry of wow.aggregates.[<context>.<aggregate>] that names no aggregate type the node serves now refuses the start, whichever of its settings it holds; before, its query.events.unpinned and its ClickHouse history were ignored without a word.
A setting the host cannot start with names its key. A value out of range under wow.node, wow.internal, wow.health, wow.ops, wow.peer, wow.log, wow.http, wow.query or a store's or transport's options now refuses the start with Wow's failure analysis, naming the key or its group, instead of a bean's stack; a blank wow.tenant.default refuses the start in every case.
Renamed configuration keys and values. wow.timers.claim-timeout is wow.timers.claim-ttl, wow.kafka.topics.partition-refresh is wow.kafka.topics.partition-refresh-interval, wow.subscription.read-retry.error-after is wow.subscription.read-retry.error-after-attempts, and wow.wait.unknown-contexts: reject is refuse; the former names refuse the start. 0 turns off every bound that can be turned off: wow.timers.expires-after, wow.timers.max-fire-rate and the retries' timeout take it, and reindex-requests-per-second takes 0 for no limit instead of -1. A store's or transport's duration reads as the host's do (5S, 500ms, PT5S); 1m 30s and 1.5s are refused.
Two caches' keys take their siblings' words. wow.query.count-cache.max-entries is wow.query.count-cache.capacity, as the other caches name their bound by count, and wow.shared-states.max-age is wow.shared-states.ttl; their environment variables are WOW_QUERY_COUNTCACHE_CAPACITY and WOW_SHAREDSTATES_TTL. The former names refuse the start as unknown keys, on this version's nodes, and the new names on an earlier version's, so change a key in the same rollout as the image: a node of either version that restarts with the other's key does not start. In Kotlin the options are named as the keys: QueryCountCacheOptions.maxEntries is capacity (DEFAULT_CAPACITY), and SharedStateOptions.maxAge is ttl (DEFAULT_TTL).
A setting that would do nothing refuses the start. A wow.http.errors code under wow. that the framework does not answer, app_id, user_agent or remote_ip in wow.http.request-facts, a wow.ops.publish.context that is no context name, an adaptive query floor above its store's ceiling, and a Kafka topics.min-insync-replicas above topics.replication-factor now refuse the start, naming the key; before, each was ignored. A wow.http.errors code of the application's that no Manifest on the class path declares starts with a warning.
Every refused setting names its key. wow.log.partitions and wow.memory.topic-retention out of range, a store's query settings, a wow.subscriptions entry's retry and parked settings, and wow.query.budgets.in-process.default-list-size now refuse the start naming the key that is set, where some named another key, the wrong group, or none.
wow.query.require-explicit-entry and wow.query.require-authenticated-scope are removed; delete them, as a node now refuses either at startup as an unknown key. Every query states where it comes from, and every query is already restricted to the tenant of the caller the service resolves from the request: the second key's check read a scope the query routes never set, so with it on every HTTP query of a built-in model was refused, and with it off its removal changes nothing. In code, QueryEntry.UNSPECIFIED and QueryCaller.UNSPECIFIED are gone: a QueryCaller runs in process unless it says otherwise (QueryCaller.IN_PROCESS), and the query error code explicit-entry-required is gone with them.
With spring.main.lazy-initialization=true, a refused wow.health configuration (parked-degraded-at past wow.node.max-parked, a liveness stall timeout not longer than the cluster's reconcile timeout) now refuses the node's start, as it does without lazy initialization, instead of failing its first health probe.
An entry of wow.peers for a context the node serves is ignored, a missing url included: one file of peers can list every service's context and be given to each of them. A start that this refused now goes on.
A subscription's handle or process span for an entry it skipped behind its aggregate's park, or as a copy a topic delivered again, now ends with wow.outcome skipped instead of ok. A dashboard or alert that reads ok on these spans as "handled" no longer counts those skips. Reference › Observability lists the outcomes of these spans.
Security
Wow's operational commands, a scheduled job's, the snapshot rebuild and an operator's actions on parked entries with their read, are allowed on the public port and the operator's routes only when an authorizer decides them (Authorize commands). An application whose own CommandAuthorizer allowed them by having no objection, or ruled on them inside a when on action.isOperational, now has them refused (403 wow.auth.forbidden), and the host says so at startup. Move that rule into a bean of its own, CommandAuthorizer.operational { caller, action -> … }, which is asked about them alone; an authorizer class that rules on them overrides decidesOperational to true. A service whose operators CoSec decides (wow.cosec.authorizer.enabled) changes nothing. A caller's roles are caller.roles and caller.hasRole(…): DevelopmentHeaders.ROLES_ATTRIBUTE and CoSecCallerResolver.ROLES are gone, replaced by Caller.ROLES, and a test caller takes them as Caller.of(…, roles = listOf(…)). CommandGateway.authorizes is decidesOperational.
With wow.cosec.authorizer.enabled: true in a service where CoSec decides the requests itself (cosec.pipeline.mode enforce), CoSec's authorizers now take part: a pre-release registered none, their condition looking for CoSec's checker before CoSec's pipeline defined it. From this version CoSec's policies decide, as the principal of the request, each command and service route call at admission, whichever way it reached the command gateway, and Wow's operational commands; the ops service's and the analytics catalog's roles step aside for them, as their pages say (Ops Console, Analytics Catalog Console). A command or call whose action no policy grants is refused (403 wow.auth.forbidden), and so is an operator whom a role allowed and no policy grants. Before upgrading, grant in CoSec's documents the actions these need (Action names): a command's <context>:<command> on <aggregate>/<id>, a service route's <context>:<route> on route/<route>, a scheduled job's <context>:wow.schedule.EnableJob and the other job commands on schedule/<job>, the snapshot rebuild's <context>:wow.snapshot.RebuildSnapshot on snapshot/<aggregate>, and the ops service's ops:Retry, ops:Skip, ops:MarkRecoverable and ops:ApplyRetrySpec on parked/<id> with the reads of its query routes. A service behind a CoSec gateway (wow.cosec.mode: gateway) has no CoSec checker and is not affected, nor is one with the switch off.
A service identity is taken on the internal port alone. An application whose own CallerResolver returned one (Caller.ofService, or service = true) for a request to the public port has that request refused (403 wow.auth.forbidden) on the public routes, the operator's routes and the subscription routes, where it used to be trusted as a service: by access policies, by the operational authorizer, by a revealed read. Return an ordinary caller with its roles instead (Caller.of(subject = …, roles = listOf(…))); a service that calls another reaches its internal port, where it names itself (Close the internal port).
With wow.cosec.authorizer.enabled, CoSec's authorizer now denies a command, Wow's operational commands included, and a service route call whose caller is not the principal CoSec authenticated for the request. Such a caller comes from a CallerResolver of your own that maps CoSec's principal to another subject or tenant, or answers anonymous callers, or from code that sends a command as another caller while it handles a request. It is answered 403 wow.auth.forbidden rather than allowed. Send such a command as the request's caller, or decide those callers with a CommandAuthorizer of your own instead of the switch. Commands no request carries (sagas, timers, scheduled jobs, the internal port) are unchanged. The switch set where CoSec does not decide the requests in the service now refuses the start and says why: behind a CoSec gateway (wow.cosec.mode: gateway), with CoSec off, or without wow-cosec. Remove it there; the gateway authorizes those requests.
A model's descriptor asks the read authorizers. The GET of a query route, and of a dataset's, is now refused to a caller the service's ReadAuthorizer beans refuse, with their problem (403 wow.auth.forbidden unless they name another code), as a query of the model is. The authorizers are told the operation QueryType.DESCRIBE: one that allows only some operations decides the descriptor as well, so a client that offers a model's fields to a user the authorizers admit keeps working.
CoSec's device id, CoSec-Device-Id, is no longer recorded in a command's request facts unless the service lists it in wow.http.request-facts. It is personal data that the immutable log keeps, so Wow records it only when the application asks. A service with CoSec turned off (wow.cosec.mode: disabled) reads no CoSec header, CoSec-Request-Id included: a client sends Wow-Request-Id.
A creation without an id is authorized and validated on <aggregate>/(none): a CommandAuthorizer, a validator or a CoSec policy that matched the id a node drew for it changes (Action names).
A node now refuses to start when a type's events queries would be served by a store that cannot keep the history's access attributes current, naming the type, the store and the missing capability. Wow's own backends all keep them current, so no deployment on them is affected. A log written outside Wow cannot keep them current in 10.0, so its store does not serve events queries: a node whose events model it would serve does not start.
An access attribute is never a sensitive value. The compiler refuses an @Access member that is @Sensitive, overrides a member that is (a Java method's @Sensitive included), or whose values are of a @Sensitive type, naming the member: an access attribute is answered raw on every read of the state and on its published stream, and queries compare and group it. Remove @Access from such a member, or derive the attribute from a value that is not sensitive. What a computed member derives from a sensitive field the compiler cannot see: derive attributes from values that are not sensitive.
An event the node does not know is answered as null. The events query and the in-process QueryApi answer the body of an event the node's Manifest does not list, by its name or at a newer revision, as null, its name and revision as stored, and a schedule's command of a type no Manifest names as null: the node cannot tell what in such a body is sensitive. This is what a reader sees of a newer node's events during a rolling update, and of events no class models, such as those an imported 9.x stream holds. To keep reading one, keep it declared: an event class of the aggregate, or a former name of one with @Alias. Retired events are left out, as before.
A sealed type written as an array is masked, and a sensitive value under a name no query path takes stops the build. A @Sensitive value of a subtype of a sealed type with include = WRAPPER_ARRAY (["Shape$Pin", {"code": "1234"}]) was answered and published as stored: every read, the published stream and the state view cache now mask it, the snapshot query's descriptor and audit name it, and the warehouse's catalog lists it, so a lineage: source dataset over the document column that holds it is refused, as over any column with a protected path. A @Sensitive value under a property name no query path takes, a WRAPPER_OBJECT type id of a nested class (Shape$Pin) or of use = CLASS among them, passed the build and failed every masked read of its state or event, and the published stream: the build now stops on it, naming the payload and the path. Give the property a name of a letter or _ followed by letters, digits, _ and -, give each subtype such a type id (@JsonTypeName), or write the type id as a property (include = PROPERTY) (The Manifest).
A schedule's command is protected in the warehouse. A schedule's event (wow.schedule.ScheduleSet) holds the command it will send, whole, which the ClickHouse sink stores as written. The sink's wow_catalog row of an aggregate whose state and events hold nothing sensitive listed nothing of it, so a lineage: source dataset over _events.body or _state_events.events served a scheduled command's @Sensitive values raw, and so did an analytics catalog dataset's column from body. Any decision may schedule any command, a command of another context's included, so every aggregate's row now marks body.command (events.body.command) confidential. A service's dataset that reads one of those document columns is refused, and the node does not start, naming the dataset and the column; one that joins later is refused as it joins. The analytics catalog protects a column from body, or from a value under body.command, as confidential. The sink rewrites its rows at its first check after the upgrade, and the mark covers the rows the warehouse already holds. To read an event's values, select them in a view of your own and declare the dataset over it with "lineage": "none" (Datasets).
A recursive type holds no sensitive value. A value is masked by its path, and no path reaches one below a recursive reference: a state, an event or a command holding a recursive type (a tree whose children are trees, a sealed expression whose alternatives hold expressions) with a @Sensitive value in it answered that value raw at every depth but the first, in every read, on the published stream and in the state view cache. The build now stops on such a type, naming the payload, the cycle of types and the value; a node that meets one in a Manifest another build wrote fails that type's masked reads, its snapshot schema and its sink rather than answer it raw, and a peer's command of such a type is answered null in the schedules that hold it, read and published, as a command the node holds no schema of: no read fails, nor the node. Hold the tree flat, its nodes in a list or a map keyed by id, each naming its parent, or keep the sensitive value out of the recursive type (Queries).
A masked read answers only what its schema declares. A state read, a snapshot query, an events query's bodies and a scheduled command no longer answer a property of a class that the node's schema does not declare:
- during a rolling upgrade, a property a newer version added, which an older node now leaves out;
- a property a class no longer has, which earlier snapshots and events still hold.
A map's entries and a free object's properties are answered as stored, and what the sinks publish does not change. A field a newer version newly marks @Sensitive, which the older version already declares, is answered by the older nodes as their schema says until they are gone (Where masking stops). A class with @JsonAnyGetter or @JsonAppend is described as open (additionalProperties: true). Record the Manifest baseline again (updateWowManifestBaseline): the gate sees no breaking change, and the generated TypeScript type gains an index signature. A hand-written schema of a value its serializer writes more of than its properties adds additionalProperties (Manifest Format).
The view store service refuses a user's share of a personal view (ShareView) without view-store.shared-writer, 403 wow.auth.forbidden, where it took it from any user and published the view to the tenant's shared list (Storage). Creating a shared view and claiming one needed the role already. Grant it to whoever shares their views, and answer the front end's permissions.changeAudience by it, as @ahoo-wang/wow-view-store's README says.
ViewStoreContext.APP_ID_HEADER is removed. The constant named CoSec-App-Id, the request header a CoSec 7 client declared its application in. CoSec 8 does not read it and the view store never took the application from it: the application is the one of the caller's CoSec scope. Delete any reference to the constant, and stop sending the header.
A dataset is held to the sink table it reads. A dataset file over a table or view the ClickHouse sink writes is refused at start, naming what to declare, when it contradicts the table:
"tenantless": true, or a tenant column other thantenant_id;"lineage": "none"over a table holding a value the state marks@Sensitive;- a binding of the table's aggregate by another id column than
aggregate_id; - over the table of an aggregate read through an access policy (one with a policy among the service's, or whose Manifest declares access attributes), no
scope.accessor another aggregate's.
Declare the tenant column, declare "lineage": "source" (the default), and bind the table's aggregate with "id": "aggregate_id", served by a node that hosts it. The node checks only where its dataset backend reads the sink's tables from the Manifest: without a Manifest, or with dataset bindings of the application's own, it logs once that such datasets are served unchecked. A dataset over any other table is unchanged.
HTTP and problems
A service route's body is JSON, read as a command's is (JSON Values), and a route checks its request's types before its handler runs (Service Routes). A body sent as another type than application/json or application/<name>+json, such as text/plain, is answered 415, and so is one that names no Content-Type. A body that gives a property twice, or a property the route's request type does not have, is 400 wow.route.malformed, where the last value was kept or the property ignored. A request whose Accept takes no JSON, such as text/html alone, is 406; a wildcard is answered JSON, as before. Check your routes' clients: the likely one is a front end that posts a whole form object, with fields the request type lacks. Have it send the request's properties alone, or give the request type the properties it sends.
A command's event stream (Accept: text/event-stream) answers 200 once the command is accepted, and each hop its plan names is an event as it is reached (HTTP API). A refusal before the acceptance is the problem it was. After it, a wait that times out before the first hop its plan names is no longer answered 504 wow.wait.timeout: it is the stream's last event, FAILED with wow.wait.timeout at the last hop reached, accepted when the command had not settled. An execution that fails after the acceptance is no longer a 503 or 500 problem, or a connection cut once events were sent: it is a last event FAILED at committed, with wow.storage.unavailable or wow.command.unknown, and a retry with the same Wow-Request-Id is safe. A client that took a status other than 200 as the stream's outcome reads its last event's result instead. The stream also carries a comment, : keep-alive, at once and every 15 seconds, which a reader of server-sent events skips, and ends with one more event after the last result, end {"reason":"complete","resumable":false}, the shape of a streamed list's end: a reader that took every event as a result skips end, and takes a stream that ends without it as an unknown outcome. A service and the readers of its command streams go up together: a client of an earlier version reads end as a result (the Kotlin client fails the stream as wow.command.unknown, the TypeScript one emits it as a last result), and a client of this version against an earlier service gets no end and ends every stream as wow.command.unknown. The OpenAPI document lists end among the stream's events, and gives an aggregate ref's id as a string or null: null in the result of a creation refused before admission chose its id.
A body with no Content-Type is 415. A command, a query, a service route that takes a body and an operator's route answered a body sent with no Content-Type as JSON; they now refuse it 415, as they refuse one of another type, since a browser sends a cross-site body without a preflight with no type as well as with a simple one. Send Content-Type: application/json with every body: Wow's Kotlin and TypeScript clients do, and so does curl with -H 'Content-Type: application/json'. A request with no body needs none, but for a POST to a command or a service route, which takes the type with no body too (Cross-site requests).
A command route now refuses any query parameter, on the public and the internal port: 400 wow.request.malformed, naming it, and the command does not run. A command reads its body and its headers alone, and a parameter used to be dropped without a word. The case most likely to meet it is a client, or a proxy in front of the service, that appends a parameter of its own to a command's URL, such as a cache-buster or a request signature. Send that value as a header instead, or have the gateway strip it before it forwards the request. A service route likewise refuses a query parameter it does not declare, or a declared one given twice: 400 wow.route.malformed, naming it, where the first value used to be read and the rest dropped.
A path segment that ends in a bare ; (c-1;) is 400 wow.request.malformed, where it was routed to c-1. A Wow-Wait plan longer than 4,096 characters is refused before any of its hops is read; 32 hops was already its bound.
The internal port's call routes now refuse a path with matrix parameters, as the public port does: a call to /shop/cart/c-1;x=1/add-item is answered 400 wow.request.malformed. A Wow client is not affected.
A Wow-Scope header that does not parse (a member given twice, a member with no value, several tenants on a route other than a query's) is now answered 400 wow.request.malformed on every route. Before, it was wow.command.malformed on a command, wow.query.malformed on a read or a dataset route, and wow.route.malformed on a service route. What a well-formed Wow-Scope names and the type refuses keeps its route's code. A client that matched one of the old codes for this header matches wow.request.malformed.
The request ids Wow gives its own commands start with wow:: a timer's (wow:<timer>#<slot>), a saga's derived commands and compensations, the calls a decide function sends, and the ledger's records. No caller's request id may: a Wow-Request-Id (or CoSec-Request-Id, or an in-process CommandRequest.requestId) that starts with wow: is refused as 400 wow.command.malformed. Otherwise anyone could commit first under an id the framework will send, which settles the framework's command. Before the rollout says what the new ids ask of the update.
A request body that stalls, with nothing of it arriving for 30 seconds, is now answered 408 and its connection closed, on the public port and the internal port. So is a body still arriving after its request was answered (a 401, a 404) that stalls as long. wow.http.read-timeout sets the bound. It times the gap between two reads, not the whole request: an upload that keeps sending is not cut however long it takes, and neither is an answer, a query stream or a wait. A client that must pause its body for longer raises the key on the service. The timeout counts the time nothing of the body is read, whoever stops the reads: an application's own route that reads its body as a stream and asks for none of it for 30 seconds (subscribing late, pausing between pieces) is answered 408 too, while its client is still sending; raise the key, or read the body without pausing. A client that hangs up mid-request is no longer logged as an unexpected error. Over HTTP/1.1, a client still sending when its 408 is written reads it rather than a reset: the server shuts its side of the connection down and reads and discards what the client still sends, for at most 5 seconds, before it closes, as after a 413.
The public port no longer serves the Manifest by default. GET /wow/manifest answers 404 on the public port unless wow.http.manifest.enabled: true; the internal port serves it to the cluster's services as before, and GET /wow/openapi stays on. The analytics catalog reads the owning services' Manifests from their internal ports (wow.peer.mode: service, the default; with user, each owning service sets the key). A TypeScript CommandClient given no Manifest, and the generator pointed at a service's URL, still read GET /wow/manifest: give them the generated Manifest or manifest/baseline.json, or set the key on the service. The eShop's end-to-end harness reads the internal port.
A state read and a query model's or a dataset's descriptor, the answers Wow tags with an ETag, now carry Cache-Control: private, no-cache, their 304 too. A shared cache in front of a service (a CDN, a caching proxy) stores none of them, since each depends on its caller. A client's own cache keeps them and revalidates with If-None-Match, a 304 when nothing changed. A deployment that cached state reads at its gateway stops doing so; it was answering one caller with another's.
A rejection's or a service route refusal's extension named like a member of the problem (type, title, status, detail, code, retry, violations, result, version, instance) is never written, even on a problem without that member. Nor is one named requestId, traceId or errors, which Wow keeps for members of its own. A domain that used one of these names renames the extension. The command's result still carries it as written.
A wow.storage.unavailable problem on the operator's parked-entry routes (/wow/ops/parked/…) and on the internal port's peer reads is titled "Storage unavailable", the code's title everywhere else, where it was "Service Unavailable". Its code, status, detail and Retry-After are unchanged, and a client keys on the code. The OpenAPI document now lists 414 and 431 on every operation, the server's own refusals of a request line or headers past its limits, and declares the <context> tag its service routes carry: a client generated from it gains those two responses.
The OpenAPI document a running service serves now lists what its host adds to the routes:
- the headers
wow.http.request-factsnames, and an integration's request id header besideWow-Request-Id(CoSec-Request-Id), as parameters of every command; - with CoSec on, its 429
wow.request.rate-limitedand 503wow.auth.unavailableon every operation.
A client generated from the document sees those headers and statuses. The document a build writes is unchanged. OpenApiOptions takes three more constructor parameters; a call that names its arguments is unchanged.
A job command's route ends in its system name. The job commands of a context move from POST /<context>/wow.schedule/{id}/enable-job (and reschedule-job, disable-job) to POST /<context>/schedule/{id}/wow.schedule.enable-job, .../wow.schedule.reschedule-job and .../wow.schedule.disable-job, as an aggregate's lifecycle commands end in wow.lifecycle.*. The old path answers 404, as any path no route takes. A client that sends them by the Manifest's routes needs nothing; regenerate a generated TypeScript client, and correct a path written by hand. A gateway or authorization rule that matches /<context>/wow.schedule/** matches nothing now: match the last segment, wow.schedule.*. CoSec policies are unchanged, since their actions name the command. A service whose context has jobs records the three moved routes in its Manifest baseline with updateWowManifestBaseline, and may no longer declare a service route whose first segment is schedule. Within the baseline's line the update refuses the three moved routes, each a route removed: run ./gradlew updateWowManifestBaseline -Pwow.manifest.allowBreaking once, which records them within the line and logs them in build/wow/manifest-baseline.txt, then review and commit the baseline (a service on a pre-release of its major's first version, such as 1.0.0-beta.1, records them without the flag).
The analytics catalog no longer relays an internal command (@InternalCommand) of the service a dataset row refers to: a row offers none, and a request to send one is 400 wow.command.unhandled, where the catalog sent it to that service's internal port, which served it. A direct call of an internal command is 404 on the service's public port, and the relay is no way around that. A console or a script that sent one through the catalog sends it from the service that owns the command, or the command is made public.
The park webhook's at is epoch milliseconds. Wow's JSON (wow.ops.webhook.format: generic) writes at, when the entry parked or spent its retries, as a number of epoch milliseconds, as it writes every time in entry, where it wrote an ISO-8601 string ("2023-11-14T22:13:20Z"). A receiver that reads at reads a number; while a service's nodes roll it receives both shapes, so it accepts both until the last node of the earlier version is gone. The Markdown summary, text, and the WeCom format still write the time for people.
The Manifest and the build
The Manifest names no Kotlin view. A state in the Manifest is its schema and its fingerprint; state.view, the binary name of the generated <State>View, is no longer in the Manifest, its JSON Schema, the OpenAPI document or @ahoo-wang/wow-client's StateManifest. An api module's contract jar lists its views instead, in META-INF/wow/state-views.txt beside META-INF/wow/contract.json, and wow-cocache reads that list. Rebuild every api module with this version: a contract jar of an earlier beta has no list, so wow-cocache gives none of its views a StateViewCache. A shaded jar concatenates the lists, as it merges the contracts.
A marker of requires may stand on a context or an aggregate. A Manifest lists in requires what a reader must understand to read it as it means. A marker may now stand on a context or an aggregate, for that part alone, as well as on the whole Manifest. A reader that does not understand one refuses the whole Manifest and names where it stands: the JVM's reader (the host, the build, a peer's contract), @ahoo-wang/wow-client's checkManifest and the TypeScript generator. A peer's contract and a generated client's routing part keep the markers of what they keep. checkWowManifest takes a marker added, at any level, for a break. A reader of an earlier version ignores a marker on a context or an aggregate: such markers protect from this version on, which is why they land before the API freeze. Format 1 defines no marker yet, so no Manifest changes now.
A name or a rejection code no identifier can be taken from is refused at build time. Every name of a model, an aggregate's, a command's, an event's, a processor's and a handler's, written with @Name or taken from the class or the function, is a letter followed by letters, digits, _ and - ([A-Za-z][A-Za-z0-9_-]*). A rejection code (@ErrorCode) is segments joined by dots, each a letter or a digit followed by letters, digits, _ and -. The compiler refuses any other at its declaration, the kernel's model DSL refuses it when the model is built, and generateWowContract and wow-generator refuse a Manifest that holds one, naming the entry. They also refuse two aggregates of a context whose names give one generated name (order-item and order_item), and generateWowContract two commands of an aggregate whose names give one constant (PlaceOrder and place-order). What to do: write a @Name of that form on the declaration the message names, or correct the code; for two names of one identifier, name one of them otherwise with @Name. A service's parameter is still qualified by @DependencyName, not @Name.
Two rejection codes of one constant, and names apart only by case, are refused when the contract is generated. Two rejection codes whose names give the same constant of an Errors, such as invalid-item and invalid_item (both INVALID_ITEM), used to leave the second code without a constant; generateWowContract and wow-generator now refuse them, naming both codes: give one of them another code. Two aggregates of a context whose generated names differ only by case, such as orderItem and orderitem, are refused too, where the two are files that macOS and Windows keep as one: the Kotlin contract's objects (class files) and state views, and the TypeScript client's directories, which are the aggregates' and contexts' names. Name one of them otherwise with @Name. Two contexts that share a contract package and whose states have one class name are refused as well, since their views would be one file: rename one state class, or give each context a contract package of its own.
The Manifest's JSON Schema holds names and error codes to their grammars. META-INF/wow/manifest.schema.json, and the OpenAPI document's wow.Manifest, now carry patterns for an aggregate's, a command's, an event's and a subscription's name and for a context's error codes. They are the rules the Wow compiler and both contract generators already applied, so a Manifest Wow writes stays valid. Guide › The Manifest and Compatibility gives every grammar of the format: names, codes, $defs keys and a nullable reference.
The compatibility check: a renamed state field breaks with @QueryAlias too, job commands are compared, and a route parameter that accepts more is additive. checkWowManifest now takes a state field renamed with @QueryAlias for a break: the alias keeps queries that name the old path, while stored snapshots, the snapshot query's answers and the published stream carry the new name. Keep the old field until its readers have moved, or rename with the service's next major. A context's schedule job commands (wow.schedule.EnableJob, RescheduleJob, DisableJob) are compared as an aggregate's commands are; a baseline recorded before a context ran a job reports them as additive once, so run updateWowManifestBaseline. A service route's parameter is compared as an input, as the route's body is: a number widened or an enum value added no longer fails the check, while a narrowed one still does. A path variable renamed, or two that trade places, still fail it, each now reported as such: a client that fills the path by name (ServiceRoutes.call of @ahoo-wang/wow-client) and the OpenAPI document use a variable's name.
A Manifest names the commands a saga sends by their wire names. A service's Manifest listed a command of another context that a saga derives, calls or takes the receipts of by its class (#/$defs/<binary name>) and kept its schema. It now lists the command's name on the wire, <context>.<aggregate>.<Command>, as the other context's contract on the class path gives it, or a system command's name (wow.lifecycle.TransferOwner), and leaves the schema to the context that decides the command. checkWowManifest compares these names: a peer that moves a command's class changes nothing, and a command renamed on the wire is one removed and one added. It reads the peer contracts on the build's class path for the aliases their commands keep, so a peer's rename that keeps the old name as an @Alias is no break, and for the name of a command a recorded baseline still lists by its class. After upgrading, the check asks once for the baseline to record the names: run updateWowManifestBaseline, which records them within the line.
@Summary and @Description document a property, and a summary is a schema's title. On a property, @Summary is the title of its schema in the Manifest and @Description its description; they stand on a Kotlin property, on its field (@field:Summary), on a Java field or on a record's component. On a class, @Summary is now the type schema's title and no longer its description when the class has no other description. The generated TypeScript client and the OpenAPI document carry both. Regenerate the service's baseline (updateWowManifestBaseline) and its clients: the compatibility check reports no change for wording, and no snapshot is rebuilt. A client generated by an older wow-generator reads description alone and shows no summary. Code that migrated from swagger's @Schema(title = …, description = …) can declare @Summary and @Description in its place.
Swagger's @Schema titles and descriptions are read. A service that documents its classes and properties with io.swagger.v3.oas.annotations.media.Schema, as a 9.x service does, has those words in its Manifest and its generated client again: a @Schema's title is read as the summary and its description as the description of the class or property it stands on, wherever Wow's own @Summary or @Description is absent. Nothing needs rewriting. Only these two attributes are read: name, hidden, requiredMode, nullable and the rest change nothing, and no other swagger annotation is read. On a Kotlin property write @get:Schema, @field:Schema or a bare @Schema; a @Schema on an interface's property does not document the class that overrides it. Record the new baseline with updateWowManifestBaseline: the compatibility check reports no change for wording.
An unwrapped member's required names carry its prefix. A property with @JsonUnwrapped(prefix = …) or suffix listed its type's properties under the names Jackson writes (home_street), and its required under the type's own (street), which no body holds: a JSON Schema validator, the OpenAPI document's validation of a command's request and a generated client saw required properties that are never there. Both now carry the prefix and the suffix. A service whose Manifest baseline holds such a property records it again: within the baseline's line the update refuses each as a field made required, so run ./gradlew updateWowManifestBaseline -Pwow.manifest.allowBreaking once, which records them and logs them in build/wow/manifest-baseline.txt, then review and commit the baseline (a service on a pre-release of its major's first version, such as 1.0.0-beta.1, records them without the flag), and regenerate its TypeScript client.
An unwrapped member with a prefix or suffix around one of its type's own stops the build. For a @JsonUnwrapped member with a prefix or a suffix whose type unwraps a member of its own, Jackson writes the inner member's properties without the outer prefix or suffix and reads them with it. A snapshot of such a state was refused and its log replayed, an event's body did not read, or read a nullable value as null, and a command written by Jackson (forwarded to another node, scheduled, or sent by the Kotlin client) was refused; the schema described what is read, not what was stored, mask paths included. The build now stops on such a state, event or command, naming the member and the one its type unwraps. Put the prefix or suffix on the inner member alone, or hold the inner value as a property (The Manifest).
A service route's response with an unwrapped member around one of its type's own stops the build. Jackson writes such a member's inner properties without the outer prefix or suffix, so a route's response of that shape was sent with names its schema, the OpenAPI document and a generated client did not describe. The build now stops on it, as on a state, an event or a command of that shape, naming the member and the one its type unwraps; a route's request, read by the names its schema gives, is described as before. Put the prefix or suffix on the inner member alone, or hold the inner value as a property (The Manifest).
A @Sensitive value in a value type's shapes is marked, so masked. The generator left these shapes unmarked, so every read, the published stream and the state view cache answered them raw: a property of a value class's type marked on its getter (@get:Sensitive val phone: PhoneNumber: its own, an interface's or a superclass's, also overriding a generic member); a value class marked on its own property, on a getter that property overrides or through an annotation class, and a type marked on its @JsonValue member, its own or an interface's getter; a value type whose member holds a sensitive one in a container (value class Codes(val items: List<Code>)); and a sensitive value type held through a type parameter (Page<PhoneNumber>), a Java field's generics, an Optional or a Sequence. Each is now marked as a plain property is: checkWowManifest reports each such property as a breaking change against a baseline recorded before, and its value is masked from then on. Record the baseline again with updateWowManifestBaseline (The compatibility check). The build now stops, naming the declaration, on: a value type, or its member, that declares a looser level than the sensitive type it wraps or than a getter it overrides; a property that declares a looser level than its value type, now that the type is found sensitive; a value class and its property that declare different sensitivities, or a property that declares several; a @Sensitive on a member a value type is not written by; a generic value type that holds a sensitive one through its type parameter; a class that is no value type and carries @Sensitive, directly or through an annotation class, wherever it is now reached; and a member's mask with a negative count or a strategy that cannot be built. The annotations of a getter of a value class's type are now read, so @get:QueryText, @get:QueryIndex, @get:QueryAlias and a getter's semantic type meet the checks they meet on any other property (Queries).
A @Sensitive value no read can mask stops the build. Four shapes passed the build: a sensitive value written as no string (a value class over a number), a list of maps of sensitive values, alternatives of one type (a sealed type's subtypes) that mask one path by two rules, and a sensitive value type as a map's key. The first three made every masked read of their payload, its published stream and its state view cache fail; the key was answered raw. The build now refuses each, naming the payload and the path or the property: hold the value as a string, alone, in a list, as a map's values or in an Optional; let the alternatives agree on each path; key the map by a value that is not sensitive, or hold its entries as a list of objects (Queries).
Kotlin API
A saga that sends several commands of one type to one target from one handling gives each a CommandRequest.requestId, a business key such as the item it is about; a handler of each event needs keys only for several from one call (Several commands to one target). Without them the handling fails as the saga's own mistake, and its aggregate parks with a message that names the handler, the command type and the target. Run the domain's sagaSpec and scheduleSpec tests on this version before the upgrade, knowing that a spec shows it only when it covers a handling that sends several, which may hang on the data: the eShop's delivery job sends two receipts to one stock only on a tick whose feed lists two deliveries of one product, such as one that catches up missed mornings. A handler that calls several such commands made its first call before the second was refused, so once keys are added that first command runs again under its key: fix such a saga before the upgrade, not after it parks. A deployment that carried its stores over all the same finds that the ids a handler of each event derives changed, so a commit handled before the upgrade and redelivered after it sends its commands once more. Before such an upgrade, follow Before the rollout.
A decide function's call that stands but asks something else when the command is decided again on a newer state (another target, command type or body at the same place) now fails the command with wow.command.failed, where it was answered with the first call's commit: undo such a call and take scope.attemptKey(), or give it a business request id. A decide function that undoes a Wow call in onAppendFailure, or voids a third-party act keyed on scope.command.requestId, keys that act with scope.attemptKey(): CommandRequest.requestId = scope.attemptKey(), or the third party's idempotency key. Without it, the next attempt or a caller's retry is answered with the act that was undone (Undo an outside act).
A decide function that returns a Mono or a Flux and calls a Wow client inside mono { … } or flux { … }, or a @Blocking one that calls it inside runBlocking { … }, now sends each call that stands under the request id derived from the deciding request, as a suspending decide function does: a call decided again is answered as a repeat instead of running again, and a call decided again that asks something else fails the command (wow.command.failed). Undo a call that may change in onAppendFailure with attemptKey(), or give it a business request id.
An after hook (@AfterCommand, afterCommand) that calls reject(...), or whose require or check fails, now rejects the command with that code, writing nothing and running the attempt's compensations, where it failed the command with wow.command.failed. A saga handler that sends, schedules, cancels or calls a command whose target's id it drew from context.ids in the same handling now fails unrecoverable and parks the aggregate; name the target by an id computed from the commit (the source aggregate's id, a business key of the event), or derive the creation without an id and send the commands that follow it from the @OnCommitted handler of its receipt. An id drawn into a command's body is not affected.
A node refuses to start with a local handler of every event of a type that no aggregate of its context has, a peer source it cannot resolve, and a subscription of several events of one peer aggregate reads that aggregate. A handler that names its own context's aggregates in @OnEvent(aggregates) reads those alone, and one that names an aggregate its context lacks refuses the start. An @OnSchedule job in a class of no processor kind fails the compilation, where it compiled and never ran.
A library's IllegalArgumentException in decide is a rejection. Guide › Rejections now says so: a library that throws IllegalArgumentException itself refuses the command as require does, with its message, and one call may answer either a rejection or a failure by the value (UUID.fromString). Check a state's value before handing it to a library.
CommandRequest.id is aggregateId (the builder's aggregateId(...), the aggregateId parameter of toCommandRequest, send, wait, stream, call and schedule), and a request names its target tenant and scope in one field, targetScope: TargetScope?: targetScope(TargetScope.of(tenant, scope)), or targetTenant(tenant) alone. A target that names only a tenant acts there in the caller's own scope on every path; the node's own command client acted in no scope, so name Scope.NONE where that is meant. An id and a ref are two overloads now, so a call naming both no longer compiles. TargetScope.scope may be null (the sender's own), ServerCommandRequest.target and QueryCaller.target are targetScope, the enum me.ahoo.wow.api.problem.Retry is RetryAdvice (its wire spellings unchanged), Problem.retryAfter is a Duration, CommandTarget.of takes the body before the aggregate id, Origin takes the service first, and the test DSL's EventEnvelope and the test server's PeerCall carry the aggregate's ref.
The sort and projection DSLs name fields under a path with "state".path { }, as filters do; nested(...) is removed. beforeNow and afterNow take a kotlin.time.Duration. @QueryReference's members are aggregate and context, and the Manifest's x-wow-reference carries aggregate and context: rebuild to regenerate it. A backend implementing the query SPI renames SnapshotQueries and EventQueries to SnapshotStoreQueries and EventStoreQueries, and a QueryError reads message and violations. A read a ReadAuthorizer refuses answers the authorizer's problem with no violations. The query codes only an aggregation query gives are experimental with it.
Every public declaration of wow-spi and wow-query now says its level. Most are @WowSpi: a backend's, which a minor release may change and which asks for @OptIn(WowSpi::class), as do the TCK suites; the rest are @InternalWowApi, Wow's own, among them QueryGateway, HttpQueries, KernelOptions, ManifestMerger and ManifestFragment. Build a ContractDirectory of a Manifest with ContractDirectory.of. WowJson, ReadAuthorizer, MaskStrategyResolver and QueryCountCache stay application API.
A few declarations no application needs left the public API: wow-client's ClientMode, HttpCommandClient and HttpQueryApi (use WowClient's builder), the test DSL's spec constructors (use aggregateSpec, sagaSpec, scheduleSpec), JobState's setters, the TCK suites' constants (TAIL_TIMEOUT_MS is tailTimeout), and, now internal to Wow, CommandWire, CallerWire, ReplyTo, EnvelopeCodec (the protocol page is the contract of a command topic) and WowHttpContract. ServerCommandRequest is built with of, its facts named: ServerCommandRequest.of(command, ref, caller = caller, wait = plan). WowContainers' image tags are no longer constants.
More declarations are internal to Wow. The Kafka transport's parts, KafkaPartitionedSource, KafkaTopicAdmin, KafkaTopicProducer and KafkaOptions, are @InternalWowApi, and TopicDurability is internal to wow-kafka: KafkaTransportProvider, its options and OffsetGapPolicy stay public, and the transport is configured under wow.kafka.* (Kafka). WaitSignal, CommandRoutes.JOBS and SystemCommands.JOBS, and the host's @Bean methods that were still public (wowJsonMapper, wowObserver, wowOtelQueryObserver, wowParkedMetrics, wowTracingTopicProducers, wowDataSource, wowMongoClient, wowMongoPoolGauge, wowTopicProducer, wowPartitionedSource, wowTopicAdmin) are internal too: the beans keep their names, so an application's own bean still takes a bean's place as before. The Gradle plugin's WowPlugin.CONTRACT_ATTRIBUTE and WowPlugin.version are internal to the plugin. LedgerRequest, the operator's request a parked entry carries in the ledger, is at the SPI's level (@OptIn(WowSpi::class)), as the ledger's records that hold it are.
A few names follow their siblings. ScopeHeader.QueryTarget.target is targetScope. ScheduleTick.of and JobTicked.of take slot, due, skipped, the order of ScheduleContext.of: all three are Long, so a positional call compiles unchanged with its last two values swapped; name them (ScheduleTick.of(tenant, job, slot, due = due, skipped = skipped)). TopicTransportOptions.PARTITION_REFRESH is PARTITION_REFRESH_INTERVAL, as ServiceNodeOptions names it; the key topics.partition-refresh-interval is unchanged. wow-models' DEPARTMENT_CODE_DELIMITER is TreeCoded.CODE_DELIMITER. NamedCommand.target, the name of the aggregate type, is aggregateType. QueryModel.from is QueryModel.of. A ReadAuthorizer reads ReadAction.operation and ReadAction.entry without opting in: their types, QueryType and QueryEntry, are application API, no longer at the SPI's level. The extensions' @Bean methods are internal to Wow too, as the host's are, and keep their beans' names: wow-cosid's wowCosIdAggregateIdGenerator, wow-cocache's wowStateViewCaches, wowCoCacheSinks and wowStateViewCacheRegistrar, wow-spring-cloud's wowSpringCloudPeerDiscovery, wowRegistrationMetadata and wowSpringCloudDiscoveryHint; so is wow-cocache's WowCoCacheProperties, whose keys, wow.cocache.*, are unchanged.
An event's data is body in Kotlin too, as in the log, the published stream and the events queries: PublishedEvent.payload is body, and so are the SPI's EventRecord.payload and StateEventPayload.payload, with the parameters of their of factories (PublishedEvent.of(name, revision, body)). A handler that reads a PublishedEvent's JSON reads event.body; a backend reads and writes record.body. Nothing stored or sent changes: the field is body there already.
A ParkedNotifier reads a ParkedNotice's own properties: ref, subscription, fromVersion, reason, failedAt, retries, maxRetries and nextRetryAt. The ledger's records behind it, notice.entry and notice.spec, and ParkedNotice.of are now at the SPI's level (@OptIn(WowSpi::class)): a notifier that read notice.entry.reason reads notice.reason.
An application can now send a snapshot rebuild by its class and name its type in an authorizer: RebuildSnapshot.of(ids) and SnapshotRebuilds.REBUILD_SNAPSHOT (me.ahoo.wow.spi.snapshot), without opting in to internal API. A class that implements one of the SPI seams the host takes (GlobalIdGenerator, AggregateIdGenerator, FailureClassifier, Observer, CommandCaller, QueryObserver) opts in with @OptIn(WowSpi::class), as the Spring Boot guide now says.
The runtime's options are named as the configuration keys that set them: ClusterOptions.maxInFlightPerNode, SnapshotOptions.maintenanceInterval, rebuildPageSize, rebuildMaxPages, AccessStampOptions.stampBatch, TimerOptions.claimTtl, SourceTopics.partitionRefreshInterval (also SourceTopics.of's parameter), with their defaults. wow-cosid's CosIdProperties (WowCosIdProperties in the last pre-releases) is internal to the module; its key, wow.cosid.aggregate-generator, is unchanged. A backend's TCK test builds a stream it refuses with stream.withEvents(...).
This version runs springdoc-openapi 3.2.1, on swagger-core 3.0 and Jackson 3:
- Renamed artifacts. An application that declares swagger's artifacts itself renames them:
io.swagger.core.v3:swagger-annotations-jakarta,swagger-models-jakartaandswagger-core-jakartaareswagger-annotations,swagger-modelsandswagger-core, version 3.0.0, which springdoc's BOM manages. Code that changedJson.mapper()orJson31.mapper()customizes swagger's mappers withObjectMapperFactory.addCustomizerinstead: Jackson 3's mappers are immutable. - The application's own schemas. What springdoc derives from the application's classes may read otherwise. A getter that starts with an acronym keeps its case (
getETag()isETag, notetag); the non-null properties of a Kotlin class are listed asrequired; the parameter of a single public constructor that names no property is awriteOnlyproperty. A client generated from/v3/api-docssees these. The Wow routes' document is unchanged, in/v3/api-docsas inGET /wow/openapi. - Jackson. swagger-core 3 asks for Jackson 3.2, above the 3.1 Spring Boot 4.2.0 manages, and a Gradle build that imports Boot's BOM with
platform(...)resolves 3.2 where springdoc is on the class path. Wow's JSON runs on both; Jackson says what the build and the start check, and how to keep one Jackson.
The wow-spring-cloud extension runs on CoSky 8.0.0, CoSky's release (Spring Cloud). A service on CoSky 8.0.0-rc.3 moves to 8.0.0 as a drop-in: CoSky changed no code since rc.3.
TypeScript packages
The TypeScript clients wow-generator writes name an error code's constant as the Kotlin contract does (Generate a Client). A code whose words split otherwise, whose local name starts with a digit, or that does not start with its context's name takes another constant: invalidURLValue is INVALID_URL_VALUE where it was INVALID_URLVALUE, and the analytics catalog's ANALYTICS_CATALOG_DEFINITION_INVALID is ANALYTICS__CATALOG__DEFINITION_INVALID. A domain command Gateway is sent by gateway, where it was gatewayCommand, and a command whose method by no id another command's name takes is renamed with Command rather than that method alone. Generate the clients again and rename what your code refers to; code that compares a problem's code with the code's text, or with <Context>ErrorCode, changes nothing.
wow-generator: names as the Kotlin contract's, collisions refused, idSource in every descriptor. Regenerate the clients (src/generated/) with this version: every <Aggregate>Aggregate descriptor now writes idSource ('assigned' included). A Manifest name with an upper-case run is spelled as the Kotlin contract spells it (orderID is OrderID, a command CreateURLShortcut's method createURLShortcut). A Manifest two of whose names give one generated name in a context (order-item and order_item, or a context order-command holding an aggregate order) is refused with exit 4, naming both: rename one with @Name.
wow-generator: the generated clients' names follow Kotlin's, and the generator never guesses a value it does not know. Regenerate every client with this version.
- A command client sends through
commandswhere it hadclient. - A context's wait hops are
<Context>Contract.Wait(EshopCatalogContract.Wait.committed()) where they wereeshopCatalogWait. - An aggregate's descriptor has no
path, and its command marks are keyed by full name. - A lifecycle body is wow-client's
TransferOwnerorTransferSpace. - A service route's method is camel-cased, as a command's is.
- A command body of no properties is
Record<string, never>. <Aggregate>StateFieldholds the paths the Kotlin contract names.- An aggregate, command or service route with a value the generator does not know (a newer Wow's) is left out, with a warning; generate with a newer generator.
wow-generator: no tsconfig option, line ends that do not matter, and wow-client an optional peer.
- Drop
-t/--ts-config-file-pathfrom thegeneratecommand andtsConfigFilePathfromGeneratorOptions: the output never depended on them, and the CLI now refuses the option. - A checkout that converts line ends (
core.autocrlf) no longer fails--check. - A regeneration removes the directories that removing old files leaves empty.
- A Manifest run warns when the configuration sets
apiClients, which it never read. @ahoo-wang/wow-clientis an optional peer of the generator.
TypeScript packages: fetcher 8 accepted. Wow's TypeScript packages accept fetcher ^5.1.5 || ^6.0.0 || ^8.0.0-rc.1 (@ahoo-wang/fetcher, fetcher-decorator, fetcher-eventstream). An application may move to fetcher 8 with them, from its first release candidate on, or stay on 5.1.5 or later, or on 6.x. Fetcher 8 removes fetcher-cosec and fetcher-react's security hooks. An application that used them takes CoSec's own packages (@ahoo-wang/cosec-fetcher, @ahoo-wang/cosec-react).
The TypeScript client states every wait plan's timeout. A command sent with a wait and no within() or timeout, and a send without timeout, now states 10 seconds as Wow-Wait-Timeout, as the Kotlin client always has, and is answered 504 wow.wait.timeout past it; give such a plan the wait it needs, or send without a plan to keep the service's default. A request's headers may no longer carry a header the client writes itself (Wow-Request-Id, Wow-Wait, Wow-Wait-Timeout, Wow-Scope, Wow-Space, If-Match, If-None-Match, Last-Event-ID): set the request's own field instead.
wow-client: Kotlin's names for the hops, the resume options and the retry type, one name for the exact-number marks, and fewer exports.
- Build a wait chain's hops with
Hop.committed()(andaccepted,snapshot,queryable,handled) wherewait.committed()was. - A stream's
resumetakesmaxAttempts(the first request included, somaxRetries: nismaxAttempts: n + 1),backoffMsandmaxRetryAfterMs. - A hand-written
CommandClienttakes its marks astextNumbers, where it tookbodyNumbers. A dataset's marks aredataset(context, dataset, textNumbers).textNumberOristextNumbersOr. - Import
CountQueryandCountResultfrom@ahoo-wang/wow-client/dsl. - The type
RetryisRetryAdvice. StateReadOptionstakes one ofversion,atandminVersion.QueryViolationextendsViolation.- These are no longer exported:
DEFAULT_RETRY,checkManifest,queryPath, the clients'clientmember, andStateClient's protected readers. - Regenerate the generated clients with this version: their hop builders and command options use the new names.
wow-client: Kotlin's names for the query bodies and the command's target, and fewer exports.
- Rename
FilterListQuery,FilterSingleQueryandFilterQueryabletoListQuery,SingleQueryandQueryable, andFilterPagedQuerytoPagedQuery, which is now the one paged body (pagination?,total?);pagedQuery()takestotal. - A command names the scope it acts in with one
targetScope: { tenantId?, ownerId?, spaceId? }, as Kotlin'sCommandRequest.targetScopedoes: movetargetTenant: 't'into it (targetScope: { tenantId: 't', … }). CursorPage'slistandnextCursorarereadonly.- No longer exported:
pagedList(write thePagedListliteral),StreamEnd,StreamEndReason,FRAMEWORK_RETRIES,FrameworkRetry,FRAMEWORK_ERROR_PREFIX,PROBLEM_TYPE_PREFIX,parseRetryAfter(a problem'sretryandretryAfterMssay the same),DynamicDocument,DynamicDocumentArray(Record<string, unknown>),MAX_CURSOR_SIZE.@ahoo-wang/wow-view-store'sdatasetCatalogOfis marked experimental, as the dataset queries it reads. - The requests are unchanged.
wow-client: a command request names its aggregate's id aggregateId.
- Rename
idtoaggregateIdin aCommandRequest(commands.wait({ command, body, aggregateId })) and in a generated creation method's options (createBrand(body, { aggregateId })). This matches Kotlin'sCommandRequest.aggregateId. - Regenerate the generated clients.
- A by-id method's positional
id, a state read's options and the HTTP requests are unchanged.
wow-client: the /dsl enums are as const tables, as the root entry's. Each enum of @ahoo-wang/wow-client/dsl (AggregationDatePart, AggregationDateUnit, AggregationExpressionOperator, AggregationExpressionType, AggregationFunction, AggregationGroupScope, AggregationGroupType, AggregationMetricType, ComparisonOperator, DateDiffUnit, DeletionState, DerivedExpressionType, FilterOperator, HavingExpressionType, PagingMode, QueryValueKind, RunningFunction, SearchMode, SensitivityLevel, SortDirection, StringComparison, TimeUnit, WindowFunction) is an object as const and a type of the same name, the union of its values, the way Stage and FunctionKind are written. A member reads as its value (FilterOperator.EQ is 'eq'), and a string literal is accepted where the type is asked.
- Write
typeofbefore a member named as a type:type: FilterOperator.EQistype: typeof FilterOperator.EQ; the compiler names each one. - Drop
as constafter a member,FilterOperator.EQ as const: a member is its literal already, and the compiler refuses the assertion (TS1355). - Code that reads members, compares or switches on them, or iterates a table with
Object.valuescompiles as it did. - The requests are unchanged.
TypeScript: a date field is filtered by days, and an exact key is sent as a number. The view engine sends a date field the store keeps as dates (temporal: { type: 'date' }) the days a condition covers, 2026-10-13, where it sent the instants of the viewer's midnights, which the service, reading a date at UTC, took for another day west of UTC and near the edges east of it. @ahoo-wang/wow-client's query clients write a filter operand on a field they read as exact text (an int64, bigint or decimal field) as the number it spells, where they sent a string the service refused (400 wow.query.value-mismatch): a record read or a drill on a key past 2^53 now answers. Nothing to change.
TypeScript: a query stream lost past its resumes, a terms key, and /testing's problems. A streamed query cut off, or whose connection is lost, past its resumes now rejects with a WowProblemError wow.peer.unavailable (the network's error its cause), as the Kotlin client's does, where it rejected with a TypeError or the network's error. An aggregation's terms key over a field the generated types say string of (int64, bigint, decimal) arrives as that string, so two groups past 2^53 stay apart. @ahoo-wang/wow-client/testing's problemOf and problemResponse build what a service writes: the catalog's retry and title, and Retry-After.
@ahoo-wang/wow-client bounds a command's whole answer by the wait it states and 5 seconds more, as the Kotlin client does, and one that states none by the client options' defaultWaitMs and 5 seconds more, a minute and 5 seconds when it is absent (Commands): a deployment whose services wait longer than a minute by default sets defaultWaitMs, or states each command's wait. Past the bound the request is aborted and the call rejects with wow.command.unknown, where a node gone silent used to hold it for good. A command whose answer or event stream is lost or unreadable after it began rejects the same way, where it rejected with the network's own error: a caller that retried only a WowProblemError whose retry allows it now retries these too, with the request id, which is safe. A command or a state read of the aggregate . or .. (or a state read of an empty id) is refused with a TypeError before it is sent, where the URL sent it to another route, and a resumed query stream answered with a Retry-After beyond resume.maxDelayMs (5 seconds by default) fails at once with that problem instead of waiting it out.
@ahoo-wang/wow-client sends Content-Type: application/json on every POST, with a body or without one, as a service requires (Cross-site requests): a service route called without a body (ServiceRoutes.call, or a generated <Context>Routes method of a route that takes none) went with no type, and the service refuses that 415. A DELETE without a body goes untyped, as before. Update the package; nothing else changes.
@ahoo-wang/wow-react's useCursorQuery hands a page's cursor only to the query, and the request options, whose page answered it (React): with autoExecute: false, fetchNext() after the query or the request options changed reads the first page of the query as it now is, where it read on from the old query's cursor and appended its page to the old rows. useStreamQuery's abort() keeps every row read before it, and the position of the last, where it kept only the rows already shown.
wow-react: problem is the problem body, StreamExecutor<Q, R>, and what ends a run. A hook's problem is the RFC 9457 body (Problem) the service answered with: its code, status, detail and violations. error is the WowProblemError itself, which still has the retry hint (retryAfterMs, retry). So code that read problem.retryAfterMs now reads error.retryAfterMs after checking error instanceof WowProblemError. StreamExecutor takes the query first, StreamExecutor<Q, R>. If the query or requestOptions changes while a request is in flight, that request is aborted, autoExecute or not. Only the run's own signal aborts a run: an AbortError from anywhere else, such as an executor's own timeout, makes the run fail. useCursorQuery gives hasMore: false while its controlled query is undefined.
@ahoo-wang/wow-view-store's WowViewStore throws a RangeError for a pageSize below 1, or not a whole number, where such a store listed views without end. It also sends a write's retry from where its first attempt went, so a save that landed is answered as the duplicate it is after the view moved. It writes a stored system view that changed and changed back at its version now, where it answered CONFLICT. And it refuses preferences at a revision it never issued as CONFLICT, where it answered UNAVAILABLE.
wow-view-store: wow-client's options, and no reserved scopes on the entry.
WowViewStoreOptionsandWowDatasetWordingsOptionsextend wow-client'sWowClientOptions. A gateway's prefix goes intobasePathinstead of a fetcher that rewrites URLs, and a service with longer default waits setsdefaultWaitMs. Their members arereadonly.SHARED_SCOPEandSYSTEM_SCOPEare no longer exported. Write theWow-Scopeyour own Wow client needs yourself:{ ownerId: '(shared)' }, or{ tenantId: '(platform)', ownerId: '(system)' }.WowDatasetWordings.setandclearrefuse a revision the store never issued asINVALIDbefore sending.
TypeScript view stores: INVALID for what a store never issued, the page bound, and fakes as the service. WowViewStore and MemoryViewStore refuse a revision or a list cursor they never issued as INVALID, where WowViewStore answered CONFLICT. WowViewStore pages the system views, so no list page holds more than pageSize. MemoryViewStore and memorySource of @ahoo-wang/wow-view-engine/testing answer as the services do: MemoryViewStore refuses a config, a definition id or preferences the view store service refuses and spends no revision on a write that changes nothing; memorySource refuses a cursor it never issued (wow.query.invalid, invalid-cursor) and answers total: 'none' with no total. A test that relied on the fakes' leniency changes with them.
MemoryViewStore reads a revision as WowViewStore does: a personal or shared view's revision and a preferences revision are counts ('0', '1', …), so a write at any other string, '01' included, is refused as INVALID, where it answered CONFLICT, and WowViewStore refuses '01', which it sent as version 1. A stored system view's revision stays opaque. A MemoryViewStore seeded with a personal or shared view, or preferences, at a revision that is no count throws a RangeError naming it: seed counts. WowViewStore.setPreferences answers what its write did when the read after it fails: a conflict is CONFLICT without the preferences, where it was UNAVAILABLE, and a write that landed without its version is answered at the version it expected moved on.
View store: a stored system board keeps the views it shows shared.
- Claiming a shared view (making it personal) is refused when a stored system dashboard shows it, as when a shared dashboard does:
409 view-store.referenced-by-shared-dashboard, the boards named inboards. MemoryViewStorerefuses it too, and no longer refuses one a configured system board shows, which the service never checked.- To make such a view personal, first remove it from the system board, or unpublish the board.
TypeScript view engine: MemoryViewStore refuses an aborted call. MemoryViewStore of @ahoo-wang/wow-view-engine refuses a call whose signal is already aborted as UNAVAILABLE, writing nothing, a retry under a request id it has seen included, as WowViewStore refuses a request it never sent. get and getPreferences now take the port's ReadOptions. A test that aborted a signal and still expected the call to answer changes with it. The view engine's documentation also says that React is pulled in by the UI's own dependencies even for a host of the root entry alone, that ViewEngine.create writes nothing to the store, what memorySource holds to the server and what it does not (query budgets, inexact totals), and that the shape of wow-view-engine theme-check --json is not part of the 10.0 promise.
wow-view-engine: the persisted summary and binding names, and names that say one thing.
- In stored configs, write a record summary's function as
function(it wasfn) and a dashboard panel binding's field asdashboardField(it wasglobalField). Nothing migrates a stored config: re-save each affected view, or rewrite its stored JSON. - In code:
/react'sViewListOptionsisUseViewListOptions.- The
ViewKind[]options and members areviewKinds. ViewEngineOptions.newIdisnewRequestId.- A query error's context says
code. CreateInput.scopeisaudience.- The workbench's board is
boardOrigin, andDashboardExtensionsOptions.boardisruntime. DashboardController.kindsisundefinedwithout a board.enandzhCNare typedReadonly<Record<MessageKey, string>>.
wow-view-engine: one shape per kernel and option, and Dashboard names.
- The compile and project kernels take a trailing options bag:
compileRecord(def, config, { kinds, context, page }),projectAnalysis(def, config, result, { totals, kinds, context, limits }). - Every
limitsoption takes a partialRuntimeLimits.validateDashboard'sdefinitionsislookup. actionHarness'snowis a clock (() => new Date(at)).fetchRecordand a value candidate source'ssearchtake{ signal }.- Renamed:
refusedScopeFilter,scopeFilterIssues,removeFixed,SummaryRow.over,RecordExportExtent;- the
Board…types areDashboard…, and the workbench'sboardOriginisdashboardOrigin; - a binding's
readingisdetail; DashboardWorkbenchtakesdefaultFiltersanddefaultTab;DatasetResourcesOptions,UseDatasetsOptions;RuntimeLimits.maxExportRowsandmaxListedViews;builtinFieldKindRegistry.
isRecordRuntimeaccepts any runtime, or none.
wow-view-engine: the names no host used leave the entries. The root entry, /react and /ui no longer export 156 names that only the package itself used: its parts, its internal hooks and helpers, and the types only they named. The release notes list them. A host that imported one has three ways out. It can compose the documented components and hooks instead. It can copy the few lines it needs. Or it can open an issue for the name, which then comes back with a reference page. Import ViewRouteOf from the root entry, not /ui. Tell a reference-label timeout apart with isReferenceLabelTimeoutError(error).
wow-view-engine: one word for each thing.
- The host's resolver for remote candidates is
ViewEngineOptions.optionSource(it wasresolveOptions), as the engine'sViewEngine.optionSourceis. - A date column's bucket still under way is
AnalysisColumnView.unfinished(it wasongoing). A metric card whose only period has not ended hasMetricPeriod.unfinished(it waspartial). /react:- read a view list again with
ViewListState.refresh(reload, withViewListRefreshOptions); destinationBoardisdestinationDashboard,toBoardistoDashboard, andSaveCommands.boardsisdashboards.
- read a view list again with
/ui:RecordViewPropsisRecordViewOptions,ExportWindowPropsisExportWindowOptions, andBUILT_IN_PRESETS/BuiltInPresetareBUILTIN_PRESETS/BuiltinPreset.
wow-view-engine: the review's last names, and four parts no host used leave /ui.
- Issue codes:
dashboard.binding.global-duplicateanddashboard.binding.global-unknownaredashboard.binding.dashboard-field-duplicateanddashboard.binding.dashboard-field-unknown, as the binding'sdashboardFieldis named; a store'sNOT_FOUNDis saidnot-foundin every code built from a store's failure (view.open.failed.not-found,view.write.not-found). A host that matches one of these codes, or words them in a catalogue of its own, renames it. RecordExportController.scopesisextents, and a run'sprogress.scopeandoutcome.scopeareextent.SummaryCell.fnandAnalysisColumnView.fnarefunction.AdmitFinding.definitionisdefinitionId.EmbeddedDashboard'sfilterModestakesDashboardGrid's shape,{ filters, grouping }: the modes by filter name move intofilters({ customer: 'locked' }is{ filters: { customer: 'locked' } }), andgroupingModeisfilterModes.grouping.MarkdownPanel's andContentPanel'sheadingLevelis aPanelHeadingLevel(2 to 6),defaultRecordConfiganddefaultAnalysisConfigtakePartial<RuntimeLimits>, andMAX_VIEW_TITLE_LENGTHis typednumber.- No longer exported from
/ui:WorkbenchShellandWorkbenchShellProps;NewAnalysisDialog,NewAnalysisDialogProps,NewAnalysisandFinalFocus;ChartImageSlot, withAnalysisChartProps.image; andCellField, which isDisplayField.DashboardExtensionsOptions.optionsForis written as its signature,optionsFor?(remote: string): FieldOption[] | undefined. - Stored views and configs are unchanged.
An unlabelled field is headed by its title. Where a view definition gives a field no label, the view engine now labels it by the field's title in the query descriptor (the @Summary the service declares on the state's property, else on its type), then by its description, then by its path; defineDataset labels a column the same way. A console that relied on the description as an unlabelled field's heading shows the title instead once the service declares one. Give the field a label to keep a heading of your own; admission still notes every unlabelled field (definition.field.unlabelled).
The chart
A service's build can now render its Kubernetes manifests: wow { kubernetes { values.from(…); namespace = … } } puts generateWowKubernetes in assemble, which renders the wow-service chart the plugin carries into a Kustomize base of plain YAML, build/wow/k8s/, for kubectl apply -k (With Kustomize). Nothing breaks: a deployment that installs the chart changes nothing, and a build that names no values renders nothing. A build that names them fetches Helm v4.3.1 into the Gradle user home the first time it renders; wow.helm.mirror and wow.helm.executable serve a build without access to get.helm.sh. A deployment that rendered the chart by hand with helm template can name the same values files in the build instead.
The service plugin's task that renders the Kubernetes manifests is generateWowKubernetes (it was generateWowManifests): a build script or CI that names it changes the name. The constants of WowPlugin's companion other than the plugin ids (ID, API_ID, SERVICE_ID) are internal; a build script names the tasks and configurations by their strings.
The wow-service chart refuses more values that a pre-release rendered (Kubernetes). A key the chart sets itself is refused in config, settings and env, in any spelling Spring binds (such as WOW_WAIT_MAX_TIMEOUT or server_port): the shutdown's bounds (wow.wait.max-timeout, wow.cluster.drain-timeout, wow.subscription.stop-timeout: set shutdown.*), the ports (server.port, wow.internal.port: set ports.*), the node's identity and address, POD_NAME and POD_IP, and SPRING_APPLICATION_JSON in env. With networkPolicy.public.onlyGateway (the default), an entry of networkPolicy.public.from that names no pods by their labels (an empty or no podSelector, an ipBlock) is refused: name the gateway's pods, or set onlyGateway: false. The generated values name the peers the code calls service.contractPeers, and the chart joins your service.peers with them by service: regenerate the values (generateWowHelmValues, which assemble runs), and the internal policy admits every peer again where your file gave one its namespace. A values file generated by a pre-release, with service.peers, still renders as the deployment's peers.
The wow-service chart's autoscaling.keda.minReplicas is at least 1, as the HPA's: a values file that sets 0 is refused by the schema. The ScaledObject's only trigger is the backlog the service's own pods report, so a service KEDA scaled to zero never came back (Kubernetes).
The chart requires the gateway's namespace. With networkPolicy.public.onlyGateway true, the default, each entry of networkPolicy.public.from names the namespace the gateway runs in, and the chart does not render otherwise: in gateway mode that rule is the service's only authentication, and a rule by pod labels in any namespace let the owner of any namespace pass as the gateway. Name it in the entry's namespaceSelector by kubernetes.io/metadata.name, or leave the namespaceSelector out for the release's own namespace:
networkPolicy:
public:
from:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: gateway
podSelector:
matchLabels:
app.kubernetes.io/component: gatewayCoSec
This version runs CoSec 8.0.0, CoSec 8's release, and CoCache 8.2.0. From 8.0.0-rc.1 or rc.2 there is nothing to change and no order to upgrade in: no JVM source of CoSec changed since rc.1. From 8.0.0-beta.9 no order is needed either: the services, the gateway and a control plane move in any order, as CoSec's Upgrading: from 8.0.0-beta.9 says. A service in gateway mode takes request headers up to 16 KB however its mode is set, the identity's 8 KB and 8 KB for the other headers, so one that set server.max-http-request-header-size: 16KB for it may remove the key; a request past the limit is answered 431 naming the limit the server applies. An application that builds a TokenAuthenticator itself, reads ChangeEvent.change or implements CoSec's control store follows CoSec's page; Wow's own code uses none of them. A front end on @ahoo-wang/cosec-fetcher installs 8.0.0 without a tag, and may move to fetcher 8 or stay on 6.1. CoSec 8's images publish no latest, so pin the gateway by version or digest. wow-cosec stays experimental in 10.0: a 10.x minor release drops the marker.
From 8.0.0-beta.8, CoSec's Upgrading: from 8.0.0-beta.8 has every change; the ones a Wow deployment meets:
Check the stored patterns first.
[ ] ( ) | ! ^ $ \are reserved in every pattern of CoSec's documents, route maps and changes, and a backslash writes one as text:http:path:/odata/\$metadata. Before upgrading an environment, while it still runs 8.0.0-beta.8, runcosec-migrate check-patterns --to-redis <uri>from the 8.0.0-beta.9 release against its CoSec store. It only reads: it names every pattern of the published documents and of the open changes that this version refuses or reads with another meaning, and says what to publish before the upgrade and after it. A pattern left with an unescaped reserved character fails its whole document on an upgraded instance, which answers every request that reads the document with 503; a pattern with a backslash compiles and means another thing. A service that decides for itself loads the route map Wow makes of its Manifest: a context's name and a service route's segments cannot hold these characters, and Wow's own routes hold none.The control plane, then the services, then the gateway. Upgrade in CoSec's order, each step finished before the next:
- The control-plane hosts, and an IAM service that embeds the control plane.
- The service that issues CoSec's tokens, all of its replicas together, and every Wow service in gateway mode (
wow.cosec.mode: gateway). - The CoSec gateway's image, onto 8.0.0-beta.9, and every other host that verifies CoSec's tokens itself, a Wow service that decides for itself (
cosec.pipeline.modeenforce) among them.
A gateway of 8.0.0-beta.9 writes a new member,
auth.kind, intoCoSec-Identity, which a service on 8.0.0-beta.8 refuses with 400invalid-request, so the services in gateway mode go before the gateway, as they did for 8.0.0-beta.8. A service of this version reads the header with the member and without it, and now ignores a member it does not know unless the header'scritnames it, so a later member needs no such order.Between the steps. A person behind an 8.0.0-beta.8 gateway, or signed in before step 2, is read as a workload by an upgraded host: requests are decided as before, but approving a change and break-glass wait until the gateway is upgraded and the person has signed in again. A change approved before the upgrade is approved again after it. Wow decides nothing on whose a credential is, and its caller does not say.
Every credential says whose it is. CoSec's
Identity.Credentialtakes a requiredkind,Identity.Credential.Kind.PERSONorWORKLOAD, after its method, a login'sTokenSubjectafter itsid, and a verifier'sVerifiedTokenafter itsapp: anAuthenticator, a login or aTokenVerifierof your own does not compile until it says which. A user's sign-in is a person's; anything a machine presents is a workload's. The kind, not the method's name, now decides who may approve a change, be the control plane's trust root or use break-glass. A verifier of your own also refuses a token whose JWScritheader names anything it does not understand (TokenNotUnderstoodException, answered 503). Wow builds none of these.Tests that write the identity or sign a token.
wow-cosec'sCoSecIdentitywritesauth.kindperson, andcosec-testkit'sIdentityHeader.forSubjecta person's andforWorkloada workload's. A test that writes the header itself writesauth.kindtoo, and a token a test signs for the gateway carries the claimcosec.kind: without them a person is read as a workload, and nothing fails. A misspelled member of the header is now read as absent rather than refused.@ahoo-wang/cosec-fetcher. A front end on CoSec's client moves to 8.0.0, which installs without a tag. A refresh, a logout or a tenant switch now goes only to an endpoint the client trusts (isTrusted, resolved against the Fetcher'sbaseURL), and does not follow a redirect. One sent through a Fetcher of its own whosebaseURLis the auth service, as Authentication configures it, is unchanged; one sent on the configured Fetcher to another origin needs that origin inisTrusted. Wow's consoles refresh nothing and are unchanged.
CoSec 8.0.0-beta.9's other changes concern the gateway (it writes at most 6 KB of identity by default, where it wrote 8 KB), a control plane and an application that issues CoSec's tokens: follow CoSec's page for those. From 8.0.0-beta.7, CoSec's Upgrading: from 8.0.0-beta.7 has every change; the ones a Wow deployment meets:
- The services first, then the gateway. Roll every Wow service in gateway mode (
wow.cosec.mode: gateway) onto this version first, and the CoSec gateway's image after them. A gateway of 8.0.0-beta.8 always writes a new member,memberships, intoCoSec-Identity. A service on CoSec 8.0.0-beta.7 reads that header strictly and answers a member it does not know with 400invalid-request, so behind a new gateway every request that carries an identity fails until its service is upgraded. A service of this version reads the header with and withoutmemberships. A control plane and the other hosts that decide on the forwarded identity follow CoSec's page. - A principal's id is never blank. CoSec refuses a credential that names an empty or white-space id before any route of the service runs: a
CoSec-Identitywhosesubis blank is answered 400invalid-request, and an authenticator of your own that makes aPrincipalIdof such an id fails its request with 503; have it answerRejectedinstead. Before upgrading, find the API keys and bindings of a blank principal as CoSec's page shows. - No trailing
/on a route. A service that decides for itself (cosec.pipeline.modeenforce) maps its requests by the Manifest's routes, and none of them ends with/. CoSec now answers 400invalid-requestto a request whose path is a route's with a/added, such asPOST /shop/cart/open-cart/, where it used to decide it as anhttpaction. Send each path as the Manifest writes it, as Wow's clients do. A CoSec gateway in front of services in gateway mode loads no route map, so this item does not apply to it; what this version changed for a path with a trailing/in the gateway's own DENY and rate-limit rules is on CoSec's page. - No CoSec without its gate. A node with CoSec on (
cosec.enabled) that excludes CoSec'sCoSecPipelineWebAutoConfiguration, or replaces its filter with one of another type, no longer starts. Keep the auto-configuration, register CoSec's filter yourself, or run the node withwow.cosec.mode: disabled, which turns CoSec off, as Wow's services do without theircosecprofile. - Tests that build CoSec's
Identity. Its constructor gainedmemberships, last and with a default, so such a test compiles unchanged once it is rebuilt against this version.IdentityHeader.forSubjectwritesmembershipsempty;wow-cosec'sCoSecIdentitywrites none, which a service in gateway mode reads as no other memberships.
CoSec 8.0.0-beta.8's other changes concern the gateway, a control plane, an application that issues CoSec's tokens, and the cosec.* settings of a host that reads CoSec's Redis, which a service that decides for itself is: follow CoSec's page for those. Wow issues no token, calls no control plane and sets none of those keys. From 8.0.0-beta.6 there is nothing more to act on; from beta.5, CoSec's Upgrading: from 8.0.0-beta.5 has every change; the ones a Wow deployment meets:
- A defect of CoCache 8.1.0 on a Redis Cluster. Wow 10.0.0-beta.13 to beta.16 run Spring Boot 4.2 and name CoCache 8.1.0. Under Spring Boot 4.2's Lettuce, CoCache 8.1.0's Redis backend (
cocache-redis) connected to a Redis Cluster rejects the first command to each primary:Currently not connected. Commands are rejected.A service that shares states throughwow-cocache(CoCache) on a Redis Cluster saw its first writes and reads of the cache fail. A standalone Redis and Sentinel are not affected. CoCache 8.2.0 connects to every primary first:wow-cocachenow names it, and an application that declares CoCache's starter andcocache-redisitself moves them to 8.2.0 too, where the fix is. With 8.2.0, an entry that decodes tonullfails its read where it read as absent; Wow writes none. - Seventeen
cosec.*keys are gone: the stages' timeouts, now shares ofcosec.pipeline.timeout, and the bounds of caches, queues and snapshots, now shares of the heap. A service or gateway that sets one does not start, naming it and what replaced it. Wow sets none of them; remove any your configuration sets. - The forwarded-header strategy is
server.request.header.forwarded.strategy, Spring Boot 4.2's key, wherenativeisweb-server. The host sets it toweb-serverunless the application sets it or the deprecatedserver.forward-headers-strategy; Spring Boot does not start with both (Record the client address). An application that set the deprecated key keeps its value, and the host's startup line names the key to move to. - The CoSec deployment in front. A Wow service in gateway mode holds no documents, no Redis and no control plane, so it changes nothing beyond the version. The gateway and a control plane follow CoSec's page: upgrade every control-plane instance first, then the gateways, whose status records now come in two parts; a data-plane Redis user needs the new resident keys; a gateway keeps as many documents as its heap allows (Configure the CoSec Gateway).
- Tests of a service in gateway mode. A test that starts one states the boundary with
IdentityHeader.ONLY_GATEWAY_CAN_REACHofcosec-testkit(@SpringBootTest(properties = [IdentityHeader.ONLY_GATEWAY_CAN_REACH])), in place of a test configuration of its own. A launcher that takes a property map, such aswow-test-spring-boot'swowServer, takes its key alone, from CoSec 8.0.0-beta.7:mapOf(IdentityHeader.ONLY_GATEWAY_CAN_REACH_KEY to "true").
This version can write CoSec's refusals as Wow's problems, off by default: wow.cosec.problems: wow (CoSec's refusals). Left at cosec, every response is byte for byte what it was. It is built on CoSec's ProblemRenderer, and is part of wow-cosec, which stays experimental (@ExperimentalWowApi) in 10.0. Two codes are new, wow.request.rate-limited (429) and wow.auth.unavailable (503), and only these refusals answer with them.
Published streams on Kafka
A state topic a 10.0 pre-release wrote is created again with the upgrade, as its stores are (Topics). What changed on a published stream since a pre-release:
- A record goes to its aggregate's partition. A published stream's record now goes to its aggregate's partition in the context's log, and names the log's count in its
wow-partitionsheader (Partitions). A pre-release placed it by its key's hash among the topic's partitions. A publishing node also refuses to start while one of its topics has fewer partitions thanwow.log.partitions, whateverwow.kafka.ddlsays. - Every commit has a record. A commit whose events the aggregate all retired is published with no events, and a commit that only sets or cancels schedules with its schedule events, so an aggregate's versions on its topic run on from its first record. A Wow subscription passes over a record with no events; an outside consumer reads
eventsas possibly empty. - A missing version parks. A subscription that reads another context's state topic parks an aggregate when a record arrives above the version after the last one it saw, at the version missing, and holds the aggregate's later records behind it. Its automatic retries resolve it in order once the late record arrives; an operator's retry accepts the gap and goes on from the next version present, and a skip drops the held records. The parked reason names
wow.subscription.version-gap(A version a state topic did not deliver). - An event's data is
body. In the record an envelope carries, each event is{name, revision, body}where it was{name, revision, payload}, as in the log and the events query model; the envelope's ownpayload, the record, is unchanged. A record of the old spelling that still reaches a subscription parks its aggregate: skip it, since a retry reads the same record. - No client address. A record no longer carries the client's address or
User-Agent(remote_ip,user_agent) among itsheaders: they are personal data, which stay with the service the request reached.app_idand the request facts the host lists go on. A consumer that read them reads them from the source service's own records, if it is allowed to. - A topic created again is another topic. A subscription keeps its checkpoints on a topic per topic id, the id the broker gives each creation of a topic, so a topic deleted and created again under its name is read as each subscription's start says, from the beginning for a subscription of another service's stream, whatever its length. A node that reads it follows the new topic at its next look for added partitions, and a node that starts reads it so; each logs one warning naming the topic, both ids and the old topic's checkpoints, which are kept and no longer read (Reading other contexts' streams). What the old topic held that a subscription had not read is lost to it with the topic, and an aggregate it had parked in the old topic can only be skipped. The checkpoints a pre-release kept for topic subscriptions are not read. A reading service's account needs
DESCRIBEon the topics it reads, whichREADgrants.
So a pre-release's state topics are created again, and none is kept: a topic kept across the upgrade would be read again from its start, since a pre-release's checkpoints are not read, and each of its records parks its aggregate in every subscriber. Creating them again needs no order among their subscribers: each reads the new topic from its start. Delete each state topic and create it again, with as many partitions as wow.log.partitions, while its publishing service commits nothing (no command to it, no scheduled job, no timer coming due: Before the rollout), and let only nodes of this version publish to it.
A command topic created again is another topic to its context's intake too, which reads the topic's id once, as it starts (Durable command intake). Stop sending commands to it and let the intake take those it holds, or accept that the commands it has not taken are lost with it (a retry with the same request id sends one again); delete it and create it again, with as many partitions as the log; then restart every node of the service, which takes the new topic from its beginning. A node not restarted refuses each read of it by name, or, in the one case that page describes, reads on from its old offset until it is restarted. The intake checkpoints a pre-release kept are not read: an intake that kept them takes the command topic's retained commands again, each one that committed answered as a duplicate.
A migration from 9.x
migrate-data's compare and export exit with 4 when they find differences, where they exited with 3, which is now the JVM's exit on an OutOfMemoryError. A script that reads 3 as differences must read 4, and a Job manifest copied from the earlier deploy/migrate-data/job/job.yaml must fail at once on 1, 2 and 4, not 1, 2 and 3: the list goes with the image. migrate-data also exits with 5 when a store or the network was unavailable or timed out, where it exited with 1. The recipe's Job does with each code (migrate-data CLI):
| Exit code | Meaning | The Job |
|---|---|---|
0 | Done. | Completes. |
1 | Failed: a refusal of the tool's, a configuration it cannot read, or a defect. | Fails at once. |
2 | Usage error. | Fails at once. |
3 | The JVM's, on an OutOfMemoryError (the image's -XX:+ExitOnOutOfMemoryError). | Runs it again from the checkpoint. |
4 | compare or export found differences. | Fails at once. |
5 | A store or the network was unavailable or timed out. | Runs it again from the checkpoint. |
The CUTOVER line says where the import ended: a pass that imports nothing leaves the cut-over where it was, instead of moving it to the log's head.
A saga or a reactor of a migrated service's own context passes over its log's imported history up to the cut-over however it starts, not only on its first start at the log's end, as it passes over a peer's records published as imported; projections still build from it, and a compensation's parked retry of an imported entry is still handled. A first cut-over sees no difference. On a cut-over again after a rollback by export, the history the second import appends is acted on by 9.x's sagas alone: before stopping V10 for the rollback, let every subscription's backlog reach zero (wow.subscription.backlog), the service's own sagas included (Cut Over).
A saga ported one-to-one from 9.x does not keep the order 9.x gave its functions, which the earlier pages did not say, and their claim that an @OnRejected handler returning Unit keeps 9.x's behaviour holds only for a saga whose handlers do not depend on each other. Each V10 handler is a subscription with its own checkpoint: after a backlog, the command one handler derives from a later event may reach its target before the command another derives from an earlier event, and a handler that accepts every code accepts that rejection, so the step is lost, with an INFO line under wow.saga.rejection as its only trace. Review each ported saga for handlers that read one aggregate and send to one target aggregate type, and derive those steps in one handler (Order between handlers).
Queries
The in-memory query reference and the test DSL's memoryQueries order text by code point, as PostgreSQL and MongoDB do. Where text mixes a character of U+E000..U+FFFF with one above U+FFFF, a list or a page sorted by it, a range over it (gt, gte, lt, lte, between) and an aggregation sorted by a text metric answer in another order: ascending, A now comes before 😀. A spec that asserted the old order expects the new one. On Elasticsearch, a top-N by a text metric (sort on a FIRST, LAST or ANY of a text, with limit) keeps the groups PostgreSQL and MongoDB keep.
A filter that ignores case compares both texts after Unicode simple case folding, on every backend (Query Language): ſ contains s, λόγος contains σ, 5µm contains μ, and İstanbul no longer starts with is on PostgreSQL and Elasticsearch. A PostgreSQL database of the C locale, which folded ASCII alone, folds every letter, and one of a Turkish locale no longer folds I with ı. On MongoDB, a value past 32,764 bytes of pattern is answered storage-unsupported, where the server failed. The test DSL's memoryQueries follows the reference.
On the in-memory query reference, which a memoryQueries spec and a node on the memory store read, two queries that were answered are now refused, as PostgreSQL and MongoDB refuse them (Query Language). A comparison, sort or grouping by a date string, such as state.placedAt > "2026-01-01T00:00:00Z", a sort by an Instant, or a date histogram over one, gets unsupported-capability: compare, sort or group by an epoch field instead, a number that supports every capability, or by the system time fields. A sort by two independent array fields gets parallel-array-sort: sort by one of them. A spec that relied on either passed where its node failed; it now fails as the node does. A plain field's sum, avg, min and max are computed there in the stored decimals: the sum of 0.1 and 0.2 is 0.3, not 0.30000000000000004, and a spec that compared the sum of a stored 30 with a double's text, 30.0, now sees 30.
A computed value is a double on PostgreSQL too. An expression filter, a metric or a group over an expression and a derived metric are computed in float8, as on MongoDB, Elasticsearch, ClickHouse and memory. A comparison at the edge of a decimal can answer otherwise than before: amount * 3 > 0.3 matches an amount of 0.1. Where exactness matters, as for money, compare or aggregate a stored field. A computed value beyond a double's range is refused with 400 wow.query.out-of-range.
A query's numeric operand has at most 16,383 digits after the point and 131,072 before it, PostgreSQL numeric's limits. A wider one (1e-500000000) is refused with 400 wow.query.invalid (storage-unsupported) before any store is asked. A number compared with a ClickHouse dataset's Float32 or Float64 column must be a double: past a double's range, or rounding to a subnormal or zero, it is refused alike. A projection that names a field twice counts it once.
PostgreSQL reads a field named null. A snapshot query on PostgreSQL read a property or a map key named null (in any case) as missing: a filter on it matched no row. It now reads the value the field holds. An expression index on such a field is planned anew; no other index changes.
Long ignore-case operands and lone surrogates are queries to mend. On PostgreSQL an ignore-case contains, starts-with or ends-with longer than about 8,000 letters was answered and is now refused 400 wow.query.invalid (storage-unsupported): shorten the operand or match case-sensitively. On ClickHouse one longer than about 16,000 letters, and any text operand past its 128 KiB query parameter, is 400 instead of a storage failure. A text operand or a filter's id holding an unpaired surrogate is value-mismatch on every store: PostgreSQL and ClickHouse read it as ? and answered rows it never named.
MongoDB refuses a metric aliased _id. An aggregation on MongoDB whose metric is aliased _id, the field a group's key is kept in, answered rows that were not what it asked; it is now refused 400 wow.query.invalid (storage-unsupported). Give the metric another alias; a group aliased _id is taken.
A dataset definition's case-insensitive text test, containsIgnoreCase, startsWithIgnoreCase or endsWithIgnoreCase, now compares both texts after Unicode's simple case folding, as a query's case-insensitive filters do on every store, and takes a literal text as its second operand: a definition that compares two expressions that way is refused when it is drafted or revised, naming the call. Rewrite it to compare with a text in quotes; a published dataset that does so is marked as needing revision at its next recompilation and serves its published version meanwhile. A published dataset whose test compares with a text in quotes gets the folded match at its next recompilation, by itself.
A catalog dataset's rollback is compiled as a publication is. RollbackDataset compiles the earlier version's definition against the sources as they are now. A definition that no longer compiles, a source the catalog may no longer read among the reasons, is refused (analytics.catalog.definition-invalid) where the version was served again. One whose publication takes an approver, under require-publication-approval or for a column computed from a sensitive value, is requested of one. One that compiles otherwise than it was published, a value protected more strictly since, is published as the next version with the protection its sources give today. A version that compiles as it was published is served again, as before.
A non-ASCII digit in a dataset expression is a problem of the definition. An analytics catalog dataset whose expression held a decimal digit of another script (٣, 3) failed its command with an unexpected error; it is now refused as an expression the catalog cannot read, naming the digit. Write numbers with ASCII digits.
A body path of an events query reads only the events that declare it. A condition, a group or a metric on a field of an event's body reads only the events whose schema declares the field, at a revision the node knows: an event the node's Manifest does not know, one at a newer revision, and an older revision of an event that no longer declares the field are read as without it, as a masked read shows them. A group by a body field no longer puts the events that do not declare it into its null group or missingKey: name the events in the expansion's filter, or group by name, to count them.
A field's descriptor carries its title. The query model's descriptor now gives each field its title beside its description: the @Summary of the state's property, else of the property's type. @ahoo-wang/wow-client's FieldDescriptor has title?: string. Nothing needs to change: the member is absent where no summary is declared, and the descriptor's version (its ETag) moves once for a model that gains one, so a cached descriptor is fetched again.
A state's query fields follow Jackson for a base class's private annotated fields (state.who where it was state.owner): a query that names the old field is refused.
A dataset without a tenant column is tenantless. A dataset file declares a table with no tenant column with "scope": { "tenantless": true }, where it said "platform": true: the word named the platform tenant, (platform), and the rows of such a dataset are the default tenant's. A file that still says "platform" stops the node's start, naming the file, with Unknown dataset scope properties: [platform]. Rename the key in each dataset file, on the class path under META-INF/wow/dataset/ and in <wow.query.dataset.config-directory>/wow/dataset/. In Kotlin, QueryDatasetBuilder.platform() is tenantless() and QueryDatasetScope.platform is tenantless, also as QueryDatasetScope.of's parameter (Datasets).
The analytics catalog names a shared dimension tenantless. A source with no tenant column is declared with ReviseSource's tenantless, where it was platform, and SourceRevised, the source's state (state.tenantless) and a published dataset's scope (scope.tenantless) carry the same name; the console calls it a shared dimension. A command body that still says platform is refused (unknown-property), so a client of the catalog's commands moves with the service; the console is the service's own and moves with it. A pre-release's stores are not carried over: start the catalog of this version on empty stores (Analytics Catalog Console).
A state read of an aggregate with snapshots off is masked and admitted as with snapshots on. As soon as a service had a QueryPolicy or one governed aggregate, a state read (latest, at a version or a time) and a trace's states of an aggregate with @AggregateRoot(snapshot = false) were masked and admitted by an empty schema: its @Sensitive values were answered raw, CONFIDENTIAL ones included, and a governed one was read by no caller but a service. Such a read is now masked by the state's schema and admitted by its access attributes, as it is with snapshots on. Nothing changes for an aggregate whose snapshots are on, nor in a service without policies.
The test kit
Specs written with the test DSL hold commands to what a node does with them. Rebuild the tests against this version: aggregateSpec and aggregateSpecTests take a policy.
- Give a spec its aggregate's access policy wherever the service registers one:
aggregateSpec(model, caller = …, policy = …). Its commands are then decided on their callers' claims. - Send a command that names a
scopewith a caller in that scope:caller = Caller.owner("alice"), orCaller.of(scope = …, subject = …). A command without a caller is the anonymous caller's, which the gateway refuses a scope. - Ids past the limit fail as malformed. That is a request id, tenant, owner or space id longer than 256 characters.
- A saga spec names a scheduled command as a node does: by its target's model, given with
givenAggregate, or by the target's contract on the test class path. Give one where a spec schedules a command to a target it describes by neither.
A test's fake peer (fakePeer, wow-test-spring-boot) answers a call as the real peer does. A command the callee's wow.callers.<service>.commands do not permit is 403 wow.call.command-forbidden; with none given, every system command (wow.*) is refused. A body that is not JSON, or does not read as its command, is 400 wow.command.malformed. A test whose saga calls a peer's system command states the peer's permit, fakePeer(context, callers = mapOf("<calling service>" to listOf("wow.lifecycle.DeleteAggregate"))), as the peer's configuration must. fakePeer takes the map as a second parameter with a default, so Kotlin sources compile unchanged; recompile code built against the earlier signature.
Specs written with the test DSL now send and settle timers as a node does. A scheduled command runs in the operator and scope of the commit that scheduled it, and only with the request facts a derived command inherits. A scheduled command whose decision throws leaves its timer pending, then parked after ten attempts, instead of fired. A spec of one aggregate whose decision schedules a command for another aggregate of its context fails at advanceTime: test that command in a spec of its own aggregate. A handling whose downstream keeps pushing back parks at its twentieth attempt. Specs use a node's default retries whatever a service configures.
A saga handler that names a command's target by an id it drew from context.ids in the same handling fails and parks its aggregate (Kotlin API): send the creating request without an id, and the commands that follow it from the @OnCommitted handler of its receipt. In sagaSpec, expectDeterministic() and whenRedelivered() now draw new ids as a node does, so they fail such a saga. A spec that expected a handling after the first to draw id-1 or <aggregate>-1 again now sees the next id.
Rebuild a service's code against this version: the compiler's generated bindings now pass the context each handler is bound in (ProcessorBinding.saga, .project and .react take context). A binding written by hand compiles unchanged when it names its arguments, and may name its context. Specs written with the test DSL change in step with the node:
- a handler reads its state decoded from JSON, a copy of its own, in the context it is bound in;
- a rejected receipt carries the command's scope;
- the rejection of a call's compensation parks;
- a receipt of another context's command is not retried under the saga's
@Retry; - the answering client's
streamemits rejected and failed results.
The memory log, which the domain, processor and service tests run on, and a host's memory store refuse what PostgreSQL and MongoDB refuse. A group (appendAll) with a gap in an aggregate's versions, or of two contexts, throws the IllegalArgumentException the durable logs throw before writing anything, where its first streams were committed and a conflict followed; a host's memory store refuses another context's stream on the log openLog(context) gave, where it committed it. Such a test would have met the exception in production: append one context per log, and an aggregate's versions consecutively in a group.
A decide-time call in a spec takes the request id a node derives, so a spec that passed may now fail as the node does.