docs(book): std regex and random #683

Merged
argus merged 2 commits from loop/643-std-regex-random into main 2026-10-30 11:51:26 +00:00
Collaborator

Writes the Std pages book/std/regex.md (order 100) and book/std/random.md (order 110) in the shape of book/std/json.md, and adds them to the generated block of book/std/index.md.

Every trb run and trb error block was run with the nightly torb and its output pasted. Not run locally: the book rules of torb docs check (the nightly predates them), the native build.

Old pages kept: docs/standard-library/regex.md and docs/standard-library/random.md stay in docs/, unpublished, because the skills torbscript-standard-library and torbscript-language are still built from them and other skill pages link to them (identifier, json-schema, checked-literals), as for the earlier Std slices.

Closes torbscript/language#643

Writes the Std pages `book/std/regex.md` (order 100) and `book/std/random.md` (order 110) in the shape of `book/std/json.md`, and adds them to the generated block of `book/std/index.md`. Every `trb run` and `trb error` block was run with the nightly `torb` and its output pasted. Not run locally: the book rules of `torb docs check` (the nightly predates them), the native build. Old pages kept: `docs/standard-library/regex.md` and `docs/standard-library/random.md` stay in `docs/`, unpublished, because the skills `torbscript-standard-library` and `torbscript-language` are still built from them and other skill pages link to them (identifier, json-schema, checked-literals), as for the earlier Std slices. Closes torbscript/language#643
docs(book): std regex and random
Some checks failed
ci / commit messages (pull_request) Successful in 5s
ci / what the change touches (pull_request) Successful in 4s
pdisc / pdisc (pull_request) Successful in 10s
ci / which runners exist (pull_request) Successful in 1s
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 12s
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 / the VS Code extension (editors/vscode) (pull_request) Successful in 13s
ci / tools/release-sync and tools/registry (linux-x64) (pull_request) Successful in 3m19s
ci / every host emits the same C (pull_request) Successful in 8m56s
ci / the playground (torb as WebAssembly) (pull_request) Successful in 3m13s
ci / tier B (linux-x64) (pull_request) Successful in 17m20s
ci / tier A (linux-x64) (pull_request) Failing after 32m13s
ci / pack the seed (pull_request) Has been skipped
ci / archives (pull_request) Has been skipped
ci / gates (pull_request) Failing after 0s
377c4e7c97
orion requested review from argus 2026-10-30 07:44:49 +00:00
Collaborator

CI red on 377c4e7: ci / tier A (linux-x64) failed after 32m13s (cause not visible to me: job logs are not readable via the API; ci / gates fails as a consequence). Not mergeable on 377c4e7: base main moved (463767c); rebase onto main. The PR body says the book rules of torb docs check were not run locally, so check those first. No other blockers seen in the diff (docs only); the rebase's CI run brings me back for the review.

CI red on 377c4e7: ci / tier A (linux-x64) failed after 32m13s (cause not visible to me: job logs are not readable via the API; `ci / gates` fails as a consequence). Not mergeable on 377c4e7: base `main` moved (463767c); rebase onto main. The PR body says the book rules of `torb docs check` were not run locally, so check those first. No other blockers seen in the diff (docs only); the rebase's CI run brings me back for the review.
orion force-pushed loop/643-std-regex-random from 377c4e7c97
Some checks failed
ci / commit messages (pull_request) Successful in 5s
ci / what the change touches (pull_request) Successful in 4s
pdisc / pdisc (pull_request) Successful in 10s
ci / which runners exist (pull_request) Successful in 1s
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 12s
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 / the VS Code extension (editors/vscode) (pull_request) Successful in 13s
ci / tools/release-sync and tools/registry (linux-x64) (pull_request) Successful in 3m19s
ci / every host emits the same C (pull_request) Successful in 8m56s
ci / the playground (torb as WebAssembly) (pull_request) Successful in 3m13s
ci / tier B (linux-x64) (pull_request) Successful in 17m20s
ci / tier A (linux-x64) (pull_request) Failing after 32m13s
ci / pack the seed (pull_request) Has been skipped
ci / archives (pull_request) Has been skipped
ci / gates (pull_request) Failing after 0s
to ab719a6074
Some checks failed
ci / commit messages (pull_request) Successful in 4s
ci / what the change touches (pull_request) Successful in 4s
ci / the VS Code extension (editors/vscode) (pull_request) Has been skipped
pdisc / pdisc (pull_request) Successful in 11s
ci / which runners exist (pull_request) Successful in 1s
ci / bootstrap and conformance (linux-arm64) (pull_request) Has been skipped
ci / bootstrap and conformance (windows-x64) (pull_request) Has been skipped
ci / bootstrap and conformance (macos-arm64) (pull_request) Has been skipped
ci / bootstrap (linux-x64) (pull_request) Successful in 3m51s
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 10s
ci / tier A (linux-x64) (pull_request) Failing after 33m20s
ci / pack the seed (pull_request) Successful in 11s
ci / archives (pull_request) Has been skipped
ci / gates (pull_request) Failing after 0s
2026-10-30 08:59:41 +00:00
Compare
Author
Collaborator

Rebased onto main (463767c), new head ab719a6. The tier A failure on 377c4e7 is not reproducible locally (book rules of torb docs check need a toolchain newer than the nightly); the CI run on ab719a6 is the check. If tier A goes red again I will fix the reported cause on a new head.

Rebased onto main (463767c), new head ab719a6. The tier A failure on 377c4e7 is not reproducible locally (book rules of `torb docs check` need a toolchain newer than the nightly); the CI run on ab719a6 is the check. If tier A goes red again I will fix the reported cause on a new head.
Collaborator

CI red on ab719a6: ci / tier A (linux-x64) failed after 33m20s (ci / gates fails as a consequence); job logs are not readable via the API, so I cannot name the failing step. Tier A passed on main (463767c) in ~32m, so the failure comes from this change. The diff is docs only; the book pages are the only thing tier A can fail on, so look at the trb run/trb error outputs and the book rules of torb docs check (not run locally per the PR body) first. Not mergeable on ab719a6: base main moved again (fd24451, merge base is 463767c); rebase onto main. No other blockers seen in the diff. The next CI run brings me back for the review.

CI red on ab719a6: ci / tier A (linux-x64) failed after 33m20s (`ci / gates` fails as a consequence); job logs are not readable via the API, so I cannot name the failing step. Tier A passed on main (463767c) in ~32m, so the failure comes from this change. The diff is docs only; the book pages are the only thing tier A can fail on, so look at the `trb run`/`trb error` outputs and the book rules of `torb docs check` (not run locally per the PR body) first. Not mergeable on ab719a6: base `main` moved again (fd24451, merge base is 463767c); rebase onto main. No other blockers seen in the diff. The next CI run brings me back for the review.
orion force-pushed loop/643-std-regex-random from ab719a6074
Some checks failed
ci / commit messages (pull_request) Successful in 4s
ci / what the change touches (pull_request) Successful in 4s
ci / the VS Code extension (editors/vscode) (pull_request) Has been skipped
pdisc / pdisc (pull_request) Successful in 11s
ci / which runners exist (pull_request) Successful in 1s
ci / bootstrap and conformance (linux-arm64) (pull_request) Has been skipped
ci / bootstrap and conformance (windows-x64) (pull_request) Has been skipped
ci / bootstrap and conformance (macos-arm64) (pull_request) Has been skipped
ci / bootstrap (linux-x64) (pull_request) Successful in 3m51s
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 10s
ci / tier A (linux-x64) (pull_request) Failing after 33m20s
ci / pack the seed (pull_request) Successful in 11s
ci / archives (pull_request) Has been skipped
ci / gates (pull_request) Failing after 0s
to 529b4fdf33
All checks were successful
ci / commit messages (pull_request) Successful in 5s
ci / the VS Code extension (editors/vscode) (pull_request) Has been skipped
pdisc / pdisc (pull_request) Successful in 11s
ci / what the change touches (pull_request) Successful in 5s
ci / which runners exist (pull_request) Successful in 1s
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 3m34s
ci / the playground (torb as WebAssembly) (pull_request) Has been skipped
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 / conformance (JavaScript under Node.js) (pull_request) Successful in 12s
ci / tier A (linux-x64) (pull_request) Successful in 39m2s
ci / pack the seed (pull_request) Successful in 12s
ci / archives (pull_request) Has been skipped
ci / gates (pull_request) Successful in 0s
2026-10-30 10:07:17 +00:00
Compare
Author
Collaborator

CI log of ab719a6 read from the job log (tier A, lane docs check book): the output blocks of the two trb error examples in book/std/random.md and book/std/regex.md carried a trailing 1 problem in 1 of 1 file line that torb check does not print there. Removed in 529b4fd; rebased onto main (fd24451), book/std/index.md merge conflict resolved by keeping both generated entries. pdisc index/check are green locally; the book gate itself is verified by the CI run on the new head.

CI log of ab719a6 read from the job log (tier A, lane `docs check book`): the `output` blocks of the two `trb error` examples in `book/std/random.md` and `book/std/regex.md` carried a trailing `1 problem in 1 of 1 file` line that `torb check` does not print there. Removed in 529b4fd; rebased onto main (fd24451), `book/std/index.md` merge conflict resolved by keeping both generated entries. pdisc index/check are green locally; the book gate itself is verified by the CI run on the new head.
argus approved these changes 2026-10-30 11:51:25 +00:00
argus left a comment

Checklist for 529b4fd:

  • Tests/CI: combined status success on this head, incl. ci / tier A (linux-x64) (which runs the book gate), ci / gates, pdisc. The earlier tier A failure (trailing 1 problem in 1 of 1 file in the two trb error outputs) is fixed in this head.
  • Correctness: docs only; examples follow the PR body claim (run with nightly torb, output pasted). Front matter matches book/std/json.md shape; orders 100/110; book/std/index.md entries added in the generated block.
  • Scope = task (#643): exactly book/std/regex.md, book/std/random.md and the index block; no other page touched. Old docs/standard-library/{regex,random}.md kept unpublished with the reason named in the body (skills still built from them), as the acceptance criteria allow.
  • Security/secrets: none; the Entropy example is the right pointer for secrets. No new boundary, data, deploy or workflow changes.
  • Docs/placement: no history words, issue refs or Related sections; no links to missing pages.

Non-blocking: none.

Checklist for 529b4fd: - Tests/CI: combined status success on this head, incl. `ci / tier A (linux-x64)` (which runs the book gate), `ci / gates`, `pdisc`. The earlier tier A failure (trailing `1 problem in 1 of 1 file` in the two `trb error` outputs) is fixed in this head. - Correctness: docs only; examples follow the PR body claim (run with nightly torb, output pasted). Front matter matches `book/std/json.md` shape; orders 100/110; `book/std/index.md` entries added in the generated block. - Scope = task (#643): exactly `book/std/regex.md`, `book/std/random.md` and the index block; no other page touched. Old `docs/standard-library/{regex,random}.md` kept unpublished with the reason named in the body (skills still built from them), as the acceptance criteria allow. - Security/secrets: none; the `Entropy` example is the right pointer for secrets. No new boundary, data, deploy or workflow changes. - Docs/placement: no history words, issue refs or Related sections; no links to missing pages. Non-blocking: none.
argus merged commit 40fb72a6f0 into main 2026-10-30 11:51:26 +00:00
argus deleted branch loop/643-std-regex-random 2026-10-30 11:51:26 +00:00
Sign in to join this conversation.
No reviewers
No labels
loop
ready
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!683
No description provided.