summaryrefslogtreecommitdiff
path: root/dev
Commit message (Collapse)AuthorAge
*-----. 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
| | | | * 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
| | * | | | gui: imageScissor is the placement's cells again: item 3's change (nvuylkxw, ↵Gabriel Schneider3 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | installed as 654a1632400a) kept a throwaway line of its own experiment (every picture's clip widened by 100000 px, to make SDL's scissor assertion fire on the test surface), restored in the wrong tree (a copy from inside the sketchbook checkout, whose ../pardes is ws-gate's): held to the target by sketchbook's Cells.onTarget it asserted nothing, but a picture was no longer cut at its pane's right edge (a PDF page or an image wider than its pane drew over the panes to its right); no gate row has a picture past its pane's right edge (77/77 frames identical with it); TEST FIRST: gui.zig "a picture's scissor is its placement's cells, cut at its pane's edges" (expected 40, found 100040 on the installed line; passes now) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | * | | | tui: a terminal's resize says a terminal's row metrics (terminalSize: ↵Gabriel Schneider3 days
| | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | .row_metrics = .{}, one cell for its tag and its body), so a terminal client's view, opened from a window's (views.open gives a new view the live one's `sized` facts, row metrics among them, and a resize with none keeps them, Core.zig 1681), wraps its tags at its own width: the user's "in some of them contents got cut" (2026-11-24), the hunt's cause 4: a 100-column terminal client of a window's session wrapped the PDF's tag at 120 characters in a 98-cell row (the window's tagline glyphs a fifth narrower than its body: layout.tagCapacity), its first row cut and its second begun past what was cut, the middle of a long tag never shown (the hunt's screens: 124 characters, the second row " Del"); TEST FIRST: tui.zig "a terminal client's view, opened from a window's, wraps a tag at its own width" (two views, 140 and 100 columns, a file's pane with a 40-word tag): before, w22 to w27 missing; after, every word shown; the PDF's text cut at a narrower client's right edge is the PDF's text layer drawn line by line, unwrapped (pdf.zig paint), the same in a terminal session of that width alone; nothing on the wire changes shape (the field was there, null) 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
* / / / gui: a picture is cut at its pane's right edge again: imageScissor's width ↵Gabriel Schneider3 days
|/ / / | | | | | | | | | | | | | | | | | | | | | is its placement's cells, as it was before 654a1632400a: that build (nvuylkxw, installed 2026-11-24 14:50) carried a throwaway line of the clip experiment (`+ 100000, // THROWAWAY: past any target`: every picture's clip run 100000 px past its width, so that SDL's scissor assertion could be met and the hold in sketchbook shown), restored in another workspace through `../pardes` from the shared sketchbook checkout and so kept in this one; held to the target by sketchbook's Cells.onTarget it asserted nothing, but a PDF page or an image wider than its pane drew over the panes to its right; no gate row has a picture past its pane's right edge (77 of 77 frames identical); TEST: gui.zig "a picture's scissor is its placement's cells, cut at its pane's edges" (fails on 654a1632400a: w 100040 for 40); the same change as yrslyomp on the multi-client line, put on main by itself for an install of its own Co-Authored-By: Claude Opus <[email protected]> Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | | gui: an SDL assertion in a pardes window is logged once with its words and ↵Gabriel Schneider3 days
| | | | | | | | | | | | | | | | | | | | | gone on from, never SDL's dialog (sdlAssertion, set in runNative before SDL's first call: every window of pardes, the session's, a client's, the pair's, starts there; a test build fails at one), and a frame's clips are held to the target where sketchbook sets them (sketchbook soynqook: Cells.onTarget; scrollScissor's own clamps to the target go, imageScissor's clip is the placement's cells): the hunt's client window met SDL_SetGPUScissor's release assertion ('Scissor rectangle size exceeds current render target dimensions', 1 and 215 times in 30 sizes: its view's frame drawn at the session window's size into its own smaller target, item 2's cause) and SDL's default handler put up a dialog (zenity) that blocked the window's thread: the window stuck at 918x610 through 30 sizes, its last frame cut, nothing opened after shown (the user's "contents got cut (and panes didn't open)"); a terminal client has no SDL and no dialog: the same shape there is a panic, which runtime/main.zig's handler records and the terminal is put back (no-panic-2); RUN on a throwaway whose picture clips run 100000 px past any target (a PDF window client of a terminal's session, the test surface's capture target): without the hold SDL's assertion 86 times, logged once by pardes ("SDL assertion: !\"Scissor rectangle size exceeds current render target dimensions\" at SDL_gpu.c:1984 (SDL_SetGPUScissor_REAL); ignored, from now on"), the client going on to the test's end (its wheel, page 4, digests agreed); with the hold none; --client-resize-real counts pardes's line as an assertion too: 0, 14 inputs besides 22 pointer motions, 20 rollbacks; the real-window test keeps its windows away: driftwm places a window again when it maps, after the test's first move (a window came back beside the user's view about 1 s after it was moved, and stayed there for the run): `away()` moves it until it stays 2 s, else fails Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | | gui: a window's size is its own view's: the session's window posts it to its ↵Gabriel Schneider3 days
| | | | | | | | | | | | | | | | | | | | | own view, compared with that view, and a client window posts it when its own size changes, compared with what it posted last, never with a frame: the user's "resizing feels very slow" and "contents cut" with several clients (2026-11-24); RUN FIRST (an instrumented client in --client-resize-real, a stack at each frame of another size): the client drew its own view (views.drawOne, its view live) at the SESSION WINDOW's size, 70x21 in a 56x17 window: the session's pollFrame made its own view live only when that view's size differed from the window's (`due`), then resized the LIVE view by the window (updateCoreResize compares core.view()): after a client's input its view is live, so the session window sized the client's view to its own; the client, comparing its window with that frame (Client.own, g.facts), posted its own size again, the session sized it back, a unit and a rollback each way, on and on after the drag ended (the hunt: 246 to 1308 inputs, 228 rollbacks for 30 sizes, the frames cut, pictures placed past the target: the scissor assertion); a detached session has no window to do it (25 inputs); now the window's size (windowSize: its cells, their pixels, its rows' metrics, as Event.resize carries them) goes to the session's own view through Input.post (which makes that view live), when that view is not that size (sizedTo); updateCoreResize is gone, and the font's two refits post nothing (the pump's pollFrame posts the new cells the same pump); a client posts its size when the window's own size differs from what it posted last (`posted`, reset at a join), never by a frame (a frame is its view as the session had it then: a rollback's drew an older size); a terminal client posts its size on SIGWINCH against its last (winched), the same rule already; --client-resize-real asserts a size a configure at most and as many rollbacks at most: 20 inputs besides 11 pointer motions, 15 rollbacks, 0 assertions (main 425 to 1308 inputs, 228 rollbacks; with the motions merged alone 90 and 106 inputs); real windows on the user's display, moved away at once, closed after; load 3.3 Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | | gui, tui: a run of pointer motions is one input, merged where the window's ↵Gabriel Schneider3 days
| | | | | | | | | | | | | | | | | | | | | events become inputs (dispatch holds the last, Input.moved; Input.post posts it before whatever input comes next, a pass's end posts it), so the session's own window and a client's window, and every road into either (SDL's queue, the test feed, a finger's or a pad's posts after it), take motions the same way: the user's "resizing feels very slow with several clients" (2026-11-24): a client window fed every SDL event as an input (Client.wait), each a step of the session, a unit to every client and a frame of each; and the session's own window, with a client attached, held every motion after a wait's first for the next wait (Shell.split ran before waitInput's own merging loop), a wait, a pump, a unit and a frame a motion (the hunt's real window: 1652 motions in 0.35 s were 1655 frames of the session, 0.65 s behind the pointer); now split takes a motion after a motion as the same input, waitInput's merging loop is gone (its two dispatch loops are one, Shell.takeEvents), and a client feeds each input as it comes but a held motion, which goes with the next input or the pass's end (Client.feed flushes it); the tty session's own terminal had the same split (tui.zig: a second motion held before waitOnce's merge): split now lets a motion that goes on the wait's run through, by the merge's own test (movesOn); a terminal client's road merged already (its split is the session's only); --client-motion (300 motions a road, 30 bytes each, read 1024 bytes a pass: at most ten passes, each one input): a window client of a terminal's session 305 -> 14 inputs by the feed and 305 -> 14 by SDL's queue (the terminal client watching 765 -> 144 units over the run), the session's own window a drag with a terminal client attached 95 -> 9 frames (that client's draws 128 -> 13); Debug both ends, load 1.5-3 Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | | test/daemon.py --client-motion over three roads (FAILING on main), and the ↵Gabriel Schneider3 days
|/ / | | | | | | | | | | | | test feed's `mouse;pointer;<button>;<x>;<y>` (the motion `motion` builds, pushed onto SDL's queue as a mouse's comes, for the window's wait to take): the hunt's row wrote its 300 motions through the feed's own dispatch, which no real pointer takes; now 300 motions a road, each asserted at most 20 (30 bytes a motion, the feed reads 1024 bytes a pass: at most ten passes, each one input, and the five inputs a client makes anyway): over a window client of a terminal's session by the feed (`motion`) and by SDL's queue (`pointer`), the inputs it sent (PARDES_REPLICA_STATS), and a drag over a window's own session with a terminal client watching, the frames the window drew (its test status); on this tree (Debug, both ends) 305 and 305 inputs, and 95 frames (the session's `split` holds each motion after a wait's first for the next wait: a wait, a pump, a unit and a frame a cell the pointer crosses) 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
| | * tty input: a terminal's reply of any length is taken, up to a stated cap ↵Gabriel Schneider4 days
| | | | | | | | | | | | | | | | | | | | | past which it is dropped and said on the notice line, never an end of input: dev/tui/tui.zig `readInput` carried an unended sequence in a 1024-byte buffer and returned `error.InputSequenceTooLong` once it was full, and `inputReader` then posted `.quit`: a clipboard read's answer (OSC 52) over about 759 bytes of clipboard ENDED THE SESSION (the test below on the base: `InputSequenceTooLong` at tui.zig:163; kitty and ghostty send it, a user hits it by pasting the system clipboard from a session in a terminal); now the buffer grows (doubling, from the clipboard allocator vaxis parses with) up to `max_sequence`, the base64 of the paste limit's text with its framing (5461 KiB: a clipboard the core would paste whole is taken whole), and back to 1024 bytes after; a sequence past it is dropped (a string keeps its introducer and an `x` after it, so vaxis's parser still finds its end and passes it over as no reply it knows; anything else is let go) and said once, a new `Msg.reply_dropped` that the shell turns into the session's `setMessage` (taped, as `noticeNewer`'s line is) or a client's `link.notify`: "a terminal reply past 5461 KiB dropped: a clipboard past 4096 KiB is not pasted"; the read stays linear at megabytes (a pty hands 4 KiB a read): what was carried is not searched for frame answers again (only an answer cut across the read), not copied onto itself, and a string still arriving is not parsed again until a BEL or an ESC comes; a bracketed paste past the paste limit was cut SILENTLY (the tty kept exactly the limit, so `applyPaste` never saw more and never said so): it keeps one byte more and the core cuts and says "paste cut at its limit"; tests: "a clipboard reply of 4 KB or 1 MB is taken, whole, in a pty's reads and cut inside its end, and input goes on after it" (BEL and ST ends; fails on the base), "a clipboard reply past the cap is dropped and said once, and the input after it, another reply, is taken; a DCS and a kitty graphics answer the same", "a bracketed paste past the paste limit is cut and said, and a reply dropped is said, on the notice line" (fails on the base at "paste cut"); the test reader hands a part longer than the reader's room in reads of that room, as a tty does; shell-test Debug 1159/1162 (3 skipped; base 1156/1159) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | |
| \ \
| \ \
| \ \
*---. | | integration: the tree to install (2026-11-23 evening): the Changes layer's ↵Gabriel Schneider4 days
|\ \ \| | | | | |/ | | |/| | | | | | | | | | | | | | | | | second step, a window's size across an Upgrade, the boundaries' first no-panic fixes, and the builtins' documentation with Help: pardes-layers-9 (`rqvtuyou` on `rtmzywzn`, `xkvoyzwu`, `snmnxyqo`, its merge `yvzwukkn` of `main` = pardes-merge64, on rounds 8's two changes: the layer's lines are lines of the pane's text, read-only, nothing cut; the view from the middle; every way into a patch view; `Compare`'s pair ahead; the node keys and the indent on the file's text; a file with no layer paying nothing: 120 of 121 counts, the terminal's cell ruled (P81); the wire 34), pardes-upgrade-size (`xmowzmto`: the record's `size WxH`), pardes-no-panic-1 (`zwquloxl` and six under it: the fuzzes, `rows`' style, a client's row metrics, the tape's reader, a top-down BMP, a Grep row's numbers, vaxis's mouse bytes) and pardes-help-1 (`kvnnqktq` and twelve under it: a builtin's `///` is its documentation, a comptime table, `Help`, `Help <name>`, `Help <keys>`); RESOLVED HERE: core/builtins.zig, the `///` of `Changes` (help's text saying what the layer's second step made true: shown in every view of the pane; what the file no longer has stands as read-only lines of its text; a long description wraps) and of `Compare` (help's), and the two generated lists (docs/typ/builtins-tui.json, builtins-gui.json: `zig build builtins-json` for each platform); NOT in it: pardes-link-state (its wire history and `told_from` meet the layer's 34: link-3's merge), the jump list's equality and an Upgrade's outcome kept for each client (in their gate); its gate: .scratch/sketch/reorg/merge65, the numbers in PARDES.md Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | * | the boundaries fuzzes and tests, failing first: bytes from outside (garbage ↵Gabriel Schneider4 days
| | |/ | | | | | | | | | | | | | | | | | | and mutated-valid) into the reader that takes them, a fixed seed list and seconds, an error never a panic, memory held by a capped allocator (core/fuzz.zig, in core-test): 9P frames through the engine pardes runs (`runtime.ninep.Server(pardes.ctlfs, runtime.ninep.editor)`), framed as the engine frames them so that no walk reaches `os` (the host files) or `n`, the core effects dropped, a frame drawn after each push (16 seeds x 400 frames, deep: 607 writes, 604 reads in one run); a client inputs into the session reader (`replica.parseInput`, every tag decodeClient) applied with `update` and drawn; a session units recorded by an `Authority`, cut, flipped and grown, replayed by a `Replica` (the client road); a session byte dump and image, damaged, through `dump.check` and `dump.load`; and the sites the note found by reading, each a test: a +Search pane rows style past the syntax kinds (`m 1 1 0 0 0 0 0 3:0+3=7 a.txt`), a Grep row of a file named `a:5000000000:b` (core/Query.zig), a top-down BMP (its height negative, addons/image/image.zig, addon-test), an X10 mouse report with a control byte and an SGR one with button 192 (dev/tui/tui.zig, shell-test); on main (f34d3a74cc4a), Debug, each alone: the rows test `expected .err, found .ok` (drawn: `invalid enum value` at core/File.zig:2079), the session side `integer overflow` at core/draw.zig:282 (joinNotice, a prompt caret on a band of 65535 glyphs: Layer.capacity under a client row metrics), the client side `invalid enum value` at core/tape.zig:458 (`peek`), the Grep row `integer does not fit` at core/Query.zig:1267, the BMP `integer does not fit` (image.zig `info`), the X10 report `integer overflow` at vaxis Parser.zig:792; the 9P fuzz and the dump fuzz pass on main (no panic reached) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * / upgrade: a window comes back from an Upgrade the size it had (the user's two ↵Gabriel Schneider4 days
| |/ | | | | | | | | | | | | windows went from 140 x 74 cells to 112 x 32 and from 343 columns to 193 at the 15:11 install): a window session's Upgrade is an exec, and its record said only that there was a window (runtime/upgrade.zig `Record.window`), so the new image made it the default 1120 x 720 points, or the `--geometry` it was started with (its arguments are passed again), never the size the user had given it since; now `upgradeNow` (dev/gui/gui.zig) puts the window's size in points as SDL_GetWindowSize says it then in the record, a line `size WxH` after `window 1` (`Record.size`), and the new image takes it as its `--geometry`, ahead of the one it was started with: the pair's road (a client window's PARDES_JOIN_SIZE, runtime/client.zig `execAgain`, read by the same parse), size only as the pair's (no place: an X11 window started at `+X+Y` is placed by the window manager after an Upgrade now); an older build's record has no such line (the word is passed over by a build before this one): the default, as before; a test window keeps a carried size over PARDES_TEST_COLS and ROWS; test: test/daemon.py `gui_upgrades` resizes the session's window to 100 x 30 cells (the test feed's in-band resize) before the Upgrade and reads the new image's first frame's size from its capture: on the base 1280x840 (80 x 24, the default) where it had been 1600x1050; now 1600x1050 from a build that writes the line, the default from one that does not (the record on the new process's command line says which), and upgrade.zig's record test reads the line back and an older record's none; core-test 934/1100 (166 skipped), shell-test 1142/1145 (3 skipped), gui unit-test 1739/1743 (4 skipped; its perf step's known BaselineHarnessMismatch), test/daemon.py `--upgrade --gui` between this tree's builds (Debug, unstamped and -Dstamp-commit: two semantics) 3/3 and from the installed build (62c6caf414fd) 3/3, `--upgrade` from it 1/1, plain 1/1 Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* / the Changes layer's lines are the pane's text, read-only, and nothing is cut ↵Gabriel Schneider4 days
|/ | | | | | | (the user's rulings of 2026-11-23: "all text is regular text", "the ghost line should be regular text too ... but I cant edit them", "don't cut them ... break them following the regular softwrap"; the coordinator's model P71): while a pane's layer is shown, a line a change took away, a changed line's old text and each change's description (`id title author age`, its whole title and its whole author) are lines of the pane's buffer, and the buffer carries their places (`File.State.read_only`, `File.ReadOnly`, whose layer `File.State.layer`), so every motion, selection, search, text object, count, yank, B2 and B3 works on them because they are text, and they wrap by the pane's soft wrap; ONE check where every edit passes (`File.edit`'s `readOnly`: a file at a revision is its whole text, the layer's lines each one; an edit that changes a byte of one, puts any in at its start or inside it, or leaves one on the end of the line above is refused whole, in words on the notice line), edit.zig's second revision check deleted; THE FILE'S TEXT by one function (`File.fileText`, `FileParts`, `fileHash`, `fileEql`, `fileLen`: the buffer itself with no layer, a file with none pays nothing) and two maps (`fileOffset`/`bufferOffset`, `fileRow`/`bufferRow`: a place in one of the layer's lines is after the file line above it), read by every sink: Save and Save-as (Effect.zig), `body`, `addr`, `data`, `xdata`, `sel` and `dot` over 9P (ninep/pane.zig `bodyOf` is the file's text, `fileDot`/`setFileDot`, a 9P write is `File.replaceFile`, a read of a pane with the layer a copy, never a region of the buffer), the dirty checks, Get and a disk reread (`File.load`: the layer out and back), Edit (sam over the file's text, its result a load, its `w` the file's), the language server (its source, the offset asked at, its edits, its places), the syntax parse (`highlightLayered`: the file's text parsed, its colours laid around the layer's lines; context declarations; a worker's parse; query rows' colours and line numbers), jj's own provenance and churn, `Look :N` and `path:N` (the file's line N), the undo journal (an edit journaled in the file's offsets, an undo taken with the layer out; `Journal.record` takes the removed bytes); the layer in and out by `jj.showLayer`/`jj.hideLayer` through `File.relayer` (an edit of kind `.layer` that nothing reading the file hears of, every view's cursor, selection and top line kept by the file's offsets); the layer is the pane's: shown in every view of it and of its twins (`jj.setLanes`); when the editor's whole new text's shortest splice runs into a read-only line where an equal splice does not, that one is taken (`File.clearOfReadOnly`, never back across a read-only line); deleted: `File.fillBody`'s ghost branch, `File.hasGhosts`, `File.bodyWidth`, `jj.fitted`, `jj.row_max`, `jj.showGhosts`, `jj.wordAt`, `Pane.ghosts`/`ghost_text` and `wrapAt`'s `ghost`, Core's per-step sync; the gutter numbers the file's lines; `]g`/`[g` land on a layer's line as on any; the arrow keeps the user's bend (`╰─→`, as nmwnvrow); WIRE 34 (a file pane's `read_only` and `layer`, a description ghost's `author` in the dump and the digest; a clean file's text is dumped while the layer's lines are in its buffer; a dump of 31 loads, a pane whose view showed the layer showing it again: `jj.loaded`); tests (core/jj.zig): the layer's lines as text, read-only (terminal and window), THE FILE'S TEXT (every sink with the layer off and on, byte for byte), the undo across hide and show, 9P in the file's offsets, a client replaying them and a join loading them, a wire-31 dump, a description whole and wrapped in 50 columns, and the old tests of the per-view rows made the pane's; its gate (.scratch/sketch/reorg/pardes-layers-8/g8a, loads 3-7): core-test 942/1108 (166 skipped; the base 936/1102) and shell-test 1150/1153 (3 skipped; the base 1144/1147) in Debug and in ReleaseSafe, behaviour-test 276/276 and --replay, pane-test 182/183, the soak --clients 5 (diverged 0, unequal 0, unlisted 0 at 30/80/207 ms, the corpus 22 of 22, no leak), the gui unit-test 1747/1751 (the known BaselineHarnessMismatch alone), the frame gate 77/77 frames, 0 differ; the perf counts against tree6 40 of 121 over 0.1% where the base's own gate (merge63-g) has 33: against the base this adds body-appends +0.42%, client-key-down +0.18%, terminal on all +0.155%, client-delete-undo +0.14%, deep-sel +0.12%, client-edit-char +0.11% (cause not found yet) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* changes layer: a lane's colour says the kind of the row it stands beside, ↵Gabriel Schneider4 days
| | | | | | | and a change's lane ends in an arrow at its description (the user's rulings of 2026-11-23): a lane had one colour a change (the theme's accents in hue order, `laneColours`); now beside a row a change wrote (a line added whole, a changed line's new text) it is the theme's cool accent and beside a row it took away (a line taken away, a changed line's old text) its warm one, both from one function, `jj.laneInks` (among the theme's accents, greys and those within 15 degrees of its green and red left out, the one nearest azure and the one nearest orange, each from its own half of the hue circle so the two are never one; a half with none takes the theme's most vivid accent turned to its pole in OKLab, `colors.turnOklab`: the user's neonotte84 has no cool accent and gets its keyword pink turned azure; then each pushed toward the ink to read 3:1 on the page); a description row's lanes keep the kind of the row above it (`takenAbove`), and its change's lane ends there as an arrow pointing at the id: in a terminal `▎─→` across the lane cells (`↳` from the last level), in a window the strip bent at the row's middle into a shaft and a head (`Lane.arrow`, the cells to the text; dev/gui/gui.zig `laneStrip`, each piece cut to the glide as the strips are), the outer lanes passing it unbroken; a description's id is the theme's keyword ink and its title the text's (no one lane colour is left to give it); a lane runs through no unchanged line (`nest` ends a block at a line no pinned change wrote), so none needs a neutral; tests: the lanes test and the ghost-rows test assert each row's lane ink by its kind, the arrow's glyphs in a terminal and `Lane.arrow` in a window, and the id's ink; a new test runs `laneInks` over all 285 themes (never one colour; each reads 3:1 on the page or as nearly as the theme's own ink does; 16 end greyish); not changed: the rows' grounds (green and red, as the patch view's), Churn's cell and strip; core-test 925/1089 (164 skipped), shell-test 1131/1134 (3 skipped) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* integration: the tree to install: the viewport in the view, a client's way ↵Gabriel Schneider5 days
|\ | | | | | | | | | | | | back at an Upgrade, the pair's round 12 and the lanes on the glide: pardes-m61-base (`vzptorpy`: pardes-viewport (`llpwyqul`, the gathered line: a terminal's viewport a view's state, the wire at 31, the terminal put back at a TERM; gated whole as merge59) + pardes-upgrade-back (`krqkqlyo`: a client no longer gives up while its session upgrades; an old build's early rejoin keeps its view) + pardes-pair-12 (`mlutslkp`: a 9P request that changes the core waits for the pty output read before it; the soak with a pair)) and pardes-lane-glide (`nwzurwns` on `nnwosomt`, on pardes-raw-tty: in a window a change's lanes ride their lines' glide, kept with the rows that left, cut to the body); no conflict; core-test 918/1078 (160 skipped), shell-test 1120/1123; its gate: .scratch/sketch/reorg/merge60, the numbers in PARDES.md (2026-11-23) Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * lanes: a change's lanes ride their lines' glide in a window: the window drew ↵Gabriel Schneider5 days
| | | | | | | | | | | | | | `Changes`' lanes (Surface.lanes: a strip a level in the gutter's lane cells, decor, not cells) at the rows their lines have in the core, with no lag, no cut to the body and nothing for the rows that left (dev/gui/gui.zig buildDecor's lane loop: the glide's rows, emitScrollRows, and the rail's thumb, paneDecor's lagLines, had the picture's lag; the lanes, added later, never did), so at every scroll (a wheel's notch, Ctrl-d, a page, a touchpad's fraction) the strips leapt to where their lines would be and the text glided in under them, on every frame of the glide (the user's "the animation for the things in the gutter makes them keep jumping", 2026-11-22; in a test window on core/echo.zig with `Changes pardes-installed-20261122..main`, a wheel's three notches: the glide's first frame has the text unmoved and every strip three rows up; a terminal is untouched, its lanes are cells); now `laneDecor` draws a scrolling body's lanes as emitScrollRows draws its rows: the lag less (a glide's offset, else scroll_lag; the lift of held context rows), cut on the CPU to the body under its held rows (the shifted rows' scissor), and the rows that left keep theirs in the gap: the glide remembers each frame's lanes with its cells (`last_lanes`) and moves a kept row's lanes with it as it moves its cells (`above_lanes`, `below_lanes`: a `RowLanes` a row, at most `Lane.levels`, now Lane's own, which jj.levels names), and a touchpad's edge row keeps its own (`scroll_edge_lanes`); remembered by the glide rather than made part of what a row is (a lane in Cell): the frontend's alone, nothing in the core, and nothing added to every cell of every frame for a layer most bodies never show; the scrolling body and the rows that left it are one function each for the rows and the lanes (`scrollBody`, `ScrollBody.leftRow`, `glideLeft`, out of emitScrollRows); at rest a strip is the same rectangle as before; nothing in the core's step changes; looked at mid-glide in the same window: an added line's green ground, a ghost row's red ground, a changed line's word grounds, a description row, Churn's cell after the line number and the `~` past the last line are cells and ride with their rows; Churn's strip on the rail maps the whole file and stands still under the moving thumb, as it should; a frame's cost with three lanes on each of 70 body rows (219 lanes; a scratch bench, glideFrame and buildDecor a frame, `perf stat -e instructions:u` at 2,000 and 6,000 frames, ReleaseFast): at rest 67,744 instructions against the base's 65,644 (+2,100: the lanes copied with the frame, 1,752 bytes, and the strips' loop), a glide's frame 81,472 against 65,832 (+15,640: every strip cut and moved, and the gap's), a frame with a scroll input 1,125,708 against 1,103,120 (+22,588, the measure's 1.1 million the most of it); the text timedemo's frame is 9.38 million (tree4): +0.02% at rest, +0.17% gliding; memory: the glide's kept rows' lanes, 26 bytes a row, 2 bodies' rows a side (3,640 bytes a side at 70 rows), allocated with the kept cells, and the last frame's lanes (8 bytes each) in a list that grows only past the most a frame has had: nothing allocated a frame; no frame later: the strips are computed in the frame they are drawn in, from what the glide already holds; the previous change's test passes; the gate against tree4 (gpu/lane-glide-g, load 5-10): 77/77 frames identical, gui unit-test 1710/1714 (the base's 1709/1713 and this test; its one failure the base's), perfab corpus2x +0.026% (noise 0.092%), pictures identical in all 10 runs, the 121 counts within 0.1% (largest image-frame on small +0.0057%); tui core-test 917/1074 (157 skipped), shell-test 1116/1119 (3 skipped), the base's Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * tests: a change's lanes ride their lines in a window: dev/gui/gui.zig's test ↵Gabriel Schneider5 days
| | | | | | | | | | | | | | of that name gives every frame the lanes `Changes` lays for a window (Surface.lanes; here `testLanes`: line L's on its row, 1 + L % 3 levels, coloured by its line so a strip names what it marks), glides a body a wheel's notch down and then Ctrl-d, each to rest on the test's clock, and holds a touchpad's half notch down and then up, and checks in every frame that each strip is where its line's text is drawn (the body's row less the lag, as emitScrollRows draws the rows), cut to the body, and that every line drawn in the body has all its strips (`expectLanesRide`; WheelRun gains `lanes`, the frames it renders given them); on this base it fails at the notch's first frame: a strip at 60 px whose line is drawn at 80 (the window draws the lanes at the rows their lines will have, a whole lag ahead of the text, which then catches up under them: the user's "the things in the gutter keep jumping" of 2026-11-22, seen in a test window at .scratch/sketch/reorg/pardes-lane-glide/strip-base-wheel.png); the next change is the fix Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | tty: a pair's client glides on the case's clock, as the session's own ↵Gabriel Schneider5 days
| | | | | | | | | | | | | | terminal does: its Shell was built in `runClient` with no `test_clock`, so under PARDES_TEST_CLOCK its glide (dev/glide.zig: a scroll's picture, critically damped, at whole rows: a one-row glide's first frames keep the old rows) ran on the real clock, frames 16 ms apart with the process asleep between them, longer than a case's stable probe waits (test/tty.zig `waitStable`'s fast path, 50 ms unchanged and 10 ms asleep): process-test's `themesel` as a pair snapped the list's selection moved and the list not yet scrolled, 0 of 10 first time pinned to one CPU (the runner's retry, its probes wider, waited the glide out: why the retry always passed, open since pair-8); and the clock alone was not enough (0 of 10, now at the first scroll every time): the virtual clock jumps at each wake to `wake_to`, which `Shell.waitOnce` set from the core's clock, and a client's core clock is the session's, still between units, so its glide never moved: a client's `wake_to` while it glides is its own virtual clock plus a frame (the session's own unchanged); a user cannot hit it (the clock is the tests'); themesel as a pair pinned after: 10 of 10 first time; process-test as pairs 0 of 146 failed but for `root-ctl: Exit is answered` once (a detached start's socket not there in 20 s at load 8.6; 10 of 10 alone pinned), `tty boot: ninep`'s dial refused once in the parallel batch and passed alone (the base's, pardes-raw-tty's words), own path 0 of 146 with none failing first time Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | 9P: a request that changes the core waits for the output already read out of ↵Gabriel Schneider5 days
|/ | | | | | | the ptys before it, as a terminal shows a program's output before what it led to: `cmd | pardes -` typed in a pane writes its pager over 9P after the shell echoed the line and started the command, and the session, which feeds its queue a read a step (dev/tui/tui.zig `takeQueue`), could still hold that echo when the write was served at its next rest (runtime/9p_io.zig `onServe`); the pager's layout then gave the shell's pane its rows as the stale emulator had its cursor (one short), and the emulator's resize cleared the command line as a prompt the shell would draw again (ghostty's Screen.clearPromptForRedraw: the cursor still after `133;B`, the `133;C` not yet fed), which bash, running the command, never did; process-test's `pagercolor` failed so as a pair 7 of 20 pinned to one CPU (a client's keys reach the shell a step each, so its echo comes a key a read: 55 reads queued in a failing run, the write served with seven still to feed) and on the own path 1 of 20 (its keys a burst a step: a read or two); now core/Turn.zig counts the reads (`reads`, by each pty reader as it reads, dev/Inbox.zig `readPty`, beside `unapplied`) and those applied or dropped (`applied`, `outputApplied` from `Inbox.applied`), and `awaitOutput` waits, the turn given up, until every read made before the request is applied, only while the editor waits in its loop (`listening`, set by the new `listen` in the tui's `waitOnce` and the window's `waitInput`, cleared by `wake`): resting in a call of its own (a save through its own mount, core/fs.zig `writeOut`) it applies nothing and the request goes first as before; `onServe` waits so for every request that `needsQuiet` and asks `quiet` after; a user could hit it typing or pasting `cmd | pardes -` in a pane of a session with a client attached, or under load on the own path (the pager open, the command line wiped from the shell's screen); pagercolor pinned to CPU 5 after: as a pair 20 of 20 first time, own path 20 of 20 (before: 13 of 20, 19 of 20); a core test of the rule (`Turn` now in core's test imports); core-test 918/1075 (157 skipped), shell-test 1116/1119 (3 skipped) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* tty: a TERM that reaches a session while it leaves its terminal (a quit, a ↵Gabriel Schneider5 days
| | | | | | | Detach, the detach a hangup makes) no longer leaves that terminal raw for good: `Screen.leave` let `Killed` go first and the cooked modes came back last (vaxis's `Tty.deinit`), after the kitty images, the alternate screen's exit (flushed at once) and vaxis's teardown, so a TERM in between found nothing to put back and died with the main screen back and the modes raw, nothing of pardes putting them back after it (at a quit the stub then dies of the same TERM, and a shell that does not reset its own modes prompts on a raw terminal); now `Killed.disarm` puts the cooked modes back itself and is called last, just before vaxis's own put-back, so a TERM anywhere in a leave finds them back or puts them back (dev/tui/tui.zig); the process case `killedTty` failed so in about one gate in ten (merge49 and merge58, "the terminal left raw" with the main screen back: its HUP round, which TERMs the session right after the stub dies of the hangup, while the session leaves the terminal that hung up) and now names its signal; not reproduced as it is (the base pinned to one CPU 0 of 40 failed, unpinned beside a second copy 0 of 80); with the window widened by an experiment's 300 ms sleep before vaxis's put-back and the test's TERM 100 ms after the stub's death, the base failed 10 of 10 with the gates' words ("HUP: the terminal left raw", the main screen back, 3.7-4.5 s as the gates' 3.6 and 4.2 s) and this passed 10 of 10 with the same sleep after its disarm; after: the case pinned 40 of 40, core-test 917/1074 (157 skipped), shell-test 1116/1119 (3 skipped), process-test 0 of 146 (load 10.6), as pairs 0 of 146 (load 11.7, `tty boot: ninep` refused a dial in the parallel batch and passed again alone); left as it is: on a hangup the stub dies at once (runtime/daemon.zig `forward`), before the session has left the terminal, so with the terminal still there (a `kill -HUP` of the job) the shell's prompt comes before the session's put-back, which then sets the cooked modes and the main screen over it (not raw) 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: an upgraded pair's session keeps what it says until its client is ↵Gabriel Schneider6 days
| | | | | | | | | | | | | | back: its "Upgrade: now" (runtime/upgrade.zig, set on the restored core's live view at load) went 800 ms after it was said (`message_linger_ms`), on the clock an unattended session's messages are put on (Messages.expireUnattended), and a pair's session has no terminal of its own (dev/tui/tui.zig `detached`) and no client until its client dials again after the exec, which takes longer; the own path's session is attended by its terminal throughout; so a session resumed by an Upgrade whose record says it was a pair's (`Record.state` .pair: its client is on its way) starts attended, as a Restore's does for its clients (runtime/session.zig `restore`), and goes unattended again when its last client leaves (Peers.leave); daemon.py --with-pair --upgrade both ways now passes "the word said" and stops at the next check, the daemon's hello for a new view refused "that session has as many views as it takes" (test/daemon.py:3220), which the own path's run (no variable) on the same two builds is refused too, until the views kept for the old build's clients have been away 30 s (views.away_kept_ns), and the pair's for good (45 s tried) 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
* | integration: the old road deleted and the emulator's boundary on the ↵Gabriel Schneider5 days
|\ \ | | | | | | | | | | | | | | | | | | gathered line: pardes-merge56 (`qvwrwxtu`: the installed tree and the source view's changes to their last slice) and pardes-term-join-9 (`twssqzqw`, fourteen changes on pardes-merge55: every client's terminals by the pty's bytes and nothing else: the delta protocol, its flow control and core/term/screen_state.zig deleted (-3,605 +504 lines), the wire at 30, one soak; S1: abi/term.zig's Ops in replicated and local, the terminal's digest covering what a step reads, every call of the core's into a terminal listed with its rule as a test; a client's own join again judged after its goodbye; a pty's size one fact the core hands its host for every fork, adopt and resize; a closed view sizes no terminal); no textual conflict; one semantic one, resolved here: core/jj.zig's Churn test (the layers' last round) called Authority.init and Replica.init with the road's flag the deletion took away: the argument removed; core-test 916/1073 (157 skipped), shell-test 1115/1118; its gate: .scratch/sketch/reorg/merge57, the numbers in PARDES.md (2026-11-22) Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * | 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: the delta protocol deleted, with the wire's screen messages (the ↵Gabriel Schneider6 days
| | | | | | | | | | | | | | | | | | | | | old road's deletion, piece 3 of 8): core/replica.zig loses the screen-state section (the screen message's head, `Screens`: tracks, peers, flush, fill, filled, take), `Peers.screens`/`msgs`/`flushed`/`screensOut`/`screensTo`, the `.screen` note and its arm in `boundary`, `Peers.input`'s flushes and fills, a joiner's `addPeer` and a leaver's `dropPeer`, `Peer.sid` and its `screen_ack` arm, `Replica.screen`/`screenRequest`/`screenMessage`/`overTerminals`, `Replica.screens`/`screen_out`/`ScreenOf`, `Stats.apply_ns`, `Said.screen` (and its arms in dev/tui/tui.zig and dev/gui/gui.zig: a delta no longer counts as an echo there, nor is its latency noted), the Link's `.screen` arm and `drawn`'s row requests, `sendScreen`, and the `screens` argument of `Authority.init` and `Replica.init` (every caller: core/jj.zig 10, core/tape.zig 2, core/echo.zig 2, test/panes.zig 15, test/perf.zig 2, runtime/client.zig 1, test/rollback_bench.zig 1, test/replicas.zig 10, core/replica.zig 98); a replica's own `made` no longer starts on screen state, and `confirm` and `applyPending` keep only their one-road branches; abi/wire.zig retires the replica's `screen_ack` (0x04) and the session's `screen` (0x06) as gaps (the version moves once, in piece 4); test/daemon.py's round trip passes over units alone; the tests that were the old road's alone go: a delta under a speculation, a terminal sized again by a client's key (screen state's deferred size), pardes's own keys over a terminal's history and a delta while they wait, a unit kept over a copy and a delta after it, a step's rows sent as a new client's holes, the screen-state twin of the 9P pty/run test, and the 9P open over a copy taken ahead (on the one road a unit that feeds a terminal lets the copy go: `Term.writes`, so no copy is held across the run's output: its premise was the old road's); the others that ran on screen state now run on the bytes road (a kitty image: the client's emulator has it as the session's does; prompt marks and Kill; the far client's may_wait walk, its click into a focus-reporting shell, its backed-up queue; a view that sized a terminal closing; a closed terminal brought back; a leave's queued resize before a join); FOUND AND FIXED on the way (those tests on the one road failed: the far click `expected 0, found 1` stopped, and may_wait named `Del`, `DelAbove`, `Up`, `C-w a`, `click shell`, `Look` stopped at `pty_write`): a client's own step that moved the focus in a session whose shell asked for focus events wrote the report (CSI I/O) through pty_write, which a speculation stops at (`keeps_stopping`), so the key or click waited a round trip, and the session's write was on the tape; on screen state both were skipped (core/Core.zig `reportFocus` skipped the write only `speculating and screen_state`, core/tape.zig `hostCall` kept pty_write off the tape only under screen state): both now on every road (a user on the flip's build could hit it: a far client's click, pane switch or Del beside vim or tmux waited a round trip); core/root.zig `machine_lines` for replica.zig 76 -> 74 (Authority.init's getenv and a joiner's `addPeer` failure's shutdown gone); core-test 911/1068 (157 skipped: 7 tests gone, each one skipped there for want of a shell), shell-test 1110/1113 (the 7 gone) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | | integration: the source view's changes to their last slice on the installed ↵Gabriel Schneider5 days
|\ \ \ | |/ / |/| | | | | | | | | | | | | | tree: main (`stpnsymm`: pardes-merge55, installed 2026-11-22) and pardes-layers-6 (`rtzmwzsk` on `owsluptw`, on pardes-layers-5: `Churn [window]`: for each declaration the count of the changes in the window that touched it, a cell after the line number and a strip by the scroll thumb from grey to red on a log scale, jj and the parse on the worker; the chords `SPC t c` and `SPC t u`; the manual's chapter "Changes on the source view" and the cheatsheet's rows); no conflict; core-test 915/1079 (164 skipped), shell-test 1121/1124; its gate: .scratch/sketch/reorg/merge56, the numbers in PARDES.md (2026-11-22) Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * | layers: `Churn [window]` (slice 7): for each declaration of a file's pane ↵Gabriel Schneider6 days
| | | | | | | | | | | | | | | | | | | | | (tree-sitter's innermost, as TreeContext finds them: `f.context.declarations`), how many of the window's changes touched it, shown in this view as a heat lane after the line number (a half block, before the changes' lanes, which stay next to the text they mark: `File.Layers.heat`, one cell) and as a strip by the scroll thumb (a rail row each, the hottest of its lines: the rail's second cell in a terminal, `Surface.heat` for a window, drawn beside the track by gui.zig's paneDecor), smooth from the line numbers' grey to the theme's red (`jj.themeRed`) in Oklab on a log scale of the count against the file's hottest (`heatColour`); the window a revset, or a span of time back from now (`3d`, `2w`, `6m`, `1y`: `::(REV) & author_date(after:"N units ago")`), bare shown here or not and with none counted yet the file's whole history `::(REV)`; jj's data as `Changes`' is: one `jj log` of the window and the changes after it to the shown revision with their hunks (the same query and marks, `Ask.kind` `.churn`) and `jj file show` of the revision (to line the counts up with the pane's text, `Moved.of`), on the worker, its raw answer an input; kept raw in the session's jj state (`jj.Heat`, `Session.heats`) until the text's declarations are there, then counted in every process (`heatOf`, `parsed`): a big file's parse is a worker's (`Stream.parseFor`, its landing tells `jj.parsed`), never the loop's (counted on the loop, core/replica.zig held a Debug loop 1,211 ms; now its longest hold is 10.7 ms; the counting itself 1 ms); a change counts once a declaration, a hunk's lines carried to the shown revision through the later changes' hunks; the counts ride with the lines through edits (`spliceValues`, shared with `Changes`' lines); a later ask of the other kind no longer drops an answer (the stale check is per kind); tests: f three changes, g two: `3 3 3 0 2 2 2`, the cell red on f, `mixOklab(grey, red, ln 3 / ln 4)` on g, none on the blank line, the strip's first row red, in a terminal and a window, bare off and on without asking jj; `@--::@` one each, `1w` all, a refusal in jj's words; on a worker, counted when the worker's parse lands, the client equal; a line deleted takes its count, the client and digest equal; core-test 912/1072 (160 skipped), shell-test 1114/1117 (3 skipped) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | |
| \ \
| \ \
| \ \
*---. \ \ integration: the install's tree: four lines gathered on pardes-merge53: ↵Gabriel Schneider6 days
|\ \ \ \ \ | | |_|/ / | |/| | / | |_|_|/ |/| | | | | | | | | | | pardes-image-loop (`zmlvktus`, on pardes-merge53: a terminal showing a kitty image no longer parts a screen-state client from its session: whether a terminal shows images is the session's fact, taped (`Pane.term_images`, `Site.images`), and the tag reads it: the wire at 28), pardes-pair-8 (`qpyluuxx` on `unvntksw`, on pardes-pair-7: a client presents a frame only when a replayed step asked for one, as the session's own frontend draws; the client window's test mode), pardes-layers-4 (`slzpmpuz` on `omkuvwmk` on `wuwlmwzr`, on pardes-layers-3: `Changes` runs jj on a worker and its answer lands as one input: the loop held 2.5 ms where it was 600; the lanes follow the pane's text through unsaved lines, edits and undo; a client's key back inside the budget with `Changes` off) and pardes-term-join-6 (`llosvxxm` on `rstrvvur`, on pardes-term-join-5: a terminal's view is its row again after every reflow, so a rollback's put-back by row is exact: the bytes road's one-row parting); no conflict; core-test 904/1067 (163 skipped), shell-test 1109/1112; its gate: .scratch/sketch/reorg/merge54, the numbers in PARDES.md (2026-11-21) Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | | * integration: `Changes` and its lanes on the gathered line: pardes-merge52 ↵Gabriel Schneider6 days
| | | |\ | | |_|/ | |/| | | | | | | | | | | | | | | | | | (`pnmtmksv`: plain mode fixed, the narrow view rule, the soak's own faults) and pardes-layers-3 (`xzmopyqr` on `pvtvmpzx`, on pardes-merge50: `Changes [revset]` pins a revset's changes on a file's pane: a lane a change after the line number, nested ones a level to the right on their rows only, a line added whole green across; with it off nothing is paid: the revset and jj's answers are the session's, a view holds one bit (P45): the 121 counts within 0.1%); no conflict; core-test 898/1058 (160 skipped), shell-test 1100/1103; its gate: .scratch/sketch/reorg/merge53, the numbers in PARDES.md (2026-11-21) Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * | | layers: `Changes [revset]` pins a revset's changes on a file's pane in this ↵Gabriel Schneider6 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | view (bare `@`, bare again off, another replaces; refusals in jj's words) and draws them: what jj says is asked in two recorded answers (Site.jj), `jj log -p --git --context=0` restricted to the file (the pins: id, author, time, the description's first line, and each one's diff, read with diff.zig's walk into hunks and the removed lines' text) and `jj file annotate` at the shown revision (which pin wrote each line), kept as flat arrays in the pane (Pane.changes: replicated, a late joiner has them in the dump, a client never runs jj) and worn by the view whose revset is File.Layers.revset; a pin's lane runs unbroken from a line it wrote to the next while every line between is a newer pin's, so lanes nest, the spine keeping its place and a nested change a level to the right on its rows only, three levels in a gutter the lanes widen (a window two cells, strips of a third of a cell with half that of air: Surface.lanes, drawn by the gui; a terminal three, a `▎` a level), coloured by the theme's accents but its green and red in hue order from the top, one within 15 degrees of the last kept skipped (doom one: magenta, blue, yellow), oldest first; a line a pin added whole (in a run it took away and wrote, past as many as it took away) is green across the line as a diff's added line; with Changes off nothing is drawn and the gutter is as it was; tests: the data through the pane (pins, lines, hunks, removed text, unpin, `@` touching nothing, a refusal), a client replaying it ends equal, the lanes and grounds of a three-deep stack in a terminal's cells and a window's strips; core-test 895/1055 (160 skipped), shell-test 1097/1100 Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | | | replica: a client presents a frame only when a unit's steps asked for one, ↵Gabriel Schneider6 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | as the session's own frontend draws (Pardes.pump returns idle while `!needs_frame`), not whenever a unit moved the session's digest: "Pet cat" written to /ctl is two units (the write and the close), each moved the digest, and a client window drew the pet twice (the corpus's frames 45 and 46 one picture, every later frame shifted by one); `Replica.confirm` marks `moved` when the replayed unit left `needs_frame` set, read AFTER `tape.replayUnit` (before it, it is what the units before asked, and a replica's first unit has no core yet: `Replica.init` crashed on a null core), and `Replica.draw` clears `needs_frame` for a client's replica (`skips_render`: its replay is never watched, so never clears it, and replays nothing that reads it) while an in-process replica (the tests', test/perf.zig's client cells) keeps it as its replay of its session's own drawing left it (cleared, that replay skipped a host call its tape has: "diverged: the core did not make the host call 5"); a user's client no longer presents a frame for a unit that asked none (a ctl write's close, a clock read): CPU only, no picture changes; test: "a client marks its view moved for a unit of the session's whose steps asked for a frame, and not for one whose steps asked none" (a client joined as a dial joins: the session's key marks it, its pump with nothing to step does not; failed with the line before the replay, crashed as pair-7 left it); core-test 896/1056 (160 skipped), shell-test 1098/1101 (3 skipped) (+1 each); the screen-state soak `--clients 5` diverged 0, unequal 0 at 30/80/207 ms, quiet checks 510/0, 469/0, 545/0, unlisted 0, the corpus scene 22 of 22, no leak; daemon.py on Debug plain 3 of 3, --clients 3 of 3, --games (snake and life in two clients, keys stopped 0 of 153 and 0 of 152) (loads 4-8); the frame and perf gate against tree3 (gpu/pair8-g1): 77/77 frames byte-identical, gui unit-test 1695/1699, perfab corpus2x +0.087% (noise 0.072%), 121 counts within 0.1% (largest client-key-down on large +0.0705%); the corpus through a client window as a pair: frames 0-49 byte-identical to tree3's (the pet one frame), where the scene with a kitty image stops a screen-state client (the terminals' line's) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | | | gui: a client window under test says when it is idle as the session's own ↵Gabriel Schneider6 days
| |_|/ |/| | | | | | | | | | | | | | | | | window does (`writeTestStatus` from `Client.deadline`, idle once it has presented, its replica quiet, the session's digest asked and answered since the last unit, no frame owed by its link), and runs on the virtual clock its own window does (`test_clock`, `testHz`: PARDES_TEST_HZ read in one place), its own motion moving a display frame a pass: so the window corpus (test/process/window.zig) runs through a pair's client window (PARDES_PAIR) as through the own one; `writeTestStatus` takes the frame owed as an argument (the own window's `core.needs_frame`, the client's link's `dirty or owed`); only dev/gui/gui.zig; the frame and perf gate (gpu/pair8-g1, with the change after it): 77/77 frames byte-identical through the own window Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | | pair: the process suite as pairs from 8 of 145 failing to 0, no golden ↵Gabriel Schneider6 days
|/ / | | | | | | | | | | | | changed: a pair's first client takes the session's view instead of one opened beside it (core/replica.zig `Peers.viewFor` `own`, daemon.zig `Joining.own`, `Replica.initBoot` alike so the digests agree), as does a joiner of any session with no frontend, no client and no view kept for one (after a Restore's `views.only`, or detached since): the boot's terminals were sized by the session's own view 0, which nobody looks at, so a client's layout never resized them (`Pardes.sizes`): the `↑` pans and the pane a row off of shrinktag, windowops, layout-close, topbarexec, headersweep-restored; a size already taken is no resize (dev/tui/tui.zig `Shell.resized`: a client's start and its input thread's first size were two `.resize` events, `resizes=2`); a Restore tells its clients so and they join again saying nothing (`Peers.restoring`, `restore_words`, `Link.rejoins`: they were cut with no word and asked the daemon, which once in two answered nothing listed and the client ended, and when they rejoined they said "upgrading"), a client handed over while it restores joins the restored core at the next boundary (it was hung up on, and its redial's 100 ms showed the old screen), and the dump's messages are not put on the clock while they rejoin (runtime/session.zig `restore`: the "Dump" chip went); a pair's client enters its terminal before its own boot (tui.zig `runClient`: keys typed while it booted went into a cooked terminal, echoed as ^B and lost; winch as a pair pinned to one CPU 0 of 5, now 5 of 5; the own path takes them); the tty cases' private daemon and their pair's session are killed at the case's end (test/tty.zig `Tty.deinit`: 21 of them outlived this morning's runs); core-test 894/1054 (160 skipped), shell-test 1096/1099 (3 skipped) (+1 each, the Restore's test; firstOnPair now expects no reload at a pair's first join); PARDES_PAIR=1 process-test 1, 0, 0 of 145 (pagercolor once at load 12.9, on the known list; runs 2 and 3 with no case failing even once), own path 0 of 145, winch alone as a pair 20 of 20; daemon.py plain, --pair, --attach-upgrading pass on Debug and ReleaseSafe Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | client: an Upgrade from the installed build (main 6d937cd125ca) to this one, ↵Gabriel Schneider6 days
| | | | | | | | | | | | | | the coordinator's release stage: a window exec'd at an Upgrade takes its size from PARDES_JOIN_SIZE (runtime/client.zig `execAgain`; dev/gui/gui.zig where `--geometry` is read), a string a test finds in the binary as PARDES_JOIN_VIEW is: test/daemon.py `knows_size`, and `pair_window_geometry` skips with a line said when the old window cannot pass its size (the installed build's: by design, its exec is the old client's); a far link cut with no last word dials again too (`replica.cutListed(why, session, far)`: the dial is the asking, the far daemon's "no session called" ends it), as near ones do since item 0: from the installed build `far_exec` lost its client before (2 of 6 runs) and still does once in five (the old far client is the installed build's code); a far client whose ssh link drops now dials again for up to 20 s before it says so Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | pair: the process suite as pairs from 13 of 145 failing to 7 that stay (the ↵Gabriel Schneider6 days
|/ | | | | | | goldens of one cause, open): the harness dials a pair's session, the launched client's child (test/process.zig `of`, `childOf`: it dialled the launched pid's socket); a Restore in a pair no daemon keeps is refused in words, as its Upgrade is (P42: runtime/session.zig `restore`: it let the client go and the session ended with its last link), and the three cases that Restore a pair run it with a daemon of their own root's (tty.zig `privateDaemon`, e2e_harness `PARDES_HARNESS_DAEMON`, process.zig `Detached.tty_daemon`, ended by `--kill-all` at its deinit); a pair's launch with no terminal says what the own path says and forks no session (main.zig `pair`, `noTerminal`: it said "pardes: NoDevice" after forking one); a terminal client ended by TERM or HUP dies of the signal once its goodbye is said and its terminal put back, as the own path's stub does (tui.zig `dieOfQuitSignal`: it exited 0 since pair-3), and the kill test takes a pair's hang-up as the close P36 ruled; PARDES_PAIR=1 process-test 8 of 145 (7 goldens of one family: resizes=2, a terminal panned in a view shorter than the one that sized it, a restored terminal's history; winch once), without the variable 0 of 145 Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* client: what the pair's last rounds left, each a test first: a window client ↵Gabriel Schneider7 days
| | | | | | | exec'd at its session's Upgrade comes back the size it was, not the default (runtime/client.zig `execAgain` passed `--attach=` alone, so the new process made a 1120x720 window: a `--geometry=900x560` pair's session went from 56x16 to 70x20 after an Upgrade to another build, with the variable or without (any `pardes-gui attach`); now the window's size at the exec, SDL_GetWindowSize, as `--geometry=WxH`); a pair's client exec'd at an Upgrade waits for its session at `ended` as before the exec (tui.zig and gui.zig `runClient` asked `opts.pair`, which the exec'd `--attach=` client has not: now every near client waits, a non-child answers ECHILD at once; not seen to fail here: the subreaper took the session first); tests in test/daemon.py: `pair_upgrade_views` (plain, --pair: two clients' own views, the pair's scroll and the attach's focus, the same after a same-build Upgrade: the screens by pyte, the focus by where typing lands: passed before this change too), `pair_exec_reaps`, `far_exec` (a far client, PARDES_REPLICA_FAR by the socket's path, execs the build at its start path and agrees after: passed before too), `pair_window_geometry` (offscreen, not test mode: failed before), the last three in --upgrade OLD NEW Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* replica: an attach handed to a session as it upgrades is told so and joins ↵Gabriel Schneider7 days
| | | | | | | the new process, never cut unanswered by the exec: `Peers.refuseAll` returned at once when no client was joined, and with clients its `drop` closed the connections queued in `Peers.inbox` without a word, and a hand-over posted after it was closed by the exec (MSG_CMSG_CLOEXEC), so `pardes attach NAME` started as NAME upgraded said "the session hung up before the dump was whole" and exited 1, with PARDES_PAIR or without (exp2: a `new --detach` session, no variable, ReleaseSafe main: 2 of 20 attaches at 0 ms); now refuseAll tells each queued connection what it tells its clients (`replica.upgrading`, "the session is upgrading to another build of pardes", the words tui and gui passed), `Peers.upgrading` makes `post` tell a later hand-over the same at once (reset at the next boundary: the exec failed), and a first join told so dials again patiently (`join` -> `redial`, its view optional); the pair row that failed on the release build only (daemon.py --pair, `ended_by(how, *attached('rows'))`, the coordinator's landing check) was this race, reached through the test: its `upgraded()` waited for `--upgraded=` in the session's command line, which a second Upgrade's old process already had, so it attached to the old process; found under strace (the daemon handed the attach, then took the session's `upgrade`, then exec'd); the release build and the test's long runtime path only moved the timing; `upgraded()` now waits for the session's 9P socket made anew; tests: core/replica.zig "an Upgrade tells a client handed to the session and not joined yet that it is upgrading ..." (main: both hand-overs still queued, never told), test/daemon.py `attach_upgrading` (plain, --pair, --attach-upgrading: an attach started 0-25 ms after the Upgrade's word, without the variable and with it: main's release build failed its first round) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* integration: six slot fields typed, the docking vocabulary, the Mac's ↵Gabriel Schneider7 days
|\ | | | | | | | | | | | | callbacks and consumer-test, on six small faults: pardes-slots (Pipe.PendingPipe.pane, Ask.wait.pane, theme_file_pane, ThemeFileRequest.pane as Pane.Id; Authority.view_of and Peer.view as View.Id; layout.dockFrom and the prose; macos State.callbacks; the build step consumer-test) and pardes-merge42; one conflict, in Peers.detach, where the pair's lifetime rule (daemon.keepSession) and the view's type (peer.view.index()) met on neighbouring lines: both kept; tui core-test 874/1031 (157 skipped), shell-test 1073/1076, term-test 17/17, both soaks diverged 0, unequal 0, unlisted 0, the window builds; this line carries the client's heap corruption that came with pardes-merge40 (a fix is being made): not gated further until it has it Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * core: the fields that hold a pane's slot and hand it to the entries are ↵Gabriel Schneider7 days
| | | | | | | | | | | | | | Pane.Id (P21: the fields, not the inner code): Pipe.PendingPipe.pane (usize; authority only, in no dump or digest), the LSP question's wait.pane (usize; dumped and digested: a byte where it was eight), Pardes.theme_file_pane (u8: the same byte) and colors.ThemeFileRequest.pane (u8); the 14 `.at(wait.pane)`, 7 `.at(w.pane)` and 4 `.at(request.pane)`/`.at(pane)` go, lspResponse takes the integer once for its nine integer readers (`asked`), and requestThemeFile stores `.at(id)` where it clamped a slot it had just reported on by MAX_PANES - 1 (the clamp and colors.zig's MAX_PANES go); the conversions by count.py (.at(, .index(), @intCast of a slot) fall: the core's code 440 -> 427, dev's and runtime's 120 -> 116; the other fields that hold a slot are left, each read as an integer more often than it is wrapped (View.active about +216 by the estimate, builtins' Ctx.id +108; the table in reports/pardes-slots.md); the compiler caught nothing (every use read first); the semantics word does not move (a73794ff9e03f814); the dump's table gives both fields a new kind, so a session restored from an older build's dump says once "a dump of another build: Core.theme_file_pane: its kind changed; its default taken" (and a dump made mid-question drops the question); gate on the stack through this change and the docking vocabulary (load 4-32): tui core-test 871/1028 (157 skipped), shell-test 1070/1073, pane-test 183/184, term-test 17/17, kitty-test 45/45, behaviour-test 275/275 and --replay 275/275, consumer-test passes, addon-test 5/5, process-test 0 of 144 (tty boot: msg failed once at load 32 and passed alone), replicas --clients 5 and --bytes --clients 5: diverged 0, unequal 0, deltas wrong 0, quiet checks differed 0, unlisted stops 0, corpus 22 of 22, no leak; the semantics word a73794ff9e03f814 as on merge40; daemon.py --far, --games, --window-clients pass, plain fails 2 of 4 at "client C agrees with a shell's output" (a timeout), as merge40's build does 3 of 6; the macOS library (x86_64-linux, aarch64-macos, the ABI guard 2/2) and the FreeBSD cross-build build; frames 77/77, gui unit-test 1666/1670 (the perf check's BaselineHarnessMismatch), perfab corpus2x +0.054% (noise 0.054%), the 121 per-operation counts within 0.1% against tree2 (key-down on medium 10,039,720 and render on medium 11,454,636, merge40's gate 10,039,703 and 11,454,619) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * macos: the State field runtime is callbacks, as its type became ↵Gabriel Schneider7 days
| | | | | | | | | | | | | | macos.Callbacks (P37): runtime/macos.zig's field, pardes_init's and initCore's parameter, the store of it, its six readers (st.callbacks.set_clipboard, read_clipboard, wakeup and their userdata) and six test literals; abi/pardes.h's pardes_init prototype names its parameter callbacks (the typedef already did); the Swift locals that build the struct and hand it in, `var runtime` and `&runtime` -> `callbacks` at dev/macos/Sources/AppDelegate.swift:135 and :171 and test/macos_e2e.swift:171 and :203 (not built here: the Swift app needs macOS; by reading the name meets nothing in either scope); the prose "the runtime" (the host app, macos.zig:135, :264) stays; the ABI guard (unit-test -Dplatform=macos, "pardes.h matches the Zig boundary") 2/2 on Linux; gate on the stack through this change and the docking vocabulary (load 4-32): tui core-test 871/1028 (157 skipped), shell-test 1070/1073, pane-test 183/184, term-test 17/17, kitty-test 45/45, behaviour-test 275/275 and --replay 275/275, consumer-test passes, addon-test 5/5, process-test 0 of 144 (tty boot: msg failed once at load 32 and passed alone), replicas --clients 5 and --bytes --clients 5: diverged 0, unequal 0, deltas wrong 0, quiet checks differed 0, unlisted stops 0, corpus 22 of 22, no leak; the semantics word a73794ff9e03f814 as on merge40; daemon.py --far, --games, --window-clients pass, plain fails 2 of 4 at "client C agrees with a shell's output" (a timeout), as merge40's build does 3 of 6; the macOS library (x86_64-linux, aarch64-macos, the ABI guard 2/2) and the FreeBSD cross-build build; frames 77/77, gui unit-test 1666/1670 (the perf check's BaselineHarnessMismatch), perfab corpus2x +0.054% (noise 0.054%), the 121 per-operation counts within 0.1% against tree2 (key-down on medium 10,039,720 and render on medium 11,454,636, merge40's gate 10,039,703 and 11,454,619) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | integration: six small faults on a hang-up as a close: pardes-faults-6 (a ↵Gabriel Schneider7 days
|\ \ | | | | | | | | | | | | | | | | | | hang-up with no daemon kills the language servers' children; the daemon's reader hands a note under a lock; a retried Edit write answered from the listener's hold; the cursor hidden when a frame has no caret; syntax-test deleted and the grammar tiers' tests skipping; the tty harness's Esc after what came before is read) and pardes-merge41, merged without a textual conflict; tui core-test 874/1031 (157 skipped), shell-test 1073/1076, term-test 17/17, both soaks diverged 0, unequal 0, unlisted 0, the window builds; the coordinator's gate in the ledger (reorg/merge42) Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * | tui: a frame with no caret hides the terminal's cursor: the frontend called ↵Gabriel Schneider7 days
| | | | | | | | | | | | | | | | | | | | | showCursor for a frame with a caret and nothing for one without (dev/tui/tui.zig, the frame's end), vaxis keeps cursor_vis, so the block cursor stayed visible where the last caret was (hscroll: on the first text column of a view wheeled sideways past the caret; a +Search or a pane whose caret is off screen; a terminal pane's spawn); now win.hideCursor; the tty harness records a hidden cursor as `cursor=hidden` (where a hidden cursor was left is no one's: test/e2e_harness.zig `cursor` says `shown`, test/tty.zig's snap and stable key read it): with the harness alone no golden moved (0 of 145), with the fix ten moved, each only in snap headers from cursor=X,Y to cursor=hidden (checked line by line, golden_diff.py): collapse 2, follow 1, hscroll 1, images 2, jumps 1, lspcomplete 1, shrinktag 2, ttytaken 1, wheeldrift 4, wrap 1, re-recorded; a user saw it: a stale block cursor on the text in every frame with no caret Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * | tui: a pardes whose terminal hangs up (no daemon) or that is sent SIGTERM ↵Gabriel Schneider7 days
| |/ | | | | | | | | | | | | kills its language servers' groups as an exit does: Killed.handle dies by raise, so the language client's atexit group kill (lsp_client.zig killAllAtExit) never ran and a server busy in a build (zls at a cold start, its children) lived on after the editor; the handler calls it now (kill(2) only, async-signal-safe); test "tty editing: lsp-hangup" (the mock, LSPMOCK_MODE=busy, leaves a child in its group at the handshake and says its pid; the case hangs up the pty and wants the child gone in 5 s): ServerChildLivesOn on the base, passes now; a user could hit it: closing the terminal of a daemon-less pardes, or kill (TERM) of any pardes, with a language server busy; tui process-test 1 of 145 failed once in the whole run (the SIGTERM flags case, "the terminal left raw", load 8-15; 3 of 3 alone) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* / pair: a hang-up is a close (P36): a terminal client (`runClient`) blocks HUP ↵Gabriel Schneider7 days
|/ | | | | | | and TERM before its join makes a thread and winchWatch takes both as `quit`, which in a client now sets the goodbye's close (as a window's close button does, and as SDL already makes a window client's TERM), so its terminal closed, its ssh dropped under it or a TERM says goodbye with the close, puts the terminal back and exits 0, and the session, a pair's not kept (daemon.State `pair`), ends when that was its last client; with other clients or kept it runs on, and a client killed outright stays a loss (no goodbye: it runs on, listed); without PARDES_PAIR the close is read by no session, so the own path's terminal closed still detaches its session, the one change a user sees there being a `pardes attach` client's TERM: a goodbye and exit 0 where it died of the signal; and a client exec'd at an Upgrade (runtime/client.zig `execAgain`) clears its signal mask first, since the mask crosses an exec and a build that sigwaits no TERM would never take one (found by `--upgrade` new->old with clients: the exec'd terminal client ignored the test's TERM for 20 s; with the clear both ways pass); test/daemon.py `pair_rows` gains 2.2 B's not-kept column (a client's terminal closed, not the last: runs on; the pair's own client killed -9: runs on, listed `(tty)`; the last client TERMed: exit 0, its terminal put back, the session ended; a pair upgraded, its terminal closed: ended) and the own path's rows (an attach client TERMed: the session on; its terminal closed: `(tty, detached)`); on the change before, `--pair` fails at the TERMed client's status (-15); here: tui core-test 861/1016 (155 skipped), shell-test 1058/1061, term 17/17, pane 183/184, kitty 45/45, behaviour-test and --replay 275/275, process-test 0 of 144 failed, soak --clients 5 diverged 0, unequal 0, checked/wrong 1874/0 1937/0, quiet checks 597/0 673/0 779/0, unlisted 0, corpus 22 of 22, no leak, --bytes --clients 5 the same (quiet checks 693/0 586/0 802/0), daemon.py plain (launch, pair, pair_rows), --far, --relink, --manage, --window-clients, --gui (gui_pair) pass, an idle terminal pair wakes 0 and 0 times in 2 s, gui unit-test 1654/1658 with only BaselineHarnessMismatch, --games, --upgrade with clients both ways against the base built with -Dembed-sources=true (another semantics) pass, nothing left behind by any mode (load 4-18) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T