book: Guide chapters (first project, modelling data, collections, files and formats, testing, native programs, design choices) #587

Open
opened 2026-10-29 14:25:44 +00:00 by orion · 7 comments
Collaborator

Slice of the epic #582. Starts after #585 (the concept, the vertical slice and the book gates) is merged.

Scope

Write the remaining chapters of book/guide/, each about one kind of task, read in any order:

New page Replaces in docs/
guide/first-project.md guide/installing-and-running.md, guide/a-small-program.md, how-to/set-up-a-workspace.md, how-to/add-a-dependency.md
guide/modelling-data.md language/types/data-or-capsule.md, how-to/write-a-builder.md, how-to/use-a-type-as-a-map-key.md, how-to/convert-between-types.md
guide/working-with-collections.md how-to/collect-a-pipeline.md, how-to/sort-by-more-than-one-key.md, the rest of guide/collections-and-pipelines.md
guide/files-and-formats.md how-to/read-a-file.md, how-to/read-and-write-json.md
guide/testing.md how-to/write-a-test.md
guide/native-programs.md how-to/build-a-native-binary.md, language/extensibility/foreign-functions.md
guide/design-choices.md guide/idiomatic-torbscript.md, explanation/why-*.md, explanation/where-are-my-overloads.md

Acceptance criteria

  • Every page has the kind page and is written as book/CONCEPT.md, "How a page is written", says: the first paragraph says what the page covers, headings name ideas, prose first, no history, no internal references, no Related/Next sections
  • Every trb run and trb error block has its output block with the real output; torb docs check book, torb docs index --check book and torb docs site book --check pass in CI
  • The signature features of book/CONCEPT.md that the area touches are shown, not just named
  • The old pages of docs/ this slice replaces are deleted in the same PR, unless a skill is still built from them (then they stay, unpublished, and the PR says which)
  • guide/design-choices.md has one short section per choice, each with the reason in a sentence and an example, no comparison tables of other languages
  • A chapter grows one example across its sections where the task allows it (CONCEPT.md, "Examples grow")

Chapters

Filed one at a time, each as its own issue when the one before it has landed (just in time).

  • guide/first-project.md - #607 (merged)
  • guide/modelling-data.md - #636
  • guide/working-with-collections.md - #801
  • guide/files-and-formats.md
  • guide/testing.md
  • guide/native-programs.md
  • guide/design-choices.md
Slice of the epic #582. Starts after #585 (the concept, the vertical slice and the book gates) is merged. ## Scope Write the remaining chapters of `book/guide/`, each about one kind of task, read in any order: | New page | Replaces in `docs/` | |---|---| | `guide/first-project.md` | `guide/installing-and-running.md`, `guide/a-small-program.md`, `how-to/set-up-a-workspace.md`, `how-to/add-a-dependency.md` | | `guide/modelling-data.md` | `language/types/data-or-capsule.md`, `how-to/write-a-builder.md`, `how-to/use-a-type-as-a-map-key.md`, `how-to/convert-between-types.md` | | `guide/working-with-collections.md` | `how-to/collect-a-pipeline.md`, `how-to/sort-by-more-than-one-key.md`, the rest of `guide/collections-and-pipelines.md` | | `guide/files-and-formats.md` | `how-to/read-a-file.md`, `how-to/read-and-write-json.md` | | `guide/testing.md` | `how-to/write-a-test.md` | | `guide/native-programs.md` | `how-to/build-a-native-binary.md`, `language/extensibility/foreign-functions.md` | | `guide/design-choices.md` | `guide/idiomatic-torbscript.md`, `explanation/why-*.md`, `explanation/where-are-my-overloads.md` | ## Acceptance criteria - [ ] Every page has the kind `page` and is written as `book/CONCEPT.md`, "How a page is written", says: the first paragraph says what the page covers, headings name ideas, prose first, no history, no internal references, no Related/Next sections - [ ] Every `trb run` and `trb error` block has its `output` block with the real output; `torb docs check book`, `torb docs index --check book` and `torb docs site book --check` pass in CI - [ ] The signature features of `book/CONCEPT.md` that the area touches are shown, not just named - [ ] The old pages of `docs/` this slice replaces are deleted in the same PR, unless a skill is still built from them (then they stay, unpublished, and the PR says which) - [ ] `guide/design-choices.md` has one short section per choice, each with the reason in a sentence and an example, no comparison tables of other languages - [ ] A chapter grows one example across its sections where the task allows it (CONCEPT.md, "Examples grow") ## Chapters Filed one at a time, each as its own issue when the one before it has landed (just in time). - [x] `guide/first-project.md` - #607 (merged) - [x] `guide/modelling-data.md` - #636 - [ ] `guide/working-with-collections.md` - #801 - [ ] `guide/files-and-formats.md` - [ ] `guide/testing.md` - [ ] `guide/native-programs.md` - [ ] `guide/design-choices.md`
Author
Collaborator

[loop:torbscript] intake: in scope (slice of epic #582, its blocker #585 is merged), no duplicate, no owner question, no design-record collision. Seven chapters are more than one PR that lands as one or two commits, so the refine worker splits it just in time and files the first chapter as its own ready issue.
[loop:torbscript] claim refine by session:loop-torbscript-20261029-0858 until 2026-10-29T23:40:00Z

[loop:torbscript] intake: in scope (slice of epic #582, its blocker #585 is merged), no duplicate, no owner question, no design-record collision. Seven chapters are more than one PR that lands as one or two commits, so the refine worker splits it just in time and files the first chapter as its own ready issue. [loop:torbscript] claim refine by session:loop-torbscript-20261029-0858 until 2026-10-29T23:40:00Z
Author
Collaborator

[loop:torbscript] release refine: split just in time; first step filed as #607 (ready), remaining chapters follow as each lands. next: waiting (#607)

[loop:torbscript] release refine: split just in time; first step filed as #607 (ready), remaining chapters follow as each lands. next: waiting (#607)
Author
Collaborator

[loop:torbscript] refine: filed #636 (guide/modelling-data.md, ready) as the next chapter after #607 (merged); checklist updated. Remaining chapters are filed just in time when a slot and the ready buffer allow.
next: waiting (#636)

[loop:torbscript] refine: filed #636 (guide/modelling-data.md, ready) as the next chapter after #607 (merged); checklist updated. Remaining chapters are filed just in time when a slot and the ready buffer allow. next: waiting (#636)
Author
Collaborator

[loop:torbscript] re-sweep: ticked #636 in the checklist, because this step is closed and landed on main; the checklist now matches the state of its children.

[loop:torbscript] re-sweep: ticked #636 in the checklist, because this step is closed and landed on main; the checklist now matches the state of its children.
Author
Collaborator

[loop:torbscript] claim refine by session:loop-torbscript-20261114-0644 until 2026-11-15T00:15:00+01:00

[loop:torbscript] claim refine by session:loop-torbscript-20261114-0644 until 2026-11-15T00:15:00+01:00
Author
Collaborator

[loop:torbscript] refine: filed #801 (guide/working-with-collections.md) as the next chapter, triaged but not ready, next: waiting (#801)

Checked against the live state: #636 is closed, PR #645 merged on 2026-10-30 (merge commit da033cc8), and book/guide/modelling-data.md is on main next to first-project.md; #607 is merged as well. Both checklist boxes were already ticked and are correct.

New issue #801 follows the shape of #607 and #636: goal, "Replaces in docs/" (how-to/collect-a-pipeline.md, how-to/sort-by-more-than-one-key.md, the rest of guide/collections-and-pipelines.md, as in the table above), eight testable acceptance criteria in the same wording, seed impact none (documentation only), one PR. The two skills still link the old pages, so the criteria allow them to stay unpublished in docs/ as in #636. The checklist above now links #801; the other chapters are untouched and filed just in time.

Decision: no duplicate (open and closed search for "working-with-collections", "book: Guide" and "collections" found only the Reference and Std slices of other epics). The ready buffer is already full (13 open issues carry ready, target 4), so #801 carries only loop and waits for a slot; the refine stage will set ready when the buffer drops below 4.

Read-only analysis, no build or gate run. Token usage of this worker: roughly 110k.

[loop:torbscript] refine: filed #801 (guide/working-with-collections.md) as the next chapter, triaged but not `ready`, next: waiting (#801) Checked against the live state: #636 is closed, PR #645 merged on 2026-10-30 (merge commit da033cc8), and `book/guide/modelling-data.md` is on `main` next to `first-project.md`; #607 is merged as well. Both checklist boxes were already ticked and are correct. New issue #801 follows the shape of #607 and #636: goal, "Replaces in `docs/`" (`how-to/collect-a-pipeline.md`, `how-to/sort-by-more-than-one-key.md`, the rest of `guide/collections-and-pipelines.md`, as in the table above), eight testable acceptance criteria in the same wording, seed impact none (documentation only), one PR. The two skills still link the old pages, so the criteria allow them to stay unpublished in `docs/` as in #636. The checklist above now links #801; the other chapters are untouched and filed just in time. Decision: no duplicate (open and closed search for "working-with-collections", "book: Guide" and "collections" found only the Reference and Std slices of other epics). The ready buffer is already full (13 open issues carry `ready`, target 4), so #801 carries only `loop` and waits for a slot; the refine stage will set `ready` when the buffer drops below 4. Read-only analysis, no build or gate run. Token usage of this worker: roughly 110k.
Author
Collaborator

[loop:torbscript] parked: deferred 3 times in a row without a worker; the umbrella slice has no step the loop can take itself, because chapters are filed one at a time as their own issues (#801 is filed for working-with-collections, #636 and #607 are merged). Resume when #801 lands and the next chapter is filed, or when the ready buffer drops below 4 and a refine worker has capacity for the next chapter.

[loop:torbscript] parked: deferred 3 times in a row without a worker; the umbrella slice has no step the loop can take itself, because chapters are filed one at a time as their own issues (#801 is filed for working-with-collections, #636 and #607 are merged). Resume when #801 lands and the next chapter is filed, or when the ready buffer drops below 4 and a refine worker has capacity for the next chapter.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
torbscript/language#587
No description provided.