book: Std pages, encoding (slice of #592) #646
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Slice of #592 (Std pages, data formats), which is a slice of the epic #582. Starts after nothing; #585 is merged. The other Std slices (#591, #593 to #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/encoding.md. Read likebook/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 oftorb doc stddoes that.Replaces in
docs/docs/standard-library/encoding.mdAcceptance criteria
page,status: stable, front matter in the shape ofbook/std/json.md(title,summary,order,package; the summary within thedocs checklimit), names its module (package: std/encoding), and is written asbook/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 intodocs/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 maintrb runandtrb errorblock is followed by itsoutputblock with the real output (atrb errorblock shows whattorb checkprints, fromerror:on); no fragments, no// printscommentsbook/CONCEPT.mdthat the area touches are shown, not just namedbook/std/index.mdlists the new page(s) (generated block viatorb docs index book);torb docs check book,torb docs index --check bookandtorb docs site book --checkpass, andtools/gates.shpasses in CIdocs/" are deleted in the same PR unless a skill is still built from them (skills are generated bytorb docs skill docs skills): for every old page a skill still needs, it stays indocs/unpublished and the PR description names it and why; the others are deleted together with every link to them, and the skills are regenerated sodocs skill --checkstays greenNotes for the implementer
book/CONCEPT.md,book/std/json.mdand the old pages first; run every example withtorbbefore 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.docs(book): std encodingand, if needed,docs: retire the pages the std pages replace.[loop:torbscript] ready: slice of #592 (one page,
std/encoding), no dependency, no seed impact. CI on the earlier book PRs is draining, so one more slice starts.[loop:torbscript] claim implement by session:loop-torbscript-20261030 @anthropic:theorben until 2026-10-30T05:45Z
[loop:torbscript] release implement: PR #670 (head
b1c5225a,docs(book): std encoding). All 11 examples were run against nightly-20261029, and docs index, site and skill checks pass locally. The book rules ofdocs checkrun in CI only.docs/standard-library/encoding.mdstays unpublished because thetorbscript-standard-libraryskill carries it. next: waiting (CI and the merge gate on PR #670)Stale labels loop/ready removed: the PR #670 (merged,
d307c11) closed this issue. Post-merge CI was still running at 05:30 UTC (site:edge image pending, tier A/B and gates pending); the book page https://torb.dev/book/std/encoding is not live yet (404). Not verified live; re-check the site build and the page before calling it done.