book: Std pages, json-schema (slice of #592) #647

Closed
opened 2026-10-30 00:07:36 +00:00 by orion · 5 comments
Collaborator

Slice of #592 (Std pages, data formats), which is a slice of the epic #582. Starts after nothing; #585 is merged. The other Std slices (#591, #593 to #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/json-schema.md. Read like book/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 of torb doc std does that.

Replaces in docs/

  • docs/standard-library/json-schema.md

Acceptance criteria

  • Every page has the kind page, status: stable, front matter in the shape of book/std/json.md (title, summary, order, package; the summary within the docs check limit), names its module (package: std/json-schema), and is written as book/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 into docs/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 main
  • Every trb run and trb error block is followed by its output block with the real output (a trb error block shows what torb check prints, from error: on); no fragments, no // prints comments
  • The signature features of book/CONCEPT.md that the area touches are shown, not just named
  • book/std/index.md lists the new page(s) (generated block via torb docs index book); torb docs check book, torb docs index --check book and torb docs site book --check pass, and tools/gates.sh passes in CI
  • The old pages listed under "Replaces in docs/" are deleted in the same PR unless a skill is still built from them (skills are generated by torb docs skill docs skills): for every old page a skill still needs, it stays in docs/ unpublished and the PR description names it and why; the others are deleted together with every link to them, and the skills are regenerated so docs skill --check stays green
  • No other book page is changed except the links that must follow from the deletion; the other Std pages of #592 are not started

Notes for the implementer

  • Read book/CONCEPT.md, book/std/json.md and the old pages first; run every example with torb before 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.
  • Commits: one or two Conventional Commits, for example docs(book): std json-schema and, if needed, docs: retire the pages the std pages replace.
  • Size: one PR, 30-40 minutes. Do not write the other Std pages.
Slice of #592 (Std pages, data formats), which is a slice of the epic #582. Starts after nothing; #585 is merged. The other Std slices (#591, #593 to #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/json-schema.md`. Read like `book/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 of `torb doc std` does that. ## Replaces in `docs/` - `docs/standard-library/json-schema.md` ## Acceptance criteria - [ ] Every page has the kind `page`, `status: stable`, front matter in the shape of `book/std/json.md` (`title`, `summary`, `order`, `package`; the summary within the `docs check` limit), names its module (`package: std/json-schema`), and is written as `book/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 into `docs/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 main - [ ] Every `trb run` and `trb error` block is followed by its `output` block with the real output (a `trb error` block shows what `torb check` prints, from `error:` on); no fragments, no `// prints` comments - [ ] The signature features of `book/CONCEPT.md` that the area touches are shown, not just named - [ ] `book/std/index.md` lists the new page(s) (generated block via `torb docs index book`); `torb docs check book`, `torb docs index --check book` and `torb docs site book --check` pass, and `tools/gates.sh` passes in CI - [ ] The old pages listed under "Replaces in `docs/`" are deleted in the same PR unless a skill is still built from them (skills are generated by `torb docs skill docs skills`): for every old page a skill still needs, it stays in `docs/` unpublished and the PR description names it and why; the others are deleted together with every link to them, and the skills are regenerated so `docs skill --check` stays green - [ ] No other book page is changed except the links that must follow from the deletion; the other Std pages of #592 are not started ## Notes for the implementer - Read `book/CONCEPT.md`, `book/std/json.md` and the old pages first; run every example with `torb` before 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. - Commits: one or two Conventional Commits, for example `docs(book): std json-schema` and, if needed, `docs: retire the pages the std pages replace`. - Size: one PR, 30-40 minutes. Do not write the other Std pages.
Author
Collaborator

[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, independent of the other Std slices. next: refine, start when a slot is free.

[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, independent of the other Std slices. next: refine, start when a slot is free.
Author
Collaborator

[loop:torbscript] refine: next: waiting (ready buffer is full, 5 issues are ready; refine resumes when fewer than 4 are ready)

[loop:torbscript] refine: next: waiting (ready buffer is full, 5 issues are ready; refine resumes when fewer than 4 are ready)
Author
Collaborator

[loop:torbscript] refine: ready. The issue has a goal, a replaces list, six verifiable acceptance criteria and implementer notes; documentation only, seed untouched, independent of the other Std slices (#80 steps 1 to 4a are landed, so the page can describe validation, references, unevaluated keywords and the option-gated format assertion). The ready buffer was 2 of 4 when labelled (#799 and #664 both have open PRs). decided by the loop: write the page for what has landed, no wording about open steps.
next: implement (oldest ready first when a slot is free)

[loop:torbscript] refine: ready. The issue has a goal, a replaces list, six verifiable acceptance criteria and implementer notes; documentation only, seed untouched, independent of the other Std slices (#80 steps 1 to 4a are landed, so the page can describe validation, references, unevaluated keywords and the option-gated format assertion). The ready buffer was 2 of 4 when labelled (#799 and #664 both have open PRs). decided by the loop: write the page for what has landed, no wording about open steps. next: implement (oldest ready first when a slot is free)
Author
Collaborator

[loop:torbscript] claim implement by session:loop-torbscript-647-impl until 2026-11-16T16:30:00Z

Reason: #647 is the focus, ready, oldest ready issue without a PR, one worker slot is free.

[loop:torbscript] claim implement by session:loop-torbscript-647-impl until 2026-11-16T16:30:00Z Reason: #647 is the focus, ready, oldest ready issue without a PR, one worker slot is free.
argus closed this issue 2026-11-16 11:15:19 +00:00
Author
Collaborator

Status (orion, post-merge of #833): merged to main as 7854123a79, which closes this task. Release step: no off-cycle release cut here. docs/contributing/releasing.md makes a stable release the unchanged candidate tagged on the first Tuesday, so this change ships in the next candidate v0.3.0-rc.1 (2026-11-24) and stable v0.3.0 (2026-12-01). Next step for the release owner: include the json-schema page in 0.3.0-rc.1. Nothing to deploy beyond the site of main (edge). No status label left to remove.

Status (orion, post-merge of #833): merged to main as 7854123a79, which closes this task. Release step: no off-cycle release cut here. docs/contributing/releasing.md makes a stable release the unchanged candidate tagged on the first Tuesday, so this change ships in the next candidate v0.3.0-rc.1 (2026-11-24) and stable v0.3.0 (2026-12-01). Next step for the release owner: include the json-schema page in 0.3.0-rc.1. Nothing to deploy beyond the site of main (edge). No status label left to remove.
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.

Dependencies

No dependencies set

Reference
torbscript/language#647
No description provided.