Preempt background inference for live turns

This commit is contained in:
Meta Vens 2026-08-17 18:13:23 +02:00
commit 8d34700e62
4 changed files with 169 additions and 20 deletions

View file

@ -397,6 +397,13 @@ Compiler approval retains topology/cast/pressure/player-role/coverage/gap data,
while raw campaign state, evidence, model receipts, private goals, memories, and
relationships remain operator-only.
Scheduler priority is now structural rather than a pair of atomic checks. Live
requests notify and cancel an in-flight background wave, which drops its cell
tasks/provider futures; they also hold the shared side of a commit gate that a
scheduler tick must acquire exclusively. A test proves both cancellation and
commit exclusion. Return catch-up remains on the live path and may commit its
required ticks before the player's next action.
Next: commit and build this repaired candidate, replay the same authenticated
Huygens campaign in an isolated runtime, inspect both the visible surface and
the literal HTTP response, then prove away catch-up/concurrency/persistence/

View file

@ -43,6 +43,12 @@ the campaign revision and world time untouched. Background inference checks
live-turn pressure before launch and again before commit; return catch-up uses
the same command path with player-turn priority.
A live request also interrupts an in-flight scheduler wave. Dropping that wave
aborts its parallel cell tasks before they can launch later Persona stages, and
a shared/exclusive commit gate makes scheduler commit impossible while any live
request is active. Return catch-up is intentionally exempt because it is part of
the live request and must finish before the requested player action.
Resolution-demand focal IDs are salience hints, not partition commands. They
cannot create mandatory singleton cells or exceed the configured budget. Cell
Projectors receive decision-relevant situation state; cell Interpreters receive