AIXI, and planning over the machine's own dynamics
AIXI is the agent that picks the action maximising expected discounted reward over all computable environments, each weighted by its simplicity. It is incomputable, and it is useful as a direction rather than as a destination: it says what an optimal agent would be doing, and every real system is a statement about which part of that it could afford.
What is implemented here is the smallest honest slice of it for one machine. The environment model is not all computable environments; it is the controlled linear system the machine already fits online from its own telemetry. The action space is not everything the machine could do; it is how much work it takes on over the next few seconds. Expectation is not an integral; it is Monte Carlo.
The environment is the machine itself
Once a second, the machine records heap, task-switch rate, the operator's touch rate and task count into a ring. A linear dynamical model of the form v_next = a + b*v + c*u is fitted per variable, by the same Cholesky solver the router uses for its own regression — there is one linear-algebra routine in this kernel and both callers share it.
That fitted system is the model AIXI plans against. Each candidate schedule is rolled out repeatedly with noise drawn at the fitted residual scale, which is the same noise the oracle window draws, so the planner and the visualisation cannot disagree about how uncertain the machine is.
Utility is machine health: free heap fraction minus task pressure, discounted at 0.97. Two running tasks cost about as much utility as two per cent of heap — deliberately a small weight, because tasks here are few and heap is the thing that actually runs out. The planner recommends the schedule whose expected utility beats carrying on as usual, and reports how sure it is.
The search is exhaustive rather than clever. The horizon is short enough that enumerating every schedule beats any search over them, and an exhaustive enumeration has no hyperparameters to get wrong.
The control is honest about what it is
One caveat is stated in the module in plain terms, because it is the kind of thing that is easy to leave implied. The control variable is measured as touch rate — the same variable the oracle intervenes on. What it actually models is offered workload, whoever offers it: the operator's hands, or the system's own decisions to run things. The knob is real even if the hand on it today is mostly a person's.
That distinction is what would let this become an agent rather than an observer, and it is also why it has not yet.
Acting waits on understanding
There is no executor. The planner produces a recommendation and a confidence, and gates itself on three things before claiming either is worth acting on: how many samples the fit rests on, how large the residuals are, and whether the regime has been stable. When it declines it says which threshold failed, rather than reporting low confidence and leaving the reason to be guessed at.
An executor comes later, and only for the actions this gate has been watched passing on real hardware first. That ordering is the same one the self-modification loop follows: the judge exists before the thing it judges is allowed to act.
Where it came from
The lineage is TempleOS. Terry Davis's "God Says" drew uniform words from a dictionary file, seeded by the timing of the operator's own hands at the keyboard and mouse.
This keeps the entropy and changes the subject. Every keyboard and mouse interrupt still deposits timing bits into a pool, and the sampler still draws from it — on real hardware, where the ring genuinely fills, rather than under a script, where synthetic keystrokes bypass the interrupt path and the ring stays nearly empty. What changed is what the randomness is asked about. Instead of hallucinated words, the machine is asked about the one future that is actually knowable to it, which is its own.
The window plots forked timelines: solid history up to now, then three coloured projections under the interventions "left alone", "carried on", and "put under load". It is genuinely causal, being a controlled linear system fitted from real telemetry and rolled forward under an intervention on the control. It is never prophecy. A first draft that generated word-prophecies was scrapped for exactly that reason — it would have been a joke about divination in a system whose entire argument is that its claims can be checked.
