[PR #6516] [MERGED] Agent control: a hello command answers the protocol, the release and the command groups #6928

Closed
opened 2026-11-03 06:29:23 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/6516
Author: @Akirabane
Created: 11/1/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: feat/6484-control-hello


📝 Commits (2)

  • 1e03f61 Agent control: a hello command answers the protocol, the release and the command groups
  • 3f2b714 Merge origin/main into feat/6484-control-hello

📊 Changes

5 files changed (+50 additions, -4 deletions)

View changed files

📝 crates/horizon-client/src/bin/horizon-ctl/commands.rs (+3 -0)
📝 crates/horizon-client/src/game/control.rs (+40 -0)
📝 docs/api/agent-control.md (+5 -3)
📝 docs/api/stability.md (+1 -1)
📝 docs/horizon-ctl-commands.md (+1 -0)

📄 Description

🤖 Opened by both Akirabane's AI agent (Claude Code), and Akirabane Himself after his review.

Fixes #6484

What changed

docs/api/agent-control.md listed "A version" as not there yet and docs/api/stability.md planned a hello reply, but a script could not ask a running game which protocol it speaks.

  • horizon-ctl hello (and its MCP tool, mcp: true in the command table) answers {"protocol", "release", "features"}:
    • protocol: the control protocol's own version, 0.1.0 (the first numbered line; stability.md's rule: before 1.0 an addition makes the next patch, a breaking change the next line). It is the one decision in this change; the issue asks the maintainers to confirm it.
    • release: horizon_core::release::VERSION, the same string MCP serverInfo already carries (a source build reports its Cargo version, a release its tag).
    • features: the command groups the game serves (game, station, blocks, lan, friends, render, sculk, agent, ui, options, events, saves, pad), so a script can test for one before calling it.
  • hello is in the game's help list and in the generated docs/horizon-ctl-commands.md (horizon-ctl help --markdown).
  • Docs: MCP serverInfo was still called planned in both pages though mcp.rs sends it; the "Not there yet" bullet now only keeps the part that is missing (horizon-ctl refusing a game of another line), the stability table row says what exists, and the changelog gets a 0.1.0 line.

Not in this change: horizon-ctl --api N (needs the number settled first) and reply schemas.

How it was checked

A game started headless-style (horizon-ctl launch --offscreen --wait) in a creative world, then horizon-ctl hello:

{"features":["game","station","blocks","lan","friends","render","sculk","agent","ui","options","events","saves","pad"],"protocol":"0.1.0","release":"0.1.0"}

horizon-ctl hello --help prints the usage and details from the table, and horizon-ctl mcp lists a hello tool next to serverInfo {"name":"horizon-ctl","version":"0.1.0"}. Unit test game::control::tests::hello_names_the_protocol_the_release_and_the_command_groups: the reply carries the game's release, a three-number protocol and unique feature names. The horizon-ctl tests (19, including the one that keeps docs/horizon-ctl-commands.md in step with the table) pass.

Self-check

tools/pr_ready.py --quick --base origin/main:

Check Result
Scope 5 files, +50 −4
Cargo.lock unchanged
rustfmt ✅
clippy ✅
tests: horizon-client, horizon-client-lib 587 passed, 2 failed: native_hooks::native_breathing_stays_hookable and native_loot_kinds_stay_hookable read a source file with LF line endings; they fail the same way on my Windows checkout without this change
Python tests 1 error: test_port_ledger (a global tests package shadows the repo's on my machine), not touched here
Parity not run (--quick): not a vanilla behaviour, the CI parity job has nothing to pick here

Label: a change for agents and scripts, feature if the Team lists it under New.


🔄 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/6516 **Author:** [@Akirabane](https://github.com/Akirabane) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/6484-control-hello` --- ### 📝 Commits (2) - [`1e03f61`](https://github.com/horizon-rust/horizon/commit/1e03f61c98856d46ef98490cfa4e2b3f6f21a761) Agent control: a hello command answers the protocol, the release and the command groups - [`3f2b714`](https://github.com/horizon-rust/horizon/commit/3f2b714ed60034dddac405b42f6201bda8acb33a) Merge origin/main into feat/6484-control-hello ### 📊 Changes **5 files changed** (+50 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/bin/horizon-ctl/commands.rs` (+3 -0) 📝 `crates/horizon-client/src/game/control.rs` (+40 -0) 📝 `docs/api/agent-control.md` (+5 -3) 📝 `docs/api/stability.md` (+1 -1) 📝 `docs/horizon-ctl-commands.md` (+1 -0) </details> ### 📄 Description > 🤖 Opened by both Akirabane's AI agent (Claude Code), and Akirabane Himself after his review. Fixes #6484 ## What changed `docs/api/agent-control.md` listed "A version" as not there yet and `docs/api/stability.md` planned a `hello` reply, but a script could not ask a running game which protocol it speaks. - `horizon-ctl hello` (and its MCP tool, `mcp: true` in the command table) answers `{"protocol", "release", "features"}`: - `protocol`: the control protocol's own version, `0.1.0` (the first numbered line; `stability.md`'s rule: before 1.0 an addition makes the next patch, a breaking change the next line). It is the one decision in this change; the issue asks the maintainers to confirm it. - `release`: `horizon_core::release::VERSION`, the same string MCP `serverInfo` already carries (a source build reports its Cargo version, a release its tag). - `features`: the command groups the game serves (`game`, `station`, `blocks`, `lan`, `friends`, `render`, `sculk`, `agent`, `ui`, `options`, `events`, `saves`, `pad`), so a script can test for one before calling it. - `hello` is in the game's `help` list and in the generated `docs/horizon-ctl-commands.md` (`horizon-ctl help --markdown`). - Docs: MCP `serverInfo` was still called planned in both pages though `mcp.rs` sends it; the "Not there yet" bullet now only keeps the part that is missing (`horizon-ctl` refusing a game of another line), the stability table row says what exists, and the changelog gets a `0.1.0` line. Not in this change: `horizon-ctl --api N` (needs the number settled first) and reply schemas. ## How it was checked A game started headless-style (`horizon-ctl launch --offscreen --wait`) in a creative world, then `horizon-ctl hello`: ``` {"features":["game","station","blocks","lan","friends","render","sculk","agent","ui","options","events","saves","pad"],"protocol":"0.1.0","release":"0.1.0"} ``` `horizon-ctl hello --help` prints the usage and details from the table, and `horizon-ctl mcp` lists a `hello` tool next to `serverInfo` `{"name":"horizon-ctl","version":"0.1.0"}`. Unit test `game::control::tests::hello_names_the_protocol_the_release_and_the_command_groups`: the reply carries the game's release, a three-number protocol and unique feature names. The `horizon-ctl` tests (19, including the one that keeps `docs/horizon-ctl-commands.md` in step with the table) pass. ## Self-check `tools/pr_ready.py --quick --base origin/main`: | Check | Result | | --- | --- | | Scope | 5 files, +50 −4 | | Cargo.lock | unchanged | | rustfmt | ✅ | | clippy | ✅ | | tests: horizon-client, horizon-client-lib | 587 passed, 2 failed: `native_hooks::native_breathing_stays_hookable` and `native_loot_kinds_stay_hookable` read a source file with LF line endings; they fail the same way on my Windows checkout without this change | | Python tests | 1 error: `test_port_ledger` (a global `tests` package shadows the repo's on my machine), not touched here | | Parity | not run (`--quick`): not a vanilla behaviour, the CI parity job has nothing to pick here | Label: a change for agents and scripts, `feature` if the Team lists it under New. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:29:23 +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#6928
No description provided.