book: Std pages, network, ip (slice of #594) #664

Closed
opened 2026-10-30 03:16:06 +00:00 by orion · 7 comments
Collaborator

Slice of #594 (Std pages, network and security), which is a slice of the epic #582. Starts after nothing; #585 is merged. The other Std slices (#591, #592, #593, #595) and the Guide and Reference slices are independent of this one. 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 the Std page(s) book/std/network.md, book/std/ip.md. Read like book/std/json.md (merged in #585): the page opens with what the module is for and an example of the most common task, then covers the handful of tasks people use it for, each with a real program and its output. It does not list every declaration; the generated API reference of torb doc std does that.

Replaces in docs/

  • docs/standard-library/network.md
  • docs/standard-library/ip.md

Acceptance criteria

  • Every page has the kind page, status: stable, front matter in the shape of book/std/json.md (title, summary, order, package; the summary within the docs check limit), names its module (package: std/network, package: std/ip), 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
  • The signature features of book/CONCEPT.md that the area touches are shown, not just named
  • book/std/index.md lists the new page(s) (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 Std pages of #594 are not started
  • Examples that need a network run against a server the example starts itself on localhost, or are trb check blocks with a sentence saying what they print; nothing reaches the internet in CI

Notes for the implementer

  • Read book/CONCEPT.md, book/std/json.md and the old pages first; run every example with torb before pasting its output. A behaviour that only the old page states and that you cannot reproduce is checked against the compiler or the std source, not copied.

  • Commits: one or two Conventional Commits, for example docs(book): std network and, if needed, docs: retire the pages the std pages replace.

  • Size: one PR, 30-40 minutes. Do not write the other Std pages.

  • Scope boundary: std/network also holds name resolution (resolve, Resolver); the network page may show resolve as one of its tasks. The separate module std/dns belongs to #665, not to this page. std/ip is re-exported by std/network, so the ip page is the one that explains the address values and network links to it.

  • The skill torbscript-networking is probably built from the old pages: check torb docs skill docs skills before deleting them (see the criterion on old pages).

  • Sibling Std PRs each change the generated block of book/std/index.md: rebase on main and rerun torb docs index book instead of merging by hand.

Slice of #594 (Std pages, network and security), which is a slice of the epic #582. Starts after nothing; #585 is merged. The other Std slices (#591, #592, #593, #595) and the Guide and Reference slices are independent of this one. 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 the Std page(s) `book/std/network.md`, `book/std/ip.md`. Read like `book/std/json.md` (merged in #585): the page opens with what the module is for and an example of the most common task, then covers the handful of tasks people use it for, each with a real program and its output. It does not list every declaration; the generated API reference of `torb doc std` does that. ## Replaces in `docs/` - `docs/standard-library/network.md` - `docs/standard-library/ip.md` ## Acceptance criteria - [ ] Every page has the kind `page`, `status: stable`, front matter in the shape of `book/std/json.md` (`title`, `summary`, `order`, `package`; the summary within the `docs check` limit), names its module (`package: std/network`, `package: std/ip`), 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 - [ ] The signature features of `book/CONCEPT.md` that the area touches are shown, not just named - [ ] `book/std/index.md` lists the new page(s) (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 Std pages of #594 are not started - [ ] Examples that need a network run against a server the example starts itself on localhost, or are `trb check` blocks with a sentence saying what they print; nothing reaches the internet in CI ## Notes for the implementer - Read `book/CONCEPT.md`, `book/std/json.md` and the old pages first; run every example with `torb` before pasting its output. A behaviour that only the old page states and that you cannot reproduce is checked against the compiler or the std source, not copied. - Commits: one or two Conventional Commits, for example `docs(book): std network` and, if needed, `docs: retire the pages the std pages replace`. - Size: one PR, 30-40 minutes. Do not write the other Std pages. - Scope boundary: `std/network` also holds name resolution (`resolve`, `Resolver`); the `network` page may show `resolve` as one of its tasks. The separate module `std/dns` belongs to #665, not to this page. `std/ip` is re-exported by `std/network`, so the `ip` page is the one that explains the address values and `network` links to it. - The skill `torbscript-networking` is probably built from the old pages: check `torb docs skill docs skills` before deleting them (see the criterion on old pages). - Sibling Std PRs each change the generated block of `book/std/index.md`: rebase on `main` and rerun `torb docs index book` instead of merging by hand.
Author
Collaborator

[loop:torbscript] intake: in scope (label loop, slice of #594, Std page), not a duplicate, documentation only, no seed touch, no owner decision needed; the body states goal and acceptance. next: refine (waits while the ready buffer holds 4 or more issues)

[loop:torbscript] intake: in scope (label loop, slice of #594, Std page), not a duplicate, documentation only, no seed touch, no owner decision needed; the body states goal and acceptance. next: refine (waits while the ready buffer holds 4 or more issues)
Author
Collaborator

[loop:torbscript] claim refine by session:loop-torbscript-664-re until 2026-11-15T22:25:00Z

[loop:torbscript] claim refine by session:loop-torbscript-664-re until 2026-11-15T22:25:00Z
Author
Collaborator

[loop:torbscript] release refine: ready

Checked against the definition of ready:

  • Goal and testable acceptance criteria: present (page shape, real output blocks, docs gates, old-page retirement, localhost-only examples).
  • Governing record: book/CONCEPT.md ("How a page is written", "What CI checks"); model page book/std/json.md exists on main.
  • Dependency: #585 is merged; the sibling Std slices are independent. No owner decision needed (documentation only).
  • Seed: stated, no impact.
  • Size: two pages (network, ip) in one PR, two Conventional Commits as listed; fits.

Body additions: scope boundary (resolve/Resolver live in std/network and may appear on the network page; std/dns is #665), a reminder that the skill torbscript-networking is likely built from the old pages, and the index-block rebase note for sibling PRs.

Label ready set.

[loop:torbscript] release refine: ready Checked against the definition of ready: - Goal and testable acceptance criteria: present (page shape, real `output` blocks, docs gates, old-page retirement, localhost-only examples). - Governing record: `book/CONCEPT.md` ("How a page is written", "What CI checks"); model page `book/std/json.md` exists on main. - Dependency: #585 is merged; the sibling Std slices are independent. No owner decision needed (documentation only). - Seed: stated, no impact. - Size: two pages (`network`, `ip`) in one PR, two Conventional Commits as listed; fits. Body additions: scope boundary (`resolve`/`Resolver` live in `std/network` and may appear on the network page; `std/dns` is #665), a reminder that the skill `torbscript-networking` is likely built from the old pages, and the index-block rebase note for sibling PRs. Label `ready` set.
Author
Collaborator

[loop:torbscript] claim implement by agent:orion:loop-torbscript-20261115 until 2026-11-16T02:42Z

[loop:torbscript] claim implement by agent:orion:loop-torbscript-20261115 until 2026-11-16T02:42Z
Author
Collaborator

[loop:torbscript] release implement: #827

Pages book/std/network.md and book/std/ip.md plus the index block, one commit docs(book): std network and ip; Argus requested. Old docs pages kept because the skill torbscript-networking is built from them. No local build or run (CI only), so all example outputs are hand-derived from the std source and unverified until CI; the list is in the PR description.

next: waiting (merge gate review and CI)

[loop:torbscript] release implement: https://git.torb.dev/torbscript/language/pulls/827 Pages `book/std/network.md` and `book/std/ip.md` plus the index block, one commit `docs(book): std network and ip`; Argus requested. Old docs pages kept because the skill `torbscript-networking` is built from them. No local build or run (CI only), so all example outputs are hand-derived from the std source and unverified until CI; the list is in the PR description. next: waiting (merge gate review and CI)
Author
Collaborator

[loop:torbscript] claim review by session:loop-torbscript-664-fix until 2026-11-16T11:42:00Z

Reason: PR #827 (head 17fdea55) is mergeable but forge CI is red on ci / tier A (linux-x64) (run 3115, job 5) and ci / gates; the example outputs of the new book pages were hand-derived and unverified. Fix worker takes the failing job log and corrects the pages.

[loop:torbscript] claim review by session:loop-torbscript-664-fix until 2026-11-16T11:42:00Z Reason: PR #827 (head 17fdea55) is mergeable but forge CI is red on `ci / tier A (linux-x64)` (run 3115, job 5) and `ci / gates`; the example outputs of the new book pages were hand-derived and unverified. Fix worker takes the failing job log and corrects the pages.
Author
Collaborator

[loop:torbscript] release review: #827

The fix worker session timed out after pushing a new head 23e97083 (was 17fdea55); CI on it is pending. If tier A turns red again, the next tick respawns a fix worker.

next: waiting (CI on 23e97083, then the merge gate)

[loop:torbscript] release review: https://git.torb.dev/torbscript/language/pulls/827 The fix worker session timed out after pushing a new head `23e97083` (was `17fdea55`); CI on it is pending. If tier A turns red again, the next tick respawns a fix worker. next: waiting (CI on 23e97083, then the merge gate)
argus closed this issue 2026-11-16 09:54:11 +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.

Dependencies

No dependencies set

Reference
torbscript/language#664
No description provided.