Preserve terminal inventories and add bounded decomposition

This commit is contained in:
dingo
2026-09-20 15:26:58 -04:00
parent 5196c0aadd
commit e17a9a7279
9 changed files with 365 additions and 15 deletions
+28
View File
@@ -174,3 +174,31 @@ flowchart LR
P -->|unassimilated energy| H[Heat]
P -->|unassimilated matter| W[Waste inventory]
```
## Implemented M2.4 terminal inventory and decomposition
[ADR-0027](../adr/0027-terminal-inventory-and-decomposition.md) extends community
ticks with trusted terminal facts before producer activity. The dead process's
existing inventory becomes its corpse; no extra copy is created or discarded.
`corpse(id)` exposes a value only for inactive process IDs. Dead actors never
capture, grow or feed again, and their identity remains after decomposition.
After feeding, inactive reservoirs in ID order and then waste share one configured
per-tick inventory budget. Drained energy goes to heat and each elemental mass
goes unchanged to nutrients. Zero caps disable channels. This is a synthetic
transport model, not decomposition chemistry or an autonomous microbial lineage.
Returned nutrients can fund producer growth next tick. Default caps are zero,
preserving earlier fixture behavior; all new state participates in tick rollback.
```mermaid
flowchart LR
A[Active process inventory] -->|terminal state, same owner| C[Corpse inventory]
C -->|bounded energy release| H[Heat]
C -->|bounded elemental return| N[Nutrients]
W[Waste] -->|remaining shared budget| N
N -->|next tick growth| P[Living producer structure]
```
Host terminal events do not define health, starvation, combat, age or player death
causes. Corpse scavenging, live-world lineage history, persistence and reproduction
remain outside this increment. No physical inventory disappears on death.