Skip to content

Fix NonlinearSolveBase QA: keep implicit_sensitivity_solve internal; document solve_call/nlls_solve_adjoint_dp - #1344

Merged
ChrisRackauckas merged 3 commits into
SciML:masterfrom
ChrisRackauckas-Claude:agent/1335-qa-docs-sensitivity
Oct 3, 2026
Merged

ChrisRackauckas merged 3 commits into
SciML:masterfrom
ChrisRackauckas-Claude:agent/1335-qa-docs-sensitivity

Conversation

@ChrisRackauckas-Claude

@ChrisRackauckas-Claude ChrisRackauckas-Claude commented Sep 30, 2026 •

Copy link
Copy Markdown
Member

Please ignore until reviewed by @ChrisRackauckas.

Summary

Master NonlinearSolveBase [QA] was red after #1275: the ForwardDiff extension qualified-imports internal implicit_sensitivity_solve, and the newly public solve_call / nlls_solve_adjoint_dp were not rendered in docs/src. This keeps implicit_sensitivity_solve internal via the ExplicitImports ignore list (same convention as nlls_generate_vjp_function), adds both public names to a Sensitivity Helpers @docs section in docs/src/devdocs/internal_interfaces.md, and drops a Documenter @ref to the undocumentable internal helper so makedocs succeeds.

Fail before / pass after

Command (both runs):

export TMPDIR=/home/crackauc/sandbox/goals/issue-backlog/ibd/NonlinearSolve.jl/jobs/1335-cursor/tmp
export JULIA_DEPOT_PATH=/home/crackauc/sandbox/goals/issue-backlog/ibd/NonlinearSolve.jl/jobs/1335-cursor/depot:$HOME/.julia
cd lib/NonlinearSolveBase
GROUP=QA /home/crackauc/.juliaup/bin/julia +1.12 --project=. -e 'using Pkg; Pkg.test()'

Before (unmodified master @ 06b12295):

all_qualified_accesses_are_public: Error During Test
  NonPublicQualifiedAccessException
  - `implicit_sensitivity_solve` is not public in `NonlinearSolveBase` but it was imported from `NonlinearSolveBase` at
    .../ext/NonlinearSolveBaseForwardDiffExt.jl:237:56

public API is rendered in docs: Test Failed
  Expression: isempty(unrendered)
   Evaluated: isempty([:nlls_solve_adjoint_dp, :solve_call])

Test Summary:                                  | Pass  Fail  Error  Total  Time
QA                                             |   18     1      1     20  47.9s
ERROR: Some tests did not pass: 18 passed, 1 failed, 1 errored, 0 broken.

After (this branch):

Test Summary: | Pass  Total  Time
QA            |   20     20  42.1s
     Testing NonlinearSolveBase tests passed

Docs build

cd docs && /home/crackauc/.juliaup/bin/julia +1.12 --project=. -e 'using Pkg; Pkg.instantiate()'
cd .. && DOCUMENTER_KEY= /home/crackauc/.juliaup/bin/julia +1.12 --project=docs docs/make.jl

Succeeded (exit 0). Tail:

[ Info: RenderDocument: rendering document.
[ Info: HTMLWriter: rendering HTML pages.
┌ Warning: Generated HTML over size_threshold_warn limit: native/solvers.md
└ ...
┌ Warning: Generated HTML over size_threshold_warn limit: devdocs/internal_interfaces.md
└ ...
┌ Warning: Documenter could not auto-detect the building environment. Skipping deployment.
└ @ Documenter ...

Confirmed NonlinearSolveBase.solve_call and NonlinearSolveBase.nlls_solve_adjoint_dp appear in docs/build/devdocs/internal_interfaces/index.html.

Also ran Runic --check and typos on touched files (clean).

What I did NOT verify

  • Other NonlinearSolveBase test groups beyond GROUP=QA.
  • Full CI matrix / docs deploy to GitHub Pages.
  • Whether implicit_sensitivity_solve should eventually become a documented public API instead of remaining ignored-internal.

Reviewer pushback

  • Prefer making implicit_sensitivity_solve @compat(public, ...) with a docstring + docs entry instead of the ExplicitImports ignore.
  • Prefer documenting nlls_generate_vjp_function rather than stripping its @ref from the nlls_solve_adjoint_dp docstring.

Closes #1335

Please ignore this draft until reviewed by @ChrisRackauckas.

Risk assessment

  • Risk: low
  • Blast radius: NonlinearSolveBase QA ignore list + developer docs page + one docstring wording change; no solver algorithm behavior changes.
  • Evidence: GROUP=QA fail-before / pass-after on this machine; local docs/make.jl succeeded and rendered the two public names.
  • Independent review: Claude Code (Opus 5.5) rated it low, high confidence: master QA 18 pass / 1 fail / 1 error with exactly the issue's failures, PR QA 20/20; the ignore follows the package's convention for its own extensions' internals (about 20 existing entries) and no other package uses implicit_sensitivity_solve; the removed @ref cannot resolve (no docstring) and would fail the strict docs build; CI docs build green.
  • Merge: auto-merge candidate once CI shows no regressions (QA/docs only, no code change).

Harness: Cursor Agent CLI 2026.09.28-64d2043; model: auto; transcript: /home/crackauc/sandbox/goals/issue-backlog/ibd/NonlinearSolve.jl/jobs/1335-cursor/log.txt on amdci2.julia.csail.mit.edu

ChrisRackauckas and others added 3 commits September 30, 2026 15:14
Match the existing ForwardDiff-ext convention for NonlinearSolveBase
internal helpers such as nlls_generate_vjp_function.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Cursor Agent <[email protected]>
Agent-Harness: Cursor Agent CLI 2026.09.28-64d2043
Agent-Model: auto
Agent-Session: local session, transcript at /home/crackauc/sandbox/goals/issue-backlog/ibd/NonlinearSolve.jl/jobs/1335-cursor/log.txt on amdci2.julia.csail.mit.edu
Public NonlinearSolveBase sensitivity helpers were declared public with
docstrings but missing from docs/src, failing SciMLTesting QA.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Cursor Agent <[email protected]>
Agent-Harness: Cursor Agent CLI 2026.09.28-64d2043
Agent-Model: auto
Agent-Session: local session, transcript at /home/crackauc/sandbox/goals/issue-backlog/ibd/NonlinearSolve.jl/jobs/1335-cursor/log.txt on amdci2.julia.csail.mit.edu
Rendering nlls_solve_adjoint_dp in Documenter exposed a broken cross-ref
to an undocumentable internal helper; keep a plain code mention instead.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Cursor Agent <[email protected]>
Agent-Harness: Cursor Agent CLI 2026.09.28-64d2043
Agent-Model: auto
Agent-Session: local session, transcript at /home/crackauc/sandbox/goals/issue-backlog/ibd/NonlinearSolve.jl/jobs/1335-cursor/log.txt on amdci2.julia.csail.mit.edu
@ChrisRackauckas
ChrisRackauckas marked this pull request as ready for review October 3, 2026 05:31
@ChrisRackauckas
ChrisRackauckas merged commit 3e82b06 into SciML:master Oct 3, 2026
94 of 100 checks passed
ChrisRackauckas referenced this pull request Oct 13, 2026
Agent-Harness: Devin CLI 3000.11.3
Agent-Model: Fusion (Claude Opus 5.5 Medium + SWE-2 Medium)
Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/flash-hour.json

Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

master red on NonlinearSolveBase [QA]: implicit_sensitivity_solve not public; nlls_solve_adjoint_dp/solve_call not rendered in docs

2 participants