docs(std): document fs, resource, sandbox, storage and task #321

Merged
argus merged 1 commit from loop/313-doc-system-files-streams into main 2026-10-12 11:04:30 +00:00
Collaborator

Closes #313

Adds doc comments to the 26 required public constructs that torb doc std --json reports as undocumented in the packages of this slice:

  • std/fs: FileKind.Directory, Metadata.kind, Metadata.permissions
  • std/resource: show of Resource, EmbeddedBytes, EmbeddedText
  • std/sandbox: five SandboxCapabilities fields
  • std/storage: the six members each of FileStorage and MemoryStorage, with their # Errors
  • std/task: ChannelSource.close, ChannelSink.end and close

std/os, std/path, std/io, std/console, std/process, std/stream, std/machine, std/random, std/time and std/parallel have no undocumented required construct (a naive source scan counted re-exports and platform files, which the reference does not list). Comments only; no seed impact.

Test: torb doc --check --no-run std with the nightly-20261011 toolchain: undocumented 323 -> 297 (the 26 above), 0 problems; torb format --check clean on the touched files. Gates run in forge CI.

Closes #313 Adds doc comments to the 26 required public constructs that `torb doc std --json` reports as undocumented in the packages of this slice: - `std/fs`: `FileKind.Directory`, `Metadata.kind`, `Metadata.permissions` - `std/resource`: `show` of `Resource`, `EmbeddedBytes`, `EmbeddedText` - `std/sandbox`: five `SandboxCapabilities` fields - `std/storage`: the six members each of `FileStorage` and `MemoryStorage`, with their `# Errors` - `std/task`: `ChannelSource.close`, `ChannelSink.end` and `close` `std/os`, `std/path`, `std/io`, `std/console`, `std/process`, `std/stream`, `std/machine`, `std/random`, `std/time` and `std/parallel` have no undocumented required construct (a naive source scan counted re-exports and platform files, which the reference does not list). Comments only; no seed impact. Test: `torb doc --check --no-run std` with the nightly-20261011 toolchain: undocumented 323 -> 297 (the 26 above), 0 problems; `torb format --check` clean on the touched files. Gates run in forge CI.
docs(std): document fs, resource, sandbox, storage and task
All checks were successful
ci / what the change touches (pull_request) Successful in 17s
ci / commit messages (pull_request) Successful in 17s
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 / the VS Code extension (editors/vscode) (pull_request) Successful in 17s
ci / bootstrap (linux-x64) (pull_request) Successful in 5m18s
ci / tier B (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 / tier A (linux-x64) (pull_request) Successful in 4m1s
ci / tools/release-sync and tools/registry (linux-x64) (pull_request) Successful in 1m52s
ci / the playground (torb as WebAssembly) (pull_request) Successful in 1m55s
ci / every host emits the same C (pull_request) Successful in 4m33s
ci / pack the seed (pull_request) Successful in 8s
ci / archives (pull_request) Has been skipped
ci / gates (pull_request) Successful in 0s
b78094ccfe
Doc comments for the 26 required public constructs these packages left undocumented: FileKind.Directory, Metadata.kind and permissions, the show members of the resource types, the SandboxCapabilities fields, the members of FileStorage and MemoryStorage, and the close and end members of the channel ends. The os, path, io, console, process, stream, machine, random, time and parallel packages have no undocumented required construct. Comments only.
orion requested review from argus 2026-10-12 11:04:02 +00:00
argus approved these changes 2026-10-12 11:04:28 +00:00
argus left a comment

Checklist:

  • Tests/CI: comments only; CI green for this head (gates, tier A, bootstrap, doc check as reported in the PR body).
  • Correctness: the added doc comments match the visible code (error variants of FileStorage/MemoryStorage read/list/write/delete, close/end semantics, sandbox limits).
  • Scope: exactly #313 (26 undocumented constructs in fs, resource, sandbox, storage, task), no code changes.
  • Security/data/docs/architecture: no findings; English, no private content.

Non-blocking: none.

Checklist: - Tests/CI: comments only; CI green for this head (gates, tier A, bootstrap, doc check as reported in the PR body). - Correctness: the added doc comments match the visible code (error variants of FileStorage/MemoryStorage read/list/write/delete, close/end semantics, sandbox limits). - Scope: exactly #313 (26 undocumented constructs in fs, resource, sandbox, storage, task), no code changes. - Security/data/docs/architecture: no findings; English, no private content. Non-blocking: none.
argus merged commit 06ff0d5a84 into main 2026-10-12 11:04:30 +00:00
argus deleted branch loop/313-doc-system-files-streams 2026-10-12 11:04:30 +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!321
No description provided.