[PR #4181] [MERGED] horizon-bots: abusive-client behaviours (flood-move, flood-acks, flood-packets, flood-chunks) #5465

Closed
opened 2026-11-03 05:12:47 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4181
Author: @ludovic111
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @ludovic111

Base: main ← Head: tools/bots-abusive-client


📝 Commits (4)

  • d9e5234 horizon-bots: abusive client behaviours (flood-move, flood-acks, flood-packets) to test a server's limits
  • d322e06 horizon-bots: flood-chunks, one legal move a tick that never waits for chunks
  • 3ffa45a horizon-bots: flood-chunks climbs to cruising height first
  • 6edf1ff horizon-bots: costly floods (use, click, suggest, book, sign, recipe) and --no-read

📊 Changes

1 file changed (+255 additions, -7 deletions)

View changed files

📝 crates/horizon-bots/src/main.rs (+255 -7)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

Part of #4179 (robustness against one abusive client; server plan #3989).

horizon-bots gets four behaviours for a single abusive client. Run one beside a normal crowd (--bots 1 --behaviour <b>) to see what it costs everyone else:

  • flood-move: --flood position packets a tick, each 64–256 blocks away, ignoring chunks.
  • flood-acks: --flood ChunkBatchReceived a tick asking for 64 chunks, while exploring.
  • flood-packets: --flood rotations a tick.
  • flood-chunks: one move a tick, 9.9 blocks straight ahead (just under the moved-too-quickly limit), never waiting for chunks.

--flood N sets the packets a tick (default 100). Nothing changes for the existing idle, walk, explore and mixed.

The numbers these produced on playhorizon are in #4179. One finding: flood-packets 10000 grows the server by about 1 GB a minute, because of the unbounded per-player inbox. The fix comes in its own PR.

Tool only (players see no change): skip-release.

pr_ready

pr_ready (tools/pr_ready.py --quick on ludovics-mac-mini, against origin/main at a93ffc2f3, 1 min 44 s)

Check Result
Scope ✅ 1 files, +91 −5
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 480 passed (1 min 7 s)
rustfmt ✅ (6 s)
clippy ✅ (13 s)
tests: horizon-bots ✅ 0 passed (17 s)
Parity ➖ 1 affected, to run in CI (--quick): lan_integration

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/4181 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `tools/bots-abusive-client` --- ### 📝 Commits (4) - [`d9e5234`](https://github.com/horizon-rust/horizon/commit/d9e5234fa3ef234c8c450846aff21b05643c886e) horizon-bots: abusive client behaviours (flood-move, flood-acks, flood-packets) to test a server's limits - [`d322e06`](https://github.com/horizon-rust/horizon/commit/d322e068e23ce813290925c1315eed608f97d4fe) horizon-bots: flood-chunks, one legal move a tick that never waits for chunks - [`3ffa45a`](https://github.com/horizon-rust/horizon/commit/3ffa45a5cf549be988251b0ea2c9b50670b18312) horizon-bots: flood-chunks climbs to cruising height first - [`6edf1ff`](https://github.com/horizon-rust/horizon/commit/6edf1ff467680b6da1b804f510974446b42d813d) horizon-bots: costly floods (use, click, suggest, book, sign, recipe) and --no-read ### 📊 Changes **1 file changed** (+255 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-bots/src/main.rs` (+255 -7) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Part of #4179 (robustness against one abusive client; server plan #3989). horizon-bots gets four behaviours for a single abusive client. Run one beside a normal crowd (`--bots 1 --behaviour <b>`) to see what it costs everyone else: - `flood-move`: `--flood` position packets a tick, each 64–256 blocks away, ignoring chunks. - `flood-acks`: `--flood` `ChunkBatchReceived` a tick asking for 64 chunks, while exploring. - `flood-packets`: `--flood` rotations a tick. - `flood-chunks`: one move a tick, 9.9 blocks straight ahead (just under the moved-too-quickly limit), never waiting for chunks. `--flood N` sets the packets a tick (default 100). Nothing changes for the existing `idle`, `walk`, `explore` and `mixed`. The numbers these produced on playhorizon are in #4179. One finding: `flood-packets 10000` grows the server by about 1 GB a minute, because of the unbounded per-player inbox. The fix comes in its own PR. Tool only (players see no change): `skip-release`. <details><summary>pr_ready</summary> **pr_ready** (`tools/pr_ready.py --quick` on ludovics-mac-mini, against origin/main at a93ffc2f3, 1 min 44 s) | Check | Result | | --- | --- | | Scope | ✅ 1 files, +91 −5 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 480 passed (1 min 7 s) | | rustfmt | ✅ (6 s) | | clippy | ✅ (13 s) | | tests: horizon-bots | ✅ 0 passed (17 s) | | Parity | ➖ 1 affected, to run in CI (--quick): lan_integration | </details> 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:12:47 +07:00
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#5465
No description provided.