summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* test: eleven more of src/pardes.zig's tests through the 9P tree alone ↵Gabriel Schneider14 days
| | | | | | | (test/behaviour/columns_and_tags, modes, tags, panes): a click past a column tag's text typing after it, a newline there a space and a long tag scrolled to its caret, Enter and Tab in a tag running the word under the cursor, Esc alternating two panes of a kind, Esc out of a column or the workspace tag, Shift-Esc out of every mode, a name typed into the tag's path pending past Esc, an unsaved file's tag its name alone, a question ended in the log when its pane closes, focus on a closed pane to the one taking its place; Session's cursor (/screen's); each checked to fail against a break (flatten keeping newlines, the header drawn unscrolled, Enter in a header a Look, Esc in normal mode not running Last, Esc in a header not leaving it, Shift-Esc leaving insert on, the first Esc on a drafted name dropping it, a dirty tag marked ' *', del_side left out of noteRetire's answer, removeColumn's focus to any pane) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* test: eight of src/pardes.zig's tests through the 9P tree alone ↵Gabriel Schneider14 days
| | | | | | | (test/behaviour/columns_and_tags, look_and_exec): Joincol folding a column into its right neighbour and refused with none, Newcol's empty column with its tag focused filled by the next Tty, a column's exec acting on that column and a pane's Delcol on its own, a column's last pane closed leaving it empty and Delcol taking it, a column's tag following it through Newcol and Joincol, Delcol on the last column leaving the window typed into, New in no pane's tag nor the workspace's, a look that finds nothing in the log; Session's columns and column (/layout as column:panes); each checked to fail against a break (joinCol inert, joinCol keeping the left tag, acmeColumn ignoring the active column, a scratch ignoring exec_column, no enterHeader for an emptied column, removeColumn refusing the last, New in a file pane's tail, missed logging nothing) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* fs: a pane's ctl read ends with its mode (mode:normal|insert|select|tty, ↵Gabriel Schneider14 days
| | | | | | | select being normal mode extending), and kbdin takes Plan 9's Kalt, Kshift and Kctl runes (U+F015-F017), each adding its modifier to the key after it, an Alt or Ctrl key typing no text: the two surfaces the behavioural tests' inventory found most wanted (90 tests read body.mode, 18 send Alt or Shift); the tests that pinned the ctl line's end look for its words instead Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* test: four more of src/ninep/ctl.zig's tests through the 9P tree alone ↵Gabriel Schneider14 days
| | | | | | | (test/behaviour/look_and_exec, columns_and_tags, root_ctl): a look's leading blanks and exec's trim, a bare :N look from a pane's look, the root's and an event write-back (dot read from the dot file), a look after Newcol (the column read from /layout), size of a detached session (the screen read from /screen); Session's range and detach; each checked to fail against a break (a look's blanks trimmed, size taking a screen too small for its panes) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* test: the behaviour-test step and test/session.zig, T1 of ↵Gabriel Schneider14 days
| | | | | | | docs/next-tests.md: a Session drives the core as a 9P client does (walk by path, open, read or write, clunk, held lines run at the clunk as src/9p_io.zig runs them), the core opaque and the step's module importing session alone, so a behavioural test cannot reach past the 9P tree; keys (kbdin), click (on text found on /screen, mousein), screen, focused, refused and the refusal's words; test/behaviour/{other_files,panes,edit}.zig, a file a section of the reference: kbdin and mousein, a collapsed pane's ctl, name's leading blank, Putall, Edit blocks, moved out of src/ninep/ctl.zig (an Edit block left open now checked as a client sees it, an err in the log at its clunk), each checked to fail against a break (collapsed left off the ctl read, Putall saving nothing); the plan doc says the layout, the decisions and the progress Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* fs: kbdin and mousein at the root, rio's and devmouse's ↵Gabriel Schneider14 days
| | | | | | | (windows/rio/xfid.c:515, kernel/devices/mouse/devmouse.c:445): each rune written to kbdin is a key typed at the pane with the keyboard (control runes Ctrl and a letter but Plan 9's keys: \n Enter, \t Tab, \b Backspace, 0x7f Delete, 0x1b Esc, keyboard.h's private-use runes for the arrows, Home, End, Page Up and Down, Insert, F1-F12), a mousein line `m col row buttons` the mouse as it now is in cells (1 left, 2 middle, 4 right, 8 and 16 a wheel notch), what changed released, moved or pressed; each done before the write is answered, so a script's next read sees it with no sleep; the held buttons are core state, which a replica replays; test/fs.py's keys_and_mouse types, finds the word on /screen and right-clicks it, the first e2e case written through the files alone Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* gui: Upgrade refused while the display has no screen (SDL lists none: the ↵Gabriel Schneider2026-11-01
| | | | | | | screen off and its outputs gone), in words, the session as it was: the new process starts SDL's video afresh and failed there (`SDL_Init: The video driver did not add any displays`), after the dump and the exec, so the session ended, its shell left to the daemon (a window session upgraded with the screen off, 2026-11-01; its dump restored it) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
* fs: /sessions, the pardes daemon's registry in every session's tree, as ↵Gabriel Schneider2026-11-01
| | | | | | pardes --ps lists it and a record a line, as the daemon says it (daemon <pid>; session <pid> tty|gui attached|detached <name>, a shell <pid> line for each shell it holds; orphan <pid>): a snapshot frozen at the open as /listeners is, its read the daemon's `list` asked out of the turn as a tape site (`sessions`), so a replica reads the authority's answer; none in a build with no daemon (web, esp32), and `no pardes daemon answers` with none running or one too old to list; README, the reference and Scripting's ls say it; test/daemon.py --manage reads it beside --ps Co-Authored-By: Claude Opus 5.5 <[email protected]>
* daemon: --attach=<name> to a session of the other kind (pardes in a terminal ↵Gabriel Schneider2026-10-31
| | | | | | for a window's session, pardes-gui for a terminal's) joins it as a replica client through this machine's pardes-replica.sock, where it was refused in words; the daemon answers `other <name>` (a named one, or with none of the client's kind the one session there is) and the client goes on as --attach=<sock>:<name>; --help says attach takes an attached session too; test/daemon.py's window test attaches a terminal to the window session by name (the old build refused it, 'is a window') Co-Authored-By: Claude Opus 5.5 <[email protected]>
* locations: a row's colours are in no digest (a `digest` of Row's own; a dump ↵Gabriel Schneider2026-10-31
| | | | | | keeps them): they are painted from what the process has painted, the owner's highlights a frame made and the locations cache, both derived, so a window joined from a dump made a `/` query's rows plain where its session had coloured them (the box soak's `pane 21.file.location_rows` at win207-4's `/r`, unit 4/447); replica.zig's test, main fails it at `pane 1.file.location_rows` Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Query: Enter lands on a current row only while its place is there: a frozen ↵Gabriel Schneider2026-10-31
| | | | | | query pane's rows edited go with the text they were of (setContentSpan's dropped marks) while its items and current stay, and an Esc's `saved` keeps them so, so Enter indexed `location_rows` past its end, on a frozen pane's row (the test) and, in the box soak's window, on line 1 of a live one (Query.land, `index 1, len 0`: its speculated Enter, another view's SPC b b and Esc ordered otherwise than the session's); with none it is as with no current row, the keyboard to the owner Co-Authored-By: Claude Opus 5.5 <[email protected]>
* panes: a pane's view (Pane.view, and a parked view's share of it) is ↵Gabriel Schneider2026-10-30
| | | | | | digested and dumped, no longer derived: a key's move reads it before its step syncs (halfPageMove, ensureCursorVisible, through File.geometry), and a core loaded from a dump had the default, Wrap on and no row heights, so a window that joined after `SPC t w` scrolled further at the terminal view's next Ctrl-D (the box soak's `pane 23.file.scroll`, seed 7: win207-3 at its join); replica.zig's test, main's fails at `pane 0.file.scroll` Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Names: its query buffer is digested as far as its length (a replica `len`): ↵Gabriel Schneider2026-10-30
| | | | | | past it, what is undefined was 0xAA in a Debug build and not in a release one, so a Debug replica of a release session diverged at every Grep's query pane (cross_replay.py, a ReleaseSafe tape replayed by Debug: `pane 2.query`) Co-Authored-By: Claude Opus 5.5 <[email protected]>
* builtins: Tty9p is a word of every hosted build, not a Linux build's alone, ↵Gabriel Schneider2026-10-30
| | | | | | so a build's words, the rows of its Help, are the same on FreeBSD: a Linux client of a box session made SPC ?'s +Help with one row more than its session's and joined again (`pane 4.file.content`, and `.splice` over a +Help made again: two of the box soak's three divergences); whether its host is Linux is the authority's answer (tape.authority), so a replica of a FreeBSD session refuses Tty9p as its session does; test/cross_replay.py's session runs Help (a FreeBSD tape replayed here diverged at its pane's content) Co-Authored-By: Claude Opus 5.5 <[email protected]>
* views: a client that joins again has its own view back, layout, focus and ↵Gabriel Schneider2026-10-30
| | | | | | the panes opened in it: an Upgrade's clients and one whose bye says it joins again (a divergence's, wire 19's `bye.again`) leave their view kept for them (`views_away`, digested and dumped, so an Upgrade's new build has it; taped `awayView`), the client names it in its next hello (`Hello.view`, handed on by the daemon with the connection) and its join takes it back (taped `rejoinView`) rather than a copy of the session's; the live view is never a kept one, `views.count` counts the others, and a join with every view taken lets one go (every Upgrade made each client's own panes leave its view: the hunt's 80 ms cell lost `+Search` and `+New`) Co-Authored-By: Claude Opus 5.5 <[email protected]>
* dump: a closed terminal brought back on a screen-state replica gets its ↵Gabriel Schneider2026-10-30
| | | | | | emulator on the C heap, as terminal.create makes one (terminal.emulatorGpa): loadPane named no `.terminal` allocator, so its emulator was the rollback epoch's, and its screen replica's blobs, made with State.gpa, were freed with the C heap's behind the epoch at a client's end and again by it (H21: `double free or corruption` in Epoch.deinit at a hangup, `free(): invalid pointer` at a rejoin), and a rollback freed what a delta under a held copy made of them Co-Authored-By: Claude Opus 5.5 <[email protected]>
* replica: no digest is taken in a speculation: one over a terminal kept its ↵Gabriel Schneider2026-10-30
| | | | | | digest to check its unit's against, and a blob born under the copy and digested there keeps its word past the epoch's free of it (src/walk.zig), so a later blob at that address read as it (the replicas harness, Debug, seed 11 at 207 ms: "not what its kept word was"; in a release build a divergence); a speculation over a terminal is confirmed by its records, as any other, its unit taken at once when more is applied on top Co-Authored-By: Claude Opus 5.5 <[email protected]>
* replica: an input's time is its client's: it is sent stamped with the ↵Gabriel Schneider2026-10-30
| | | | | | client's guess of the session's clocks (wire 18's `stamp`), the guess its speculation records, and the authority's step reads that, not its own clocks (within a second of them, else its own), so a step's clock read never mispredicts: an edit's second across a turn, a message's millisecond (Ctrl-W's, a jump's) were each a rollback (fixer 1: 4 seen in 2 minutes), and every reapply of one now reads the same time Co-Authored-By: Claude Opus 5.5 <[email protected]>
* tape: a yes or no only the authority holds (whether a script reads a pane's ↵Gabriel Schneider2026-10-30
| | | | | | events, whether the session serves a socket) is guessed by a replica's speculation from the authority's last answer to that question, recorded as the answer so its unit confirms or rolls it back: a Look or a click's command in a pane shows at once again, not a round trip late (11 of a Look class's 12 stops); lists (the closed panes, Recent) are still asked Co-Authored-By: Claude Opus 5.5 <[email protected]>
* echo: predictions lost while their keys are still on their way (a delta that ↵Gabriel Schneider2026-10-30
| | | | | | moved the screen's top, a misprediction, a cursor missed) make the keys typed next wait for the newest of them to show, as keys behind one not predicted do: predicted at once from the screen's cursor, they landed where those keys' echo was about to, and at 207 ms (three keys in flight) one such drop misjudged every key after it, so the line's typing was predicted and drawn nowhere (p50 65 ms key to output, 5 of 6 judged wrong); a trace of each misjudged cell (PARDES_REPLICA_TRACE) Co-Authored-By: Claude Opus 5.5 <[email protected]>
* terminal: a pane without an emulator (a file's, a picker's, a preview's) ↵Gabriel Schneider2026-10-30
| | | | | | torn down in a replica's speculation does not stop it: deinitEmulator asked the authority before it looked for an emulator, so the input after any close (its reap) waited a round trip (the finder's typing, 4 of 6 stops) Co-Authored-By: Claude Opus 5.5 <[email protected]>
* replica: pardes's own steps over a terminal speculated, not every input ↵Gabriel Schneider2026-10-30
| | | | | | while one has the keyboard (H14): what reaches its program is a pty write and stops as before; its view (normal-mode keys, the wheel, Ctrl-u) moves here at once, the rollback copy keeping each terminal's view (it holds no emulator) and a delta setting it, put back between the units it replays in the order the deltas came among them; what was applied over a terminal applied again over each delta or rows that come while it waits, and its unit taken at once rather than kept to replay over later deltas; closing a terminal stops (its pty's end is the authority's) Co-Authored-By: Claude Opus 5.5 <[email protected]>
* replica: what stopped each input's speculation is counted by name ↵Gabriel Schneider2026-10-30
| | | | | | (PARDES_REPLICA_STATS's `stops`: a host function's, a site's, or a poison's reason, which tape.poison now takes; PARDES_REPLICA_TRACE says it with the input); a window client's PARDES_TEST_LATENCY says each input (`I seq ns at-once`) and, after each unit, the first of its own not confirmed (`U ns seq`), so a harness finds the frame that shows an input that waited Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Query: a +Search's rows recoloured are made again (locations.cloneRows, ↵Gabriel Schneider2026-10-30
| | | | | | Query.save's copy), never written in place: the rows are a blob (File.State location_rows), whose word a digest keeps by address and a replica's rollback copy pins, so a release session kept the word of their colours before a paint landed (recolor's @memcpy); an edit moved them into dropped_marks with the stale word, a replica that hashed them at another time diverged there (fixer 1's soak: `pane 5.file.dropped_marks`), and a client loading the session's dump hashed the colours it carried and loaded "as another session"; dropped_marks stays in the digest, as an undo back to its text reads it; Stream's test, which a Debug build fails before (`the 82-byte blob ... is not what its kept word was: written in place`) Co-Authored-By: Claude Opus 5.5 <[email protected]>
* terminal: an authority with screen-state replicas sizes a terminal after the ↵Gabriel Schneider2026-10-30
| | | | | | step's unit, not inside it (resize_to, made by Peers.unit, null from `create` on): a client typing at another size than the last typist read history rows its replay held as holes, and the rows the session sent for them came in the new grid's numbering, which the replica cannot take, so its replay read blank text (the soak's local80 cell: jumps, njumps, jcur, pane 1.body at a b; fixer 2's H18, pane N.ovl); test/replicas.zig sizes them after its fill too; an in-process test reads the history in the step that resizes, with the session's order of flush, fill and unit, and another makes a terminal from 0xAA memory and finds no size waiting Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Places: its regex made again from its pattern when a set holds none: `re` is ↵Gabriel Schneider2026-10-30
| | | | | | derived (in no dump and no rollback copy), so a client that joined took a loaded search for a list's and found nothing an edit made, and diverged at the next edit, again at every rejoin (the soak's local207 cell: pane 3.places.hits, and pane 17.cwd, which inherits pane 2's and hashes it whole); a test loads a session's dump and makes the same edit in both Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Stream: a search run on the loop (a 9P write's Grep or Find, which answers ↵Gabriel Schneider2026-10-30
| | | | | | whether it found anything) is a tape site, `search`, its batches what the replay takes, as it takes a worker's (Event.search): its file reads were no site, so a replica of a session a script greps in read no file and joined again (`a syscall that is no tape site, made replaying`, a terminal client live, 2 of 2 before, none after); test/cross_replay.py's session greps and finds again Co-Authored-By: Claude Opus 5.5 <[email protected]>
* terminal: a step that reads a terminal's rows as the core keeps them marks ↵Gabriel Schneider2026-10-30
| | | | | | | | | | it read too: `fill` sent a client that came since (its history all holes) none of the rows the step read shellRows set `read` only when it built the rows, not when it handed out the ones kept since the last write, so after a client joined (or was started afresh) a step reading through the cache left the client's holes unsent, and it replayed the step on blanks. Found on the way to H18, whose fix is fixer 1's (wwkwwlzt). Test (failing before): a step that reads a terminal's rows as the core keeps them sends a new client the ones it holds as holes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
* walk: an enum is digested by its name (its word, a fixed-width hash), not ↵Gabriel Schneider2026-10-30
| | | | | | its number: registry.Builtin, made at compile time, has Tty9p in a Linux build and not a FreeBSD one, so a +LocationsConfig (its output's origin a Builtin) digested otherwise in each, and a Linux client of a FreeBSD session holding one could not join (the hunt's H19: `the session's dump loaded as another session`, main's window client of main's session on the box; after, a terminal and a window client here join one with a +Search, a directory, a renamed file and a +LocationsConfig, and agree); walk's test, and test/cross_replay.py's session holds a +LocationsConfig and a renamed file (a FreeBSD tape replayed here diverged at pane 2.file.output before) Co-Authored-By: Claude Opus 5.5 <[email protected]>
* web: the build links no libc, so what is the C heap's is a hosted build's ↵Gabriel Schneider2026-10-30
| | | | | | alone: terminal.create takes emulator_gpa (std.heap.c_allocator) only in a hosted build, as only one has a screen-state replica, and walk's blob lists (a replica client's, a join's) only with libc; `zig build web` failed on main at terminal.zig:601, and at walk.zig:115 behind it; it builds, and test/web-snapshots/touch.mjs passes (the driver's own CDP-deadline test fails as on main, untouched) Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Adopt and a terminal reader's failure are inputs (Pardes.adoptShell, ↵Gabriel Schneider2026-10-30
| | | | | | readerFailed; tape.Input adopt_shell, reader_failed): tty.zig's and gui.zig's adoptShell ran the Tty word and cleared the pane's greeting straight on the core, and the window's reader failure set its pane's mode, between steps and untaped, so every client of a session that took in a dead session's shells joined again (the hunt's H15: `the unit of 0/48 diverged: the core called poll_frame where the tape has a host (10)`, gone after); replica.zig's test, which the old writes fail Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Messages: a detached session's messages go on the clock in the pump, after ↵Gabriel Schneider2026-10-30
| | | | | | its wait, not in the host's wait: the host's call (tty waitInput, gui waitDetached) was no input, its clock read untaped, so a replay (and every replica of a session nobody attached) kept a message its session had let go; with MessageLinger 0 (test/daemon.py's sessions) a tape whose session said a failure never replayed, on main too (pane 0's msg, digest 6, 7 of 7 runs; 0 of 6 after); test/cross_replay.py's session says MessageLinger 0 again Co-Authored-By: Claude Opus 5.5 <[email protected]>
* remote clients: a pointer's hit carries the place it was made on ↵Gabriel Schneider2026-10-30
| | | | | | (Layer.Place, on the wire, version 17) and a step resolves it from that, never from this process's frame (`surface`, `.local`), which a session never draws for a client: a window's pointer over a tag diverged it at once (the user's `tape byte 119`, 15 rejoins in 25 s) and a click there aborted it; a replay that meets a site its tape lacks, or makes a syscall that is none, is a divergence that goes on harmless (poisonOf), not a panic, and a speculation that makes one waits (Tty's shell lookup, untaped, is a value site now, as Shell's was); a copy over a queue is refused, not asserted; a session's last client, while no one else watches it, leaves it its layout (leaveView, settled as closeView is), which its rejoin copies; a redial waits only after an Upgrade's `refused` (a divergence's redialled a gone session 20 s); a dying session shuts its clients' links before its trace, and an --attach client ends its ssh and socket whatever way it exits; a far join's hashing stops at a blob once its client is let go (its leave waits for it in the step); a confirmed speculation's state is checked against its unit's digest, and the trace gives a key's and a pointer's words; test/daemon.py: 200 far joins level, a window's pointer swept over tags and body, ssh stand-in clients refused and detached, a client of a killed session ending in 2 s; in-process tests for each Co-Authored-By: Claude Opus 5.5 <[email protected]>
* screen_state: a terminal's absolute rows numbered so that its history's ↵Gabriel Schneider2026-10-30
| | | | | | oldest is row 0 or later: a reflow to fewer columns puts more rows above the last active top than ever scrolled past it, and a peer started afresh at `top - history` overflowed (the session aborted as a window client's font resized a shell); a test narrows 200 long lines Co-Authored-By: Claude Opus 5.5 <[email protected]>
* c_heap: a heap's allocator read as its bytes are, through a volatile ↵Gabriel Schneider2026-10-30
| | | | | | pointer: std's stateless allocators (c_, page_, smp_, wasm_allocator) leave `ptr` undefined, and one never written outside a test (replica.zig's zstd heap over c_allocator, web.zig's over wasm_allocator) is a constant to a release build, which folded `known.ptr == current.ptr` to false: every malloc named a new allocator and the 65th panicked (the box's session aborted at about its 16th far join; the core's table held 64 copies of {ptr 0, c_allocator's vtable}); its test runs built ReleaseSafe in unit-test too, where it panicked before Co-Authored-By: Claude Opus 5.5 <[email protected]>
* views: a view drawn or read outside a step (a replica client's own while ↵Gabriel Schneider2026-10-30
| | | | | | | | | | another is live) leaves the live view's slot and its panes' shares holding nothing, as unpark and drawOthers leave them withParked parked the live view and copied it back, but left its slot (column tags' texts, a chord's argument, the presentation) and each pane's share (its selections) pointing at what the live fields own. A rollback copy walks every slot (src/rollback.zig): once the live view freed one of them and the heap gave the memory to another, the copy saved that and put its old bytes back over it, which `emptied` exists to prevent (the slot left as H5's hypothesis had it, in a path it did not name: Replica.draw and Replica.within). Test (failing before): a view drawn outside a step leaves the live view's slot holding nothing a rollback could put old bytes back through. Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Places: the lowered copy a smart-case search reads is zeroed where it is ↵Gabriel Schneider2026-10-30
| | | | | | | | | | made: its pieces not lowered yet were whatever the heap held, in every digest and a join's dump, so two processes' places differed (H5's and H17's `places.hits|hay`) freshHay took `memory.unfilled` and lowered a piece at a time as the search reached it; the digest and the dump take the whole slice. Zeroing it costs 20 us for 1 MB, 0.4 ms for 10 MB and 10 ms for 100 MB in one frame (ReleaseFast, page faults included; lowering the same text is four times that, spread over frames), the order of the copy an edit of that text already makes. Test (failing before): two sessions searching one text, each heap handing out other bytes (rollback.Epoch.fill), digest the same places. Co-Authored-By: Claude Opus 5.5 <[email protected]>
* views: a view opened or closed settles in its own input: a unit taped ↵Gabriel Schneider2026-10-30
| | | | | | | | | | outside a step (a leave's close_view, a join's open_view) ended with effects queued, which a replica's copy asserted on and a joiner's dump dropped A client's leave is the session's closeView, whose sync sizes again a terminal the closed view sized (`sizes`) and queues its pty's resize; the session did it at its next pump, another unit. A replica that replayed the close was left with the effect queued between steps, and its next idle copy (Replica.ready, rollback.Copy.take's assert) aborted it: a client killed when another left (H10). A client joining at that boundary was dumped with the effect still queued, which a core loaded from a dump has none of (Replica.initDump), and diverged at the session's next pump (H6: "the core called poll_frame where the tape has a host (12)"). closeView and openView settle now, inside their own taped input, so every side does the same there; openView's covers what else was queued since the last pump (a 9P request's step). Test (failing before at each of the two asserts): a client leaves, and one joins: what the leave queued is done in its unit, on every side, before the join's dump. Co-Authored-By: Claude Opus 5.5 <[email protected]>
* replica: what only the authority holds, a step reads off the tape ↵Gabriel Schneider2026-10-30
| | | | | | | | | | | | | | | | | (tape.authority): the store's closed panes and Recent, a script's hold on a pane's events, the 9P socket, the session's config directory and startup file; a replica's own are never read, and never put back by a rollback The Panes picker's closed rows, Recent's rows, a closed pane brought back (a Look at @pN, a Panes row), a jump to a closed file and the +Jumps rows read `p.store` and `p.recent`, `.authority` state a replica keeps on its own: its store has no file, its Recent only what it replayed since it joined. The rows made of them went into digested state, so every client of a session diverged together after a Del (H4), every client that joined after one diverged at its first unit forever (H11: trackJump dropped a closed file's jumps at every step when Recent did not know the file), a client's Del of a file the session's Recent knew made the stat the session skipped (H12: noteClosed looked in Recent first), and a client on another machine read its own store (H13). - tape.authority: poison, then a value read: the authority's answer is taped, a replay takes it, a speculation waits for it. One site, `.authority`. - Readers through it: Query's Recent and closed-pane rows, Store.reopen's record, Pardes.recentByHash (jumps, +Jumps), mouse.reportRange's readers check (a script reading a pane's events takes a look or exec: `pane.fs.readers`, the 9P server's), Tty9p's socket check, Pardes.configDir and startupPath (ThemeFile, DumpThemes, Config, DumpConfig, an init file saved), DumpConfig's dump directory. - trackJump no longer reads Recent at every step: a closed file's jump stays; the jump to it drops that file's entries when Recent has forgotten it, as when the file is gone. - noteClosed asks the host (recentKeeps, a taped stat) before it looks in Recent: the same syscall on every side. - The tty toggle, read on every key, is session state: Pardes.tty_toggle, from the options when the core is made, dumped. - The rollback copy no longer saves `store` and `recent` (rollback.zig `unsaved`): their bytes put back pointed at lists the host's heap (recentGpa) had freed, which the epoch never holds. A speculated Del then a Panes listing read a freed name (H8, the segfault). Tests, each failing before: a rollback leaves the store and Recent as a speculation left them; a replica joined after a pane closed has the session's jump to it, its Panes and Recent rows, asked by either (and the variant hunt's Recent written by another window); a replica's Del of a file its session's Recent knows asks the host what the session asked. Co-Authored-By: Claude Opus 5.5 <[email protected]>
* pardes: a core's first frontend is an option (Options.windowed, taped with ↵Gabriel Schneider2026-10-30
| | | | | | the rest), not its build's default, and every hosted build takes a window's font words (observe_font, acknowledge_font, reject_font, take_font_request): a window's build replaying a terminal's session started as a window (its init file's window settings applied), and a terminal's replica of a window's session diverged at the window's first font Co-Authored-By: Claude Opus 5.5 <[email protected]>
* regexp: one step budget in every build mode, 32M: what a search finds is the ↵Gabriel Schneider2026-10-30
| | | | | | core's state, and with 4M in Debug a Debug replica of a ReleaseSafe session answered TooSlow where its session found no match (`\s*(\w+)\s*=` over 200 letters, the variant hunt's test, here) Co-Authored-By: Claude Opus 5.5 <[email protected]>
* tape: an error crosses by its name, a stat as fs.OsStat, and the tape's ↵Gabriel Schneider2026-10-30
| | | | | | shape is in wire.semantics: a replica of another build read its session's units as its own build's, so a window client of a terminal's session, or of the box's, read every error by a number its build gives another (451 of 505 names numbered otherwise in the Linux terminal's and window's builds, 244 between Linux and FreeBSD: pardes-gui replaying a terminal's tape panicked at `unexpected error code, found error.NonLocalPath`, and so did main's window client of a session on the box at its Look of a fifo) and a FreeBSD stat out of step (nlink 8 bytes there, 4 here); a name this build's set lacks is a divergence (error.NoSuchError), never another error; an anyerror (a host's report) reads back as one of tape.Failure's, a Debug build panicking at one outside it as it is taped; tape.shape (each taped type's fields, tags, enum names and numbers) in semantics refuses, in words, builds whose tapes differ (the stat taped as before: the Linux and FreeBSD builds hash to two), and a site whose result tape.results does not list is a compile error; walk's test of an error by its name Co-Authored-By: Claude Opus 5.5 <[email protected]>
* replica: the two tests that count a replica's fast confirmations start early ↵Gabriel Schneider2026-10-30
| | | | | | in a second: an edit's file time is the clock's second, which the replica guesses, so a second's turn between a key and the authority's take of it was a misprediction (another client's input first: expected 4 fast, found 3, in 11 runs of 40 of a loaded Debug window build) Co-Authored-By: Claude Opus 5.5 <[email protected]>
* remote client: a write to the session that fails is its hangup (a client cut ↵Gabriel Schneider2026-10-30
| | | | | | off as it lags said nothing and exited 0 when its own write found the link shut before its reader did); a window client's frame is marked rendered as it presents, so the live harness reads its render as its core's time; test/daemon.py's window clients: one far (PARDES_REPLICA_FAR) put off the session's state rejoins from the core it left, and again across an Upgrade (its `refused`); a client's echo stats in PARDES_REPLICA_STATS; --ps beside them lists the session alone, a window's as (gui, attached), its clients none Co-Authored-By: Claude Opus 5.5 <[email protected]>
* pty: what a run's command printed taped (tape .prompt), as a step's read of ↵Gabriel Schneider2026-10-30
| | | | | | its terminal after output is: a screen-state replica's emulator is its deltas', which a lagging client's are states behind, and a run's end replayed there read pins into pages it never had (ghostty's leftWrap overflowed: a window client stopped while a shell flooded the session aborted 3 runs in 8; none in 6 since) Co-Authored-By: Claude Opus 5.5 <[email protected]>
* gui: the window a replica client (pardes-gui --attach=<socket>:<name> and ↵Gabriel Schneider2026-10-30
| | | | | | <host>:<name>, as the tty's, far through ssh as amort's: its blobs by hash and its stream in zstd) and a window session serving replicas (a terminal's client or a window's): the client feeds its replica what its window does, read over its own view (views.within) and applied after, draws its view between steps, takes the stream on its own reader and rejoins as the tty's does (replica.Link, the client's half shared with it, the far path's Have with it); the session takes clients at its step boundary, one person's input a wait, a client's view no window of its own, its font and opacity answers taped; a client says its frontend first (Event.frontend, in wire 16 beside the far word) and the tty and window builds step alike (one desktop semantics: each has the other's words, which a view takes by its own frontend, builtins.registry.here); a check asked 300 ms after the last input and check, not per wake; test/daemon.py --window-clients Co-Authored-By: Claude Opus 5.5 <[email protected]>
* daemon: pardes --ps, --kill=<name>, --kill-all: the daemon's registry as a ↵Gabriel Schneider2026-10-30
| | | | | | tree (the daemon, each session with its pid, kind, state and name and the shells it holds, then the shells no session holds, which Adopt takes) and sessions ended with their shells: a TERM, a KILL 2 s later, gone once the daemon no longer lists them (a zombie still answers kill 0), a killed session's held masters closed rather than kept for an Adopt and --kill-all's every kept one; in --help, the guide and the reference; --help's ssh default no longer -C; test/daemon.py --manage Co-Authored-By: Claude Opus 5.5 <[email protected]>
* 9p_io: the parked-write test rests again until the client's release has ↵Gabriel Schneider2026-10-30
| | | | | | landed before it reads the body: a write through an open is held (pane.zig batchFor) until the open is let go, and the client lets it go without waiting, so under load the test read the body truncated and the bytes not yet in (it failed on the first run of a loop beside builds, then 30 of 30) Co-Authored-By: Claude Opus 5.5 <[email protected]>
* replica: a far client's content cache and zstd: the session lists its join's ↵Gabriel Schneider2026-10-30
| | | | | | blobs by BLAKE3 hash first (wire 16 `blobs`), the client finds each in the core it leaves or on disk ($XDG_CACHE_HOME/pardes/blobs, hashed again on load, a bad file a miss, the least recently used evicted past 1 GiB) and asks for the rest (`want`), and everything after the welcome goes in zstd envelopes (level 6 over 8 MiB for the join, an undo snapshot being a near copy of its text, then level 3), so `ssh -C` leaves the default command; a far client (through ssh, or PARDES_REPLICA_FAR) keeps what it was sent and, at its end, what it made; a hangup ends a remote client the normal way; through the box a client holding the blobs is drawn in 2.4 s where main took 7.0 to 11.9, and a first join of a session with undo in 7.1 s where main took 11.9; libzstd 1.5.7 vendored, its allocations on c_heap, a second copy refused by shared-libs-check; tests for the cache's verify-on-load, its eviction and a far join's blobs sent once; test/daemon.py's far clients Co-Authored-By: Claude Opus 5.5 <[email protected]>
* remote client: a link's end read before the drain, not after it: the link ↵Gabriel Schneider2026-10-30
| | | | | | reader posts `link_gone` just before it marks its end, so a drain that tested the mark last could leave that post queued, and the next link (a rejoin after divergence or an Upgrade) took it and ended at once, the client saying 'let this client go' right after 'joined again' (test/daemon.py's forced divergence, about one run in ten under load) Co-Authored-By: Claude Opus 5.5 <[email protected]>