← Back to AzerothBenchunlisted follow-up · not indexed

research / follow-up note / 2026-11-26

Why a 22,600-line rulebook still looks like a bot

In AzerothBench, the obvious problem with written rules was walking into buildings the strip cannot see. Watch the program play in an open field for ten minutes and you notice a second problem: even where there are no walls, layered rules bump into each other.

What showed up in the logs

Every rule you write to fix one bad fight leaves behind a timer or threshold that eventually fights two older rules.

If you only look at the numbers, a fresh rogue earning 5,000 XP an hour with zero deaths looks clean. If you sit and watch the screen, she wiggles left and right on the way to a wolf, spins in melee, tabs onto an innocent mob mid-pull, and inherits forgotten settings from last week's character.

None of those habits is random. Every one of them is deterministic Rust code doing what an earlier commit asked it to do.

What you see on screenMeasured in the logWhere it came from in code
Spinning and twitching in fights8.74 full turns/min in combat; 14.5 left-right flips/min walking up (rogue baseline)0.09–0.18 rad turn thresholds narrower than one 50 ms tick (9°) plus 150 ms screen lag, and micro-turning inside a 180° melee arc.
Switching to a second mob mid-pull5 mid-combat target switches in 9 min; 4 of 17 pulls became 2-mob fightsThree older rules collided: Throw opener, a spin for unseen attackers, and a camp-pull Tab press on damage.
Selling upgrades and filling bagsFree slots fell 18 → 4 in 14 min; white upgrades sold, unusable green mail keptA leftover machine flag (AGENT_BAGS=junk from an old Duskwood hut bug) plus a bag check still hardcoded to ~= "WARRIOR".
Repair death loops and silent freezes37 straight deaths at 0% durability (Desolace); 6-hour idle stall (Duskwood)Fight rules interrupted broken-gear repair walks; an unhandled nav state sat running without firing the trapped check.

1. Spinning and twitching

When a bot wiggles, people usually suggest adding small random delays so it looks more human. I disabled anything like that early on; fake jitter hides bugs without fixing steering. The wiggle is an ordinary control-loop problem.

On the first minutes of last night's rogue run, our smoothness script measured 7.3 left-right direction flips per minute overall, 14.5 flips per minute while walking at an enemy nameplate, and 8.74 full 360° turns per minute during fights.

In mission.rs, two numbers caused most of it. First, one 50 ms turn tick rotates the character 9° (0.157 rad), and screen capture plus strip decoding lags by about 150 ms. Both walk-up rules used a 0.09 rad (5.1°) deadband, so a wolf 6° to the right triggered a 9° turn, overshot to 3° left, and corrected back on the next frame. Second, melee attacks in World of Warcraft land anywhere in the front 180°, yet our fight rule kept turning whenever the nameplate drifted more than 10° off centre.

Tuning those numbers by hand is tighter than it looks. When I widened the walk-up deadband to 0.22 rad (12.6°) to stop the wiggle, 7 of our 322 simulator tests failed because the character walked past small hitboxes without swinging; widening combat facing broke Charge and Throw alignment. Pulling walk-up back to 0.13 rad and widening facing only once in melee passed all 322 tests, and fixing the Throw spin below cut full turns in combat from 8.74 to 4.07 a minute. It is better, and it is still a stack of thresholds trying to stand in for eyes.

2. Attacking a second mob in the middle of a pull

The worst habit to watch live was target-hopping: she would throw a knife at one wolf, then halfway through its run toward her, abruptly switch targets to a second wolf and fight both. In the first nine minutes of the rogue run, she switched targets mid-fight five times and turned 4 of 17 pulls into two-mob fights.

No single function was broken. Three rules that had each earned their place on an earlier character fired at the same time:

  1. Throw pulls an unhurt mob from range so the fight happens outside its camp.
  2. A bystander check says: if you are in combat and your current target is unhurt, out of melee, and not yet flagged as attacking you, spin around and press Tab to find whatever hit you.
  3. A camp-pull rule says: while waiting up to 5 seconds for a pulled mob to walk in, if your health drops while your target is still above 97%, press Tabevery 700 ms.

Put them together on a rogue: the knife leaves her hand, the wolf starts running in at 100% health, and for two seconds the threat flag has not updated. Rules 2 and 3 decide that wolf is a bystander, press Tab onto a fresh wolf nearby, and pull a second enemy. Telling both rules to wait for 8 seconds after a Throw fixed it right away:

Level 3 rogue after the fix: Throw on key 4, waiting still while the wolf runs in, then Sinister Strike and Eviscerate with no extra Tab press.

That particular three-rule tangle is gone. On a codebase of 269 logged rules, the next one is always waiting for a pet, a caster, or a fleeing mob to trigger it.

Operator dashboard showing live safety holds and recent problem log
The operator dashboard. Every rule has a log entry and an off switch, and working out why two old rules disagreed still means reading the trace by hand or with a coding agent.

3. Old settings and upkeep bugs

The same accumulation happens outside fights, in selling, gear, repairs, and training. Four examples from our logs:

  • On 19 November I set AGENT_BAGS=junkon this Mac because a Duskwood vendor stood inside a hut the character could not enter. Starting the rogue a week later inherited that setting, so she destroyed grey items instead of walking 50 yards to sell them and ran short of silver for her level 6 skills.
  • When hunter and rogue stat weights were added to gearVerdict in the Lua addon, bagVerdict two hundred lines further down still checked class ~= "WARRIOR". White leather upgrades got sold while unusable green mail stayed in her bags.
  • On a level 12–13 druid, a rule that called off repair trips 60 yards from the vendor cut XP per hour from 3,939 to 1,646 with four deaths; letting the trip finish brought it straight back to 3,808. On a level 36 warrior in Desolace, hitting 0% durability caused 37 deaths in a row because the fight rules kept stopping to swing with a broken weapon on the walk to the repairer.
  • In Duskwood, the controller hit a navigation state its stuck-hearth rule did not list (nav state Some(None)) and stood still, alive and unpaused, for six hours.

4. Where to draw the line

Every bug on this page was fixable, and fixing each one moved the numbers in the right direction. Even so, patching rule #270 changes how you think about what code should own.

Code is great for hard rules that must never drift: letting go of the keys when the player sits down, counting combo points and cooldowns, tracking which quest step comes next, and refusing bad model suggestions. Code is clumsy when you ask it to steer smoothly toward a moving target, judge which animal in a camp is actually running at you, or walk through an unfamiliar doorway.

Takeaway

A fast visual movement model would replace more than wall-following.

In the main note, the case for putting a learned visuomotor model into Loop 1 was getting into buildings and around fences. The quieter case is here: letting a model that sees the screen handle steering and visual target lock, so the rulebook can go back to being small and exact.