goobwerx

Who decides when the party is ready?

The spell policy was editable, but three Go constants still decided whether the party could begin a pull.

A companion could accept a new Lua spell policy and still refuse to start a pull in Fargodeep. Before it chose a spell, the mission compared the party’s resources against three thresholds written in Go. Editing the playbook could change the fight only after those values let it begin.

Readiness thresholds previously set in Go
ResourceThreshold
Party health95%
Base mana45%
Energy90

One policy from planning through execution

Uther’s PR moved the thresholds into the shared Lua objective module. Initial readiness, review of a proposed plan, and final pull admission now consult the same accepted policy revision. The native client still checks who is acting, where they are, and whether the target and current game state permit the action.

Nine ordinary CLI cases covered threshold boundaries, policy edits, and changes between planning and execution. The cases ran under the existing 5 ms policy watchdog and 32 KiB output cap. Those are the configured limits. The defense path still responded to enemies that were already engaged when the party fell below its initial thresholds.

A quest had the same problem one step earlier

The starter-quest flow already consulted Lua about accepting a quest. Python still chose which questgiver and observed menu to investigate first. An earlier PR moved that choice and the prerequisite checks into Lua as well. The host supplies journal and dialogue observations and checks the proposed action, including whether a previous uncertain attempt needs reconciliation.

The dated entry marks the Fargodeep change merging into public source. The evidence for both changes comes from the reviewed code and test runs.

Fargodeep readiness change · Starter quest routing change