diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/next-daemon.md | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/docs/next-daemon.md b/docs/next-daemon.md index 014118ef..bda6c763 100644 --- a/docs/next-daemon.md +++ b/docs/next-daemon.md @@ -3673,6 +3673,39 @@ relay, a seeded monkey of a person's actions) found the causes; the fixers took them by root cause, each with a test that fails before its fix. Ids are the hunt's (`.scratch/daemon/hunt/findings.md`). +### fix4: a kind's open, and the bands a joiner's kind was told + +Two the kinds work found (2026-11-10, `.scratch/arch/kinds9-report.md`), +both the rule already written above, broken at one site each. + +- **A kind's open was the one call a replica guessed.** Every other call + into a kind (a key, the mouse, an address, a search, a ctl, the tick) is + authority-only (`authorityOnly`): the replica has no kind's code. The + open (`Kind.reopen`) was not, so a replica's guess of a word that opens + a kind's pane with no file (Snake, Life, Fake, by command, Look or + leader) ran with `ops == null` and defaulted its outcome, where the + authority's was the kind's: mispredicted every time. Fix: one line at the + top of `Kind.reopen`, which a Look's open, a revived placeholder and a + kind's reload all pass through. Test at the end of `src/replica.zig`. +- **A view's facts read derived state a joiner had not derived.** + `Kind.viewOf` told a kind its view's body rows minus its bands, read from + `Pane.notices` (the live view) or `Pane.pv[k].notices` (another), both + `derived` in the walk and so never dumped: a client joined from a dump + had them empty until a step recomputed them, its kind was told other + rows than the session's, and the join diverged (`digest 0 differs in + panes pane 1.addon`; sequence: open, second view, resize, a message on + the kind's pane, an input of the second client, join, tick). Fix: + `Messages.collectBands` became the pure `Messages.bands(p, view, pane, + tag_rows, rect, id)` from dumped state alone (the pane's messages and + prompt, the view's leader, rect and tag rows); `viewOf` calls it per + view and `collectNotices` assigns it. Replicating the notices was + rejected: `draw.place` writes `pane.notices` outside a step, a + divergence of its own waiting; it still does, harmless now that no fact + reads it. No wire or digest cost. Test at the end of `src/replica.zig`. +- The rule, restated: a fact told to a kind, or to anything a digest + covers, is derived again from dumped state at the call, never read from + a copy a step or a park left behind. + ### fix3: what the replica stream carried in its build's own words A unit of the replica stream is its session's tape, written by |
