Skip to content

test: Validate mesh source recovery against independent physical truth - #342

Merged
Jammy2211 merged 2 commits into
mainfrom
feature/mesh-interpolator-numerics-audit
Oct 2, 2026
Merged

Jammy2211 merged 2 commits into
mainfrom
feature/mesh-interpolator-numerics-audit

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

Add deterministic source-recovery checks for all six mesh interpolator classes. An analytic asymmetric two-Gaussian source supplies data independently of the fitted basis; recovered coefficients are compared against physical truth at mesh nodes. Adaptive kernel nodes are obtained by independent CDF root solving.

Every class must reject a deliberately wrong mapping/weight pairing. The adaptive entry point is actually patched during the fault check, bracketed by bit-identical uniform control runs. This detects geometric corruption that solved-source residuals can hide.

Part of PyAutoLabs/PyAutoArray#603. Separate audit findings remain open as PyAutoLabs/PyAutoArray#609 and #610; a passing recovery fixture does not waive those failures.

Scripts Changed

  • scripts/imaging/mesh_interpolator_source_recovery.py: analytic physical source-recovery checks, mutations and control.
  • smoke_tests.txt: register the new bounded deterministic script.
  • scripts/imaging/mesh_interpolator_source_recovery.md: applicability, numerical measurements, limitations and deliberate-fault evidence.

Upstream PR

PyAutoLabs/PyAutoArray#611

Preserve library-first merge order. No new runtime API or production behavior is required by this workspace PR.

Test Plan

  • Registered script through the actual Hands smoke runner with profile_smoke.yaml: 1 passed, 0 failed, 8.27 seconds, exit 0.
  • Direct metric capture also passed. Correct normalized RMS: adaptive kernel 0.0401, uniform 0.0424, Delaunay 0.0423, Sibson 0.0450, KNN 0.1006, KNN barycentric 0.0420. All fault variants failed the corresponding physical-truth acceptance criterion.
  • Adaptive mirroring changes normalized RMS from 0.0401 to 0.0758, failing the fixed 0.07 bound; control is bit-identical.

Readiness

Heart has no RED reasons. Human explicitly acknowledged manifest drift: workspace checkouts (manifest ↔ disk) — 1 mismatch(es) vs PyAutoMind/repos.yaml and stale release validation incomplete: no rehearsal for current source, authorizing development PRs only. No merge or release is authorized.

@Jammy2211
Jammy2211 merged commit 36d1b01 into main Oct 2, 2026
3 checks passed
@Jammy2211
Jammy2211 deleted the feature/mesh-interpolator-numerics-audit branch October 2, 2026 11:50
@Jammy2211 Jammy2211 removed the pending-release PR queued for the next release build label Oct 7, 2026
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.

1 participant