[docs] TwoTabs: Analysis, review, the trap measured, G1.8 closed
This commit is contained in:
@@ -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