Make the monthly season check offline: it compares each estimate's recorded track and location with the trail's current one and downloads nothing; fix the audit so every command runs as written (packets needs --out, the places tool runs in its venv), with places and seasons steps under their own headings

This commit is contained in:
swaits committed 2026-11-20 14:45:42 -07:00
1 parent e6c2f371fc
commit f91c7dbc20
9 files changed
+328 -194

No files matched your search

@@ -108,10 +108,12 @@ left to someone remembering to run it (the owner's ruling):
- **Every push.** The validator fails any record with no season, so a new
trail cannot ship without one, sourced or estimated.
- **Every month.** A scheduled workflow runs `estimate_season.py --check`: it
re-runs every estimate and the fit against sourced seasons, and fails with
a list of estimates that would now come out different, or a fit that has
got worse.
- **Every month.** A scheduled workflow runs `estimate_season.py check`,
offline and with no download: it compares the digest of each estimate's
current track and location with the one recorded when the season was set,
and fails with a list of estimates whose inputs have changed, or the blind
test falling under its bar on the ends-only measure. The climate normals are
a fixed published dataset, so they are not read again.
- **Every audit.** `docs/audit.md`, the written checklist for the monthly
audit of everything, lists two season steps: the check above, and a fresh
search for a source for every season still marked `estimate`, so estimates
@@ -202,7 +204,7 @@ The plan above chose a rule over climate normals for Step 3. It was built and te
- **The method is tested blind.** The same reviewers estimated the 148 trails whose season a page states, from identical packets with the season hidden, and a trail's comparable trails never came from its own part of the split. Two measures are given, always together. 114 of 148 (77 percent) had their first and last months within a month of the page's; 105 (71 percent) also had no wrong gap in the middle. The ends-only measure is the one the 75 percent bar was set on, and on it the method clears the bar (77 percent); the strict measure (every window of the season must correspond, so a wrong gap counts as a miss) is lower, and the method does not reach 75 percent on it (71 percent). The owner decided the estimates ship with both figures stated. By the reviewer's confidence, ends only and strict: high 48 and 48 of 52, medium 55 and 46 of 76, low 11 and 11 of 20. The figures are in `tools/season_blind_test.json`, written by `season_judge.py score`, and the site reads them. The six trails judged from pages that disagree are not scored against themselves.
- **An estimate is stricter.** `season_basis = "estimate"` means no page states a season. `season` is built from `months`; `season_method` is one or two plain sentences saying how it was set and what sets the season there, ending "Confidence: high.", "medium." or "low."; and its one `[[hike.source]]` names `season` and `months` and cites the climate data. The validator refuses an estimate with any ordinary page naming the season, or with no method, and requires a season on every trail.
- **Pages that disagree.** Three trails (the Sierra High Route, the Cohos Trail and the Ouachita Trail) have pages from at least two different publishers that disagree, where none is the managing body, association or route author. Their season is set by judgement from all the pages and the estimate: basis `sources`, the pages cited as sources naming the season, and a `season_method` saying the pages differ and how it was settled, ending with a confidence; the validator requires two publishers and the confidence. Three more (the Finger Lakes Trail, whose one page contradicts itself, and the Ice Age Trail and the Ozark Trail, each with two pages from one publisher that differ) have no two publishers, so they are estimates: the pages are not cited as stating the season, and the method says a page was found but differs, so the season was estimated from the climate and similar trails. A season with a method is shown as an estimate (it reads "About" with a note), left out of structured data, and not counted among the seasons a page states.
- **The monthly check** (`estimate_season.py check`) reruns the machine estimate for every estimate and flags any whose inputs have changed since `tools/season_inputs.json` recorded them. It does not rewrite anything. The audit (`docs/audit.md`) also searches afresh for a page for every estimate.
- **The monthly check** (`estimate_season.py check`) runs offline: it compares the digest of each estimate's current track and location with the one `tools/season_inputs.json` recorded when the season was set, and flags any that differ. The climate normals are a fixed published dataset and are not read again. It does not rewrite anything. The audit (`docs/audit.md`) also searches afresh for a page for every estimate.
- **On the site**, a trail's page reads "About April to October" with a note (no page states a season; estimated from the climate at the trail's elevation and from similar trails; what sets it there; the confidence; that these are the usual months, not a closure). Rows, tables and month lists mark estimates, the month filter can leave them out, and the reference page and glossary give the counts and the blind-test result.
## Open risks