Skip to main content

Module environment

Module environment 

Source
Expand description

Environment — the two inputs that make a run different from the last one.

Wall-clock time and fresh identifiers are read from the operating system in nearly two hundred places. Replacing all of them would be busywork: most are Instant::now() measuring how long something took, and a latency number that varies between runs is the number doing its job.

The ones that matter are the ones whose answers are kept: a timestamp written into the session log, an id that names a log entry forever, a date that goes into the prompt the model reads. Those decide whether the same conversation, replayed, is the same conversation. They come from here.

§Not Instant

There is deliberately no monotonic clock on this contract. Instant cannot be formatted, stored or transmitted — everything it is used for is measurement, and measurement is exactly the category this is not for. Putting it here would invite hundreds of mechanical substitutions that buy nothing.

Structs§

FixedEnvironment
Time that moves only when it is asked, and identifiers that count.
ShiftedEnvironment
The machine’s clock moved to another starting point: it reads start when made, and from there runs at wall-clock speed. Identifiers stay fresh.
SystemEnvironment
The machine’s own answers.

Traits§

Environment
Where kept time and kept identifiers come from.