Add phenotype-derived cellular motion proposal
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 1m58s
Foundation / checks (postgres) (push) Canceled after 0s
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 (network) (push) Canceled after 6s
Foundation / checks (client) (push) Canceled after 2m14s
Foundation / checks (checks) (push) Canceled after 2m17s

This commit is contained in:
dingo
2026-10-10 21:08:50 -04:00
parent 0b607bae53
commit a97c5f3204
6 changed files with 314 additions and 5 deletions
+6 -4
View File
@@ -21,8 +21,9 @@ patches without client authority over speed or position.
- A cellular trial domain is a finite, axis-aligned 2D rectangle in one
region/frame, expressed in integer micrometres. Its width and height are
positive multiples of ADR-0101's patch pitch; the provisioned extent is
explicit and bounded. There is no wraparound. A body cannot leave the
rectangle; a movement step that reaches an edge is clamped there.
explicit and bounded to 1,000,000 μm per axis in this trial. There is no
wraparound. A body cannot leave the rectangle; a movement step that reaches
an edge is clamped there.
- An organism's position is the lower-left corner of its square footprint,
matching the existing primitive spawn-site overlap convention. Current
phenotype extent determines that square. Spawn/restore rejects positions
@@ -37,8 +38,9 @@ patches without client authority over speed or position.
speed capacity. Invalid or stale intentions do not alter state.
- Movement energy is derived from `MetabolicBudget::movement`, proportional to
actual displacement relative to the full-speed tick distance and rounded up:
`ceil(full_speed_tick_cost * floor_sqrt(dx²+dy²) / per_tick_speed)`. Checked
quotient/remainder arithmetic is required; overflow refuses the whole step.
`ceil(full_speed_tick_cost * ceil_sqrt(dx²+dy²) / per_tick_speed)`. The
distance rounds up so the discrete approximation cannot undercharge motion.
Checked quotient/remainder arithmetic is required; overflow refuses the whole step.
A zero per-tick speed or zero displacement costs zero. The movement resolver
reports a proposed cost; the state owner applies the move only if the reserve
can fund that cost. This resolver does not also spend maintenance, which