Repository navigation
Phase 3: native run engine + binary resolver/installer - #175
Conversation
Review (Sonnet) addressedCritical (security): fixed. The resolver downloaded straight to the final cache path and verified after, so a corrupt/tampered binary poisoned the cache and (on Windows, where Important: fixed. A relative Minor: addressed. Confirmed clean by the reviewer: 17 native tests pass (incl. the 2 new security regression tests); lint/ty clean. |
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #175 +/- ##
==========================================
- Coverage 82.95% 82.62% -0.34%
==========================================
Files 19 23 +4
Lines 2435 2607 +172
Branches 412 441 +29
==========================================
+ Hits 2020 2154 +134
- Misses 299 326 +27
- Partials 116 127 +11
🚀 New features to boost your workflow:
|
Summary
Adds
AMICANative, the fourth run engine (alongside NumPy, PyTorch, MLX). It runs the dependency-free native binary and returns anAmicaOutputwith the usual accessors, so it is the parity oracle the Python backends are checked against.Closes #168. Part of epic #165.
What's included
pyAMICA.native.resolver: maps the host to its release asset, downloads on first use with SHA-256 verification, caches it, and honorsPAMICA_NATIVE_BINARY. windows-arm64 -> windows-x64 (emulation, Native windows-arm64 AMICA binary (no MSYS2 gfortran yet) #173).python -m pyAMICA.nativeinstalls the binary explicitly.pyAMICA.native.AMICANative: writes the data (.fdt, column-major) + a fullinput.param(embedded template, so no dependency on installed sample data), runs the binary, and loads the result vialoadmodout. Friendlyn_models/n_mixaliases; a collapsed fit is reported as a clear degenerate-fit error instead of an opaque SVD failure (cf. AMICA wrapper marks is_fitted_ even on a degenerate (nan_ll/singular_ll) fit #50).from pyAMICA import AMICANative;pyAMICA.nativeadded to the wheel packages.PAMICA_NATIVE_BINARY, so the engine's end-to-end tests run for real (not skipped).Test plan