From f6b9f937d09a3b79b2312af5bfd290c7408b20fb Mon Sep 17 00:00:00 2001 From: jochen Date: Mon, 30 Nov 2026 11:33:45 +0100 Subject: [PATCH] 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 " 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 --- docs/posters.md | 51 ++++++++++++++++++++++++++++++++----------------- 1 file changed, 34 insertions(+), 17 deletions(-) diff --git a/docs/posters.md b/docs/posters.md index fe79229..65b1588 100644 --- a/docs/posters.md +++ b/docs/posters.md @@ -74,15 +74,19 @@ points (`tests/test_traces.py`). Layers live in the module's directory `layers`, ## Finished images (kept, capped) -Every finished picture is stored under a key made of its route, its resolved options and the keys of the layers -it was made from, in the directory `posters`, class `cache`, at most 2 GB; the least recently used go first when -it is full. A picture whose layer did not arrive is not stored. The render version is `r3`: no poster stored -before it is served again. +Every finished picture is stored under a key made of its route, its resolved options, the keys of the layers it was +made from, and the credit of each layer drawn from a pick, in the directory `posters`, class `cache`, at most 2 GB; +the least recently used go first when it is full. A picture whose layer did not arrive is not stored. The render +version is `r3`: no poster stored before it is served again. -**What clients keep.** An address that carries the render version (`?v=r3`, as the Kometa file writes it) is -sent `Cache-Control: public, max-age=31536000, immutable`. Any other address is sent an ETag and -`max-age=86400`, and a matching `If-None-Match` (weak or strong) gets a 304. A picture served without its layer -is sent `max-age=300` and no ETag. +**What clients keep.** The address clients are given carries an address version of its own (`?v=a1`, as the +Kometa file writes it), separate from the render version that keys kept layers and finished pictures. The address +version is raised when a look changes, so clients load it again from the pictures already kept; the render version +is raised only when the drawing itself changes. The address version was raised to `a1` (from `r3`, the render +version the addresses carried before) because every season poster changed; the render version stays `r3`. +An address that carries the address version is sent `Cache-Control: public, max-age=31536000, immutable`. Any +other address is sent an ETag and `max-age=86400`, and a matching `If-None-Match` (weak or strong) gets a 304. A +picture served without its layer is sent `max-age=300` and no ETag. ## Options @@ -124,11 +128,18 @@ Commons photo; until one is picked, it is drawn without a photo. Photos without the operator's earlier, hand-curated season photos carry agency credits (Getty Images, Motorsport Images/LAT and others) and stay private, as the reference for finding a freely licensed photo of the same car. +**Each season's photo is matched to the operator's curated car of that season**, in this 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 candidates from Commons per layout (aerial photos of the circuit dated in the -layout's years) and per season (that season's cars): only CC0, public domain, CC BY and CC BY-SA; quality marks, -size and landscape first; written to `examples/data/candidates.json`. The picker page shows, per layout, the +layout's years) and per season (the photos in its " Formula One season cars" category): only CC0, public +domain, CC BY and CC BY-SA; quality marks, size and landscape first; written to `examples/data/candidates.json`. +Where a season's 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. The picker page shows, per layout, the `bg=satellite` decision first (the national photo and EOX next to each other; keep the satellite, or use the map instead), then the optional photo candidates for `bg=photo`, beside the picks of the circuit's other layouts; per season, its candidates beside the nearest seasons' picks. It gives the entry to copy; it writes nothing. @@ -139,6 +150,13 @@ An entry holds the photo fields (`file`, the Commons title without "File:"; `lic `date`, `YYYY[-MM[-DD]]`), `"use": "map"`, or both. A key starting with `$` is a note and is skipped. Refused and logged when read: an unknown `use`, incomplete photo fields, an entry with neither, a licence that is not free. +An entry's `date` is when the photo was taken. Where the date Commons gives cannot be when the photo was taken (a +scan, an upload, a camera clock that was never set, a date after the file's upload), it is the date the file's +description or category gives, and the entry is marked `"date_from"`: `"description"` or `"category"`. Where neither +says when the photo was taken, it is the month of the file's upload, the latest it can have been taken, marked +`"date_from": "upload"`. 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 API serves both files, read-only, as the poster service has them loaded: `/picks/circuits.json` and `/picks/seasons.json` answer the notes first, then the entries it draws from (a refused entry is left out), with the CORS of every route and, like the other JSON routes, no `Cache-Control`; the root route lists both. The picker reads the picks @@ -150,11 +168,11 @@ else a failure says which address failed and why. - On every picture: the credit line of each source it was made from, joined with " · ", at least 12 px high after scaling, wrapping when needed, on a dark band above the bottom strip. -- **A picture's licence follows its sources:** CC BY-SA 4.0 when made from a CC BY-SA photo (2.0, 3.0 and - 3.0 DE allow a later version with the same elements); CC BY-NC-SA 4.0 when made from EOX's mosaic; CC BY 4.0 - otherwise. Jolpica's race names and dates are single facts and do not set it. The satellite chain takes one - source, so a BY-SA photo and an NC-SA mosaic never meet on one picture; a picture that would combine them is - refused. +- **A picture's licence follows its sources:** CC BY-SA 4.0 when made from a CC BY-SA photo (2.0, 2.5, 3.0 + and the ported 2.0 DE, 3.0 DE and 3.0 NL allow a later version with the same elements); CC BY-NC-SA 4.0 when made + from EOX's mosaic; CC BY 4.0 otherwise. Jolpica's race names and dates are single facts and do not set it. The + satellite chain takes one source, so a BY-SA photo and an NC-SA mosaic never meet on one picture; a picture that + would combine them is refused. - In every picture's response: `X-Credits` (the credit line folded to ASCII: ß→ss, æ→ae, ø→o, œ→oe, đ→d, then accents dropped, "©" as "(c)", sources joined with " | "), `X-License`, and `Link: ; rel="license"`; CORS exposes them and the ETag. @@ -168,5 +186,4 @@ else a failure says which address failed and why. The disk tile store (replaced by kept layers); renaming the service away from "F1"; the three layouts whose trace is empty (Mont-Tremblant 1968-1970, Buddh 2011-2013, Yeongam 2010-2013), Bahrain's trace that sits off its real -track, and Donington's, a copy of Aintree's trace (traced separately); the season photos matched to the -operator's curated cars. +track, and Donington's, a copy of Aintree's trace (traced separately).