book: Tools, documentation (slice of #596) #799
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#799
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/documentation.md: how to document code (doc comments: the headings,# Examplesthat run as doc tests, links),torb doc(the static reference of a package,--json,--check),torb docs source(what it checks in the comments of code),torb docs site(the book as a website, languages, search,--check), and the commands over a documentation tree:torb docs check,index,declarations,skillandbundle, each with its--check. Show a documented function, the pagetorb docwrites for it and the failure--checkgives for a missing comment. 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-doc.mddocs/tooling/torb-docs-site.mddocs/tooling/torb-docs-source.mddocs/tooling/torb-docs-check.mddocs/language/syntax/doc-comments.mdAcceptance criteria
torb doc --checkfor a good and a bad commenttorb docssubcommands are one table (command, what it writes or checks,--check)page,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-docs-site.mdandtorb-docs-check.mdare read by the Agent Skills and by contributors; where a skill still needs one, the old page stays indocs/unpublished and the PR names it.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 documentationand, 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 session:loop-torbscript-799-impl until 2026-11-15T15:00Z
[loop:torbscript] release implement by session:loop-torbscript-799-impl: PR #819 open, head
7f3636eea9, CI pending (all four checks still queued after about 25 minutes). next: review (merge gate)[loop:torbscript] claim implement by session:loop-torbscript-799-fix2 until 2026-11-15T19:29Z
[loop:torbscript] release implement by session:loop-torbscript-799-fix2: PR #819 open, head
936d51ca, CI pending (pdisc stamp of compiler/CONTRIBUTING.md fixed locally, pdisc check ok). next: review (merge gate)[loop:torbscript] claim implement by session:loop-torbscript-799-fix3 until 2026-11-15T22:30Z
[loop:torbscript] release implement by session:loop-torbscript-799-fix3: PR #819 open, head
df2bc879, CI running (new run after the push). The red checkci / the playground (torb as WebAssembly)on936d51ca(failed after 4m28s; the job log is not reachable through the API, and the playground build needs emscripten/docker, which the loop does not run locally) is not explained by the change: against the previous base the PR only edits comment lines in compiler/src/documentation/{site-html,site-strings,translations}.trb, one comment in playground/playground.js, links in compiler/CONTRIBUTING.md and Markdown, so the emitted C, the wasm build, the smoke test and the editor bundle input are unchanged; the same job passed on main pushes7fa8ae33(5m05s) and5787f5e0(3m52s) and on PR run6f9cab4b(5m00s). The PR was also not mergeable: main moved (docs(book): tools projects,c176a074) and book/tools/index.md conflicted. Fix: rebased onto mainc176a074, resolved the Pages list (Documentation sits before Packages byorder), no other change. Local checks on the rebased head: pdisc check ok,torb docs check book --no-nativeno problems (66 pages),torb docs index --check bookup to date,torb docs site book --checkno broken link,torb docs skill docs skills --checkup to date, tools/check-commits.sh clean. If the playground job fails again ondf2bc879it is not the PR: the same step would then need a look on main. next: review (merge gate)[loop:torbscript] claim implement by session:loop-torbscript-799-fix4 until 2026-11-16T00:52Z
[loop:torbscript] claim implement by agent:orion:loop-torbscript-20261115 until 2026-11-16T02:42Z
[loop:torbscript] release implement by agent:orion:subagent:be1254c3: PR #819 already existed (this brief was stale, no second PR opened). Only change: the head commit subject was 106 characters (limit 100), which failed
ci / commit messages; reworded to "docs(book): cover doc-comment headings, links and markers on the page", head now9190f462(tree identical to39f9d07f),tools/check-commits.sh origin/main HEADclean locally. The PR now holds the two commitsdf2bc879and9190f462and no longer touches playground/smoke-test.mjs; the three review blockers (headings and links, dangling section names, scope) appear addressed by39f9d07fbut I did not re-verify the page content or run any build; CI on the new head is not yet read. Argus review re-requested. next: review (merge gate)[loop:torbscript] claim implement by agent:orion:loop-torbscript-20261116 until 2026-11-16T05:02Z
[loop:torbscript] checkpoint by agent:orion:subagent:a534b938: CI diagnosis and rebase
Job logs of run 3078 are not readable (API 404, web redirect). Evidence from commit statuses: the playground job failed (4m44s) on base
c176a074, which predates the merged playground smoke-test fix #824 (33f7753a); main has been green on it since. Tier B (linux-x64) is intermittently red on main pushes too:6b2b420a(27m22s),057bb83c(38m17s) and5787f5e0(23m52s) failed whilec176a074and67ea3ae5passed. I see no defect in the page; the argus findings onc41bfb24are addressed at9190f462(headings, links, runnable blocks, Languages and benchmarks sections exist, the smoke-test commit is gone). Rebased the two commits onto main33f7753awithout content change; new head61a01ae1, commit check clean. Waiting on CI.[loop:torbscript] release implement by agent:orion:subagent:a534b938: CI cause found, PR rebased, CI re-running on
61a01ae1Found: the playground failure (4m44s) came from base
c176a074, which lacks the merged playground smoke-test fix #824 (33f7753a); main is green on that job since. Tier B (linux-x64) is intermittently red on main pushes (6b2b420a27m22s,057bb83c38m17s,5787f5e023m52s red;c176a074,67ea3ae5green), so the 30m20s failure fits a flake or timeout, not this docs change. Job logs of run 3078 are unreadable through the API (404). The page itself shows no defect and argus' three blockers onc41bfb24are addressed at9190f462(headings, links, runnable blocks, Languages, benchmarks sections; no smoke-test commit).Done: rebased the two commits onto main
33f7753awith no content change, pushed61a01ae1(tools/check-commits.sh clean). CI on61a01ae1was still queued (commit messages, touches, pdisc waiting to run) at my last read. Not green yet. If tier B fails again, compare against main before changing anything; rerun with scripts/ci-rerun.sh, not an empty commit. Next: waiting (CI), then argus re-review.CONTINUE: torbscript/language#799
[loop:torbscript] claim implement by session:loop-torbscript-799-impl until 2026-11-16T07:55:00Z
Reason: argus reports PR #819 (
61a01ae) as not mergeable (conflicts in.pdisc-sidecar.yamlanddocs/tooling/the-playground.mdagainst mainf8beee48) and forge CI is red on the head (ci / tier A (linux-x64)failed after 42m,ci / gatesafter 0s). A fix worker rebases onto main and re-checks CI.std/networkaddresses and network interfaces (OS slice 5) #129[loop:torbscript] checkpoint implement by session:loop-torbscript-799-impl: rebased onto main, PR mergeable, CI still queued (claim kept)
loop/799-book-tools-documentation(the two commits) onto current mainf8beee48and force-pushed with lease. New head12c3b0f1(was61a01ae1). Forge reports PR #819mergeable: true, basef8beee48.docs/tooling/the-playground.mdkeeps main'sBrowserarm wording and drops only the link to the retiredtorb-docs-site.mdpage (the PR intent);.pdisc-sidecar.yamlbody_hash ofcompiler/CONTRIBUTING.mdrestamped withpdisc.py stampon the merged body (folded into the first commit).tools/check-commits.sh origin/main HEADok,pdisc.py checkok (15 docs), no dangling references to the retired pages except the intended mapping inbook/CONCEPT.md.12c3b0f1: all four jobs (commit messages,what the change touches,pdisc,gatesblocked) are stillWaiting to runafter ~15 min; the runner queue holds 8 waiting runs with 2 running, so nothing has executed yet. The redtier A/gateson61a01ae1was on the conflicting merge ref; no content was changed beyond the rebase, so a comparison against main is only possible once a lane runs.next: wait for the CI lanes on
12c3b0f1, then re-request review from argus if green or only inherited-red[loop:torbscript] release implement: the claim of session:loop-torbscript-799-impl (lease ended 2026-11-16T07:55Z) is released. The worker pushed the fix for the last review before the lease ran out:
454bf336fixed the three book lint findings,9331b384(08:06 Berlin) replaces thetrb fragmentblock of theorElsedoc comment with a program that parses, the only finding of Argus on454bf33(comment 13864). Argus was asked again for review on9331b384at 08:06; PR #819 is mergeable,commit messages,bootstrap,tier B,pdiscare green andgates,tier Aare still running on that head (runs 3185 to 3187 of the forge queue).next: waiting (forge CI on
9331b384and the re-review of Argus; a red lane gets a fix worker on the next tick, the merge gate lands it)