Season posters: a free photo of each season's car, matched to the operator's curated cars #11

Merged
mesh-tools merged 4 commits from feat/season-picks into master 2026-11-30 10:51:58 +00:00
4 Commits
Author SHA1 Message Date
jschoubben e5874f2d9f Key a finished picture by the credit it draws
A finished picture's key named its route, its options and its layers' keys, but not the credit
it draws from a pick. A pick whose author or licence changed while its file stayed the same kept
its photo layer's key, so the stored picture was served again with the old credit drawn on it,
while X-Credits already said the new one (seen locally for 1967, whose author lost Commons'
"upload by" appendix).

finished_key now also takes every text the picture draws from a pick: the credit of each layer
made from a pick's photo (Layer.from_pick, season and layout picks alike). A map's credit follows
its source, which its layer key already names. A picture drawn from no pick adds nothing to the
digest, so its key is the one it had: no kept race, session or pick-less season picture is drawn
again. Seen locally with the old store in place: the race poster, the session thumbnail and the
season poster with bg=none came from the store under their old keys; the 1967 and 1989 season
posters were drawn once under new keys. No release of master ever held a photo pick (neither
seasons/photos.json nor circuits/photos.json), so the running service keeps no picture whose key
changes.

The keys test: the same photo with another credit makes another key (on the old code finished_key
takes no credit; with the credit ignored the keys are equal), and a picture drawn from no pick
keeps the digest of render version, route, options and layer keys it had.

Builds: docs/posters.md at f6b9f937d0 (Finished images: the key names the credit of each layer drawn from a pick; Principles, 2: a changed input makes a new key)

Claude-Session: https://claude.ai/code/session_01JG73KFhbaNj3tyJ8tKmE3W
2026-11-30 11:33:56 +01:00
jschoubben 25fee9ca85 Give the addresses an address version of their own, raised to a1
Every season poster changed with the joined picks, but the Kometa file kept handing out
?v=r3, an address clients keep for good: they would never load the new season posters. Raising
the render version instead would draw every kept layer and finished picture again, though only
the season posters changed.

poster_options.ADDRESS_VERSION ("a1") sits beside RENDER_VERSION: the Kometa file writes it into
every poster address, and only an address carrying it is sent the immutable Cache-Control; an
address with ?v=r3 is now any other address (a day, then its ETag). Layers and finished pictures
stay keyed by RENDER_VERSION, still r3, so nothing kept is drawn again except the season posters
whose photo changed. The API's option text, the Kometa docstring and the README say "address
version".

The options test: ?v=a1 is kept for good, ?v=r3 no longer (on master it fails: no
ADDRESS_VERSION, and ?v=r3 is still the immutable address).

Builds: docs/posters.md at f6b9f937d0 (Finished images: what clients keep, the address version)

Claude-Session: https://claude.ai/code/session_01JG73KFhbaNj3tyJ8tKmE3W
2026-11-30 11:33:56 +01:00
jschoubben ab0c4b9244 Join the season photo picks: every season from 1950 to 2026 matched to its curated car
seasons/photos.json held only its note, so every season poster was drawn without a photo. It now
holds the 77 picks made by the curated car of each season (three runs: 1950-1975, 1976-2000,
2001-2026), keyed in year order. Licence, author and date of each were read from Commons' own
metadata. Where that date cannot be when the photo was taken, the entry says where its date
comes from: 1978, 1984, 1988 and 1991 from the description (Commons gives a scan or upload
date); 1989 the upload's month, 2012-08 (Commons' 2013-08-21 is the camera's clock, after the
upload of 2012-08-28, and neither the description, whose 1989 is the car's year, nor a category
says when it was taken). 1967's author is the photographer as Commons names him on his other
files, "edvvc from London, UK", without the uploader Commons' Artist field appends. The $comment
says where a candidate comes from, the match order and date_from's three values.

seasons/picks.md is the table of picks the design names: one row per season, newest first, the
curated car named and described (never its photo, never where it is kept), the picked file, its
licence, the match and why, joined from the three runs' tables. 1957, 1975 and 1977 are not in
their season's cars category (searched as the candidates tool searches it, and their own
categories walked up): their rows say they were found by a search for the car by name. Five
seasons are not the same car: 1952 (the champion's car), 1967, 2023 and 2026 (the same team's
car of that season), 1971 (the same model in the livery it raced that season).

The tests read both files as the service does: every season 1950-2026 written in year order and
accepted by poster_sources' reader, each date_from one of the design's three; the table names
every picked season newest first, with the file and licence of seasons/photos.json and one of the
design's four matches (on master both fail: no season is picked, no table). The licence test
gains CC BY-SA 2.5 and the three ported licences the picks use (2.0 de, 3.0 de, 3.0 nl): free,
and the picture CC BY-SA 4.0; pick_share's docstring names them. The reader does not check
date_from, so it needs no change for "upload".

Builds: docs/posters.md at f6b9f937d0 (Season posters: each season's photo is matched to the curated car, the table of picks seasons/picks.md; Picking photos: the name search said in the pick's row, date and date_from, the ported CC BY-SA licences; Licences, stated: 2.5 and the ported licences)

Claude-Session: https://claude.ai/code/session_01JG73KFhbaNj3tyJ8tKmE3W
2026-11-30 11:33:56 +01:00
jschoubben f6b9f937d0 Write the lead's answers on the season photos into the design
The season photos are matched to the operator's curated cars (77 seasons, 1950-2026), and the
picks raised questions the design did not answer. The lead's answers of 2026-11-30:

- Season posters: each season's photo is matched to the curated car of that season, in order the
  same car, the same model in a livery it raced that season, the same team's car of that season,
  that season's champion car; a curated photo of another year's car gives way to that season's
  car; the table of picks, seasons/picks.md, names the match per season.
- Picking photos: tools/commons_candidates.py lists a season's candidates from its "<year>
  Formula One season cars" category; where that category holds no free photo of the curated car,
  the person or session picking searches Commons for that car by name, and the pick's row in
  seasons/picks.md says so (no part runs the search: every season is picked).
- An entry's date is when the photo was taken. Where the date Commons gives cannot be (a scan, an
  upload, a camera clock never set, a date after the file's upload), the date its description or
  category gives, marked "date_from"; where neither says, the month of the file's upload, the
  latest it can have been taken, marked "upload" (a true bound, not a date nobody measured).
- The ported CC BY-SA licences (2.0 de, 3.0 de, 3.0 nl) are free like their unported versions and
  give the picture CC BY-SA 4.0; the licences list names them, and 2.5 beside 2.0 and 3.0 (it
  also allows a later version with the same elements).
- Finished images: a finished picture's key also names the credit of each layer drawn from a
  pick, so a pick's changed credit makes a new key (principle 2: a changed input makes a new key).
- What clients keep: the address carries an address version of its own (?v=), separate from the
  render version that keys kept layers and finished pictures; raised when a look changes, so
  clients load it again from the pictures already kept. Raised now to a1 because every season
  poster changed; the render version stays r3.

The season photos leave "Not in this change".

Claude-Session: https://claude.ai/code/session_01JG73KFhbaNj3tyJ8tKmE3W
2026-11-30 11:33:50 +01:00