You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8048cf2
Browse filesBrowse the repository at this point in the historyBrowse files
Effects see a store's contents; a caught store read tracks its keys
An effect input that is a store enters whole, as a snapshot (deep), and inputs compare
structurally (EF-2), so an effect on a store reruns when a guess or an answer changes it in
place. `catch` in an equation reads a store's keys inside its boundary, so it follows the
store back from a failure. Found by the round 10 fuzz rerun (r7-chain3-rx-2 seed 27: the
tab count stayed 0 with three rows on screen). Scenarios S-effect-store-1 and -2.
replay.mjs: TAB=1 prints the issues tab label, EFFLOG=1 prints an instrumented effect log.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0117BoWKEv4MghW8Ns9LeUUX
/** `effect (…) { … }`: compute, then apply; an error is an answer the apply receives (E-12); fires on a differing value (EF-2). */
199
+
/** `effect (…) { … }`: compute, then apply; an error is an answer the apply receives (E-12); fires on a differing value (EF-2); a store enters whole, as a snapshot. */
/** `effect (…) { … }`: compute, then apply; an error is an answer the apply receives (E-12); fires on a differing value (EF-2). */
209
+
/** `effect (…) { … }`: compute, then apply; an error is an answer the apply receives (E-12); fires on a differing value (EF-2); a store enters whole, as a snapshot. */
effect: (vals: unknown[])=>{if(last&&last.length===vals.length&&vals.every((v,i)=>Object.is(v,last![i])))return;last=vals;returnapply(vals);},// EF-3: fires when an input changed (an error in between is a change)
308
+
createEffect(()=>inputs.map(e=>{constv=this.ev(e,scope);returnv!==null&&typeofv==="object"&&(vasany)[$TARGET]!==undefined ? deep(v) : v;}),{// a store enters whole, as a snapshot
309
+
effect: (vals: unknown[])=>{if(last&&last.length===vals.length&&vals.every((v,i)=>sameInput(v,last![i])))return;last=vals;returnapply(vals);},// EF-3: fires when an input changed (an error in between is a change)
301
310
error: ()=>{last=null;returnapply(inputs.map(()=>ERR));},// E-12: an error is an answer the apply receives
0 commit comments