book: site pages (install, playground, agents, benchmarks) #597

Open
opened 2026-10-29 14:25:46 +00:00 by orion · 6 comments
Collaborator

Slice of the epic #582. Starts after #585 (the concept, the vertical slice and the book gates) is merged. This issue is the container of the site pages; each step below is its own issue and its own PR, filed just in time. Governing note: book/CONCEPT.md ("How a page is written", "Where every old page goes"). Touches the seed: no (documentation only).

Goal

Rework the pages of book/site/ that moved unchanged into the book: install.md, agents.md, play.md (taking over docs/tooling/the-playground.md), benchmarks.md, and refresh the generated list of index.md. The site pages keep the kind site (torb docs site writes them to the root of torb.dev).

Steps

  • #802 install.md and the regenerated site/index.md block
  • agents.md: for the person setting up an agent; the skill text stays in skills/ (filed when #802 is merged; also fixes the stale docs/site/agents.md mention in docs/contributing/the-skill.md)
  • play.md takes over docs/tooling/the-playground.md, which is deleted in the same PR unless a skill is still built from it (filed after agents.md)
  • benchmarks.md: filed only when a nightly has published a report to the forge release benchmarks (see "Benchmark numbers")

Benchmark numbers

The numbers of benchmarks.md come from the report benchmarks.json, which .forgejo/workflows/benchmarks.yml builds in forge CI and publishes to the release benchmarks; tools/fetch-benchmarks.sh hands it to torb docs site, and the page shows the report's own date and machine. The page is never written with numbers from a local run. State on 2026-11-14: the measure job completes (26 C and TorbScript measurements, the minimum is 24; nightly run 2695 on 2026-11-13, AMD EPYC-Genoa, 16 cores, gcc 13.3 -O2, Python 3.12.3, Node 24.21.0), but the publish step fails with the forge answered 401: token signature is invalid (also run 2623), so no benchmarks release exists and the page says "nothing measured yet". The benchmarks.md step is therefore ready only when releases/download/benchmarks/benchmarks.json exists, taken from a nightly that published it; a rework of the prose before then would have nothing to cite.

Acceptance criteria

  • Every page has the kind site and is written as book/CONCEPT.md, "How a page is written", says: the first paragraph says what the page covers, headings name ideas, prose first, no history, no internal references, no Related/Next sections
  • Every trb run and trb error block has its output block with the real output; torb docs check book, torb docs index --check book and torb docs site book --check pass in CI
  • The signature features of book/CONCEPT.md that the area touches are shown, not just named
  • The old pages of docs/ this slice replaces are deleted in the same PR, unless a skill is still built from them (then they stay, unpublished, and the PR says which)
  • install.md says the one command per system first, then how to check the install, then what torb build needs
  • agents.md is for the person setting up an agent, not for the agent; the skill text itself stays in skills/
  • The numbers on benchmarks.md come from the benchmark run they cite, with its date and machine, published by a forge CI run to the release benchmarks
Slice of the epic #582. Starts after #585 (the concept, the vertical slice and the book gates) is merged. This issue is the container of the site pages; each step below is its own issue and its own PR, filed just in time. Governing note: `book/CONCEPT.md` ("How a page is written", "Where every old page goes"). Touches the seed: no (documentation only). ## Goal Rework the pages of `book/site/` that moved unchanged into the book: `install.md`, `agents.md`, `play.md` (taking over `docs/tooling/the-playground.md`), `benchmarks.md`, and refresh the generated list of `index.md`. The site pages keep the kind `site` (`torb docs site` writes them to the root of torb.dev). ## Steps - [ ] #802 `install.md` and the regenerated `site/index.md` block - [ ] `agents.md`: for the person setting up an agent; the skill text stays in `skills/` (filed when #802 is merged; also fixes the stale `docs/site/agents.md` mention in `docs/contributing/the-skill.md`) - [ ] `play.md` takes over `docs/tooling/the-playground.md`, which is deleted in the same PR unless a skill is still built from it (filed after `agents.md`) - [ ] `benchmarks.md`: filed only when a nightly has published a report to the forge release `benchmarks` (see "Benchmark numbers") ## Benchmark numbers The numbers of `benchmarks.md` come from the report `benchmarks.json`, which `.forgejo/workflows/benchmarks.yml` builds in forge CI and publishes to the release `benchmarks`; `tools/fetch-benchmarks.sh` hands it to `torb docs site`, and the page shows the report's own date and machine. The page is never written with numbers from a local run. State on 2026-11-14: the measure job completes (26 C and TorbScript measurements, the minimum is 24; nightly run 2695 on 2026-11-13, AMD EPYC-Genoa, 16 cores, gcc 13.3 -O2, Python 3.12.3, Node 24.21.0), but the publish step fails with `the forge answered 401: token signature is invalid` (also run 2623), so no `benchmarks` release exists and the page says "nothing measured yet". The `benchmarks.md` step is therefore ready only when `releases/download/benchmarks/benchmarks.json` exists, taken from a nightly that published it; a rework of the prose before then would have nothing to cite. ## Acceptance criteria - [ ] Every page has the kind `site` and is written as `book/CONCEPT.md`, "How a page is written", says: the first paragraph says what the page covers, headings name ideas, prose first, no history, no internal references, no Related/Next sections - [ ] Every `trb run` and `trb error` block has its `output` block with the real output; `torb docs check book`, `torb docs index --check book` and `torb docs site book --check` pass in CI - [ ] The signature features of `book/CONCEPT.md` that the area touches are shown, not just named - [ ] The old pages of `docs/` this slice replaces are deleted in the same PR, unless a skill is still built from them (then they stay, unpublished, and the PR says which) - [ ] `install.md` says the one command per system first, then how to check the install, then what `torb build` needs - [ ] `agents.md` is for the person setting up an agent, not for the agent; the skill text itself stays in `skills/` - [ ] The numbers on `benchmarks.md` come from the benchmark run they cite, with its date and machine, published by a forge CI run to the release `benchmarks`
Author
Collaborator

[loop:torbscript] intake: in scope (book site pages, slice of epic #582; dependency #585 is merged), no duplicate, no seed impact. Next: refine (five pages; size check, benchmark numbers need a dated run).

[loop:torbscript] intake: in scope (book site pages, slice of epic #582; dependency #585 is merged), no duplicate, no seed impact. Next: refine (five pages; size check, benchmark numbers need a dated run).
Author
Collaborator

[loop:torbscript] wait until 2026-10-30T09:00Z: refine is due (five site pages; benchmarks.md needs a dated benchmark run for its numbers, to be settled in refine). The book slice queue is full behind PRs #601, #663, #670.

[loop:torbscript] wait until 2026-10-30T09:00Z: refine is due (five site pages; benchmarks.md needs a dated benchmark run for its numbers, to be settled in refine). The book slice queue is full behind PRs #601, #663, #670.
Author
Collaborator

[loop:torbscript] claim refine by session:loop-torbscript-20261114-0644 until 2026-11-15T00:15:00+01:00

[loop:torbscript] claim refine by session:loop-torbscript-20261114-0644 until 2026-11-15T00:15:00+01:00
Author
Collaborator

[loop:torbscript] refine: cut #597 into a container and filed the first step as #802 (ready), next: implement #802

#597 is now the container with a checklist of four steps: install (#802), agents, play (takes over docs/tooling/the-playground.md), benchmarks. Only the first step is filed; the others follow just in time.

decided by the loop: five pages are too large for one PR (install 725 words, agents 804, play 298 plus a 2342-word page it replaces, benchmarks 1144 words with a generated block), so the cut is one page per PR, the same way #792 to #799 were cut. Step 1 is install.md together with the regenerated site/index.md list, one Conventional Commit; it replaces nothing in docs/. Duplicate search over open and closed issues ("install page", "site/install", "book: site") found no other issue for it.

decided by the loop: the site pages keep kind: site, not page as the old criterion said, because book/site/index.md and torb docs site define them as the pages written to the root of torb.dev. The container's criterion is corrected.

decided by the loop: benchmark numbers come only from a dated forge CI run that published benchmarks.json to the release benchmarks, and the page cites that report's date and machine. State today: the measure job passes (26 C and TorbScript measurements against the minimum of 24; run 2695 of 2026-11-13, AMD EPYC-Genoa, 16 cores, gcc 13.3 -O2, Python 3.12.3, Node 24.21.0, torb 0.1.0), but the publish step fails with the forge answered 401: token signature is invalid (runs 2623 and 2695), so no benchmarks release exists. The benchmarks.md step is filed and set ready only when releases/download/benchmarks/benchmarks.json exists. Fixing the publish token is CI and forge integration setup and outside this loop's actions; the loop reports it here and does not wait for it, because the other three steps do not depend on it.

Links: new child #802 (label ready, comment 12907). Run 2695 artifact: https://git.torb.dev/torbscript/language/actions/runs/2695/artifacts/2221.

Tokens: about 0.9M for this refine run (read-only analysis in a worktree, no builds run locally, nothing touched in seed/).

[loop:torbscript] refine: cut #597 into a container and filed the first step as #802 (ready), next: implement #802 #597 is now the container with a checklist of four steps: install (#802), agents, play (takes over `docs/tooling/the-playground.md`), benchmarks. Only the first step is filed; the others follow just in time. decided by the loop: five pages are too large for one PR (install 725 words, agents 804, play 298 plus a 2342-word page it replaces, benchmarks 1144 words with a generated block), so the cut is one page per PR, the same way #792 to #799 were cut. Step 1 is `install.md` together with the regenerated `site/index.md` list, one Conventional Commit; it replaces nothing in `docs/`. Duplicate search over open and closed issues ("install page", "site/install", "book: site") found no other issue for it. decided by the loop: the site pages keep `kind: site`, not `page` as the old criterion said, because `book/site/index.md` and `torb docs site` define them as the pages written to the root of torb.dev. The container's criterion is corrected. decided by the loop: benchmark numbers come only from a dated forge CI run that published `benchmarks.json` to the release `benchmarks`, and the page cites that report's date and machine. State today: the measure job passes (26 C and TorbScript measurements against the minimum of 24; run 2695 of 2026-11-13, AMD EPYC-Genoa, 16 cores, gcc 13.3 -O2, Python 3.12.3, Node 24.21.0, torb 0.1.0), but the publish step fails with `the forge answered 401: token signature is invalid` (runs 2623 and 2695), so no `benchmarks` release exists. The `benchmarks.md` step is filed and set ready only when `releases/download/benchmarks/benchmarks.json` exists. Fixing the publish token is CI and forge integration setup and outside this loop's actions; the loop reports it here and does not wait for it, because the other three steps do not depend on it. Links: new child https://git.torb.dev/torbscript/language/issues/802 (label `ready`, comment 12907). Run 2695 artifact: https://git.torb.dev/torbscript/language/actions/runs/2695/artifacts/2221. Tokens: about 0.9M for this refine run (read-only analysis in a worktree, no builds run locally, nothing touched in `seed/`).
Author
Collaborator

[loop:torbscript] refine: next: waiting (container; step #802 is ready and runs on its own issue, the next step is filed when it has merged)

[loop:torbscript] refine: next: waiting (container; step #802 is ready and runs on its own issue, the next step is filed when it has merged)
Author
Collaborator

[loop:torbscript] refine: #802 is merged (closed 2026-11-14), so the next step is agents.md (checklist item 2). It is filed as its own issue and refined when the ready buffer has room (4 are ready now: #799, #680, #664, #656); filing it earlier would only add a triaged item the full buffer cannot take. next: waiting (ready buffer full; file the agents.md step when fewer than 4 issues are ready)

[loop:torbscript] refine: #802 is merged (closed 2026-11-14), so the next step is `agents.md` (checklist item 2). It is filed as its own issue and refined when the ready buffer has room (4 are ready now: #799, #680, #664, #656); filing it earlier would only add a triaged item the full buffer cannot take. next: waiting (ready buffer full; file the `agents.md` step when fewer than 4 issues are ready)
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.

Reference
torbscript/language#597
No description provided.