Add shared feeding community with atomic resource transfers
This commit is contained in:
@@ -146,3 +146,31 @@ do not select photosynthetic chemistry, area, metabolic efficiency, world time
|
||||
or the final units library. No producer state is attached to the particle world,
|
||||
serialized, connected to PostgreSQL or deployed. Later persistent integration
|
||||
must include config, reservoirs, tick and all three remainders in one checkpoint.
|
||||
|
||||
## Implemented M2.3 shared feeding fixture
|
||||
|
||||
[ADR-0026](../adr/0026-shared-feeding-community.md) introduces `FeedingCommunity`,
|
||||
owning one producer and up to 16 consumer capabilities in a single ledger. The
|
||||
producer's standalone interface remains unchanged. A narrow private ownership
|
||||
boundary permits orchestration without exposing arbitrary inventory writes.
|
||||
|
||||
Each tick stages producer activity, then at most one feeding request per consumer
|
||||
in ascending host sequence. Intake limits apply per inventory channel, and a
|
||||
request must be fully available. Assimilated quantities go to the consumer,
|
||||
unassimilated energy to heat, and unassimilated matter to a finite waste reservoir.
|
||||
Every quantity has a counterpart. Floor rounding in feeding goes to real waste/
|
||||
heat, unlike the producer's carried capture entitlement; see the ADR for scope.
|
||||
|
||||
A depleted target becomes inactive only when all its inventory is consumed. It
|
||||
cannot act, be targeted or restart capture. This is a terminal synthetic trigger,
|
||||
not a biological death model. Whole-community staging ensures failed feeding
|
||||
rolls back producer progress, earlier bites, terminal flags and ledger outcomes.
|
||||
The host submits trusted co-located intentions; spatial reach, authenticated input,
|
||||
partial injury, corpses, decomposition and actual organism ancestry are absent.
|
||||
|
||||
```mermaid
|
||||
flowchart LR
|
||||
P[Producer or consumer target] -->|assimilated energy and matter| C[Consumer]
|
||||
P -->|unassimilated energy| H[Heat]
|
||||
P -->|unassimilated matter| W[Waste inventory]
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user