Drive wildlife with a deterministic controller recorded in the trace
M11.5d (ADR-0125): wildlife_intents gives each unowned cell a bud intent when it can fund one (at most once a second), else steers it to the nearest perceived food patch and feeds, else wanders. The cellular server puts these intentions into each tick's baseline, so replay and publication treat them like player input. fund_bud refuses a reserve short of the bare investment before scanning growth levels. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -68,3 +68,12 @@ descendant, and no special wildlife biology.
|
||||
offers `cellular-v3` (rules 4). A rules-4 owner refuses founder identities at
|
||||
or above 2^63; the allocator keeps its full range. PostgreSQL tests publish a
|
||||
real bud from a fed founder, restart the host and recover the wildlife cell.
|
||||
- 11.5d (code): `wildlife_intents` (server/lifecycle/wildlife_controller) is the
|
||||
pure controller: per unowned life, a bud intent at most once a second when
|
||||
`fund_bud` would succeed; else steer to the nearest perceived patch holding
|
||||
energy and feed from it (no movement once touching it); else wander, changing
|
||||
direction every two seconds from the life id and tick. `serve_cellular` puts its
|
||||
intentions into each tick's baseline, so they ride the trace like a player's.
|
||||
`fund_bud` now refuses a reserve short of the bare investment before its growth
|
||||
scan (same answer, bounded cost per wildlife tick). The rules-4 DEV region
|
||||
(`cellular-v3`) follows once CI publishes images with schema v36.
|
||||
|
||||
@@ -7390,3 +7390,15 @@ drift; 489 s) passes; before that the C++ suite (`postgres-check.sh
|
||||
publication tests; MSVC Debug 69/69, network 75/75, client-network 89/89 (the
|
||||
two motion-trace smokes needed a serial rerun under load); g++-14 `-Werror`,
|
||||
clang-tidy-19 (no new findings) and clang-format 19.1.5 on the changed sources.
|
||||
|
||||
## 2026-10-14 — M11.5d wildlife controller (CI pending)
|
||||
|
||||
`wildlife_intents` drives unowned lives (bud when fundable, else feed from the
|
||||
nearest perceived energy patch, else wander) and `serve_cellular` records its
|
||||
intentions in the trace baseline. `cellular-lives-owner` checks that only the
|
||||
bud is driven, that two calls agree, that a cell touching a stocked patch feeds
|
||||
without moving (or buds), and that the owner accepts the intention.
|
||||
|
||||
Executed locally: MSVC Debug `cellular-lives-owner` and `budding-contracts`;
|
||||
g++-14 `-Werror -Wshadow` and clang-tidy-19 on the controller, budding, owner
|
||||
tests and server main; clang-format 19.1.5.
|
||||
|
||||
Reference in New Issue
Block a user