Repository navigation
Declare RobustTrustRegionLinsolve public in NonlinearSolveBase - #1357
Merged
ChrisRackauckas merged 1 commit intoOct 5, 2026
Merged
ChrisRackauckas merged 1 commit into
ChrisRackauckas merged 1 commit into
Conversation
FirstOrder imports this sentinel for TrustRegionRobust; mark it public via Compat.@compat and document it next to MoreTrustRegionDescent so ExplicitImports QA no longer treats the access as non-public. Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Cursor Agent <[email protected]> Agent-Harness: Cursor Agent CLI Agent-Model: auto Agent-Session: ~/sandbox/goals/ci-green/work/cig-nls-firstorder-downgrade/log.txt (local transcript, amdci2)
ChrisRackauckas
marked this pull request as ready for review
October 5, 2026 01:03
This was referenced Oct 7, 2026
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
NonlinearSolveFirstOrderexplicitly importsRobustTrustRegionLinsolvefromNonlinearSolveBaseforTrustRegionRobust, but the sentinel was never declaredpublic. That makes FirstOrder QA ExplicitImports fail whenever FirstOrder is exercised (including as a transitive SublibraryCI target). Mark it public with Compat.@compat, keep the existing docstring, and add a docs@docsentry besideMoreTrustRegionDescent.Ignore until reviewed by @ChrisRackauckas
Evidence
Local Julia 1.10.12:
(logs under
cig-nls-firstorder-downgrade/logs/nsb_qa_r2.logandfo_qa_r2.log)What was not verified
@docsentryRisk assessment
publicdeclaration.🤖 Generated with Cursor Agent CLI (model: auto) — session: local transcript ~/sandbox/goals/ci-green/work/cig-nls-firstorder-downgrade/log.txt on amdci2
Made with Cursor
Risk assessment (independent review, head b27a4e0)
NonlinearSolveBase.RobustTrustRegionLinsolveto the public set (@compat publicplus a@docsentry). No runtime change.all_explicit_imports_are_public:RobustTrustRegionLinsolve); on this PR it passes 20/20. The 1.10 logs in the body don't exercise the check, because SciMLTesting skips the public-API checks below 1.11. Other red checks are pre-existing or are fixed by Convert Krylov Vector seeds to SVector for Enzyme VJP in SciMLJacobianOperators #1356.TrustRegionRobust's docstring and error message already direct users to.🤖 Risk assessment posted by an AI agent (fleet master) — harness: Devin CLI 3000.11.3 (Mac) / fusion-claude-opus-5-5-high-sidekick-swe-2-medium (adversarial review.sh run); dispatched by Devin CLI 3000.11.3 (Mac) fleet-master caretaker
Conversation: local transcript ~/.local/share/devin/cli/transcripts/speckle-whale.json (Chris's Mac)
Risk assessment
NonlinearSolveBase.RobustTrustRegionLinsolveto the public API, via@compat(public, ...)and a@docsentry indocs/src/native/descent.md. Runtime behaviour does not change. The type and its docstring already exist inlib/NonlinearSolveBase/src/descent/more_trust_region.jl. Making it public is additive (a minor-level SemVer change), but the PR doesn't bump NonlinearSolveBase's version, so the next release needs to be a minor bump. No code reaches into dependencies' private internals, and no tests are weakened.tests / Core (julia lts, macos-latest)andtests / Core (julia lts, ubuntu-latest): samesolve!() inferenceerror attest/Core/core_tests__item3.jl:27(8 pass / 1 error) as master run 37120597074.sublibraries / lib/SCCNonlinearSolve / Julia 1 / Tests - Core: sameVector-form SCCNonlinearProblem with FunctionWrappersfailure atcore_tests__item4.jl:100(12 pass / 1 fail) as master run 37120597132.sublibraries / lib/NonlinearSolveFirstOrder / Julia 1 / Tests - Core: same 21 EnzymeThunkCallErrorerrors atrootfind_tests__item8.jl:30(1113 pass / 21 error) as master run 37100130077. The commits between that run and the master tip only touch SCCNonlinearSolve. The open Convert Krylov Vector seeds to SVector for Enzyme VJP in SciMLJacobianOperators #1356 targets this failure.downgrade-sublibraries / test (lib/NonlinearSolveFirstOrder): same 28 Enzyme errors (1512 pass / 28 error) as master run 37120596986.sublibraries / lib/NonlinearSolveFirstOrder [QA] / Julia 1fails on master (run 37100130077) and passes on this PR.NonlinearSolveBase [QA], theDocumentationbuild (which covers the new@docsentry), andformat-checkall pass.exportblocks instead of with the other@compat publiclines at about lines 117–159, which is only cosmetic.🤖 Risk assessment posted by an AI agent (fleet master) — harness: Devin CLI (Mac) / fusion-claude-opus-5-5-high-sidekick-swe-2-medium; dispatched by Devin CLI 3000.11.3 (Mac) fleet-master caretaker, model Fusion (claude-opus-5-5 medium + swe-2 medium)
Conversation: local transcript ~/.local/share/devin/cli/transcripts/speckle-whale.json (Chris's Mac)