summaryrefslogtreecommitdiff
path: root/core/replica.zig
Commit message (Collapse)AuthorAge
...
* | replica: the delta protocol deleted, with the wire's screen messages (the ↵Gabriel Schneider6 days
| | | | | | | | | | | | | | old road's deletion, piece 3 of 8): core/replica.zig loses the screen-state section (the screen message's head, `Screens`: tracks, peers, flush, fill, filled, take), `Peers.screens`/`msgs`/`flushed`/`screensOut`/`screensTo`, the `.screen` note and its arm in `boundary`, `Peers.input`'s flushes and fills, a joiner's `addPeer` and a leaver's `dropPeer`, `Peer.sid` and its `screen_ack` arm, `Replica.screen`/`screenRequest`/`screenMessage`/`overTerminals`, `Replica.screens`/`screen_out`/`ScreenOf`, `Stats.apply_ns`, `Said.screen` (and its arms in dev/tui/tui.zig and dev/gui/gui.zig: a delta no longer counts as an echo there, nor is its latency noted), the Link's `.screen` arm and `drawn`'s row requests, `sendScreen`, and the `screens` argument of `Authority.init` and `Replica.init` (every caller: core/jj.zig 10, core/tape.zig 2, core/echo.zig 2, test/panes.zig 15, test/perf.zig 2, runtime/client.zig 1, test/rollback_bench.zig 1, test/replicas.zig 10, core/replica.zig 98); a replica's own `made` no longer starts on screen state, and `confirm` and `applyPending` keep only their one-road branches; abi/wire.zig retires the replica's `screen_ack` (0x04) and the session's `screen` (0x06) as gaps (the version moves once, in piece 4); test/daemon.py's round trip passes over units alone; the tests that were the old road's alone go: a delta under a speculation, a terminal sized again by a client's key (screen state's deferred size), pardes's own keys over a terminal's history and a delta while they wait, a unit kept over a copy and a delta after it, a step's rows sent as a new client's holes, the screen-state twin of the 9P pty/run test, and the 9P open over a copy taken ahead (on the one road a unit that feeds a terminal lets the copy go: `Term.writes`, so no copy is held across the run's output: its premise was the old road's); the others that ran on screen state now run on the bytes road (a kitty image: the client's emulator has it as the session's does; prompt marks and Kill; the far client's may_wait walk, its click into a focus-reporting shell, its backed-up queue; a view that sized a terminal closing; a closed terminal brought back; a leave's queued resize before a join); FOUND AND FIXED on the way (those tests on the one road failed: the far click `expected 0, found 1` stopped, and may_wait named `Del`, `DelAbove`, `Up`, `C-w a`, `click shell`, `Look` stopped at `pty_write`): a client's own step that moved the focus in a session whose shell asked for focus events wrote the report (CSI I/O) through pty_write, which a speculation stops at (`keeps_stopping`), so the key or click waited a round trip, and the session's write was on the tape; on screen state both were skipped (core/Core.zig `reportFocus` skipped the write only `speculating and screen_state`, core/tape.zig `hostCall` kept pty_write off the tape only under screen state): both now on every road (a user on the flip's build could hit it: a far client's click, pane switch or Del beside vim or tmux waited a round trip); core/root.zig `machine_lines` for replica.zig 76 -> 74 (Authority.init's getenv and a joiner's `addPeer` failure's shutdown gone); core-test 911/1068 (157 skipped: 7 tests gone, each one skipped there for want of a shell), shell-test 1110/1113 (the 7 gone) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | terminals: every client's terminals by the pty's bytes, the one road (the ↵Gabriel Schneider6 days
| | | | | | | | | | | | | | user's ruling of 2026-11-22: "just start the structural fix"): a session's units carry its ptys' bytes and each client feeds its own emulator in the tape's order (`Peers.bytes`, set by runtime/session.zig unless PARDES_TERM_SCREEN, a working name for the way back until screen state's road is deleted), and the welcome says the road (wire 29: one byte before `blobs`; test/daemon.py `WIRE`), which a client loads its dump on BEFORE its digest check (`fromDump`, join's and confirmBoot's one load, written twice before, and `road`): the pair's switch (`zwrkukrx`, duplicated here) checked a client's dump on screen state and turned it after, so under bytes every `pardes --attach` to a session with a terminal was refused as "loaded as another session" (daemon.py:544 client C, a far client's first frame never drawn); the pair's own boot takes the road from its environment (its session is its child) and the welcome confirms it; the predicted echo stays on the one road: echo.zig's overlay was already drawn over the frame, only its arming (gated on screen state) and its retirement (a delta's version) were the old road's: armed whenever a replica has an echo, retired at each confirmed unit that fed a terminal (`Echo.fed`, the grid's active top), echo.zig's tests run on the bytes road (17/17 under the filter); the pump-lag test (a session's own step reading a terminal right after its output, in one pump, through `Peers`) passes here: there is no flush to be behind; test/process.zig and test/daemon.py keep PARDES_TERM_SCREEN (`KEEP`) for the way back's row; measured against screen state (reports/pardes-term-join-7.md, its table): typing at a far prompt 16 KB against 22 KB, a full-screen program 80 KB against 103 KB, a 1 MiB `cat` through 1 Mbit 607 KB and 5.2 s with one 2.2 s rejoin against 27 KB and 0.4 s, the echo predicted on both (10 ms at 200 ms RTT, 222 ms unpredicted); gated: core-test 904/1068, shell-test 1110/1113, term-test 19/19, process-test 0 of 145 and as pairs 0 of 145, the bytes soak 3 of 3 clean, daemon.py every mode on Debug and ReleaseSafe (--restore the base's), --upgrade from the installed build 3 of 3 and between the two builds both ways, --far whole 7 of 7 on ReleaseSafe, the frame and perf gate against tree3 PASS (77/77, corpus2x -0.053%, 121 counts within 0.1%, client cells within +0.045%), the cross-builds Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| |
| \
| \
| \
*---. \ integration: the install's tree: four lines gathered on pardes-merge53: ↵Gabriel Schneider6 days
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | | | | | | | | | pardes-image-loop (`zmlvktus`, on pardes-merge53: a terminal showing a kitty image no longer parts a screen-state client from its session: whether a terminal shows images is the session's fact, taped (`Pane.term_images`, `Site.images`), and the tag reads it: the wire at 28), pardes-pair-8 (`qpyluuxx` on `unvntksw`, on pardes-pair-7: a client presents a frame only when a replayed step asked for one, as the session's own frontend draws; the client window's test mode), pardes-layers-4 (`slzpmpuz` on `omkuvwmk` on `wuwlmwzr`, on pardes-layers-3: `Changes` runs jj on a worker and its answer lands as one input: the loop held 2.5 ms where it was 600; the lanes follow the pane's text through unsaved lines, edits and undo; a client's key back inside the budget with `Changes` off) and pardes-term-join-6 (`llosvxxm` on `rstrvvur`, on pardes-term-join-5: a terminal's view is its row again after every reflow, so a rollback's put-back by row is exact: the bytes road's one-row parting); no conflict; core-test 904/1067 (163 skipped), shell-test 1109/1112; its gate: .scratch/sketch/reorg/merge54, the numbers in PARDES.md (2026-11-21) Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | | * tests: a screen-state client's reads of a terminal's prompt marks are the ↵Gabriel Schneider6 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | session's in its own input's step: core/replica.zig "a command typed into a shell with prompt marks under screen state: every side notes it as the session's emulator numbers it, and Kill finds it" (pardes's bash marks, one command run, an `Exec sleep 9` typed at the prompt: `sent_command.seq` 2 on both sides, then its C mark and a Kill: every field agrees), the audit's one doubt settled by a run: the OSC 133 cycle crosses with every delta (core/term/terminal.zig `marksOf`/`takeMarks`), so exec.zig's `noteCommand` and Kill read the session's; what still parts is a step of the session's own after the same pump's output (the pump-lag class, the client replaying it over the last flush: a test of it is kept out of the tree, failing, in the report); passes on the base and with the fix Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | | * tests: a plain client watching a kitty image in a terminal under screen ↵Gabriel Schneider6 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | state joins again for ever, caught twice: core/replica.zig "a terminal's program shows a kitty image under screen state: the client's emulator never has it, and its tag says what the session's does" (an Authority and a Replica, the image fed in the session's order, a step after: the digests part in pane 0.tag, pane 0.tag_lead and pane 1.cwd, the last an inherited cwd that walks to the terminal's pane; `partsApart` names them) and test/daemon.py `kitty_image` (plain mode's list, alone `--kitty-image`: a detached session, a plain attach, the corpus scene 10's 8x8 RGB image printed in its shell, the client's joins counted over 5 s, 0 expected: on this base's Debug build 16 joins, 16 of 16 checks differ; on the installed build (6d937cd125ca) the same 16, 3.2 a second, session 20-30 ms and client 50-70 ms of CPU, 80 KB to the client's terminal); shell-test 1100/1104 with this test the one failure, core-test 898/1059 (161 skipped: it needs a shell) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | | * integration: `Changes` and its lanes on the gathered line: pardes-merge52 ↵Gabriel Schneider6 days
| | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (`pnmtmksv`: plain mode fixed, the narrow view rule, the soak's own faults) and pardes-layers-3 (`xzmopyqr` on `pvtvmpzx`, on pardes-merge50: `Changes [revset]` pins a revset's changes on a file's pane: a lane a change after the line number, nested ones a level to the right on their rows only, a line added whole green across; with it off nothing is paid: the revset and jj's answers are the session's, a view holds one bit (P45): the 121 counts within 0.1%); no conflict; core-test 898/1058 (160 skipped), shell-test 1100/1103; its gate: .scratch/sketch/reorg/merge53, the numbers in PARDES.md (2026-11-21) Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | | | \
| | | | \
| | | *-. \ integration: plain mode fixed, the narrow view rule and the soak's own ↵Gabriel Schneider6 days
| | | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | faults on the gathered line: pardes-merge51 (`qqosnzwv`: the gate's three rows and the pair's round 6), pardes-pair-7 (`sxkkxomp`, on pardes-pair-6: a terminal's deltas are flushed to a client at its acknowledgement or reset: at the bound of 32 unacknowledged versions an acknowledgement freed room and sent nothing, so a client with no later step kept its old screen; the joiner takes the session's view only for a pair's first join or the first back after a Restore, a detached session's attach opens a view of its own as before; daemon.py's far waits for a refused client's words) and pardes-term-join-5 (`luxwtxlw` on `ozkpuuro`, on pardes-merge48: replica.may_wait lists a far client's Look of a directory and its walk stands in a directory's pane; the soak names a divergence's field at the mismatch only, says a session that ended before its run, and its typists end no session); one textual conflict, core/replica.zig Peers.join: the rows' clock advance at the cap, then the pair's narrow `own` and `ps.restored = false`: both kept; core-test 895/1055 (160 skipped), shell-test 1097/1100; its gate: .scratch/sketch/reorg/merge52, the numbers in PARDES.md (2026-11-21) Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | | * \ \ \ integration: the gate's three rows and the pair's round 6 on the gathered ↵Gabriel Schneider6 days
| | | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | line: pardes-rows (`xlmzqnnp`, on pardes-merge50: a view kept for a client's rejoin is let go after its 30 s in a session nobody types in: a join with every view open advances the clock on the tape before it judges, and its refusal says one is kept and for how long; the adopted shell's and the upgrade rows' tests wait for what they read) and pardes-pair-6 (`slxkptto`, on pardes-merge50: a pair's first client, and the first client of any session with no frontend, no client and no view kept, takes the session's view instead of one opened beside it; a size equal to the one held is no resize; a Restore tells its clients and they join again; a pair's client enters its terminal before its join: the process suite as pairs 1, 0, 0 of 145 with no golden changed); one textual conflict, core/replica.zig Peers.join: the rows' clock advance at the cap first, then the pair's `own` and viewFor(core, joining.view, own): both kept; core-test 894/1054 (160 skipped), shell-test 1096/1099; its gate: .scratch/sketch/reorg/merge51, the numbers in PARDES.md (2026-11-21) Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | | * | | | | replica: a view kept for a client's rejoin is let go after its 30 s in a ↵Gabriel Schneider6 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | session nobody types in, and a join refused meanwhile is told for how long: a wake by mail alone (a join, a client's input) moves no time (tui.zig `clockNow`), so in an idle session with a client in it the core's clock stood where it last moved and Core.openView judged the kept views by it forever (test/daemon.py `kept_views`, new, in plain mode: at the four views, two raw replicas leave saying they join again, and a join 31 s later, nothing typed, was refused on pardes-merge50); Peers.join now moves the clock (`advance` with the host's `now`, on the tape) when no view is free, before the views are judged, and its refusal says "(one is kept N s more for a client joining again)" while one is kept; test/daemon.py `upgrades`, from a build that keeps views with their time (`keeps_views`: `away_ns` in its binary), waits as long as the first join's refusal says, saying so, for the two views kept for clients that never return (the raw replica and the old build's client, refused by the daemon for its build); kept_views passes; `--upgrade` between this tree's Debug and ReleaseSafe builds 3 of 3 each way (each says "the join waited 30 s"), from the installed build 3 of 3 (it keeps no time: its views load already expired); the soak (--clients 5) diverged 0, unequal 0; core-test 893/1053 (160 skipped), shell-test 1095/1098 Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | * | | | | | terminals' views: the bytes soak's divergence (a client's terminal view one ↵Gabriel Schneider6 days
| | | |_|_|/ / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | row above the session's, at its history's top, 5 whole runs of 29 in round 5) fails on purpose, without a soak, in two tests: at the terminal module, a view on a wrapped line's second row, joined into the row above by a widening (ghostty's view is a pinned CELL, now mid-row at row 0) and put back at the row it reports (`viewTo(grid.view)`, as a replica's rollback puts views back, replica.zig `putViews`: at row 0 that is ghostty's `.top`) is another view after the narrowing back (expected 1, found 0: the soak's sign); at the replica's surface (an Authority and a Replica, bytes), the session's frontend widens the shell with its view there, a key of the client's is rolled back under the session's (the copy put back, `putViews`), the session narrows again: the digests part on the terminal's view (17455102819691583991 against 7777253998216201365); found by a probe ring of pane 0's view at every engine step in the soak's clients against the witness (b7b-4: put back to row 0, then the next reflow moved the witness's view and not the client's) and a fuzz of put-back against left-alone terminals under random output, reflows and scrolls (5 apart in 191 seeds); both fail on this change, the next one fixes them Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | * | | | | replica.may_wait: a directory's pane walked and listed: the screen-state ↵Gabriel Schneider6 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | soak's 'client 5's input key stopped at dir_listing, which may_wait does not list' (s5-1, seed 1 at 207 ms) was a far client's own step listing a directory (Dir.zig's tape.site(.dir_listing), from a Look of a directory or Get on one), which no row listed because the walk never stood in a directory's pane; FIRST the walk: On.dir, a directory's pane made by Look <cwd>/ on the authority and walked as the others (every word, key, prefix and gesture): 18 inputs stopped unlisted (Enter and Tab, alone and after each prefix); then the rows, right by P14 (the session's disk): Get -> dir_listing, Enter and * Enter -> resolve, Tab and * Tab -> kind; the walk test passes (11/11 under its filter); a user's far client typing those in a directory's pane waited, as it should, but the soak called it a fault Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * | | | | | layers: `Changes` does not hold the loop (P43), in Stream.zig's model: the ↵Gabriel Schneider6 days
| | |_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | word records what is asked (`jj.Ask`: the pane by serial, the file, the revision annotated, the revset; `Stream.changes`, one at a time, one asked meanwhile in `changes_next`) and emits the `search` effect with a generation of its own (`jj.gen_bit`); the shell's worker (`jj.start`, through Stream.start) runs jj's two commands (the log with each change's diff of the file, the annotation) and posts their raw answers as ONE input (`Event.search`, its new `jj` field naming the pane: the log in `rows`, the annotation in `styles`, a refusal with `end` failed), which the step takes (`jj.receive`): the last asked is parsed (`jj.parse`: pins, provenance, hunks, nest) and pinned, an earlier one's or a closed pane's dropped, then the one asked meanwhile goes; a replica replays that input and never runs jj; a host with no workers (a test) runs both as sites on the loop, a host whose worker cannot start hands the answer in as an input; while it runs the pane says `Changes: jj…` and what it showed stays until the answer lands; round 3's `may_wait` row for `Changes` is gone (the far-client walk: nothing stops there now); tests through the replica's surface with a worker host: the word returns before jj answers and says so, the answer lands as one input and a client replaying it ends equal; a second Changes before the first's answer pins only the second's; the pane closed before the answer: nothing pinned, nothing kept (no leak); measured (ReleaseSafe, `Changes xpxluunz..pvtvmpzx` on core/replica.zig, 16 changes, 8,328 lines, 112 hunks, jj's answers taken by hand): the step that takes the answer holds the loop 2.3-2.8 ms, where the word held it 588-603 ms (jj's two runs, 253 and 349 ms here, are the worker's now); core-test 899/1059 (160 skipped), shell-test 1101/1104 (3 skipped) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * | | | | layers: `Changes [revset]` pins a revset's changes on a file's pane in this ↵Gabriel Schneider6 days
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | view (bare `@`, bare again off, another replaces; refusals in jj's words) and draws them: what jj says is asked in two recorded answers (Site.jj), `jj log -p --git --context=0` restricted to the file (the pins: id, author, time, the description's first line, and each one's diff, read with diff.zig's walk into hunks and the removed lines' text) and `jj file annotate` at the shown revision (which pin wrote each line), kept as flat arrays in the pane (Pane.changes: replicated, a late joiner has them in the dump, a client never runs jj) and worn by the view whose revset is File.Layers.revset; a pin's lane runs unbroken from a line it wrote to the next while every line between is a newer pin's, so lanes nest, the spine keeping its place and a nested change a level to the right on its rows only, three levels in a gutter the lanes widen (a window two cells, strips of a third of a cell with half that of air: Surface.lanes, drawn by the gui; a terminal three, a `▎` a level), coloured by the theme's accents but its green and red in hue order from the top, one within 15 degrees of the last kept skipped (doom one: magenta, blue, yellow), oldest first; a line a pin added whole (in a run it took away and wrote, past as many as it took away) is green across the line as a diff's added line; with Changes off nothing is drawn and the gutter is as it was; tests: the data through the pane (pins, lines, hunks, removed text, unpin, `@` touching nothing, a refusal), a client replaying it ends equal, the lanes and grounds of a three-deep stack in a terminal's cells and a window's strips; core-test 895/1055 (160 skipped), shell-test 1097/1100 Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | | | | replica: a client presents a frame only when a unit's steps asked for one, ↵Gabriel Schneider6 days
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | as the session's own frontend draws (Pardes.pump returns idle while `!needs_frame`), not whenever a unit moved the session's digest: "Pet cat" written to /ctl is two units (the write and the close), each moved the digest, and a client window drew the pet twice (the corpus's frames 45 and 46 one picture, every later frame shifted by one); `Replica.confirm` marks `moved` when the replayed unit left `needs_frame` set, read AFTER `tape.replayUnit` (before it, it is what the units before asked, and a replica's first unit has no core yet: `Replica.init` crashed on a null core), and `Replica.draw` clears `needs_frame` for a client's replica (`skips_render`: its replay is never watched, so never clears it, and replays nothing that reads it) while an in-process replica (the tests', test/perf.zig's client cells) keeps it as its replay of its session's own drawing left it (cleared, that replay skipped a host call its tape has: "diverged: the core did not make the host call 5"); a user's client no longer presents a frame for a unit that asked none (a ctl write's close, a clock read): CPU only, no picture changes; test: "a client marks its view moved for a unit of the session's whose steps asked for a frame, and not for one whose steps asked none" (a client joined as a dial joins: the session's key marks it, its pump with nothing to step does not; failed with the line before the replay, crashed as pair-7 left it); core-test 896/1056 (160 skipped), shell-test 1098/1101 (3 skipped) (+1 each); the screen-state soak `--clients 5` diverged 0, unequal 0 at 30/80/207 ms, quiet checks 510/0, 469/0, 545/0, unlisted 0, the corpus scene 22 of 22, no leak; daemon.py on Debug plain 3 of 3, --clients 3 of 3, --games (snake and life in two clients, keys stopped 0 of 153 and 0 of 152) (loads 4-8); the frame and perf gate against tree3 (gpu/pair8-g1): 77/77 frames byte-identical, gui unit-test 1695/1699, perfab corpus2x +0.087% (noise 0.072%), 121 counts within 0.1% (largest client-key-down on large +0.0705%); the corpus through a client window as a pair: frames 0-49 byte-identical to tree3's (the pet one frame), where the scene with a kitty image stops a screen-state client (the terminals' line's) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | | | replica: daemon.py plain from 2 of 3 failing on Debug ("the first terminal ↵Gabriel Schneider6 days
| |_|/ |/| | | | | | | | | | | | | | | | | drawn", the first of two attach clients never shown the shell's last line) to 10 of 10: a client's acknowledgement of a terminal's delta is followed by a flush to it (core/replica.zig `Peers.boundary`, the `.screen` arm: the boundary flushed at its unit and then took the clients' notes, so room an acknowledgement freed in a client's flight, 32 versions at most, sent nothing, and a client at that bound when the last output came kept an old screen until something else stepped; a user could hit it: the last lines of a fast output left unshown on a slow client); and the joiner takes the session's view only for a pair's first join (`Joining.own`) or the first back after a Restore (`Peers.restored`, set by `restoring`; the restored core has the one view), a detached session's attach opening a view of its own again as before `slxkptto` (the coordinator's lean: the wider rule was NOT (A)'s cause, which failed with the narrow rule alone 2 of 3); test/daemon.py `far` waits for the refusal's words through ssh instead of reading the Term the moment the client is gone; core-test 895/1055 (160 skipped), shell-test 1097/1100 (3 skipped) (+1 each: "a detached session's first attach opens a view of its own beside the session's; the first back after a Restore takes the session's"); process-test as a pair 0 of 145 (load 13), own path 0 of 145; plain on Debug 10 of 10 (loads 3-6), on ReleaseSafe 4 of 6, both failures answer_late's adopted `echo $$`, which pardes-rows' `adopted_pid` (ymvuluxr, not in this base) fixes Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | | pair: the process suite as pairs from 8 of 145 failing to 0, no golden ↵Gabriel Schneider6 days
|/ / | | | | | | | | | | | | changed: a pair's first client takes the session's view instead of one opened beside it (core/replica.zig `Peers.viewFor` `own`, daemon.zig `Joining.own`, `Replica.initBoot` alike so the digests agree), as does a joiner of any session with no frontend, no client and no view kept for one (after a Restore's `views.only`, or detached since): the boot's terminals were sized by the session's own view 0, which nobody looks at, so a client's layout never resized them (`Pardes.sizes`): the `↑` pans and the pane a row off of shrinktag, windowops, layout-close, topbarexec, headersweep-restored; a size already taken is no resize (dev/tui/tui.zig `Shell.resized`: a client's start and its input thread's first size were two `.resize` events, `resizes=2`); a Restore tells its clients so and they join again saying nothing (`Peers.restoring`, `restore_words`, `Link.rejoins`: they were cut with no word and asked the daemon, which once in two answered nothing listed and the client ended, and when they rejoined they said "upgrading"), a client handed over while it restores joins the restored core at the next boundary (it was hung up on, and its redial's 100 ms showed the old screen), and the dump's messages are not put on the clock while they rejoin (runtime/session.zig `restore`: the "Dump" chip went); a pair's client enters its terminal before its own boot (tui.zig `runClient`: keys typed while it booted went into a cooked terminal, echoed as ^B and lost; winch as a pair pinned to one CPU 0 of 5, now 5 of 5; the own path takes them); the tty cases' private daemon and their pair's session are killed at the case's end (test/tty.zig `Tty.deinit`: 21 of them outlived this morning's runs); core-test 894/1054 (160 skipped), shell-test 1096/1099 (3 skipped) (+1 each, the Restore's test; firstOnPair now expects no reload at a pair's first join); PARDES_PAIR=1 process-test 1, 0, 0 of 145 (pagercolor once at load 12.9, on the known list; runs 2 and 3 with no case failing even once), own path 0 of 145, winch alone as a pair 20 of 20; daemon.py plain, --pair, --attach-upgrading pass on Debug and ReleaseSafe Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | client: an Upgrade from the installed build (main 6d937cd125ca) to this one, ↵Gabriel Schneider6 days
| | | | | | | | | | | | | | the coordinator's release stage: a window exec'd at an Upgrade takes its size from PARDES_JOIN_SIZE (runtime/client.zig `execAgain`; dev/gui/gui.zig where `--geometry` is read), a string a test finds in the binary as PARDES_JOIN_VIEW is: test/daemon.py `knows_size`, and `pair_window_geometry` skips with a line said when the old window cannot pass its size (the installed build's: by design, its exec is the old client's); a far link cut with no last word dials again too (`replica.cutListed(why, session, far)`: the dial is the asking, the far daemon's "no session called" ends it), as near ones do since item 0: from the installed build `far_exec` lost its client before (2 of 6 runs) and still does once in five (the old far client is the installed build's code); a far client whose ssh link drops now dials again for up to 20 s before it says so Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | client: a link an Upgrade's exec cuts with no last word joins again: ↵Gabriel Schneider7 days
|/ | | | | | | `Peers.refuseAll` queues each client's `refused` after what it is still being sent and gives the writers 200 ms (`flushed200`), then `drop` cuts every link, so a client whose join's dump was still on its way read the cut as its session's end and exited 1 ("'NAME' let this client go"), with PARDES_PAIR or without (a `new --detach` session holding a 100 MB file, the Upgrade written as the attach is listed: 3 of 3 on main's ReleaseSafe build, 3 of 3 Debug); now a near link that ends with no last word asks this machine's daemon whether its session is listed still (`replica.cutListed`), and listed, joins again as one told `upgrading` (runtime/client.zig `Loop.run`; a first join cut mid-dump likewise, `replica.join`), so no flush bound decides a client's fate; a patient redial stops at once at "no session called" (`redial`: a session killed outright costs no 20 s of dialling); a far client and a no-daemon pair ask nobody (nothing changes); test/daemon.py `attach_upgrading` gains the round (two attaches to a 100 MB session, the Upgrade written as each joins; plain mode and --attach-upgrading): failed on merge48's builds, passes on both builds; tui core-test 885/1045 (160 skipped) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* integration: the pair's finished steps on the gathered line: pardes-pair-4 ↵Gabriel Schneider7 days
|\ | | | | | | | | | | | | (`rustnvoo`: an attach handed to a session as it upgrades is told so and joins the new process; the fast start, the boot as input zero: the wire at 27; a window client exec'd at an Upgrade comes back the size it was) and pardes-merge47 (`rprvwpnv`: the terminals' line at 26 and the library for a browser reader); three textual conflicts: abi/wire.zig's history says 27 and 26 each in its own words and the version is 27, test/daemon.py's WIRE is 27, core/replica.zig's Link keeps both lines' fields (the lag bound's `behind`, `least`, `fresh`, `lagged`; the pair's `held`); core-test 885/1045 (160 skipped), shell-test 1087/1090; its gate: .scratch/sketch/reorg/merge48, the numbers in PARDES.md (2026-11-21) Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * integration: the pair's fast start on the landed main: pardes-pair-start ↵Gabriel Schneider7 days
| |\ | | | | | | | | | | | | | | | | | | (`xrkvvkkk`, the boot as input zero: the client makes its own core and says its digest, `boot`; the session's dump only when they differ) merged over main (merges 40 to 44: the typed slot fields, the 9P state in the join's dump and digest) and step 1 of pardes-pair-4; three conflicts, none by the compiler: abi/wire.zig's history and version (main 25, the boot 26: now 27, as 26 is the terminals' line's, merging now), Peers.join's welcome (main's typed `peer.view` with the boot's `peer.digest = digest` before it), `replica.join`'s first dial (the boot took the pair's arm out, step 1 put the upgrading redial in: both kept), test/daemon.py WIRE 27; tui core-test 878/1036 (158 skipped), shell-test 1078/1081 Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | * pair: the boot as input zero (the last step's design 3, way a2): under ↵Gabriel Schneider7 days
| | | | | | | | | | | | | | | | | | | | | PARDES_PAIR the client no longer waits for its session's init, dump and socket before its first frame: it makes its own core from the same options and arguments (replica.ownBoot, Replica.initBoot: Pardes.init on no tape, as the session's start, its file read on its own machine, then the view the session's join opens for it, Peers.viewFor, shared by both), draws it, and says its digest before its `far` (a new client word, `boot`, 0x0a: 0x09 is the server's zstd envelope, which a stream's reader unpacks whichever way it runs; wire protocol 26, after the other line's 25); the session's writer sends no dump when the joiner's boot digest is its own at the join, and the client, reading the welcome once its first frame is drawn (replica.confirmBoot, client.zig `confirm`, the start's inputs held until then: Link.held, Link.release), goes on from its own core, or, unequal (the file edited between the two reads, anything else a start reads otherwise), loads the dump in its place and starts again; what made boots unequal by construction, found by the digest's parts compared in a scratch build: a join's view settled the session's first effects (Pardes.settle in openView: its boot shell spawned and acknowledged inside the join), which a client cannot perform; the effects queued before a join are now performed after it, on the tape the client is sent (viewFor, queueFirst), so the boot shell's spawn and first bytes reach the client as units, as P32 asked, and the dump path gets them so too; and a boot stepped on the replica's own tape read the machine as a replica's step would (the shell, the directory): Pardes.init runs on no tape, the view on the replica's tape (no terminal reloaded there, as on the session's screen-state tape); confirmed over 100 starts of a file and 100 of a shell (see the report); a boot's terminals are made on the C heap (panes.emulatorGpa reads dump.terminal_gpa); a window's pair's client boots unwindowed, as the terminal binary its session execs (main.zig `pair`, Options.windowed); tests: core/replica.zig "a pair's client makes its own core ...: no dump is sent" and "... the file edited between ...: the dump is sent, loaded in its place, and the client shows the session's file", and firstOnPair's screen-state client now its own boot, confirmed with no dump, the boot shell's spawn and first bytes after, digests equal, no reload; the start (ReleaseFast, medium.zig, one build alternated, NOT quiet: loads 8-16): the pair's first frame best 9.5 ms against the own path's 9.9 (median 10.2 against 11.4), the client 45.0-53.8M instructions:u (the bar 56.7M), its session 17.2-17.6M beside it, the own path 53.5M bit-equal to the base's; confirmed 100 of 100 starts of a file and 100 of 100 of a shell, a window pair 17 of 17; tui core-test 863/1018 (155 skipped), shell-test 1060/1063, term 17/17, pane 183/184, kitty 45/45, behaviour-test and --replay 275/275, process-test 0 of 144 failed, as a pair (PARDES_PAIR=1) 16 of 144 failed (the base 17), both soaks diverged 0, unequal 0, checked/wrong 0, unlisted 0, corpus 22 of 22, no leak, daemon.py plain, --far, --pair, --relink, --launch, --games, --window-clients, --gui, --upgrade both ways (new->old failed once on a client's key under load, then passed twice) pass, an idle pair 0 and 0 wakeups in 2 s, gui unit-test 1656/1660 with only BaselineHarnessMismatch, the frame and perf gate against tree2 PASS (77/77 frames, corpus2x -0.008%, 121 per-operation counts within 0.1%), macOS lib (Linux host), aarch64-macos and FreeBSD build (loads 5-23) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * | replica: an attach handed to a session as it upgrades is told so and joins ↵Gabriel Schneider7 days
| | | | | | | | | | | | | | | | | | | | | the new process, never cut unanswered by the exec: `Peers.refuseAll` returned at once when no client was joined, and with clients its `drop` closed the connections queued in `Peers.inbox` without a word, and a hand-over posted after it was closed by the exec (MSG_CMSG_CLOEXEC), so `pardes attach NAME` started as NAME upgraded said "the session hung up before the dump was whole" and exited 1, with PARDES_PAIR or without (exp2: a `new --detach` session, no variable, ReleaseSafe main: 2 of 20 attaches at 0 ms); now refuseAll tells each queued connection what it tells its clients (`replica.upgrading`, "the session is upgrading to another build of pardes", the words tui and gui passed), `Peers.upgrading` makes `post` tell a later hand-over the same at once (reset at the next boundary: the exec failed), and a first join told so dials again patiently (`join` -> `redial`, its view optional); the pair row that failed on the release build only (daemon.py --pair, `ended_by(how, *attached('rows'))`, the coordinator's landing check) was this race, reached through the test: its `upgraded()` waited for `--upgraded=` in the session's command line, which a second Upgrade's old process already had, so it attached to the old process; found under strace (the daemon handed the attach, then took the session's `upgrade`, then exec'd); the release build and the test's long runtime path only moved the timing; `upgraded()` now waits for the session's 9P socket made anew; tests: core/replica.zig "an Upgrade tells a client handed to the session and not joined yet that it is upgrading ..." (main: both hand-overs still queued, never told), test/daemon.py `attach_upgrading` (plain, --pair, --attach-upgrading: an attach started 0-25 ms after the Upgrade's word, without the variable and with it: main's release build failed its first round) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | | integration: the terminals' side line on the landed main: pardes-term-join-4 ↵Gabriel Schneider7 days
|\ \ \ | |/ / |/| | | | | | | | | | | | | | (terminals by the pty's bytes: a client's emulator fed the session's bytes, reload at a join, the lag bound; the query rows' paint decided on replicated state; views.park's leak; a view kept for its client's rejoin; C and Alt-C on a long text walking on from the row last tried: 306 G instructions to 194 M; the soak's witness and watchdog) and main (pardes-new-upgrade); seven conflicts: the wire's version (the side line's 24 is 26 here: 24 is the bye's close byte, 25 the 9P state), Peers' join (the view typed, the lag limit a field's default), a peer's end (the view's index; cut joins again), the client's and the soak's bye (the struct, again or lagged), daemon.py's WIRE; three more the compiler found (a test's view typed: its index where a u8 is asked) Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * | Query rows: what a step asks a worker to paint no longer hangs on the ↵Gabriel Schneider7 days
| | | | | | | | | | | | colours this process happens to have: the bytes soak's 'the core called search where the tape has a host' (g6, seed 5 at 80 ms, the witness parting at the session's own step) was a query row's colours read by the step that decides whether to ask a worker for its file's paint (Stream.paintRows, an effect on the tape): Query.writePlacesRows (Query.zig:1073) took a `/` row's colours from the owner's frame paint (File.highlights, painted by refreshHighlights, derived) and only a row left plain went to Shades.of, which asked; Shades.of asked only on a miss in the locations cache (derived: a dump carries none, so a client joined since has none); recolor asked only for rows whose colours were still zeros (derived); so a session that had drawn its owner, or had the file's colours from an earlier paint, asked nothing where a replica that never draws, or a client joined since, asked a worker (and its stream.rows_count, rows_paint, rows_asked, rows_asked_at moved on one side only: the four fields the witness named); FIRST the tests (core/replica.zig, a session whose host paints on workers): 'a client joined from a dump asks a worker for a `/` query's colours as the session does, though only the session has drawn its owner' and '... though only the session has them from an earlier paint', both on the base 'diverged: the core called search where the tape has a done (0)'; then the fix: Shades asks for every file its rows show (Shades.file at every row, whatever colours it has; Shades.done at the file's end and each walk's), paintRows decides on replicated state alone (the row ring, the pending paint, the pane's text), its key the path's hash (a file is painted once between two Greps, not again at each revision of an open text, which a frame paints where it is seen); a row's colours still come from the frame's paint and the cache, out of the rows' digest as before; root.zig's kept_out lines for highlights and locations_cache say so
| * | may_wait: Fonts in a window's view of a terminal's build: the soak's 'client ↵Gabriel Schneider7 days
| | | | | | | | | | | | | | | | | | | | | 2's input key stopped at fonts' was a window client (the soak's even clients are windows) of the tui build's session whose key ran Fonts (the key logged is Enter, a word taken under the cursor; the leader's SPC t f runs it too, config.zig, set wherever builtins.capabilities.font_picker, true on every desktop build: a window's view of a terminal's session has the window's words), whose list is the session's machine's fonts (Output.openFonts, tape site fonts): a far client may wait for it, as the window's build already lists; may_wait listed it only where pardes.platform == .gui; now Fonts where the build has the word (capabilities.font_picker) and Font <name> where its site is reachable (pardes.font_picker: exec.zig's Font is a window build's alone); FIRST the test: the walk of every word, on a terminal's build, walks the words again in a window's view (on the base: 'Fonts on file stopped at fonts', 1 unlisted); then the rows: shell-test's walk 12/12 (with Font gated as Fonts it said the row Font * stale: its gate is its site's) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * | join: a join refused for want of a view reloads nothing: openViewInner ↵Gabriel Schneider7 days
| | | | | | | | | | | | | | | | | | | | | reloaded every written terminal on every side before Views.open said no (core/Core.zig), a step of a megabyte's snapshot a terminal for nothing a session refuses 550-630 times a soak run; the view now taken first, the reloads after; FIRST the test (core/replica.zig, the earlier one turned round: every view taken, a key of the client's on top, a fifth client refused, the pump's unit, the key confirmed, more output: no reload on any side, the client the session's): on the base expected 2, found 3 (the refused join reloaded); with the change shell-test -Dtest-filter='bytes: a join' 13/13 Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * | integration (the terminals' line, NOT the main line yet): a client that ↵Gabriel Schneider7 days
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | falls behind lets go and joins again, a join's reloads never dropped and only of the terminals written, on the first client and the pair: pardes-term-join (with pardes-term-lag under it) and pardes-merge35; three conflicts, each two sides adding at one place: the tests at the end of core/replica.zig (both kept), the soak's fields and its end's checks in test/replicas.zig (the images' and the far client's both kept); one name follows: Peer.writeLoop's local for a cut link was named last, which the first client's Peer.last now is (cut_off); tui core-test 861/1018 (157 skipped), shell-test 1058/1061, term-test 18/18, the window builds; the soak, screen state: diverged 0, unequal 0, unlisted 0; BYTES: seed 0 at 30 ms two clients diverged (client 2 at digest 29, client 3 at digest 2): the divergence the join's report left open, here on the merged session: this line stays beside the main one until that soak is clean Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | * | term: a join reloads only the terminals written since their last reload ↵Gabriel Schneider7 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | (step 3's way 1): `Term.State.written` (a feed, a reflow, a load, a revive; cleared by a reload), the session's choice taped before each terminal's hash at the `reload` site (`tape.value`), each replica reloading exactly those and comparing each hash as before; exact: one written by nothing since holds the pages its last reload's snapshot loads to on every side, and the joiner loads that snapshot again; FIRST the test (two terminals, both reloaded at a join, the shell alone written since: the next join reloads it alone on the session (1, the base 2) and on the replica, then 40,000 lines into both until each prunes its history: the replica and the joiner hold the session's snapshot bytes and digest, and a join after agrees); ReleaseFast, bytes, 2 seeds at 80 ms (load 8-18): the flooding shell alone, a join's unit on a client already there 9.9 ms p50, 13.6 ms at worst, the session's join step 1.4/14.8 ms (step 3's report: 9.6/17.7 and 1.4/14.3); with four idle shells each a full scrollback beside it (the soak patched for the measure, not landed): reloads 2,910 -> 659, the client's join unit 58.7 -> 20.3 ms p50 and 219 -> 122 ms at worst, the session's step 86.0 -> 38.2 ms p50 and 211 -> 106 at worst (the first join still reloads all); the soak, bytes, `--clients 5 --bytes --seeds 8` at 30/80/207 ms with the `cat` whole (Debug, load 25-44): 2 of 4 whole runs clean (diverged 0, unequal 0, quiet checks agreed, unlisted 0, corpus 22 of 22, no leak); in the other two, seed 2 at 80 ms (two clients at one session unit) and seed 0 at 30 ms (one client): OPEN, not root-caused (reports/pardes-term-join.md), never under a probe; seed 0 at 30 ms, 19 of 20 clean, one run hung spinning (killed, no trace); on the base seed 0 at 30 ms diverged every time and 9 of 24 runs; tui core-test 859/1011 (152 skipped), shell-test 1047/1050 Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | * | replica: a join's reloads are never taken as moving nothing (the one rule, ↵Gabriel Schneider7 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | which `tape.feedsTerminal` kept for a pty's output alone): a join refused for want of a view still reloads every terminal on every side (Core.zig `openViewInner`: `reloadTerminals` before `Views.open` returns null) and moves nothing a digest covers, so a near client with a key of its own on top took that unit as neutral (`confirm`, the same digest and no pty output: kept in `since`, not replayed), its key's fast path then left nothing on top, and the next output unit let the copy go and dropped `since` (`ahead`): that client never made the reload, held other pages than every other side, and once the flood pruned its history a page at a time it diverged: "digest N differs in panes pane 0.terminal pane 1.cwd" (pane 1's cwd is `.inherited: *Pane`, walked into pane 0's terminal) or, at the next join, "a terminal reloaded at a join is not the session's"; found by a ring of each replica's units and paths printed at its failure (seed 0 at 30 ms: the refused join `0/442` taken neutral, then the client's mouse `2/30` fast-pathed, then `0/443` released the copy); FIRST the test (a fifth client refused while every view is taken and a key of the client's is on top: the replica made 0 reloads where the session made 1, `expected 2, found 1` on the base), THEN `feedsTerminal` also names a unit with a `Site.reload` record; a user could not hit it today (real clients are screen state, which never reloads), and after the switch would have, whenever a fifth client was refused while another typed; and a third, seen once (seed 6 at 30 ms, the far client: "its digest, quiet, is not the session's"): a client that let its link go for its lag drops the units after it (`Link.lags`), but a check answered after the let-go was still judged (`Link.checked`) against a core behind on purpose: FIRST the lag test takes a check after its let-go (diverged on the base), THEN `checked` judges nothing once the link is let go; the soak, bytes, `--clients 5 --bytes --seeds 8` at 30/80/207 ms with the `cat` whole (Debug, load 25-44): 2 of 4 whole runs clean (diverged 0, unequal 0, quiet checks agreed, unlisted 0, corpus 22 of 22, no leak); in the other two, seed 2 at 80 ms (two clients at one session unit) and seed 0 at 30 ms (one client): OPEN, not root-caused (reports/pardes-term-join.md), never under a probe; seed 0 at 30 ms, 19 of 20 clean, one run hung spinning (killed, no trace); on the base seed 0 at 30 ms diverged every time and 9 of 24 runs; tui core-test 859/1011 (152 skipped), shell-test 1047/1050 Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | * | replica: a client measures how far behind its session it is and past two ↵Gabriel Schneider8 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | seconds lets its link go and joins again from a dump, saying so once (P32 (b); step 3, item 2): the fault shown first (a client whose units came 2.1 s later than its quickest took them on: Link.quit false) and in the soak (the far client never let go: one join, its final screen 17.7 s after the flood's end); Link.behind, each unit's head's session clock against the client's own (Link.time), less the smallest difference seen; one constant, behind_max_ms = 2,000, near and far; past it the link let go (the bye's `again`, its view kept), the notice "joined again: N.N s behind" (Link.rejoins), the first unit after a join past it taken as the link now (a session's clock stood still while its machine slept; a dump that took longer than the bound: never a let-go at once, never a loop); the clock is the client's machine's, read in Link alone (no new line on root.zig's machine_lines; Link is no part of Pardes, so no digest or dump reaches it); a test that fed a simulated client clock with units of the real clock made them on its own clock; the soak counts the let-gos and how far behind each client fell; tui core-test 859/1009 (150 skipped), shell-test 1045/1048, term-test 17/17; the soak, screen state (--clients 5, 4 seeds): diverged 0, unequal 0, deltas 7093/0 7518/0 7603/0, quiet 590/0 472/0 541/0, unlisted 0, corpus 22 of 22, the far client 9/9/7 let-gos, others 0; bytes (--seeds 8): the far client shows its final screen in every run, 6.5-7.9 s after the flood's end, refreshed every 7.0-7.3 s (p50), others 0 let-gos and 2-10 ms behind at most, quiet 1077/0 1083/0 1457/0, unequal 0, BUT 5/3/1 near clients diverged at joins (reports/pardes-term-lag.md: open); ReleaseFast (2 seeds, 80 ms): 0 diverged, a join's unit on a client already there 9.6 ms p50, 17.7 ms at worst, the session's join step 1.4/14.3 ms Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | * | replica: a client the session cuts off for what it left unread is told why ↵Gabriel Schneider8 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | and joins again for its view instead of ending (P32 (b); step 3, item 1): the fault shown first through the replica's surface (a session's queue for a client past its bound: the client's link ended with nothing said, Link.rejoins false, the client ended), then at the bound (Peer.send) what waits for it is let go and the words why ("N MB behind the session", a refusal, which a client already joins again on) queued in its place, its writer writing the batch in hand, the words, then ending the link (Peer.writeLoop; the limit's reset at every batch, a no-op, gone), its view kept for it (Peers.leave: views.away, as a bye's `again`), and a far join under way finished rather than dropped at a cut (writeJoin, farJoin, `letting`); two tests: a client cut off joins again from a dump and agrees, its view kept; a writer cut off while blocked on its socket writes its batch and the words; tui core-test 858/1008 (150 skipped), shell-test 1044/1047, term-test 17/17 (load 12-16) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | | | integration: the client's double free fixed, on the typed slot fields: ↵Gabriel Schneider7 days
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pardes-client-abort (a 9P open record past fs.opens_len is nothing: never read or freed: a replica client's rollback left one with freed pointers and the open's replay freed them again: a client typing while a script held a pty/run aborted with a corrupted heap, since pardes-merge40; the rollback copy walks every type that declares replica: it skipped fs.Namespace and a pane's 9P state) and pardes-merge43; no conflict; gated whole against sketchbook's main (reorg/merge44): tui core-test 875/1033 (158 skipped), shell-test 1075/1078, addon-test 5/5, term-test 17/17, kitty-test 45/45, pane-test 183/184, behaviour-test 275/275 and with --replay, process-test 0 of 145 failed, consumer-test passes; both soaks (--clients 5 and --bytes) diverged 0, unequal 0, unlisted stops 0, corpus through a client 22 scenes the same; daemon.py plain, far, games, window-clients, clients five times, relink, launch, pair, gui; macos (linux and aarch64) and freebsd build; frames 77/77 against tree2, perfab-corpus2x +0.012%, 121 per-operation counts within 0.1% (largest client-key-down +0.075%), gui unit-test 1671/1675 (no failure the base has not) Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * | | | rollback: the copy walks a type by its fields when it says what they are ↵Gabriel Schneider7 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (`replica`), whatever digest of its own it has: it skipped every type with one as if it were a terminal, so since faults-4 the 9P state (fs.Namespace, a pane's ninep State) was saved only as the bytes of its records, never the buffers they own, and a unit kept over a copy that wrote one in place came back other than it was (a script's exec held "Ta", the next write ran `Tab 8` and moved "Un" to the front of the same buffer, and the rollback's replay ran `Unb 8`: the client's digest other than the session's); now only a type with a digest and no `replica` (Term.State, the authority's emulator; locations.Row, made again and never written) is left out (`unwalked`); the test, that exec write over a copy taken ahead and a rollback by another's key, differed on the base (digest 12509739004356058903 against 4039275215734315918) and passes; the tree gated whole (load 1-8): tui core-test 875/1033 (158 skipped), shell-test 1075/1078, term-test 17/17, pane-test 183/184, kitty-test 45/45, behaviour-test 275/275 and --replay 275/275, process-test 0 of 145 failed; both soaks diverged 0, unequal 0, unlisted 0, quiet checks 597/0 673/0 779/0 and 693/0 586/0 829/0, the corpus 22 of 22, no leak; daemon.py --clients 39 of 40 alone and 20 of 20 pinned, plain 5 of 5, --far, --far-find, --relink, --launch, --pair, --restore, --games (addon-test 5/5), --window-clients (its PDF case skipped: no pdf.so in a tui prefix), --gui pass; the cross-builds (macos, macos arm, freebsd) build; the frame and perf gate against tree2: 77/77 frames, perfab +0.043%, 121 per-operation counts within 0.1% (largest client-key-down on medium +0.0749%), gui unit-test 1671/1675 with no failure the base has not Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * | | | ninep: a 9P open record past fs.opens_len is nothing, never read or freed: a ↵Gabriel Schneider7 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | replica client's rollback copy takes the opens only that far (faults-4, zlomnsus), so a record a session's open made over a copy taken ahead (a client idle, a script's pty/run opened and its command printed, the units kept over the copy) was left as it was when the copy went back, its line and output freed by the epoch, and the open replayed after the rollback (the client's key into the shell stopped at its pty write) freed them again in tree.open (`if (o.node != 0) o.deinit`): the client's C heap corrupt, `malloc(): unaligned tcache chunk detected` and SIGABRT at its next delta (daemon.py --clients' client C, since pardes-merge40; a user's terminal or window client typing while a script runs pty/run in the session could hit it); the line goes and open writes the record over, Namespace.deinit and forget free opens[0..opens_len]; the test, a client's key into a shell over a copy taken ahead with a pty/run kept since, aborted on the base with `free(): double free detected in tcache 2` and passes; gated with the next change on it (its description has the suites): daemon.py --clients 39 of 40 alone (the one a client D that did not say it joined again within 60 s, at a load of 6.7, no core dumped, not seen again in 77 runs of the scene) and 20 of 20 pinned to one CPU, plain 5 of 5 Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | | | | integration: six slot fields typed, the docking vocabulary, the Mac's ↵Gabriel Schneider7 days
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | callbacks and consumer-test, on six small faults: pardes-slots (Pipe.PendingPipe.pane, Ask.wait.pane, theme_file_pane, ThemeFileRequest.pane as Pane.Id; Authority.view_of and Peer.view as View.Id; layout.dockFrom and the prose; macos State.callbacks; the build step consumer-test) and pardes-merge42; one conflict, in Peers.detach, where the pair's lifetime rule (daemon.keepSession) and the view's type (peer.view.index()) met on neighbouring lines: both kept; tui core-test 874/1031 (157 skipped), shell-test 1073/1076, term-test 17/17, both soaks diverged 0, unequal 0, unlisted 0, the window builds; this line carries the client's heap corruption that came with pardes-merge40 (a fix is being made): not gated further until it has it Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * | | | core: the switchboard's view fields are View.Id: Authority.view_of and ↵Gabriel Schneider7 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Peer.view (P21: the fields; the last change of the slots work, apart for the pair's merge): the in-process Authority's openView, leave, closeView and take, and Peers' input, closeViewOf and the welcome hand the core its view's id with no conversion (9 .at( and an .index() go); Screens.flush's view parameter, which its body never read, goes with its four arguments (Peers, the in-process harness, echo.zig's, test/replicas.zig's); the undrawn mask's shift narrows the slot's integer, which the compiler caught (core/replica.zig:2362, :2507: the old @intCast narrowed the bare u8; a view's slot as a bit index, no fault), as it caught test/replicas.zig:1047's detach_view, a view's slot as a bare u8 against a peer's (no fault: p.view.index() == k); Replica.view and Joined.view stay u8: their readers (the echo, drawOne, the frontends' own view, client.zig, session.zig) index and compare with the core's live as integers (+4, +8 by the estimate); neither field typed here is dumped or digested and the welcome's byte is the same; the conversions fall: the core's code 427 -> 425 (.at( 333 -> 328, .index() 73 -> 76); gate on the whole stack (load 5-22): tui core-test 871/1028 (157 skipped), shell-test 1070/1073, pane-test 183/184, term-test 17/17, kitty-test 45/45, behaviour-test 275/275 and --replay 275/275, consumer-test passes, addon-test 5/5, process-test 0 of 144, replicas --clients 5 (diverged 0, unequal 0, deltas 1976/0 1937/0 1831/0, quiet 651/0 673/0 779/0, unlisted 0, corpus 22 of 22, no leak) and --bytes --clients 5 (diverged 0, unequal 0, quiet 693/0 586/0 829/0, unlisted 0, corpus 22 of 22); the semantics word a73794ff9e03f814 as merge40's; daemon.py --far, --games, --window-clients pass, --upgrade both ways against merge39's build (3f9dfd3b9d8bdc64; merge40's has this word, which the test refuses) pass, plain fails at "client C agrees with a shell's output" 4 of 6 as merge40's build does 3 of 6 (alternated: 2 of 4 each); the macOS library (x86_64-linux, aarch64-macos, the ABI guard 2/2) and the FreeBSD cross-build build; frames 77/77, gui unit-test 1666/1670 (the perf check's BaselineHarnessMismatch), perfab corpus2x -0.014% (noise 0.078%), the 121 per-operation counts within 0.1% against tree2 (key-down on medium 10,039,745, render on medium 11,454,642, client-key-down on medium 1,983,990; merge40's gate 10,039,703, 11,454,619, 1,984,321) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | | | | integration: six small faults on a hang-up as a close: pardes-faults-6 (a ↵Gabriel Schneider7 days
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | hang-up with no daemon kills the language servers' children; the daemon's reader hands a note under a lock; a retried Edit write answered from the listener's hold; the cursor hidden when a frame has no caret; syntax-test deleted and the grammar tiers' tests skipping; the tty harness's Esc after what came before is read) and pardes-merge41, merged without a textual conflict; tui core-test 874/1031 (157 skipped), shell-test 1073/1076, term-test 17/17, both soaks diverged 0, unequal 0, unlisted 0, the window builds; the coordinator's gate in the ledger (reorg/merge42) Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * | | | | replica: the four process globals a 9P step was said to read, audited: ↵Gabriel Schneider7 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | config.tab_now is gone (the core's settings.tab is handed down, reports/pardes-globals.md); fs.last_reads is written by readHost, a tape site's host side (a replay is answered from the tape and never calls it) and read by the session host's watch (file_watch applyEffect, an effect only the session performs), so no replica writes or reads it; syntax.diff_pieces/diff_clock memo paintHunk by the language and the piece's bytes, from which each line's kind follows, and paint no digested state; selection_pipe.next_token: a client's Edit takes a token of its own process's, which differs from its session's, in pipe.edit_run, authority state (not digested) whose token only the session's listener uses (edit_cmd.cancel's stop): test "an Edit's stop token is each process's own (selection_pipe.next_token): a client's differs from its session's, and they agree"; root.zig's allowed_vars reasons hold, unchanged; no product change Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * | | | | ninep: a retry of a held Edit write is answered by the listener from its ↵Gabriel Schneider7 days
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | hold, no step: serveFsInner's first lines read fs.edit_hold, which the session's listener sets between steps (9p_io), so a retried write was the session's step that answered it and every replica's step that ran the Edit again (the tape's divergence, and a client's second pipe); the check is EditHold.retried, which the listener calls before serveFs, and the step never reads the hold (fs.edit_hold stays the listener's, as the namespace's doc now says); test "a client runs an Edit a script's write started once, as its session does, when the held write is asked again" (core/replica.zig, a client joined, the write held as the listener holds it, its command answered, the retry as the listener serves it): diverged on the base ("the core called clock where the tape has a done (0), in serve_fs"), passes now; edit_cmd's held-write test retries through EditHold.retried; a user could hit it: a script's Edit with a | < or > command whose write's park is retried (a 9P client's retry while the command runs) under a far or window client: the client diverged and joined again Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | | | | integration: a hang-up is a close and a session can be kept, on the 9P state ↵Gabriel Schneider7 days
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | a join carries: pardes-pair-3 (a session's state as the daemon hears it: attached, detached, pair or kept, carried through an Upgrade; a terminal client takes HUP and TERM itself and leaves with a goodbye that closes; ps shows (tty) for a pair and (tty, kept); the documents say what PARDES_PAIR is) and pardes-merge40, merged without a textual conflict; tui core-test 871/1028 (157 skipped), shell-test 1070/1073, term-test 17/17, both soaks diverged 0, unequal 0, unlisted 0, the window builds; the coordinator's gate in the ledger (reorg/merge41) Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * | | | pair: `kept`, whole (P36): a session's state the daemon hears is one of ↵Gabriel Schneider7 days
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | attached, detached, pair, kept (daemon.State, its hello's and `state` word, numbered as the daemon's record said its bool), a `new --detach` (and the bare `--detach`) under PARDES_PAIR kept from birth, a pair's session `pair` until a Detach typed in any client makes it kept (daemon.keepSession, never cleared), an Upgrade carrying it (the record's `state` word), and Peers.kept deleted: a client's close ends the session only while it is `pair` (Peers.leave), the end condition no longer asks Options.pair but for the daemonless pair; `pardes ps` says `(tty)` of a pair's session not kept and `(tty, kept)` of a kept one, an own-path session's line unchanged (`(tty, has a frontend)`, `(tty, detached)`), and a bare attach takes any session without a frontend; test/daemon.py `pair_rows` rewritten (a `new --detach` kept, its clients ended by HUP and TERM: runs on; a pair `(tty)` across an Upgrade, its Detach `(tty, kept)` across another, its clients ended by TERM, KILL, HUP: runs on), `pair` and `gui_pair` read the new line, and gui_pair closes a window client of a `new --detach` session: it runs on; on the base `--pair` fails at "the client listed" (ps said `(tty, detached)`), here it passes (load 5-8), shell-test's record and bare-attach tests 32/32 and 9/9 Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | | | integration: a client that joins a session with 9P work under way has its 9P ↵Gabriel Schneider7 days
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | state, on the budget as a count and the window's pair: pardes-faults-4 (the open records and each pane's 9P state in the dumps and the digest, dropped again at a revive on a new host; hand-written digests so a step's counts do not move) and pardes-merge39; two conflicts, both the wire's version: the pair's close byte and the 9P state each took 24 on their own lines: the close byte keeps 24, the 9P state is 25, abi/wire.zig's version and test/daemon.py's WIRE are 25; tui core-test 871/1028 (157 skipped), shell-test 1070/1073, term-test 17/17, both soaks diverged 0, unequal 0, unlisted 0, the window builds; the coordinator's gate in the ledger (reorg/merge40) Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * | | ninep: the audit's two more finds ride with the rest: the panes the last ↵Gabriel Schneider7 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | look or exec touched (fs.results and each open's) and a column's or the workspace's tag truncation (fs.header_rewrite, header_trunc_pending, header_held) are digested and dumped, dropped at a revive as the opens are; found by reading the namespace field by field (reports/pardes-faults-4.md section 3): exec.leased reads an open's results to keep a done command pane a script reads from being taken again, and a new open's results are the session's last (no test: it needs a finished command pane read by a script); a header's truncation is the pane tag's twin: test "a client joined after a script truncated the workspace's tag writes the tag its session writes" (unequal on the base); the rest of the namespace is no fault (set and read in one request's step, or replies, the log, the listener) but edit_hold (listed: the session's listener sets it between steps); gate on this tip (load 5-18): tui core-test 868/1023 (155 skipped), shell-test 1063/1066, pane-test 183/184, behaviour-test 275/275 and --replay 275/275, term-test 17/17, kitty-test 45/45, addon-test 5/5, process-test 1 of 144 (pty/run's "busy while a job holds the tty", at load 18; 3 of 3 alone), replicas --clients 5, --bytes --clients 5 and both with --seeds 8: diverged 0, unequal 0, unlisted stops 0, corpus 22 of 22, no leak; attach probe 0 of 6; cross_replay 29 digests agree on each replica; daemon.py plain, --far, --games, --window-clients, --upgrade base -> this and this -> base pass; the macOS (Linux host), macOS arm and FreeBSD builds; the frame and perf gate against tree2 PASS: 77/77 frames, gui unit-test 1660/1664, perfab corpus2x +0.009%, perfops 121 within 0.1% (largest client-key-down on medium +0.054%) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * | | replica: the tests first: a client that joins a session holding a script's ↵Gabriel Schneider8 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 9P state made before the join steps the request after it otherwise than its session, one test a group of the earlier audit's rows (reports/pardes-faults-3.md 1b), each a session with a file pane (or a shell) and its 9P server (NinepJoin: a request is the session's step, then its loop's pass; a client joined from the session's dump takes every unit after), on this base: an open of a pane's exec holding half a line ("Ne", then "w\n" after the join): unequal (the session made a pane); two writes of one open to a body, then Undo: unequal (the client's second write its own step); a ctl open's lock, another open's lock after the join: the session refused it, the client gave it the lock ("expected 1, found 2": no digest covered the lock); addr: unequal; limit: diverged ("the core called mtime where the tape has a done (0) (tape byte 78, in serve_fs)"); dot truncated, released after: unequal; two writes of one open to sel: unequal; nomark, then two opens' writes and Undo: unequal; noscroll, then a long write: unequal; a tag truncated, written after: unequal; a chorded exec told to an event reader, its record written back after: unequal; writes to a body held to go in as one edit (a host with a clock, the join before the pause): unequal; a pty/run's line sent before the join, its end after, then the open's next line: unequal (shell-test); a shell found to have no prompt marks before the join, a pty/run after: diverged ("the core called prompt where the tape has a done (0) (tape byte 112, in serve_fs)") (shell-test); the audit's /pager text and last line of a closed open are no fault: the join's step settles first (Core.zig openView and rejoinView), so no test; on this base tui core-test runs the nine without a shell, all failing (the two with one skip), shell-test all eleven failing (load 35-47) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | | |
| \ \ \
*-. \ \ \ integration: the budget a count and the tape's field read at every entry, on ↵Gabriel Schneider7 days
|\ \ \ \ \ | |_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | the window's pair and the devices once: pardes-handle-7 (step 7: rescore and a tick's fill stop by work done, Tape.over and Site.budget deleted; 9a: the turn's check a count; 9b: enter and leave read the tape's field; 9c: PARDES_RECORD read by whoever starts the session), pardes-pair-2 and pardes-merge37, merged without a textual conflict; tui core-test 861/1016 (155 skipped), shell-test 1058/1061, term-test 17/17, both soaks diverged 0, unequal 0, unlisted 0, the window builds; the coordinator's gate in the ledger Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | * | | tape: a session's tape is handed in by whoever starts it, step 9c ↵Gabriel Schneider7 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (reports/pardes-handle-69-design.md section 3.4, P33's lean 5): PARDES_RECORD is read by the starter (tape.fromEnv, the old startFromEnv returning the tape: runtime/session.zig's start, one line, and the Mac's, one line) and handed in Options.tape, so Pardes.init and dump.initFromDump no longer start a tape and Pardes.create takes its options' tape or none, never the global; current, forget and adopt are the field's (deinit and restoreInner call p.tape's; the three free ones are deleted); restoreInner loads the replacement on the session's own tape and does not leave it in the replacement's kept options (a session with clients has its tape from no options, and Peers.stop puts the options' back); Authority.init hands its tape in the options; the in-process runner (test/session.zig) keeps the tape recordTape starts and hands it to each session it makes; the global is still set beside a recording tape (fromEnv, recordTape, Stepping, Peers) while the terminal's questions read it: after this change those are its only readers, 18 calls in 12 functions (core/panes.zig scrollBy, feedOutput, followRows, the positions value, feedLost, followOutput, resizeGrid x4, reloadTerminals x3, emulatorGpa; core/term Term.digest, Term.media; core/edit.zig shellRows; core/ninep/pty.zig finish's prompt value), besides Stepping, Peers and enter's safe-build check; the tape's bytes do not move (semantics df1f0502317ed362, cross_replay both ways against step 7 agree); a real session still records from its first call (process-test --replay 0 of 102 failed, behaviour-test --replay 275/275); tui core-test 857/1008 (151 skipped), shell-test 1048/1051, pane-test 183/184, term-test 17/17, kitty-test 45/45, behaviour-test 275/275, process-test 1 of 144 (delask, passes alone), both soaks diverged 0 unequal 0 corpus 22 of 22 (bytes: the base's one now stop at 30 ms), daemon.py plain, --far (the Find: 0 mispredicted), --games, --window-clients, --restore (a Restore with a client attached), --upgrade both ways against merge31 (both failed once at the Adopt race in the chain and pass alone), addon-test 5/5; the macOS library (x86_64, aarch64) and FreeBSD build; gui unit-test 1645/1649 (the perf check's BaselineHarnessMismatch) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | * | | tape: the budget is a count, step 7 (reports/pardes-handle-69-design.md ↵Gabriel Schneider8 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | section 2, P33's lean 3): Names.rescore stops after 3,000,000 of the scorer's cells (a key's bytes times the query's and one, what `match` can visit of a candidate, so a long query's slice is no longer than a short one's) and a tick's Places.fill after 512 KiB read, the places an insert above the view moves charged as read (with many places below it, the moving was what only the clock bounded), so no clock is read in a step: Tape.over, the free over, overNow, the budget site and the two clock reads are deleted, and a far client's guess of a key into a big name query is the session's step by construction (test/daemon.py --far's new scene, a Find over 40,000 names typed into: mispredicted 1, 1, 1 and 4 in four runs of the base, 0 in four of this); the constants measured by pardes-perf's new --search (ReleaseFast, this machine at a load of 12 to 24, every call's instructions counted): a tick's fill on the 18 MB text at most 23-24M instructions where the clock's 4 ms ticks took 47-75M, a rescore's scan on a long query at most 31.5M where the clock's took 32.6M; the longest rescore is not the scan but its sort of every hit at each call (about 125-145M instructions, 16-22 ms, with the clock and with the count alike: not bounded by either, left); the semantics word moves (the site's number goes: 7a610621b2f37456 -> df1f0502317ed362), so cross_replay across this change diverges at the first site after it, as it must; tui core-test 857/1008 (151 skipped), shell-test 1048/1051, pane-test 183/184, term-test 17/17, kitty-test 45/45, behaviour-test 275/275 and --replay 275/275, process-test 0 of 144 failed, both soaks diverged 0 unequal 0 corpus 22 of 22 no leak (bytes: the base's one unlisted `now` stop at 30 ms), daemon.py plain, --far, --games (alone, at load 24), --window-clients, --upgrade both ways against merge31 (new->old alone after the Adopt race); gui unit-test 1645/1649 (the perf check's BaselineHarnessMismatch); frames 77/77, perfab +0.055%, the 121 counts within 0.1% against tree2 (key-down on medium 10,039,595, render on medium 11,454,507; the base 10,039,283 and 11,454,252) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * | | | upgrade: an Upgrade carries near clients (the last step's design 1.4, Z3): a ↵Gabriel Schneider7 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | client let go by an Upgrade dials again as before, and when the session runs another build (or another protocol) and a newer file is installed at its own start path since it started (upgrade.replaced), the client loop ends `.upgrade` and its frontend lets its screen go and execs that file as `--attach=<socket>:<name>` (client.zig execAgain), the same process, for the view the session kept for it (PARDES_JOIN_VIEW, Options.join_view, dialled patiently as a rejoin is): the terminal's is the blink (it leaves the alternate screen and enters it again; no record), the window a new window; a client whose start path holds no newer file keeps today's sentence "session upgraded to a newer pardes: upgrade this client too"; a far client the same, through its forward (PARDES_REPLICA_FAR=1); a pair with no daemon refuses the Upgrade in words ("no daemon keeps this session, so its client could not join it again"), since its first client has no socket to find the session again by (on the base the Upgrade cut the client off and ended the session); test/daemon.py upgrade_clients (a terminal client and a window client, each its own pane in its own view): old->new the base's clients are let go and told to upgrade too (what they do today), new->old they exec the base build and come back in a view of their own (the base reads no PARDES_JOIN_VIEW), new->(this built with -Dembed-sources, another semantics) each is back in ITS view with its own pane; `pair`'s no-daemon Upgrade refused; tui core-test 858/1013 (155 skipped), shell-test 1053/1056, term 17/17, pane 183/184, kitty 45/45, behaviour 275/275 and --replay 275/275, process-test 0 of 144 failed, both soaks diverged 0 unequal 0 corpus 22, daemon.py plain, --far, --games, --window-clients, --gui, --upgrade both ways (with clients) pass, gui unit-test 1650/1654 (the perf check's BaselineHarnessMismatch its one failure), macOS lib (Linux host), aarch64-macos, FreeBSD build (loads 3-15) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * | | | pair: under PARDES_PAIR `pardes-gui FILE` is a window client and a session ↵Gabriel Schneider7 days
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | with no SDL (the last step's design 1.2, Z1's rest): the child of a fork before SDL_Init EXECS the `pardes` beside it (`--paired=FD` first, the window's arguments after; its end of the socket pair kept across the exec), since a window binary's session loop is woken through SDL (gui.zig `sdlWake` is the Inbox's and the Peers' wake) and the terminal's binary needs none; with no `pardes` beside it the window is its own session as before; the session registers itself (and starts the daemon when none runs); the window's close button ends the session when it was its last client and no Detach was typed in any (a CLOSE: the client's bye says so, wire byte 2, protocol 24), a killed window leaves it running (a LOSS), with no daemon it ends with its last link; a client dialling again after an Upgrade that moved the protocol now stops at the daemon's "run the same pardes at both ends" as at "runs another build" (it dialled 20 s in vain); test/daemon.py `gui_pair` (in --gui, alone --pair-gui; on the base: the window was its own session) and `upgrade_clients` (in --upgrade when a pardes-gui is beside each build); the window's start, ReleaseFast, medium.zig, offscreen test mode, one build alternated, instructions:u (perf stat total, perf record split by pid): own 387.9-393.3 M, pair 397.5-398.3 M = window client 379.8-380.5 M + session 17.6-17.9 M (wall best 260 ms own, 282 pair, NOT judged, load 12-14); idle pair 0 wakeups in 2 s on the session side, terminal client 0, a window client unmeasurable offscreen (SDL's offscreen driver polls ~920/s, the own window the same); tui core-test 858/1013 (155 skipped), shell-test 1053/1056, term 17/17, pane 183/184, kitty 45/45, behaviour 275/275 and --replay 275/275, process-test 0 of 144 failed, soaks --clients 5 and --bytes --clients 5 diverged 0 unequal 0 corpus 22, daemon.py plain, --far, --games, --window-clients, --gui and --upgrade both ways (the base built once, pfx-old) pass, gui unit-test 1650/1654 with the perf check's BaselineHarnessMismatch its one failure (loads 5-25) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | | | integration: a session's first client over an inherited socket before its ↵Gabriel Schneider7 days
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | first effects, the pair under PARDES_PAIR, and a session's last word, on the 9P run's fixes and the build's second pass: pardes-first-client (new --detach forks and returns; Options.pair and the join by fd; pardes FILE as a client and a session under the variable; ended CODE and left NAME: a client's own Detach exits 0 with its line again) and pardes-merge33, merged without a textual conflict; tui core-test 858/1013 (155 skipped), shell-test 1053/1056, the window builds; the coordinator's gate in the ledger (reorg/merge34) Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T