Skip to main content

Module digest

Module digest 

Source
Expand description

Orchestrator context digest (plan §4.8).

Every injected orchestrator turn is prefixed with a deterministic digest rendered from MissionState: goal, contract, milestone/feature table, recent decisions, open user messages (~1-2k tokens). Because it is a pure function of state, render on the same state is byte-identical across runs — the layout is snapshot-tested.

Re-seed path (§4.5/§4.8): if the streaming orchestrator session dies and --resume fails, render_reseed (digest + plan.json) is the ENTIRE context a fresh session needs.

Functions§

render
Render the deterministic mission digest. Layout is stable and snapshot-tested — change it only together with the tests.
render_reseed
The full re-seed context (§4.8): the digest plus the approved plan JSON, verbatim. Digest + plan.json is the ENTIRE context a fresh orchestrator session is seeded with.