Review pass 3 (2026-05-12)¶
| Date | 2026-05-12 |
| Recorded in | the backlog section at the end of the changelog |
| Overview | Audit history · Changelog |
The third review pass appended its findings to the backlog. One block of test gaps stood under the roadmap-candidates heading of the backlog and is reproduced where it stood.
Where this text comes from
This page was moved verbatim from CHANGELOG.md when the release notes were
condensed in 2026.11.0 (source: commit 30a122d). Only the markup was adapted:
reST roles are rendered as code or math, relative links point to the current
pages, trailing whitespace is removed, and each block stands under a heading
that names where it was published.
Paths, test names and numbers are those of the time; the code has changed since.
From the backlog section of the changelog (“Backlog (2026-05-10 audit)”)¶
Fixed (pending implementation)¶
Additional findings from the third 2026-05-12 review pass (focus:
FieldResult.potentialdispatch,BoundaryConditionswiring,references.dwight1936validation,compare_enginescoverage; deeper read of thepostprocess.sweepheatmap plotter and the new measurement-injection layer):
sources.Source.attached_tois not validated against the world's electrode / conductor list. A typoedattached_to="g_1"(instead of"g1") silently drops the source current at solve time, because the backends iterate withif src.attached_to in elec_input_current:and just skip unknown keys. Raise a clearKeyErrorinWorld.add_source(...)or at the top of every backend'ssolve_*.solver/result.FieldResult.potential(and the VTK export) mirror about a hard-codedz = 0even thoughsafety.touch_voltageexposes asurface_zargument. If the user sets up a world with the soil surface at any other plane (local-terrain coordinate), the image charges sit at the wrong depth. Either addsurface_ztoFieldResult.potential/io.vtk.export_field_vtkor documentz = 0as a hard invariant.conductors.Conductoracceptsstart == end(zero length). Nomodel_validatorrejects coincident endpoints, and the discretisation step_discretize_conductorlater divides byL, producing a hardZeroDivisionErrorfor any user who setdiscretize_segment_lengthon such a conductor. Add@model_validator(mode="after")that raises iflength < 1e-9 m.validation.compare_engineschecksZ.realonly (validation.py:~192,197). For Carson / Sommerfeld engines or any inductive-coupling configuration the imaginary part can dominate at higher frequencies — a 30 % imag-part deviation goes undetected. Alsoif zmean == 0.0: continuesilently skips clusters with symmetric real-part sign cancellation. Compareabs(Z), or compareZ.realandZ.imagseparately with the same tolerance.generators/distributions.Discreteallows duplicatevalues. UnlikeCategorical(which has_check_unique),Discrete(values=[5, 5, 10], weights=[1, 1, 1])is accepted and silently double-weights5. Either merge duplicates + add their weights, or add a_check_uniquevalidator and raise.io/vtk._format_lines_blockis dead code — defined but never called;export_geometry_vtkre-implements the same logic inline. Either delete the helper or have the exporter use it.references.dwight1936validation is inconsistent. Onlyrod,two_rods_farandhemispherevalidatelength > 0/radius > 0;two_rods_close,horizontal_wire,right_angle_wire,n_point_star,buried_ring,horizontal_strip,horizontal_round_plateandvertical_round_plateaccept any input. Callingdw.buried_ring(rho=100, ring_diameter=-1, ...)returns a meaningless float rather than raising. Apply the samelength > 0/radius > 0guard at every entry point.postprocess/sweep.plot_sweep_heatmapusesimshow(..., extent=(min, max, ...))on apivot_table. Non-uniformly spaced axis values (e.g. log-spaced soil resistivity[10, 100, 1000]) render as equally-wide rectangular cells — visually misleading. Switch toax.pcolormesh(pivot.columns, pivot.index, pivot.values)which honours the actual coordinate spacing.
Docs (pending implementation)¶
Additional doc gaps from the third 2026-05-12 review pass:
- No
docs/api/sources.mdpage.Source,CurrentSource,VoltageSourceand the new measurement-injection wiring are only documented inline indocs/api/index.md. A dedicated page lets us spell out theattached_tocontract (which is currently silently best-effort — see the bug above) and thesource_type='voltage'mutual-coupling restriction. - No
docs/api/boundary.mdpage.BoundaryConditionsis in the public API but undocumented. Until the fields are consumed by any backend (see bug above), users should be told in writing thatworld.set_boundary_conditions(...)is decorative. docs/engines/fem.mddoes not document the cluster equivalent-hemisphere approximation (radii-add rule) or its error envelope when the cluster electrodes share a field. Without that note a reader comparing FEM with the integral backends sees a small but unexplained delta on dense clusters.docs/api/references.mdis still missing as flagged in pass 2, and the test-suite-facing entry points (references.carson.CarsonExample,all_examples(),REGRESSION_ANCHORS) need to land on the page so contributors can find them when adding regression cases.docs/api/io.mddoes not documentio.groundinsight.evaluate_spec/io.groundinsight.fit_quality_summary/BusTypeSpec.from_dict. All three are publicly importable helpers but the rendered page lists only thesave_*/to_*family. Add a:::directive for each.docs/concepts.md"World object → Boundary" section should document the no-op status ofBoundaryConditionsexplicitly until the fields are wired through. Two lines prevent the most likely "why is my Dirichlet not applied" support question.
Roadmap candidates (from the 2026-05-10 audit)¶
Additional test gaps from the third 2026-05-12 review pass:
- No regression test that
FieldResult.potentialraises (or dispatches correctly) on aMultiLayerSoilworld. Build a 3-layer fixture, callresult.potential((x, y, 0.0))and assert the result is not silently produced by the homogeneous kernel. - No test that
World.add_source(src)rejects a typoedattached_to(e.g."g_1"when the world has"g1"). Currently the bug surfaces only at solve time and only as a zero-injection result. - No regression test for
Conductor(start=p, end=p)(zero length). Once the validator above lands, this becomes a one-linepytest.raises(ValidationError)case. - No
compare_enginestest on the imaginary part. Build a Carson coupling fixture, set the existing real-only check to pass, then add aZ.imagcheck at 1 kHz that would fail without the imag branch. - No
Discrete(values=[5,5,10], weights=[1,1,1])test. A one-line assertion that duplicates are rejected (or merged) pins the chosen behaviour from bug 7.
Roadmap candidates (from the 2026-05-10 audit)¶
Additional roadmap candidates from the third 2026-05-12 review pass:
FieldResult.potential(..., surface_z=0.0)argument. Allow the user to plug in a non-zero soil-surface plane in local-terrain coordinates. The plumbing already exists insafety.touch_voltage; surface it on the post-solve potential evaluator too so the VTK export and the safety helper agree by construction.fem.equivalent_hemisphere_radiuswith mutual-resistance correction. Tagg-style cluster equivalence: replace the pure radii-add rule with a per-electrode mutual-resistance matrix lookup so clusters of driven rods produce the right conductance.gf.evaluate_spec/gf.fit_quality_summaryas top-level re-exports. Both are publicly importable helpers inio/groundinsight.pybut reachable only via the fully qualified path. Promote next tovector_fitfor symmetry.EarthInductiveModelas a top-level re-export — the Literal lives insolver.engine.__all__but not ingroundfield.__all__; users writing type annotations have to dig into the submodule.postprocess.geometry_plot.plot_world_top_down(..., annotate=True)— for worlds with ≤ 30 electrodes the annotated plot is invaluable for debugging measurement-setup geometry. Add an opt-inannotateflag with a sensibleannotate_thresholddefault.postprocess.sweep.plot_sweep_heatmaplog-spaced cell rendering. Switch topcolormeshso the rendered cell widths match the actual log-spaced axis (bug 10). Stand-alone visual fix, no API impact.