book: Tools, packages (slice of #596) #797

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

Slice of #596 (the Tools section), which is a slice of the epic #582. Starts after #792 (tools/index.md) is merged: the section exists only with its index, and the index owns the overview, the CONCEPT table and the pointers to this page. 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/packages.md, organised by workflow and not by command: depending on a package (add, remove, update, --accept-capabilities), reproducing a build (install, lock, lock --check, vendor, offline), looking at what you depend on (audit, yanked and deprecated versions, --advisories), publishing (publish, tokens, trusted publishing), and the account side of a registry (login, logout, owner, yank, deprecate, --registry). Examples use a local file: registry, so every console block can be run offline; a command that can only be shown against a network registry gets a short prose description and no invented output. 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/torb-add.md
  • docs/tooling/torb-remove.md
  • docs/tooling/torb-update.md
  • docs/tooling/torb-install.md
  • docs/tooling/torb-lock.md
  • docs/tooling/torb-vendor.md
  • docs/tooling/torb-audit.md
  • docs/tooling/torb-publish.md
  • docs/tooling/torb-yank.md
  • docs/tooling/torb-deprecate.md
  • docs/tooling/torb-owner.md
  • docs/tooling/torb-login.md
  • docs/tooling/torb-logout.md

Acceptance criteria

  • The page covers every command of the list under "Replaces in docs/"
  • A dependency is added, locked, vendored and audited against a file: registry in a console session with real output; the exit codes of audit are stated
  • The page has the kind page, status: stable, front matter in the shape of book/guide/modelling-data.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
  • book/tools/index.md lists the page (generated block via torb docs index book); torb docs check book, torb docs index --check book and torb docs site book --check pass, 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 the links that must follow from the deletion; the other Tools pages of #596 are not started
  • Thirteen commands in one page is the largest slice of this section. Keep each workflow to what a reader needs to do it and the exit codes they can script against; the flag list of the whole family is one table (flag, commands it applies to, effect). If the page cannot be written in one PR of this size, stop at a coherent half (the first three workflows), say in the PR which workflows are missing and open the follow-up issue with the loop's loop label; do not leave the old pages half-deleted.

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 packages and, if needed, docs: retire the pages the tools page replaces.
  • Size: one PR, 40 minutes (the largest of the section). Do not write the other Tools pages.
Slice of #596 (the Tools section), which is a slice of the epic #582. Starts after #792 (`tools/index.md`) is merged: the section exists only with its index, and the index owns the overview, the CONCEPT table and the pointers to this page. 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/packages.md`, organised by workflow and not by command: depending on a package (`add`, `remove`, `update`, `--accept-capabilities`), reproducing a build (`install`, `lock`, `lock --check`, `vendor`, offline), looking at what you depend on (`audit`, yanked and deprecated versions, `--advisories`), publishing (`publish`, tokens, trusted publishing), and the account side of a registry (`login`, `logout`, `owner`, `yank`, `deprecate`, `--registry`). Examples use a local `file:` registry, so every console block can be run offline; a command that can only be shown against a network registry gets a short prose description and no invented output. 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/torb-add.md` - `docs/tooling/torb-remove.md` - `docs/tooling/torb-update.md` - `docs/tooling/torb-install.md` - `docs/tooling/torb-lock.md` - `docs/tooling/torb-vendor.md` - `docs/tooling/torb-audit.md` - `docs/tooling/torb-publish.md` - `docs/tooling/torb-yank.md` - `docs/tooling/torb-deprecate.md` - `docs/tooling/torb-owner.md` - `docs/tooling/torb-login.md` - `docs/tooling/torb-logout.md` ## Acceptance criteria - [ ] The page covers every command of the list under "Replaces in `docs/`" - [ ] A dependency is added, locked, vendored and audited against a `file:` registry in a console session with real output; the exit codes of `audit` are stated - [ ] The page has the kind `page`, `status: stable`, front matter in the shape of `book/guide/modelling-data.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 - [ ] `book/tools/index.md` lists the page (generated block via `torb docs index book`); `torb docs check book`, `torb docs index --check book` and `torb docs site book --check` pass, 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 the links that must follow from the deletion; the other Tools pages of #596 are not started - [ ] Thirteen commands in one page is the largest slice of this section. Keep each workflow to what a reader needs to do it and the exit codes they can script against; the flag list of the whole family is one table (flag, commands it applies to, effect). If the page cannot be written in one PR of this size, stop at a coherent half (the first three workflows), say in the PR which workflows are missing and open the follow-up issue with the loop's `loop` label; do not leave the old pages half-deleted. ## 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 packages` and, if needed, `docs: retire the pages the tools page replaces`. - Size: one PR, 40 minutes (the largest of the section). 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). It depends natively on #792 (the section exists only with its index page); the loop starts it when #792 is closed.

[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). It depends natively on #792 (the section exists only with its index page); the loop starts it when #792 is closed.
Author
Collaborator

[loop:torbscript] claim implement by session:loop-torbscript-797-impl until 2026-11-15T09:28Z

[loop:torbscript] claim implement by session:loop-torbscript-797-impl until 2026-11-15T09:28Z
Author
Collaborator

[loop:torbscript] release implement by session:loop-torbscript-797-impl: PR #817 open, head 28c29312, CI pending (worker hit its time limit after the push). next: review (merge gate)

[loop:torbscript] release implement by session:loop-torbscript-797-impl: PR https://git.torb.dev/torbscript/language/pulls/817 open, head 28c29312, CI pending (worker hit its time limit after the push). next: review (merge gate)
argus closed this issue 2026-11-15 11:03:14 +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#797
No description provided.