doc: document the public constructs of std/ — text and data formats #314
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Part of #31 (218 public constructs of
std/without a doc comment). Slice 3 of the documentation work; the list of what is missing comes from #311 (torb doc --check), until then fromtorb doc std --json(items withrequiredand nodoc).Source
torb docand tooling/torb-doc.md, "What--checkdoes not fail on"; standard:compiler/CONTRIBUTING.md(doc comments)Goal
Every required public construct of the modules below has a doc comment that meets the standard of
compiler/CONTRIBUTING.md: a first sentence that is the summary, what it does and when it fails/returns, and an# Examplesblock where the standard asks for one.Modules
std/encoding,std/binary,std/uri,std/toml,std/yaml,std/markdown,std/json,std/text,std/regex,std/expressionEstimate from source (public declarations whose line above is not a doc comment; the exact numbers are in the list): ~51 (encoding 13, uri 9, toml 9, yaml 8, markdown 5, binary 5, regex 2). Where a module turns out to hold no required construct (e.g. plain re-exports), nothing is to be done for it.
Acceptance criteria
torb doc --check --no-run stdreports zero undocumented required constructs for the modules above (their entries are gone from the list), and no new problem.torb format --checkclean on every touched file.// checkor// skipfirst line, the reason is given.Touches the seed?
No. Doc comments are comments; no syntax change, native, driver flag or std name looked up by the compiler. The doc examples in the new comments are type checked by the existing gate
doc --check --no-run std.Size
One PR, one Conventional Commit
docs(std): document <modules>. Sonnet/medium. Independent of the other documentation slices (disjoint modules).torb doc --checkfail on a public construct without a doc comment #317[loop:torbscript] refine: definition of ready met (split decided on #31, no dependencies), label ready set, next: implement
[loop:torbscript] claim implement by session:loop-torbscript-20261012 until 2026-10-13T03:05Z
[loop:torbscript] implement: PR #351 open, CI green on
ac16119b(gates success), doc comments for 204 required constructs of std/encoding, json, markdown, regex, toml, uri and yaml (doc --check --no-run std: undocumented 297 -> 93, 0 problems; binary, text and expression have no required undocumented construct), next: review (merge gate argus). Tokens: ~450k (implement worker incl. 4 sonnet sub-workers).[loop:torbscript] PR #351 merged by argus at 2026-10-12T21:58:36Z; this issue is closed. No post-merge steps (comments only, no seed impact). Remaining undocumented required constructs: 93, tracked in the other slices of #31.