An offer the cell cannot afford stayed open, and only one offer is issued at a time, so banked feeding credit never became a new offer. A v10 choice naming operator 0 now declines the exact outstanding offer. It is reserved and published like any choice: schema v40 accepts operator 0 in the reserved input and trace selections and stores result 3, declined. The owner consumes the offer and changes nothing else, and the client reports it as committed. Old traces never carry operator 0, so their replay is unchanged. The Evolution panel gets a "Decline this offer" button. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
5.7 KiB
ADR-0120: Cellular mutation eligibility trial
Status
Accepted for the first M11.4 implementation (2026-10-11). The threshold and candidate count are versioned trial values for early playtesting, not balance sign-off. Review them with the exploratory check and again in 11.9.
Context
ADR-0098 requires mutation eligibility to come from fed surplus retained during a life, with seeded M3 candidates, stable retries and stale-selection refusal. ADR-0118 defines the exact funded transition. The current cellular tick records successful patch uptake after charging maintenance and movement, but the life checkpoint does not retain an earned surplus counter or an offer identity. Without those fields, opening reserve could be mistaken for feeding and recovery could create a free reroll.
Decision
- Credit only energy successfully acquired from a provisioned environmental food patch by a living cell and retained in that same tick's reserve. Do not credit its opening reserve, energy merely held, movement, external grants or energy returned by another owner. One committed tick credits its intake once; publication retry cannot credit it again. Corpse/predation intake is outside this M11.4 trial and needs an explicit rule before it can earn credit.
- Start with one mutation event per 60 seconds of the life's current per-second maintenance cost in credited energy. Derive the threshold from the current genome, growth and environment using checked integer arithmetic. Carry any remainder. If several events are earned while an offer is open, retain them as earned credit; issue at most one offer at a time. This starting interval is a tunable, versioned trial value.
- An offer asks the M3 generator for three candidates; it may return fewer when the genome has fewer eligible operators. An empty result does not consume the accumulated credit or event index. Its context records the life, parent genome identity/digest, event index, offer tick, seed/stream, candidate count, growth and recorded environment. Event indices advance only when an earned event becomes an offer. The generator order is canonical, never a ranking. Re-reading or retrying the same offer regenerates identical bytes.
- Identify an offer by
(life_id, event_index, offer_tick). A selection names that identity and is revalidated against the stored parent and context. A wrong or consumed offer identity, changed genome or changed recorded context is stale. Advancing ordinary simulation ticks alone does not expire an open offer; the offer tick is an identity component the client must echo, not a 50 ms decision deadline. A stale or declined offer earns no replacement; a later offer needs new retained feeding credit. - Store the fed-energy remainder, event index and complete outstanding offer context in profile-4 v2. They are life state and restore exactly. The no-tick v1-to-v2 migration initializes all credit and event indices to zero and has no outstanding offer. Offer selection and genome publication remain in the later atomic path; 11.4b does not publish a chosen mutation.
Alternatives
- Use total reserve as eligibility: rejected because an opening founder balance would earn mutation without feeding.
- Reroll whenever context changes or a player asks: rejected because it rewards movement through contexts or repeated requests with unearned draws.
- Expire an offer after one simulation tick: rejected because a 50 ms decision window would not leave a practical opportunity to read and choose.
- Rank or filter to only affordable candidates: rejected because that hides the actual tradeoffs and would change the seeded candidate set. Funding failure remains visible and atomic under ADR-0118.
Benefits and costs
The checkpoint can prove that offers were earned by feeding, retries reproduce the same offer, and choices remain readable across several live ticks. This adds per-life durable state, a profile migration and explicit stale-offer handling. The 60-second threshold may feel too frequent or too slow; the early M11 check and repeated-life evidence must guide a versioned adjustment.
Consequences
Implement the accounting in the authoritative cellular owner, store it in the
v2 checkpoint, expose only the owner's offer through the session boundary, and
test exact retry, stale identity/context, credit carry, no opening-reserve
credit, checkpoint restore and NDEBUG. The durable mutation selection and its
genome/archive/resource publication remain a later segment. No ranked score,
class tree, NPC mutation or automatic reroll is introduced.
Amendment (2026-10-15): declining an offer
Playtesting showed an offer whose candidates the cell cannot afford stays open indefinitely: an unaffordable choice is refused without consuming the offer, and only one offer is issued at a time, so banked credit could never become a new offer.
- A v10 mutation choice (type 25) naming operator 0 declines the exact outstanding offer. It is admitted, reserved and published like any choice (schema v40 accepts operator 0 in the reserved input and the trace selection). Its reserved successor identity stays unused, which the allocator permits (gaps, never reuse).
- At its tick the owner consumes the offer and changes nothing else: no genome
revision, no inventory change. The published result is 3, declined, reported to
the client as
committed. - As before, a declined offer earns no replacement. A later offer needs feeding credit, but credit already banked while the offer was open can produce the next offer immediately.
- Older traces never contain operator 0 (the decoders refused it), so their replay is unchanged and no rules version is needed.