goobwerx

The target that wasn’t there

A typed nil in Go arrived as an empty table in Lua. The Practice planner saw a target where the game had supplied none.

The Practice planner received an observation with no selected target. Inside Lua, it saw an empty table where it expected nil. The empty table was enough to send the decision down the stale-target path before it had an opportunity to choose anyone.

Absence has to survive the handoff

A Go map can be nil while an interface carrying it still has a type. The policy bridge could turn that typed nil map into an empty Lua table. The target-free regression now checks that no selected row is fabricated and that planning reaches the route qualification step with no attack dispatched.

The broader change moved Practice goals, readiness, target ranking, and lifecycle choices into the accepted starter Lua policy. Go still checks quest counters and whether the requested movement or game action is permitted for the current character and visit.

Make the ordinary executable prove it

Earlier provider runs hit the real default resource limit. The team kept the native semantic checks and tested an ordinary executable separately through its real reload and evaluation path. That test used the production limits of 5 ms and 32 KiB and the same full input frame.

Nearby candidates in the fixture
32
Quest rows in the fixture
25
Decision fields checked for agreement
6

The final source checks passed with all 32 candidates and the motion point derived from a trajectory intact. A resource error still fails the decision test. The cause of the earlier budget failures remained open.

Practice lifecycle change · Target-free frame test · Default-budget fixture · Required CI