Logging and replay

Logging and replay#

A run records a Trajectory: for each tick and each component, what was observed, believed and chosen, and optionally the full record of the objective, term by term and policy by policy. A recorded trace can be replayed through a model, which recomputes beliefs and the free energy along it without acting.

What a run records#

Trajectory

What run() recorded: a tree with one node per component of the System.

Trace

What a planning step kept of one round's plan (plan(trace=True), in MindCarry.trace).

MindCarry

One planning mind's internal state between rounds, the only place its beliefs live: the carry of plan().

Replaying a trace#

replay

Drive (system, params) through a recorded trace (design: replay.md R1–R7).

replay_document

replay() from a description document (design: replay.md R8).

Replay

What replay() returns.

stack_traces

Pad variable-length traces to one T and stack them: the batch convention (R7).