book: Reference, errors (slice of #590) #620
Labels
No labels
loop
queue/failed
queue/queued
ready
status/parked
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
torbscript/language#620
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 #590 (Reference, part 2), which is a slice of the epic #582. Starts after nothing; #585 is merged. The Guide slices (#587, #588) write
book/guide/and the Reference part 1 slices (#589) write other pages ofbook/reference/; they are independent of this one and none of them replaces the old pages below. 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 Reference page(s)
reference/errors.md. Error values and theErrortrait,Result, and the error types a program declares.reference/propagating-errors.md(?, option chaining) andreference/panics.md(panics, errors at the top level) are separate slices of #590: link to them only once they are on main. Read likebook/reference/bindings.mdandbook/reference/cases-and-patterns.md(merged in #585): complete for the area, still prose with a real program and its output under every rule.Replaces in
docs/docs/language/errors/index.mddocs/language/errors/error-types.mddocs/language/errors/the-error-trait.mddocs/language/errors/result.mdAcceptance criteria
page,status: stable, front matter in the shape ofbook/reference/bindings.md(title,summary,order,keywords), 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// printscommentstrb run/trb errorexamples, not as a template of Syntax/Rules/What this is not; Every compiler error a reader can hit withResultand with implementingErrorhas atrb errorexample; the page grows one error type across its sections.book/CONCEPT.mdthat the area touches are shown, not just namedbook/reference/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/reference/bindings.mdand the old pages first; run every example withtorbbefore pasting its output. A rule that only the old page states and that you cannot reproduce is checked against the compiler, not copied.docs(book): reference errorsand, if needed,docs: retire the pages the reference replaces.Implementer notes (added in refine)
book/tour/errors.md,book/guide/handling-errors.md,book/std/core.md,book/reference/bindings.md,book/reference/cases-and-patterns.md. Do not linkreference/propagating-errors.md,reference/panics.mdor any other Reference page that is not on main (book/reference/holdssyntax.md,bindings.md,cases-and-patterns.mdandindex.mdtoday);torb docs check bookfails on a link that does not resolve.kind: page,status: stable,orderbetweenbindings.md(10) andcases-and-patterns.md(40) is free; pick one that does not collide with the existing pages (syntax.md5,bindings.md10,cases-and-patterns.md40).docs/" exist on main. The other pages ofdocs/language/errors/(option-chaining.md,panic.md,question-mark.md,top-level-errors.md) belong to the two sibling slices and stay where they are; do not delete or edit them, except links that point at a page this PR deletes.docs/language/errors/*(skills/torbscript-language/references/language/errors/holds all eight pages), and about 25 pages ofdocs/and the skill references link to the four pages (among themdocs/guide/errors.md,docs/how-to/define-an-error-type.md,docs/language/index.md,docs/language/values-and-types/option.md,docs/standard-library/core.md,docs/glossary.md,docs/explanation/why-no-exceptions.md).docs/language/errors/index.mdalso lists the sibling pages. Precedent: whenbindings.mdlanded, the old bindings page was deleted whiledocs/language/pattern-matching/*anddocs/language/types/var-paths.mdstayed for the skills. Decide per page (a page the skill still needs stays indocs/, unpublished, and the PR description names it and why), fix every link to a deleted page, then runtorb docs skill docs skillsand commit the regeneratedskills/sotorb docs skill docs skills --checkis green.torb docs index bookafter adding the page so the generated block ofbook/reference/index.mdlists it; do not edit that block by hand.torb docs check book,torb docs index --check book,torb docs site book --checkandtools/gates.shpass in forge CI; eachtrb run/trb errorblock has itsoutputblock (asserted bytorb docs check); the deleted pages are gone fromdocs/and fromskills/(or named in the PR description as kept);git diff --statshows no file underbook/other than the new page,book/reference/index.mdand links that followed from a deletion.[loop:torbscript] intake: in scope (author orion, label loop), not a duplicate, no owner question, no collision with a design record; documentation only, seed untouched. Links to propagating-errors.md and panics.md only once those are on main. next: refine, start when a slot is free.
[loop:torbscript] refine: next: waiting (ready buffer is full, 7 issues are ready; refine resumes when fewer than 4 are ready)
[loop:torbscript] claim refine by session:loop-torbscript-620-refine until 2026-11-16T12:30:00Z
Reason: #620 is starved (deferred 3 times, orion/infra#2915), so it is started now: a worker slot is free and refine is the next stage.
[loop:torbscript] refine: ready. Added an implementer-notes section to the body: 5 linkable pages on main (tour/errors, guide/handling-errors, std/core, reference/bindings, reference/cases-and-patterns), 2 sibling pages not to link (propagating-errors, panics), 4 sibling docs pages that stay (option-chaining, panic, question-mark, top-level-errors), the skill dependency (skills/torbscript-language/references/language/errors/ holds all 8 pages; about 25 docs pages link to the 4 old ones) with the precedent from the bindings slice, the free
orderrange (11-39), checks someone else can run, and the seed statement (touches no seed). Replaces list verified: all 4 files exist on main. Goal and 7 acceptance criteria were already testable and are unchanged.next: implement (oldest ready first when a slot is free)
[loop:torbscript] release by session:loop-torbscript-620-refine
[loop:torbscript] claim implement by session:loop-torbscript-620-impl until 2026-11-16T16:10:00Z
Reason: #620 is the focus, now ready, no PR yet, a worker slot is free.
[loop:torbscript] release by session:loop-torbscript-620-impl
implement: PR #835 open (commits
1ed735a,c6bff12), merge gate review requested from Argus; forge CI is pending (runner queue), commit messages, what the change touches and pdisc are green, no job red.next: waiting (CI running, then the merge gate; a red job gets a fix worker on branch loop/620-reference-errors)
ArrayList, the hash tables and the tries onBuffer#55ArrayList, the hash tables and the tries onBuffer#55std/livepage placement (WEB slice 6) and the client script (slice 7) #103Status (orion): PR #835 merged to main as
81080c0, approved by argus. The merge closed this task. Main CI (ci gates, images site:edge, pdisc) was still pending at 15:55 Berlin, outcome not confirmed. Not in a release yet: the latest tags are nightly-20261116 and v0.1.0-rc.1, and the change is docs-only. Next step: confirm main CI is green, then include it in the next release cut per the release cycle (docs/design/RELEASE.md). No stable release cut in this run.