Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 2m35s
Foundation / checks (tsan) (push) Failing after 17m51s
Foundation / checks (network) (push) Successful in 21m13s
Foundation / checks (client) (push) Successful in 22m19s
Foundation / checks (postgres) (push) Successful in 48m25s
Foundation / checks (checks) (push) Failing after 50m8s
Foundation / postgres-tools (push) Skipped
Foundation / server-image (push) Skipped
Foundation / image (push) Skipped
56 lines
3.0 KiB
Markdown
56 lines
3.0 KiB
Markdown
# ADR-0141: Cellular unattended tick demand and confirmed-head pacing
|
|
|
|
## Status
|
|
|
|
Accepted for the existing cellular worker, 2026-10-17. No biological rule,
|
|
checkpoint format, schema, deployment or World0 change. This is M12.4a, not
|
|
completion of population publication, durable interval admission or migration.
|
|
|
|
## Context
|
|
|
|
The worker only steps while it finds a player, a held birth or lingering cell.
|
|
Consequently wildlife stops when the last player leaves and linger completes.
|
|
An active offline cell restored without a session also never starts its freeze
|
|
transition. Resetting the deadline to completion time plus 50 ms further discards
|
|
running scheduling debt when work or publication is slow.
|
|
|
|
## Decision
|
|
|
|
For profiles supporting offline freeze (rules 5+), demand includes every unowned
|
|
descendant and each active/lingering controlled life. Suspended controlled stock
|
|
alone supplies no demand. A returning session or held birth still wakes the
|
|
worker. Historical profiles lacking freeze retain their previous session-driven
|
|
behavior; do not newly advance disconnected biology under those profiles.
|
|
|
|
Keep the existing shared wildlife controller, frozen controlled baseline, batch
|
|
builder and fenced PostgreSQL publication path. No new biological intent or
|
|
background balance is invented. There is at most one tick attempt per worker
|
|
loop, at the existing 50 ms quantum; batching or a larger timestep is not implied.
|
|
|
|
Use a portable pacing object that reads caller-supplied monotonic microseconds,
|
|
current authority epoch and confirmed head. It counts due ticks from a fixed
|
|
running origin. Only a confirmed head advance consumes debt. Refused work retries
|
|
at most once per quantum while preserving debt. Do not cap away accumulated debt,
|
|
delete lives to catch up or advance from an unconfirmed candidate. Reject clock
|
|
regression, same-epoch head regression and an unfenced ready origin. Tick/count
|
|
arithmetic must remain bounded at u64 limits.
|
|
|
|
Authority unavailability, epoch replacement, process restart and no tick demand
|
|
pause unadmitted wall time under ADR-0133. Existing uncertain publications still
|
|
resolve through the host's exact pending record before it becomes ready. This
|
|
pacer is not a durable interval queue or cross-worker fence. The existing host
|
|
continues to own that authority; no outage catch-up policy is introduced.
|
|
|
|
Expose debt and maximum debt through existing fixed-cardinality region metrics.
|
|
Checkpoint age measures time since the last confirmed head change/recovery;
|
|
readiness still independently states whether output may originate.
|
|
|
|
## Remaining M12.4 work
|
|
|
|
Population envelope publication and durable interval admission/recovery require
|
|
their own profile and store work. Biological migration needs exact genome/history
|
|
closure, source escrow and idempotent destination installation under both region
|
|
fences; the existing non-biological probe transfer is not that implementation.
|
|
No live biological migration, partition qualification or days-long ecology proof
|
|
follows from these scheduler checks.
|