fw-03 step 01 — Tracking, and the precision test
Goal
Stages 1–3 of the spec. Stage 3 is the whole value proposition: an effect that never read b must
not re-run when b changes.
Tasks
reactive(obj)viaProxyget/set traps.effect(fn)— run immediately; maintain a stack of active effects, not a single global.track(target, key)on get;trigger(target, key)on set.ref(value)for primitives; explain why.valueis required.- Precision. Confirm that writing an unread property does not re-run the effect, and that writing the same value does not trigger at all.
Done when
- Stages 1–3 green
- You can state what distinguishes this from "re-run everything on any write"