book: Tools, the index and the torb command (slice of #596) #792

Closed
opened 2026-11-14 20:05:09 +00:00 by orion · 3 comments
Collaborator

Slice of #596 (the Tools section), which is a slice of the epic #582. Starts after nothing; #585 and #752 are merged. The other Tools slices are independent of this one apart from that index. Governing note: book/CONCEPT.md ("How a page is written", "What CI checks"). Touches the seed: no (documentation only; no syntax change, no native, no driver flag, no std name looked up by the compiler).

Goal

Write book/tools/index.md, the front page of the Tools section. It says in a few sentences what the torb command is (one binary: runtime, compiler, package manager, test runner, formatter, linter, language server), shows the commands a reader reaches for in the order of a working day, and says which workflow page each one belongs to. It also covers torb upgrade (installing another version of the toolchain, the channels, --list) and says in one sentence that a few commands are internal and unstable. The section exists in the header of the site from the moment this index exists (the site derives its sections from the top-level folders of the book with an index.md); front matter kind: index, order: 60, after Std. Read like book/guide/first-project.md and book/std/fs.md: prose first, a real example with its output under every point, no template slots.

Replaces in docs/

  • docs/tooling/the-torb-command.md
  • docs/tooling/torb-upgrade.md

Acceptance criteria

  • book/tools/index.md exists with kind: index, status: stable, order: 60, and the generated block of torb docs index book; torb docs site book --check passes and builds the site with Tools in the header after Std
  • The page shows a real console session of the everyday commands (torb check, torb run, torb test, torb format --check) with their real output
  • torb upgrade --list and the channel switch are explained in prose, with a console block where its output can be reproduced offline; a block that needs the network is left out rather than invented
  • The page has the kind index, status: stable, front matter in the shape of book/guide/index.md (title, summary, order, keywords), and is written as book/CONCEPT.md, "How a page is written", says: the first paragraph says in two to four sentences what the page covers, headings name ideas, prose first, no history words, no internal references (no issue numbers, no links into docs/design, docs/contributing, docs/internals, CONCEPT.md), no Related/Next/See also sections, lists of at most seven items, every section starts with a sentence; links only to book pages that exist on main
  • Every trb run and trb error block is followed by its output block with the real output (a trb error block shows what torb check prints, from error: on); no fragments, no // prints comments
  • Terminal sessions are console blocks whose output is the real output of the command, run before it is pasted; where torb docs check can check a command's output it does
  • The workflow is explained in prose; the full flag list of a command is one table, not a wall of list items
  • The signature features of book/CONCEPT.md that the area touches are shown, not just named
  • torb docs check book, torb docs index --check book and torb docs site book --check pass (the section has only its index page on main), and tools/gates.sh passes in CI
  • The old pages listed under "Replaces in docs/" are deleted in the same PR unless a skill is still built from them (skills are generated by torb docs skill docs skills): for every old page a skill still needs, it stays in docs/ unpublished and the PR description names it and why; the others are deleted together with every link to them, and the skills are regenerated so docs skill --check stays green
  • No other book page is changed except book/index.md and book/CONCEPT.md as described below and the links that must follow from the deletion; no other Tools page is started
  • docs/tooling/index.md stays while any other page remains in docs/tooling/ (the folder needs its index); the PR that deletes the last page of the folder deletes it too. This PR leaves it alone and says so.
  • book/index.md gains a Tools line in its generated section list and one sentence in its introduction that names the tools; book/CONCEPT.md, "Where every old page goes", lists the pages of this issue's table, including the ones the table does not name yet: tooling/torb-upgrade.md (here), tooling/torb-rename.md (checking-and-formatting), tooling/torb-docs-check.md (documentation), tooling/target-capabilities.md (running-and-building); torb-canon.md is gone (the alias was removed) and is dropped from the row.
  • Every torb command of the table has a page of this section or is named internal; the page links only to pages that exist on main, so links to the other Tools pages are added by the PR of each page, not here.

Notes for the implementer

  • Read book/CONCEPT.md, a merged page of the book and the old pages above first; run every example with torb before pasting its output. A behaviour that only an old page states and that you cannot reproduce is checked against the compiler, not copied. The old pages were checked against main on 2026-11-14: every torb command has a page or is named internal.
  • Several Tools PRs may be open together and each regenerates the block of book/tools/index.md: rebase and run torb docs index book again instead of resolving that block by hand.
  • Commits: one or two Conventional Commits, for example docs(book): tools index and, if needed, docs: retire the pages the tools page replaces.
  • Size: one PR, 30-40 minutes. Do not write the other Tools pages.
Slice of #596 (the Tools section), which is a slice of the epic #582. Starts after nothing; #585 and #752 are merged. The other Tools slices are independent of this one apart from that index. Governing note: `book/CONCEPT.md` ("How a page is written", "What CI checks"). Touches the seed: no (documentation only; no syntax change, no native, no driver flag, no std name looked up by the compiler). ## Goal Write `book/tools/index.md`, the front page of the Tools section. It says in a few sentences what the `torb` command is (one binary: runtime, compiler, package manager, test runner, formatter, linter, language server), shows the commands a reader reaches for in the order of a working day, and says which workflow page each one belongs to. It also covers `torb upgrade` (installing another version of the toolchain, the channels, `--list`) and says in one sentence that a few commands are internal and unstable. The section exists in the header of the site from the moment this index exists (the site derives its sections from the top-level folders of the book with an `index.md`); front matter `kind: index`, `order: 60`, after Std. Read like `book/guide/first-project.md` and `book/std/fs.md`: prose first, a real example with its output under every point, no template slots. ## Replaces in `docs/` - `docs/tooling/the-torb-command.md` - `docs/tooling/torb-upgrade.md` ## Acceptance criteria - [ ] `book/tools/index.md` exists with `kind: index`, `status: stable`, `order: 60`, and the generated block of `torb docs index book`; `torb docs site book --check` passes and builds the site with Tools in the header after Std - [ ] The page shows a real `console` session of the everyday commands (`torb check`, `torb run`, `torb test`, `torb format --check`) with their real output - [ ] `torb upgrade --list` and the channel switch are explained in prose, with a console block where its output can be reproduced offline; a block that needs the network is left out rather than invented - [ ] The page has the kind `index`, `status: stable`, front matter in the shape of `book/guide/index.md` (`title`, `summary`, `order`, `keywords`), and is written as `book/CONCEPT.md`, "How a page is written", says: the first paragraph says in two to four sentences what the page covers, headings name ideas, prose first, no history words, no internal references (no issue numbers, no links into `docs/design`, `docs/contributing`, `docs/internals`, `CONCEPT.md`), no Related/Next/See also sections, lists of at most seven items, every section starts with a sentence; links only to book pages that exist on main - [ ] Every `trb run` and `trb error` block is followed by its `output` block with the real output (a `trb error` block shows what `torb check` prints, from `error:` on); no fragments, no `// prints` comments - [ ] Terminal sessions are `console` blocks whose output is the real output of the command, run before it is pasted; where `torb docs check` can check a command's output it does - [ ] The workflow is explained in prose; the full flag list of a command is one table, not a wall of list items - [ ] The signature features of `book/CONCEPT.md` that the area touches are shown, not just named - [ ] `torb docs check book`, `torb docs index --check book` and `torb docs site book --check` pass (the section has only its index page on main), and `tools/gates.sh` passes in CI - [ ] The old pages listed under "Replaces in `docs/`" are deleted in the same PR unless a skill is still built from them (skills are generated by `torb docs skill docs skills`): for every old page a skill still needs, it stays in `docs/` unpublished and the PR description names it and why; the others are deleted together with every link to them, and the skills are regenerated so `docs skill --check` stays green - [ ] No other book page is changed except `book/index.md` and `book/CONCEPT.md` as described below and the links that must follow from the deletion; no other Tools page is started - [ ] `docs/tooling/index.md` stays while any other page remains in `docs/tooling/` (the folder needs its index); the PR that deletes the last page of the folder deletes it too. This PR leaves it alone and says so. - [ ] `book/index.md` gains a Tools line in its generated section list and one sentence in its introduction that names the tools; `book/CONCEPT.md`, "Where every old page goes", lists the pages of this issue's table, including the ones the table does not name yet: `tooling/torb-upgrade.md` (here), `tooling/torb-rename.md` (checking-and-formatting), `tooling/torb-docs-check.md` (documentation), `tooling/target-capabilities.md` (running-and-building); `torb-canon.md` is gone (the alias was removed) and is dropped from the row. - [ ] Every `torb` command of the table has a page of this section or is named internal; the page links only to pages that exist on main, so links to the other Tools pages are added by the PR of each page, not here. ## Notes for the implementer - Read `book/CONCEPT.md`, a merged page of the book and the old pages above first; run every example with `torb` before pasting its output. A behaviour that only an old page states and that you cannot reproduce is checked against the compiler, not copied. The old pages were checked against main on 2026-11-14: every `torb` command has a page or is named internal. - Several Tools PRs may be open together and each regenerates the block of `book/tools/index.md`: rebase and run `torb docs index book` again instead of resolving that block by hand. - Commits: one or two Conventional Commits, for example `docs(book): tools index` and, if needed, `docs: retire the pages the tools page replaces`. - Size: one PR, 30-40 minutes. Do not write the other Tools pages.
Author
Collaborator

[loop:torbscript] decided by the loop: ready. Goal, testable acceptance criteria (copied from #596 as they apply), the old pages it replaces, the book rules and the size (one PR) are stated; no seed impact (documentation only).

[loop:torbscript] decided by the loop: ready. Goal, testable acceptance criteria (copied from #596 as they apply), the old pages it replaces, the book rules and the size (one PR) are stated; no seed impact (documentation only).
Author
Collaborator

[loop:torbscript] claim implement by session:loop-torbscript-20261114-0644 until 2026-11-15T03:20:00+01:00

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

[loop:torbscript] release implement: the worker failed at its final reply (all Claude subscriptions at their limit) but had already pushed loop/792-book-tools-index and opened PR #800 (head e933e1f, CI pending, review requested from argus). Nothing is left to implement.
next: waiting (CI on PR #800, then the merge gate)

[loop:torbscript] release implement: the worker failed at its final reply (all Claude subscriptions at their limit) but had already pushed `loop/792-book-tools-index` and opened PR #800 (head e933e1f, CI pending, review requested from argus). Nothing is left to implement. next: waiting (CI on PR #800, then the merge gate)
argus closed this issue 2026-11-15 00:47:23 +00: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.

Reference
torbscript/language#792
No description provided.