| Commit message (Collapse) | Author | Age |
| ... | |
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
| | | | | |
| | \ \ | |
| | \ \ | |
| | \ \ | |
| |\ \ \ \ \
| | |_|/ /
| |/| | /
| |_|_|/
|/| | |
| | | |
| | | | |
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
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
its session: whether the terminal holds an image is the session's fact, `Pane.term_images`, set at its output's step (core/Core.zig `.output`: taped under screen state, tape site `images`, the session's answer replayed on every client, whose emulator is fed cells and never has the image; read directly otherwise, every side fed the same bytes) and read by the tag (core/tagline.zig, for `Term.hasImages` of each side's own emulator, whose ` petscii:on|off` made the digested `tag_lead` longer on the session's side only: every quiet check differed and a plain attach joined again 3.2 times a second for as long as the image was there, the installed build too); taped and not a bit beside the cells because the step that computes the tag is the output's own unit, which a client replays before that pump's flush reaches it; wire 28 (a pane's new field in the join's dump and the digest, the tape's new site; test/daemon.py `WIRE`); daemon.py `--kitty-image` on Debug: 0 joins in 5 s, 3 of 3 (16 before); core-test 898/1060 (162 skipped), shell-test 1102/1105 (3 skipped), term-test 18/18, kitty-test 45/45
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
| | | | |\
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
(`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
|
| | | | | \ | |
| | | | | \ | |
| | | | |\ \ \
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
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
|
| | | | |\ \ \ \
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
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
|
| | | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
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
|
| | | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
`reflow`, which `resize` and `resizeDeferred` share: ghostty's pinned view set to column 0), so the row a replica's rollback puts a terminal's view back at (replica.zig `keepViews`/`putViews`, the view's row index, the one record of an emulator's view outside the copy) is the view that was there: ghostty pins a view to a CELL, a widening that joins a wrapped line's second row to its first left that cell mid-row, and the next narrowing carried it a row down, where a client put back by its row (at row 0 ghostty's `.top`) stayed: the same digest (the offset) until that reflow, then the client's view a row above the session's, the bytes soak's divergence (round 5: 5 whole runs of 29, every naming a 2-row pane at its history's top, `cat`'s long lines wrapped, panes resized all through); the previous change's two tests pass (term-test 19/19, the replica test under shell-test), a fuzz of put-back against left-alone emulators under random output, reflows and scrolls went from 5 apart in 191 seeds to 0 in 3,000; core-test 885/1046 (161 skipped), shell-test 1088/1091 (3 skipped), each the base's plus the new test (loads 5-11); the bytes soak, whole, untraced, --witness, on this tree frozen (its session doing nothing extra): 21 of 21 clean (against 5 of 29 before), seed 2 at 80 ms alone 16 of 16; the screen-state soak 5 of 6 (s9b-2: seed 1 at 207 ms, 'digest 11 differs in the session', the open screen-state fault scr-1, not this one); the frame and perf gate against tree3 PASS (77/77 frames, corpus2x +0.046%, 121 counts within 0.1%, client-key-down +0.0286%); daemon.py --far and --clients x3 on Debug and ReleaseSafe, plain 5 of 5 after one timing failure on each build at load 5-7, each passing again alone; nothing in replica.zig, tape.zig or wire.zig; a user sees a scrolled-back terminal keep the row its top line starts on through a widening and a narrowing (ghostty kept the joined cell's row: within a row of it); screen-state clients never reflow their own emulator and their terminal views are not digested: not this fault there
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | | |_|_|/ /
| | |/| | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
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
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
soak's own that failed or cut its runs: (1) Named: at a client's FIRST mismatch only, its digest of every field (tape.digestParts, made pub with Parts and partsDiffer) and each terminal pane's screen digest without and with its view and its Grid are kept with the unit it parted on, and the witness, replaying the kept stream in its own core, names the fields and the terminals' content and view against its own at that unit: nothing more on the session's step or the wire (the trace's per-field digests hid the divergence in 19 runs); it named the bytes soak's divergence (b5-8, b6a-7, b6b-4, b6b-8, b6b-10): pane 0's terminal, content equal, VIEW one row lower on the client (0 against 1, 1 against 2), a terminal scrolled to its history's top; (2) Soak.watch: the soak's clock is a message's time and a message due before it stepped it back: 'integer overflow' (wa-1), now -|; (3) a session loop that ended before the run (runtime/session.zig: every client gone by a close, or core.quit) returned silently and lost the seed (merge49's bytes seed 1 at 207 ms): now said, with the last eight inputs drawn and who drew them, and the run failed (error.EndedEarly); (4) the script ended its own session: a Del of the last pane (nextEvent's command 8: now only while more than 3 panes are open, Soak.spare) and, by reading, Space then q (Exit; a typist's q right after its Space becomes r, Script.space)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
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
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
all of jj's session state is one field, `Pardes.changes: jj.Session` (jj's answers by pane serial, the `Changes` jj runs for, the one asked meanwhile, how many were asked), whose digest is nothing until a `Changes` is asked and then one update while nothing is asked of jj, where item A had three `Stream` fields (three updates in every digest of the session, and a client's key takes several digests) beside round 4's answers list (one more); `Stream` holds nothing of jj's again (its dispatch lines stay), the session's end lets the worker and the asks go in `Session.deinit`, and the batch's 8-byte `jj` field goes (a `Changes` answer is told by its generation's bit, `jj.gen_bit`, after a paint's, and the pane it is for is the ask's, which every replica holds); measured first, a variant at a time, client-key-down against tree3's pardes-perf in the gate's own layout (ReleaseFast gui, its farms and HOME; my first script's layout read about 0.05% lower): item B as it was small +0.111%, the batch's field gone and the stream's three fields one +0.104%, the session's state one field digested as nothing until asked small +0.047%, large +0.047%, medium +0.010%
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
its last snapshot (`--ignore-working-copy`), not the keys typed since, so annotate's answer now carries each line's text (`id\tcontent`, the same one run) and `jj.provenance` lines the annotated text up with the pane's by what the two agree on at either end (`File.spanOf`, the editor's differ; the one line its two ends meet inside counts when its bytes agree: an inserted line shares its indent with the line after it), a line only the pane has nobody's (no lane, no ground); and an edit after `Changes` carries the per-line values with the lines (`jj.edited`: one call in `File.edit`, the one place a text changes, an undo's too, made only while the session has pinned changes): the lines a splice takes out take their values with them, a line it puts in is nobody's, and a splice that starts in a line's leading blanks (as `o` puts a line in) leaves that line's value after what it puts in; jj is never asked again on a key; tests: a line on disk jj has not snapshotted is nobody's and the lines after it keep their changes; a line typed in a nested block (`o`) is nobody's and the rows around keep their lanes, its undo puts the values back, a deleted line takes its value, a client replaying the keys ends equal; core-test 901/1061 (160 skipped), shell-test 1103/1106 (3 skipped)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | |_|_|_|/
| |/| | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
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
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
answers are the session's, a list by pane serial (`Pardes.changes`, `jj.answered`; `jj.forget` at the pane's end), no longer a field of every pane, and a view holds only whether it shows them (`File.Layers.lanes`, the cells their lanes take, hashed with `ink` in one update), so a second view's `Changes other` shows the new set in both and its bare `Changes` hides them in its own alone (bare with none pinned yet is `@`); measured first, per operation against gpu/tree3 (a gui ReleaseFast pardes-perf, perfops's way of counting: reorg/pardes-layers-4/perf): merge50 +0.005% a client key, round 3 +0.110%, a packed one-byte `Layers` +0.391% (a packed field cost the walks more), a plain two-byte one +0.152%, the per-pane field gone +0.118%, the gutter's three reads of the lanes taken out +0.066% with body-appends from +0.189% to -0.004%: what paid was fillBody's line number, formatted for every row of every geometry pass (no `dst`, a hundred a frame) and thrown away, whose row loop moved with any value added to it: it is now written only into a `dst` (client key +0.017%, deep-sel +0.002%, render -0.021%, body-appends -1.555%); and `jj.of` (round 1's) gave a revision's name as a slice of a by-value copy of the pane's Output, dangling once it returned (jj told "Non-UTF-8 argument" for `Changes` in a revision's pane in a window build): the pane's own now; tests: the pinned changes are the pane's, shown in a view by its own bit (a second view's revset shows in both, its bare Changes hides them there alone), the two of a terminal's cells said so (`.windowed = false`); core-test 896/1056 (160 skipped), shell-test 1098/1101 (3 skipped), gui unit-test 1695/1699 (4 skipped); the frame and perf gate against tree3 (gpu/l4-g0): 77/77 frames, 0 differ, perfab corpus2x +0.005% (noise 0.058%), perfops 121 counts within 0.1% (largest terminal on all +0.082%)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | |/ / /
| |/| | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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
|
| | |_|_|/
|/| | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
| | |_|/
|/| |
| | |
| | |
| | |
| | |
| | | |
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
|
| |/ /
| |
| |
| |
| |
| |
| | |
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
|
| |\ \
| | |
| | |
| | |
| | |
| | |
| | | |
line: pardes-pair-5 (`ssrtxkzx`, on pardes-merge48: a link an Upgrade cuts with no last word asks the daemon whether its session is listed still and joins again (`replica.cutListed`): an upgrade from the installed build carries its clients; a no-daemon pair refuses Restore in words (P42); /dev/tty opened before the pair forks; a TERMed or hung-up client dies of the signal; the process suite as pairs 13 to 8 of 145) and pardes-layers-2 (`myxnnquu`, on pardes-merge49: the click on path@rev tested, a revision read-only from 9P, Syntax off in a patch keeps the patch's colours); no conflict; core-test 893/1053 (160 skipped), shell-test 1095/1098; its gate: .scratch/sketch/reorg/merge50, 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
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
| | |/
| |
| |
| |
| |
| |
| | |
`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
|
| | |
| |
| |
| |
| |
| |
| | |
did not do what the design's words say: a B3 click on path@rev[:line] in running text opens the file at that revision there (the click already expanded the whole token, @ being a file character; jj's test now drives it through the mouse); a revision's text is read-only over 9P too: an open of its body, data, xdata or sel to write is refused in words ("a revision is read-only", errno EROFS, as enameErrno reads the words: core/ninep/tree.zig's open, the one road 9P has to the text; the editor's own two are File.edit's splice and edit.zig's whole text), where before the write reached File.edit and was answered "out of memory"; Syntax off in a patch's pane takes the language's ink and leaves the patch: its bytes are made again once a paint without the language's (syntax.highlightDiffPlain), grounds, markers and changed words as they were (round 1 took them too); tests: the click, the four opens, a .zig patch's cells' grounds the same and its ink not; tui core-test 893/1053 (160 skipped)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | | |
| | \ | |
| |\ \ \
| |_|/
|/| |
| | |
| | |
| | |
| | | |
the gathered line: pardes-layers-1 (`lwsrrykk`: File.Layers and the Syntax word, a file at a revision: path@rev, At, core/jj.zig's recorded answers, the provenance data), pardes-syntax-lib-2 (`pymoqzkq`: patchFile, a row's text without its line end) and pardes-view-test (`sxrzsmss`, on pardes-merge48: the upgrade tests ask a client's view again); no conflict; core-test 890/1050 (160 skipped), shell-test 1092/1095; its gate: .scratch/sketch/reorg/merge49, 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
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
(jj file annotate -r REV, a change id a line), jj.pinned (jj log --reversed -r REVSET, the changes oldest first) and jj.provenance, a value a line: which pinned change wrote it, or unpinned (a u16 a line, as the ruled design's flat arrays say); both through the same tape site as At's read; the test, in a jj repository of two commits: @--::@- gives 1 0 1, @- alone 0 unpinned 0, a revset jj refuses is said in its words; tui core-test 880/1038 (158 skipped)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
resolved by a Look anywhere (a file really named so wins; the path must be a file), and At <rev> in a file's pane, open the file as jj has it at that revision in a pane named path@rev, coloured as its file (File.langPath), read-only (File.edit refuses a key's splice, edit.zig a whole text's; a bare Save says so); At in such a pane turns it to another revision in its place, bare it goes back to the file; what jj says is the session machine's: core/jj.zig runs it as a site of the step's tape (Site.jj: jj --ignore-working-copy file show, in the file's directory, the name a literal fileset), on an io of its own (the tape's spawns nothing: its allocator fails), its answer recorded, a replica replaying it and never running jj; jj's refusals in its words (At: Revision `x` doesn't exist, No such path, no jj); tests in a jj repository made in the test's directory: At's open, the read-only edits, the Look at a line, the turn in place, the refusals, and a client that replays the open of path@rev:2 ends with the session's digest; tui core-test 879/1037 (158 skipped); the tip gated whole: core-test 880/1038, shell-test 1080/1083, pane-test 183/184, behaviour-test 275/275 and --replay, process-test 0 of 145 failed, term 17/17, kitty 45/45, addons 5/5, consumer-test, both soaks diverged 0, unequal 0, unlisted 0, corpus through a client 22 scenes, daemon.py far, games, window-clients, clients x5, relink, launch, pair, gui, and --clients x2 on ReleaseSafe, macOS and FreeBSD cross-builds; daemon.py plain on ReleaseSafe times out at pair rows as main itself does (2 of 2 on main)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
File.Layers (core/File.zig, beside recolorSyntax), a pane's field that each view keeps its own (views.zig pane_fields), says which painters a file's body wears and writes down their order and places (1 the ink, tree-sitter's colour a code cell; 2 the patch, a diff's grounds, marker and changed words; next, ruled and not built: changes, a lane after the line number, green and red grounds, a changed line's words, ghost rows; churn, a heat lane and a strip by the scroll thumb), both still painted in recolorSyntax's one walk; Syntax (a tag word, SPC t h: SPC t s is the pdf addon's PdfSections, a ctl line) turns the ink off in this view and on again; the ink off is no style byte read at all (a test a cell, as a branch or a mask, cost the frame 0.1 to 0.5% of its instructions, 0.15 to 0.47% on the long line; a walk specialised at comptime for each state cost 0.5 to 3.4%: the gate measured all three), so in a patch Syntax takes its grounds too; File.zig's test draws a .zig text's first row with the ink, without it, in a second view that keeps its own, and with it again; tui core-test 876/1034 (158 skipped); the tip's gate: frames 77/77, the 121 counts within 0.1% of tree3 (largest +0.026%), perfab -0.013%
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
hunks.format trims a diff line's `\r` before its `\n` (and diff.Walk.step, and each of a source's lines, so the two compare) on purpose, and nothing a consumer reads said so (toilet saw a CRLF file's rows without their `\r`); the Patch doc comment, lib_syntax's, abi/wasm.zig's record and docs/typ/building.typ (the patch view, the record's text) say it now; test/consumer: a CRLF diff stacks to the LF diff's rows with no file, and with a CRLF main.c handed in its lines still match the diff's (its declaration found above `main.c:3 *`); no code changes
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| |\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
(`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
|
| | |\ \ \
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
(`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
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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
|
| | | |_|/
| |/| |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
| |\ \ \ \
| | |_|/
| |/| |
| | | |
| | | |
| | | |
| | | | |
pardes-syntax-lib (`wqlkznns`: a dependent package names its languages, the patch view without the editor as formatPatch, build.zig's wasmModule and abi/wasm.zig, the manual) and pardes-reorg (`ukkqwpqu`: the terminals' line, the wire at 26); no conflict; its gate: .scratch/sketch/reorg/merge47, 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
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
hunks.format as `formatPatch` with its `PatchCtx` (an arena; optional `source`, `declarations` (`PatchCtx.parsed`), `colors` (`PatchCtx.languages`: highlightDiff's), `width`; their defaults no file, no declaration, no colour, code points) and its rows, `Patch`, `PatchRow` (kind other, meta, hunk, declaration, context, added, removed; the path; the line it points at; the old and the new number, each null where that side has none; location_end, code_start; a style byte a byte; no_newline, the `\\ No newline` the editor folds into the line above); format no longer makes locations.Row (it needs no editor type: the file's first half imports nothing of root.zig's) and the editor's openDiff maps its rows onto a pane's (`paneResult`, one pass, the rows as before, so the +Diff is unchanged), handing in its own source, declarations cache, colours and display width (File.displayWidth, the one use of vaxis: `width` replaces Ctx.tab); with no `colors` the formatter calls nothing of tree-sitter (the grounds and the words a changed line changed are text alone); inferEdits' 8 MiB scratch is made once a format call, not once a run of changed lines (a browser's wasm memory took 8 MiB a run, never given back in the call); test/consumer: a C diff with no file (numbered by the diff, under git's `@@` words, `foo`/`bar` emphasised, coloured as C) and with main.c handed in (its declaration from the parse above `main.c:3 *`), and in a build with no grammar (none.zig: rows, grounds and the changed `*`, no colour; a file handed in places the hunk and makes no declaration up)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | |/ /
| | |
| | |
| | |
| | |
| | |
| | | |
a list) replaces the `.grammars` tier with the languages named and what each needs, the manifest's new `needs` field (markdown brings markdown_inline; no other grammar needs one: a fence's language is coloured when it is in the build), so a browser reader builds one module per language; a name the manifest does not have, or `.grammars` beside `.languages`, ends the configure with exit 1 and the names it has (Zig only logs an option it cannot read in a dependency and builds on with exit 0); build.zig exports `grammar_manifest` for a consumer's build script to loop over at configure time; build/core.zig treeSitter takes a set (`GrammarSet`, `tierSet`) and syntax.zig knows the set by the queries the build gave (`@hasDecl(ts_queries, ...)`), not by the tier; test/consumer loops over the manifest (`each-language`, 26/26: each language alone is in its build, linked by its symbol, and no other is), `test` runs rust and markdown of it and a configure with `klingon` that fails saying so
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| |\ \ \
| |/ /
|/| |
| | |
| | |
| | |
| | | |
(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
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
bytes soak's one hang (s0-2, seed 0 at 30 ms: the session's own C at row 41,775 of a flood, normal.multiSelAction) was the copy arm trying row after row while a line is too short for the column, each try two offsetAt (lineStartOffset from the text's start) and two positionAt (lineAtOffset from the text's start): quadratic in the rows skipped, so a C or Alt-C on a column no near line reaches froze the editor on a long file of short lines; FIRST the test (50,000 lines, only the first and the last reach column 3: C, then Alt-C back, each bounded by the instructions this thread runs, perf_event_open's instructions:u as pardes-perf's gate counts them): on the base C took 306,247,585,476 instructions; then the fix: LineWalk, a line's start carried from try to try, walked forward or back a line at a time, and its cell the column's offset or null where the line ends before it or a grapheme spans it (graphemeStart of the clamped column equal to the column, the old test); C now 194 million in Debug, about 3,900 a line; Alt-s's per-line walks from the start are bounded by max_selections passes as Text.setRanges's own conversion is, and left; tui core-test 865/1022 (157 skipped), shell-test 1062/1065, term-test 18/18, pane-test 183/184, kitty-test 45/45, behaviour-test 275/275 and --replay 275/275, process-test 0 of 144 failed, gui unit-test 1660/1664 (BaselineHarnessMismatch its one failure); the frame and perf gate vs tree2 PASS: 77/77 frames, perfab +0.106% (threshold 0.4%), perfops 121 counts within 0.1% (largest +0.0306%)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | |
| | |
| | |
| | | |
(30 s): the screen-state soak's 'the far client never showed the screen after the flood (it left)' (seed 0 at 207 ms, reproduced in f207-2: the far client 10.5 s behind joined again for its lag, then refused 40 times with 42 keys left, and given up) was openViewInner (Core.zig:1168) giving a join with no room the first away view (Views.close(@ctz(views_away))) while that view's client, which had said in its bye that it joins again, was still waiting for its dump to cross a slow link: a dialling client took its place and every later join of the far client was refused; FIRST the test (views.zig, the rejoin test turned round: with every view taken and two kept away, a join is refused until away_kept_ns has passed, then takes the first kept; on the base 'expected null, found 1'); then the fix: View.away_ns, the session's clock when its client went away (Views.away), and openViewInner lets a kept view go only once it is that old; the bound: the soak's far link (1 Mbit/s, 200 ms each way) has taken up to 18.3 s between two of its joins (g-1, 207 ms) and 15.6 s before; past 30 s the client is taken as gone; the wire's version 23 -> 24 (a view's state in the dump and the digest), test/daemon.py's WIRE with it; a user: a far client resyncing for its lag while a fifth client dialled lost its view and was refused (every view taken)
|
| | | |
| | |
| | |
| | | |
detected' at a session's end (g4, seed 7 at 80 ms: Text.reserveSels from setRanges <- normal.replaySels <- a key in insert mode) was the ranges beside a text's primary, made while one view was open, left in a view's slot nothing frees: views.installed returns before `pane.pv_known = p.views_open` while one view is open (views.zig:284), so a pane made then knows no view; a client's join opens another (open sets that view's bit only) and its first input parks the live view (park, views.zig:334: pv[live] = extract(pane), which owns the live text's selections from then on) with the live view's bit still unset, so neither the pane's end (tornDown frees a slot only where its bit is set) nor the view's (dropView, the same) frees them; FIRST the test (views.zig, 'a text's ranges beside its primary, made while one view was open, are freed once another view has been live': a second cursor and a key in insert mode, a view opened and gone into; on the base the testing allocator: 1 leak, 20460 bytes); then the fix: park sets the live view's bit as it fills its slot (one line); a user: a session that ran with one client and later took a second, every pane opened before it that had several cursors leaked its ranges (about 20 KB a pane) until the session's end
|
| | | |
| | |
| | |
| | | |
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
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
| | |\ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
(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
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
exactly (a test, core/term/terminal.zig: the soak's wide line among 30,000 lines in a 1 MiB history, reflowed twice at odd widths: the loaded terminal's snapshot is the first's, its join hash the reload's, and both go on as one through the rest and two more reflows; it passes on the base: pardes's snapshot and ghostty's are not at fault), so the soak's `cat` gets its wide lines back (the ASCII filter deleted): the divergence seen with them (seed 0 at 80 ms, a join's reload hash) was the refused join's skipped reload of the change before; and the soak's far client never types Detach (it left once, seed 6 at 80 ms, and the run failed for a final screen it could not show; the random draw is made as before, so no other client's script moves), and a run whose far client never shows its final screen says so and why; 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
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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
|