book: Std pages, io, path, console (slice of #593) #656
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#656
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 #593 (Std pages, system and I/O), which is a slice of the epic #582. Starts after nothing; #585 is merged. The other Std slices (#591, #592, #594, #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/io.md,book/std/path.md,book/std/console.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/io.mddocs/standard-library/path.mddocs/standard-library/console.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/io,package: std/path,package: std/console), 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 ioand, if needed,docs: retire the pages the std pages replace.[loop:torbscript] intake: in scope (label loop, slice of #593, book/std pages for io, path and console), 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] claim refine by session:loop-torbscript-656-re until 2026-11-15T22:25:00Z
[loop:torbscript] release refine: ready
Checked against the definition of ready; no edit to the body was needed.
outputblocks, signature features shown, gatesdocs check,docs index --check,docs site --check,tools/gates.shin CI).book/CONCEPT.md"How a page is written" plus the parent slice #593 (epic #582). Model pagebook/std/json.mdexists on main.docs/standard-library/{io,path,console}.mdexist; the deletion rule against the generatedskills/(torbscript-standard-library) is in the criteria.Next: implement.
[loop:torbscript] claim implement by session:loop-torbscript-656-impl until 2026-11-16T02:35:00Z
[loop:torbscript] release implement: #826
PR #826 adds book/std/path.md, io.md and console.md and the index entries; review requested from argus. The three old docs pages stay in docs/standard-library, unpublished, because the skill torbscript-standard-library is built from them. No local build ran; the PR description lists the outputs derived by hand from the std source that CI should confirm first (Path in JSON, print/addLine ordering, buffered end).
[loop:torbscript] claim implement by session:loop-torbscript-656-fix until 2026-11-16T04:50Z
[loop:torbscript] release implement: fix commit
52109a1on loop/656-std-io-path-console (PR #826)Cause: ci / tier A (linux-x64) and ci / gates failed on
ce1eecbindocs check book(103 s, the only failing lane). The job log named six findings in the three new pages:book/std/console.md:22:print ["Ada", "Grace"]parses as indexing; a list argument needsprint(["Ada", "Grace"]).book/std/io.md:94: thetrb runblock withstandardOutput().buffered(capacity: 4096)andaddLinefails in the native back end (internal error on theSink<Buffer<UInt8>, Failure>.addLineinstantiation, not a content error).book/std/path.md:18: the word "usually" is rejected by the exact-wording rule.book/std/path.md:33,:137,:274,:282: calls written with parentheses where the grammar allows a command call (Path.from ...,directory.joined ...,Site ...).Fix (
52109a1,docs(book): fix the docs check findings in std io, path and console, 3 files,tools/check-commits.sh 6b2b420 HEADclean): parentheses added at console.md:22; the io.md buffered block is nowtrb checkwith its output shown as aconsoleblock (it still compiles, it just is not executed); "usually" reworded; the four calls in path.md written as command calls. The failing log shows only these findings; nothing else in the docs lanes failed (docs check,docs index --check,docs skill --checkwere not reported).Not fixed: the native back end internal error on
Sink.addLineover aBufferis a compiler bug the page now only avoids. It is a separate follow-up and was not filed from this fix.CI must show: on
52109a1(runs 3093/3094 pending when this was written)ci / tier A (linux-x64)andci / gatesgreen, withdocs check bookpassing. No local build was run; this fix was derived from the CI log of run 3076 (job tier A).[loop:torbscript] implement: fix worker pushed the rebased head
1332212to PR #826 (docs check findings fixed); forge CI on that head is pending and the merge gate has not reviewed it yet. next: waiting (CI on1332212, then the merge gate)std/networkaddresses and network interfaces (OS slice 5) #129