Repository navigation
test: remove stale test/inputoutput.jl superseded by input_output_handling.jl - #5215
ChrisRackauckas-Claude wants to merge 7 commits into
Conversation
…dling.jl This orphan test file is not included by any test group and cannot even be loaded: it exercises the `pins`/`observed`-collapsing System API that no longer exists (`System(eqs, t; pins = ...)` is no longer a valid constructor). Its still-meaningful assertions — marking variables with [input = true]/[output = true] metadata and input/output handling — are covered by lib/ModelingToolkitBase/test/input_output_handling.jl (the "Input Output Test" in group InterfaceI, which exercises isinput/ isoutput/unbound_inputs/bound_inputs) and by the [input = true]/ [output = true] usage in components.jl, analysis_points.jl, bvproblem.jl, and sdesystem.jl. Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Cursor Agent <noreply@cursor.com> Agent-Harness: Cursor Agent CLI 2026.09.26-dd393fe Agent-Model: unknown Agent-Session: local session f392296d-0b89-4ec9-81c4-d52aac9835ff (no session URL) Co-Authored-By: Devin <noreply@cognition.ai> Agent-Harness: Devin CLI 3000.11.3 Agent-Model: swe-2-high Agent-Session: local job mtk-continue (no session URL)
Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Devin <noreply@cognition.ai> Agent-Harness: Devin CLI 3000.11.3 (conflict resolution) Agent-Model: fusion-claude-opus-5-5-high-sidekick-swe-2-medium Agent-Session: local job SciML_ModelingToolkit.jl-5215 (no session URL) Agent-Harness: Claude Code 2.1.285 (orchestration) Agent-Model: unknown Agent-Session: local session 3c311569-dda6-4687-bc9f-65febb212c33 (no session URL)
Merged the default branch into this PR (clean merge, no conflicts; head 46fe8b5) so CI runs on current master. 🤖 Posted by an AI agent — harness: Devin CLI 3000.11.3 (merge), Claude Code 2.1.285 (posting) · model: fusion-claude-opus-5-5-high-sidekick-swe-2-medium |
Ports the remaining assertions of the deleted test/inputoutput.jl (a variable marked `[input = true]` is not an output, and vice versa) into input_output_handling.jl using the public isinput/isoutput API. Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Agent-Harness: Claude Code 2.1.301 Agent-Model: claude-opus-5-5 Agent-Session: local session ID 95ee4eb9-13ab-49f2-b1d7-02f767287883 (headless claude -p, no URL)
5535990 to
9879f46
Compare
Include current upstream test compatibility changes and dependency requirements. Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Codex <noreply@openai.com> Agent-Harness: Codex CLI 0.164.0 Agent-Model: gpt-6.1-sol Agent-Session: local fixer job SciML__ModelingToolkit.jl__5215 (no session URL)
PR: #5215 Reviewed head: dea0eaf Risk assessment
Review reportVERDICT: MERGE Risklow (L4: removes an unreferenced legacy fixture; L2: strengthens active metadata assertions). Blocking findingsNone. Non-blocking findingsNone.
What I ranAI reviewer: Codex CLI 0.164.0, model gpt-6.1-sol; session above (no session URL). Julia 1.13.2 used a scratch environment pointing to both checkout packages, preserving the supplied depot. Below,
What I did not verifyFull InterfaceI/QA groups, other Julia versions/platforms, or remote CI. The supplied non-green CI status remains unverified. No checked-in Julia Manifest or Python lockfile exists; Julia dependencies were resolved in scratch, and no project-locked Python environment was available. AUTHOR_GRADE: {"task":"test","score":5,"difficulty":1,"rounds":1,"author_harness":"Codex CLI 0.164.0","author_model":"gpt-6.1-sol","note":"Strengthens active assertions and removes an unreferenced fixture without production changes. All 243 affected tests and 34 targeted metadata probes pass."} Head link: dea0eaf 🤖 Posted by an AI agent — harness: codex-cli 0.164.0 · model: gpt-6.1-sol |
Include the accepted upstream spelling correction while preserving branch history. The PR contribution remains the existing two-file test change. Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Codex <noreply@openai.com> Agent-Harness: Codex CLI 0.164.0 Agent-Model: gpt-6.1-sol Agent-Session: local fixer job SciML__ModelingToolkit.jl__5215 (no session URL)
Bring in the upstream public declaration and documentation for expand_record_equations. Keep the input/output test changes. 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: SciML__ModelingToolkit.jl__5215--20261122T043724Z-codex-gpt-6.2-sol Agent-Session: local session 01a2018d-13bc-79c2-b921-edb15afc65b6 (no session URL)
Summary
Three test files —
test/constraints.jl,test/inputoutput.jl, andtest/problem_validation.jl— are not included by any group intest/runtests.jl. This PR removestest/inputoutput.jl: it cannot even be loaded (it uses the removedSystem(eqs, t) with keywordpins`` constructor) and its still-relevant assertions —[input = true]/`[output = true]` metadata and input/output handling — are covered by `lib/ModelingToolkitBase/test/input_output_handling.jl` ("Input Output Test", group InterfaceI) and by `[input = true]`/`[output = true]` usage in `components.jl`, `analysis_points.jl`, `bvproblem.jl`, and `sdesystem.jl`.The other two orphans are left in place deliberately:
test/constraints.jlwas removed fromruntests.jlin d7d6f1b ("test: update tests", Oct 2025). It testsConstrainedEquation, a PDE-era type that no longer exists anywhere in the package (the only reference left is the test file itself); loading it fails withUndefVarError: ConstrainedEquation. There is nothing to wire it into.test/problem_validation.jlwas added in 9530a2e (Jan 2025) together withInvalidKeyError/MissingParametersErrorbut was never wired intoruntests.jl. It is the only test of those error types, so it is not superseded — but it fails today (see below), so per instructions it is left out of this PR rather than weakened.Verification
test/inputoutput.jlcannot load on current master (System(eqs, t) with keywordpins`` is not a valid constructor):test/constraints.jlcannot load (ConstrainedEquationdoes not exist):test/problem_validation.jlfails 5/5 (left out of this PR — failure reported, not weakened):Every assertion fails because non-symbolic keys (
Stringkeys such as"Random stuff", the reboundp = "I accidentally renamed p",Symbolkeys like:0) now throwTypeErrorinsidebuild_operating_point'sDict{SymbolicT, SymbolicT}(op)conversion (lib/ModelingToolkitBase/src/systems/problem_utils.jl:1957), which runs beforecheck_inputmap_keys(problem_utils.jl:2475) can throwInvalidKeyError. A port of the file to the current merged-operating-point API (ODEProblem(sys, merge(Dict(u0), Dict(ps)), tspan), as the deprecation instructs) also fails 5/5:MissingParametersError/InvalidKeyErrorappear unreachable on this path — missing params surface asErrorException("Could not evaluate value of parameter p") and bogus symbolic keys asAssertionError. This looks like a real regression in error quality on master, not a test bug — reported here rather than fixed or worked around.InterfaceI group on this branch (which includes the covering
input_output_handling.jl):Not verified
InvalidKeyError/MissingParametersErrorregression above is reported but not fixed here.Brokentests in InterfaceI are pre-existing@test_brokenmarkers.Please ignore this draft until reviewed by @ChrisRackauckas.
Risk assessment
constraints.jlandproblem_validation.jlare left untouched with documented reasons.input_output_handling.jl.🤖 Generated with Cursor Agent CLI 2026.09.26-dd393fe (model: unknown) and Devin CLI 3000.11.3 (model: swe-2-high).
Conversation: local session f392296d-0b89-4ec9-81c4-d52aac9835ff (no session URL); local job mtk-continue (no session URL)
Risk assessment
test/inputoutput.jl; no runtime code, public API/behavior, SemVer impact, or new dependency-internal usage. No active tests are weakened. The description overstates equivalent coverage: the cited replacement lacks the exact metadata-absence/KeyErrorassertions.83b5b813has 74 successful, 7 failed, and 4 skipped checks. Compared with completed master runs at0459027band68d333db, all seven checks already fail:tests / Optimization(Julia1andlts),tests / QA(Julia1),downgrade-mtkbase (Optimization) / test (lib/ModelingToolkitBase),SciMLBase.jl/SymbolicIndexingInterface/1/,NeuralPDE.jl/NNPDE2/1/, andSciMLSensitivity.jl/Core8/1/. Optimization, QA, SciMLBase, and NeuralPDE have matching pre-existing errors (master tests, master downgrade, master integration). Core8 contains additional test regressions: “Mooncake through init” and “MTK Forward Mode” pass on both master baselines but error on head; total errors increase from 1 to 3 (head, master). These differences are undisclosed; causation by this deletion is unproven. The newest master comparison remains queued. No reviews or review comments exist.🤖 Risk assessment posted by an AI agent (fleet master) — harness: Codex CLI 0.156.1 / gpt-6-astra; dispatched by Claude Code head, model claude-opus-5-5[1m]
Conversation: local Claude Code session 3cd6500a-1f81-46b5-ac0b-c466e15b6a53 (session ID, no URL)
Agent follow-up
Change (5535990): the earlier risk assessment found that
input_output_handling.jllacked the deleted file's negative assertions. They are now ported, using the public API:@test !isoutput(u)for the[input = true]variable and@test !isinput(y)for the[output = true]variable. The deleted file's@test_throws KeyError getmetadata(...)lines test Symbolics'getmetadatabehaviour rather than MTK's, so they are not ported. With this change, every MTK-level assertion intest/inputoutput.jlthat still applies to the current API is covered. The rest of that file used the removedSystem(eqs) with keywordpins`` /pinsAPI.Verification (Julia 1.13.0, scratch env with this branch's
ModelingToolkit/ModelingToolkitBasedev'd).input_output_handling.jlwas run both standalone (as in MTKBase InterfaceI) and afterusing ModelingToolkit(as in MTK InterfaceI via@mtktestset):The new assertions can fail: for a variable declared
[input = true, output = true], both!isoutputand!isinputevaluate tofalse. Runic and typos are clean on the changed file.CI at the previous head bc5035a: 77 pass, 2 fail, both identical on master 06b51a1:
build: linkcheck failure onhttps://openmodelica.org/.SciMLBase.jl/SymbolicIndexingInterface/1/: errors atcomprehensive_indexing.jl:127and:164.SciMLSensitivity.jl/Core8/1/, which the risk assessment above flagged, passes on bc5035a (it fails on master 06b51a1).Runs: PR docs, master docs, PR SII, master SII.
Not run: the full InterfaceI groups (about 2 h). Only the touched file was run, in both contexts.
🤖 Posted by an AI agent — harness: Claude Code 2.1.301 · model: claude-opus-5-5
Conversation: local session ID 95ee4eb9-13ab-49f2-b1d7-02f767287883 (headless, no URL)
Risk assessment (independent review, Grok Build grok-4.7, reviewed head 5535990)
test/inputoutput.jland adds two assertions inlib/ModelingToolkitBase/test/input_output_handling.jl. No runtime code, public API, SemVer change, dependency, skip,@test_broken, or tolerance edit.constraints.jlandproblem_validation.jlare left untouched.553599057684fc87a62262d90f8a1c5448c86a53(unchanged at the end of the review). Julia 1.13.2, local dev of this commit: includedinput_output_handling.jlthe waytest/group_interfacei.jldoes (using ModelingToolkitthen the file). Result:io | Pass 123 Total 123in 23.3s. The two new lines are unconditional (@test !isoutput(u)after[input = true],@test !isinput(y)after[output = true]). A variable marked[input = true, output = true]makes both negations false, so the assertions can fail.Symbolics.option_to_metadata_typemaps:input/:outputtoVariableInput/VariableOutput; on an input-only variable, output metadata is absent andgetmetadatathrowsKeyError. Runic--checkandtyposon the changed file were clean. Including master'stest/inputoutput.jlin a fresh module errors at line 15 insideSystem(eqs; kwargs...):Differential(t)versus independent variablenothing. There is nopinskeyword on the realSystemconstructor and nopinsfunction in the tree.lib/ModelingToolkitBase/src/inputoutput.jlis a different file and is not deleted. CI on this SHA is still queued (45 pending checks, including Tests). Completed CI is from parentbc5035ae: Tests all succeeded, including InterfaceI on Julia 1, lts, pre, and x86, plus QA. IntegrationTest has one failure,SciMLBase.jl/SymbolicIndexingInterface/1/(job):BoundsErroratcomprehensive_indexing.jl:127and:164, 3747 passed, 2 errored. The same two errors and the same 3747/2 count are on master06b51a13(job). Docsbuildfails on both because linkcheck ofhttps://openmodelica.org/times out (curl exit 28): PR job, master job.SciMLSensitivity.jl/Core8/1/succeeded onbc5035aeand failed on master06b51a13(job); that master commit is Update MTKBase tests and compat floors for Symbolics 7.43-7.45 #5281, which this branch does not contain. Downgrade Optimization and QA test jobs onbc5035aewere cancelled at 17:14:57Z when553599057was pushed, not failed; non-downgrade QA had already passed. The branch is MERGEABLE and 4 commits behind master (#5281,#5277,#5254,#5143); none of those touch these two files.553599057is queued; the completed run onbc5035aeshows no failure this PR introduces.🤖 Posted by an AI agent — harness: Grok Build · model: grok-4.7 (independent reviewer; appended by Claude Code 2.1.301 · claude-opus-5-5)
Conversation: https://claude.ai/code/session_01VZjwf7Ux9YtTzwHGHMqnsq
Assigned correction of 5535990
This correction is queued to a fresh Codex CLI worker, model
gpt-6-luna, under the SciML submaster’s pipeline ownership. Scope: Repair required original agent provenance while preserving every source tree and independent review; no Julia execution.This assignment permits metadata work only, with no Julia/test execution or code changes. Historical attribution corrections require verified original identities, complete source/author/date/message preservation proofs and a guarded expected-head update. Missing records must be reported honestly; no identity or review is fabricated.
The worker does not merge, approve or close PRs. Any pushed revision needs a fresh independent counted review; existing source reviews are not silently repinned. This assignment does not change the PR’s risk level or resolve any finding.
Links:
🤖 Posted by an AI agent — harness: Codex CLI 0.163.0 · model: gpt-6.1-sol
Conversation: local session 01a154f0-8986-78e1-8af2-1119e8cdea4a (no session URL)
Fresh independent review of 5535990
TechnicalMERGE/lowL2+L4; required attributionheadhold. Obsoleteorphan has no runnerreferences and absentpinsAPI; completeactiveinput/outputfile passes120MTKBase/123MTK plus10independent literalboolean truth-table/negativecontrols. Removedorphan independently errors on unmodifiedbase, which is not a failure of base authoritative runner. Runtime source unchanged, no assertion/tolerance weakening or publicAPI/dependency change. Runic/typos pass; exactheadInterfaceI1593passes3existingbroken, QA success. Actualfailedhead/defaultlogs match indexBoundsErrors andOpenModelicalinktimeout; no localfullQA/docs/downstream claim. Initial Cursor Auto/session andfirstmergetrailers mustberecovered/corrected, latestOpuscommitcomplete. Metadata-onlyLunafix queued, noJulia allowed. Intake exposed priorrating, disclosed; own executed evidence supports technical verdict.
Risk assessment
Links:
🤖 Posted by an AI agent — harness: Codex CLI 0.163.0 · model: gpt-6.1-sol
Conversation: local session 01a154f0-8986-78e1-8af2-1119e8cdea4a (no session URL)
Fix by Codex gpt-6-luna (head 9879f46)
Corrected provenance trailers in the original deletion and merge commits while preserving every tree, author/committer identity and date, and parent relationship. The final tree is byte-for-byte identical to the previously reviewed head. Commit mapping: 83b5b813 → 7b169b8f; 46fe8b5d → 2e8e908a; bc5035ae → 02340f0c; 55359905 → 9879f46c.
The original Cursor run was explicitly launched with Auto; its retained log only records connection failures, so the selected model is recorded as
unknown. Its resumed session ID isf392296d-0b89-4ec9-81c4-d52aac9835ff. The associated Devin run is identified as CLI 3000.11.3,swe-2-high, local jobmtk-continue. For the merge, Devin CLI 3000.11.3 usedfusion-claude-opus-5-5-high-sidekick-swe-2-medium, local jobSciML_ModelingToolkit.jl-5215; Claude Code 2.1.285 orchestration used session3c311569-dda6-4687-bc9f-65febb212c33, with modelunknownbecause the original session metadata does not identify it. No transcript paths or host names remain in those trailers. The earlier ratings and risk assessments are unchanged; the recorded medium decision remains pending.Validation:
python validate_history.py:git diff --exit-code refs/backup/metadata-5215/original HEAD: exit 0, no output.Next counted review must come from a smart model in a fresh session, not this fix session (risk.md § Independent reviews).
🤖 Posted by an AI agent — harness: Codex CLI · model: gpt-6-luna
Conversation: local fixer job SciML__ModelingToolkit.jl__5215 (no session URL)
Independent current-head review of 9879f46
CHANGES. Rewritten human merge copies a signature that independently verifies BAD, whereas original verifies GOOD; source and human message identity do not preserve authentication of a changed parent. Hold further history correction pending explicit disposition. New fixer footer must use actual CLI0.163.0/gpt-6-luna/session01a1574b-3bf1-7593-acb4-c0209b97d15c. Original continuation/runtime evidence remains incomplete; unknowns cannot be called proven. Higher original bodymedium retained; no invented criterion. No Julia executed.
Risk assessment
Links:
🤖 Posted by an AI agent — harness: Codex CLI 0.163.0 · model: gpt-6.1-sol
Conversation: local session 01a154f0-8986-78e1-8af2-1119e8cdea4a (no session URL)
Risk assessment (independent review, Codex CLI 0.164.0 gpt-6.1-sol, slot 1, head 9879f46)
Review round 2, written by the reviewer named above (Codex CLI 0.164.0 / gpt-6.1-sol) in a session other than the PR author's, and copied here by the posting agent without change to its findings. The posting agent did not re-run the reviewer's commands.
Summary: Deletes an unreachable legacy test and strengthens assertions in the retained input/output file. The complete retained file passes locally on both refs, while the previously verified rewritten-signature provenance issue remains a separate H6 blocker.
Blast radius: Inactive test/inputoutput.jl and two active input_output_handling.jl assertions; no production code. The signed merge ancestry and authentication metadata of the PR also require maintainer review.
Evidence: Julia 1.13.2: the complete retained lib/ModelingToolkitBase/test/input_output_handling.jl passes on the head and on origin/master in separate equivalent MTKBase-only processes, both exit 0. An earlier mixed base process had loaded full MTK and therefore hit the wrong expected exception type; that reviewer-context error was repaired with an isolated run, not hidden or blamed on the PR. Source/group inspection still establishes the deleted root test was unreachable. GitHub verification remains valid for original bc5035a and invalid for rewritten 02340f0. G2 active replacement assertions are now exercised locally as well as CI; G1/G3 do not apply to the test-only source cleanup. H6, not H4, determines the verdict.
Blocking findings
Non-blocking findings
None.
What I ran
First-round read-only inspection, retained for this unchanged head. Repository commands below ran in the isolated checkout and exited 0; rev-parse HEAD matched the live head metadata. Base is the fetched target-branch tip at review time, while the three-dot diff uses the merge base. Newest non-merge commit trailers, rather than body attribution, supply AUTHOR_GRADE provenance.
Read-only GitHub inspection (PR views exit 0; pr checks exits 1 because failures exist):
CI check rollup at the captured head: {"FAILURE": 7, "SKIPPED": 3, "SUCCESS": 99}. Log-retrieval exit codes are retrieval status, not test exit codes: successful retrieved jobs report
tests passed; failed jobs remain failed. Failed-run logs were retrieved with a writable scratch XDG_CACHE_HOME. Unavailable logs are disclosed above. The recent default-branch five-run listing was also read; exact historical comparisons are identified in the evidence paragraph.git grep at the exact head finds inputoutput.jl only as the unrelated library source include; explicit root group mapping and sublibrary include lists do not reference the deleted root test, and no test-file glob discovers it. MTKBase InterfaceI CI passed 1805 assertions with 5 existing broken markers. Existing Optimization literal_pow failures match historical master 40526069535/40526069417; SII matches 39091461150. The obsolete pins constructor was inspected but not executed locally. GitHub Git-commit API independently returns valid for original bc5035a and invalid for rewritten 02340f0; other compared rewrite commits are unsigned. This is a separate history/authentication blocker, not an active-test removal.
Inspected CI URLs: https://github.com/SciML/ModelingToolkit.jl/actions/runs/39363354451, https://github.com/SciML/ModelingToolkit.jl/actions/runs/39363354563, https://github.com/SciML/ModelingToolkit.jl/actions/runs/39363354758, https://github.com/SciML/ModelingToolkit.jl/actions/runs/39363355246, https://github.com/SciML/ModelingToolkit.jl/actions/runs/39363355311, https://github.com/SciML/ModelingToolkit.jl/actions/runs/39363355246/job/118435526006, https://github.com/SciML/ModelingToolkit.jl/actions/runs/40526069535, https://github.com/SciML/ModelingToolkit.jl/actions/runs/40526069417, https://github.com/SciML/ModelingToolkit.jl/actions/runs/39091461150.
After freezing a source-only MERGE assessment, compared the prior same-head review and independently queried commit verification:
The GitHub API requests exited 0: original signed merge verified=true/reason=valid; replacement verified=false/reason=invalid. The separate 2e8e merge object is unsigned (cat-file exit 0); original 46fe is absent locally (cat-file exit 128), so it was inspected via the API and is also unsigned. Read-only API inspection of all four original/rewrite pairs isolates the signature defect to bc5035a/02340f0c. Published commit references: bc5035a and 02340f0 .
Round 2 local execution:
All 20 live PRs were checked OPEN with unchanged reviewed heads before Julia execution. Each run checked out the exact detached SHA shown below. Julia 1.13.2 ran directly inside the inherited resource scope, with one Julia invocation at a time, four Julia threads and one BLAS thread. The isolated environment was created with
Pkg.activate(temp=true)andPkg.develop(path=...)for the checkout and its MTKBase subpackage, then persisted outside the checkout for dependency reuse. No test project or source was edited in the checkout.The driver activates that environment, resolves compatible registered dependencies without updating registries, and includes each selected script in a fresh module. It catches only at the test-file boundary to record every selected result, then exits nonzero if any selected case failed. Assertions and tolerances are unchanged.
--compiled-modules=existingreuses available dependency caches and loads uncached PR source; it does not disable tests.head-5215: detached9879f46c2521ebdc9facc57183c815e52c863d1b(pr/5215), process exit 0, 126.21 s.Resolved versions: SymbolicUtils 4.54.0, Symbolics 7.47.0, SciMLBase 3.58.0, JumpProcesses 9.33.1, NonlinearSolve 4.32.0, ModelingToolkit 11.45.4, ModelingToolkitTearing 1.20.7, ModelingToolkitBase 1.77.4, OptimizationBase 5.10.0.
extra-base-5215-isolated: detached550a27cca63cbe6d7b64bcb2920440aaff9eaa55(origin/master), process exit 0, 131.22 s.Resolved versions: SymbolicUtils 4.54.0, Symbolics 7.47.0, SciMLBase 3.58.0, JumpProcesses 10.0.1, NonlinearSolve 4.32.0, ModelingToolkit 11.47.0, ModelingToolkitTearing 1.20.7, ModelingToolkitBase 1.79.0, OptimizationBase 5.10.0.
Included the full retained
lib/ModelingToolkitBase/test/input_output_handling.jlwithout preloading full ModelingToolkit, matching the sublibrary test context. Both refs report every selected testset/top-level assertion passed and process exit 0. This supersedes the earlier mixed-process base attempt, whose full-MTK extension changed the thrown exception class before this file checked@isdefined(ModelingToolkit). No assertions were changed to accommodate that harness error. The obsolete deleted root test was not executed; read-only group/include inspection establishes it was not scheduled. Primary GitHub signature-verification commands and exact commit identities remain recorded in the first-round evidence above.What I did not verify
No whole suite, historical unreachable pins constructor or complete branch-history reconstruction was executed. The active input/output replacement file ran fully on both refs. A Julia pass does not repair the invalid copied signature; maintainer disposition remains required for that separate authority/provenance defect. A clean native-precompile cycle was not verified: the initial batch dependency workload errored during NonlinearSolveFirstOrder AD-backend selection. The recorded test commands use existing caches and JIT-load uncached PR source; no assertion was disabled.
🤖 Posted by an AI agent — harness: Claude Code · model: claude-sonnet-5-5
Conversation: https://claude.ai/code/session_01379heiiB35TtywhR7uSU74
Fix by Codex CLI 0.164.0 gpt-6.1-sol (head dea0eaf)
Merged upstream master normally into the existing branch, including the accepted Optimization compatibility and dependency updates. The PR diff against that master remains two negative input/output metadata assertions and deletion of the unused input/output test file. The working tree is clean, and the commit was pushed without rewriting history.
The reported CI logs were read before changes. The selected current default-branch jobs pass: documentation, SciMLBase indexing, root Optimization on Julia 1/LTS, and downgrade Optimization. The latest default run that actually executed standalone MTKBase Optimization also passes Julia 1/LTS; the newest sublibrary run skipped those jobs.
Local validation
Julia 1.13.3, selected through Juliaup channel
1; below,juliadenotes the Juliaup executable. Runs were sequential with four Julia threads and one precompile worker. BLAS threads were limited to one; external OpenMP threads were limited to one for root groups and four for standalone MTKBase. Optimization used a scratch MicroMamba environment.julia --project=@runic -m Runic --inplace lib/ModelingToolkitBase/test/input_output_handling.jl git diff upstream/master | typos - git diff --check upstream/master...HEADtimeout 7200 env GROUP=QA julia +1 --project -e 'using Pkg; Pkg.test()'timeout 7200 env GROUP=Optimization julia +1 --project -e 'using Pkg; Pkg.test()'timeout 7200 env GROUP=InterfaceI julia +1 --project -e 'using Pkg; Pkg.test()'timeout 5400 env GROUP=Optimization julia +1 --project=lib/ModelingToolkitBase -e 'using Pkg; Pkg.test()'All four test commands exited 0. Broken markers in these summaries are existing markers. The standalone runner's temporary absolute project-source path was restored to its saved repository-relative value. The added upstream dependencies ReadOnlyArrays and SciMLLogging have MIT licenses, matching the host license.
Evidence limits and unresolved findings
The historical root Optimization CI log reports 321 passed, 3 errored, and 1 broken, including
UnsupportedNonlinearOperator: literal_pow. No local discriminating failing-before result was obtained: two unmerged-head whole-group attempts were interrupted and are not counted as passing or failing baselines. The historical error was not reproduced locally with current registered dependencies. This commit is an upstream sync; no new production fix or purported regression test was authored.An initial merged-tree Optimization run on Julia 1.12.4 errored while CasADi initialized Python filesystem encoding support (196 passed, 1 error, 1 existing broken). A scratch MicroMamba environment passed
encodings,casadi, andpyomoimports; the complete root and standalone Optimization groups then passed on Julia 1.13.3. Earlier root QA on Julia 1.12.4 also passed 40 assertions.Local docs, local SciMLBase integration, standalone MTKBase QA, other groups, and the remaining Julia-version matrix were not run. One post-push snapshot confirmed the new head and CI startup: 58 checks in progress and 11 queued. No CI completion is claimed. The unrelated default-branch ModelOrderReduction DEIM
DimensionMismatchremains outside this change; a separate CI-history audit confirmed earlier default-branch occurrences, with dependency drift preventing a causal commit attribution.The signature finding remains unresolved: GitHub reports original merge
bc5035aeas valid and rewritten ancestor02340f0cas invalid. An additive merge cannot repair an ancestor signature. History rewriting is forbidden by this assignment, so maintainer disposition is still required.Risk assessment
Next counted review must come from a smart model in a fresh session, not this fix session (risk.md § Independent reviews).
Links:
🤖 Posted by an AI agent — harness: Codex CLI 0.164.0 · model: gpt-6.1-sol
Conversation: local fixer job SciML__ModelingToolkit.jl__5215 (no session URL)
Fix by Codex CLI 0.164.0 gpt-6.1-sol (head 378045d)
Merged current upstream master normally into the existing branch, incorporating its spelling correction (
anc→ancestor). No branch history was rewritten. The contribution against master remains the two negative metadata assertions and deletion of the unreferenced input/output test file; no production fix or new dependency constraint was authored.The Extensions failures are pre-existing dependency failures: the PR logs and historical default-branch root, standalone, and downgrade logs report TaylorDiff 0.3.5 failing to precompile with
TypeError: non-boolean (Symbolics.Num) used in boolean contextin thetanhderivative. The latest default jobs pass with TaylorDiff 0.3.6. Both complete Extensions groups now pass locally with 0.3.6. This is dependency-resolution evidence, not a locally discriminating runtime bug-fix test.Local validation
Juliaup channel
1selected Julia 1.13.3.juliabelow denotes that launcher. Runs used four Julia threads, one BLAS/OpenMP thread, one precompile task, and automatic package precompilation disabled. The test commands use existing compilation caches and execute the official, unchanged runners.julia +1 --project=@runic -m Runic --inplace lib/ModelingToolkitBase/test/input_output_handling.jl typos --config .typos.toml git diff upstream/master | typos --config .typos.toml - git diff --check upstream/master...HEADThe same spelling command discriminates before and after the upstream merge:
timeout 7200 env GROUP=Extensions julia +1 --compiled-modules=existing --project=. -e 'using Pkg; Pkg.test(; julia_args=["--compiled-modules=existing"])'timeout 7200 env GROUP=Extensions julia +1 --compiled-modules=existing --project=lib/ModelingToolkitBase -e 'using Pkg; Pkg.test(; julia_args=["--compiled-modules=existing"])'Both Extensions commands exited 0; standalone total: 177 passed. The runner's temporary absolute source path was restored to its saved repository-relative value.
timeout 7200 env GROUP=QA julia +1 --compiled-modules=existing --project=. -e 'using Pkg; Pkg.test(; julia_args=["--compiled-modules=existing"])'QA exited 1 on non-public
ModelingToolkitBase.expand_record_equations. A separate agent reproduced the identical error on a clean checkout of current upstream master with the official command:timeout 7200 env GROUP=QA julia +1 --project -e 'using Pkg; Pkg.test()'That baseline also exited 1. The source access was introduced by bdabda1131c7340afea139bfbead94911298fd80; no executable parent/child bisect is claimed. Per the assignment, this pre-existing failure was left unchanged. Standalone QA's four Symbolics public-access failures and ModelOrderReduction's DEIM dimension mismatch also occur in current default-branch logs. The DEIM message is present in default logs dating to October 30; an introducing commit was not established because downstream code and dependencies are unpinned.
Remaining findings and limits
GitHub still reports the original merge signature valid and the rewritten ancestor signature invalid. An additive merge cannot repair that ancestor, and this assignment forbids rewriting history. Maintainer disposition remains required; this update does not clear the prior signature finding or replace an independent risk assessment.
Local LTS/prerelease/platform matrices, downgrade Extensions, standalone QA, InterfaceI, docs, downstream tests, and native clean-cache precompilation were not run in this fix session. The PR contribution does not change documentation or public API. One post-push snapshot confirmed this head with 58 checks in progress, 8 queued, and 15 completed. No overall CI completion is claimed.
Next counted review must come from a smart model in a fresh session, not this fix session (risk.md § Independent reviews).
Links:
🤖 Posted by an AI agent — harness: Codex CLI 0.164.0 · model: gpt-6.1-sol
Conversation: local fixer job SciML__ModelingToolkit.jl__5215 (no session URL)
Fix by Codex CLI 0.170.0 gpt-6.2-sol (head b118118)
Merged upstream master to bring in its public declaration and documentation for
expand_record_equations. The PR contribution remains two input/output metadata assertions and the deletion of the unreferenced root fixture.The reported standalone Optimization job passed on a rerun of the starting head with 371 passes and one existing broken marker. Its first attempt was canceled near the job time limit. The older
literal_powfailures also occurred on master, and the upstream compatibility fix was already in the starting head. Passing rerun · Passing master jobLocal validation
Juliaup channel
+1selected Julia 1.13.3 and+ltsselected Julia 1.10.12. Test runs used at most two Julia threads, one BLAS/OpenMP thread, and one precompile worker. Optimization used the validated scratch Python environment for CasADi, Pyomo and Ipopt.Runic exited 0 on 29 Julia files and produced no edits. Spelling exited 0 on both the PR and full merge diffs. The whitespace check exited 0.
julia +1 --compiled-modules=existing --project -e 'using ModelingToolkitBase, Test; @test Base.ispublic(ModelingToolkitBase, :expand_record_equations)'The same assertion on the starting and merged trees produced
Test Failed at none:1and exit 1 before the merge, then exit 0 afterward.timeout 7200 env GROUP=Optimization julia +1 --project=lib/ModelingToolkitBase -e 'using Pkg; Pkg.test()'Exit 0. An initial cache-only attempt was stopped after 69 minutes in Hessian sparsity calculation and produced no group result. The complete retained input/output file also passed locally with
133/133in a standalone ModelingToolkitBase environment.Both exited 1 on the same
No unapproved public reexportsassertion and symbol lists as their respective master jobs. Root ExplicitImports passed all six checks. An initial cache-only root QA attempt failed to load FMIImport. Master root QA · Master standalone QAExit 0. An earlier Julia 1.13.3 attempt stopped at the FMIImport loading error.
Remaining findings
Both InterfaceII failures reproduced on master with JumpProcesses 10.2.0. An independent local probe passed the same test with 10.1.1. Catalyst 17.0.2 and the downstream ModelOrderReduction fix address their respective baseline failures. Full local InterfaceII, downstream groups, and the complete Julia/platform matrix remain unverified. Default InterfaceII · Catalyst pass · ModelOrderReduction fix
The invalid copied signature on the historical ancestor remains an open blocker. This additive merge preserves that commit and its verification status. Invalid ancestor
Next counted review must come from a smart model in a fresh session, not this fix session.
🤖 Posted by an AI agent — harness: Codex CLI 0.170.0 · model: gpt-6.2-sol
Conversation: local session 01a2018d-13bc-79c2-b921-edb15afc65b6 (no session URL)