summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-10 09:30:17 -0300
committerGabriel Schneider <[email protected]>2026-11-10 09:30:17 -0300
commit5033138d9e93e05dc961c0f7b93e46208d5df33d (patch)
treef9cbd7d5d997ff5d2b9de0fd64bc40de65febddf
parent0a4583db787b7ef393c5b3f21bc08105949ad790 (diff)
downloadpardes-5033138d9e93e05dc961c0f7b93e46208d5df33d.tar.gz
pardes-5033138d9e93e05dc961c0f7b93e46208d5df33d.zip
docs/next-daemon.md: the remote-bugs log gains fix4, the kinds work's two (a kind's open was the one call into a kind a replica guessed, now authority-only in Kind.reopen; a view's facts read Pane.notices, derived and undumped, so a joiner's kind was told other rows and the join diverged, now Messages.bands from dumped state), and restates the rule they broke
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
-rw-r--r--docs/next-daemon.md33
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