Repository navigation
0.8.8: manifests name their source commit; bad live quotes skipped (no value moves) - #25
Merged
Merged
Conversation
…o value moves) Release provenance: every published release through prices-2026-11-20 says source_commit "", because the publish workflow built from an installed wheel outside any checkout. The workflow now installs editable and fails unless the manifest names $GITHUB_SHA with a clean tree. A commit is recorded only when the checkout's top level holds the package (a copy in another project's .venv no longer reports that project's HEAD), and both manifests gain source_dirty. Live quotes: a close that is not a finite number above zero is skipped with a WARN on both live paths (yfinance, metals.dev), the rule spacecost holds snapshots to. Before, gold 0 priced gold at $0/kg and platinum -5 below zero, with the run ending COMPLETE. CLI: build/show --live exit 1 when no live quote came back (before: exit 0, silent under -q, manifest "live_quotes": true); the build manifest gains quoted_rows. Gate: check-release fails a table for a destination the package does not price. Docs: README says which seven columns earth_surface lacks (held by a test), its install lines pin v0.8.7 (were v0.5.0), and the platinum example in apply_delivery_destination uses the seed build's figures. Data contract unchanged at 1.22.1. Rebuilt from metals-2026-10-07, all eight tables equal the fixtures and prices-2026-11-20 byte for byte. 208 tests pass.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
An audit of the repo, in three rounds. Data contract unchanged at 1.22.1: rebuilt from
metals-2026-10-07, all eight tables equal the committed fixtures and the publishedprices-2026-11-20byte for byte.What was wrong, and what changed
prices-2026-10-07throughprices-2026-11-20) hassource_commit: "". The publish workflow installed a wheel, so the build ran from site-packages, outside any checkout. The workflow now installs editable, and a new step fails the run unless the manifest names$GITHUB_SHAwith a clean tree. That step fails on the realprices-2026-11-20manifest. A commit is recorded only when the checkout's top level holds the package, and both manifests gainsource_dirty.0, platinum-5and silver"NaN"priced gold at $0/kg and platinum at -$160.75/kg, and left silver's reference price under a live label, with the run ending COMPLETE. Both live paths now skip a close that is not a finite number above zero (spacecost's snapshot rule), so the reference price stands.--livefalse green.build --live -qwith no yfinance exited 0, printed nothing, and wrote"live_quotes": trueover reference prices only.buildandshow --livenow exit 1 with a stderr line, and the build manifest gainsquoted_rows.check-releasepassed a ninth table for a destination that does not exist. It now fails.earth_surfacelacks seven,value_routeamong them. It now names them, and a test holds the list. The install lines pinnedv0.5.0(data contract 1.19.0) and now pinv0.8.7. A docstring's platinum example had outdated figures.Verification
prices-2026-11-20assets passcheck-release, and a local rebuild matches every sha256.Not covered by this PR
The publish workflow's new step has not run on GitHub yet. A dry run (
dry_run: true) before the next real release would confirm the Windows runner's checkout reads as clean.