Repository navigation
Index lowered SteadyStateProblem solutions through their own container - #1657
Conversation
`solve(ssprob, DynamicSS)` now returns a solution expressed on the `SCCNonlinearProblem` that MTK stores as `SteadyStateProblem.lowered_problem`: its `state_values` is in the lowering's (torn) ordering — solved variables only — while torn unknowns such as `Y` are `observed` on the lowering. The non-timeseries indexing test assumed `state_values(valp)` is laid out in `unknowns(indp)` order, so `u[variable_index(indp, [X, Y])]` threw a BoundsError while the test tuples were being built, erroring the "State indexing" and "Observed" testsets. When `variable_index(indp, ·)` does not index `state_values(valp)`, the test now indexes through `symbolic_container(valp)` instead: solved variables are referenced by `variable_index` on the container and torn/observed variables by evaluating `observed` on it. Coverage for the lowered solution is preserved (getsym/getindex on X, Y, XY, X * Y, and multi-symbol forms); non-lowered objects take the original path. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Independent review (Codex CLI 0.166.0 / gpt-6.1-sol), session 01a1966e-6877-7763-853c-8c5c6f0220ec, reviewed head 2c864d3
Review written by the reviewer named above 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: The PR adapts comprehensive symbolic-indexing tests to lowered steady-state solutions without changing production code. Changes are required because the replacement branch removes inference coverage and computes observed-value expectations through the implementation under test. Blast radius: Only test/downstream/comprehensive_indexing.jl; regression coverage of non-timeseries symbolic state and observed indexing, especially lowered steady-state solutions. Evidence: Blind diff assessment recorded and hashed before author context; exact head matches live PR. PR CI passes the affected comprehensive-indexing testset (3,781 assertions); recent master CI errors in its state and observed testsets with the reported one-element BoundsError. The complete file also passes locally on Julia 1.13.2 (3,781/3,781 assertions, exit 0); the base file fails locally with two BoundsErrors (exit 1). The independent algebraic-reference and inference probe passes 8/8 checks (exit 0), including a synthetic scalar-oracle corruption that the self-oracle accepts and the independent reference rejects. Blocking findings
Non-blocking findingsNone. What I ranRead-only repository inspection:
CI logs were fetched with
Local run 1 (head): Local run 2 (base): same environment prefix and This is a test-fixture correction, not a production behavior fix: the original test file fails on base and the revised file passes on head in my runs. No added production regression test fails against the base implementation, because production code is identical. Local run 3 (adversarial probe): same environment prefix and The six reference/inference checks comprise two independent observed-value comparisons and four What I did not verifyThe base file stops at the failing lowered-solution testset, so later base-file testsets did not execute; the entire revised head file did execute. No full downstream, integration, GPU, AD, tracing, or MPI suite was rerun locally. The reviewed diff changes no production GPU, AD, tracing, or MPI path. I did not exhaustively mutate every indexing form or test other Julia versions/platforms; relevant Julia 1/LTS CI results were inspected. The run-3 corruption targets the scalar observed oracle only. 🤖 Posted by an AI agent — harness: Claude Code · model: claude-sonnet-5-5 |
…lutions Address review on #1657: the SCC-lowered state-indexing branch regained the `@inferred get(valp)` assertions for the retained state `X`, and the observed expectations no longer come from `observed` itself — a wrong generated function would otherwise agree with itself. `Y` is now derived from the fixture residual `0 ~ 1 + k1 * X - k2 * Y - Y` as `Y = (1 + k1 * X) / (1 + k2)` and `XY` from the declared `XY ~ X + Y`, compared with `≈`. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Include the upstream SymbolicIndexingInterface fixture correction while preserving the constructor and ensemble changes. SciML#1657 Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Codex <[email protected]> Agent-Harness: Codex CLI 0.164.0 Agent-Model: gpt-6.1-sol Agent-Session: local fixer job SciML__SciMLBase.jl__1638 (no session URL)
Green CI is good CI