[GH-ISSUE #290] [mob_ai] drowned scenarios diverge from vanilla (random draws off by one) #81

Closed
opened 2026-11-02 15:36:10 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @ludovic111 on GitHub (Oct 15, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/290

The mob_ai parity harness fails on main (282acfe0) in a drowned scenario, so every PR whose parity run includes mob_ai fails on it:

  • main: drowned_pool mob 0: first divergence at tick 16 of 201 (random draws this tick: vanilla 9, horizon 10)
  • #267's run (main + streaming change): drowned_pool_swimmer mob 0: first divergence at tick 1 of 201 (random draws this tick: vanilla 6, horizon 7), then entity.drowned.ambient_water played at tick 51 where vanilla plays nothing.

99/100 scenarios match; which drowned scenario fails varies between runs, so one extra random draw in a drowned goal (likely a swim/water goal or the ambient sound roll) depends on something not fixed by the scenario. Reproduce: python3 tools/parity.py mob_ai, then .local/parity-runner/logs/mob_ai.log.

🤖 Generated with Claude Code

Originally created by @ludovic111 on GitHub (Oct 15, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/290 The mob_ai parity harness fails on main (282acfe0) in a drowned scenario, so every PR whose parity run includes mob_ai fails on it: - main: `drowned_pool mob 0: first divergence at tick 16 of 201 (random draws this tick: vanilla 9, horizon 10)` - #267's run (main + streaming change): `drowned_pool_swimmer mob 0: first divergence at tick 1 of 201 (random draws this tick: vanilla 6, horizon 7)`, then `entity.drowned.ambient_water` played at tick 51 where vanilla plays nothing. 99/100 scenarios match; which drowned scenario fails varies between runs, so one extra random draw in a drowned goal (likely a swim/water goal or the ambient sound roll) depends on something not fixed by the scenario. Reproduce: `python3 tools/parity.py mob_ai`, then .local/parity-runner/logs/mob_ai.log. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
bsakaguchi 2026-11-02 15:36:10 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@ludovic111 commented on GitHub (Oct 15, 2026):

Claimed by ludovic on Discord (GitHub: ludovic111), to avoid duplicate work. The claim lapses after 14 days without activity (a comment, a pull request or a commit mentioning #290).

<!-- gh-comment-id:6186021313 --> @ludovic111 commented on GitHub (Oct 15, 2026): Claimed by `ludovic` on Discord (GitHub: `ludovic111`), to avoid duplicate work. The claim lapses after 14 days without activity (a comment, a pull request or a commit mentioning #290). <!-- kira:work -->
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#81
No description provided.