Decline a mutation offer (ADR-0120 amendment, schema v40)
Foundation / checks (ecs) (push) Successful in 2m20s
Foundation / checks (deploy) (push) Successful in 4m1s
Foundation / checks (tsan) (push) Successful in 9m49s
Foundation / checks (client) (push) Successful in 19m23s
Foundation / checks (network) (push) Successful in 19m31s
Foundation / checks (checks) (push) Successful in 42m41s
Foundation / checks (postgres) (push) Successful in 45m36s
Foundation / postgres-tools (push) Successful in 28s
Foundation / server-image (push) Successful in 3m15s
Foundation / image (push) Successful in 3m18s
Foundation / checks (ecs) (push) Successful in 2m20s
Foundation / checks (deploy) (push) Successful in 4m1s
Foundation / checks (tsan) (push) Successful in 9m49s
Foundation / checks (client) (push) Successful in 19m23s
Foundation / checks (network) (push) Successful in 19m31s
Foundation / checks (checks) (push) Successful in 42m41s
Foundation / checks (postgres) (push) Successful in 45m36s
Foundation / postgres-tools (push) Successful in 28s
Foundation / server-image (push) Successful in 3m15s
Foundation / image (push) Successful in 3m18s
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>
This commit is contained in:
@@ -831,6 +831,14 @@ void cell_evolution(const PanelView& v, PanelActions& a) {
|
||||
ImGui::TextColored(amber, "MUTATION AVAILABLE");
|
||||
disabled_wrapped("Useful feeding earned this choice. Each change trades a capability against "
|
||||
"upkeep and body mass. The server checks your reserve when it commits.");
|
||||
// ADR-0120 amendment: declining consumes the offer and changes nothing; more feeding
|
||||
// (or credit already earned) brings the next one.
|
||||
ImGui::BeginDisabled(!play->can_act() || !v.remote ||
|
||||
v.remote->server_tick <= offer->offer_tick);
|
||||
if (ImGui::Button("Decline this offer", {-1, px(28)}))
|
||||
a.mutation = MutationChoice{offer->life_identity, offer->event_index, offer->offer_tick, 0};
|
||||
ImGui::EndDisabled();
|
||||
disabled_wrapped("Declining keeps your genome; earned feeding brings the next offer.");
|
||||
constexpr std::array capabilities{"Energy conversion", "Membrane", "Movement",
|
||||
"Ingestion", "Reproduction", "Target size",
|
||||
"Thermal tolerance"};
|
||||
|
||||
Reference in New Issue
Block a user