Add the Commons reference-board research tool
Full build / Import + headless tests (push) Successful in 40s
Full build / Full desktop build + optional release (push) Skipped

This commit is contained in:
zwitschi committed 2026-11-03 14:51:31 +01:00
1 parent f09a5e7937
commit 5b306b1c52
4 files changed
+429 -4

No files matched your search

+7 -4
View File
@@ -348,10 +348,13 @@ CC BY-SA 2.0). No recent frame shoots the El Capitan facade straight-on in dayli
facade evidence is still the 2009 CC BY frame. The 8 downloaded candidates are in
`tmp/research/elcapitan-2026/` (gitignored) with `meta.json`; nothing was committed.
- [ ] Wire `scene_concepts.py refboard`: list/fetch Commons files by `titles=`, `geosearch` or
category with date and licence sorting, write the `SIDECAR.md` rows and the folder README
rows automatically (User-Agent, batched `titles=`, 3–4 s spacing to avoid HTTP 429; date-only
fetch into `tmp/` by default, committed copies require the licence gate).
- [x] Wire `tools/refboard.py` (standalone, stdlib-only): `search --source search|geo|category`
lists candidates with ISO date, age-in-months and a commit/review/skip licence gate
(`--allow-ccbysa` after a recorded review); `fetch` downloads usable rows into `tmp/` with
spaced requests and writes `meta.json`; `rows` emits SIDECAR + README table rows from the
manifest. Six recent CC0 photos of the block were re-fetched into
`tmp/research/elcapitan-2026-tool/`. Tests in `tools/test_refboard.py` (licence gate, recent
filter, review-row exclusion, row emission).
- [ ] Add a `--max-age-months` filter (default 12) and a `--must-reuse` mode that matches the
folder's existing sidecar entries so a refresh only reports what changed.
- [ ] Research-diff step: keep the last-12-months board as the "current reality" evidence and the