Files
aevolution/schemas/network/session-v12-cellular-producers.md
dingoandClaude Opus 5.5 b73ccbae9a
Foundation / checks (ecs) (push) Successful in 2m19s
Foundation / checks (deploy) (push) Successful in 4m47s
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 16m48s
Foundation / checks (network) (push) Canceled after 16m46s
Foundation / checks (postgres) (push) Canceled after 16m47s
Foundation / checks (client) (push) Canceled after 16m53s
Foundation / checks (tsan) (push) Canceled after 14m33s
feat(ecology): make photosynthesis regions playable on DEV
ADR-0176 and schema 57 admit raw cellular bundle 13 (rules 11 on owner
format 9) through parser-local normalization to bundle 12, and a fenced
no-tick 12 -> 13 upgrade that declares the region's light; recovery reads
the light from the target and re-derives the whole target from the source.
The resumable cellular-v8 opening provisions a cellular-v7 genesis, one
empty tick and the durable upgrades to bundle 13.

Session v12 adds the owner's captured light and the producers it can see
to its perception, and lets offers name photosynthesis; older sessions keep
their layouts and never receive photosynthesis candidates. The client
draws chloroplasts by efficiency, shows sunlight in the HUD and offers
photosynthesis cards. DEV now provisions and serves region 9 with the
trial light; region 8 stays stored but unserved.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 23:04:34 -04:00

1.1 KiB

Session v12: captured light and visible producers

Authority: ADR-0176. v12 is v11 (ADR-0136 deposits) with two additions; every other message and layout is v11's. v1-v11 layouts are unchanged.

Mutation offers may name capability 7 (photosynthesis); v10 and v11 offers stay limited to 0..6, and a server withholds photosynthesis candidates from those sessions.

Owner perception. After v10's 40-byte bud cost, the prefix adds:

Bytes Field
8 Light this cell captured on the last tick, pJ (zero when none or no life)
2 Producer count, at most 256
6 Reserved zero

Deposits follow as in v11, then producers, 16 bytes each:

Bytes Field
8 Organism ID, nonzero, strictly ascending
2 Photosynthesis per thousand, 1..1000
6 Reserved zero

A cleared view (life 0) carries no producers and zero light. Producers are visible cells carrying photosynthesis within the owner's perception radius, nearest first when more than 256 are in range, then sorted by organism. The values are authoritative observations for drawing, not client claims.