summaryrefslogtreecommitdiff
path: root/core/replica.zig
Commit message (Collapse)AuthorAge
* Root, and the explicit root keys SPC f F, SPC f G and SPC :: Find, Grep and ↵Gabriel Schneider20 hours
| | | | | | | the `:` line run at the project's root, the nearest directory at or above the asking pane's holding a `.jj` or a `.git` (Pick.workTree, kept by zxsqtpol for this), the pane's own when none does, while SPC f f, SPC f g and `:` keep acme's directory (the user's ruling of 2026-11-26: "maybe some commands SHOULD run on the project root for convenience", explicit twins, nothing implicit); WHY A WORD: a leader leaf names a builtin (config.leader_path, leader_args) and `:` is a normal-mode role, so the three keys need one word that reaches the root: `Root <line>` runs the line as Exec does with the step's flag Pardes.exec_root set, bare (SPC :) it opens the `:` line marked to run there, and a script's `Root make` or `Root Grep x` falls out of it at a ctl for free; THE CHANGE: builtins.Root; Pardes.exec_root, a step's own (replica `.local`, root.zig's kept_out) like exec_column; execDir reads the root under it (a command pane's directory, Term's, and Query.create's, which now calls execDir in place of its copy of it); executeFrom sends Root's line to a command pane even from a shell at its prompt, and runCommand reuses only a finished command pane at the root for it (not the asking one); Pick.root: a picker Root asked lists from the root, its head `␣ f Find root`, `Grep root`, its list word `Find root …`, Exec on that word running at the root again, a Grep's leading directory read from the root (grepScope, unchanged); Command.root: SPC :'s line, its head `: root`, `= Root make` as its plain word, its Enter and its `:open ` run as Root; config: Root's leader path `:`, leader_args fF and fG run `Root Find` and `Root Grep`, which-key labels `Find root` and `Grep root` (bindings.zig); replica's may_wait gets back a kind row, `Root *` (the root's stat on the session's disk), walked as `Root Find` (walk_samples: bare Root, the `:` line, asks the disk nothing); docs: Root's own doc (the Help index row `SPC : Root`, builtins-tui.json from `zig build builtins-json`, the same line put in builtins-gui.json), the cheatsheet's leader list (three short rows), guide.typ's Find and Grep rows and its where-commands-run table; RUN (TEST FIRST): behaviour/find_grep.zig (the reference's Find and Grep chapter, new): a `.jj` project, `x.txt` two directories below it: SPC f f lists `x.txt` alone and no `Find root`, SPC f F `␣ f Find root` with `a/b/x.txt` and `top.txt` (`.jj` passed over); SPC f G `needle` `␣ f Grep root needle` with `a/b/x.txt:1 needle below` and `top.txt:1 … needle at the top`, `a needle` the first alone (a/ is the root's); look_and_exec.zig: `:pwd` makes a command pane named `<root>/a/b`, SPC : shows `: root` and its `pwd` a second command pane named `<root>` (a `.git` project), each body `% pwd`; the three fail on zxsqtpol 8d2a064eb69a (`not on the screen: ␣ f Find root`, `… ␣ f Grep root needle`, `… : root`), pass now; test/session.zig gains `advance`, the host's clock moved on, so a typed Grep's 80 ms pause comes due in a T1 test; REAL CHECK (a private detached session of this Debug build over 9P, CA's demo copied with a `.jj` at its top): from src/torque/types.cc SPC f f types.cc types.h, SPC f F `Find root` Makefile compile_commands.json src/torque/types.cc … 1/5, SPC f G ToString `Grep root` three hits from the root, `src ToString` narrowed, `:pwd` printed …/demo/src/torque, SPC : `: root`, `: root make = Root make`, its pwd printed …/demo, its make ran `clang++ … src/torque/types.cc` at the root (exit 2, the demo's error) and SPC e from types.cc walked to types.cc:7:11, `SPC :open Make` opened `Find root Make`; GOLDENS (process-test --update, read): leader.golden spc and unmapped (`: Root` after `/ All` in SPC's level), find.golden group (`F Find root`, `G Grep root` in SPC f's), nothing else moved; NO hot path (a stat per directory up to the root once per Root run; a flag and five bytes in the head); the dump and the digest gain two bools (Pick.root, Command.root): the 40,000-seed dump fuzz (40,000 + 40,000 join seeds, 1,779 image seeds) 11/11, core/fuzz.zig restored byte for byte; GATES: Debug core-test 1172/1349 (177 skipped), shell-test 1390/1393 (3 skipped; the walk with Root's row), addons 8/8, term-test 17/17, kitty-test 45/45, process-test 0 of 149 failed (3 skipped), pane-test 184/185, behaviour-test 293/293 and --replay 293/293 (+3), consumer-test, the soak twice (rtt 30/80/207: diverged 0, unequal 0, quiet checks 617/0 485/0 568/0 and 499/0 387/0 553/0, unlisted stops 0, the corpus 22 of 22 scenes the same, no leak), daemon.py plain x3, games, window-clients, clients x5, relink, launch, pair, gui, client-motion rc 0, far rc 1 (`no link of the far client ended under the flood`, as on the base), client-resize-real skipped (no compositor), the macOS x86_64 and arm64 and FreeBSD cross-builds; ReleaseSafe: the build (0 invalid options), the soak (diverged 0, unequal 0, quiet checks 514/0 381/0 543/0, unlisted stops 0), process-test 1 of 149 failed (root-ctl Restore, as on the base), upgrade from the installed ab9fa40a7bbb, upgrade-gui, upgrade-self (65 s) and upgrade-back (40 s) each nothing left behind, launch, clients x3, far, gui, client-motion, client-resize-real, client-idle, pair, plain x3 rc 0; load 1.2 to 3.6 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
* Pick: Find and Grep search from the asking pane's directory again, as a ↵Gabriel Schneider23 hours
| | | | | | | command runs in its window's directory in acme, taking back W8's work-tree root (rqouyxqp 89f51118eb24): the user's ruling of 2026-11-26 ("File folder, i didn't like the other rules btw that changed acme semantic for this"); the leading directory that narrows a Grep (SPEC §5.1, "scoped to a directory if the query starts with one") is kept, read against the pane's directory (`sub needle` from the top of a tree searches sub/); THE CHANGE: Pick.open sets every source's directory to the asking pane's (Pardes.paneDir), as before W8; Pick.workTree, no longer called, is kept for the explicit root keys the user chose next (the coordinator's item 5: SPC f F, SPC f G, a `:` twin); grepScope's and take's words say the picker's directory, not the root; replica.zig's may_wait loses W8's `Find *` and `Grep *` rows (the root's stat; a Grep's leading directory still stats, but shell-test's far-client walk, replica.zig's may_wait check, calls the Grep row stale: no walked word stops there, as before W8); the `.git` the tests made "a work tree of its own: Find searches it, not the one the test runs in" goes (Pick.testFile, Jump.zig, TagState.walkedReader, replica.zig's plain-kind test, behaviour/addons.zig x4, addons_pdf.zig, other_files.zig, language_servers.zig): Find and Grep there list the test's own directory again; the docs (guide.typ's Find and Grep rows, builtins-*.json, the Help index) said "below this pane's directory" all along: no text to bring back; no dump, digest, frame or hot path touched (a picker's open: a stat per directory up to / fewer); RUN (TEST FIRST): Pick.zig's W8 test re-pinned, "Find and Grep search from the asking pane's directory ...": a tree with `.git` at its top, Find from src/deep/x.txt lists src/deep alone (one row, its directory the pane's), from the top three rows and `sub/name` one, Grep `needle` two hits and `sub needle` one, `sub/name.txt:1 needle one`, its place the top's sub/name.txt: fails on yuwytntu a88ea865f116 at Pick.zig:3768 (the directory the root), passes now; GOLDENS: process-test's find (test/snapshots/find.golden) re-recorded with --update: from sub/ZQMARK-beta.txt `SPC f f` lists sub/'s files, not the root's five, so the band is two rows shorter in its three picker snaps (`bod`, cancel, topbar), nothing else moved; GATES (Debug tui): core-test 1165/1342 (177 skipped; the importer's 7 cached), process-test find (PASS after --update; before it the GoldenMismatch above), behaviour-test 290/290 (its T1 runner 800 clean quits), shell-test 1390/1393 (3 skipped; the base's 1388/1391 and this line's two new tests); load 1.3 to 3.5 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
* merge: L2a (tags, grips, band, notice onto chrome) + M2's fix + FP (PDF ↵Gabriel Schneider32 hours
|\ | | | | | | | | | | | | leaks, spawn stop, PDF hits) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
| * merge: M2's fix (dump.load resolves the chrome) + FP (PDF preview leaks, the ↵Gabriel Schneider32 hours
| |\ | | | | | | | | | | | | | | | | | | spawn stop, PDF hits ABI 3.4) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
| | * exec, replica: a line run again in its directory's finished command pane ↵Gabriel Schneider34 hours
| | | | | | | | | | | | | | | | | | | | | waits for the session's order from the first line of that branch, at a stop may_wait lists (`run a command`), as a new command pane's run waits at `open a terminal` (agent T23's find: the no-pdf soak, seed 3 rtt 80, had one client key stop at `spawn`, which may_wait does not list, so the run failed); NOT AN ORDERING FAULT: the speculation was refused and rolled back as it should be (the reused pane's emulator writes refused by feedOutput, `a terminal's output`, and the spawn effect stopped by its host entry, a keeps_stopping one, which as the last poison names the stop), but it ran the reused pane's whole rerun first (its command line freed and set, its last run's errors taken out of the live messages, its diff output dropped, its mode, its /log notes), all of it rolled back, and named the stop by whichever refusal came last; a new pane's run (panes.newCommand) has always stopped at its first line; THE FIX: exec.runCommand's reuse branch asks `authorityOnly("run a command")` before it changes anything, and may_wait lists the stop on a new `On.command` (a pane in a directory with a finished command pane), which the walk stands in none of: the soak judges it by name, and the new test by its row; (a far client reaches that branch only where its speculation passes missingDir: a session whose host has no spawn entry, or a directory that is no local one, `/virtual/...`; elsewhere the directory's `kind` stops it first, as `Exec *`'s row says); RUN (TEST FIRST): replica.zig "a far client's line run again in its directory's finished command pane waits for the session's order, at a stop may_wait lists: ..." runs `Exec true` at the session (a command pane, exited and at its end of file), joins a client, and has the client run `Exec true` from the file's pane: asks one stop, at a name may_wait lists, then the session's order runs it again in that pane and the client agrees: fails on M2 (stopped at `a terminal's output`), passes now; a user could hit it as a far client rerunning a build from a finished command pane: the soak's failure only (the input waited a round trip either way, and nothing it changed outlived the rollback); NEW HOT PATHS: none (one flag read in a branch that starts a process); GATES: shell-test 1379/1382 (3 skipped: +2, this test and the preview one before it), the far-client tests 25/25 (the every-word-and-key walk among them, no row stale); load 4.7 to 6.8 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
| | * Kind, dump, replica: a plain kind's state opened or closed in a pane that ↵Gabriel Schneider34 hours
| | | | | | | | | | | | | | | | | | | | | stays (a picker's preview of a PDF, Pick.showKind; a file changed under its pane; an addon reloaded) is a write outside a client's rollback copy, so a client lets the copy go with that unit and never replays it over the copy (agent T23's find, which blocked the install: the soak `replicas -- --clients 5 --rtt 30,80,207` died with `allocator leaks detected` at seed 0 rtt 80 on T1's base and on M2, MuPDF's allocations of documents a picker previewed: contexts, documents, lanes, from Kind.reopen under Pick.showKind); THE CAUSE: no path of the preview forgets its close (the next row and a source change close through Pick.preview, Esc and every roll-up through restore and putBack, ⏎ through land's roll-up, a pane's end through teardownPane, the session's through Core.deinit; a dump carries the slot and the client's join opens it, closed the same ways), but replica.confirm's `ahead` rule: a client idle with its copy taken ahead (Replica.ready) replays the session's units on it and keeps each in `since` to replay again when the copy is put back, unless the unit wrote outside the copy (Pardes.outside, counted by the emulators alone) or opened or closed a pane (its serials); a preview opens the pdf addon's state in the pane the picker lands in, which stays, and that state (the document and its lanes, MuPDF's on the kind heap, the addon's `Own` found by its block's address) is no copy's; so a rollback (another's unit before the client's own key) put the copy back, the epoch freed the block, and the replay opened the document again for a new block: the first was never closed (and its `Own`, keyed by an address the epoch hands out again, could be found for another block); THE FIX: Kind.reopen and Kind.close count a plain kind's open and close in Pardes.outside, by the registry's PA_PLAIN, on every side alike whether the kind's code runs there or not (a client without the library counts as the session does), so confirm's one question lets such a unit go with the copy; dump.plainHere, a client's own open of a plain kind's pane at its join and no step of the session's, puts the count back to the session's as dumped; Term.Outside's and Pardes.outside's docs say so; RUN (TEST FIRST): replica.zig "a picker's preview opens and closes a plain kind's state in the pane it lands in, no pane opened or closed: ..." (a plain test kind `Owned` noting each state it opens and letting it go at its close, as the pdf addon's `Own`; files `.own`): a session at notes.txt in a work tree with paper.own, a client joined in its own view running the kind, idle with its copy taken ahead while the session types `SPC f f p` (the preview through the kind in notes.txt's pane), then a key of the client's own on top and the session's own key first (a rollback), the client's key, Esc; asks the digests equal at each end and no state left noted after both cores end: fails on M2 (8959b031dc33) at the last check (expected 0, found 1), passes now; the soak with the pdf addon (`zig build replicas -Dplatform=tui -- --clients 5 --rtt 30,80,207`, every addon the build has): diverged 0, unequal 0, quiet checks 508/0 474/0 665/0, stops not on may_wait 0, the corpus 22 of 22 scenes the same, no leak, the pdf panes the session opened 8, 6 and 5; a user could hit it as a client of a session whose picker previewed a PDF (a far client in a pair, a window joined to a terminal's session): a document leaked in the client at each rollback over such a preview, and pages drawn from another document's state where an address came back; NEW HOT PATHS: none per key or frame (a plain kind's open and close count one integer; a client lets its copy go at such a unit, as at a pane's open); GATES: core-test 1163/1337 (174 skipped: +1), its globals test (`nothing of a core is a process global`: the test kind's var in its test); no dump layout change (Pardes.outside was dumped and digested already; its values move at a plain kind's open and close, on every side alike); load 1.0 to 8.4 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
| * | dump, replica, fuzz: a core that dump.load returns has its chrome, worked ↵Gabriel Schneider33 hours
| |/ | | | | | | | | | | | | out by the load itself, so it draws as it is (the merge M2's dump fuzz at 40,000 join seeds: join seed 8324 died of a general protection fault in draw.zig's render, the debug overlay printing `p.theme().name`, a slice at 0xAAAAAAAAAAAAAAAA); THE CAUSE: the chrome (`theme_chrome`) is local, never dumped (Core.zig's replica `.local`), and dump.load left it undefined for its caller to work out: a replica's join did, right after it (replica.zig `made`, finishThemeInitialization), a restore does in reviveSession; the fuzz's `use` draws the loaded core as it comes, so it drew from an undefined chrome: before L3 only colours (0xAA bytes, drawn unseen), since L3 (tlpklysz: Pardes.theme() is the chrome's old-names view, `ChromeTheme.view`, a LegacyTheme with its `name` slice) a slice too, which the overlay prints once a damaged dump reads `debug` on; THE FIX: `load` works out the chrome before it returns (finishThemeInitialization, one Chrome.of, at a join, never a frame), and the replica's own call after it goes; RUN (TEST FIRST): fuzz.zig pins join seed 8324 beside 19224, 31554 and 6356: on the merge (ytzwsyrm 8959b031dc33) it fails at draw.zig:430 (`General protection exception` in bufPrint), passes now; a user could not hit it: every path that draws a loaded core (a replica's join, a restore) worked out the chrome before its first frame; NEW HOT PATHS: none per key or frame; a dump.load works out one Chrome.of more (the replica's, moved here), and the tape's dump round-trip check (tape.zig) one per check; GATES (tui, this change on the merge): core-test 1162/1336 (174 skipped; the merge's 1155/1329 then had the importer's 7 cached by zig), shell-test 1377/1380 (3 skipped), pane-test 184/185 (1 skipped), behaviour-test 287/287 and --replay 20 seeds of 70 steps, 0 failures, process-test 0 of 149 failed (3 skipped), term-test 17/17, kitty-test 45/45; the gui unit-test 1988/1992 (4 skipped; its one failed step the perf check's BaselineHarnessMismatch, every base's); the dump fuzz at 40,000 join seeds twice and 1,779 image seeds 11/11 (on the merge alone it died at join seed 8324); the soak `replicas -- --clients 5 --rtt 30,80,207` (the pdf addon in): diverged 0, unequal 0, quiet checks 436/0 340/0 546/0, stops not on may_wait 0, the corpus 22 of 22 scenes the same, no leak (the same soak on the merge alone died at seed 0 rtt 30 of the known MuPDF leak, Pick.showKind's documents, F1's: it comes only when a client's picker previews a PDF); load 3.5 to 9.9 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
* / draw, colors, gui: the tags, grips, window and column rows and the notice ↵Gabriel Schneider32 hours
|/ | | | | | | row drawn from the chrome (the themes programme's L2a, DESIGN.md part F's L2a row, G1' and H): a tag's ground says focus only, two grounds (`chrome.on(.plain/.focus)`), a reading pane's on its focus's as a held one's, its mode on its grip; in a pane tag the trail, path, `Keep` and the user's text in the full ink (`text`, 7:1 where the gamut allows), its computed words (UX K'1, K'3) in the words' ink (`word`, 4.5:1), the basename in `name[g]`, its forward steps, fold and head hints `dim`, the walked word and the head's keys `key`, the head's error `severity[0]`, its own selection and a pointer sweep the ground's selection, window mode's outline the plain tag's selection whichever pane it is on (one outline walked from pane to pane), a hovered word its half selection (B5: `Selection.secondary`, new, the ground halfway to its selection, worked out with the ground's inks); the window row and the column tags on the page, no band and no focus, every word in `page.word` (a terminal's own page where the theme leaves it to the host: dark), their hovered word the page's half selection, a server's progress the page's dim ink; a column's grip `grip.column_rest` (2:1) at rest, `grip.column` (3:1) grabbed, never focus; the notice row on `status` (its ground, ink, dim and its lead's severity per ground); a pane's notice chips on the plain tag; the grid's grip (R5', R6): focused `grip.focus` with its glyph in `grip.ink`, or in `grip.mode_glyph` reading; at rest its ring `grip.ring` as the cell (the theme's own where it rings its grips, acme's #8888cc, lapis's #9aa6d9, where the cell was half that and the box's fill) with the tag's ink; reading unfocused the mode's mark `grip.mode` filled, glyph `grip.ink`; unsaved a bold `*` in `grip.ink` on `grip.dirty`; a message's mark in its kind's ink held on its fill (`Grip.marks`, new: each severity and the dim ink held at a theme change on the four fills a grid gives a grip, at rest and reading on the plain tag too, where a window draws them hollow), so the gui draws the cell's ink and its per-frame pushAway goes; both copies of `inkOn` deleted (draw.zig's, and the gui's use of pushAway); the rail's ticks the hit's and the current hit's (R8), the body's pan arrow the page's key ink, the debug box the rail and the tag's ink; the surface's chrome from the chrome alone (`tag_reading_bg` deleted, `tagline_bg` the page and `tagline_rows` over the column row too, so a window's underlay there is the page); the gui: no reading underlay, the column bar's focus cover and the reading cover gone (nothing reads them now), a column grip's band the page; Messages.ink deleted (`inkOn` takes a ground's inks or a fill's marks); THE BAND is untouched here (its inks are the next change's); RUN (TEST FIRST): draw.zig "a grip in the grid is the chrome's in every theme ..." (every theme in the ring, not the natives: focus, rest, mode, dirty, focused reading; the four each its own), "a reading pane's tag is on the plain or the focused ground, as a held one's; its grip carries the mode's mark ..." (acme, orchard, dark, neonotte84; held and reading, focused and not), "a pane tag's trail, path, Keep and the user's text are in its full ink, its computed words in the words' ink; the window row and the column tags on the page ... the notice row on its own ground" (dark: the host's page), each failing on the base (the old grip mix, the reading tint, the tag's own unheld ink on `Del`, the tagline ground); re-pinned: Trail.zig's reading-tint tests (the reader on the focused ground and its grip region reading, the held one plain), the name tint test (against the full ink, not ` Del`'s), Core.zig's window-row hover and empty column, replica's themed dump, test/column_drag.zig, test/panes.zig's tint tests (the name in `name[g]`, the words in `word`, the rest in `text`), the gui's mark test (the cell's ink, held by the core), look.zig's tag hover (the focused ground's half selection), behaviour's column-tag sweep (the swept cells the selection, the hovered word its half) and tags' tint (the directory in the full ink, the computed words in the words'); GOLDENS (36 of 103, orchard unless said), each moved cell read by goldsum.py/rowpairs.py against the base: (1) the window and column rows to the page: tagline #b2c3b8 on #1d2824 to page.word #788079 on #0d1410 (3932 cells in 33) and their blanks (1834), the active column's #becfc4 on #314738 too (1268); (2) a pane tag's computed words in `word`: plain #819188 (1607), focused #a1b1a8 on the focus ground #394440 (1088); (3) the focused tag's ground #314738 (the old focus tint) to the chrome's #394440 and its full ink #becfc4 to #cadbd0 (991), the name tint on it (701); (4) a reading pane's tint #2c2c0f gone: focused to #394440 (746 + 647 words + 101 names), unfocused to the plain tag (234 + 219 words + 50 names), the head's dim on it to the focused dim #8e9d94 (165), its key #bada9d to #add38a (28 + 6); (5) grips: a reading unfocused one's ring #465a43 to the mode's sky #3096c0 (10 + 2), a focused reading one's glyph black to `mode_glyph` #06779d (6); (6) the rail's current tick, the text #e5eee5, to the current hit #917a53 (8 + 1); (7) a server's progress on the window row, hint #b7cb98, to the page's dim #666f68 (135, callstack, lsprelpath); (8) a hovered header word, the full selection, to the page's half #24382c in page.word (9 + 2, load, windowops); the tag's selection's ink #f5f7ee to the focused ink held on it #cadbd0 (65 + 1, tagpath); (9) blanks only: the dump's runs carry a blank cell's ink from the cell before it, so blanks after `Del`, on a grip's second cell and the column grips show the new ink with no glyph (271 + 253 + 22 + 18 + 6 + 4 + 4 + 4); theme.golden and themesel.golden (24 themes each), the same classes per theme: the window and column rows on each page (dark's the host's: `d`), dark_plus's blue status bar now the notice row's alone (H), acme's cyan header rows on its page #ffffea in #74746a, the focused tag on R4's step (acme #d1e6e6, dark_plus #565656, light #d1cfdb), the notice row's ink `status.text` (the tag's held), paper's and solarium's on the lifted plain tag (H's 1.1), acme's and lapis's resting grip their own ring as the cell; mini, collapse, ninep carry the same in their 9P captures' style rows; GATES (tui): core-test 1155/1329 (174 skipped), pane-test 184/185 (1 skipped), process-test 0 of 103 failed with --update (36 re-recorded, read above); THE END GATE's finds, fixed here: shell-test's look.zig tag hover and behaviour's column-tag sweep and tags' tint asked the old looks (re-pinned above), and behaviour's window mode lost its outline walking from the focused pane to another (each tag's own selection differs by ground: the outline is the plain tag's selection on every pane now); the whole stack's gates are in its last change's description; load 2.5 to 9.5; OUTSIDE draw.zig/Messages.zig: core/colors.zig (Selection.secondary, Grip.marks/Fill/Marks, three hunks), core/surface.zig (Chrome's reading underlay gone, two docs), dev/gui/gui.zig (underlay, gripFill, mark ink, gripDecor's band, coverFrame, two tests), core/Trail.zig, core/Core.zig, core/replica.zig, core/look.zig, test/column_drag.zig, test/panes.zig, test/behaviour/columns_and_tags.zig, test/behaviour/tags.zig (tests), test/snapshots (36) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
*-. merge (M2): W3+W3b lean chrome (krwnyllv 027c96360928) + L2cde/L2b/L3457 ↵Gabriel Schneider34 hours
|\ \ | | | | | | | | | | | | | | | | | | colour and themes with W4 (ryuzknor 14723377a8d1) + W6 Symbols by kind (pnmuqkop 8393c24f7667) + W78/T1/T23 previews, root search, the shell's prompt, a server started on open, kbdin's path (xuwpnwno 849542a05f7b), resolved: THE CODE: core/Pick.zig and test/behaviour/language_servers.zig, each side's tests appended at the file's end (W6's Symbols tests and W78's W8 test; W6's server Symbols test and T2's start-on-open test); core/colors.zig, where L2b took `hit` and `hit_current` out of Roles and W6 put `kind` beside them: W6's mark ink moves onto the chrome, `Chrome.Inks.kind`, the keyword held to 4.5:1 on each ground and on that ground's selection (a list's cursor row), worked out by groundInks at a theme change as the key and match inks are (DESIGN.md B4, B1.3), and draw.zig's band draws a row's kind mark in the focused or the plain tag's `kind` (`p.chrome().on(...)`, the band's other inks still Roles' until L2a), Roles.kind and its floor check gone; the ring's per-ground check (ringFailures' `inks`) holds it to 4.5:1 on its ground and its selection where the keyword's hue reaches it there (a hue held to the end of light keeps a trace of itself: #000100 on solarized_dark's grey tag and its selection reads 4.49, papercolor_light's page under its dark selection 3.33; held to pure black's reach those two failed); Pick.zig's Symbols test asks the mark in `p.chrome().on(.focus).kind`; test/soak.py's safe_tags wrote the old window words to /tag, which since K'2 appends them after the computed `Find Grep Newcol Help Exit` (a doubled row, and Exit, computed, not taken away): it writes `Joincol Themes`, the old safe tag's words the row no longer computes; THE GOLDENS: the 40 in conflict (14 on L2b's tree, 40 once L3457's 37 came in) re-recorded once with `process-test -- --update` (the whole run before it failed on exactly those 40; no other golden moved) and each read against both sides and their common base (ymkwwwnn) by .scratch/walkui/M2/gcmp.py, g9p.py and galign.py: text rows, and every changed cell's style pair explained by the other side's base-to-side pairs (its ink and its ground each): lean's words and rows on every snap (`text == A` wherever the other side moved no text), every colour the other side's (L2b's hits, chip, secondary selection, diff grounds, guides, sweeps; L3's focused name tint #dfbce5 to #ecc8f2, resting grip #496656 to #465a43, column grip #887455 to #504733), 0 cells unexplained; the other sides' text at lean's rows: W4's `l Lists` in find's SPC f level and its `C-o back to ...` notes (find, fsearch), W78's preview spines (find), W6's marked, grouped symbols (lsp: `f helper`, `f main`, `c std`, the preview landing on helper's line 3), T1's `$` kept (ttyhelp's leaderworks, row 2) and W4's Resume doc at the +Help's foot (ttyhelp), L5's ring (theme: five new snaps, dark, light, mono, okabe, sepia; themesel: every step's rows and styles L3457's row for row, one row up under K'2, only the rail thumb's cells moved, the panes one row taller); tagnav's Themes list shows in neither lean's recording nor the merge's (the window row's click lands on Dump there); the 9P captures (collapse, mini, ninep) read the same way; no merge fault found; GATES: core-test 1155/1329 (174 skipped), the ring 245 of 245 themes with no expected failure; process-test 0 of 149 failed (3 skipped) after the re-record; load 0.8 to 7.1 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
| | * Pick, Query, Stream: Find and Grep search the work tree, the nearest ↵Gabriel Schneider39 hours
| |/ | | | | | | | | | | | | directory at or above the asking pane's that holds a `.jj` or a `.git`, or the pane's directory outside one, and a leading directory narrows a Grep (the comparison video's finding, VIDEO2/STORY.md §3.1 and §9: from src/torque in V8 `SPC f f` listed its 67 files where Helix, LazyVim and Doom list 18,441, and `SPC f g` found 11 hits in src/torque alone; SPEC §5.1's "scoped to a directory if the query starts with one" found nothing; the coordinator's W8, the user asked, the default yes); THE CAUSE: Pick.open set every source's directory to the asking pane's (Pardes.paneDir), and Pick.filter sent a Grep's whole query to the disk engine as its pattern; THE FIX: Pick.workTree (Find and Grep only: Recent, Panes and Symbols as they were), a stat of `.jj` and `.git` per directory up from the pane's through the tape's kind site, once per picker opened; the rows' paths are from the root (Find's `src/torque/torque-parser.cc`), so Names' subsequence match over the whole path makes `torque/pars` narrow Find with no more code; Pick.grepScope: a query whose first word, then a blank, is a directory under the root (or absolute) searches that directory for the rest (`src/torque "UpperCamelCase"`); its rows' paths stay from the root (Query.take's `under`, the narrowed directory before each path; the query pane passes none), and the preview lights the pattern alone; no directory added to the head (the coordinator's rule: none was shown); RUN (TEST FIRST): Pick.zig "Find and Grep search the work tree (W8) ..." makes a tree with `.git` at its root and opens Find from src/deep/x.txt: its directory the root (on W7's tree src/deep), three rows, `sub/name` one, `sub/name.txt`; Grep `needle` two hits, `sub needle` one, `sub/name.txt:1 needle one`, its place the root's sub/name.txt; from `/held.txt` (no repository above /) the directory `/`; the tests whose Find or Grep pickers list a temporary directory make it a work tree of its own (Pick.testFile, and four tests in behaviour/addons.zig, addons_pdf.zig and other_files.zig): under the repository's .zig-cache it is in the pardes tree; MEASURED on a reflink copy of VIDEO2's V8 (18,441 files) with this change's Debug gui at 26 px, from src/torque/torque.cc, after the last key (V4's probe in brackets, the installed build): SPC f f 18,414 rows, the first at 0.10-0.11 s and all at 0.14-0.16 s [0.02 s, 67 files: src/torque alone]; `torque/pars` 7 rows at 0.09 s, torque-parser.cc among them [0 rows]; Grep `"UpperCamelCase"` 11 hits from the root at 0.26 s, its typing pause included [0.11 s, 11 hits, src/torque alone]; `src/torque "UpperCamelCase"` the same 11 at 0.15 s [nothing]; this harness on the installed build: 67 files at 0.05 s, the grep 0.11-0.13 s; keys typed through the frontend (the S kit's pty): a key written to 9P's kbdin runs the listing and the search on the loop for its write's answer (Pick.start and filter's `p.fs.serving` step), so a script's `SPC f g` over V8 holds the session for seconds (seen: the 9P client timed out), as before this change over a smaller directory; the find golden (test/snapshots/find.golden) re-recorded: from sub/ZQMARK-beta.txt `SPC f f` lists the root's five files, a band row more; replica.zig's may_wait lists `Find *` and `Grep *` stopping at `kind` (the root asked of the session's disk, as their listing and search are); gates: core-test 1129/1302 (173 skipped: +1), shell-test 1350/1353 (3 skipped: +1), pane-test 183/184, behaviour-test 285/285 and --replay 285/285, process-test 0 of 147 failed (3 skipped; find re-recorded), term-test 17/17, kitty-test 45/45, the gui unit-test 1958/1962 (4 skipped; its perf check's BaselineHarnessMismatch, every base's) on this change, W7 under it; no dump change; shots .scratch/walkui/W78/png v1-v3; no frame or perf gate (the user's rule of 2026-11-26); load 3.7 to 15.9 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
* / tagline, layout, draw, mouse, edit, dump: one column, one row: the window ↵Gabriel Schneider39 hours
|/ | | | | | | row holds the lone column's words at its left (`New Term`) and the window's at its right end (`Find Grep Newcol Help Exit`, then `Restore <dump>`, then the user's text), and the column-tag row comes only with a second column (`New Term Joincol Delcol` over each), or a column tag holding the user's text (UX DESIGN K'2, binding; the user: "I liked C and D for the tagline like we could show the column tagline only when we have multiple columns"); THE OLD WAY: the window's and every column's tag were a row each whatever the window held, 2 of 20 rows at the demo's 84x20 before a line of text, their words their own text (`global_tag.own`, `col_tags[c].own`, or until edited the defaults `Newcol Joincol Find Grep Help Changelog Tutor Dump Themes [Fonts] Config History Debug Exit` and `New Term Find Grep Joincol Delcol`), and Restore's word swapped inside the window's own text (Core.pointRestoreAt); THE CHANGE: a header reads as a pane tag does since K'1, computed words, a blank, then the user's text (tagline.headerWords, headerText; config.window_words_str, column_words_str, columns_words_str; the old lists kept for the dumps and for /tagexec's refusal of pane words, ninep/cols.zig paneWord), the words read-only (edit.setEditTextSpan refuses an edit that changes them and their blank, editText edits the text as shown, flatSurface shows it), the keyboard starting on the user's text (enterHeader, as enterTag), Restore computed (pointRestoreAt keeps only the path); layout.columnBarHeight is 0 with one column and no column tag holding text (and with a window row to take the lone column's words: a native shell's window with none keeps the column row), layout.columnInWindowRow says the lone column's tag is in the window row; tagline.windowRow is the one rule for the window row's two sides, in cells (the column's text and its caret's cell from the inset; the window's text right-aligned, its caret's cell at the right edge, a server's progress after its text while one runs, tagline.sessionProgress; cells from glyphs by layout.tagCapacity's inverse), read by draw.zig (addRegions: a `.column_tag` region for column 0 in the window row, no grip; paintHeaders: the window row on the tagline's ground end to end, column 0's layer at its left in the row's inks, the window's layer from its words), mouse.zig (headerPoint and the press: the column's side, the window's, the blank between no one's), workspaceBlank (the inset and the blank between are the pixel shell's drag area) and root.zig's pixel grid (taglineOriginCol, gridColAt, the macOS fallback); Core.sync lets a column tag keep the keyboard in the window row; revealHeader scrolls each by its own side's width; flattenHeaders keeps the caret on its character in the text as shown; a 9P header write appends to the user's text and a truncation clears it, the words staying (ninep/cols.zig); Help's `topbar` annotation names the window row's words (root.zig shortcuts; docs/typ/builtins-tui.json from `zig build builtins-json`, builtins-gui.json the same 9 lines by hand); RESTORE: dump.dropOldTags also drops a window tag's own text equal to the old row (either build's, with or without its `Restore <path>`) and a column's equal to the old column tag, any other kept as the user's text; A FAULT THE ROW FOUND (core-test, ninep/tree.zig "random placements ... leave no pane under its tag and two rows", seed 30, 8 rows: Newcol with two panes at their minimum left `pane 2 h 2 min 3`): layout.keepColumn's trial shares a column's rows out again for the new layout and, refused, dropped the column but kept the trial's shares, so the column's panes came back on the old height with the trial's weights, one under its minimum; a column row that comes with a second column now makes every refused Newcol in a full column take that path; THE FIX: keepColumn puts every pane's weight back when it refuses (a user could hit it before this change too, where a narrower column wrapped tags); TESTS (FIRST): layout.zig "the column row comes with a second column and goes with it, the panes giving it and taking it back; a column tag with the user's text keeps it (UX K'2)" (one column: no row, the pane at row 1; Newcol: the row, both columns' panes at row 2; Delcol of the second: the pane's rect back as it was; the user's text keeps the row alone, emptied it goes), mouse.zig "one column's words at the window row's left and the window's at its right each run their own; the blank between is no one's (UX K'2)" (windowRow's sides at 100 columns; B2 on New makes a pane in the column; B2 and B1 on the blank nothing; B1 on Term gives the column's tag the keyboard there, its caret on the cell; B2 on Newcol at the right a second column), tagline.zig "a header reads its computed words, then the user's text: typed there, kept through a change of its words (UX K'1, K'2)" (typed at the start, a Backspace into the words refused, Restore coming in before the user's text, Joincol Delcol into both columns' words with a second, Newcol's tag typed into), "a dump of a build before UX K' restores a header's old default own text as none, any other as the user's (UX K'1)" and "the window row is blank at its inset and between its two sides, and nowhere else (UX K'2)"; TESTS CHANGED, each for the row or a word that moved: Core.zig the Restore word (computed, the user's text after it, across a Restore), editable headers (a sweep over the window's words, `a` into them refused, typed after them; the column's tag typed into at the window row's left brings the column row, emptied it goes, the keyboard staying), topbar hover (each side's first word), the short screen (sync before presenting the user's text); tagline.zig flattening (the caret on `a` of Snarf in the text as shown); keys.zig (W4's file, the test only: `s` in the window tag finds `i` twice, Find and Exit); Handover.zig (a column carried by its grip: a second column first, the grip is in the column row); replica.zig (the kind's pane under one row of body: 4 rows, not 5); ninep/cols.zig (the column's and the window's tag read, cleared and appended to after their words); root.zig (the window row's blank on the body's grid, its words compact from their origin); dev/gui/gui.zig (L2cde's file, the test only: the window's text starts at windowRow's words); test/panes.zig (a header's click past its words), test/column_drag.zig (the tags compared by their own text: columnTag now builds in the step's scratch), test/hxdiff.zig (25 rows give helix's 22: one row of chrome less); BEHAVIOUR: columns_and_tags (the window's words at the row's right end; a lone column's tag `New Term `; a click past it on its caret's cell types the user's text and brings the column row, the pane's tag under it, and a wider run of 界 to scroll it; Help, not Tutor, for Tab from the window's tag; a column tag typed into after its words), keys (zz at 80x24 for a view of 21 rows), modes (`b` from the column tag's user text onto its words), tags (the user's text in a column tag brings the column row: the pane one row lower); addons/{fake,life,pdf,snake}.out re-recorded (each kind's window one row taller); PROCESS: 27 waits on `Newcol Joincol` now `Newcol Help Exit`; Dump (dump, load, restore, headersweep-restored), Debug (topbarexec, windowops) and Tutor (tutor), which left the window row, typed into its own text after its words (B1 on Find, A, the word, Esc) and run there by B2; headersweep types after the window's words with A (a click at a column now inside them) and sweeps the second column's `New Term`; tagnav enters the column tag on its user's text (`b`, not `w`) and types Dump into the window's own text, its five B from `$` having run Themes in the old golden, not the Dump its comment says, now one B and Dump, and three B onto Restore; and every click on a row under the column row of a one-column session one row up (the window row's own clicks unchanged), each checked against its old golden's screen, the lower pane's rows staying where the extra row went above them (diffview's last look); GOLDENS: 101 re-recorded (ttyhelp left as it was: the change after this re-records it), every snap checked by a script against its old screen (each text row the same or one row up, the caret the same or one row up), every move one of: the window row's new words (the lone column's `New Term` at the left, the window's at the right end), the column row gone with one column (every row under it up one, one more text row at a foot), the column tags' words, Help's `topbar` annotations gone from the words that left, a header's caret on its user's text (emptycol, layout-close, tagnav), a nested session two rows (nested-optout), the typed Dump, Debug and Tutor in the window row; GATES: core-test 1130/1303 (173 skipped: +4, ssonuoyn 1126/1299), shell-test 1351/1354 (3 skipped: +1), pane-test 183/184 (1 skipped), behaviour-test 280/280 and --replay 20 seeds of 70 steps 0 failures, process-test 1 of 147 failed (ttyhelp: this change moves it too; the change after this re-records it; 3 skipped), term-test 17/17, kitty-test 45/45, the gui unit-test 1954/1958 (4 skipped, none failed; ssonuoyn 1949/1954; its one failed step the perf check's known BaselineHarnessMismatch); the two tagline.zig tests on the base (ssonuoyn, the tests alone): both fail, the header's at its first question (`Newcol Joincol Find Grep Help ...` where `Find Grep Newcol Help Exit ` is asked), the dump's at the window's old row restored as its own text (the layout and mouse tests ask for windowRow and columnInWindowRow, which the base has not); the dump fuzz at 40,000 join seeds twice and 1,779 image seeds 11/11 (no field changed; the header rows change the layout); the soak `replicas -- --clients 5 --rtt 30,80,207`: diverged 0, unequal 0, agree/differ 491/0 338/0 522/0, unlisted stops 0, the corpus 22 of 22 scenes the same, no leak; no frame/perf gate (the coordinator's, at the programme's end); load 2.0 to 14.8 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
* config, look, Trail, tests: jumps walk by default, `Jumps new-pane` the ↵Gabriel Schneider3 days
| | | | | | opt-out (walk UI G item 3, the coordinator's ruling: SPEC §6.6), every test about a jump opening a pane set to new-pane, a reader placed with its walk in its tag and a stepped pane lifted to its tag's rows: config.zig Settings.jumps is `.walk`; FOUND BY THE FLIP (core/ninep/tree.zig 'random placements, refused or not, leave no pane under its tag and two rows', seed 69 rows 21: a Look's reader 5 rows high where its tag takes 2): look.zig walk set a new reader's walk (‹@pN and its place) after openNew had placed it, so its rows were given for a tag a row shorter; openNew sets it before layout.placeNew now; Trail.show (a step to another file in place, Back, Forward, a list's n) replaced the pane with its trail and a longer name and gave it the old pane's rows, and a step in the same file pushed a word the tag may wrap on: Trail.lift gives the stepped pane its minimum from its column (layout.restoreMinimaFrom, the others keeping theirs); NOT FIXED (seed 109): a step in place in a column with no rows to give still wraps its tag under its minimum (the spec's give-way, folding the trail further, is the fix): that test runs with new-pane now (it is about placements as a Look made them), its comment says so; core/replica.zig's may_wait gets `Look *` stopping at read_file: a jump from a held pane (a kind's, a listing's) opens its reader from the disk where new-pane focused the reading pane already showing the file (SPEC §6.1 focuses a held one only); TESTS SET TO `Jumps new-pane` (each ABOUT a Look opening a pane, a query pane, a twin, Back/Forward over panes, a placement): 39 core and pane tests (look.zig 10, Query.zig 7, jj.zig 7, edit_cmd.zig 3, ninep/ctl.zig 2, test/panes.zig 3, lsp/Ask, Messages (C's SPC e +Search way), Store, layout, rollback, replica, ninep/tree), 25 behaviour tests (look-and-exec 5, placement 4, other-files 5, modes 3, language-servers 3, settings, follow, addons, columns-and-tags, panes), 18 process cases (`.init` or Tty.config: edit, flags 2, the canary, mounts, other-files 2, root-ctl, tree 2, filewatch, topbarexec, chordcut, cmdword, grep, lsprelpath, lsp-rename-files, layout-open); TESTS OF A FILE PANE'S TAG made to hold their pane first (`Keep`, SPEC §6.5: the `Keep` word moves every offset after the path): 16 behaviour tests (tags 11, keys 2, panes, columns-and-tags); GOLDENS regenerated and read, each changed row only ` Keep` after a reading pane's path (.scratch/walkui/G/gkeep.py): argv builtins cmdexit collapse delask lsp-rename lspcomplete markup mini msg nested-optout pipe savepane selregex themesel tutor (16); the other 41 changed goldens are NOT in this change (their rows move with more than the word: see the next change); tui core-test 1037/1206 (169 skipped), shell-test 1253/1256, pane-test 183/184 (1 skipped), behaviour-test 277/277, process-test 41 of 146 failed (those 41 goldens, every one a GoldenMismatch) Co-Authored-By: Claude Opus 5.5 <[email protected]>
* messages: one notice row at the window's foot indexes the live messages, and ↵Gabriel Schneider3 days
| | | | | | the chips over the bodies go (pick-ui SPEC §10.3, walk UI line C item 2): the panes' area ends a row higher (layout.noticeRowHeight, none on a screen under 3 rows, as the column tags); the row is a header layer of its own (Layer.Kind.notice_row, NOTICE_ROW_LAYER, Region.Kind.notice_row) in the workspace tag's colours: on the left the message the row leads with (error > question > warn > notice > echo, the newest within a rank: its glyph in its kind's ink, its cause unless its words name it, its words without a host's clock stamp, ×n, its places as words), dimmed once its bright time is over; on the right +N more, N questions · SPC e, SPC e walk for an error with places, or N messages · SPC h m; with nothing live the focused pane's path:line (a terminal's directory); built each frame from the state (Messages.noticeRow, bounded by notice_row_cap), the left part giving way to the right; B2 runs and B3 Looks at a word on it (mouse.zig); Pane.Notices keeps the leader's and a prompt's chips only; a latent fault found by it: a kind's pane reopened (its file changed on disk, a Restore) kept the hashes of the views its old state was told, so the new state was never told its view and a PDF stayed blank until something moved its pane; the reloaded message's chip used to move it (Kind.reopen now tells a new state every view; behaviour addons_pdf's disk-change and Restore tests, failing before the fix); a message's cause for a kind's pane is its path; every frame changes (the foot row): boot's foot reads '/tmp/pardes-snap/boot/cwd', msg's 'repainted' '· saved /tmp/pardes-snap/msg/cwd/a.txt 2 messages · SPC h m' where a chip stood on the body's first row; the 98 tty goldens rewritten and read (57 the rows shifted alone, the rest the chips gone and racy shell output re-recorded; no file-written block and no snapshot's name changed), the four tty cases that click at fixed rows given a row more (chordcut, layout-open, images, respawn: their cursors unchanged), the addon scripts' outputs (fake, snake, life, pdf: windows a row shorter, the chip gone), hxdiff's core a row taller (22 rows as helix's), the tests over tiny screens a row taller, the drag edge of a bottom pane over the notice row (mouse.zig); tests: Messages.zig 'the notice row leads with the most important live message ...', 'a builtin announces itself on the notice row, an echo ...', draw.zig 'the word under the pointer on the notice row is lit ...', 'a message wider than the notice row ... gives way to the row's right end'; tui gate: core-test, pane-test, shell-test, behaviour-test (and --replay: 20 seeds, 0 failures), term-test, kitty-test pass; process-test 0 of 146 failed; the gui build is gated at the line's end Co-Authored-By: Claude Opus 5.5 <[email protected]>
*-. merge70: main (8a40a71e2eab, installed 2026-11-24 16:00) + an idle session ↵Gabriel Schneider3 days
|\ \ | | | | | | | | | | | | | | | | | | sends nothing (mzmzszzk: the clock held after a wait only while a post waits) + a terminal client keeps a terminal's row metrics (nmvzxqrp; yrslyomp is main's clip correction again) + docs/loose-ends.md (oosunrzm) + a view scrolls by rows, its two soak faults fixed (vnlwrnvu: top_skip read through File.topSkip, scroll_row no place held at a load); wire 35; no conflict Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | * soak: a join's dump that loads as another session says the fields it differs ↵Gabriel Schneider3 days
| | | | | | | | | | | | | | | | | | | | | by, as a client's join says them (replica.fromDump's words: `loadDiffers` made pub): the coordinator's merge67b release soak had 'seed 3 rtt 207 ms: client 3's dump loaded as another session' and no field (1 in 12 seed-runs), not reproduced yet Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | * replica: `may_wait` lists the two stops the soaks saw that no row held, each ↵Gabriel Schneider4 days
| | | | | | | | | | | | | | | | | | | | | a read of what only the session has: `a key into a kind's pane` (a key to a kind this client does not run, no library for it here or not PA_PLAIN: its state the session's, as "a replica with no code for a kind whose state is not plain ... its keys go to the authority" has it; on `.addon`, which the walk does not stand in, as the kinds' other rows) and `jj` (jj run in the session's tree: `At <rev>`, a file at a revision; a Look at a change id, its patch; `Diff a..b`: what the session's repository holds, its disk, as `resolve` and `read_file` are); the walk walks `At @-` (walk_samples), which stops at `jj` on a file's pane and a directory's, so the row is held to a stop it names (the shell-test walk's stale check passes with it, 12/12); WHERE EACH WAS SEEN: the first only after a divergence (the geometry fault, the change before: a client that found the pdf break PA_PLAIN distrusts it and joins again without its code, then every key into its pane stops there: 532 in rpplxwst's soak), none in a soak with the fix; the second on main's soaks (pair-14, link-3, merge65's release soak: a client's Enter, `\r`, stopped at `jj`), whose path to a jj site is not named here (Enter on a word that reads as a change id, in a scratch and in a file, stopped nowhere in a probe) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | * layout: a view's geometry is read back as its session holds it, never laid ↵Gabriel Schneider4 days
| | | | | | | | | | | | | | | | | | | | | out again at a load, and held to its screen (walk.zig `.within`): a dump whose rect or column is off its screen is REFUSED, the field named: RUN FIRST (the soak, `replicas -- --clients 5`, Debug): `rpplxwst` ALONE diverged 124 at rtt 30 (225 clients parted at their first unit after a join, `addon pdf: its state after view is not the session's (it breaks PA_PLAIN)` and `the tape's answer to addon is short`; then 532 keys into the pdf's pane stopped at `a key into a kind's pane`, the kind distrusted; the witness's replay past a divergence panicked, `integer overflow` in Core.advanceInner), `pardes-merge67` 0 at 30, 80 and 207 ms; THE CAUSE: a join opens its client a view (views.zig `open`: the live one's screen and columns, NO rects: laid out at that view's first input), and rpplxwst's load (dump.zig `afterLoad`) laid every view out again, so the client had rects for its own view the session had not, told its plain kinds a view the session never told them (Kind.zig `step`, `viewOf`), and parted at the session's next step; a join's dump is the session: THE FIX: `rects`, `col_x`, `col_w` back in the digest, the dump and the copy as merge67 had them, `afterLoad`'s relayout gone (and walk.zig `pastHeld`'s pass over a derived buffer with it), and where a value read back may be is declared beside the field: `replica.within` (a predicate of the struct by the entry's place in the field, as far as its length says), checked with the indexes (`heldIndexes`) in all three decoders (a tape's `decode`, a byte dump's and an image's `holdTo`): `View.rects` on its screen (`onScreen`: x + w <= screen_w, y + h <= screen_h, as the layout pass puts every one, and a view not laid out yet has empty ones), a column's edge with its width (`columnOnScreen`, declared on `col_w`), refused in words (`Core.View.rects[0] is not within Core.View.onScreen: refused`), never clamped (a clamped rect is a state no session had); `cols` stays held to `ncol` (a column past `ncol` is a dropped one's, which the index rule would read); TESTS FIRST: replica.zig "a client joins with its session's geometry as the session holds it ..." (a plain kind keeping the rows its view was told; on pardes-load-index: `expected 0, found 5`, the joined view's rect, and without that line `the tape's answer to addon is short (tape byte 241, in tick)`), dump.zig "a view's geometry is read back as the session holds it, never laid out again; a rect or a column off its screen is refused, the field named" (the fuzz's restore seed 589: a pane 534 rows tall on a 24-row screen; a column 900 wide; a column's edge at 900), walk.zig's index test gains an entry not where it may be (`S.edges[1] is not within`, a tape, a dump and an image) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | * integration: the tree to install next: a view scrolls by ROWS: `main` ↵Gabriel Schneider4 days
| |/| |/| | | | | | | | | | | | | | | | | (pardes-merge66, 0252c830daf6, installed 2026-11-24 01:22) and pardes-row-scroll-3 (`wkxsvmun` on `kyntorlp`, `rymstysv`, `qwssppvo`, on pardes-merge65: a view's top is (line, row within the line's own wrapped rows): a notch is one row through a wrapped line and a wrapped description of the layer, the margin, PageDown/PageUp, `gt`/`gb`, `gw`, `blankRows` and a Look's centring count rows; the wire 35); no conflict; REMOVED HERE: `core/walk.zig.orig`, a patch's leftover that `pvwuwnlk` had added; EXPECTED in its gate and ruled: corpus frame 76 differs (the margin counts rows: the new picture stands) and ten perf counts over tree7 (P85: the view now draws the rows the cursor is on in a wrapped line: deep-sel; the cursor's row found in long lines); its gate: .scratch/sketch/reorg/merge67, the numbers in PARDES.md Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | * scroll: a view's top is a line and a row within that line's own wrapped ↵Gabriel Schneider4 days
| | | | | | | | | | | | | | | | | | | | | rows, and a scroll moves it by rows (P62, round 3, on the layer's new model where the `Changes` layer's lines are lines of the buffer): a wheel's notch, the glide, PageDown/PageUp, zj/zk, Ctrl-d/u, zt/zz/zb and the margin (`scroll_off` now ROWS) go a row at a time through a line wrapped over many rows and through a long description line of the layer, where the base jumped all of a wrapped line's rows at once (the user, 2026-11-23: "the scroll view jumps around near deleted lines on the diff view"; one-row deleted lines were cured by the layer's second step, a wrapped one was not): TESTS FIRST: core/jj.zig "a view scrolls by rows through a line wrapped over 12 rows and a change's description wrapped over several (a line of the layer): ..." (a notch is one row down the whole text and back, the notches the text's rows exactly; PageDown/PageUp a page of rows; zj/zk one; a held j and k keep the cursor's row `scroll_off` rows inside the body) failing on the base at notch 21 (line 20's 12 rows crossed at once), and "a client wheels its session's view a row a notch into a change's description wrapped over several rows ..., agreeing at every notch; a client joined over that view loads its row"; kept from round 1: core/replica.zig's join over a view scrolled into a wrapped line (with a rollback and a dump) and the explorer of a view's rows (30 seeds), dev/gui's glide a row a notch; THE CHANGE, taken from pardes-row-scroll (`xrxmqlnw`) and -2 (`xxzmwnvq`) without their ghost-row "blocks" (a block is now just a line's own rows): `File.State.scroll_row` and `views.PaneView.scroll_row` in the generic walk (digested, dumped, copied; a dump of 34 loads at its lines' first rows), the wire 35; core/File.zig `Top`, `rowIn`/`rowWalked` (a line's rows as fillBody wraps them, `guideOf` shared), `rowOf`, `lineRows`, `top`/`setTop`, `walkRows`/`walkKnown`, `rowsTo`, `rowsOf` (off the map where it holds the line), `mapFresh`, `scrollRows`, `shownRows` (the geometry laid out first), `show` (a cursor's or a result's row inside the band, the line's rows whole when they fit), `textRowLine`, fillBody's skip to the top's row walked once a geometry (`Pane.top_skip`, derived), the geometry's key with `scroll_row` and stored as what the map was made from; the one-row fact `State.widest` (`Widest`, an upper bound kept by the index's own vector passes `countLines`/`fillLines`) so a view whose lines are each one row walks nothing (`oneRow`: line arithmetic, checked against the walk in Debug); `fitEnd` a vector of printable ASCII at a time; the callers in rows: panes.zig `scrollBy(tab, delta)` and `ensureCursorVisible` (a file's through `File.show`), the wheel and the rail and the edge scroll (mouse.zig), Ctrl-d/u (normal.zig `halfPageMove`), zt/zz/zb, Ctrl-f/b and PgUp/PgDn (Text.zig `scrollViewMove`), Look's reveal and centring, Places' `goTo`/`restore`, Query's `showCurrent`/`caretTo`, the frames' `Region.row` and the glide (dev/glide.zig, the window's `topOf`); test/perf.zig's checks by (line, row) and its seek at a line's first row; Debug in the workspace: core-test 963/1129 (166 skipped), shell-test 1172/1175 (3 skipped) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * | replica, gui, tui: the clock a session's pump reads after its wait is held ↵Gabriel Schneider3 days
|/ / | | | | | | | | | | | | only while a client's post waits for it (Peers.heldNow, which both shells' clocks call), so a wait that ran out always reads the clock and its step meets the deadline it waited for: a window's session showing a PDF with a client attached stepped ~700 times a second with nobody typing, each step a unit every client replayed (the multi-client line's "a PDF in a window's session floods every client"); RUN (an instrumented Debug build, the window's loop offscreen with no test mode, a terminal client; .scratch reorg/pardes-idle-flood/runs/probe): the client's view of the PDF (pane 1, view 1: 78x9, 8x16, glyphs) owed to the kind from its join on (Kind.wake: now, so nextWake a frame on), and 2247 of 2268 pumps 'mail_only true, mail false, wait ran out', the clock read after each the one held at the join (1.302 s while the real one ran to 2.93 s), so advance never reached the deadline, the view was never told, and the next wait was 1 ms: for ever; THE CAUSE: dev/gui/gui.zig guiNow held the clock after any wait whose `mail_only` was still set, and waitInput sets it at a wait's start and clears it only for an event that is not a replica's wake or a queue message: a wait that ran out (SDL_WaitEventTimeout false, waitDetached's too) took no post and still held the clock; a terminal's session never did (its wait ends in a .wake event, tui.zig apply clears it); THE FIX: Peers.heldNow (core/replica.zig): held only when the wait took nothing else (the shell's `mail_only`), a client is attached (`recording`), a post waits to be taken (`mail`, set by post, cleared at the boundary) and the clock has started; gui.zig guiNow and tui.zig clockNow call it (their own copies of the rule gone), so no shell's wait can hold the clock without a post; TEST FIRST: test/panes.zig "a PDF shown and a client's view its kind was not told: the session's next pump, its wait run out with nobody typing, tells it, and nothing is owed after; a client's post waiting holds the clock" (on the base's rule, the same function without `mail`: fails at panes.zig:4120, the view still owed after the pump); test/daemon.py --client-idle on this build: the window's loop 7 boundaries and 8 units with a PDF against the text alone's 5 and 6 (4871 and 4872 on the base), the test surface 223 against 207 (388 against 206), the terminal's 8 against 5; a user hit it: every window's session with a client attached and a deadline owed (a PDF's view, a message's linger, a Life's tick, a look's hover) stepped and sent a unit a millisecond until someone typed in the window Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| |
| \
*-. \ integration: merge65 with its fixes (zxslxmlo), pardes-release-soak-2 ↵Gabriel Schneider4 days
|\ \ \ | | | | | | | | | | | | (vszznuqx) and pardes-no-panic-2 (lokskytr): no conflict
| * | | replica tests: `joinedNow` sends what the session recorded as a unit before ↵Gabriel Schneider4 days
| |/ / | | | | | | | | | | | | | | | | | | it dumps, as a join does (`Peers.dumped`), and a test of the jump fault at the replica's surface: round 1's open test ("a client joined from a dump keeps the session's jump list through a step", the session's list written by hand, entries with place bytes 0x11 and 0x22 round a gone pane's) failed in Debug with the client's list [now] against the session's [F, now]: NOT a second jump fault but a state no step makes: a print in `trackJump` showed the client's first unit replayed on a core made afresh (n 0, another core's address): `joinedNow` dumped with the authority's records since its start still on the tape, so the joiner's first unit began with the session's `init` (core/tape.zig `apply`: `.init` makes `t.core` anew) and threw the dump it had loaded away; the real join sends them first (`ps.unit` before `dumpJoin`); with the helper doing the same, every replica.zig test passes (95/126, 31 skipped) and the jump test passes on `walk.eql` and FAILS in Debug with the dedupe's compare put back to `std.meta.eql` (the session keeps the 0x11 and 0x22 entries apart, the client's loaded bytes are one fill: the digests differ): fault 2 held at the replica's surface, deterministically, on every build Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | / walk: a length past what its buffer holds is refused where a tape, a dump or ↵Gabriel Schneider4 days
| |/ |/| | | | | | | | | | | an image is decoded, its field named, never walked: merge65's core-test crashed in core/fuzz.zig's own dump fuzz (`index out of bounds: index 4503599627370496, len 64` at core/Text.zig:130, `Text.deinit` slicing `ed_redo[0..ed_redo_len]`, from views.zig `freeView`): a damaged dump was loaded with a length past its buffer, and the core's own deinit panicked (a digest, a copy and every use slice the same way); the layer's new fields moved the dump's layout so the fuzz's seeds reach it now, but the fault is the decoders': each read a `replica.len` pair's length as just a number. THE RULE, ONCE, for every pair of every type (the comptime walk lists them: `T.replica.len`, what the digest's `hash`, `fieldDigests`, the dump writer and rollback.zig already go by): `pastHeld` (the first length of a value past what its buffer holds: a slice's its own length, a fixed array's how many were read back, a dump writing one only as far as its length said, else whole), called where a struct's fields are decoded: `decode` (the tape: BadTape), `Loader.fields` (the byte dump, both of its paths: `heldTo`, BadDump) and `Get.fields` (the image: BadDump), the count read kept by each reader's `elements`/`listInto` (`filled`); the refusal's words name the field (`Text.ed_redo_len says N, past the 64 its buffer holds: refused`) and reach the user: `walk.load` and dump.zig `loadKnowing`/`loadImage` hand a refusal's notes out as they hand out a load's, and replica.zig `fromDump` says them (`the session's dump would not load: BadDump: <field> says ...`; `Replica.made` copies them out of the epoch); TESTS FIRST, each failing with the check out (run: the walk test loads `ring_len = 200`, the replica test panics `index out of bounds: index 7, len 1`): walk.zig "a length past what its buffer holds is refused where it is read back (a tape, a dump, an image), its field named, never walked" (a ring a length cuts and a room a length cuts, each through `encode`/`decode`, `save`/`load` with its length byte set past the array and past what the dump held, and `Put`/`Get`), replica.zig "a join's dump whose length says more than its buffer holds is refused, the field named, never loaded" (a column tag's `nsel` set to 7 in a byte dump's bytes, `fromDump`'s words); the fuzz as merged passes on it; the user's case: a Restore, an Upgrade or a join of a damaged dump is refused in words, the session going on (it ended at the first deinit or digest) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | changes layer: a file with no layer pays for it what tree6 paid, found by ↵Gabriel Schneider4 days
|/ | | | | | | measure (instructions by symbol and by source line, Intel PT, on the ReleaseFast pardes-perf, tree6 against round 9's base): perfops against tree6 from 12 of 121 over 0.1% to 1 (the base's `body-appends` +0.44%, `open` +0.235%, `client-key-down` +0.13..0.16%, `client-delete-undo`, `client-edit-char`, `deep-sel` +0.10..0.14%, every frame +3.8k); (1) `File.fillBody`'s row walk compiled worse with the gutter number's layer lookups (`readOnlyRow`, `fileRow`) inlined beside it: PT by source line, tree6's lines matched to the base's by their text, the same bytes walked, the inlined `fitEnd` byte loop +98k an op with no line and its checks reshuffled (body-appends +86k an op): `fillBody(comptime layered)`, as tree6's `comptime ghosted` was, chosen by `mapRows` and `bodyText` (a length test); (2) the 9P path asked the file's text and its offsets through calls: `bodyOf`, `fileDot`, `setFileDot`, `showFileOffset` answer with no layer by a length test, inline (core/ninep/pane.zig); (3) `open` (+8.8k since tree6, step 1's): not the change-id rule's regexp (it stands after the file rules and is never reached for a file) but its PARSE: pardes-perf's open boots a core each time and each core reads the rules at its first plumb (`Plumb.Parser.take` +4.0k, `expand` +1.4k, `feed` +1.2k, `endSet`, `word`, `append`, `stringToEnum`: +8.6k): the rule is deleted from core/plumbing and Look's own unresolved path takes a change id (core/look.zig `lookUnresolved`: eight letters or more, k to z, in a pane neither a raw terminal's nor a kind's, the rule's `src is pardes`; `jj.diffChange`; one naming no change searched for as before), no rule and no parse anywhere; (4) a client's key (+2.0..2.4k): the digest of File.State's two new fields, two small hash updates a pane a digest (Wyhash's buffered update and its memcpy): one field, `layer: Layer` (`owner`, `lines`: what were `layer` and `read_only`), digested by hand (`Layer.digest`: nothing hashed with no layer shown, a length test), its line in replica.zig's `hand_walked` (the test joining a client over a pane showing the layer); LEFT FOR THE COORDINATOR'S RULING: `terminal on all` +0.141% (+147k an op over the 18 terminal cells, +7.8k a terminal frame, the same in-run by an in-process counter around each cell): PT by line in the terminal's render cell: core/ansi.zig `recolor`'s per-cell style loop (source unchanged) compiled worse inlined into `body_layer.renderBody` after round 8's deletions there (`w.ghost`'s skips, `Pane.wrapAt`'s `ghost` field): what it buys is those deletions; `@call(.never_inline, ansi.recolor)` made it worse (+0.227%, and `deep-sel` +0.285%), not kept; perfops (the gate's malloc setting, load 2-9): v4 against tree6 120 of 121 within 0.1%, largest under the budget `client-key-down` on medium +0.065%; core-test 952/1118 (166 skipped) Debug tui Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* replica: a client let go takes its notes out of the batch the session is ↵Gabriel Schneider4 days
| | | | | | | 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
* link: a far client that falls behind dials again, as before round 1 (the ↵Gabriel Schneider4 days
| | | | | | | 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
* merge: round 1 of a link's lifecycle (pardes-link-1, `nlqrtuns`: a client ↵Gabriel Schneider5 days
|\ | | | | | | | | | | | | 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
| * link: a client whose link is up and must take the session's state again (it ↵Gabriel Schneider5 days
| | | | | | | | | | | | | | 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
* | integration (a base for the next rounds, not yet the gathered line): a ↵Gabriel Schneider5 days
|\ \ | | | | | | | | | | | | | | | | | | 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
| * | walk, dump, replica: a field's dump and its digest cannot disagree unseen: ↵Gabriel Schneider5 days
| | | | | | | | | | | | | | | | | | | | | 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
| * | dump: a join's dump and its digest are one moment: the dump asks the host ↵Gabriel Schneider5 days
| | | | | | | | | | | | | | | | | | | | | 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
| * | tests: a client's join over every kind of state 9P requests leave in the ↵Gabriel Schneider5 days
| |/ | | | | | | | | | | | | 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
* | integration (a base for the next rounds, not yet the gathered line): the one ↵Gabriel Schneider5 days
|\ \ | |/ |/| | | | | | | | | 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
| * replicas: what a core field points to is the rollback copy's, or lives ↵Gabriel Schneider5 days
| | | | | | | | | | | | | | 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
| * tests: what a rollback puts back of the memory the core points to, and a ↵Gabriel Schneider5 days
| | | | | | | | | | | | | | 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
| * replicas: one decision a unit, by one count in the core ↵Gabriel Schneider5 days
| | | | | | | | | | | | | | (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
* | integration (a base for the next rounds, not yet the gathered line): a ↵Gabriel Schneider5 days
|\ \ | |/ |/| | | | | | | | | 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
| * replica: a client of the old build that comes back at an Upgrade before the ↵Gabriel Schneider5 days
| | | | | | | | | | | | | | 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
| * replica: a client no longer gives up its session while the session says it ↵Gabriel Schneider5 days
| | | | | | | | | | | | | | 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
* | integration (a base for the terminals' next round, not yet the gathered ↵Gabriel Schneider5 days
|\ \ | |/ |/| | | | | | | | | 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
| * terminals: where a view stands in a terminal's history is the view's, not ↵Gabriel Schneider5 days
| | | | | | | | | | | | | | 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
* | integration: the pair's chain on the gathered line: pardes-pair-10 ↵Gabriel Schneider5 days
|\ \ | |/ |/| | | | | | | | | (`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
| * pair: a pair's user is told a newer build is installed: the words were set ↵Gabriel Schneider6 days
| | | | | | | | | | | | | | 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
| * pair: a pair's session puts the user's terminal back when its client dies ↵Gabriel Schneider6 days
| | | | | | | | | | | | | | 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
| * pair: a window's facts are its client's (P47): a client window applies the ↵Gabriel Schneider6 days
| | | | | | | | | | | | | | 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
| * pair: PARDES_TERM_BYTES (a working name) puts a session and its clients on ↵Gabriel Schneider6 days
| | | | | | | | | | | | | | 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
* | pty: a shell forks at its pane's grid, and the core hands its host every ↵Gabriel Schneider5 days
| | | | | | | | | | | | | | 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
* | replica: a client's own join again is judged after its goodbye ↵Gabriel Schneider5 days
| | | | | | | | | | | | | | (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
* | tape: no screen-state branch left, and a terminal's kitty images are each ↵Gabriel Schneider5 days
| | | | | | | | | | | | | | 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
* | replica: no road to choose, and the wire at 30 (the old road's deletion, ↵Gabriel Schneider6 days
| | | | | | | | | | | | | | 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