book: Tools, checking and formatting (slice of #596) #795
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.
Depends on
#792 book: Tools, the index and the torb command (slice of #596)
torbscript/language
Reference
torbscript/language#795
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 #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/checking-and-formatting.md: whattorb checkreports and how a diagnostic block reads, the one layouttorb formatwrites and--check, the style rules oftorb lintwith--fix, andtorb renamefor fields. Show a file before and afterformat, a lint finding with its fix, and a check error with its message. The page does not repeat the language rules the formatter implements; it says what to run and what comes back. Read likebook/guide/first-project.mdandbook/std/fs.md: prose first, a real example with its output under every point, no template slots.Replaces in
docs/docs/tooling/torb-format.mddocs/tooling/torb-lint.mddocs/tooling/torb-check.mddocs/tooling/torb-rename.mdAcceptance criteria
--fixfixes it); the flags of each command are one tablepage,status: stable, front matter in the shape ofbook/guide/modelling-data.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// printscommentsconsoleblocks whose output is the real output of the command, run before it is pasted; wheretorb docs checkcan check a command's output it doesbook/CONCEPT.mdthat the area touches are shown, not just namedbook/tools/index.mdlists the page (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 greendocs/tooling/torb-canon.mdno longer exists (thetorb canonalias is removed); the oldWhere every old page goesrow naming it is corrected by the index page of this section, not here.torb linton main, not copied from the old page (the old page names one rule that is not built).Notes for the implementer
book/CONCEPT.md, a merged page of the book and the old pages above first; run every example withtorbbefore 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: everytorbcommand has a page or is named internal.book/tools/index.md: rebase and runtorb docs index bookagain instead of resolving that block by hand.docs(book): tools checking and formattingand, if needed,docs: retire the pages the tools page replaces.[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] claim implement by torbscript-795-impl until 2026-11-15T09:05:00Z
[loop:torbscript] release implement by torbscript-795-impl: PR #810 open, CI pending (4 checks started, none finished). next: review (merge gate)
Merged as
6ab6ba9(PR #810). Post-merge check: the images workflow built and pushed cr.torb.dev/torbscript/site:edge (main) for6ab6ba9, status success. Still pending at this check: ci gates and pdisc on the merge commit. Next step, not yet done: the code is in no release yet. Cut the next stable release (v0.MINOR.PATCH tag on main, version bump PR) once the gates of main are green; the release tag runs the images workflow. Recorded by Orion.