Skip to content

Approve Symbolics derivative operator re-exports in QA - #5433

Draft
ChrisRackauckas-Claude wants to merge 1 commit into
masterfrom
agent/5432-mtkqa-reexport
Draft

ChrisRackauckas-Claude wants to merge 1 commit into
masterfrom
agent/5432-mtkqa-reexport

Conversation

@ChrisRackauckas-Claude

@ChrisRackauckas-Claude ChrisRackauckas-Claude commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

🚧 UNREVIEWED — awaiting review by @ChrisRackauckas. Filed by an AI agent running as @ChrisRackauckas; Chris has not seen this.
Harness: Codex CLI 0.170.0 · Model: gpt-6.2-sol
Conversation: local session 01a2032b-881c-7e00-a1ce-979244cea5b8 (no session URL)

Approve the existing Symbolics re-exports Curl, Divergence, Grad, Laplacian, and NormalDerivative through SciMLTesting's reexports_allow in ModelingToolkit and ModelingToolkitBase. The ModelingToolkit manual lists the operators, notes their availability with Symbolics 7.49 or later, and links to their defining documentation.

Closes #5432

Verification

QA ran on Julia 1.12.4 with Symbolics 7.49.0 and SciMLTesting 2.13.3.

export JULIA_NUM_PRECOMPILE_TASKS=6 JULIA_PKG_PRECOMPILE_AUTO=0
GROUP=QA julia --project -e 'using Pkg; Pkg.test()'
GROUP=QA julia --project=lib/ModelingToolkitBase -e 'using Pkg; Pkg.test()'

Both QA groups exited 1 on the base commit with the same assertion.

  Expression: isempty(reexported)
   Evaluated: isempty([:Curl, :Divergence, :Grad, :Laplacian, :NormalDerivative])

ModelingToolkit before and after

Test Summary:                                  | Pass  Fail  Total      Time
QA                                             |   39     1     40  12m08.5s
    No unapproved public reexports             |          1      1      2.3s
Test Summary: | Pass  Total     Time
QA            |   40     40  3m41.2s
     Testing ModelingToolkit tests passed

ModelingToolkitBase before

Test Summary: | Pass  Total     Time
JET Tests     |   54     54  3m31.5s
Test Summary:                                  | Pass  Fail  Total      Time
Aqua Tests                                     |   20     1     21  11m41.7s
    No unapproved public reexports             |          1      1      2.1s

ModelingToolkitBase after

Test Summary: | Pass  Total   Time
JET Tests     |   54     54  58.0s
Test Summary: | Pass  Total      Time
Aqua Tests    |   21     21  13m44.6s
     Testing ModelingToolkitBase tests passed

A Julia check confirmed that both packages export the identical Symbolics binding for each operator and that each binding has a Symbolics docstring.

julia --project=@runic -m Runic --inplace test/qa/qa.jl lib/ModelingToolkitBase/test/qa/aqua.jl
julia --project=@runic -m Runic --check --diff --verbose test/qa/qa.jl lib/ModelingToolkitBase/test/qa/aqua.jl
typos test/qa/qa.jl lib/ModelingToolkitBase/test/qa/aqua.jl docs/src/API/variables.md
git diff --check
[1/2] Checking `test/qa/qa.jl` ............................................... ✔
[2/2] Checking `lib/ModelingToolkitBase/test/qa/aqua.jl` ..................... ✔
typos exited 0
git diff --check exited 0
julia --project=docs -e 'using Pkg; Pkg.instantiate()'
xvfb-run -a julia --project=docs docs/make.jl

The documentation build exited 0. The rendered API page contains the five names and the link to the Symbolics reference.

[ Info: CheckDocument: running document checks.
[ Info: Populate: populating indices.
[ Info: RenderDocument: rendering document.
[ Info: HTMLWriter: rendering HTML pages.

The local runs covered the two QA groups on Julia 1.12.4. Downgrade, other Julia versions, GPU, and downstream runs were outside local verification.

GitHub Actions

All workflows finished. GitHub reported 105 successful checks, two failed checks, and one skipped check. Ten workflows succeeded, including Tests, Documentation, and Downgrade Sublibraries. PR checks · Documentation · Downgrade Sublibraries

Review focus

Confirm that the five existing Symbolics bindings belong in the public re-export lists of both packages. The manual qualifies availability by Symbolics version because the packages support releases before 7.49.

Risk assessment

  • Risk: low
  • Blast radius: QA approval lists and documentation for five existing public bindings.
  • Evidence: The unapproved re-export assertion failed in both baselines and both full QA groups passed with the approvals. The documentation build and formatter passed.
  • Independent review: pending.
  • Merge: needs human review by @ChrisRackauckas.

🤖 Posted by an AI agent — harness: Codex CLI 0.170.0 · model: gpt-6.2-sol
Conversation: local session 01a2032b-881c-7e00-a1ce-979244cea5b8 (no session URL)

Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Co-Authored-By: Codex <noreply@openai.com>
Agent-Harness: Codex CLI 0.170.0
Agent-Model: gpt-6.2-sol
Agent-Job: 5432-codex
Agent-Session: local session 01a2032b-881c-7e00-a1ce-979244cea5b8 (no session URL)
@github-actions

Copy link
Copy Markdown
Contributor

Benchmark Results (Julia v1)

Time benchmarks
ae0a57d... 4d629dd... ae0a57d... / 4d629dd...
ODEProblem 6.92 ± 0.76 ms 5.86 ± 0.5 ms 1.18 ± 0.16
init 0.0702 ± 0.022 ms 0.0691 ± 0.023 ms 1.02 ± 0.46
large_parameter_init/ODEProblem 14 ± 1.9 ms 12.8 ± 1.4 ms 1.09 ± 0.19
large_parameter_init/init 0.0761 ± 0.012 ms 0.0768 ± 0.013 ms 0.991 ± 0.23
mtkcompile 10.4 ± 0.97 ms 10.5 ± 0.82 ms 0.99 ± 0.12
sparse_analytical_jacobian/ODEProblem 17.4 ± 1.5 ms 17 ± 1.6 ms 1.02 ± 0.13
sparse_analytical_jacobian/f_iip 0.06 ± 0 μs 0.07 ± 0 μs 0.857 ± 0
sparse_analytical_jacobian/f_oop 0.0998 ± 0.013 ms 0.1 ± 0.014 ms 0.994 ± 0.19
time_to_load 5.4 ± 0.18 s 5.46 ± 0.098 s 0.99 ± 0.037
Memory benchmarks
ae0a57d... 4d629dd... ae0a57d... / 4d629dd...
ODEProblem 28.8 k allocs: 1.5 MB 28.8 k allocs: 1.51 MB 0.988
init 0.48 k allocs: 0.0537 MB 0.48 k allocs: 0.0537 MB 1
large_parameter_init/ODEProblem 0.122 M allocs: 4.14 MB 0.122 M allocs: 4.24 MB 0.976
large_parameter_init/init 0.765 k allocs: 0.162 MB 0.765 k allocs: 0.162 MB 1
mtkcompile 0.06 M allocs: 2.87 MB 0.06 M allocs: 2.87 MB 1
sparse_analytical_jacobian/ODEProblem 0.0991 M allocs: 4.17 MB 0.099 M allocs: 4.17 MB 1
sparse_analytical_jacobian/f_iip 0 allocs: 0 B 0 allocs: 0 B
sparse_analytical_jacobian/f_oop 0.848 k allocs: 27 kB 0.848 k allocs: 27 kB 1
time_to_load 0.199 k allocs: 11.8 kB 0.199 k allocs: 11.8 kB 1

@github-actions

Copy link
Copy Markdown
Contributor

Benchmark Results (Julia vlts)

Time benchmarks
ae0a57d... 4d629dd... ae0a57d... / 4d629dd...
ODEProblem 6.62 ± 0.81 ms 6.26 ± 0.74 ms 1.06 ± 0.18
init 0.113 ± 0.034 ms 0.116 ± 0.028 ms 0.971 ± 0.37
large_parameter_init/ODEProblem 14.6 ± 1.6 ms 15.4 ± 1.9 ms 0.949 ± 0.16
large_parameter_init/init 0.115 ± 0.053 ms 0.127 ± 0.044 ms 0.906 ± 0.52
mtkcompile 11.9 ± 1.2 ms 11 ± 1.2 ms 1.08 ± 0.16
sparse_analytical_jacobian/ODEProblem 19.1 ± 2.1 ms 19 ± 1.4 ms 1.01 ± 0.13
sparse_analytical_jacobian/f_iip 0.07 ± 0 μs 0.07 ± 0 μs 1 ± 0
sparse_analytical_jacobian/f_oop 0.37 ± 0.011 ms 0.378 ± 0.01 ms 0.98 ± 0.04
time_to_load 7.93 ± 0.42 s 8.14 ± 0.35 s 0.974 ± 0.067
Memory benchmarks
ae0a57d... 4d629dd... ae0a57d... / 4d629dd...
ODEProblem 29.9 k allocs: 1.76 MB 30.2 k allocs: 1.78 MB 0.987
init 0.486 k allocs: 0.0707 MB 0.486 k allocs: 0.0707 MB 1
large_parameter_init/ODEProblem 0.124 M allocs: 4.75 MB 0.124 M allocs: 4.75 MB 1
large_parameter_init/init 0.618 k allocs: 0.168 MB 0.618 k allocs: 0.168 MB 1
mtkcompile 0.0636 M allocs: 3.65 MB 0.0636 M allocs: 3.65 MB 1
sparse_analytical_jacobian/ODEProblem 0.104 M allocs: 5.29 MB 0.104 M allocs: 5.28 MB 1
sparse_analytical_jacobian/f_iip 0 allocs: 0 B 0 allocs: 0 B
sparse_analytical_jacobian/f_oop 0.634 k allocs: 19.6 kB 0.634 k allocs: 19.6 kB 1
time_to_load 0.155 k allocs: 14.3 kB 0.155 k allocs: 14.3 kB 1

This branch has not been deployed

No deployments
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.

QA fails on unapproved public reexports of Symbolics vector derivative operators

2 participants