Repository navigation
Tolerate PDESystemLibrary corpus growth in strongform and box tests - #165
xtalax-droid wants to merge 3 commits into
Conversation
PDESystemLibrary 0.1.11 adds trans_sin to all_systems (428 systems), which broke the exact 427 pins and the trans_sin @test_broken. The corpus pins are now lower bounds so both 0.1.10 (427) and 0.1.11 (428) pass; trans_sin is covered by the golden gate and accepted. Agent-Harness: Claude Code 2.1.318 Agent-Model: claude-sonnet-5-5 Agent-Session: a20a681b-e8cc-4c82-a40d-a5b8349014e2 Agent-Review: unreviewed Co-authored-by: Claude Code <agent@noreply.juliahub.com>
Agent-Harness: Claude Code 2.1.325 Agent-Model: claude-sonnet-5-5 Agent-Session: a20a681b-e8cc-4c82-a40d-a5b8349014e2 Agent-Review: unreviewed Co-authored-by: Claude Code <agent@noreply.juliahub.com>
Agent-Harness: Claude Code 2.1.325 Agent-Model: claude-sonnet-5-5 Agent-Session: a20a681b-e8cc-4c82-a40d-a5b8349014e2 Agent-Review: unreviewed Co-authored-by: Claude Code <agent@noreply.juliahub.com>
Agent-Harness: Claude Code 2.1.325 Agent-Model: claude-sonnet-5-5 Agent-Session: a20a681b-e8cc-4c82-a40d-a5b8349014e2 Agent-Review: unreviewed Co-authored-by: Claude Code <agent@noreply.juliahub.com>
The size checks accepted any library of at least 427 systems, so a dropped model slipped through. The count excluding :trans_sin must now be exactly 427, and :trans_sin must be present exactly when PDESystemLibrary is 0.1.11 or newer. Agent-Harness: Claude Code 2.1.325 Agent-Model: claude-sonnet-5-5 Agent-Session: a20a681b-e8cc-4c82-a40d-a5b8349014e2 Agent-Review: unreviewed Co-authored-by: Claude Code <agent@noreply.juliahub.com>
|
Thanks for the review. Pushed 24a3d0d: the two corpus checks are now strict per supported PDESystemLibrary release instead of lower bounds. In Both files pass under 0.1.10 (427 systems; 7597 and 1413 passes) and 0.1.11 (428 systems; 7615 and 1416 passes). Scratch copies confirm that dropping The gate has no upper bound: if a later 0.1.x release adds or removes a model, the 427 count fails and the constant has to be updated, which is the strictness asked for.🤖 Posted by an AI agent · harness: Claude Code 2.1.325 · model: claude-sonnet-5-5 |
Agent-Harness: Claude Code 2.1.325 Agent-Model: claude-sonnet-5-5 Agent-Session: a20a681b-e8cc-4c82-a40d-a5b8349014e2 Agent-Review: unreviewed Co-authored-by: Claude Code <agent@noreply.juliahub.com>
Agent-Harness: Claude Code 2.1.325 Agent-Model: claude-sonnet-5-5 Agent-Session: a20a681b-e8cc-4c82-a40d-a5b8349014e2 Agent-Review: unreviewed Co-authored-by: Claude Code <agent@noreply.juliahub.com>
Agent-Harness: Claude Code 2.1.325 Agent-Model: claude-sonnet-5-5 Agent-Session: a20a681b-e8cc-4c82-a40d-a5b8349014e2 Agent-Review: unreviewed Co-authored-by: Claude Code <agent@noreply.juliahub.com>
Agent-Harness: Claude Code 2.1.325 Agent-Model: claude-sonnet-5-5 Agent-Session: a20a681b-e8cc-4c82-a40d-a5b8349014e2 Agent-Review: unreviewed Co-authored-by: Claude Code <agent@noreply.juliahub.com>
Agent-Harness: Claude Code 2.1.325 Agent-Model: claude-sonnet-5-5 Agent-Session: a20a681b-e8cc-4c82-a40d-a5b8349014e2 Agent-Review: unreviewed Co-authored-by: Claude Code <agent@noreply.juliahub.com>
…branch Agent-Harness: Claude Code 2.1.325 Agent-Model: claude-sonnet-5-5 Agent-Session: a20a681b-e8cc-4c82-a40d-a5b8349014e2 Agent-Review: unreviewed Co-authored-by: Claude Code <agent@noreply.juliahub.com>
…anch Agent-Harness: Claude Code 2.1.325 Agent-Model: claude-sonnet-5-5 Agent-Session: a20a681b-e8cc-4c82-a40d-a5b8349014e2 Agent-Review: unreviewed Co-authored-by: Claude Code <agent@noreply.juliahub.com>
…w owns (#167) Tolerate library growth in the PDESystemLibrary corpus pins PDESystemLibrary 0.1.11 adds trans_sin to all_systems (428 systems), which broke the exact 427 pins and the trans_sin @test_broken. The corpus pins are now lower bounds so both 0.1.10 (427) and 0.1.11 (428) pass; trans_sin is covered by the golden gate and accepted. Agent-Review: unreviewed Stop documenting NormalDerivative through PDEBase, which no longer ow… …ns it Symbolics 7.49 defines NormalDerivative, so Documenter (which collects docstrings only from PDEBase) finds none for PDEBase.NormalDerivative and every reference to it fails to resolve. Agent-Review: unreviewed Merge the corpus-pin fix (#165) into the docs branch Agent-Review: unreviewed Document the NormalDerivative fallback only while PDEBase defines it With Symbolics before 7.49 PDEBase defines and exports NormalDerivative, and checkdocs = :exports fails the docs build if its docstring is not in the manual. An @autodocs block filtered to that name includes it then and is empty once Symbolics owns the type. Agent-Review: unreviewed Pin the PDESystemLibrary corpus per supported release The size checks accepted any library of at least 427 systems, so a dropped model slipped through. The count excluding :trans_sin must now be exactly 427, and :trans_sin must be present exactly when PDESystemLibrary is 0.1.11 or newer. Agent-Review: unreviewed Merge the strict corpus pins (#165) into the docs branch Agent-Review: unreviewed Require unique system names in the box round-trip corpus check Agent-Review: unreviewed Merge the unique-name corpus check (#165) into the docs-nd branch Agent-Review: unreviewed Agent-Harness: Claude Code 2.1.318 Agent-Model: claude-sonnet-5-5 Agent-Session: a20a681b-e8cc-4c82-a40d-a5b8349014e2 Co-authored-by: Claude Code <agent@noreply.juliahub.com> Agent-Harness: Claude Code 2.1.325
Tolerate library growth in the PDESystemLibrary corpus pins PDESystemLibrary 0.1.11 adds trans_sin to all_systems (428 systems), which broke the exact 427 pins and the trans_sin @test_broken. The corpus pins are now lower bounds so both 0.1.10 (427) and 0.1.11 (428) pass; trans_sin is covered by the golden gate and accepted. Agent-Review: unreviewed Expand Symbolics vector operators to Differential form before analysis Symbolics 7.49 adds lazy Grad, Divergence, Curl and Laplacian terms that d_orders ignored and the StrongForm whitelist rejected. expand_vector_operators rewrites them eagerly into Differential terms, keeping divergence form and handling traces, at the start of both symbolic_discretize paths and parsed_boundary_map. Agent-Review: unreviewed Expand vector operators in array-valued equation sides Scalarized array sides were returned without rewriting their components. Agent-Review: unreviewed Stop documenting NormalDerivative through PDEBase, which no longer ow… …ns it Symbolics 7.49 defines NormalDerivative, so Documenter (which collects docstrings only from PDEBase) finds none for PDEBase.NormalDerivative and every reference to it fails to resolve. Agent-Review: unreviewed Merge the corpus-pin fix (#165) into the vector-ops branch Agent-Review: unreviewed Merge the NormalDerivative docs fix (#167) into the vector-ops branch Agent-Review: unreviewed Merge the corpus-pin fix (#165) into the docs branch Agent-Review: unreviewed Expand vector operators inside nested equation groups, array equation… …s and reject symbolic indices Nested equation vectors are expanded in place and keep their shape, an array-valued equation becomes one scalar equation per component so StrongForm.analyse accepts it, and indexing an operator result with a symbolic index throws an ArgumentError instead of a raw indexing error. Agent-Review: unreviewed Document the NormalDerivative fallback only while PDEBase defines it With Symbolics before 7.49 PDEBase defines and exports NormalDerivative, and checkdocs = :exports fails the docs build if its docstring is not in the manual. An @autodocs block filtered to that name includes it then and is empty once Symbolics owns the type. Agent-Review: unreviewed Reject mismatched array equation sides and keep the system descriptio… …n when expanding vector operators Lowering an array-valued equation zipped its sides and dropped surplus components, and rebuilding the PDESystem reset its description. Agent-Review: unreviewed Keep complex sides and vectors of unknown length working when expandi… …ng vector operators Sides are no longer scalarized or wrapped when they are scalar expressions, which crashed on complex sides and made the equation split into real and imaginary parts early, and an operator applied to a vector of unknown length is wrapped without forcing a scalar type. Agent-Review: unreviewed Detect and expand vector operators in complex-valued sides The detector skipped Complex{Num} sides, so a complex boundary pair bypassed expansion. Agent-Review: unreviewed Merge the NormalDerivative fallback docs fix (#167) into the vector-o… …ps branch Agent-Review: unreviewed Evaluate array operations on expanded operator results and expand Div… …ergence and Curl of vectors of unknown length Expressions such as dot(g, g), (2g)[1] and sum(g) over a gradient are evaluated per component after the rewrite, so they no longer leave array literals that StrongForm.analyse cannot evaluate. Divergence and Curl of a vector of unknown length take the components their coordinates require. Agent-Review: unreviewed Expand operators nested in a vector of unknown length before taking i… …ts components The unknown-length fallback indexed the unexpanded argument, leaving lazy operators in the result. Agent-Review: unreviewed Take dot from Symbolics instead of importing LinearAlgebra in test/ve… …ctor_operators.jl LinearAlgebra is not a test dependency, so the file failed to load on CI. Agent-Review: unreviewed Evaluate broadcast and mixed array operations on operator results and… … tighten the tensor flux tests A broadcast term carries its function as a constant argument, which is now unwrapped before calling it, so sum(g .^ 2), sum(g .* g), sum(sin.(g)) and dot(A, g) expand per component. The unknown-shape flux test now checks both components in order, a concrete tensor flux is compared with a reference, and the optimisation driver docstring lists the vector expansion as its first step. Agent-Review: unreviewed Leave indexed fluxes of unknown shape unscalarized Scalarizing a product with an unknown-shape matrix threw a TypeError, so such terms now stay as indexed expressions. Agent-Review: unreviewed Pin the PDESystemLibrary corpus per supported release The size checks accepted any library of at least 427 systems, so a dropped model slipped through. The count excluding :trans_sin must now be exactly 427, and :trans_sin must be present exactly when PDESystemLibrary is 0.1.11 or newer. Agent-Review: unreviewed Merge the strict corpus pins (#165) into the vector-ops branch Agent-Review: unreviewed Require unique system names in the box round-trip corpus check Agent-Review: unreviewed Merge the unique-name corpus check (#165) into the vector-ops branch Agent-Review: unreviewed Evaluate matrix products and contractions of operator results per com… …ponent Operator results are now Julia arrays of expressions, so g' * A * g and dot(g, A * g) reduce to the scalar residual instead of leaving array expressions that cardinalization and StrongForm.analyse reject. A vector of unknown length contracted with an operator result takes that result's length, and the comment on nested equation groups states that the rewrite preserves nesting while the later complex splitting does not handle it. Agent-Review: unreviewed Scalarize known-shape symbolic tensors in contractions with operator … …results A parameter matrix such as M[1:2, 1:2] in g' * M * g is expanded into its components, so the contraction reduces to a scalar residual. Agent-Review: unreviewed Take the contraction length from the first known-length array argument dot(Z, g) with an unknown-length Z used Z's length as the range endpoint, which only worked when the known-length operand came first. Agent-Review: unreviewed Resolve unknown-length vectors only in contractions and test a varyin… …g tensor flux Registered functions and other operations with independent operand lengths keep an unknown-length vector as it is, dot of vectors of different lengths throws an ArgumentError, and the nonsymmetric tensor flux test uses a spatially varying tensor with hand-computed flux and divergence values. Agent-Review: unreviewed Detect dot by name so QA's public-access check passes Symbolics.LinearAlgebra is not public in Symbolics. Agent-Review: unreviewed Never resolve vectors of unknown length to an operator result's length Resolving them changed the value of functions with independent operand lengths and let dot of mismatched vectors evaluate. dot with an unknown-length operand now raises an ArgumentError, dot is recognised by identity so a user's own function of that name is untouched, and every other operation keeps its operands as written. Agent-Review: unreviewed Identify LinearAlgebra's dot without non-public Base names and accept… … a colon slice of an operator result Base.PkgId and Base.loaded_modules fail the QA public-access check, so the stdlib module is recognised by name and path. sum(g[:]) selects every component and no longer counts as a symbolic index. Agent-Review: unreviewed Keep dot with an unknown-length vector symbolic and identify it throu… …gh the LinearAlgebra dependency dot of a lowered gradient with a vector of unknown length stays a call, so LinearAlgebra checks the real length once the vector is bound, as on the base revision. dot is matched with op === LinearAlgebra.dot, which adds the LinearAlgebra standard library as a dependency. Agent-Review: unreviewed Evaluate the lowered expression in the dot and sum_both tests and use… … a faithful LinearAlgebra look-alike The tests now evaluate the lowered residual itself, restore the unknown-length independent-operand case, and use a package named LinearAlgebra under a stdlib path for the same-named dot, so a truncation or a return to the name-and-path check fails them. dot is imported from LinearAlgebra, which PDEBase now depends on. Agent-Review: unreviewed Merge branch 'master' into forge/vector-ops Require a declared length for divergence and curl operands and keep a… …rithmetic with unknown-length vectors symbolic Lowering divergence or curl of an unsized vector dropped components beyond the coordinates without the dimension error the operators raise, so such operands now raise an ArgumentError asking for a declared length. Elementwise arithmetic with an unknown-length vector stays a call around the lowered components and is checked by Julia once the vector is bound. The look-alike LinearAlgebra fixture is loaded with an ordinary import, and the duplicated dot-length test is replaced by the declared-length divergence and curl cases. Agent-Review: unreviewed Report a missing declared length when a summed vector operand cannot … …be scalarized A sum such as g + a with an unsized a has an inferred shape, and scalarizing it threw a TypeError before the declared-length check could run. Agent-Review: unreviewed Defer every operation above an unsized vector as a call on the lowere… …d components An operand of unknown extent anywhere beneath an expression now keeps all enclosing operations symbolic, so sum(2 * (g + p)), dot(g, g + p) and deeper nestings evaluate or raise DimensionMismatch once the vector is bound instead of being scalarized early. The docstring states the declared-length requirement of Divergence and Curl, and the oversized operator constructions are labelled as constructor controls. Agent-Review: unreviewed Expand tuple-valued boundary conditions and derivatives of operator r… …esults A tuple of boundary conditions bypassed the operator detector, and Differential applied to a lowered gradient was called on a plain Julia vector. Tuples are now detected, expanded and kept as tuples, and a derivative of an operator result is taken per component. Agent-Review: unreviewed Treat a concretely indexed unsized vector as a scalar and check decla… …red extents early An unsized array indexed with a concrete index no longer defers the enclosing expression, scalar parameters are wrapped so products with lowered gradients evaluate per component and a derivative of the result is taken per component, a derivative of an array expression that contains an unsized vector is rejected with an ArgumentError, and dot compares declared symbolic extents before anything is scalarized. Agent-Review: unreviewed Defer sized operands that cannot be scalarized and distinguish indexe… …d parameters from indexed composites A sized operand built from an unsized parameter, such as p[1] * q2, stays in the deferred call when it cannot be scalarized, which restores its evaluation after binding. Only a bare parameter indexed by a literal or an Int symbol counts as a scalar, an index into a composite such as (g + p)[1] is rejected under the derivative rule, and the docstring states that exception. Agent-Review: unreviewed Reject any derivative of an unresolved unsized expression and accept … …integer-typed index expressions A scalar derivative of an index into a composite, such as Dt((g + p)[1]), is now rejected like the whole-array derivative, because the derivative would act on the unknown elements. A scalar lookup of a bare unsized parameter now accepts any integer-typed index expression such as i + 1, unless the index expression itself contains an unsized array. Agent-Review: unreviewed Narrow the derivative rule back to array operands and composite lookups A derivative of a scalar reduction that contains an unsized vector, such as Dt(dot(g, p)), Dt(sum(g + p)) or Dt(sum(p) * g[1]), is deferred again and evaluates after binding. Only a derivative applied to an array operand that contains an unsized vector, or to an expression containing a lookup into such a composite, is rejected. The p[i + 1] test now binds the lowered expression and the docstring states the narrower rule. Agent-Review: unreviewed Agent-Harness: Claude Code 2.1.318 Agent-Model: claude-sonnet-5-5 Agent-Session: a20a681b-e8cc-4c82-a40d-a5b8349014e2 Co-authored-by: Claude Code <agent@noreply.juliahub.com> Agent-Harness: Claude Code 2.1.325
PR: #165 Reviewed head: 8445723 Risk assessment
Review reportVERDICT: CHANGES Risklow (L2: the version-specific membership and uniqueness assertions strengthen both corpus tests) Blocking findings
Non-blocking findingsNone. What I ran
What I did not verifyHosted CI logs, live documentation deployment, the QA group, and other Julia versions and architectures. AUTHOR_GRADE: {"task":"test","score":5,"difficulty":2,"rounds":3,"author_harness":"Claude Code 2.1.325","author_model":"claude-sonnet-5-5","note":"Both affected suites passed with each registered catalog, the old checks failed on 0.1.11, and the new guards caught catalog mutations. The documentation gate comes from the branch base."} Head link: 8445723 🤖 Posted by an AI agent — harness: codex-cli 0.170.0 · model: gpt-6.2-sol |
Problem.
GROUP=Corefails since PDESystemLibrary 0.1.11 resolved. That release addstrans_sintoall_systems, so the library has 428 systems.test/strongform_library.jl:207(length(SYSTEMS) == 427) fails, and:212(@test_brokenontrans_sin) becomes an Unexpected Pass.test/to_box_bcs.jlcarries the same exact 427 pin. Master's last green Tests run was on 2026-10-30; every PR's Core jobs now fail at these lines (for example the Core jobs of #164: 7613 passed, 1 failed, 1 errored).Change. The compat
PDESystemLibrary = "0.1.10"admits both 0.1.10 (427 systems) and 0.1.11 (428), so an exact count cannot pass on both the Downgrade lane and the newest lane. Both count pins are now>= 427. Thetrans_sin@test_brokenis removed, because the golden gate already coverstrans_sinon 0.1.11 (it is accepted) and on 0.1.10 it is not inall_systems. The header comment no longer names one library version. Nosrc/or compat change.Tests.
test/strongform_library.jlpasses on PDESystemLibrary 0.1.11 (421 accepted, 7 rejected) and on 0.1.10 (420 accepted, 7 rejected), run on Julia 1.12 in temporary environments.test/to_box_bcs.jlpasses on 0.1.11 (not run on 0.1.10). Runic check is clean. Codex: approve, 0 findings.Review notes.
>= 427no longer catches a library that silently gains systems; the golden gate still checks every system, and an unexpected rejection still fails it. The fullGROUP=Coreand the Julia lts lane were not run locally; CI covers them.🤖 Posted by an AI agent · harness: Claude Code 2.1.318 · model: claude-sonnet-5-5
Review: unreviewed
Session: a20a681b-e8cc-4c82-a40d-a5b8349014e2