[docs] Coyhaique: Review, lesson, and the Node gap narrowed

This commit is contained in:
2026-11-17 18:49:28 +01:00
parent 96ac78d079
commit 103283daaa
4 changed files with 68 additions and 2 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ and **how to apply it**.
| `design.md` | none yet | Wording, silence, empty states. |
| [`art.md`](art.md) | 3 | The image pipeline. |
| [`code.md`](code.md) | 3 | TypeScript, Svelte, async ordering, Rust. |
| [`technical.md`](technical.md) | 6 | The browser and the build as platforms. |
| [`technical.md`](technical.md) | 7 | The browser and the build as platforms. |
| [`testing.md`](testing.md) | 10 | What makes a test worth having, and how a passing test lies. |
| `privacy.md` | none yet | What could leave the device or make a person findable. (The geocell finding is in the review, not here: it was caught before it cost anything.) |
| [`process.md`](process.md) | 4 | Workflow, commits, credentials, honesty about what shipped. |
+14
View File
@@ -83,3 +83,17 @@ that was imagined, not the one that was built.
**How to apply it.** Before acting on a predicted trap, write the test that would show it, run it
against the built app, and fix what fails. Then rewrite the trap's row with what was measured.
## Data built against a runtime's time zones goes stale when the runtime changes
**What happened.** On 2026-11-17 Node went from 22.11 to 22.23.4 and a test found a time zone
(America/Coyhaique) with no town guess. Rebuilding the town list then showed far worse: Santiago had
sat on a southern zone's clock since the first build, because Natural Earth files it under
America/Sao_Paulo and the build trusted any zone whose clock matched one of the country's own.
**Why it bit.** A build step that consults `Intl` bakes the runtime's time zone data into a file. An
upgrade changes the answers silently; only a test that asks *every* zone notices, and then the whole
derivation deserves a second look, not just the one zone.
**How to apply it.** After a Node upgrade, run the content tests first. When generated data changes,
diff it item by item (here: every town whose zone moved) and explain each change in the review.