CreationIds
The ids admission gives the creation commands that name none: a command, a client's or one a saga derived, whose request already committed takes the id of the aggregate it created, without drawing a new one, so a retry or a replay keeps it. Any other takes a new one from its aggregate type's generator in ids, so that every attempt of the request meets the others in one partition, where every log's request key is unique:
aimed at the request's partition (Partitioner.partitionOfRequest) when the generator can aim (me.ahoo.wow.spi.id.AggregateIdGenerator.nextIn, as Wow's UUIDv7 ids do): nothing is claimed, and an attempt that runs while an earlier one of its request is still deciding commits, or is answered as its duplicate, at the key;
else drawn and claimed for its request (CommittedRequests.claim): the request's first claim holds, so every attempt targets the earlier one's aggregate, one partition, on a log whose key is narrower than the aggregate type (MongoDB's, within a partition); a log whose key spans the type keeps no claims, and its key meets them.
A generator aims on every call or on none, so the attempts of one request take one path. An id it gives that admission refuses as an aggregate id (AggregateIds.refused) fails the command, the generator's defect, not the sender's: no aggregate is created that no route by its id reaches. Committed ids never change. A retry still draws a number that is then not used: ids are stable, not gap-free.
The committed or claimed request is reused only within the scope that sent it. A caller outside it gets a new id of its own, in the partition of the request's aggregate, so that every log's request key meets it: the kernel refuses it as for any duplicate, and it learns nothing of the aggregate the request created.
Functions
command, a command of model, with its aggregate id assigned when it names none (me.ahoo.wow.api.aggregate.AggregateRef.isAssigned); fails for a command that does not create its aggregate. An aggregate whose id is its owner's takes the command's owner (AdmissionIdentity.ownId), and fails for a command with none. Its caller rejects either first (AdmissionIdentity.unaddressed).
The id of the aggregate of type that a creation command of request requestId in tenantId, in scope, targets: that of the stream its request committed, else a new one aimed at the request's partition, else that of the request's claim, else a new one, claimed. An aggregate of ownership checks only that part of the scope.