[docs] TwoTabs: Analysis, review, the trap measured, G1.8 closed
This commit is contained in:
@@ -11,7 +11,7 @@ and **how to apply it**.
|
||||
| `design.md` | none yet | Wording, silence, empty states. |
|
||||
| [`art.md`](art.md) | 2 | The image pipeline. |
|
||||
| [`code.md`](code.md) | 3 | TypeScript, Svelte, async ordering, Rust. |
|
||||
| [`technical.md`](technical.md) | 5 | The browser and the build as platforms. |
|
||||
| [`technical.md`](technical.md) | 6 | 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. |
|
||||
|
||||
@@ -70,3 +70,16 @@ listening. This machine runs many projects.
|
||||
**How to apply it.** Before starting a preview, check that the port is free
|
||||
(`netstat -ano | grep :<port>`). After it starts, check the page title before you trust
|
||||
anything the page says.
|
||||
|
||||
## A predicted trap can name the right place and the wrong harm
|
||||
|
||||
**What happened.** CLAUDE.md §8 predicted that two tabs would make stored derived state drift and
|
||||
prescribed a lock. On 2026-11-07 two e2e tests, written before any fix, showed the real harm was
|
||||
elsewhere: there was no derived store and the append-only log could not conflict, but each tab's
|
||||
view went stale, so a player could water the rose twice. A lock would have fixed nothing.
|
||||
|
||||
**Why it bit.** A prediction is written before the code exists, so its remedy fits the design
|
||||
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.
|
||||
|
||||
Reference in New Issue
Block a user