Remote / An event-sourced domain behind Remote
Where lowering stops
One Aggregate is one consistency boundary, so a lowered write may read and set
only the row its Aggregate holds. Lower.check(write) returns what keeps a
write out, as data, and Lower.write throws listing it:
ts
const findings = Lower.check(ReserveStock.write) // [] hereOutsideBoundary: awhen, a guard rule, an invariant or a context value that reads another row, named with the relations it follows.NotPersisted: a member the write reads or sets that is not a stored field of its Entity.
A rule across two Aggregates is Domain's to model, as a Policy or a Saga;
nothing here derives one. Lower.write takes an update only (not a create or
a delete), names its row by id, and keeps no write ledger.