Document Barracks generated content caching

This commit is contained in:
Meta Vens 2026-07-02 00:25:59 +01:00
commit e069cee161
2 changed files with 39 additions and 0 deletions

View file

@ -189,6 +189,36 @@ Weksa vocals can give these interactions voice once the text event is accepted
and bounded. Voice should reinforce staff presence without requiring animated
portraits or a full barracks life sim.
Generated outputs must be cached as content artifacts. Persona turns, accepted
dialogue, Weksa voicing, and possible Vili acting or gesture data should not be
recomputed every time a player opens the Barracks. Weksa interlingua tends to
carry gesture information, so the cache should be able to store text, vocal
performance, timing, expression, gesture intent, provenance, and the state keys
that produced the event.
This gives the live service a sane cost curve. Early players can expensively
"discover" fresh staff interactions when a character, scenario, relationship,
or trauma state has not been seen before. As the cache fills, common situations
resolve to existing artifacts and only noteworthy state changes need new model
work. The Barracks should feel alive without turning every hover, debrief, or
minor stress tick into a model call.
The cache key should include enough typed context to preserve continuity:
- character id and variant;
- event type;
- scenario id and faction context;
- relevant run facts;
- current stress, injuries, scars, and traits;
- relationships and bonds involved;
- language, voice, and presentation policy;
- model/prompt/pipeline version.
Cached artifacts may be reused exactly, remixed through bounded templates, or
invalidated when character state crosses a meaningful threshold. The important
rule is that generation happens at moments of narrative consequence, not as a
constant renderer dependency.
V1 should treat generated interactions as authored-bounded events:
- post-run debriefs;

View file

@ -1155,6 +1155,15 @@ voice accepted interactions. The generated layer must preserve continuity:
characters are not disposable text fountains, and their state changes must be
inspectable and able to affect future runs.
Model-generated outputs should be cached as discovered content. Persona text,
accepted debriefs, Weksa vocal renders, and possible Vili gesture or acting
data are content artifacts with provenance, not transient UI effects. Fresh
character/scenario/state combinations can justify expensive generation; common
states should resolve from cache once the service has seen them. Only
meaningful changes such as new scars, deaths, bonds, refusals, promotions,
faction revelations, or black-box events should force the expensive pipeline
back awake.
## User Interface Direction
### Shared Hangar Surface