feat(ecology): distinguish inherited plans in verified census
Foundation / checks (tsan) (push) Canceled after 0s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (checks) (push) Canceled after 1m13s
Foundation / checks (client) (push) Canceled after 1m14s
Foundation / checks (postgres) (push) Canceled after 1m7s
Foundation / checks (deploy) (push) Canceled after 1m13s
Foundation / checks (ecs) (push) Canceled after 1m13s
Foundation / checks (network) (push) Canceled after 1m14s

This commit is contained in:
dingo
2026-10-19 15:06:47 -04:00
parent c60cdf8e19
commit dc7c0e1fa1
20 changed files with 492 additions and 23 deletions
@@ -0,0 +1,50 @@
# Retained-plan cellular census projection 2
Authority: [ADR-0169](../../docs/adr/0169-retained-plan-census-observations.md).
This is a detached read-only C++ observation, not a new snapshot/wire codec,
SQL journal, permission grant or accepted extinction record.
Projection 2 supports raw owner format 8/rules 10 only. Regional and scoped
boundaries explicitly include `projection_version=2`; all other identity,
frame, tick, quantum, complete genome and disjoint-resident checks from
[projection 1](regional-cellular-census-v1.md) still apply. Mixed projection
boundaries refuse the complete set. Population conversion and migration of this
owner remain unsupported.
Each genome row retains its five existing resident categories (individual and
cohort wildlife, active, lingering and suspended controlled organisms). Counts,
body and reserve use the organism's **expressed** genome. Projection 2 adds:
| Field | Meaning | Owned inventory |
|---|---|---|
| `living_plan_holders[kind]` | Living local organisms whose retained offspring genome is this row | None |
| `retained_dead_plan_records` | Local corpses retaining this offspring genome | None |
A parent with expressed genome A and selected plan B contributes its one body
and reserve to A and one reference to B. It does not contribute a second
organism, expressed archive carrier or future child. Each funded newborn is a
real additional resident under its own expressed genome and initially retains
that same plan. A later parent selection does not rewrite earlier children.
Suspension retains a living plan reference without offline progression; death
removes that living reference and retains a separate historical record.
Exact-genome and descendant-closure queries independently sum stock and each
reference measure with overflow checks. Descendant closure includes the anchor,
visits shared descendants once and does not assume ancestry follows ID order.
Never sum reference counts into organism counts or inventory. A living plan
holder is not proof of reproductive capability, funded birth or survival. A dead
record is not current viable stock. Unknown genome or unavailable evidence
returns an error, never measured zero or terminal extinction.
Projection 1 remains valid for its supported old owners. Its added C++ fields
default to zero and are **unobserved**, not measured absence. Inspect the
projection boundary before interpreting them. No old golden or retained
biological format changes.
Committed history reconstructs each exact manifest/payload/trace cut before
observing it. Registered snapshots capture domain, registry and heads in their
existing read-only database snapshot, fully replay the selected cuts, propagate
the projection boundary and validate the whole declared set. Missing builds,
objects, stale authority or false evidence refuse the entire query. No extra
census write or publication window is introduced. Other stores, clone domains,
global viability reconciliation and client authorization remain separate work.