| Commit message (Collapse) | Author | Age |
| ... | |
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
taking, not only out of the next: its writer's `.joined` (its join written whole) could come after its reader's `.gone` in one boundary's batch (the writer descheduled between its last write and its post), `leave` -> `letGo` freed the peer, and the `.joined` after it read `w.peer.gen` off freed memory and, equal by chance, `released` someone else's pins (round 1 found it on the base; a user could hit it with a client that ends as its join's last bytes are written: a session crash or a heap overwrite in a release build); the failing test first: "a client's end and its writer's note after it, taken in one batch, let the client go once: nothing reads it freed" (the session's allocations a page each so a let-go peer is unmapped): on the base a segmentation fault at core/replica.zig:1978 in `boundary` (`.joined => |w| if (w.gen == w.peer.gen)`); the fix: `boundary` keeps its place in the batch (`Peers.taking`) and `letGo` takes the peer's notes out of the inbox and out of the batch after that place alike (`Peers.dropNotes`, the inbox's filter it had made one function); core-test 931/1095 (164 skipped: the merge's 930/1094 and this test), shell-test 1137/1140 (3 skipped); the whole gate g1 on this tree green (the report pardes-link-2.md)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
coordinator's ruling P63a): `Link.backHere` says no for a link that crosses machines (`Link.far`, set by runtime/client.zig from its `Have`) and fell behind `behind_max_ms`, so that client says its goodbye, shuts its link and dials again through the daemon, a new connection that drops what the old one holds for it; every other way back (a divergence, a near lag, a cut, a refused load's ask) stays on the link; marked in the code as the second road it is, with what replaces it (bounded flight: the session never more than a window past what its client has taken); the failing row first: test/daemon.py `--far` on ReleaseSafe 6 of 7 on round 1's tree (`far_flood`: over its own link the far client read through all the relay held for it, agreeing 49-68 s after `yes` against 22.7 s by a dial); `far_flood` now asserts the far client behind took ANOTHER connection; the lag test asserts both roads (`backHere` near yes, far no) ; gated with the next change as its tree (g1, rnllpvzw fd3730201cb3): `--far` on ReleaseSafe 7 of 7, far_flood ANOTHER connection each time and agreed 22.3-26.0 s after `yes` ended (Debug 25.3 s), every other row as before: core-test 931/1095 (164 skipped), shell-test 1137/1140 (3 skipped), process-test 0 of 146 failed both ways, the soak x3 and --pair x3 clean, daemon.py every mode on both builds, the upgrades 12 of 12, frames 77/77 and 121 counts within 0.1% against tree6, the cross-builds
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| |\ \ \ \
| |_|_|/
|/| | |
| | | |
| | | |
| | | |
| | | | |
whose link is up comes back over it) onto the dump and the digest (pardes-m63-base, `xxvnuywy`: the installed tree + the one decision + a join's digest taken with its dump, a refused load naming its field), the two implementations of "a refused load names its field" made one: the dump line's naming kept (every join's dump ends with the session's digest a field at a time, `dump.joinParts`, read by `loadDiffers`), round 1's deleted (the wire's `ServerTag.parts` 0x0d and `ServerMsg.parts`, a bye's byte 3 and `ClientMsg.bye.parts`, `Peer.fields`, `Peer.parts`, `Peers.partsOf`, `Peer.writeParts`, the `Parts` read in `loadAgain`, `comeBack`'s `parts` argument, `fromDump`'s second naming from that message); round 1's road kept (`fromDump` asks once more over the same connection, `loadAgain`, `joinOn` reading on to a welcome); the conflicts: abi/wire.zig's 31 line (both sides' sentences, round 1's without `parts`), `Peers.join` (the dump line took `dumpJoin`'s `.{ bytes, digest }` inline where round 1 had split the dump and the welcome out, `Peers.dumped` and `Peers.welcome`: `dumped` now returns the bytes WITH the digest `dumpJoin` took at the dump's moment and `welcome` takes that digest, so a join again over the link (`dumpAgain`) has the dump line's guarantee too, where round 1's `welcome` read `tape.digestOf(core)` after the dump), `fromDump` (the dump line's named refusal and round 1's loop: now the first refusal names its fields in the log and asks once more, a second, or a link that cannot ask (its words kept, `j` and its dump the caller's), gives up naming them in its words: "the session's dump loaded as another session twice: fs differs"); `loadAgain` asks before it lets the dump go (the dump line's test hands `fromDump` a dump of its own and no link: it was freed); semantic conflicts looked for: the one decision's `Replica.confirm` and core/tape.zig (`feedsTerminal`, `touchTerminal`, `Pending.terminal`, `shell_rows` gone): nothing of round 1's used them; the rollback copy's walk: `Peer`'s and `Link`'s new state (`gen`, `written`, `back`) is outside the core it walks (Peers and Link are the engines', not `Pardes`'s fields), nothing to declare; tests: round 1's "refused twice" made from the dump's own parts (its first field's word changed in the dump, no message), the dump line's "says which field" given the session's name argument; root.zig's machine_lines for replica.zig 90 -> 89 (`loadAgain`'s close gone); core-test 930/1094 (164 skipped: the base's 924/1088 and round 1's six), shell-test 1136/1139 (3 skipped: the base's 1130/1133 and round 1's six)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
diverged, fell 2 s behind, or the session cut it off 64 MB behind) comes back OVER THAT LINK, the daemon not asked: its goodbye that says `again` and today's hello for its view in one write (`replica.comeBack`, runtime/client.zig `Loop.run` when `Link.backHere`), its reader letting the stream it leaves go (units, blobs and checks not even copied) and stopping at the session's welcome there, put back at its framer's front for the join's reader (`readLink`'s back mode, `Framer.putBack`), the join read on that framer (`joinOn` takes it; `replica.join`'s `here`); on the session the reader reads on after a `bye` that says `again`, a hello after it is the same client back (`Peer.take`, inputs numbered afresh), and `Peers.joinAgain` dumps for it there with what the old road put on the tape (`awayView`, then the join's `viewFor`: every side's terminals reloaded in that step), what was queued for it let go, the cut over; one writer loop writes a join whenever one is due (`Peer.gen`, `Peer.written`; the `.joined` note carries its gen so a stale one releases nothing), what it was sent a MiB at most a write at a message's end (`writeOut`) so a join due waits for no more of the old stream, a far client's old zstd frame ended before the welcome; a cut keeps the link (its words, then nothing until the hello); a link that ends before the welcome (an Upgrade's or a Restore's words: the session closes it), or one gone, is dialled again as before: the one case left for a redial; and a client refused its own load (`fromDump`) asks ONCE more over the same link with the session's digest a word a field after that dump (wire 31, nothing at 31 installed: a bye's byte 3 = `again` + `parts`, a new ServerTag `parts` 0x0d) and only then gives up, naming the fields that differ in its words and its log; the failing run first: test/daemon.py's new `pair_back` (a no-daemon pair whose client diverges, and one stopped 3 s while the session is edited) on the installed build 79b73e14711e: "the client and the session went (client exit 1)", "'diverged' let this client go", on this tree both join again over their own link, the session alive, the unsaved text there, agreed; `clients`: client D's socket the same across its rejoin, the session counting 6 joins, 1 over a client's own link and 5 handed by the daemon; `far_flood` (20 KB/s, 200 ms): the same link after 3 joins again of 0.56 s each against a dial each time on the installed build (0.99 s each), but agreement 68.6 s after `yes` ended against 22.7 s: the client reads through what the relay holds for it (the relay buffers without bound; ssh bounds it by its window), said in reports/pardes-link-lifecycle.md; `Peer.rejoin` and `hungUp` stay for the one road that still dials after a goodbye saying `again` (a client of another build exec'ing: `sameBuild`), their test rewritten for it; core tests at the replica's surface with real link threads (near and far: back over its own link; a refused load asked once more and loaded; refused twice and named, against a session played by hand; a cut client back over its link, the same peer, connection and view); the soak models the road (`ended`, `Soak.joinDown`, the `here` column); core-test 924/1084 (160 skipped), shell-test 1126/1129 (3 skipped), root.zig's machine_lines for replica.zig 76 -> 90 (the tests' sockets and sleeps; the session's one shutdown of a link it will not dump for again, and a close)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | |_|/
|/| |
| | |
| | |
| | |
| | |
| | | |
read through one helper, `addon.cSlice` (abi/addon.zig), NULL being none whatever the count: the bridge says none with a NULL (pardes_pdf_search_page with no hit, pardes_pdf_select over no text, pardes_pdf_load_outline of no entries: each OK with a NULL and a count of 0), and Zig slices a NULL C pointer with a safety panic even at length 0; every site in pdf.zig (jobRun's page text and hits, pageText, hitsOf, selectHere, probeAt, follow, the outline's usable, resolve, sections and section, its bytes now bounded by bytes_len), abi/addon.zig's own (its private `span` was that helper for bytes alone; open's bytes), and the core's kind-ABI callbacks (Kind.zig look, say, text, exec, select, found; Addon.zig loadedOf's words), the core taking the addons' module (`addon`) for it; what holds the next site: pdf.zig's test (run by addon-test, which now runs the pdf module's tests) takes every typed pointer field of the bridge's structs from the translated header at comptime and fails on any `.field[` in pdf.zig, naming the line (shown by putting one site back: "pdf.zig:1014: pardes_pdf_text.data read bare"); the test of the change before passes, with every PDF behaviour test (8/8, Debug)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | |/
|/|
| |
| |
| |
| |
| | |
first run (test/daemon.py `gui_upgrades`' `echo $$`, twice this week a ValueError on its second line, `b''`) answered `error not run` while its command ran, and a run written just after a new terminal's greeting is typed answered `exit 0` with the greeting's `ls` output; (a) every window session's first terminal is sized twice, its shell forked at 78x14 and sized 78x13 by the window's first frame about 20 ms later, at its first prompt, where readline draws the prompt again (`\r\e[K\r` and PS1, marks and all): a run's line sent into the first prompt shows on the redrawn one, `noteMarks` takes that newer prompt with no C for the line fish refuses and keeps (Ctrl-U, `.kept_line`), and the read after it, the line's newline before PS0's C (bash writes them apart), leaves the cursor on a fresh row in the input which `prompt()` called an empty prompt: `error not run`, the command's C a read later (the ponytail at pty.zig's refused branch named it; the same under an adoption's two sizes, which test/daemon.py `adopted_pid` waited around since ymvuluxr, then ruled a run "told plainly that it did not run": it had run); now a row begun by a newline in the input, with no prompt on it, under a typed line, is not an empty prompt (core/term/terminal.zig `prompt()`, abi/term.zig's `input_empty`): the line was taken and the run waits for its C; (b) the greeting `ls\r` is typed at a new terminal's first prompt (Core.zig's layout), and until its echo the prompt looks empty: a run sent then is typed behind it and its want (started+1) is the `ls`'s C; now the pane keeps that its greeting was typed (`Pane.greeted`, cleared at a shell's start) and until the prompt after it a run waits for that prompt (pty.zig `greeting`: writeRun, noteMarks, pty/status's busy), as for the first, bounded since `ls` always starts (the reference says so); the failing tests first (core/ninep/pty.zig, shell-test): "a prompt redrawn under a run's line, the line taken, is the line run: never `error not run`" (the bytes pty/data read off a failing ReleaseSafe window start; on the base `error not run`) and "a run written just after a new terminal's greeting is typed is not answered with the greeting's output" (on the base `exit 0\nnotes.txt\n`); a user could hit both: a script that starts pardes-gui and runs at once in its shell (a retry on `error not run` runs its command twice), and one that opens a Term and runs in it at once (another command's output for its own, exit 0); the rates (.scratch/sketch/reorg/pardes-first-run, 200 runs a row pinned to CPU 6 and to CPUs 6,7, no made load, loads 1.5-10): every one of 24 rows 200/200, the base and this, Debug and ReleaseSafe, a window session and a terminal's, plain and with a WINCH trap in the shell's .bashrc: the fault is rare on its own (2 of 108 diagnostic ReleaseSafe window starts with that trap; the coordinator's checks twice under load), Debug never reaches it (its first frame comes before bash's first prompt), and its adopted twin comes more often: test/daemon.py `--relink` with adopted_pid's wait taken out, the installed build 18 of 20 (two `error not run` on the adopted shell), this tree's ReleaseSafe 20 of 20; the gates (with the harness change after it): tui Debug core-test 924/1090 (166 skipped: the two new tests need a terminal), shell-test 1132/1135 (3 skipped), process-test 0 of 146 (loads 3.0-6.2); test/daemon.py on ReleaseSafe: plain 1/1, `--upgrade` from the installed build (wire 31) 1/1, `--upgrade --gui` from the installed build 5/5 (loads 1.1-5.8); left: the Ctrl-U a redraw that shows the line still sends (it reaches bash after the line's Enter: a bell at the next prompt), `busy` for a run written into a prompt being drawn (its A read, its B not yet), and a line a user types, or `Term CMD`'s queued line, in the instant before its echo
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| |\ \
| | |
| | |
| | |
| | |
| | |
| | | |
join's dump with its digest on the one decision: pardes-m62-base (`lkzwnmls`: pardes-merge60 + pardes-one-decision) and pardes-dump-digest (`rwmqumpw` on `oyournly` on `ollusskr` on `xsutplvu`, on pardes-m60-base: a join's digest is taken with its dump (`dumpJoin`), which makes no host call: a 9P request served in a dump's gap no longer leaves a client refused its own load; the hand-walked types listed with the tests that join over each; a refused load names its field); no conflict; core-test 924/1088 (164 skipped), shell-test 1130/1133 (2026-11-23)
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
what one walk cannot hold is listed and tested, and a client refused its own load names the field: the copy, the digest and the dump of the core already come from one walk with one declaration a struct (core/walk.zig `replica`: local, derived and authority fields in none of the three, every other in all three), so a field cannot be in the digest and out of the dump; what escapes that walk is a type that walks itself by hand, a `digest` or a dump of its own (eight reach the core: fs.Namespace, tree.Open.What, the pane's 9P state, Term.State, Kind.Slot, locations.Row, jj.Session, File.Layers), and the moment the two are taken at (the previous change); `walk.handWalked(roots)` lists at comptime every type the walk reaches that walks itself by hand, and replica.zig's `hand_walked` names, for each, the test that joins a client from a dump of a session holding it and checks the load by the welcome's digest: the test of that name fails for a type that walks itself by hand with no line (dropping File.Layers' line: "File.Layers walks itself by hand and no test joins a client over it") and for a line whose type no longer does; jj.Session and File.Layers had none (their tests replay a client from the start): `loadsAsSession` (any test's session, a client joined from its dump, the fields named) ends the jj test that replays Changes, its pins and lanes crossing a join whole; and a join's dump ends with the session's digest a field at a time (tape.digestParts, after the walk with nothing between; `dump.joinParts` reads it; the loader reads its roots and stops before it), so a client whose load is not the session says which field in its words and its log (`fromDump`: "the session's dump loaded as another session: fs differs", a warning line `client N: ...`), the diagnostic build's naming kept in the product, tested by a dump made before a 9P open checked by the digest after it; what this cannot hold: a hand walk's body (the list makes it seen and tested, a reviewer reads the walk), a load's own changes after it reads (Replica.made, loadKnowing's fixups: the roundtrip tests catch them only for the state the tests build), a host call in the join's dump on a road no test session reaches (`error.TurnGivenUp` refuses that join in words), and the dump of a type a test session never holds; its gate (this tree, .scratch/sketch/reorg/pardes-dump-digest/g1, loads 0.6-13.5): IN THE WORKSPACE core-test 922/1082 (160 skipped), shell-test 1124/1127 (3 skipped), each the base's plus the five new tests, addon-test 5/5, term-test 17/17, kitty-test 45/45, process-test 0 of 146 failed, pane-test 182/183, behaviour-test and --replay 275/275, consumer-test; the soak --clients 5 three times: diverged 0, unequal 0, unlisted 0 at 30/80/207 ms, quiet checks all agreeing, the corpus 22 of 22, no leak; daemon.py on Debug and ReleaseSafe: plain 3/3, --clients 3/3, --far, --restore; --upgrade from the installed build (wire 30) 3/3, --upgrade --gui 3/3, between the tree's own builds 3/3 each way; cross-builds 3/3; the frame and perf gate against tree4: 77/77 frames, perfab corpus2x -0.009% (noise 0.021%), 121 counts within 0.1% (largest terminal on all +0.0786%; no key's path changed, no field left the digest); the one-CPU upgrade rows: every run past the rejoin step fault D failed, 28 of 30 whole (the next change)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
nothing and hands back the digest it was made at: a client that came back while 9P requests were live (a script reading /screen, the /mnt/9p mount) loaded the session's dump and refused it as another session's, exiting for good while its session was there (fault D, reports/pardes-upgrade-back.md: the upgrade row's rejoin, about 3 in 75 on one CPU, and its family in pair_exec_reaps): the join's dump stat'd each pane's file for which were on disk (core/dump.zig `dumpWith` -> `onDisk` -> exec.kindOf, a `.kind` tape site that gives up the turn, tape.out), a 9P open, read or release (none waits for quiet: ninep/tree.zig `needsQuiet`) was answered in that gap by a connection task, and `Peers.join` then took the welcome's digest over the moved `fs` (tape.digestOf after the dump): the client's load, from before the request, could not be it; and the request, recorded after the join's cut, was in the client's next unit too; `fs` is ruled replicated state, as it was: every 9P request is a taped input each replica replays (Core.zig `serveFs`), a write on an open reads its record (the half line, the results, the lock, the held writes: the previous change's fifteen kinds, the tests at the replica's surface below them), and its dump carries what its digest hashes (the property's 300 joins); what was wrong was the moment, not the field; now `dumpJoin` returns `.{ bytes, digest }`, the digest taken in it after the dump with nothing between, `Peers.join` and `Authority.join` take it from there (no caller can take it at another moment), a join's dump writes `on_disk` as none (only a revival reads it, from an image: `image` keeps its stat; a client's load discards it: loadKnowing's `on_disk` is null for `load`), and a turn given up while the dump is made fails it (`error.TurnGivenUp`: the join is refused in words, `that session could not be dumped`, never loaded otherwise); `byteDump` (tests only) is the join's dump with its blobs in place, as its tests take it; the previous change's moment test passes (the join asks the host nothing: the stat that let the request in is never made, the turn's yields do not move); core-test under the filter `join` 52/61 (9 skipped)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
core, and the join's moment: core/replica.zig, at the replica's surface (`NinepJoin`), each kind the struct has (fs.Namespace and the `tree.Open` records it holds: an open of /screen, a /log reader, a listing frozen at its open, a pane's event reader, a ctl open holding a pane's lock, half a line held on exec, a refused line's tail being discarded, a name taken, a look's results on its open and the session's, writes to a body held as one edit, sel's writes running on, a /pager open holding its text, a plumb message short of its data, a plumb port's reader, the workspace's tag truncated; `held` and `replay` are the listener's, out of the walk) left by the requests a script makes, then a client joined from the session's dump: digest(load(dump)) is the session's for all fifteen on this base, so no kind is hashed and not dumped, dumped and restored otherwise, or dropped on one side; the same as a seeded property, 300 joins at random points of random opens (every mode), writes, reads, releases and truncations over sixteen files, the session's fs taking every shape a script gives it, passing on this base (its program, eleven tests, 1 s in Debug); and the join's moment: the session's io given a stat that lets a 9P request in first, as the turn's yield around a host call does (tape.out), the request a script's open of /screen (which waits for no quiet: ninep/tree.zig `needsQuiet`): on this base the client's load is not the session, `fs` differs, the join's dump having asked the host once and given up the turn once (dump.zig `dumpWith` -> `onDisk` -> exec.kindOf, a `.kind` site, for each pane's file): fault D of reports/pardes-upgrade-back.md in process (a client back right after an Upgrade refused its own load, the diagnostic build's `client 1 view 2 load differs: fs`, while daemon.py's `saying` read /screen every 10 ms of a session with notes.txt open: each join stats that file); the next change is the fix; core-test under the filter 13/14, the one failing the moment's
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| |\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
decision on the tree to install: pardes-merge60 (`krovvoum`: the viewport, a client's way back at an Upgrade, the pair's round 12, the lanes on the glide; in its whole gate) and pardes-one-decision (`ltvyvwru` on `wllwukuk` on `trmpwtso`, on pardes-viewport: one count of an emulator's writes in the core (`Pardes.outside`), copied, digested and dumped, which `Replica.confirm` reads once a unit where four spread checks stood; the rollback copy walks every type unless it declares `outside_copy`: the Changes layer's heap was not walked and was freed twice); no conflict; core-test 919/1083 (164 skipped), shell-test 1125/1128 (2026-11-23)
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
outside the core by its own declaration (pardes-term-join-12, item 1: the double free of round 11's gate): the copy skipped memory two ways, by inference and by a list, and each let a write survive a put-back: (1) `unwalked` took any type with a digest of its own and no `replica` annotation as outside the copy, so `jj.Session` (`Pardes.changes`, added with the layers) was saved as bytes and its heap never: a splice of the pinned lines at a client's edit (jj.edited) wrote a new `lines` into the answers buffer in place, the put-back freed it and left the pointer, and the next splice or the core's end freed it again (the test before this: allocated at jj.spliceValues under the speculation, freed at Epoch.discard, freed again at jj.spliceValues; the soak's abort at jj.Session.deinit); now a type is outside the copy only by declaring it (`outside_copy`: Term.State, the emulator written by confirmed units alone and counted; locations.Row, made again and never written, in a pinned blob), and every other type is walked, whatever digest it has; (2) `unsaved` skipped the rows cache (`Pardes.shell_rows`, `.derived`) and the replica kept it apart by hand (`speculate` emptied it before its take, `toConfirmed` set it `.{}` after a put-back), which an idle client's copy (`ready`) never emptied: the rows read before it were orphaned in the epoch at every rollback; now the cache is the copy's like any state: its text and rows are made whole and freed whole, so they are blobs the copy pins (no copy of a grid's text; freed raw), the put-back restores the cache with the core (valid: no emulator is written while a copy is held: a unit that writes one lets the copy go, or is applied after it is put back), and both hand resets are deleted; THE RULE the compiler holds: a type is skipped by the copy only by its own `outside_copy`, and a cache (`.derived`) on the copy's skip list (`unsaved`) is a compile error ("a cache the core holds is the copy's, or lives beside what it caches, outside the core"); the copy pins a blob once whoever reaches it (a text and the allocation it starts: never pinned twice nor also saved); not changed: the arenas (the copy saves their bytes, not their nodes: scratch content), the queues (asserted empty at a take), the host's and the process's own (store, Recent, the echo, the tape), a picture's pixels under a speculation (replica.zig's ponytail at `initDump`); the three tests of the change before: pass (the jj test and the rows test under a DebugAllocator as the epoch's child too, no double free reported); the gate (g12, a frozen copy; loads 1.5-12): core-test 918/1082 (164 skipped), shell-test 1124/1127 (3 skipped), term-test 17/17, kitty-test 45/45, pane-test 182/183 (1 skipped), behaviour-test and --replay 275/275, process-test 0 of 146 own and as pairs, the soak 3 of 3 whole and 10 of 10 at seed 0 and 80 ms (diverged 0, unequal 0, unlisted 0, quiet checks all agreed, the corpus 22 of 22, no leak, no abort), daemon.py every mode on Debug and ReleaseSafe (plain 3 of 3 each, --far 7 of 7 on ReleaseSafe, --games on ReleaseSafe with the Debug prefix's game libraries), --upgrade from the installed build 3 of 3, R2D 1 of 1, D2R 4 of 7 (two known test races: Exit's clunk answered after the window ended, far_exec's environment read at the exec; one quiet check of a Debug window client's key not in 30 s, load 6.1), --upgrade --gui 3 of 3, the cross-builds, the frame and perf gate against tree4: 77/77 frames, perfab corpus2x +0.014% (noise 0.049%), 121 counts within 0.1% (largest terminal on all +0.0794%), the gui unit-test 1719/1723 in the workspace (4 skipped, none failing; the copy's longer build root fails six tests whose messages name a temporary path: a 9P error's room is Plan 9's 128 bytes, ninep/tree.zig:549-556)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
read of a terminal kept on the fast path (pardes-term-join-12, items 1 and 2): round 11's gate aborted in its second soak ("double free or corruption (!prev)", seed 0 at 80 ms, not reproduced alone, 1 of 3 soaks), and its core, kept by systemd-coredump, says where: a client's core at its end (`Replica.deinit` <- `Soak.close`) freeing a jj `Ask` from `jj.Session.deinit`, freed before: not the rows cache round 11 suspected; the class: `jj.Session` (`Pardes.changes`) hashes itself and has no `replica` annotation, so the rollback copy never walked it (rollback.zig `unwalked`): it saved the session's bytes in the core and nothing they point to, and a write in place into that heap (jj.zig `edited` splices every pinned `Changes.lines` and `Heat.lines` at every edit of the file) stays through a put-back that frees what the speculation made; core/jj.zig "a client's own line opened over pinned changes, rolled back by the session's key first ...": a client's `o` in a file with `Changes ::@` pinned, the session's own key first, the `o` applied again: on `trmpwtso` it aborts (a use of the freed lanes, paintLanes index 926155716 of 6), and with a DebugAllocator as the epoch's child (a local diagnostic, never committed) both frees are named: allocated at jj.spliceValues under the client's speculation, freed at rollback.Epoch.discard when the copy is put back, freed again at jj.spliceValues as the `o` is applied again over the answers buffer that still holds what the put-back freed; core/replica.zig "bytes: a terminal's rows read before an idle client's copy are the copy's ...": rows read between steps (a draw's), the copy taken idle (`ready`), a key of the client's on top and the session's first: on `trmpwtso` the rows are dropped (`toConfirmed`'s `shell_rows = .{}`) and left in the epoch until the client ends, a grid's worth of text at every such rollback; core/replica.zig "bytes: a client's key that reads a terminal's rows, the session's output before it in the session's order ...": a `G` over a shell's rows, the program's output first: the output rolls it back (its count moved: never a neutral unit), the `G` is read again over the fed rows and kept on the fast path with the session's cursor: passes on `trmpwtso` (item 2's question: on the one road a kept speculation's read of an emulator is never stale, so "this input read an emulator" needs no fact of its own); shell-test filtered: 11/12 (the jj test's abort), 11/12 (the rows test: expected the cache's address, found it dropped), 12/12
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
(pardes-term-join-11, item 2; P54, the coordinator's lean, held against the code first): `Replica.confirm` asked one question four ways from three sources ("did applying this unit write state outside the rollback copy, an emulator?"): the speculation's own observation (`Pending.terminal` from `Tape.touched`, set by `touchTerminal` at a grid it owed and at every READ of a terminal's rows), the unit's records (`tape.feedsTerminal`), a process-wide counter (`Term.writes`, seven increments, shared by every side of the soak's one process) and a dead read (`read_terminal`, always false); round 10's predicate over the records failed because no record names the unit whose `sync` reflows a grid, a load or a teardown; now the core counts its emulators' writes itself (`Pardes.outside`, a `Term.Outside`): a field, so copied with a speculation, digested and dumped, a function of the tape, the same on every side; every write of the `calls` table's WRITE rows takes it first and counts (core/Term.zig `open`, `close`, `revive`, `reload`, `feed`, `resize`, `endOutputHere`, and `replies` when it drained any), a comptime block fails the build if a WRITE row's entry does not take it (the compiler holds the call sites; S1's `calls` test holds that a new write is listed); `resize` owes under a speculation (counted, not made: the grid's guard moved there from panes.zig `resizeGrid`); a load sets it (the walk loads the field; `dumpRead` counts nothing); the one read in `confirm`: on the fast path the count's movement over the input's speculation (`Pending.outside`, a number, equal to the unit's by the path's premise: moved, the unit is replayed once on the confirmed core), on the replay paths its movement over `replayUnit` on the core that applied it (moved over a copy held ahead, the copy goes), and on the neutral path no read at all: the session's digest after the unit holds the count, so a unit that wrote an emulator never ends where it began (`feedsTerminal` deleted with its one use); the predicted echo is judged at every unit that moved it; DELETED: `Tape.touched`, both `touchTerminal`s and the read-touch in edit.zig `shellRows` (a read writes nothing outside the copy; on the one road a speculation reads the confirmed emulator), `Term.writes` and its seven increments, `feedsTerminal`, `read_terminal`; where the lean does not stretch, said and not built: a picture's pixels, a kind's state and the Store's closed list are written BY a speculation, so the fast path must let the copy go, not replay: `panesMoved`, the serials and `retiring` stay for them; the dump changes (a core field): the wire stays at 31 (its history line says so); tests: the existing path tests green (fast, neutral, ahead, owed grid, "a view that sized a terminal closing leaves nothing queued ..." among them); new: a session's reflow of a terminal's grid over a copy held ahead is the count's to decide (a unit with no output record: the copy goes, a rollback does not reflow again), and the count digested (one side's emulator written outside any unit, a colour set no other digested field shows: `partsApart` names `outside` alone); core-test 917/1079 (162 skipped), shell-test 1121/1124 (3 skipped), the gate below
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| |\ \ \ \
| |_|_|/
|/| | |
| | | |
| | | |
| | | |
| | | | |
back at an Upgrade, the pair's round 12 and the lanes on the glide: pardes-m61-base (`vzptorpy`: pardes-viewport (`llpwyqul`, the gathered line: a terminal's viewport a view's state, the wire at 31, the terminal put back at a TERM; gated whole as merge59) + pardes-upgrade-back (`krqkqlyo`: a client no longer gives up while its session upgrades; an old build's early rejoin keeps its view) + pardes-pair-12 (`mlutslkp`: a 9P request that changes the core waits for the pty output read before it; the soak with a pair)) and pardes-lane-glide (`nwzurwns` on `nnwosomt`, on pardes-raw-tty: in a window a change's lanes ride their lines' glide, kept with the rows that left, cut to the body); no conflict; core-test 918/1078 (160 skipped), shell-test 1120/1123; its gate: .scratch/sketch/reorg/merge60, the numbers in PARDES.md (2026-11-23)
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
`Changes`' lanes (Surface.lanes: a strip a level in the gutter's lane cells, decor, not cells) at the rows their lines have in the core, with no lag, no cut to the body and nothing for the rows that left (dev/gui/gui.zig buildDecor's lane loop: the glide's rows, emitScrollRows, and the rail's thumb, paneDecor's lagLines, had the picture's lag; the lanes, added later, never did), so at every scroll (a wheel's notch, Ctrl-d, a page, a touchpad's fraction) the strips leapt to where their lines would be and the text glided in under them, on every frame of the glide (the user's "the animation for the things in the gutter makes them keep jumping", 2026-11-22; in a test window on core/echo.zig with `Changes pardes-installed-20261122..main`, a wheel's three notches: the glide's first frame has the text unmoved and every strip three rows up; a terminal is untouched, its lanes are cells); now `laneDecor` draws a scrolling body's lanes as emitScrollRows draws its rows: the lag less (a glide's offset, else scroll_lag; the lift of held context rows), cut on the CPU to the body under its held rows (the shifted rows' scissor), and the rows that left keep theirs in the gap: the glide remembers each frame's lanes with its cells (`last_lanes`) and moves a kept row's lanes with it as it moves its cells (`above_lanes`, `below_lanes`: a `RowLanes` a row, at most `Lane.levels`, now Lane's own, which jj.levels names), and a touchpad's edge row keeps its own (`scroll_edge_lanes`); remembered by the glide rather than made part of what a row is (a lane in Cell): the frontend's alone, nothing in the core, and nothing added to every cell of every frame for a layer most bodies never show; the scrolling body and the rows that left it are one function each for the rows and the lanes (`scrollBody`, `ScrollBody.leftRow`, `glideLeft`, out of emitScrollRows); at rest a strip is the same rectangle as before; nothing in the core's step changes; looked at mid-glide in the same window: an added line's green ground, a ghost row's red ground, a changed line's word grounds, a description row, Churn's cell after the line number and the `~` past the last line are cells and ride with their rows; Churn's strip on the rail maps the whole file and stands still under the moving thumb, as it should; a frame's cost with three lanes on each of 70 body rows (219 lanes; a scratch bench, glideFrame and buildDecor a frame, `perf stat -e instructions:u` at 2,000 and 6,000 frames, ReleaseFast): at rest 67,744 instructions against the base's 65,644 (+2,100: the lanes copied with the frame, 1,752 bytes, and the strips' loop), a glide's frame 81,472 against 65,832 (+15,640: every strip cut and moved, and the gap's), a frame with a scroll input 1,125,708 against 1,103,120 (+22,588, the measure's 1.1 million the most of it); the text timedemo's frame is 9.38 million (tree4): +0.02% at rest, +0.17% gliding; memory: the glide's kept rows' lanes, 26 bytes a row, 2 bodies' rows a side (3,640 bytes a side at 70 rows), allocated with the kept cells, and the last frame's lanes (8 bytes each) in a list that grows only past the most a frame has had: nothing allocated a frame; no frame later: the strips are computed in the frame they are drawn in, from what the glide already holds; the previous change's test passes; the gate against tree4 (gpu/lane-glide-g, load 5-10): 77/77 frames identical, gui unit-test 1710/1714 (the base's 1709/1713 and this test; its one failure the base's), perfab corpus2x +0.026% (noise 0.092%), pictures identical in all 10 runs, the 121 counts within 0.1% (largest image-frame on small +0.0057%); tui core-test 917/1074 (157 skipped), shell-test 1116/1119 (3 skipped), the base's
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| |\ \ \ \
| |_|_|/
|/| | |
| | | |
| | | |
| | | |
| | | | |
pair's round 12 on the viewport's line with a client's way back: pardes-m60-base (`pyquvrsv`: pardes-viewport + pardes-upgrade-back) and pardes-pair-12 (`mlutslkp` on `ntlpyokw` on `zsquynqy` on `wowqsyxt`, on pardes-raw-tty: a 9P request that changes the core waits for the pty output read before it (`Turn.awaitOutput`: pagercolor's cause on both paths); a pair's client takes the tests' clock; the pair rows name the side that went; the soak with a pair among its sides); no conflict; core-test 918/1078 (160 skipped), shell-test 1120/1123 (2026-11-22)
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | |/ /
| | |
| | |
| | |
| | |
| | |
| | | |
the ptys before it, as a terminal shows a program's output before what it led to: `cmd | pardes -` typed in a pane writes its pager over 9P after the shell echoed the line and started the command, and the session, which feeds its queue a read a step (dev/tui/tui.zig `takeQueue`), could still hold that echo when the write was served at its next rest (runtime/9p_io.zig `onServe`); the pager's layout then gave the shell's pane its rows as the stale emulator had its cursor (one short), and the emulator's resize cleared the command line as a prompt the shell would draw again (ghostty's Screen.clearPromptForRedraw: the cursor still after `133;B`, the `133;C` not yet fed), which bash, running the command, never did; process-test's `pagercolor` failed so as a pair 7 of 20 pinned to one CPU (a client's keys reach the shell a step each, so its echo comes a key a read: 55 reads queued in a failing run, the write served with seven still to feed) and on the own path 1 of 20 (its keys a burst a step: a read or two); now core/Turn.zig counts the reads (`reads`, by each pty reader as it reads, dev/Inbox.zig `readPty`, beside `unapplied`) and those applied or dropped (`applied`, `outputApplied` from `Inbox.applied`), and `awaitOutput` waits, the turn given up, until every read made before the request is applied, only while the editor waits in its loop (`listening`, set by the new `listen` in the tui's `waitOnce` and the window's `waitInput`, cleared by `wake`): resting in a call of its own (a save through its own mount, core/fs.zig `writeOut`) it applies nothing and the request goes first as before; `onServe` waits so for every request that `needsQuiet` and asks `quiet` after; a user could hit it typing or pasting `cmd | pardes -` in a pane of a session with a client attached, or under load on the own path (the pager open, the command line wiped from the shell's screen); pagercolor pinned to CPU 5 after: as a pair 20 of 20 first time, own path 20 of 20 (before: 13 of 20, 19 of 20); a core test of the rule (`Turn` now in core's test imports); core-test 918/1075 (157 skipped), shell-test 1116/1119 (3 skipped)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| |\ \ \
| |_|/
|/| |
| | |
| | |
| | |
| | | |
client's way back at an Upgrade on the viewport's line: pardes-viewport (`llpwyqul`, on pardes-tj11-base: where a view stands in a terminal's history is the view's, the wire at 31; in its whole gate as merge59) and pardes-upgrade-back (`krqkqlyo` on `kryvuotu` on `vlmyrllp` on `qltlrpvu`, on pardes-raw-tty: a client no longer gives up while its session says it is upgrading; an old build's client that comes back early says bye with `again`, the view kept for it not closed; test/daemon.py keeps the evidence of a failed upgrade and reads a far client's environment once its new image runs); no conflict; core-test 917/1077 (160 skipped), shell-test 1119/1122 (2026-11-22)
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
daemon has heard the session's new build no longer closes the view kept for it: the daemon judges a hello by the build its session last said (runtime/daemon.zig `hear`), so in that window it hands the old client to the new session, which welcomes it into its kept view (Peers.join, rejoinView); the client then finds another build (`sameBuild`) and said its bye without `again`, so the session closed that view: its exec'd self (client.zig `execAgain`) came back in a new view, its layout and pane lost, and one that never comes back left no view kept for its 30 s; now a rejoin's bye on another build says `again`: the view stays kept (views.away) for the build at its start path or until its bound; test/daemon.py --upgrade release to Debug on one CPU failed so 7 of 20 (5 at "the daemon lists the session": the join before it welcomed, the next refused "one is kept 30 s more"; 2 at "the second client of the build running drawn"), traced: `join view=3 ... as view 3` (the stale old-build client) then `open=101`; after (both builds with it) 0 of 20 there (18 of 20 whole: the other two the dump-load fault the first change keeps); core-test 917/1074, shell-test 1116/1119
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | |/
| |
| |
| |
| |
| |
| | |
is upgrading: `redial` (core/replica.zig) counted the session's own refusal `upgrading` (Peers.refuseAll, from telling its clients until its exec, the dump written and fsynced between) as one of its 201 tries of 100 ms, so an Upgrade whose dump took over 20 s let every client go for good, each exiting "could not join again: the session is upgrading to another build of pardes" while its session came back (a release build alike: the bound is the client's); now that word is dialled again without counting, every other failure keeps the 20 s; with an experiment's 24 s sleep after refuseAll (a slow dump) the base failed 1 of 1 with the gate's words (both clients gone, `--ps` listing none, the session back at 24.2 s) and this passed the step 2 of 2 (both back at 24.2 s, with the session); not the cause of the gate's failures as kept (the session back in 0.3 s there): traced on one CPU the window is 33 ms; core-test 917/1074 (157 skipped), shell-test 1116/1119 (3 skipped) (load 3.4-4.1); left: a client of a session stuck inside its Upgrade keeps dialling, a TERM to it waiting as it waited up to 20 s before
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | |
| |
| |
| |
| |
| |
| | |
seeds, and its one disagreement ruled (pardes-term-join-11, item 1b: round 10's late finding, seed 1956: "carried 46, ghostty's own null"): the failing run first, a probe of seed 1956 step by step: a 44x3 terminal, the view on row 23 (the active area 24-26), resized to 21x6 (narrower AND taller): ghostty narrows in two phases, the rows first (PageList.resizeWithoutReflow: the active area grows to rows 21-26 and takes the view's row, so its pinned viewport is set to the output there, PageList.zig:2944-2950), then the reflow (row 23's line on rows 46-47 of 55, the active area 49-54): the row is history again, but ghostty decided in between; the carry (terminal.zig `carry`/`carried`) reads the pin's row once, after the whole write: 46, history; the ruling (the coordinator's lean, 2026-11-22): nothing under the view went away, ghostty's jump is the order of its own two phases (a widening's reflow checks before its growth too, PageList.zig:1525-1531), so the view stays on its line, and a view stays a function of the end state, not of the emulator's steps; so the carry is right and the oracle is taught: the fuzz's body is `carryFuzz` (one seed, how many it put back), whose oracle holds a pin of its own at its view's row through each resize, and where ghostty's view went to the output while that pin's row is history again, puts its view back on that row and counts it; the seed is its own test ("a scrolled-back view stays on its line through a narrowing that grows the rows ...", exactly one put back); the fuzz at 3,000 seeds (a local run, the bound put back to 300): clean, every disagreement of that one kind; not exercised by the fuzz and checked by reading: an erase of the history (CSI 3 J: the pin is garbage, the history empty, the place on the output, as ghostty's), a reset (ESC c: the screen made again, the place on the output, as ghostty's), a pruned row at the cap (the history's top, as ghostty's `.top`); a user could see it: a scrolled-back view of a pane made narrower and taller at once stays where it was reading, where ghostty the terminal would have jumped to the live screen; term-test 17/17 (the base's 16 and the seed's test), the 3,000 seeds 2/2
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| |\ \
| |/
|/|
| |
| |
| |
| | |
line): the viewport in the view and the patches in the semantics hash on merge58 with the terminal put back: pardes-raw-tty (`muwnrqro`, on pardes-merge58: a TERM that reaches a session while it leaves its terminal no longer leaves it raw: `Killed.disarm` puts the cooked modes back itself, `leave` calls it last) and pardes-term-join-10's two changes (`xktusoyq` on `qtxssxyk`, on pardes-term-join-9: where a view stands in a terminal's history is the view's (`Pane.scrolled_to`), carried once a confirmed write that moves rows, the wire at 31; build/patches hashed into a replica's semantics); no conflict; core-test 917/1077 (160 skipped), shell-test 1119/1122, pane-test 182/183, term-test 16/16; NOT gated whole: the viewport's gate had one perf count over its budget ("terminal on all" +0.235%), which the next round brings down before this is the gathered line (2026-11-22)
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | |
| |
| |
| |
| |
| |
| | |
the emulator's (pardes-term-join-10, item 1; the note's point 3, the coordinator's choice): `Pane.scrolled_to` (core/panes.zig), a per-view field (views.zig `pane_fields`, `PaneView`: in the rollback copy, the digest and the dump, each view's own), the row its top shows or null on the output, written only by a step (`scrollBy`, `followOutput`), and carried with every open view's through each write of the emulator that moves rows, once, in the confirmed unit's apply, on every side alike (`Term.feed`/`Term.resize` take the places; core/term/terminal.zig `carry`/`carried` pin each place's row on the primary screen and read the pin back: up by the rows the history drops, 0 when its own row goes, null in the active area or after a reset: a function of the fed bytes); the draw reads the rows from the view's place (`viewport`, `paint`, `ImagesAt.place`, terminal.zig `shown`), and ghostty's own viewport is never moved, read, digested or dumped (`Grid.offset`/`view`, `Parts.view` and the digest's offset gone): two clients no longer scroll one viewport (the new views.zig test failed on the base, `expected 80, found 77`), and a speculation's scroll is in the copy, so `putViews`, the view half of `keepViews` (now `keepSerials`), `viewTo`/`scroll`/`follow` (ops, wrappers, bodies), the Debug screen hash's view exclusion, `reflow`'s column-0 cure and `feedOutput`'s follow-after-read are deleted, and S1's `calls` lists no view write (the rows `viewTo`, `scroll`, `follow` gone); tests: the two-view test (with a dump), the place at the history's cap (`setMaxBytes(1)`), a 300-seed fuzz of the carried place against ghostty's own pinned view, a client's wheel over a shared terminal through output and a rollback, round 6's order explorer (30 seeds a run); the wire at 31 (abi/wire.zig, test/daemon.py `WIRE`): an installed build's dump loads with every view on the output; IN THE WORKSPACE core-test 912/1072 (160 skipped), shell-test 1114/1117 (3 skipped), term-test 16/16, kitty-test 45/45, pane-test 181/182, behaviour-test 275/275, --replay 275/275, process-test 0 of 146 failed, as pairs 0 of 146; gui unit-test 1707/1711, its one error BaselineHarnessMismatch (every base's)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| |\ \
| | |
| | |
| | |
| | |
| | |
| | | |
the gathered line: pardes-pair-11 (`kpskrqqt`: pardes-merge57 with the pair's ten changes merged past the four already there, its conflicts resolved by the agent that gated it: a window client's Font, an addon's landing on the tape and a near client loading it by path when its bytes are the session's, a window's facts its client's, the terminal put back when a pair's client dies without a word, a Restore telling its clients, daemon.py's --with-pair and the Restore test) and pardes-regex-3 (`szlonulo` on `qzrzlnox`, on pardes-merge57: mvzr panicked on an empty group with more after it, a repeat right after | or ^, a count ending in neither , nor }: three Edits in build/patches.zig, docs/mvzr-empty-group.md, the test of every short pattern); no conflict; core-test 917/1074 (157 skipped), shell-test 1116/1119; its gate: .scratch/sketch/reorg/merge58, the numbers in PARDES.md (2026-11-22)
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
searches `()a` on `b` and `a()b` on `a` (no match) and on `ba` and `xab` (what they match), expects `a|*` `|+` `(|?)` `|??` `^*` `^+?` `a|{2}` `({1))` `a{1b` refused, and searches every pattern up to five characters over `()|*+?a` and four over `()|*+?a^{1}` from every offset of `aa\n\na`: refused, or answered inside the budget (Debug: its test program runs in 50 ms); on this base it aborts at its first case, `()a` on `b` (index out of bounds, index 0 of len 0, mvzr.zig:999 `patternAcceptsEmpty` from `groupAcceptsEmpty` :1040 from `matchPattern` :333 of the build's patched copy: the frames of the abort in .scratch/sketch/reorg/merge57/replicas-2.log, where the soak's random typist, narrowing a selection by a regex (`s`) a key at a time, took its session down); outside the tree (.scratch/sketch/reorg/pardes-regex-2/enum: this core/regexp.zig over the build's patched mvzr in a safe build, a forked child per panic) 18,746 of the 960,799 patterns up to seven characters over `()|*+?a` panic, every one indexing an empty slice: `patternAcceptsEmpty` (an empty group with more after it: `()a`, `a()b`), `thisPattern` and `nextPattern` (a repeat right after `|`: `a|*`, `|*`, `|??`); over wider alphabets two more kinds, a repeat right after `^` (`^*`: reached unreachable code) and a count ending in neither `,` nor `}` (`({1))`: index 1 of len 1): 68,627 of 5,229,042 up to six over `()|*+?a^$.{}1`, 40,135 of 5,399,042 up to five over `()[]{},*+?|\^$.-a1xnbf`; the next change is the fix
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| |\ \ \
| |/ /
|/| |
| | |
| | |
| | |
| | | |
(`vxutwuwz`, the pair's ten changes on pardes-merge50 past the four already gathered: a window's facts its client's (P47: WindowOpacity applied by a client window, `Font` gated by the desktop builds' capabilities, not the frontend's build), a window pair's session listed as a window's (P49), the user's terminal put back when a pair's client dies with no word (P48), a pair's user told a newer build is installed, an addon's landing on the tape and a client on the session's machine running a kind loaded by path (`Site.landing`, P51), an upgraded pair's session attended until its client is back, and test/daemon.py's `--with-pair`, `base_env`, `listed_as` and the Restore test as P44) on pardes-merge57 (the terminals' old road deleted, the wire at 30); two textual conflicts: core/replica.zig `Peer`'s fields (the pair's `bye` and `pair` kept, the deletion's removal of `sid` with its `Screens` kept) and test/daemon.py's head (the pair's `WITH_PAIR`, `base_env` and `listed_as` kept where the deletion had removed `KEEP`); the semantic ones the text did not show: the pair's `zwrkukrx` (`PARDES_TERM_BYTES`, its switch to the bytes road) merged without a conflict into core/replica.zig `takeJoined` (setting `r.t.screen_state`, a field the deletion removed), runtime/session.zig (`Peers.bytes`, removed) and test/process.zig (its passthrough): all three taken out, the gathered line's text there exactly, no road to choose (core/root.zig's machine_lines for replica.zig stays at the gathered line's 76: the pair's +1 was that getenv); test/daemon.py's two functions the gathered line added after the pair's base (`kept_views`, `kitty_image`) built their environment in the idiom `base_env()` replaced at every other site: now `base_env()` (the same without `--with-pair`; with it they run as a user who exported PARDES_PAIR, as every other mode does); the pair's `Peers.input` focus line, written after `screensOut` (deleted), stands alone before the step; `Site.landing` stays at the enum's end after `medium` (`images` gone): `wire.semantics` moves as any tape change does, no version line; and found by the gate: test/panes.zig's P51 test (the pair's, written on its old base) called `Authority.init` and `Replica.init` with the road's flag the deletion removed (pane-test did not compile): the argument removed, as merge57 did in core/jj.zig; nothing in core/tape.zig, abi/wire.zig or core/views.zig resolved by hand; gate (Debug tui in the workspace, loads 2-10): core-test 916/1073 (157 skipped), shell-test 1115/1118 (3 skipped), pane-test 182/183 (1 skipped: the base's + the P51 test), term-test 15/15, kitty-test 45/45, addon-test 5/5, behaviour-test and --replay 275/275, consumer-test, process-test own 0 of 146 and as pairs 0 of 146 (themesel first time as a pair, alone 0 of 5 first time and 5 of 5 on the runner's retry: pair-8's open case); the soak --clients 5 diverged 0, unequal 0 at 30/80/207 ms, unlisted 0, the corpus 22 of 22, no leak; daemon.py on Debug and ReleaseSafe: plain 3 of 3 each, --restore PASS each (P44's test, failing on the base), --pair, --attach-upgrading, --clients 3 of 3 each, --far PASS on ReleaseSafe and on Debug 3 of 3 alone (once at load 10 by_hash saw a client join again); --upgrade from the installed build PASS; with --with-pair every mode passes on both builds (plain, clients, manage, launch, relink, far, restore, attach-upgrading, pair, window-clients, gui, games, kitty-image), its --upgrade both ways past pair-10's wall and failing later (far_exec; a client's check differing after a ReleaseSafe-to-Debug Upgrade); the frame and perf gate against tree3 (gpu/pp11-g): 77/77 frames, perfab corpus2x +0.105% (noise 0.048%), 121 counts within 0.1% (largest terminal-on-all +0.085%)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
machine runs a kind loaded by path from that path while its bytes are the session's (P51): `Addon load <path>` typed in a session with any client attached parted every client (core/Effect.zig ran `Addon.perform` inside the core's pump entry, where the nested `update(.addon)` is no recorded input (core/tape.zig `enterInput` records none on the core's side) and a replay skipped the perform: the session's core took the kind, no client's did); the perform is now a recorded value call of the core's (`p.tape.value(.landing, Addon.perform, ...)`, `Site.landing` at the end of the tape's sites: the tape's shape and so `wire.semantics` change, the wire's version does not), its event recorded inside it and applied by a replay, a speculation waiting for the session's (`authorityOnly`); and `Addon.plainOps`, after a client's own addons, reads the library at the kind's path (its own copy, head and init as a load's) and runs it when its BLAKE3 is the one the session lists, else lets it go and the pane shows the kind's line, which now says so (core/Kind.zig `draw`); nothing is fetched over the link and no bytes the session sent are run; test/panes.zig: a session's `Addon load` of the image addon at a temporary path lands on its in-process client with no divergence (it diverged before), the client's picture pane runs the kind's code from that path (it fails with the path load taken out), and a client joining after the file was written over (one byte more) shows its line; the corpus through a client window (PARDES_PAIR, terminals by bytes) now runs to its end, 77 frames, 68 byte-identical to tree3's (63 the veil, 64-65 the snake loaded and its first frame, 75-76 the 2x display), 66-74 the snake's own pictures four animation steps ahead (the session's clock, not a client's: the same in two runs); the own window through the same prefix 77/77
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
only by a session's own frontend at its focus in (upgrade.noticeNewer), which a pair's session has not, and its client never asks: `Peers.input` marks a focus in from the pair's first client (`Peers.pair_focused`) and the session loop asks `noticeNewer` for it between steps (runtime/session.zig), the session's binary being the one an Upgrade replaces; attach clients as on the own path; daemon.py --upgrade with the variable now passes 'the newer build said' both ways and stops later, at 'the word said' (the upgraded session's 'Upgrade: now' on /screen: not chased)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
with no word (P48): a tty pair (runtime/main.zig `pair`) keeps /dev/tty and its termios as they are before the client enters it and hands them to the session (dev/tui/tui.zig `Term.pair`, `Kept`); `Peers` marks the pair's first peer (`Peer.pair`, from `Joining.own`) and a bye (`Peer.bye`) and says at that peer's leave whether it left with no word at all (`Peers.pair_left`: no bye, not let go by the session, not cut); the session's frontend (`Own.sent`, now before a no-daemon pair's end in runtime/session.zig) writes on a loss what the own path writes when a terminal is lost under it (`Killed`'s bytes, which now also turn the in-band resize off: vaxis's terminal query turns it on) and the cooked termios, and lets the device go either way (a terminal held open keeps an ssh or its emulator waiting); not across an Upgrade (close-on-exec) nor after the pair's client joined again; daemon.py plain with the variable passes on Debug (it failed at 'the terminal is put back'), its row after a killed stub listing `(tty)` under the variable (a loss: still a pair's, P36), and --upgrade counts the device let go at the exec; core-test 896/1056, shell-test 1098/1101
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
session's WindowOpacity to the view it draws, as the own window does at the request (dev/gui/gui.zig: the window's half of `syncWindowOpacity` is `applyWindowOpacity`, the own window answers the core with it as before, `Client.own` applies each opacity it has not taken, `Client.opacity`, null again at a join, and answers nothing: a replica cannot change the core), and `Font` is the core's word in every desktop build as Fonts is (core/exec.zig gated it by the frontend's build, `pardes.font_picker`, so a terminal build's core ignored it while a window build's asked the machine's fonts: a window pair's session is the tui binary and its client window's replay made a host call the session's tape lacks, diverged and, with no daemon, was let go; a window client of a terminal's session typing Font on the own path diverged and joined again: `builtins.capabilities.font_picker` now, core/root.zig's `fonts` likewise, `may_wait`'s Font row beside Fonts' in core/replica.zig, dev/fonts.zig's comment); a terminal's own view still refuses Font (`viewCapabilities`), a session with no window leaves the request pending and the client window follows it (`syncReplicaFont`); the corpus through a pair's client window under PARDES_TERM_BYTES is byte-identical to tree3's for frames 0-62 (58-59 the opacity, 61 the font, 62 the resize), the own window through the same prefix 77 of 77; frame 63 on (an addon loaded by path) is the next wall (reports/pardes-pair-9.md); core-test 896/1056, shell-test 1098/1101
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
the terminals' second road, the pty's bytes in the units to each client's own emulator (`Peers.bytes`), which only the soak could take (`--bytes`): the session's `Peers` is made with `.bytes` set (runtime/session.zig), every joined replica, a dump's or a pair's own boot, is turned to its own emulators as the soak turns its clients (core/replica.zig `takeJoined`: `screen_state` false, no predicted echo), and the process harness keeps the variable in a case's environment as it keeps PARDES_PAIR (test/process.zig `Child`); a client started without it against a session with it diverges: for the corpus through a pair's client window, not for a user (the switch for real clients is the terminals' line's); with it the corpus as a pair (PARDES_PAIR, a client window) is byte-identical to tree3's through frame 57, the kitty image in a terminal's pane (frame 50) included, where screen state diverges the client; frames 58-59 (WindowOpacity) differ and frame 61 (Font) never idles: only the own window applies or answers either (dev/gui/gui.zig `pollFrame`), a client window never does, and a window pair's session is the tui binary beside it; core/root.zig's machine_lines counts replica.zig's new getenv (76); core-test 896/1056, shell-test 1098/1101
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| |\ \ \
| | |/
| |/|
| | |
| | |
| | |
| | | |
gathered line: pardes-merge56 (`qvwrwxtu`: the installed tree and the source view's changes to their last slice) and pardes-term-join-9 (`twssqzqw`, fourteen changes on pardes-merge55: every client's terminals by the pty's bytes and nothing else: the delta protocol, its flow control and core/term/screen_state.zig deleted (-3,605 +504 lines), the wire at 30, one soak; S1: abi/term.zig's Ops in replicated and local, the terminal's digest covering what a step reads, every call of the core's into a terminal listed with its rule as a test; a client's own join again judged after its goodbye; a pty's size one fact the core hands its host for every fork, adopt and resize; a closed view sizes no terminal); no textual conflict; one semantic one, resolved here: core/jj.zig's Churn test (the layers' last round) called Authority.init and Replica.init with the road's flag the deletion took away: the argument removed; core-test 916/1073 (157 skipped), shell-test 1115/1118; its gate: .scratch/sketch/reorg/merge57, the numbers in PARDES.md (2026-11-22)
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
types into it (pardes-term-join-9, item 2 (B), point (b)): `sizes` handed a terminal whose sizing view had closed to whichever view was live at the next `sync`, a view nobody looks at among them, and a client given the closed view's index later sized it without typing; now `Pane.sized_by` is `?u8`, `views.dropView` clears it (the terminal keeps the size it has), `closeKeeping` hands it to the view that takes the closing one's place (the session's own laid out as it was: the size it promised to keep), and `sizes` is `sized_by == live` alone, typing (`typedInto`) the one act that moves it; test (core/views.zig "a terminal shown at two sizes ...", extended): the pty's pixels at the sizing view's cell whichever view is live (point (c) of the change before); the sizing view closed, the size stays until the view left types; a view opened at the closed index sizes nothing until it types (on the base the size moved at the close)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
pty's size, pixels too (pardes-term-join-9, item 2 (B), points (a) and (c)): the spawn host call took no size and both hosts forked at the session's live screen (dev/Ptys.zig `spawn`, runtime/macos.zig `spawnShell`: `core.view().screen_h/w`), so a shell started again into a pane already sized (pty/ctl's exec, a finished command pane run again by exec.zig `runCommand`, a Restore's `revivePane`) ran at the screen's size and nothing resized it, the grid unchanged and `sync` emitting nothing (`stty size` said 50 160 in a 44x158 pane); and a pty's pixels were the live view's (host_io.zig `ptyWinsize` read `core.view().cell_pixels`) whichever view sized it; now `Effect.PtySize` (cells and pixels) is what the core gives its host for `spawn` and `pty_resize`, made by `Core.ptySize` from the pane's grid (or 9P's numbers) at the cell of the view that sizes it, a spawn performed after its step's `sync` reading the laid-out grid, and the hosts fork and size from it alone (`Ptys.take` sizes an adopted shell from it too: 1x1 then the size, once, its forced redraw kept, an ioctl to the size a pty has already sending no SIGWINCH); test (test/process/terminals.zig, a new case): a Term pane's shell, the same shell started again by pty/ctl's exec and a finished command pane run again each say the grid their pty/ctl reads back (fails on the base: 50 160 against 44 158); not covered: a new command pane made over 9P is placed a step after its fork, so its first size can still be the screen's
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
(pardes-term-join-9, item 1 (a)): a client let go for its lag or after a divergence says bye, shuts its link and dials again naming its view (runtime/client.zig `run`), and the session takes its join from the daemon's hand-over and its bye from the old link's reader thread, in no order between them; judged first, `viewFor` found the view not away and opened a NEW one (the client's layout, scroll and focus lost, its old view then kept away 30 s for nobody), or at the cap refused it (a divergence's rejoin is not patient and then fails "could not join again"); now a join naming a view whose link has hung up (`hungUp`: POLLHUP or POLLRDHUP, the client having shut its link before it dialled) is held on that peer (`Peer.rejoin`) and posted again when the link is let go (`letGo`), its view away by then, a view whose link is up being another client's as before, and a Restore keeps a held join as it keeps the inbox's; measured with a raw replica that says bye and at once joins again naming its view, pinned to one CPU: the base 1 of 60 in another view and 27 refused, this 0 of 120; the cut-off test dials again before its old link's end is heard (fails on the base with `error.NotHeld`); root.zig's machine_lines for replica.zig 73 -> 76 (the session's own join, no replayed step); not covered: a relay that delays each connection on its own (test/delay_relay.py) can still bring the hello before the old link's hang-up
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
item 2 of pardes-term-join-8): abi/term.zig names `Ops` in two groups, `replicated` (what every side agrees on by construction, each emulator fed the same bytes in the tape's order, written only by a step or a load, read by a step as the digest covers it, or by a draw) and `local` (start, stop, gpa, due, cellPixels, echoCell, paint, images: this process's own), every entry in exactly one (a comptime check: a new entry fails to compile until it says which); the terminal's digest (core/term/terminal.zig `digest`) now covers what a step reads of it: its cols and rows, every mode bit (the alternate screen, the mouse's, focus reports, bracketed paste; `modes`), the mouse's event and format, and the OSC 133 cycle (`marksOf`, `prompt`'s), beside the view, the cursor, the reply buffer, whether it holds an image and the active area's text; NOT the history's text (its row count only: a step's read of it, a 9P read, a Save, a selection over a shell, is listed as not covered); the two tables of round 6 and pardes-image-loop are a test (core/Term.zig `calls`: every call of the core's into a terminal, by entry, file and count, with its rule: a WRITE outside the rollback copy and why no unit kept to replay makes it or how the copy puts it back, a READ by a step and whether the digest covers it, a LOCAL use and why no step's state reads it, PURE for the pager's; a new call fails until it is listed); the counted list, not a type, enforces that the digested paths call the replicated group (by type the digested code would need a handle of its own: every one of the 13 files that read `grid` and more, past the 200 lines the brief allows); core/root.zig's reasons that said a client's emulator is written by deltas, and that a terminal is in no digest, say what is true now; core-test 912/1069 (157 skipped: +1, the `calls` test), shell-test 1111/1114, term-test 15/15, pane-test 181/182, kitty-test 45/45, the soak's small run and `--echo` rc 0 (diverged 0, unequal 0)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
road's deletion, piece 7 of 8; echo.zig STAYS, round 7's ruling): `Echo.delta` had one caller left, `fed` (the screen-state replica's `screen` went in piece 3), so its body is `fed`'s, judged at the grid's active top on the echo's own pane; the words that said `delta` (the module's doc, `grace_ns`, `stale_ns`, `tops`, the Rig's comments) say output; nothing else changes; core-test 911/1068, shell-test 1110/1113 (the Rig's tests among them), `--echo --seeds 2 --rtt 30,207` rc 0 (30 ms: 50.1 -> 8.5 ms p50 with prediction; 207 ms: 239.3 -> 8.6; diverged 0, unequal 0, secret frames 0, drawn wrong 0)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
side's own emulator's again (the old road's deletion, piece 6 of 8): core/tape.zig loses `Tape.screen_state` and every branch on it (a terminal's output recorded without its bytes, the positions and prompt checks skipped, `screenReplica`, `screenAuthority`, `screenState`, `viewOnly`, which on the one road did nothing), and the tape site `images`; core/panes.zig its replica branches (a feed skipped and the session's positions taken, a view's scroll or follow noted, a resize left to the authority, the reloads at a join skipped); core/Term.zig a terminal's digest that returned early under screen state, and the medium read that went past the tape; core/dump.zig a join's dump always holds each terminal whole (`slim_terminals` stays for the exit dump); the tests' `t.screen_state = false` lines (4 in core/replica.zig, 3 in test/replicas.zig); THE IMAGES (the brief's choice): `Pane.term_images` and its taped read after each output (pardes-image-loop's cure for a screen-state client, whose emulator never held an image) go, the tag reads `Term.hasImages` again (core/tagline.zig), and a terminal's digest holds whether it has an image (core/term/terminal.zig `digest`: one bool among its facts), so the fact the tag shows is covered by the digest it is computed from (S1's rule) rather than by a pane field copied after each output, and a parting over it is named at the terminal; abi/wire.zig's line for 30 says so (the dump's shape changed with it); the image-loop's test runs on the one road (the client's emulator has the image, its tag says what the session's does); core-test 911/1068 (157 skipped), shell-test 1110/1113, term-test 15/15, pane-test 181/182, kitty-test 45/45, the soak's small run and `--echo` rc 0 (diverged 0, unequal 0, corpus 22)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
road (the old road's deletion, piece 5 of 8): core/term/screen_state.zig (1,213 lines: the encoder, tracks, peers' flights, a replica's apply and holes, its own soak and four tests) goes whole; core/term/terminal.zig loses `encode`/`encodeRows`/`encoder`/`encoderFree`/`track`/`untrack`/`replica`/`replicaFree`/`replicaTop`/`missing`/`apply`/`applyRows`/`shown`/`blank`, `takeMarks` (`marksOf` stays, private: the tests compare two terminals by it), the State's `changes` (a version's counter for the tracks), `read` with `markRead`/`wasRead`/`clearRead` (the rows a step read, for the fills), and `resize_to` with `resizeDeferred` and `resize`'s `later` (screen state's authority sized its terminals after a step's unit); abi/term.zig loses the `Encoder`/`Track`/`Replica` handles, `flight_bound`, `Peer`, `Applied` and those entries of `Ops` (and `dumpScreen`, which nothing in the core called); core/Term.zig its wrappers; core/term/term.zig its ops, its handle map and its `screen_state` export; core/panes.zig its `resizeDeferred` and resizes now (its later screen-state lines go in piece 6); core/edit.zig its `markRead`; the cell-for-cell dump the soak compares a client's terminal with its session's by moves to terminal.zig (`dumpScreen`, over the emulator), the soak's three streams (a shell's, a full-screen program's, `yes`) into test/replicas.zig, their one user; test/terminal.zig loses `a replica's terminal pane draws as its authority's does` (a delta's) and `a terminal made fresh has no size waiting` (`resize_to`'s); core-test 911/1068 (157 skipped), shell-test 1110/1113, term-test 15/15, pane-test 181/182 (again after the machines reboot, on a wiped cache), the soaks small run and `--echo` rc 0
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
piece 4 of 8; the coordinator's decision: the welcome's road byte goes, no dead field stays on the wire): `Peers.bytes` (set by runtime/session.zig unless PARDES_TERM_SCREEN), the welcome's `bytes` byte (abi/wire.zig: its encode, its decode, the round-trip test's byte), `Joined.bytes` and `joinOn`'s copy of it, `road` (fromDump's, ownBoot's, confirmBoot's, a test's: a replica's `made` arms its echo already, and no replica starts on screen state since piece 3), and ownBoot's read of PARDES_TERM_SCREEN; so PARDES_TERM_SCREEN and PARDES_TERM_BYTES name nothing in the tree; abi/wire.zig's version is 30, its history line saying both of this line's wire changes (the screen messages retired as gaps in piece 3, the welcome's byte here); test/daemon.py's `WIRE` 30; firstOnPair's argument is now what it chose, `by_dump` (a client joined by the session's dump, or one that makes its own core); core/root.zig `machine_lines` for replica.zig 74 -> 73; core-test 911/1068 (157 skipped), shell-test 1110/1113
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
| |\ \ \
| |/ /
|/| |
| | |
| | |
| | |
| | | |
tree: main (`stpnsymm`: pardes-merge55, installed 2026-11-22) and pardes-layers-6 (`rtzmwzsk` on `owsluptw`, on pardes-layers-5: `Churn [window]`: for each declaration the count of the changes in the window that touched it, a cell after the line number and a strip by the scroll thumb from grey to red on a log scale, jj and the parse on the worker; the chords `SPC t c` and `SPC t u`; the manual's chapter "Changes on the source view" and the cheatsheet's rows); no conflict; core-test 915/1079 (164 skipped), shell-test 1121/1124; its gate: .scratch/sketch/reorg/merge56, the numbers in PARDES.md (2026-11-22)
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
`SPC t c` and `Churn` on `SPC t u`, beside `Syntax`'s `SPC t h` in the toggles' group (proposed from its free letters: b c e f g j k m o q r u v x y; the user rules the letters); docs/typ/guide.typ has a chapter "Changes on the source view" after "A file at a revision": the words and their keys (`Changes revset`, `Churn window` with its span-of-time words, `] g`/`[ g`, `path@rev[:line]`), lanes, what a ghost row is and is not (no number, not text to the cursor, search, selection and the numbers, a B3 opens its line at its revision, one row cut and never wrapped, a description's title cut before its author and age, a hunk of more than 1,024 lines taken away shows none), churn (the cell after the number, grey to red on a log scale, the innermost declaration, the strip, the order beside the lanes, a file's history followed by its name only), and when jj answers and how its answer rides with the text; the cheatsheet's leader rows and a line under "Reviewing diffs"; the builtins' lists with the chords; the docs name `] g` as two keys, as the docs check reads keys; `zig build book` 132/132, the docs check 9/9, core-test 912/1072 (160 skipped), shell-test 1114/1117 (3 skipped)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
(tree-sitter's innermost, as TreeContext finds them: `f.context.declarations`), how many of the window's changes touched it, shown in this view as a heat lane after the line number (a half block, before the changes' lanes, which stay next to the text they mark: `File.Layers.heat`, one cell) and as a strip by the scroll thumb (a rail row each, the hottest of its lines: the rail's second cell in a terminal, `Surface.heat` for a window, drawn beside the track by gui.zig's paneDecor), smooth from the line numbers' grey to the theme's red (`jj.themeRed`) in Oklab on a log scale of the count against the file's hottest (`heatColour`); the window a revset, or a span of time back from now (`3d`, `2w`, `6m`, `1y`: `::(REV) & author_date(after:"N units ago")`), bare shown here or not and with none counted yet the file's whole history `::(REV)`; jj's data as `Changes`' is: one `jj log` of the window and the changes after it to the shown revision with their hunks (the same query and marks, `Ask.kind` `.churn`) and `jj file show` of the revision (to line the counts up with the pane's text, `Moved.of`), on the worker, its raw answer an input; kept raw in the session's jj state (`jj.Heat`, `Session.heats`) until the text's declarations are there, then counted in every process (`heatOf`, `parsed`): a big file's parse is a worker's (`Stream.parseFor`, its landing tells `jj.parsed`), never the loop's (counted on the loop, core/replica.zig held a Debug loop 1,211 ms; now its longest hold is 10.7 ms; the counting itself 1 ms); a change counts once a declaration, a hunk's lines carried to the shown revision through the later changes' hunks; the counts ride with the lines through edits (`spliceValues`, shared with `Changes`' lines); a later ask of the other kind no longer drops an answer (the stale check is per kind); tests: f three changes, g two: `3 3 3 0 2 2 2`, the cell red on f, `mixOklab(grey, red, ln 3 / ln 4)` on g, none on the blank line, the strip's first row red, in a terminal and a window, bare off and on without asking jj; `@--::@` one each, `1w` all, a refusal in jj's words; on a worker, counted when the worker's parse lands, the client equal; a line deleted takes its count, the client and digest equal; core-test 912/1072 (160 skipped), shell-test 1114/1117 (3 skipped)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| |\| |
| | |
| | |
| | |
| | |
| | |
| | | |
bytes, and the source view's changes to the whole mock: pardes-flip (`uxzzxrtt`, on pardes-merge54: the one road by default, the old one behind PARDES_TERM_SCREEN until it is deleted; a client takes its road from the session's welcome: the wire at 29; the predicted echo kept on the one road; the user's ruling of 2026-11-22) and pardes-layers-5 (`qurmskql` on `yxupukvr` on `tllltqkq` on `qwvwsoww`, on pardes-layers-4: a terminal's output pays less for the layers with `Changes` off; ghost rows: a line taken away whole red across, each change's description after its last line; a changed line's words by the patch view's alignment; `]g` and `[g`; a description row keeps its author and age, a change's rows come before its own description); no conflict; core-test 911/1075 (164 skipped), shell-test 1117/1120; its gate: .scratch/sketch/reorg/merge55, the numbers in PARDES.md (2026-11-22)
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
description row keeps its author and age in a pane narrower than it, its title what gives way (`jj.fitted`: the title cut to the room the row has, `File.bodyWidth`, with a `…` where it is cut, the same text the geometry lays out and `inkGhost` colours, whatever the horizontal scroll); at one place a change's ghost rows come before its own description (the description ranked right after its last ghost row there; descriptions of blocks closing just above still first, newest first: a hunk that changed a line and took the next away had put its description between them); a change the revset does not pin, between two it does, no longer shifts the older pins' ghost rows: jj's one log run now asks `((R) | (roots(R)::REV)) & files(F)` and marks each change `p` or `c` (`self.contained_in(R)` in the template, `logTemplate`), the unpinned ones' hunks kept only to carry places (`Hunk.carrier`, `Hunk.step`, `carried` walking the steps); and lines typed before jj's snapshot or while jj ran no longer shift them: a place jj gives is carried into the pane's text by the same alignment that lines the lanes up (`Moved`, from `provenance`: the lines both ends agree on), a ghost row whose place lies inside lines rewritten since is not drawn; tests at the pane's surface: a long title in a 50-column pane cut before ` t now`, the id in its lane's colour, author and age grey, in a terminal and a window; `b();` changed and `c();` taken by one hunk then its description; `old | last` with `mid` unpinned between them puts `c();` before `d();`; a line typed between the word and the worker's answer moves the six places one down, the client equal; core-test 908/1068 (160 skipped), shell-test 1110/1113 (3 skipped)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
took away and wrote, which are one line changed and which words each changed is the patch view's alignment, read off `hunks.format`'s rows of the pin's diff (the library's, called as it is: a paired line's marker has no `ground_line`, its words `ground_emph`; the alignment pairs in order, so the k-th paired line taken away is the k-th paired one written, `jj.pairRun`), where round 3's stand-in made the first as many written as were taken away changed ones: a changed line's old text is a ghost row right above the line (`Ghost.Kind.changed`, its words that went red on no ground, its text grey), the line has the words that came green (`Line.marks`/`nmarks`, `jj.inkCame`, through the row's own columns when it wraps), and neither has the whole-line ground; a line taken away that nothing paired is a ghost row red across above the next changed one's, or after the run; the words are byte ranges kept with jj's answers (`Changes.marks`) and ride with their line; tests: the ghost-rows tests now show `b();` above `b2();` with `b` red and `b2` green and nothing else tinted, and the places and the replay with it; round 3's `two` test reads the words `one`, `1` that went and `two`, `2` that came; core-test 904/1064 (160 skipped), shell-test 1106/1109 (3 skipped)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
has is drawn where it stood, rows of their own with no number and dimmer ink (`jj.Ghost`, kept with jj's answers, `Changes.ghosts` in `at` order, their text in `Changes.ghost_text` beside the hunks' removed lines): a line a pinned change took away whole, red across, in the line numbers' grey, placed by carrying the place it was taken from through the later pins' hunks into the shown text (`jj.carried`), and each pin's description after its last line (`id title author age`, the id's first four letters, the author's first name, the age short with no "ago", in its lane's colour, the author and age grey; the age is of the wall clock jj's answer carries, read where jj runs, an input as jj's answer is), the descriptions of blocks that close just above a place first and newest first, then the lines taken away there, then the descriptions of pins that have only those; a ghost row carries its own pin's lane and those of the line above that run on below it or close at or after it (`jj.ghostLanes`); the view's geometry takes the rows (`File.fillBody`'s ghosted instance, only while this view shows the changes and there are some: a ghost row's `wrap_col` is `-1 - ` its index, its `wrap_line` the line it stands before; `Pane.ghosts`/`ghost_text`, derived, set by `jj.showGhosts` each step while shown and as an answer lands), so the rows below move down in this view alone (another view with the lanes hidden is unmoved: tested); `wrapAt` says `ghost` and answers the line below at its start, so the cursor steps over them (`j` from the line above lands on the line below), selection, search hits, places and tables do not paint them, the line numbers skip them, a page ends before one; a Look (B3) on one opens its line in the revision it came from (`path@id-:line` for a line taken away, `path@id:line` for a description: `jj.lookGhost`); `]g` and `[g` (helix's, free in pardes's map: `goto_change`) go to the next and the previous change's first line (`jj.nextChange`); edits carry them as the lines' values (`jj.splice`: a ghost row stands before the line it stood before; one before a line taken out stands before the line after what took its place); in a terminal and in a window (tested both); round 3's lanes test reads each line's row through the view's map; tests: what the rows show (text, numbers, lanes by pin, grounds, inks) in both frontends and the other view unmoved; the cursor, the selection, `]g`/`[g` and a Look; the rows riding through two deletions with a client replaying them equal
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
`jj.paint` is called never inlined from `body_layer.renderBody` (inlined, it grew renderBody's own frame, which every body of every frame pays, a terminal's too, though no terminal reaches the call); measured, a variant at a time, the gate's perfops in its own layout (`perf/tops.sh`: all 121 counts of the candidate's pardes-perf against tree3's): `terminal on all` on item 0 +0.083% (merge50 before round 3: +0.026%; round 3 alone: +0.259%), with `Changes`'s jj session behind a pointer +0.082% (not kept), with the paint call gone +0.050%, with no `Changes` builtin as well +0.050% (the builtin costs nothing), with the call kept but never inlined +0.050% (this change), with no `Surface.lanes` as well +0.047% (not kept: 3,000 instructions an operation); the rest over merge50, about 25,000 instructions an operation, is not found yet
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|