Upstream Port Coverage Map (MESA 26.4.1)¶
Routine- and line-level port tracking in benchmarks/dashboard/port_manifest.toml measures FlexMESA against MESA release r26.4.1 (commit c8c2026, archive MD5 994fd28f38da92efc80e38ca11d8317b), reconciled below with the pre-rebaseline structural audit in notes/audit/coverage-map.md. Live per-commit Rust/Python line counts and test coverage appear in the Live Progress & Verification Dashboard.
Progress is tracked by upstream MESA 26.4.1 lines by manifest status and by routine-level evidence (notes/audit/routine_table.md), never by written Rust or Python lines (DECISIONS #24, #174). A file's status is raised above ported_unverified only with committed MESA 26.4.1 vector or history evidence in a pull request.
Headline Coverage Reconciliation¶
| Denominator Scope | Upstream Lines | Ported (Unverified) | Compared Against MESA 26.4.1 |
Notes |
|---|---|---|---|---|
Core engines (star + star_data + binary + astero) |
144,952 | 39,487 (27.2%) | 5,640 (3.9%) | Excludes stub (6,378) and partial (71,242) lines |
All 26 MESA 26.4.1 modules (incl. gyre, adipls, stella, plotting) |
497,703 | 43,047 (8.6%) | 5,640 (1.1%) | Full v0.1.0 target denominator (notes/SCOPE.md) |
Pre-rebaseline non-plotting star+binary+astero audit (0b2e6bb) |
134,940 | 21,493 PORTED (16%) / 66,685 PARTIAL (49%) |
unverified pre-audit | 17% STUB (23,259 LOC), 17% ABSENT (23,503 LOC) |
math strict-mode scalar vectors (#165) |
474,062 vectors | math: 403,258/403,258 CRMATH 0 ULP (70,804 libm <= 1 ULP); 305,967/305,967 probed module hex 0 ULP (12 with every probed value at 0 ULP, 16 non-math probed) | None against MESA: gated in CI by scripts/check_strict_determinism.py (x86_64 vs aarch64, 1 vs 4 threads; 474,062 math vectors + uncapped star/1.3M_ms_high_Z + binary/jdot_gr_check run with unsupported controls ignored; a bit-identity check, not a comparison with MESA) | 16 / 23 remaining module suites at verified status in port_manifest.toml |
End-to-end test_suite cases |
106 cases | 106 in manifest | 96 / 106 passing | 10 declared gaps, 0 no_reference_yet |
Per-Module Port Status (26 MESA 26.4.1 Modules)¶
| Module | Upstream LOC | Absent | Stub | Partial | Ported (Unverified) | LOC at verified Status |
% Ported | % at verified Status |
|---|---|---|---|---|---|---|---|---|
star |
120,509 | 17,101 | 6,378 | 54,084 | 37,306 | 5,640 | 35.6% | 4.7% |
star_data |
4,870 | 34 | 0 | 4,836 | 0 | 0 | 0.0% | 0.0% |
binary |
11,638 | 2,885 | 0 | 6,572 | 2,181 | 0 | 18.7% | 0.0% |
astero |
7,935 | 2,185 | 0 | 5,750 | 0 | 0 | 0.0% | 0.0% |
eos |
28,666 | 7,656 | 0 | 21,010 | 0 | 0 | 0.0% | 0.0% |
kap |
22,430 | 13,652 | 0 | 8,778 | 0 | 0 | 0.0% | 0.0% |
net |
13,452 | 0 | 0 | 13,452 | 0 | 0 | 0.0% | 0.0% |
rates |
17,217 | 192 | 0 | 17,025 | 0 | 0 | 0.0% | 0.0% |
neu |
2,184 | 352 | 0 | 0 | 1,832 | 0 | 83.9% | 0.0% |
atm |
6,853 | 2,468 | 0 | 4,385 | 0 | 0 | 0.0% | 0.0% |
turb |
2,033 | 0 | 0 | 681 | 1,352 | 0 | 66.5% | 0.0% |
chem |
4,195 | 373 | 0 | 3,822 | 0 | 0 | 0.0% | 0.0% |
ionization |
3,859 | 2,226 | 0 | 1,633 | 0 | 0 | 0.0% | 0.0% |
colors |
3,823 | 428 | 0 | 3,395 | 0 | 0 | 0.0% | 0.0% |
num |
20,045 | 845 | 0 | 19,200 | 0 | 0 | 0.0% | 0.0% |
mtx |
5,802 | 430 | 0 | 5,372 | 0 | 0 | 0.0% | 0.0% |
interp_1d |
4,969 | 1,624 | 0 | 3,345 | 0 | 0 | 0.0% | 0.0% |
interp_2d |
13,565 | 6,661 | 0 | 6,784 | 120 | 0 | 0.9% | 0.0% |
auto_diff |
14,353 | 1,715 | 0 | 12,638 | 0 | 0 | 0.0% | 0.0% |
math |
936 | 368 | 0 | 568 | 0 | 0 | 0.0% | 0.0% |
const |
256 | 0 | 0 | 0 | 256 | 0 | 100.0% | 0.0% |
utils |
3,633 | 1,555 | 0 | 2,078 | 0 | 0 | 0.0% | 0.0% |
gyre |
55,708 | 29,427 | 0 | 26,281 | 0 | 0 | 0.0% | 0.0% |
adipls |
30,923 | 20,829 | 0 | 10,094 | 0 | 0 | 0.0% | 0.0% |
stella |
62,117 | 62,117 | 0 | 0 | 0 | 0 | 0.0% | 0.0% |
plotting |
35,732 | 35,732 | 0 | 0 | 0 | 0 | 0.0% | 0.0% |
| Core Engine Subtotal | 144,952 | 22,205 | 6,378 | 71,242 | 39,487 | 5,640 | 31.1% | 3.9% |
| All 26 Modules Total | 497,703 | 210,855 | 6,378 | 231,783 | 43,047 | 5,640 | 9.8% | 1.1% |
Namelist Controls & Defaults Alignment¶
Compared against MESA 26.4.1 .defaults schemas, 221 / 1,444 &controls keys (15.3%) and 226 / 455 &star_job keys (49.7%) are currently unimplemented (details in notes/audit/defaults_diff_26_4_1.md; loud rejection of unsupported keys is tracked in #147 and default alignment in #149):
| Namelist | Upstream Scalars | Matched in FlexMESA | Defaults Agree | Value Mismatch | Disabled (none/limit) |
Non-Scalar Rust | Unimplemented |
|---|---|---|---|---|---|---|---|
star &controls |
1,444 | 1,206 | 1,206 | 0 | 0 | 17 | 221 |
star &star_job |
455 | 228 | 228 | 0 | 0 | 1 | 226 |
binary &binary_controls + &binary_job |
209 | 155 | 155 | 0 | 0 | 1 | 53 |
astero &astero_search_controls |
150 | 137 | 137 | 0 | 0 | 1 | 12 |
eos &eos |
102 | 60 | 60 | 0 | 0 | 0 | 42 |
kap &kap |
36 | 21 | 21 | 0 | 0 | 0 | 15 |
Key Structural & Physics Gaps Behind 96 / 106 Acceptance Passes¶
- Model Construction & Relaxation (
#154,#150): Multi-steprelax.f90andcreate_initial_model.f90operations (#154) and upstream binary.photocompatibility (#150) remain unported; current.photobyte round-trips validate internal continuation consistency only. - Silent Inlist Drops & Default Mismatches (
#147,#149): Existing parsers silently ignore unimplemented namelist keys or map unknown option strings (mlt_option,atm_option,screening_mode) onto defaults instead of failing loudly. - In-Library Per-Case Extras Removed (
#148): In-libraryTier1..Tier5test-case extras and fabricated ZAMS/gravity/opacity overrides have been deleted from library crates; upstreamrun_star_extras.f90andrun_binary_extras.f90callbacks now live strictly intests/case_extras/. - Solver Control, Remeshing, Mixing & Transport (
#152-#162): Upstream Newton retry scheduling,mesh_adjust.f90zoning, convective premixing, predictive mixing, Burgers diffusion, monochromatic radiative levitation (op_radacc), shellular rotation variables, and coupled binary stepping remain partial or unverified. - Bundled Codes & Plotting (
#170-#173): UpstreamGYRE,ADIPLS, andSTELLA(148,748combined upstream LOC) are the bundled codes:GYREandADIPLSare partly ported to Safe Rust (flexmesa-gyre,flexmesa-adipls; per-routine status innotes/audit/routine_table.md),STELLAfollowsv0.1.0(#172), andflexmesa.plottingprovides34Matplotlib builders against46upstreamPGSTAR/PGBINARYpanel modules. - Derived JAX Engine Twins (
#166): Python/JAX kernels undersrc/flexmesa/{star,binary,astero}are frozen from new engine feature additions until canonical Safe Ruststrictmode clears the MESA26.4.1trajectory harness.
Reading port_manifest.toml in Python¶
import collections
from flexmesa.testing import case_manifest, port_manifest
m = port_manifest.load_port_manifest(
case_manifest.repo_root() / "benchmarks" / "dashboard" / "port_manifest.toml"
)
assert m.upstream_version == "r26.4.1"
counts = collections.Counter(e.status.value for e in m.entries)
print("Port manifest statuses:", dict(sorted(counts.items())))