Bind NPC initiative to one reaction wave

This commit is contained in:
Meta Vens 2026-08-24 06:30:07 +02:00
commit cd4f712b1f
4 changed files with 144 additions and 0 deletions

View file

@ -217,6 +217,11 @@ messages.
knowledge, movement, clock, and institution lanes entirely, close the effect
object to undeclared properties, and default omitted maps to no mutation.
The focused regression and full 285-test library pass cover the cut.
- That failed assessment left a pending NPC choice which the next live reaction
wave appended to and later resolved at revision 60. Pending initiative now
belongs to one exact reaction-wave revision: a new wave replaces the old set,
and the kernel rejects resolution after any intervening revision. Same-wave
retry remains valid without allowing stale Persona output to rebase.
- Live refresh pressure reproduced and removed two contract faults: reuse of a
private-command idempotency key across separately sealed attempts, and
validation of a refresh receipt as if it carried the initial-login account

View file

@ -947,6 +947,10 @@ snapshot and removes unavailable knowledge, movement, clock, and institution
lanes before inference. Missing maps lower to no mutation. This keeps both the
prompt and correction surface smaller and prevents provider `null` placeholders
from stalling an NPC initiative on an operation the actor could not perform.
Pending NPC actions are revision-scoped reaction-window state. The next
reaction wave atomically replaces the set, and the kernel resolves an action
only when the current last event is the exact current-revision reaction wave.
Same-wave assessment correction remains possible; cross-turn rebasing is not.
Population fission now composes admitted child entities, stable child
identities, one lineage split, exact resource custody transfers, and exact