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

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:
dingo
2026-10-15 19:43:36 -04:00
co-authored by Claude Opus 5.5
parent d98d71e7c0
commit 1446d36d26
24 changed files with 396 additions and 46 deletions
@@ -78,3 +78,22 @@ 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.
+31
View File
@@ -7690,3 +7690,34 @@ trip with and without tick effects, v9 refusal, and refusal of a cleared view wi
a cost. Executed locally: those unit tests, the WSL PostgreSQL suite, clang-tidy-19
on the changed sources, WSL client 14/14 with clang-tidy plus the Xvfb check, MSVC
`client-package` 18/18, and clang-format 19.
## 2026-10-15 — declining a mutation offer, schema v40 (CI pending)
ADR-0120 amendment: a v10 mutation choice with operator 0 declines the exact
outstanding offer. It is reserved and published like a choice, and schema v40 lets
the reserved input and trace selections carry operator 0 and stores result 3,
declined. The owner consumes the offer without a genome or inventory change; its
reserved successor identity stays unused. Clients get `committed`, and the
Evolution panel has a "Decline this offer" button, enabled even when the reserve
cannot pay.
Tests:
- owner: a trace and action block with a decline encode, decode, match and replay;
the offer is consumed and the genome, archive and totals are unchanged; an
operator that was not offered is still refused;
- protocol: type 25 with operator 0 round-trips;
- PostgreSQL: the reservation store accepts operator 0 (refused here only by the
pending choice) and refuses a zero offer tick; the host test feeds until a new
offer, declines it, publishes result 3, consumes the offer and reports
`committed`;
- client panels: an unaffordable candidate cannot be chosen, and Decline sends
operator 0.
Executed locally:
- WSL `m97-postgres` build, 79/79 CTests;
- `postgres-check.sh --full`, including the v40 upgrade, history and checksum-drift
drills;
- clang-tidy-19 on the changed sources;
- WSL client 14/14 with clang-tidy, plus the Xvfb check;
- MSVC `client-package` 18/18;
- clang-format 19.