Repository navigation
Improve docstrings and build docs with checkdocs=:all - #312
ChrisRackauckas-Claude wants to merge 3 commits into
Conversation
Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Muse <noreply@meta.com> Agent-Harness: Muse CLI Code Agent-Model: muse-wonder-full-1.0 Agent-Session: local job 138-muse (no session URL)
Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Muse <noreply@meta.com> Agent-Harness: Muse CLI Code Agent-Model: muse-wonder-full-1.0 Agent-Session: local job 138-muse (no session URL)
Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Muse <noreply@meta.com> Agent-Harness: Muse CLI Code Agent-Model: muse-wonder-full-1.0 Agent-Session: local job 138-muse (no session URL)
Independent review (Codex CLI v0.164.0 / gpt-6.1-sol), reviewer session 01a1c56a-29ac-7743-8ebd-c05c8f38948e, reviewed head 1b573d0
This is a blind code-only review by a session other than the PR author's, copied below from the reviewer's report with only the grading metadata removed. The posting agent did not re-run the reviewer's commands. A MERGE verdict is advice; merging is left to the maintainers. Risklow (L1: docstrings, manual coverage and strict docs-build configuration; no executable numerical changes). Blocking findings
Non-blocking findings
What I ranAll Julia package operations, generated manifests, builds and probes ran in
What I did not verifyGPU execution, other Julia versions/platforms, downstream packages and actual documentation deployment. No GPU/AD implementation changed. No project-locked Python environment is supplied. The requested corrections above are supported by executed probes; no speculative numerical regression is alleged. 🤖 Posted by an AI agent — harness: Claude Code 2.1.322 · model: claude-sonnet-5-5 |
Closes #138
What changed and why
The
warnonly = [:missing_docs, :docs_block]line named in the issue is already gone on master, butdocs/make.jlstill only usedcheckdocs = :exports, so documented internal names that never appear in the manual were invisible to the docs build. This PR improves those docstrings (accurate signatures,# Arguments,# Returns; this fixes two wrong signature lines —arnoldi_step!was documented as a Lanczos step with arguments in the wrong order, andlanczos_step!listed arguments it does not take), adds a module docstring forExponentialUtilities, renders all 15 previously unlisted docstrings on a new Internal API page (docs/src/internal.md, marked as carrying no stability guarantee), and builds the docs withcheckdocs = :all, warnonly = falseso a docstring missing from the manual fails the build instead of passing silently..factory-pre-push.jsondeclares the repository's existing Runic formatter for the worker pre-push gate, which blocked the first push attempt for lack of a declaration; it only restates thejulia --project=@runic -m Runic --checkcommand fromAGENTS.md.No executable code changes: every
src/edit is inside a docstring.Verification
Before, on the unmodified tree, a docs build with
checkdocs = :all, warnonly = falsefailed:After,
julia --project=docs docs/make.jl(now itselfcheckdocs = :all, warnonly = false) exits 0:GROUP=Core julia --project -e 'using Pkg; Pkg.test()':GROUP=QA julia --project -e 'using Pkg; Pkg.test()':(The broken markers are the pre-existing AllocCheck expectations in
test/qa/qa.jland one pre-existing Core broken test; both test files are untouched.)Also run and passing:
julia --project=@runic -m Runic --checkon every changed.jlfile,typos src ext test docs, and a signature audit printingmethods(...)for every internal name whose docstring signature line changed, confirming the documented argument order matches the definitions.What was not verified
GROUP=GPU(needs CUDA hardware); no executable code changed.deploydocs); the local build stops at rendering, as without CI credentials it cannot deploy.linkcheck = truewas active in the local build.expvmethod docstring inext/is not part of themodules = [ExponentialUtilities]docs build (StaticArrays is not in the docs environment), socheckdocs = :alldoes not cover it; it is unchanged.What a reviewer should push back on
checkdocs = :allis deleting those docstrings or demoting them to comments; this PR instead documents them on a clearly-labelled Internal API page. If that page is unwanted, keepingcheckdocs = :exportsand only the docstring-text fixes is the smaller change.checkdocs = :allis stricter than the issue strictly requires now thatwarnonlyis gone: any future internal docstring must be added todocs/src/internal.mdor the docs build fails. That is the intended guard, but it is a recurring maintenance step..factory-pre-push.jsonis worker-gate metadata, not package functionality. Drop that commit if it should not live in this repository; the docs change does not depend on it.n,p,t,mu,l) deserve a read from someone who uses that path.Risk assessment
checkdocsstrictness increase can only fail future docs builds, not library code)checkdocs = :allare policy choices a maintainer should confirm.🤖 Posted by an AI agent — harness: Muse CLI Code · model: muse-wonder-full-1.0
Conversation: local job 138-muse (no session URL)