4.8 KiB
4.8 KiB
The monthly audit of everything
A written checklist for the owner. It does not repeat the refresh runbook; it points at it. Work down the list in order and stop at the first step that fails.
- Refresh the records. Run
/refresh-trails(the full run once a quarter,lightin the months between). It verifies every record against the pages it cites, re-checks the left-out list, looks for missing trails and updates tracks and emblems. The runbook is.claude/skills/refresh-trails/SKILL.md; this checklist adds to it and does not replace it. - Check the links.
python3 tools/refresh.py linkslists every address a record cites that no longer answers. Fix each one in a record with a history entry. - Validate the data.
python3 tools/validate.pymust endOK <n> trails. It fails a record with noplaces_checked, and one whose track has changed since its places were measured. - Check the history.
python3 tools/check_history.py --base origin/mainmust endOK history. A changed fact needs a new history entry. - Run both test suites.
python3 -m unittest discover tools/testsandpython3 -m unittest discover -s web/testsmust both pass. - Check the places.
python3 tools/place_trails.py --check --refreshdownloads every outline again (without--refreshit reuses the files already in the cache, which are the ones first downloaded), measures every track again and prints each difference from the records, one per line:- a place gained or lost by a trail: re-run
place_trails.py propose, read the line, and apply it only when the new outline is right; - a boundary that moved (a new source version): the owner rules whether the new outline replaces the old one;
- a place that crossed the 3-trail line: its page appears or goes, so check its links and the
counts that name it.
The monthly workflow
.github/workflows/places.ymlruns this step by itself and fails with the list; this step is the one you run when it has failed, and before a release.
- a place gained or lost by a trail: re-run
- Review the
statedplacements by hand. A trail with no track is placed from a page, and no tool can measure that again. For each record with a place whosebasisisstated, open the cited page again and confirm that it still names the trail in that place. The date of the last look is the record'splaces_checked; set it again when you have looked, and add a history entry when a placement changes. - Build the site with
python3 web/build.py --out _siteand read the places page, one park page, one range page and one wilderness page.
Seasons
Every trail has a season. Where a page states one, the season is that page's. Where none does, the season is an estimate: set by a reviewer from the trail's climate and the seasons of similar trails, with its confidence on the record (docs/season-judging.md). The aim of this audit is that estimates shrink over time, and that none goes stale unnoticed.
- Search afresh for a page that states the season of every trail still marked
estimate. List them withpython3 tools/estimate_season.py estimates. For each, followdocs/season-research.md: the trail's holder or a government page first, then an established hiking reference, a guidebook publisher's page or an association list. When a page states a season, replace the estimate throughtools/refresh.py(propose, collect, apply): give the page's season and months, the basis (primary,sourcesorsource), the page as a[[hike.source]]namingseasonandmonths, and remove the climate source andseason_method. A change to the season gets a[[history]]entry like any other fact. Then runpython3 tools/season_judge.py inputsso that the record of estimate inputs drops the trail. A trail with no page found stays an estimate, and nothing else about it changes. - Re-run the machine estimate and flag any estimate whose inputs have changed:
python3 tools/estimate_season.py check. It reruns the machine estimate for every estimate, compares it, the climate at the trail and the sourced trails it is compared with against what was recorded intools/season_inputs.jsonwhen the season was set, and lists each trail whose inputs differ. The listing is a flag, not a rewrite. For each trail listed, build its packet (python3 tools/season_judge.py packets), look at what changed, and either keep the season or set it again by judgement. Then runpython3 tools/season_judge.py inputsto record the inputs as they now are. The check also fails when the blind test of the method (tools/season_blind_test.json) is below its bar, or when the fit of the machine estimate against the sourced seasons has got worse.
The same check runs on its own on the first of each month (.github/workflows/season-check.yml), so a changed estimate is noticed even when the audit is late. The audit is still the step that acts on it.