[PR #1583] [MERGED] Horizon APIs: docs portal and the stability and versioning policy #3612

Closed
opened 2026-11-03 04:10:48 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: main ← Head: docs/platform-apis


📝 Commits (2)

  • 0a1d3a7 Horizon APIs: the docs portal and the stability and versioning policy
  • e5bfce3 Horizon APIs: ways in for mods, server mods as api 0.3, who promotes to stable

📊 Changes

11 files changed (+559 additions, -0 deletions)

View changed files

📝 docs/README.md (+1 -0)
➕ docs/api/README.md (+55 -0)
➕ docs/api/agent-control.md (+55 -0)
➕ docs/api/data-formats.md (+40 -0)
➕ docs/api/launcher.md (+57 -0)
➕ docs/api/mods.md (+99 -0)
➕ docs/api/server.md (+60 -0)
➕ docs/api/shaders.md (+54 -0)
➕ docs/api/stability.md (+103 -0)
➕ website/docs/apis.md (+34 -0)
📝 website/docs/nav.json (+1 -0)

📄 Description

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

Ludovic, 2026-10-24: "fais des api pour tout et mets tout dans la docs". This is the portal and the policy. No API code changes here; the generated references are #1581 (mods) and #1582 (server).

What

  • docs/api/README.md: the six surfaces (mods, shaders, agent control, servers, launcher, data formats), their API, stability and reference; how the APIs are designed (from users' tasks and Horizon's architecture, never modelled on another project's); the table of generated references and how to update each.
  • docs/api/stability.md: the policy. A version per API (semver lines; additions = patch before 1.0, minor after; breaking = a new line or major), what counts as breaking (including new WIT enum cases sent to mods), the levels experimental / preview / stable with what each promises and needs, deprecation windows (30 days and one line for preview, 180 days and the old major served side by side for stable), the deprecation steps, compatibility tests per surface, the changelog rule, and the level of every part today.
  • One page per surface (mods.md, shaders.md, agent-control.md, server.md, launcher.md, data-formats.md): overview with counts measured from the source, guide, reference, examples, stability, "not there yet", changelog. They link the existing design docs rather than repeating them.
  • Website: a "Build on Horizon" group with website/docs/apis.md (the surfaces, the levels, the design rules, links to the repo's pages).
  • docs/README.md: one line linking the portal.

The shader page describes a Horizon-native WGSL design from first principles (stages with fixed signatures inside the renderer's own passes, typed inputs generated from the Rust types, options as WGSL override constants, hot reload with naga validation, a GPU-time overlay). It doesn't describe the clean-room format loader and was written without its spec.

How tested

node website/build.mjs        # 13 docs pages, no broken /docs links
node --test src/ scripts/     # (website) 19 passed
tools/check_public_tree.py    # passed

python3 -m unittest discover -s tests: 287 run, 2 errors that are this Mac's environment (no java on PATH outside env.sh; /private/var temp path), unrelated to docs.

Ways in for mods (second commit)

docs/api/mods.md "Ways in": one API (the WIT world), one sandbox (WebAssembly), many languages. Rust is first-class; Lua scripts are planned, run by an interpreter that is itself a WebAssembly mod (built with the SDK), linked with only the script's declared capabilities, with hot reload of the script; C/C++/Zig and TinyGo/AssemblyScript/JS-TS are to be evaluated, each shown with its cost measured against Rust on the same tick-heavy example. No second host-side scripting runtime.

Decisions folded in (orchestrator, 2026-10-24)

Deprecation windows 30 days (preview) / 180 days (stable); starting levels server stable, mods/agent control/launcher preview; promotion to stable is proposed by the orchestrator with the evidence and approved by Ludovic; server mods are their own api = "0.3", and nothing here depends on draft #1189.

Needs Ludovic

Merge after #1581 and #1582: this portal links their generated pages.

🤖 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/1583 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/24/2026 **Status:** ✅ Merged **Merged:** 10/24/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `docs/platform-apis` --- ### 📝 Commits (2) - [`0a1d3a7`](https://github.com/horizon-rust/horizon/commit/0a1d3a75345f94cee5f4c578cace07b6d8449c6d) Horizon APIs: the docs portal and the stability and versioning policy - [`e5bfce3`](https://github.com/horizon-rust/horizon/commit/e5bfce3b37e94b6583b37d6061aa1cd428dfaa0d) Horizon APIs: ways in for mods, server mods as api 0.3, who promotes to stable ### 📊 Changes **11 files changed** (+559 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/README.md` (+1 -0) ➕ `docs/api/README.md` (+55 -0) ➕ `docs/api/agent-control.md` (+55 -0) ➕ `docs/api/data-formats.md` (+40 -0) ➕ `docs/api/launcher.md` (+57 -0) ➕ `docs/api/mods.md` (+99 -0) ➕ `docs/api/server.md` (+60 -0) ➕ `docs/api/shaders.md` (+54 -0) ➕ `docs/api/stability.md` (+103 -0) ➕ `website/docs/apis.md` (+34 -0) 📝 `website/docs/nav.json` (+1 -0) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Ludovic, 2026-10-24: "fais des api pour tout et mets tout dans la docs". This is the portal and the policy. No API code changes here; the generated references are #1581 (mods) and #1582 (server). ## What - **`docs/api/README.md`**: the six surfaces (mods, shaders, agent control, servers, launcher, data formats), their API, stability and reference; how the APIs are designed (from users' tasks and Horizon's architecture, never modelled on another project's); the table of generated references and how to update each. - **`docs/api/stability.md`**: the policy. A version per API (semver lines; additions = patch before 1.0, minor after; breaking = a new line or major), what counts as breaking (including new WIT enum cases sent to mods), the levels experimental / preview / stable with what each promises and needs, deprecation windows (30 days and one line for preview, 180 days and the old major served side by side for stable), the deprecation steps, compatibility tests per surface, the changelog rule, and the level of every part today. - **One page per surface** (`mods.md`, `shaders.md`, `agent-control.md`, `server.md`, `launcher.md`, `data-formats.md`): overview with counts measured from the source, guide, reference, examples, stability, "not there yet", changelog. They link the existing design docs rather than repeating them. - **Website**: a "Build on Horizon" group with `website/docs/apis.md` (the surfaces, the levels, the design rules, links to the repo's pages). - `docs/README.md`: one line linking the portal. The shader page describes a Horizon-native WGSL design from first principles (stages with fixed signatures inside the renderer's own passes, typed inputs generated from the Rust types, options as WGSL `override` constants, hot reload with naga validation, a GPU-time overlay). It doesn't describe the clean-room format loader and was written without its spec. ## How tested ``` node website/build.mjs # 13 docs pages, no broken /docs links node --test src/ scripts/ # (website) 19 passed tools/check_public_tree.py # passed ``` `python3 -m unittest discover -s tests`: 287 run, 2 errors that are this Mac's environment (no `java` on PATH outside env.sh; `/private/var` temp path), unrelated to docs. ## Ways in for mods (second commit) `docs/api/mods.md` "Ways in": one API (the WIT world), one sandbox (WebAssembly), many languages. Rust is first-class; Lua scripts are planned, run by an interpreter that is itself a WebAssembly mod (built with the SDK), linked with only the script's declared capabilities, with hot reload of the script; C/C++/Zig and TinyGo/AssemblyScript/JS-TS are to be evaluated, each shown with its cost measured against Rust on the same tick-heavy example. No second host-side scripting runtime. ## Decisions folded in (orchestrator, 2026-10-24) Deprecation windows 30 days (preview) / 180 days (stable); starting levels server stable, mods/agent control/launcher preview; promotion to stable is proposed by the orchestrator with the evidence and approved by Ludovic; server mods are their own `api = "0.3"`, and nothing here depends on draft #1189. ## Needs Ludovic **Merge after #1581 and #1582**: this portal links their generated pages. 🤖 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 04:10:48 +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#3612
No description provided.