Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,20 @@ new contract is not evidence that a number moved.

## Data contracts

### 1.22.1 - 2026-11-19

**The destination notes name their sources. No number moves.** The `notes`
route sentences cite the studies behind each figure: the cislunar sum as a
cross-study benchmark (NASA-CR-195527, Benson et al. 2025), the lunar route's
Apollo figures (NASA SP-4029), DRA 5.0's page for the 1-sol orbit with the
200-km comparator called a two-body calculation, and the Mars entry fraction's
MSL and Perseverance ratios (General_Research rc-769 to rc-771). The 28.5 deg
GTO plane is called a reference scenario (rc-604), and the nickel-iron row's
analogue is called analyst-selected (rc-815).

In the re-recorded `tests/data/prices-2026-10-07/` fixtures only `notes` and
the stamp move; every price, yield and value column is identical to 1.22.0.

### 1.22.0 - 2026-11-18

**`ref_price_source` says what each reference price is. No number moves.**
Expand Down Expand Up @@ -152,6 +166,13 @@ code.

## Package releases

### 0.8.1 - 2026-11-19

Data contract **1.22.0 → 1.22.1**: destination and nickel-iron `notes` only
(see the contract entry above), CITATIONS.md gains the route studies, and
`rust/README.md` calls its speed row an informal timing (General_Research
rc-765). No price, yield or value moves.

### 0.8.0 - 2026-11-18

Data contract **1.21.0 → 1.22.0**: the reference rows' `ref_price_source`
Expand Down
19 changes: 19 additions & 0 deletions CITATIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,25 @@ Cited in code comments beside a value they explain; none reaches a value.
al. 2023, Lithosphere 2023(1):126 (awaruite, rc-513); IMF WP 2024/077 and
Banque de France Eco Notepad 419 (elasticity, rc-507).

## Delivery-route figures in the destination notes

The `notes` column's route sentences interpolate spacecost's delivery
chains; these are the studies the sentences name (General_Research rc-769
to rc-771). The delta-v rows themselves are spacecost's, cited there.

- **NASA, *Human Exploration of Mars Design Reference Architecture 5.0***,
NASA/SP-2009-566 (2009), printed p. 22: the 250 x 33,793 km 1-sol staging
orbit. The 2,100 m/s 200-km comparator beside it is a two-body calculation
(spacecost's low-Mars-orbit TEI row), not a DRA figure.
- **Edquist et al. 2022**, Table 3 (PDF p. 14): the entry masses behind the 28.5% (MSL) and 30.5% (Perseverance)
entry-to-rover ratios, with the rover masses from JPL's MSL fact sheet and
NASA's Mars 2020 flight-mechanics paper (spacecost `delivery.py`).
- **NASA-CR-195527**, Table 2.1 (3,140 m/s TLI from a 185 km orbit), and
**Benson, Asher & Reese 2025**, NTRS 20250000718, slide 5 (400-450 m/s TLI
to NRHO): the two halves of the cislunar sum, from different missions.
- **NASA SP-4029**, *Apollo by the Numbers*: the TLI, lunar-orbit insertion
and LM powered-descent figures of the lunar-surface route.

## Software

- **spacecost** (MIT, the same author): the delivery chains, the launch price
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ and on 3.11 they come out one bit different.
## Two version numbers

- **The data contract**, `MineralValueConfig.pipeline_version`, currently
`1.22.0`. Stamped into every row. It moves when a change moves any number a
`1.22.1`. Stamped into every row. It moves when a change moves any number a
build produces, and its history is economicspace's Stage 2 changelog up to
1.16.0 and [CHANGELOG.md](CHANGELOG.md) from there.
- **The package**, `spacevalue.__version__`. It moves for anything else.
Expand Down
7 changes: 6 additions & 1 deletion rust/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,12 @@ many calls each side answered.
| fuzz against the Python | 60,000 + 30,000 + 30,000 calls, 0 differ (exceptions compared too) |
| plant (`planted_knapsack_defect`: one ulp in every take and in the capped sale's value) | all six tests fail |
| the whole suite with the binding installed | 189 passed |
| per call, through the Python boundary | 1.9x / 1.3x / 3.7x faster: about 1 to 3.5 us saved per call |
| per call, through the Python boundary | 1.9x / 1.3x / 3.7x faster: about 1 to 3.5 us saved per call (informal, see below) |

The speed row is an informal timing, not a benchmark: no harness, raw
results, CPU, build profile, workload or repetition count is committed, so
treat it as indicative only (General_Research rc-765). The other rows are
correctness checks, which the committed tests reproduce.

Called from Python, the binding is worth little: the boundary costs about as
much as the walk. The gain is in `es_core`, where the sizing loop calls
Expand Down
2 changes: 1 addition & 1 deletion spacevalue/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

# The PACKAGE release. Not the data contract: that is
# `MineralValueConfig.pipeline_version`, stamped into every row.
__version__ = "0.8.0"
__version__ = "0.8.1"

# Each public name, and the submodule that defines it.
_LAZY = {name: "catalog" for name in (
Expand Down
49 changes: 38 additions & 11 deletions spacevalue/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ class MineralValueConfig:
# What each contract changed is CHANGELOG.md, not this comment: the
# dashboard economicspace builds scrapes a field's comment block as its
# help, and a changelog here was once 267 lines of it.
pipeline_version: str = "1.22.0"
pipeline_version: str = "1.22.1"

# ─── DISPLAY ─────────────────────────────────────────────────────────────
preview_rows: int = 20 # rows per table in the CLI preview
Expand Down Expand Up @@ -352,7 +352,13 @@ def _per_tonne_to_per_kg(usd_per_tonne: float) -> float:
# glance which numbers this table asserts and which it derives. They are
# comparisons and context, not terms in the price.
_GEO_COPLANAR_GTO_BURN_M_S = 1_477.0 # the same apogee burn with no plane change
_PARKING_INCLINATION_DEG = 28.5 # Cape Canaveral, the latitude GTO starts at
# 28.5 deg is a named reference scenario: Cape Canaveral's latitude standing
# in for the plane a GTO starts in, a comparator rather than a
# trajectory-specific transfer plane (General_Research rc-604).
_PARKING_INCLINATION_DEG = 28.5 # reference launch-plane scenario
# Two-body: circularising at 200 km from spacecost's 2.65 km/s Hohmann arrival
# v-infinity, as its low-Mars-orbit TEI row derives it; not a DRA 5.0 figure
# (General_Research rc-769).
_MARS_200KM_CAPTURE_M_S = 2_100.0 # circularising instead of binding an ellipse
_MARS_1SOL_ORBIT_KM = (250, 33_793) # NASA DRA 5.0 staging orbit, altitudes

Expand Down Expand Up @@ -381,7 +387,9 @@ def _build_destination_notes() -> Dict[str, str]:
"gto": f"LEO -> GTO ({gto[0]:,.0f} m/s), the perigee burn "
"alone, into a "
f"{_PARKING_INCLINATION_DEG:.1f} deg transfer orbit "
"with its apogee at GEO. The depot sits in the plane "
"with its apogee at GEO (a reference scenario: Cape "
"Canaveral's latitude standing in for the launch "
"plane). The depot sits in the plane "
"the launch puts it in, so no plane change is paid, "
"and this is the first leg of the geo chain: a GTO "
"kilogram is never the dearer of the two.",
Expand All @@ -391,13 +399,19 @@ def _build_destination_notes() -> Dict[str, str]:
"inclination at once. Coplanar that burn would be "
f"{_GEO_COPLANAR_GTO_BURN_M_S:,.0f}, so "
f"{plane_change:,.0f} m/s of this price is the "
"latitude of the launch site. Dearer per kilogram "
"reference launch plane, Cape Canaveral's latitude "
"standing in for the launch site. Dearer per kilogram "
"than a cislunar depot, and a far narrower market "
"once it arrives.",
"cislunar": f"TLI + NRHO insertion ({cis[0]:,.0f} m/s) on one "
"cryo stage.",
"cryo stage: an approximate cross-study benchmark, "
"a TLI from a 185 km parking orbit (NASA-CR-195527, "
"Table 2.1) plus a fast TLI-to-NRHO insertion "
"(Benson, Asher & Reese 2025, slide 5), from "
"different missions.",
"lunar_surface": f"TLI + LOI ({lun[0]:,.0f} m/s) on a cryo stage, then "
f"powered descent ({lun[1]:,.0f} m/s) on a lander. "
f"powered descent ({lun[1]:,.0f} m/s) on a lander, "
"all three Apollo figures (NASA SP-4029). "
"No atmosphere, so "
"every metre per second is propulsive — the Moon is "
"the nearest destination and among the dearest to "
Expand All @@ -406,16 +420,23 @@ def _build_destination_notes() -> Dict[str, str]:
"capture into the "
f"{_MARS_1SOL_ORBIT_KM[0]:,d} x "
f"{_MARS_1SOL_ORBIT_KM[1]:,d} km 1-sol staging orbit "
"(NASA DRA 5.0). "
"(NASA DRA 5.0, NASA/SP-2009-566, printed p. 22). "
"Binding an ellipse is far cheaper than "
"circularising: the same arrival costs "
f"{_MARS_200KM_CAPTURE_M_S:,.0f} m/s into a 200-km "
"orbit. Nothing enters the atmosphere, so unlike "
"orbit, a two-body calculation at spacecost's "
"Hohmann arrival v-infinity, not a DRA figure. "
"Nothing enters the atmosphere, so unlike "
"mars_surface there is no entry-survival fraction "
"on top.",
"mars_surface": f"TMI ({m_s[0]:,.0f} m/s), then aeroentry surviving "
f"{_entry_survival_pct('mars_surface'):.0f}% of entry "
"mass (MSL / Perseverance measured), then "
"mass, about MSL's and Perseverance's "
"entry-to-rover ratios: 899 of 3,153 kg, 28.5%, "
"and 1,026 of 3,369 kg, 30.5% (entry masses, "
"Edquist et al. 2022, Table 3; rover masses, JPL's "
"MSL fact sheet and NASA's Mars 2020 "
"flight-mechanics paper), then "
f"{m_s[1]:,.0f} m/s of "
"retropropulsion. Mars is far but its atmosphere "
"does most of the braking for free.",
Expand Down Expand Up @@ -1435,7 +1456,10 @@ def _new_element(name: str, formula: str, density: float, price: float,


# ─── THE NICKEL-IRON ALLOY, AND THE THREE IT IS MADE OF (v1.12.0) ───────────
# The bulk alloy: a typical IIIAB iron meteorite. Moved here from the
# The bulk alloy: an analyst-selected IIIAB iron-meteorite analogue. No
# table or sample set is cited for the Fe / Ni / Co fractions; the Lodders
# 2003 and Walker 2012 names beside the row are for the PGM traces
# (General_Research rc-815). Moved here from the
# nickel-iron row, unchanged and in the same order (the row's `yields_json` is
# this dict's json.dumps, so the order is part of the output), because the
# alloys below are derived from it.
Expand Down Expand Up @@ -1890,7 +1914,10 @@ def _new_mineral(name: str, formula: str, density: float,
# v1.12.0: the table moved above MINERAL_REFERENCE, unchanged, so the
# three alloys it unmixes into can be derived from it.
"yields": _NICKEL_IRON_YIELDS,
"notes": "Iron-meteorite analogue (IIIAB octahedrite mean) — "
"notes": "Iron-meteorite analogue (IIIAB octahedrite), "
"analyst-selected: no table or sample set is "
"cited for the Fe / Ni / Co fractions, and the "
"trace citations are for the PGMs — "
"Fe + Ni + trace PGMs + Au. Total PGM ≈ 37 ppm matches "
"siderite literature. Yields cover all 6 PGMs as of v1.1.2.",
},
Expand Down
Loading
Loading