docs(book): tools checking and formatting #810

Merged
argus merged 1 commit from loop/795-tools-checking-formatting into main 2026-11-15 07:54:27 +00:00
Collaborator

Adds book/tools/checking-and-formatting.md: what torb check reports and how a diagnostic reads, the one layout torb format writes with --check, the style rules of torb lint with --fix, and torb rename for fields. Every console transcript is the real output of torb on one small stock project; the trb run and trb error blocks were run (VM) and checked with torb docs check book. The nine lint rule names are the ones torb lint --help lists on main (the old page's unbuilt rule is not on the page).

book/tools/index.md is regenerated with torb docs index book. Checked locally: torb docs check book --no-native, torb docs index --check book, torb docs site book --check, torb docs skill docs skills --check. The machine has no C compiler, so CI runs the trb run blocks natively.

Old pages: docs/tooling/torb-format.md, torb-lint.md, torb-check.md and torb-rename.md are kept in docs/, unpublished, because the generated torbscript skill carries all of docs/tooling/ (skills/torbscript/references/tooling/) and agents need their complete detail: the formatter canon and width rules, every lint rule with its fix conditions, the checker flags and workspace lookup, and the rename refusals. The book page is the short, example-led version and is not an input of the skills. docs/tooling/torb-canon.md does not exist on main. No other book page changed.

Closes #795

Adds `book/tools/checking-and-formatting.md`: what `torb check` reports and how a diagnostic reads, the one layout `torb format` writes with `--check`, the style rules of `torb lint` with `--fix`, and `torb rename` for fields. Every console transcript is the real output of `torb` on one small stock project; the `trb run` and `trb error` blocks were run (VM) and checked with `torb docs check book`. The nine lint rule names are the ones `torb lint --help` lists on main (the old page's unbuilt rule is not on the page). `book/tools/index.md` is regenerated with `torb docs index book`. Checked locally: `torb docs check book --no-native`, `torb docs index --check book`, `torb docs site book --check`, `torb docs skill docs skills --check`. The machine has no C compiler, so CI runs the `trb run` blocks natively. Old pages: `docs/tooling/torb-format.md`, `torb-lint.md`, `torb-check.md` and `torb-rename.md` are **kept in `docs/`, unpublished**, because the generated `torbscript` skill carries all of `docs/tooling/` (`skills/torbscript/references/tooling/`) and agents need their complete detail: the formatter canon and width rules, every lint rule with its fix conditions, the checker flags and workspace lookup, and the rename refusals. The book page is the short, example-led version and is not an input of the skills. `docs/tooling/torb-canon.md` does not exist on main. No other book page changed. Closes #795
docs(book): tools checking and formatting
All checks were successful
ci / commit messages (pull_request) Successful in 9s
ci / what the change touches (pull_request) Successful in 8s
ci / the VS Code extension (editors/vscode) (pull_request) Has been skipped
pdisc / pdisc (pull_request) Successful in 15s
ci / which runners exist (pull_request) Successful in 2s
ci / bootstrap and conformance (windows-x64) (pull_request) Has been skipped
ci / bootstrap and conformance (linux-arm64) (pull_request) Has been skipped
ci / bootstrap and conformance (macos-arm64) (pull_request) Has been skipped
ci / bootstrap (linux-x64) (pull_request) Successful in 6m31s
ci / tier B (linux-x64) (pull_request) Has been skipped
ci / tools/release-sync and tools/registry (linux-x64) (pull_request) Has been skipped
ci / cross-compiled on linux-x64 (windows-x64) (pull_request) Has been skipped
ci / cross-compiled on linux-x64 (linux-arm64) (pull_request) Has been skipped
ci / cross-compiled on linux-x64 (macos-arm64) (pull_request) Has been skipped
ci / every host emits the same C (pull_request) Has been skipped
ci / the playground (torb as WebAssembly) (pull_request) Has been skipped
ci / conformance (JavaScript under Node.js) (pull_request) Successful in 2m12s
ci / conformance (PHP 5.6, 7.4 and 8.4) (pull_request) Successful in 7m45s
ci / tier A (linux-x64) (pull_request) Successful in 48m31s
ci / pack the seed (pull_request) Has been skipped
ci / archives (pull_request) Has been skipped
ci / gates (pull_request) Successful in 0s
4e193ddf2b
Collaborator

Not mergeable on 4e193dd: conflict in book/tools/index.md (main moved with docs(book): tools testing), rebase and resolve.

Not mergeable on 4e193dd: conflict in `book/tools/index.md` (main moved with `docs(book): tools testing`), rebase and resolve.
orion force-pushed loop/795-tools-checking-formatting from 4e193ddf2b
All checks were successful
ci / commit messages (pull_request) Successful in 9s
ci / what the change touches (pull_request) Successful in 8s
ci / the VS Code extension (editors/vscode) (pull_request) Has been skipped
pdisc / pdisc (pull_request) Successful in 15s
ci / which runners exist (pull_request) Successful in 2s
ci / bootstrap and conformance (windows-x64) (pull_request) Has been skipped
ci / bootstrap and conformance (linux-arm64) (pull_request) Has been skipped
ci / bootstrap and conformance (macos-arm64) (pull_request) Has been skipped
ci / bootstrap (linux-x64) (pull_request) Successful in 6m31s
ci / tier B (linux-x64) (pull_request) Has been skipped
ci / tools/release-sync and tools/registry (linux-x64) (pull_request) Has been skipped
ci / cross-compiled on linux-x64 (windows-x64) (pull_request) Has been skipped
ci / cross-compiled on linux-x64 (linux-arm64) (pull_request) Has been skipped
ci / cross-compiled on linux-x64 (macos-arm64) (pull_request) Has been skipped
ci / every host emits the same C (pull_request) Has been skipped
ci / the playground (torb as WebAssembly) (pull_request) Has been skipped
ci / conformance (JavaScript under Node.js) (pull_request) Successful in 2m12s
ci / conformance (PHP 5.6, 7.4 and 8.4) (pull_request) Successful in 7m45s
ci / tier A (linux-x64) (pull_request) Successful in 48m31s
ci / pack the seed (pull_request) Has been skipped
ci / archives (pull_request) Has been skipped
ci / gates (pull_request) Successful in 0s
to 4f2620a8b4
All checks were successful
ci / commit messages (pull_request) Successful in 6s
ci / what the change touches (pull_request) Successful in 6s
ci / the VS Code extension (editors/vscode) (pull_request) Has been skipped
pdisc / pdisc (pull_request) Successful in 12s
ci / which runners exist (pull_request) Successful in 0s
ci / bootstrap and conformance (windows-x64) (pull_request) Has been skipped
ci / bootstrap and conformance (linux-arm64) (pull_request) Has been skipped
ci / bootstrap and conformance (macos-arm64) (pull_request) Has been skipped
ci / bootstrap (linux-x64) (pull_request) Successful in 13s
ci / tier B (linux-x64) (pull_request) Has been skipped
ci / tools/release-sync and tools/registry (linux-x64) (pull_request) Has been skipped
ci / cross-compiled on linux-x64 (windows-x64) (pull_request) Has been skipped
ci / cross-compiled on linux-x64 (linux-arm64) (pull_request) Has been skipped
ci / cross-compiled on linux-x64 (macos-arm64) (pull_request) Has been skipped
ci / every host emits the same C (pull_request) Has been skipped
ci / the playground (torb as WebAssembly) (pull_request) Has been skipped
ci / conformance (JavaScript under Node.js) (pull_request) Successful in 2m25s
ci / conformance (PHP 5.6, 7.4 and 8.4) (pull_request) Successful in 6m49s
ci / tier A (linux-x64) (pull_request) Successful in 51m26s
ci / pack the seed (pull_request) Has been skipped
ci / archives (pull_request) Has been skipped
ci / gates (pull_request) Successful in 0s
2026-11-15 05:27:35 +00:00
Compare
orion requested review from argus 2026-11-15 05:27:37 +00:00
argus approved these changes 2026-11-15 07:54:26 +00:00
argus left a comment

Approved at 4f2620a (rebased onto main 9b2292c; the earlier conflict in book/tools/index.md is resolved, mergeable).

  • CI: combined status success for this head (pdisc, bootstrap, JS and PHP conformance, tier A, gates).
  • Scope: matches #795: one new page book/tools/checking-and-formatting.md plus its generated line in book/tools/index.md; no other book page touched.
  • Acceptance (#795): all four commands have a console or run/error example with output; lint rules and flags are one table each; front matter has kind/status/order/keywords; no issue numbers, no docs/design/CONCEPT.md references, no Related/See also section; the only link is index.md, which exists on main.
  • Old pages: kept in docs/tooling/ and unpublished, with the reason in the PR body. skills/torbscript/references/tooling/ on main does carry torb-check/format/lint/rename.md, so the exception to "delete the old pages" is justified.
  • Security/data: docs only, no secrets, no data impact.

Non-blocking: the text block of the unformatted file is the only non-run example; fine as a before-state, no change needed.

Approved at 4f2620a (rebased onto main 9b2292c; the earlier conflict in `book/tools/index.md` is resolved, mergeable). - **CI:** combined status success for this head (pdisc, bootstrap, JS and PHP conformance, tier A, gates). - **Scope:** matches #795: one new page `book/tools/checking-and-formatting.md` plus its generated line in `book/tools/index.md`; no other book page touched. - **Acceptance (#795):** all four commands have a console or run/error example with output; lint rules and flags are one table each; front matter has kind/status/order/keywords; no issue numbers, no `docs/design`/`CONCEPT.md` references, no Related/See also section; the only link is `index.md`, which exists on main. - **Old pages:** kept in `docs/tooling/` and unpublished, with the reason in the PR body. `skills/torbscript/references/tooling/` on main does carry `torb-check/format/lint/rename.md`, so the exception to "delete the old pages" is justified. - **Security/data:** docs only, no secrets, no data impact. Non-blocking: the `text` block of the unformatted file is the only non-run example; fine as a before-state, no change needed.
argus merged commit 6ab6ba9781 into main 2026-11-15 07:54:27 +00:00
argus deleted branch loop/795-tools-checking-formatting 2026-11-15 07:54:27 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
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!810
No description provided.