summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAge
*-----. integration: the tree to install (2026-11-23, the user's "as quickly as ↵Gabriel Schneider5 days
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | possible"): the pdf kind's abort, the Changes layer's first step, a link rejoined over its own connection, a terminal's first run, the pair's fixes for both paths: pardes-rejoin (`rnllpvzw`), pardes-first-run (`qvzzotyn`), `ulqsysrv` on `vwzmwwpw` (the release-soak line's FIRST fix only: `addon.cSlice` at every C pointer with a count: a search with no hit on a PDF's page and an outline that is none no longer end the session), pardes-pair-13 (`ttvpvmlo`: the start path less " (deleted)", a stub's abort at kill -9) and pardes-layers-7a (`lupmqzxl`: one pinned change's lane green and red, the arrow, the looks, a change's patch with its header), with the terminal's arrow as the bend the user chose (`╰─→`, as `nmwnvrow`); LEFT OUT on purpose, for the next install: the release-soak line's `walk.eql` in the jump list (it hashes two entries a cursor move: body-appends +8 to +12% an op in merge63b's gate) and `tellEveryView` with its test (a client back after the outcome's message had gone failed every upgrade row there); no conflict; its gate: .scratch/sketch/reorg/merge63c, the numbers in PARDES.md Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | | * | daemon: the stub dies of its session's KILL as of any other signal, not of ↵Gabriel Schneider5 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | an abort: a terminal's session killed outright (kill -9, the OOM killer) left its stub, the job the shell waits on, dead of SIGABRT (-6, $? 134) with a Zig trace printed on the user's terminal (pardes-pair-13's z6/sees.py on pardes-m63-base's Debug build: `std/posix.zig:954 in sigaction: .INVAL => unreachable` from runtime/daemon.zig:680 `stubWait`), because stubWait re-raises the signal its session died of after setting that signal's action to the default, and KILL's action cannot be set (EINVAL, which std's posix.sigaction takes as unreachable); a user of the installed build can hit it (the own path is its default); now the action is set for any signal but KILL (its default already) and the stub dies of the KILL (-9, $? 137); the row `killed_session` (test/daemon.py, plain mode, both ways by its one switch): the session killed with KILL, the job ends with no trace on its terminal, -9 on the own path and 1 for a pair's client (let go: "'x' let this client go"); sees.py after: the own path -9 and no trace; core-test 931/1095 (164 skipped), shell-test 1137/1140 (3 skipped), process-test 0 of 146 both ways (with the next change, loads 2.1-11) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | | * | merge: the link's rejoin over the same connection (pardes-rejoin, ↵Gabriel Schneider5 days
| | | |\ \ | |_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | `rnllpvzw`) under the pair's round 13 (pardes-pair-13: `xmrlkxtn` on `prnotlyq` on `nrollumu`) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | | | | link: a far client that falls behind dials again, as before round 1 (the ↵Gabriel Schneider5 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | coordinator's ruling P63a): `Link.backHere` says no for a link that crosses machines (`Link.far`, set by runtime/client.zig from its `Have`) and fell behind `behind_max_ms`, so that client says its goodbye, shuts its link and dials again through the daemon, a new connection that drops what the old one holds for it; every other way back (a divergence, a near lag, a cut, a refused load's ask) stays on the link; marked in the code as the second road it is, with what replaces it (bounded flight: the session never more than a window past what its client has taken); the failing row first: test/daemon.py `--far` on ReleaseSafe 6 of 7 on round 1's tree (`far_flood`: over its own link the far client read through all the relay held for it, agreeing 49-68 s after `yes` against 22.7 s by a dial); `far_flood` now asserts the far client behind took ANOTHER connection; the lag test asserts both roads (`backHere` near yes, far no) ; gated with the next change as its tree (g1, rnllpvzw fd3730201cb3): `--far` on ReleaseSafe 7 of 7, far_flood ANOTHER connection each time and agreed 22.3-26.0 s after `yes` ended (Debug 25.3 s), every other row as before: core-test 931/1095 (164 skipped), shell-test 1137/1140 (3 skipped), process-test 0 of 146 failed both ways, the soak x3 and --pair x3 clean, daemon.py every mode on both builds, the upgrades 12 of 12, frames 77/77 and 121 counts within 0.1% against tree6, the cross-builds Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | | | | merge: round 1 of a link's lifecycle (pardes-link-1, `nlqrtuns`: a client ↵Gabriel Schneider5 days
|\ \ \ \ \ | |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | whose link is up comes back over it) onto the dump and the digest (pardes-m63-base, `xxvnuywy`: the installed tree + the one decision + a join's digest taken with its dump, a refused load naming its field), the two implementations of "a refused load names its field" made one: the dump line's naming kept (every join's dump ends with the session's digest a field at a time, `dump.joinParts`, read by `loadDiffers`), round 1's deleted (the wire's `ServerTag.parts` 0x0d and `ServerMsg.parts`, a bye's byte 3 and `ClientMsg.bye.parts`, `Peer.fields`, `Peer.parts`, `Peers.partsOf`, `Peer.writeParts`, the `Parts` read in `loadAgain`, `comeBack`'s `parts` argument, `fromDump`'s second naming from that message); round 1's road kept (`fromDump` asks once more over the same connection, `loadAgain`, `joinOn` reading on to a welcome); the conflicts: abi/wire.zig's 31 line (both sides' sentences, round 1's without `parts`), `Peers.join` (the dump line took `dumpJoin`'s `.{ bytes, digest }` inline where round 1 had split the dump and the welcome out, `Peers.dumped` and `Peers.welcome`: `dumped` now returns the bytes WITH the digest `dumpJoin` took at the dump's moment and `welcome` takes that digest, so a join again over the link (`dumpAgain`) has the dump line's guarantee too, where round 1's `welcome` read `tape.digestOf(core)` after the dump), `fromDump` (the dump line's named refusal and round 1's loop: now the first refusal names its fields in the log and asks once more, a second, or a link that cannot ask (its words kept, `j` and its dump the caller's), gives up naming them in its words: "the session's dump loaded as another session twice: fs differs"); `loadAgain` asks before it lets the dump go (the dump line's test hands `fromDump` a dump of its own and no link: it was freed); semantic conflicts looked for: the one decision's `Replica.confirm` and core/tape.zig (`feedsTerminal`, `touchTerminal`, `Pending.terminal`, `shell_rows` gone): nothing of round 1's used them; the rollback copy's walk: `Peer`'s and `Link`'s new state (`gen`, `written`, `back`) is outside the core it walks (Peers and Link are the engines', not `Pardes`'s fields), nothing to declare; tests: round 1's "refused twice" made from the dump's own parts (its first field's word changed in the dump, no message), the dump line's "says which field" given the session's name argument; root.zig's machine_lines for replica.zig 90 -> 89 (`loadAgain`'s close gone); core-test 930/1094 (164 skipped: the base's 924/1088 and round 1's six), shell-test 1136/1139 (3 skipped: the base's 1130/1133 and round 1's six) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * | | | link: a client whose link is up and must take the session's state again (it ↵Gabriel Schneider6 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | diverged, fell 2 s behind, or the session cut it off 64 MB behind) comes back OVER THAT LINK, the daemon not asked: its goodbye that says `again` and today's hello for its view in one write (`replica.comeBack`, runtime/client.zig `Loop.run` when `Link.backHere`), its reader letting the stream it leaves go (units, blobs and checks not even copied) and stopping at the session's welcome there, put back at its framer's front for the join's reader (`readLink`'s back mode, `Framer.putBack`), the join read on that framer (`joinOn` takes it; `replica.join`'s `here`); on the session the reader reads on after a `bye` that says `again`, a hello after it is the same client back (`Peer.take`, inputs numbered afresh), and `Peers.joinAgain` dumps for it there with what the old road put on the tape (`awayView`, then the join's `viewFor`: every side's terminals reloaded in that step), what was queued for it let go, the cut over; one writer loop writes a join whenever one is due (`Peer.gen`, `Peer.written`; the `.joined` note carries its gen so a stale one releases nothing), what it was sent a MiB at most a write at a message's end (`writeOut`) so a join due waits for no more of the old stream, a far client's old zstd frame ended before the welcome; a cut keeps the link (its words, then nothing until the hello); a link that ends before the welcome (an Upgrade's or a Restore's words: the session closes it), or one gone, is dialled again as before: the one case left for a redial; and a client refused its own load (`fromDump`) asks ONCE more over the same link with the session's digest a word a field after that dump (wire 31, nothing at 31 installed: a bye's byte 3 = `again` + `parts`, a new ServerTag `parts` 0x0d) and only then gives up, naming the fields that differ in its words and its log; the failing run first: test/daemon.py's new `pair_back` (a no-daemon pair whose client diverges, and one stopped 3 s while the session is edited) on the installed build 79b73e14711e: "the client and the session went (client exit 1)", "'diverged' let this client go", on this tree both join again over their own link, the session alive, the unsaved text there, agreed; `clients`: client D's socket the same across its rejoin, the session counting 6 joins, 1 over a client's own link and 5 handed by the daemon; `far_flood` (20 KB/s, 200 ms): the same link after 3 joins again of 0.56 s each against a dial each time on the installed build (0.99 s each), but agreement 68.6 s after `yes` ended against 22.7 s: the client reads through what the relay holds for it (the relay buffers without bound; ssh bounds it by its window), said in reports/pardes-link-lifecycle.md; `Peer.rejoin` and `hungUp` stay for the one road that still dials after a goodbye saying `again` (a client of another build exec'ing: `sameBuild`), their test rewritten for it; core tests at the replica's surface with real link threads (near and far: back over its own link; a refused load asked once more and loaded; refused twice and named, against a session played by hand; a cut client back over its link, the same peer, connection and view); the soak models the road (`ended`, `Soak.joinDown`, the `here` column); core-test 924/1084 (160 skipped), shell-test 1126/1129 (3 skipped), root.zig's machine_lines for replica.zig 76 -> 90 (the tests' sockets and sleeps; the session's one shutdown of a link it will not dump for again, and a close) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | | | * upgrade, daemon: the start path less Linux's " (deleted)", and the file it ↵Gabriel Schneider5 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | started from the one it runs, whenever it is first asked: a session looked its start path up once, after its first pass round its loop (runtime/upgrade.zig `locate`: a readlink of /proc/self/exe and a stat OF THE PATH, "nothing is reinstalled within a frame of a start"), and a pair's session draws no frame: its first pass can come after its client's first frame, when a build is installed there (pair_exec_reaps, installed to ReleaseSafe on one CPU, 1 of 80 after the change before: "the session exec'd" not in 60 s, the session's own words "Upgrade: …/bin/pardes (deleted) would not start; this session stays as it is"); looked up after a reinstall the path is "PATH (deleted)" (the Upgrade execs that name, refused) and the "started" inode is the new file's (`replaced` and `newer` then say no newer build: a client that looked late does not exec at an Upgrade, and the newer-build notice never comes); and a daemon started by a process whose file was replaced (daemon.zig `spawn`, its own readlink: a pair's client at its start, a session whose daemon died after a reinstall) execs "PATH (deleted)" and none starts ("Upgrade: no daemon keeps this session, so its client could not join it again"); a user can hit both: a build installed in the first moments of a session, then an Upgrade, refused; a build installed, then the daemon killed or dead: no session can start the next; THE TEST that makes it come every time: test/daemon.py `pair_exec_reaps(new, new, early=True)` (run by every `--upgrade`: the same build installed again at once, before the session looked its path up and as the client starts the daemon: the session must exec it and the client, its build the session's still, join again in place): on pardes-m63-base 0 of 20 (ReleaseSafe on CPUs 5,13 and Debug: every one "no daemon keeps this session"); now `upgrade.startPath` (the path as the system names it, less " (deleted)") is what `locate` keeps and what `spawn` execs, and the started inode is the file the process runs (a stat of /proc/self/exe on Linux; the path's on FreeBSD as before); after (loads 4.4-9.0): the early row 20 of 20 on Debug (CPUs 5,13) and on ReleaseSafe once its expectation was the same-build rejoin, pair_exec_reaps 120 of 120 (Debug to ReleaseSafe, ReleaseSafe to Debug, installed to ReleaseSafe; 20 each on CPU 5 and on CPUs 5,13) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | | | * tests: a client's blink at an Upgrade is a leave at or after the mark, not ↵Gabriel Schneider5 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | strictly after it: pair_exec_reaps's "drawn again", far_exec's and upgrade_clients' "the terminal entered again" took the text's length before the Upgrade (`mark`) and asked for the screen's last leave (`\e[?1049l`) to be AFTER it (test/daemon.py, the three waits: `x.rfind(leave) > mark`), but the leave is the first byte the old client writes after the Upgrade, so when the terminal's reader had read every byte before it (the old client idle since its frame, the reader caught up) the leave starts AT the mark and the wait runs out with the client alive, joined and drawn: the twelve failures of the change before (80 runs of pair_exec_reaps alone on pardes-m63-base, every one kept: the old client's one frame 5596 bytes, its leave at byte 5596, the exec'd client's enter at 5661 and the notes drawn after it, `pardes --ps` listing it as the session's client); the gate's "drawn again" (merge60, Debug to ReleaseSafe) is this; a user cannot hit it (the test's); now `entered_again(text, mark)` (the leave at or after the mark, an enter after the leave: what was drawn since) is the one predicate of the three waits; after it (rx.sh, the same 80 runs, loads 1.3-3.1): Debug to ReleaseSafe 20 of 20 on CPU 5 and 20 of 20 on CPUs 5,13, installed to ReleaseSafe 20 of 20 on 5,13 and 19 of 20 on CPU 5, the one failure another cause, the product's (the next change: the session read its start path after the new build was installed there, "Upgrade: …/bin/pardes (deleted) would not start") Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | | | * tests: pair_exec_reaps keeps its evidence at a failure, and a client gone ↵Gabriel Schneider5 days
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | before the new build says so: the row ("a pair's client exec'd at its session's Upgrade still reaps it at Exit", test/daemon.py, run by every `--upgrade`) failed in three gates this week (Debug to ReleaseSafe: "drawn again" not in 30 s, twice; installed to ReleaseSafe: `exe_of` reading /proc/PID/exe of a process already gone, a bare FileNotFoundError) and kept nothing; now any failure of it (a wait run out, an assertion, an OSError, an EOF, a timeout) keeps what `upgrades` keeps since the upgrade agent's `keep_evidence` (.scratch/daemon/kept/pair-exec-<time>-<pid>: the client's terminal bytes, its exit status and where each thread waits, the session's screen and /log over 9P, `pardes --ps`, the crash file, the session's process) and names the directory in its words; `exe_of` reads a process gone or a zombie as running nothing (not an exception out of the wait), and `on_build` (the waits on a Popen child: this row, far_exec, pair_window_geometry) says at once that the child ended and with what status, not as a wait run out; on this base (pardes-m63-base), pair_exec_reaps alone (.scratch/sketch/reorg/pardes-pair-13/rx.sh, each run under a pty as the gate runs it, ONE heavy slot a batch) failed 12 of 80: Debug to ReleaseSafe 19 of 20 pinned to CPU 5 (load 3.6) and 20 of 20 to CPUs 5,13 (load 5.0), installed (5393ce743d78) to ReleaseSafe 15 of 20 on CPU 5 (load 1.8) and 14 of 20 on 5,13 (load 0.9); all twelve kept the same picture: the client alive on the new build, listed by `pardes --ps` as the session's client, its terminal left (the leave at byte 5596) and entered again (5661) with the notes drawn after the enter: the next change is the cause (the test's) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | | * pdf, build: the test of a PDF searched for what its page has not and asked ↵Gabriel Schneider5 days
| |_|/ |/| | | | | | | | | | | | | | | | | the sections it has not, and the C-backed addons' own Zig built with the checks a release keeps: on the installed ReleaseSafe build (4faf94b72b60) a session with docs/design.pdf open aborts at the keys `/zzqxv<Enter>` (a search for a pattern page 1 does not have: the page's job asks the bridge for its hits, pardes_pdf_search_page answers OK with quads NULL and a count of 0, and pdf.zig:762 slices the NULL: "attempt to use null value" on a worker, the whole session gone), and at `f` on test/pdf-fixtures/tall.pdf (no outline: items NULL, count 0, sliced in sections()); no Debug run ever saw either because a Debug build compiled pdf.zig and image.zig at c_optimize, ReleaseFast, without the checks; now core.zig's `addon_optimize` (ReleaseSafe in Debug, c_optimize otherwise) builds the two addons' modules (their Zig and their bridge's C) as the user's build does, MuPDF, FreeType, zlib and stb staying at c_optimize; the test (test/behaviour/addons_pdf.zig, through 9P: `/zzqxv` on design.pdf, its `:1:1` a miss, `f` on tall.pdf said to have no outline) fails in Debug with the abort at pdf.zig:762 (logs/t1-dbg-filter.log: 1/2, 1 crashed) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | * test/daemon.py, test/process: a shell's first pty/run asked once, at once, ↵Gabriel Schneider5 days
| |/ |/| | | | | | | | | | | its whole answer said when it is not what the row wants: `gui_upgrades`' setup failed twice this week on `int(b'')`, the answer never shown (it was `error not run`, the product's, the change before); now every first `echo $$` after a start is test/daemon.py `pid_in` (`exit 0` and a pid, or an AssertionError naming the pane and the answer whole), which replaces `adopted_pid` and the waits that stood in for the product's (a `true` run again until it answered `exit 0`): manage and relink (a session's Term), relink, answer_late, main, upgrades, upgrade_clients and gui_upgrades (a session's first terminal), upgrades (the run after the fallback, the fresh session's terminals), and the four adopted shells (relink, answer_late, main, upgrades); clients' first run in its new Term checks its answer; test/process: terminals.zig's `prompted` (a `true`-until-`exit 0` loop) deleted, sized's first run (`stty size`) asked at once, runFile's `while busy` loop ("deadline its first prompt": the greeting's `ls`) one run that must answer `exit 0`, look_and_exec.zig's `true`-until-`exit 0` loop one run; kept: terminals.zig's wait for a restarted shell (a run written at once can still reach the shell being replaced) and look_and_exec's for the shell back after `cat`; with the product change before: tui process-test 0 of 146 (load 6.2), test/daemon.py on ReleaseSafe plain 1/1, `--upgrade` from the installed build 1/1, `--upgrade --gui` from the installed build 5/5, `--relink` 20 of 20 (on the installed build 18 of 20 (two `error not run` on the adopted shell), each failure `AssertionError: pane 3: `echo $$` answered b'error not run\n'`: what adopted_pid's wait hid) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | integration (a base for the next rounds, not yet the gathered line): a ↵Gabriel Schneider5 days
|\ \ | | | | | | | | | | | | | | | | | | join's dump with its digest on the one decision: pardes-m62-base (`lkzwnmls`: pardes-merge60 + pardes-one-decision) and pardes-dump-digest (`rwmqumpw` on `oyournly` on `ollusskr` on `xsutplvu`, on pardes-m60-base: a join's digest is taken with its dump (`dumpJoin`), which makes no host call: a 9P request served in a dump's gap no longer leaves a client refused its own load; the hand-walked types listed with the tests that join over each; a refused load names its field); no conflict; core-test 924/1088 (164 skipped), shell-test 1130/1133 (2026-11-23) Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * | test/daemon.py `upgrades`: the row's last Exit by `exit_session`, and the ↵Gabriel Schneider5 days
| | | | | | | | | | | | | | | | | | | | | fresh start's shell check says what it saw: the dump-digest gate's one-CPU upgrade rows (30 runs on its own builds, every run past the rejoin that fault D failed) failed twice at steps with no join in them: self-9 at the row's end, its Exit written by a bare `client.write`, answered, and its clunk cut by the exit it asked (EOFError: 9P peer closed the connection), the race `exit_session` (test/daemon.py:209) already takes for every other mode's Exit; back-16 at `assert alive(shell_pid) and ppid(shell_pid) == session` after an Upgrade every build refuses (a fresh session adopting the shell), a bare assertion: its kept evidence (kept/upgrade-20261123-024622-1894745) has the shell alive and listed as the session's afterwards, but not which half was false at the moment; now that assertion names the shell, its parent (false when not alive) and the session; on this tree (the same builds) the one-CPU rows: ReleaseSafe to Debug 20 of 20, Debug to ReleaseSafe 10 of 10 (loads 0.6-8.1) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | | integration (a base for the next rounds, not yet the gathered line): the one ↵Gabriel Schneider6 days
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | decision on the tree to install: pardes-merge60 (`krovvoum`: the viewport, a client's way back at an Upgrade, the pair's round 12, the lanes on the glide; in its whole gate) and pardes-one-decision (`ltvyvwru` on `wllwukuk` on `trmpwtso`, on pardes-viewport: one count of an emulator's writes in the core (`Pardes.outside`), copied, digested and dumped, which `Replica.confirm` reads once a unit where four spread checks stood; the rollback copy walks every type unless it declares `outside_copy`: the Changes layer's heap was not walked and was freed twice); no conflict; core-test 919/1083 (164 skipped), shell-test 1125/1128 (2026-11-23) Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * | replicas: one decision a unit, by one count in the core ↵Gabriel Schneider6 days
| | | | | | | | | | | | | | | | | | | | | (pardes-term-join-11, item 2; P54, the coordinator's lean, held against the code first): `Replica.confirm` asked one question four ways from three sources ("did applying this unit write state outside the rollback copy, an emulator?"): the speculation's own observation (`Pending.terminal` from `Tape.touched`, set by `touchTerminal` at a grid it owed and at every READ of a terminal's rows), the unit's records (`tape.feedsTerminal`), a process-wide counter (`Term.writes`, seven increments, shared by every side of the soak's one process) and a dead read (`read_terminal`, always false); round 10's predicate over the records failed because no record names the unit whose `sync` reflows a grid, a load or a teardown; now the core counts its emulators' writes itself (`Pardes.outside`, a `Term.Outside`): a field, so copied with a speculation, digested and dumped, a function of the tape, the same on every side; every write of the `calls` table's WRITE rows takes it first and counts (core/Term.zig `open`, `close`, `revive`, `reload`, `feed`, `resize`, `endOutputHere`, and `replies` when it drained any), a comptime block fails the build if a WRITE row's entry does not take it (the compiler holds the call sites; S1's `calls` test holds that a new write is listed); `resize` owes under a speculation (counted, not made: the grid's guard moved there from panes.zig `resizeGrid`); a load sets it (the walk loads the field; `dumpRead` counts nothing); the one read in `confirm`: on the fast path the count's movement over the input's speculation (`Pending.outside`, a number, equal to the unit's by the path's premise: moved, the unit is replayed once on the confirmed core), on the replay paths its movement over `replayUnit` on the core that applied it (moved over a copy held ahead, the copy goes), and on the neutral path no read at all: the session's digest after the unit holds the count, so a unit that wrote an emulator never ends where it began (`feedsTerminal` deleted with its one use); the predicted echo is judged at every unit that moved it; DELETED: `Tape.touched`, both `touchTerminal`s and the read-touch in edit.zig `shellRows` (a read writes nothing outside the copy; on the one road a speculation reads the confirmed emulator), `Term.writes` and its seven increments, `feedsTerminal`, `read_terminal`; where the lean does not stretch, said and not built: a picture's pixels, a kind's state and the Store's closed list are written BY a speculation, so the fast path must let the copy go, not replay: `panesMoved`, the serials and `retiring` stay for them; the dump changes (a core field): the wire stays at 31 (its history line says so); tests: the existing path tests green (fast, neutral, ahead, owed grid, "a view that sized a terminal closing leaves nothing queued ..." among them); new: a session's reflow of a terminal's grid over a copy held ahead is the count's to decide (a unit with no output record: the copy goes, a rollback does not reflow again), and the count digested (one side's emulator written outside any unit, a colour set no other digested field shows: `partsApart` names `outside` alone); core-test 917/1079 (162 skipped), shell-test 1121/1124 (3 skipped), the gate below Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | | integration (a base for the next rounds, not yet the gathered line): the ↵Gabriel Schneider6 days
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | pair's round 12 on the viewport's line with a client's way back: pardes-m60-base (`pyquvrsv`: pardes-viewport + pardes-upgrade-back) and pardes-pair-12 (`mlutslkp` on `ntlpyokw` on `zsquynqy` on `wowqsyxt`, on pardes-raw-tty: a 9P request that changes the core waits for the pty output read before it (`Turn.awaitOutput`: pagercolor's cause on both paths); a pair's client takes the tests' clock; the pair rows name the side that went; the soak with a pair among its sides); no conflict; core-test 918/1078 (160 skipped), shell-test 1120/1123 (2026-11-22) Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * | replicas: the soak with a pair among its sides (`--pair`): client 0 is the ↵Gabriel Schneider6 days
| | | | | | | | | | | | | | | | | | | | | session's pair client, as a terminal's `pardes` is under the variable (runtime/main.zig `pair`): its socket pair made before the session, the session's end its first client (`Soak.options`: `o.pair`, joined with `.own` before the first effects by runtime/session.zig), its size the session's, no dial and no own typist (nobody else draws the session's view: `watchedHost` false), and its replica's core its own boot (`Soak.booted`: `Replica.initBoot` with the options the session starts with, as `replica.ownBoot`), kept when the welcome's digest is its own (`confirmBoot`'s rule) or else the session's dump loaded and the FIELDS of the two cores that differ printed and counted unequal (the one place a client's core comes from no dump: where the coordinator's merge57 gate saw a pair's first quiet check differ once on ReleaseSafe); a line per rtt says the boots and how many were not the session's core; three runs of `--clients 5 --pair` (Debug, loads 1.7-8.5): diverged 0 and unequal 0 at 30, 80 and 207 ms each, the pair's client booted its own core 36 times and every one was the session's at its join (no field named: none differed), quiet checks 988/0 933/0 959/0, 1327/0 1112/0 1063/0, 1076/0 1064/0 987/0, unlisted stops 0, the corpus through a client 22 of 22 scenes the same, no leak; so the merge57 gate's pair `differ` is not a boot's in Debug (not run on ReleaseSafe) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * | daemon.py: pair_rows' last row says which side went when "a Detach with no ↵Gabriel Schneider6 days
| | | | | | | | | | | | | | | | | | | | | daemon is refused" fails (the client, the session, or both; the client's exit code; whether the session lives; the client terminal's last 600 bytes, its last screen and words: a pair's session writes no log), as merge58's ReleaseSafe plain run 2 of 3 failed there saying nothing; not reproduced as it is (this tree's ReleaseSafe, pair_rows alone: 20 of 20 pinned to two CPUs, 20 of 20 to one); widened by an experiment (the lone pair's client put off the session after its third unit, PARDES_TEST_DIVERGE=3) it fails with those words and now says "the client and the session went (client exit 1, session gone)", the client's last words "'lone' let this client go", its screen showing the Detach refused just before: the Detach is refused as it should be, and what ends the editor is the client letting its link go (a divergence, or 2 s behind) and its rejoin through the daemon's replica socket failing (no daemon keeps a PARDES_DAEMON=off pair), then the session ending with its last link (runtime/session.zig): the product's, open (a ruling: a link with no way back kept through a lag; a divergence there has no remedy without a re-dump over the same link) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | | integration (a base for the next rounds, not yet the gathered line): a ↵Gabriel Schneider6 days
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | client's way back at an Upgrade on the viewport's line: pardes-viewport (`llpwyqul`, on pardes-tj11-base: where a view stands in a terminal's history is the view's, the wire at 31; in its whole gate as merge59) and pardes-upgrade-back (`krqkqlyo` on `kryvuotu` on `vlmyrllp` on `qltlrpvu`, on pardes-raw-tty: a client no longer gives up while its session says it is upgrading; an old build's client that comes back early says bye with `again`, the view kept for it not closed; test/daemon.py keeps the evidence of a failed upgrade and reads a far client's environment once its new image runs); no conflict; core-test 917/1077 (160 skipped), shell-test 1119/1122 (2026-11-22) Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * | test/daemon.py far_exec reads the far client's environment once its new ↵Gabriel Schneider6 days
| | | | | | | | | | | | | | | | | | | | | image runs: it read /proc/PID/environ as soon as /proc/PID/exe named the new build, and the kernel's exec switches the process to the new image before it writes where the environment is, so a read between gets nothing and the assertion said PARDES_REPLICA_FAR=1 was lost (the install check, 1 of 2; the pair's agent under --with-pair); a client's exec at an Upgrade has one site (runtime/client.zig `execAgain`, from dev/tui/tui.zig and dev/gui/gui.zig) which always adds the variable for a far client; a fork and exec of the release pardes read as the test reads: 170 of 200 execs read the new exe with an empty environment on two CPUs, 0 of 200 on one; far_exec alone on two CPUs before 20 of 20 (the 10 ms poll rarely lands in the window), after 20 of 20; now read after "the terminal entered again" Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * | test/daemon.py: `--upgrade` keeps what a failure leaves: at any failure of ↵Gabriel Schneider6 days
| |/ | | | | | | | | | | | | `upgrades()` (`keep_evidence`, in .scratch/daemon/kept/upgrade-<date>-<pid>/, its path in the error) each terminal's bytes, its client's check file and stats (PARDES_REPLICA_STATS now set for the two clients of the build running), its process alive or not and where each of its threads waits (`where_waits`: state, wchan, syscall, fds), the session's screen and /log over 9P (dialled with its timeout), `pardes --ps`, the crash file and the session's and daemon's processes; the rejoin step says which client was not back and when the session was (its pass line when each came back), the kept-views step names the join before its assertion; the gate's upgrade-back row (release to Debug) had failed 2 of 6 at "the client joined again" keeping nothing of the clients (merge51, merge57); the first natural failure kept (one CPU, both builds fixed for the next two changes) showed it: client f gone, its last line "the session's dump loaded as another session (a build's dump is not complete)", the session back 0.3 s after the Upgrade, client e joined again Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | integration (a base for the terminals' next round, not yet the gathered ↵Gabriel Schneider6 days
|\ \ | |/ |/| | | | | | | | | line): the viewport in the view and the patches in the semantics hash on merge58 with the terminal put back: pardes-raw-tty (`muwnrqro`, on pardes-merge58: a TERM that reaches a session while it leaves its terminal no longer leaves it raw: `Killed.disarm` puts the cooked modes back itself, `leave` calls it last) and pardes-term-join-10's two changes (`xktusoyq` on `qtxssxyk`, on pardes-term-join-9: where a view stands in a terminal's history is the view's (`Pane.scrolled_to`), carried once a confirmed write that moves rows, the wire at 31; build/patches hashed into a replica's semantics); no conflict; core-test 917/1077 (160 skipped), shell-test 1119/1122, pane-test 182/183, term-test 16/16; NOT gated whole: the viewport's gate had one perf count over its budget ("terminal on all" +0.235%), which the next round brings down before this is the gathered line (2026-11-22) Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * terminals: where a view stands in a terminal's history is the view's, not ↵Gabriel Schneider6 days
| | | | | | | | | | | | | | the emulator's (pardes-term-join-10, item 1; the note's point 3, the coordinator's choice): `Pane.scrolled_to` (core/panes.zig), a per-view field (views.zig `pane_fields`, `PaneView`: in the rollback copy, the digest and the dump, each view's own), the row its top shows or null on the output, written only by a step (`scrollBy`, `followOutput`), and carried with every open view's through each write of the emulator that moves rows, once, in the confirmed unit's apply, on every side alike (`Term.feed`/`Term.resize` take the places; core/term/terminal.zig `carry`/`carried` pin each place's row on the primary screen and read the pin back: up by the rows the history drops, 0 when its own row goes, null in the active area or after a reset: a function of the fed bytes); the draw reads the rows from the view's place (`viewport`, `paint`, `ImagesAt.place`, terminal.zig `shown`), and ghostty's own viewport is never moved, read, digested or dumped (`Grid.offset`/`view`, `Parts.view` and the digest's offset gone): two clients no longer scroll one viewport (the new views.zig test failed on the base, `expected 80, found 77`), and a speculation's scroll is in the copy, so `putViews`, the view half of `keepViews` (now `keepSerials`), `viewTo`/`scroll`/`follow` (ops, wrappers, bodies), the Debug screen hash's view exclusion, `reflow`'s column-0 cure and `feedOutput`'s follow-after-read are deleted, and S1's `calls` lists no view write (the rows `viewTo`, `scroll`, `follow` gone); tests: the two-view test (with a dump), the place at the history's cap (`setMaxBytes(1)`), a 300-seed fuzz of the carried place against ghostty's own pinned view, a client's wheel over a shared terminal through output and a rollback, round 6's order explorer (30 seeds a run); the wire at 31 (abi/wire.zig, test/daemon.py `WIRE`): an installed build's dump loads with every view on the output; IN THE WORKSPACE core-test 912/1072 (160 skipped), shell-test 1114/1117 (3 skipped), term-test 16/16, kitty-test 45/45, pane-test 181/182, behaviour-test 275/275, --replay 275/275, process-test 0 of 146 failed, as pairs 0 of 146; gui unit-test 1707/1711, its one error BaselineHarnessMismatch (every base's) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | tty: a TERM that reaches a session while it leaves its terminal (a quit, a ↵Gabriel Schneider6 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 Schneider6 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
| * replica: an addon's landing is on the tape, and a client on the session's ↵Gabriel Schneider7 days
| | | | | | | | | | | | | | machine runs a kind loaded by path from that path while its bytes are the session's (P51): `Addon load <path>` typed in a session with any client attached parted every client (core/Effect.zig ran `Addon.perform` inside the core's pump entry, where the nested `update(.addon)` is no recorded input (core/tape.zig `enterInput` records none on the core's side) and a replay skipped the perform: the session's core took the kind, no client's did); the perform is now a recorded value call of the core's (`p.tape.value(.landing, Addon.perform, ...)`, `Site.landing` at the end of the tape's sites: the tape's shape and so `wire.semantics` change, the wire's version does not), its event recorded inside it and applied by a replay, a speculation waiting for the session's (`authorityOnly`); and `Addon.plainOps`, after a client's own addons, reads the library at the kind's path (its own copy, head and init as a load's) and runs it when its BLAKE3 is the one the session lists, else lets it go and the pane shows the kind's line, which now says so (core/Kind.zig `draw`); nothing is fetched over the link and no bytes the session sent are run; test/panes.zig: a session's `Addon load` of the image addon at a temporary path lands on its in-process client with no divergence (it diverged before), the client's picture pane runs the kind's code from that path (it fails with the path load taken out), and a client joining after the file was written over (one byte more) shows its line; the corpus through a client window (PARDES_PAIR, terminals by bytes) now runs to its end, 77 frames, 68 byte-identical to tree3's (63 the veil, 64-65 the snake loaded and its first frame, 75-76 the 2x display), 66-74 the snake's own pictures four animation steps ahead (the session's clock, not a client's: the same in two runs); the own window through the same prefix 77/77 Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * pair: a pair's session puts the user's terminal back when its client dies ↵Gabriel Schneider7 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 pair's session lists as a window's (P49): the `pardes` a ↵Gabriel Schneider7 days
| | | | | | | | | | | | | | window execs with `--paired=FD` is only ever a window's pair's session, so it registers as `gui` (runtime/main.zig), with no word at the join and the wire unchanged; test/daemon.py: window-clients lists it `listed_as('has a frontend', 'gui')` (under the variable a pair is listed by its kind alone, P36) and ends by name the window session a terminal client's Detach kept (P36) once its window closes; gui_pair's two `(tty)` for the window pair's session are `(gui)`; gui() reads the session's pid from its /status (the window's child as a pair) and asks that process whether it carries on; with the variable window-clients and gui pass on Debug and ReleaseSafe Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * pair: PARDES_TERM_BYTES (a working name) puts a session and its clients on ↵Gabriel Schneider7 days
| | | | | | | | | | | | | | the terminals' second road, the pty's bytes in the units to each client's own emulator (`Peers.bytes`), which only the soak could take (`--bytes`): the session's `Peers` is made with `.bytes` set (runtime/session.zig), every joined replica, a dump's or a pair's own boot, is turned to its own emulators as the soak turns its clients (core/replica.zig `takeJoined`: `screen_state` false, no predicted echo), and the process harness keeps the variable in a case's environment as it keeps PARDES_PAIR (test/process.zig `Child`); a client started without it against a session with it diverges: for the corpus through a pair's client window, not for a user (the switch for real clients is the terminals' line's); with it the corpus as a pair (PARDES_PAIR, a client window) is byte-identical to tree3's through frame 57, the kitty image in a terminal's pane (frame 50) included, where screen state diverges the client; frames 58-59 (WindowOpacity) differ and frame 61 (Font) never idles: only the own window applies or answers either (dev/gui/gui.zig `pollFrame`), a client window never does, and a window pair's session is the tui binary beside it; core/root.zig's machine_lines counts replica.zig's new getenv (76); core-test 896/1056, shell-test 1098/1101 Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * test/daemon.py: every mode can run as a user who exported PARDES_PAIR ↵Gabriel Schneider7 days
| | | | | | | | | | | | | | (`--with-pair` before the mode: `base_env` sets it in every process a mode starts, in place of 26 identical environment lines), and what the variable changes by P36 is expected so (`listed_as`: `--ps` lists a session born detached, or Detached in its own frontend, as `kept`, a tty launch as a pair `(tty)`; manage's machine records `tty kept`; the gui mode waits for the second window's pid to go, a pair's own window being a client too); `restore_client` follows P44 (a Restore's replica client is told and joins again by itself, nothing said in its terminal, its keys reach the restored core and it agrees; the 9P connection is cut and dialled again; a second attach after agrees); with the variable (Debug and ReleaseSafe): clients, far, restore, attach-upgrading, pair, games pass, manage and launch pass, relink fails on ReleaseSafe at the adopted shell's `echo $$` (the known flake pardes-rows' `adopted_pid` fixes), window-clients and gui fail on the window pair's session (listed `tty`, the window's child), upgrade fails reading a pair's session screen over 9P (reports/pardes-pair-8.md, item 3); `--restore` without the variable passes on both builds Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | pty: a shell forks at its pane's grid, and the core hands its host every ↵Gabriel Schneider6 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
* | daemon.py: a terminal read after its writer ended waits for its last bytes, ↵Gabriel Schneider6 days
| | | | | | | | | | | | | | kept_views waits for the session to take the goodbyes it races, and far_flood keeps its evidence (pardes-term-join-9, item 1 (b), (a), (c)): `Term.last` reads a terminal's text once nothing waits on its master (FIONREAD, read under the reader's lock, which now reads and keeps in one hold) and nothing more came for 0.1 s, and the four reads that followed an exit or an event seen elsewhere at once use it (clients' detach words, the failing row R-plain-2 at load 7.6; a killed stub's put-back; "let this client go" not said, a negative that passed early; the old build's replica told to upgrade too); kept_views dials again until a refusal says a view is kept (two raw replicas' byes reach the session on their own connections and the next join through the daemon, in no order the session could keep: D-plain-3 and R-plain-1 of round 8) and waits the seconds that refusal states, not a fixed 31 from before the goodbyes were taken; far_flood copies the far client's check and stats files, its terminal and every process's threads with their wait channels beside its root at any failure (R--far-6 of round 8, not reproduced in 13 runs since, went with its root) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | tape: no screen-state branch left, and a terminal's kitty images are each ↵Gabriel Schneider6 days
| | | | | | | | | | | | | | side's own emulator's again (the old road's deletion, piece 6 of 8): core/tape.zig loses `Tape.screen_state` and every branch on it (a terminal's output recorded without its bytes, the positions and prompt checks skipped, `screenReplica`, `screenAuthority`, `screenState`, `viewOnly`, which on the one road did nothing), and the tape site `images`; core/panes.zig its replica branches (a feed skipped and the session's positions taken, a view's scroll or follow noted, a resize left to the authority, the reloads at a join skipped); core/Term.zig a terminal's digest that returned early under screen state, and the medium read that went past the tape; core/dump.zig a join's dump always holds each terminal whole (`slim_terminals` stays for the exit dump); the tests' `t.screen_state = false` lines (4 in core/replica.zig, 3 in test/replicas.zig); THE IMAGES (the brief's choice): `Pane.term_images` and its taped read after each output (pardes-image-loop's cure for a screen-state client, whose emulator never held an image) go, the tag reads `Term.hasImages` again (core/tagline.zig), and a terminal's digest holds whether it has an image (core/term/terminal.zig `digest`: one bool among its facts), so the fact the tag shows is covered by the digest it is computed from (S1's rule) rather than by a pane field copied after each output, and a parting over it is named at the terminal; abi/wire.zig's line for 30 says so (the dump's shape changed with it); the image-loop's test runs on the one road (the client's emulator has the image, its tag says what the session's does); core-test 911/1068 (157 skipped), shell-test 1110/1113, term-test 15/15, pane-test 181/182, kitty-test 45/45, the soak's small run and `--echo` rc 0 (diverged 0, unequal 0, corpus 22) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | term: screen_state.zig deleted, and the terminal module's side of the delta ↵Gabriel Schneider6 days
| | | | | | | | | | | | | | road (the old road's deletion, piece 5 of 8): core/term/screen_state.zig (1,213 lines: the encoder, tracks, peers' flights, a replica's apply and holes, its own soak and four tests) goes whole; core/term/terminal.zig loses `encode`/`encodeRows`/`encoder`/`encoderFree`/`track`/`untrack`/`replica`/`replicaFree`/`replicaTop`/`missing`/`apply`/`applyRows`/`shown`/`blank`, `takeMarks` (`marksOf` stays, private: the tests compare two terminals by it), the State's `changes` (a version's counter for the tracks), `read` with `markRead`/`wasRead`/`clearRead` (the rows a step read, for the fills), and `resize_to` with `resizeDeferred` and `resize`'s `later` (screen state's authority sized its terminals after a step's unit); abi/term.zig loses the `Encoder`/`Track`/`Replica` handles, `flight_bound`, `Peer`, `Applied` and those entries of `Ops` (and `dumpScreen`, which nothing in the core called); core/Term.zig its wrappers; core/term/term.zig its ops, its handle map and its `screen_state` export; core/panes.zig its `resizeDeferred` and resizes now (its later screen-state lines go in piece 6); core/edit.zig its `markRead`; the cell-for-cell dump the soak compares a client's terminal with its session's by moves to terminal.zig (`dumpScreen`, over the emulator), the soak's three streams (a shell's, a full-screen program's, `yes`) into test/replicas.zig, their one user; test/terminal.zig loses `a replica's terminal pane draws as its authority's does` (a delta's) and `a terminal made fresh has no size waiting` (`resize_to`'s); core-test 911/1068 (157 skipped), shell-test 1110/1113, term-test 15/15, pane-test 181/182 (again after the machines reboot, on a wiped cache), the soaks small run and `--echo` rc 0 Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | replica: no road to choose, and the wire at 30 (the old road's deletion, ↵Gabriel Schneider6 days
| | | | | | | | | | | | | | piece 4 of 8; the coordinator's decision: the welcome's road byte goes, no dead field stays on the wire): `Peers.bytes` (set by runtime/session.zig unless PARDES_TERM_SCREEN), the welcome's `bytes` byte (abi/wire.zig: its encode, its decode, the round-trip test's byte), `Joined.bytes` and `joinOn`'s copy of it, `road` (fromDump's, ownBoot's, confirmBoot's, a test's: a replica's `made` arms its echo already, and no replica starts on screen state since piece 3), and ownBoot's read of PARDES_TERM_SCREEN; so PARDES_TERM_SCREEN and PARDES_TERM_BYTES name nothing in the tree; abi/wire.zig's version is 30, its history line saying both of this line's wire changes (the screen messages retired as gaps in piece 3, the welcome's byte here); test/daemon.py's `WIRE` 30; firstOnPair's argument is now what it chose, `by_dump` (a client joined by the session's dump, or one that makes its own core); core/root.zig `machine_lines` for replica.zig 74 -> 73; core-test 911/1068 (157 skipped), shell-test 1110/1113 Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | 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
* | daemon.py: the way back's word gone from the harnesses, and far_flood says ↵Gabriel Schneider6 days
| | | | | | | | | | | | | | what a far client does under a flood on the one road (the old road's deletion, piece 2 of 8): test/daemon.py's `KEEP` (PARDES_TERM_SCREEN passed to every session it starts) and test/process.zig's twin go, so the caller's PARDES_* is dropped as before the flip; far_flood's words were the old road's ("it pulls its terminal's screen (screen state), so the flood does not queue for it"): on the one road the flood queues for a far client, it falls behind past replica.behind_max_ms, its link is let go (`Link.lags`) and it joins again from a dump, its notice saying "joined again: N s behind" until a key (round 7's table: a 1 MiB `cat` through 1 Mbit, one rejoin of 2.2 s); the case now asserts that shape and no time: a link of the client ended under the flood (its PARDES_REPLICA_STATS line, one a link), its notice, then as before its agreement once `yes` ends and its keys after; kitty_image's docstring loses "(screen state)"; no build reads these files' change but process-test's runner (core-test and shell-test: the base's) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | soak: ONE soak, the pty's bytes' (the old road's deletion, piece 1 of 8, the ↵Gabriel Schneider6 days
| | | | | | | | | | | | | | user's ruling of 2026-11-22): test/replicas.zig loses its screen-state mode and `--bytes` stops being a flag (its clients' terminals are always their own emulators fed the units' bytes, the session's Peers.bytes set): gone are the screen_down/screen_up messages, the `deltas wrong` check (screens_checked/screens_wrong/resets and the session's version-to-screen record, `flushed`, `versions`), the delta and fill counters (deltas, delta and filled bytes, rows fetched, encode and apply times: the terminals' table is now a peer's unit bytes a second under the flood), `flushAll` and the delta half of `sendUnit` (the old in-process rig), and the `--screen-state <dir>` encoder soak (`screenState`, `encodeBench`, `floods`); kept on the one road: the quiescence check that every client's terminal is the session's cell for cell and its kitty images pixel for pixel, the witness (it never held screen messages), the image and kitty-answer checks (unconditional now), the join in the middle of the flood (client 4 at the flood's start + 100 ms, always), and `--echo`, rewired to the bytes road (Authority and Replica of the bytes kind, the echo armed by hand as a joined client's is; a key's echo seen when the client has fed the authority's unit after the one before its echo: `unit_before`, `fed`), its gates the same (diverged, unequal, secret frames, vim predicted, drawn wrong) less `screens-wrong`; the diff, plumb and corpus cases made on the bytes road too; the one soak is `zig build replicas -Dplatform=tui ... -- --clients 5`; checked: `--echo --seeds 1 --rtt 80` (rc 0, 0 diverged 0 unequal, 7.3 ms p50 with prediction against 105 ms without) and `--seeds 1 --steps 30 --clients 3 --rtt 80` (rc 0, diverged 0, unequal 0, unlisted 0, corpus 22 scenes, diff and plumb the same); core-test and shell-test do not build this file (the base's 911/1075 and 1117/1120); -424 +71 lines Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | terminals: every client's terminals by the pty's bytes, the one road (the ↵Gabriel Schneider7 days
| | | | | | | | | | | | | | user's ruling of 2026-11-22: "just start the structural fix"): a session's units carry its ptys' bytes and each client feeds its own emulator in the tape's order (`Peers.bytes`, set by runtime/session.zig unless PARDES_TERM_SCREEN, a working name for the way back until screen state's road is deleted), and the welcome says the road (wire 29: one byte before `blobs`; test/daemon.py `WIRE`), which a client loads its dump on BEFORE its digest check (`fromDump`, join's and confirmBoot's one load, written twice before, and `road`): the pair's switch (`zwrkukrx`, duplicated here) checked a client's dump on screen state and turned it after, so under bytes every `pardes --attach` to a session with a terminal was refused as "loaded as another session" (daemon.py:544 client C, a far client's first frame never drawn); the pair's own boot takes the road from its environment (its session is its child) and the welcome confirms it; the predicted echo stays on the one road: echo.zig's overlay was already drawn over the frame, only its arming (gated on screen state) and its retirement (a delta's version) were the old road's: armed whenever a replica has an echo, retired at each confirmed unit that fed a terminal (`Echo.fed`, the grid's active top), echo.zig's tests run on the bytes road (17/17 under the filter); the pump-lag test (a session's own step reading a terminal right after its output, in one pump, through `Peers`) passes here: there is no flush to be behind; test/process.zig and test/daemon.py keep PARDES_TERM_SCREEN (`KEEP`) for the way back's row; measured against screen state (reports/pardes-term-join-7.md, its table): typing at a far prompt 16 KB against 22 KB, a full-screen program 80 KB against 103 KB, a 1 MiB `cat` through 1 Mbit 607 KB and 5.2 s with one 2.2 s rejoin against 27 KB and 0.4 s, the echo predicted on both (10 ms at 200 ms RTT, 222 ms unpredicted); gated: core-test 904/1068, shell-test 1110/1113, term-test 19/19, process-test 0 of 145 and as pairs 0 of 145, the bytes soak 3 of 3 clean, daemon.py every mode on Debug and ReleaseSafe (--restore the base's), --upgrade from the installed build 3 of 3 and between the two builds both ways, --far whole 7 of 7 on ReleaseSafe, the frame and perf gate against tree3 PASS (77/77, corpus2x -0.053%, 121 counts within 0.1%, client cells within +0.045%), the cross-builds Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | a terminal showing a kitty image no longer parts a screen-state client from ↵Gabriel Schneider7 days
| | | | | | | | | | | | | | its session: whether the terminal holds an image is the session's fact, `Pane.term_images`, set at its output's step (core/Core.zig `.output`: taped under screen state, tape site `images`, the session's answer replayed on every client, whose emulator is fed cells and never has the image; read directly otherwise, every side fed the same bytes) and read by the tag (core/tagline.zig, for `Term.hasImages` of each side's own emulator, whose ` petscii:on|off` made the digested `tag_lead` longer on the session's side only: every quiet check differed and a plain attach joined again 3.2 times a second for as long as the image was there, the installed build too); taped and not a bit beside the cells because the step that computes the tag is the output's own unit, which a client replays before that pump's flush reaches it; wire 28 (a pane's new field in the join's dump and the digest, the tape's new site; test/daemon.py `WIRE`); daemon.py `--kitty-image` on Debug: 0 joins in 5 s, 3 of 3 (16 before); core-test 898/1060 (162 skipped), shell-test 1102/1105 (3 skipped), term-test 18/18, kitty-test 45/45 Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | tests: a plain client watching a kitty image in a terminal under screen ↵Gabriel Schneider7 days
| | | | | | | | | | | | | | state joins again for ever, caught twice: core/replica.zig "a terminal's program shows a kitty image under screen state: the client's emulator never has it, and its tag says what the session's does" (an Authority and a Replica, the image fed in the session's order, a step after: the digests part in pane 0.tag, pane 0.tag_lead and pane 1.cwd, the last an inherited cwd that walks to the terminal's pane; `partsApart` names them) and test/daemon.py `kitty_image` (plain mode's list, alone `--kitty-image`: a detached session, a plain attach, the corpus scene 10's 8x8 RGB image printed in its shell, the client's joins counted over 5 s, 0 expected: on this base's Debug build 16 joins, 16 of 16 checks differ; on the installed build (6d937cd125ca) the same 16, 3.2 a second, session 20-30 ms and client 50-70 ms of CPU, 80 KB to the client's terminal); shell-test 1100/1104 with this test the one failure, core-test 898/1059 (161 skipped: it needs a shell) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| |
| \
*-. \ integration: plain mode fixed, the narrow view rule and the soak's own ↵Gabriel Schneider7 days
|\ \ \ | | |/ | |/| | | | | | | | | | | | | faults on the gathered line: pardes-merge51 (`qqosnzwv`: the gate's three rows and the pair's round 6), pardes-pair-7 (`sxkkxomp`, on pardes-pair-6: a terminal's deltas are flushed to a client at its acknowledgement or reset: at the bound of 32 unacknowledged versions an acknowledgement freed room and sent nothing, so a client with no later step kept its old screen; the joiner takes the session's view only for a pair's first join or the first back after a Restore, a detached session's attach opens a view of its own as before; daemon.py's far waits for a refused client's words) and pardes-term-join-5 (`luxwtxlw` on `ozkpuuro`, on pardes-merge48: replica.may_wait lists a far client's Look of a directory and its walk stands in a directory's pane; the soak names a divergence's field at the mismatch only, says a session that ended before its run, and its typists end no session); one textual conflict, core/replica.zig Peers.join: the rows' clock advance at the cap, then the pair's narrow `own` and `ps.restored = false`: both kept; core-test 895/1055 (160 skipped), shell-test 1097/1100; its gate: .scratch/sketch/reorg/merge52, the numbers in PARDES.md (2026-11-21) Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | * soak: a client's divergence named without the trace, and four faults of the ↵Gabriel Schneider7 days
| | | | | | | | | | | | | | | | | | | | | soak's own that failed or cut its runs: (1) Named: at a client's FIRST mismatch only, its digest of every field (tape.digestParts, made pub with Parts and partsDiffer) and each terminal pane's screen digest without and with its view and its Grid are kept with the unit it parted on, and the witness, replaying the kept stream in its own core, names the fields and the terminals' content and view against its own at that unit: nothing more on the session's step or the wire (the trace's per-field digests hid the divergence in 19 runs); it named the bytes soak's divergence (b5-8, b6a-7, b6b-4, b6b-8, b6b-10): pane 0's terminal, content equal, VIEW one row lower on the client (0 against 1, 1 against 2), a terminal scrolled to its history's top; (2) Soak.watch: the soak's clock is a message's time and a message due before it stepped it back: 'integer overflow' (wa-1), now -|; (3) a session loop that ended before the run (runtime/session.zig: every client gone by a close, or core.quit) returned silently and lost the seed (merge49's bytes seed 1 at 207 ms): now said, with the last eight inputs drawn and who drew them, and the run failed (error.EndedEarly); (4) the script ended its own session: a Del of the last pane (nextEvent's command 8: now only while more than 3 panes are open, Soak.spare) and, by reading, Space then q (Exit; a typist's q right after its Space becomes r, Script.space) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * | replica: daemon.py plain from 2 of 3 failing on Debug ("the first terminal ↵Gabriel Schneider7 days
| | | | | | | | | | | | | | | | | | | | | drawn", the first of two attach clients never shown the shell's last line) to 10 of 10: a client's acknowledgement of a terminal's delta is followed by a flush to it (core/replica.zig `Peers.boundary`, the `.screen` arm: the boundary flushed at its unit and then took the clients' notes, so room an acknowledgement freed in a client's flight, 32 versions at most, sent nothing, and a client at that bound when the last output came kept an old screen until something else stepped; a user could hit it: the last lines of a fast output left unshown on a slow client); and the joiner takes the session's view only for a pair's first join (`Joining.own`) or the first back after a Restore (`Peers.restored`, set by `restoring`; the restored core has the one view), a detached session's attach opening a view of its own again as before `slxkptto` (the coordinator's lean: the wider rule was NOT (A)'s cause, which failed with the narrow rule alone 2 of 3); test/daemon.py `far` waits for the refusal's words through ssh instead of reading the Term the moment the client is gone; core-test 895/1055 (160 skipped), shell-test 1097/1100 (3 skipped) (+1 each: "a detached session's first attach opens a view of its own beside the session's; the first back after a Restore takes the session's"); process-test as a pair 0 of 145 (load 13), own path 0 of 145; plain on Debug 10 of 10 (loads 3-6), on ReleaseSafe 4 of 6, both failures answer_late's adopted `echo $$`, which pardes-rows' `adopted_pid` (ymvuluxr, not in this base) fixes Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | | integration: the gate's three rows and the pair's round 6 on the gathered ↵Gabriel Schneider7 days
|\| | | | | | | | | | | | | | | | | | | | line: pardes-rows (`xlmzqnnp`, on pardes-merge50: a view kept for a client's rejoin is let go after its 30 s in a session nobody types in: a join with every view open advances the clock on the tape before it judges, and its refusal says one is kept and for how long; the adopted shell's and the upgrade rows' tests wait for what they read) and pardes-pair-6 (`slxkptto`, on pardes-merge50: a pair's first client, and the first client of any session with no frontend, no client and no view kept, takes the session's view instead of one opened beside it; a size equal to the one held is no resize; a Restore tells its clients and they join again; a pair's client enters its terminal before its join: the process suite as pairs 1, 0, 0 of 145 with no golden changed); one textual conflict, core/replica.zig Peers.join: the rows' clock advance at the cap first, then the pair's `own` and viewFor(core, joining.view, own): both kept; core-test 894/1054 (160 skipped), shell-test 1096/1099; its gate: .scratch/sketch/reorg/merge51, the numbers in PARDES.md (2026-11-21) Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * | pair: the process suite as pairs from 8 of 145 failing to 0, no golden ↵Gabriel Schneider7 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
* | | test/daemon.py: `--upgrade`'s rows say what they need of the old build ↵Gabriel Schneider7 days
| | | | | | | | | | | | | | | | | | | | | instead of failing one run in a few: `far_exec` runs only where OLD's far client dials again when an Upgrade cuts its link with no last word (`redials_far`: PARDES_JOIN_SIZE in OLD's binary, the string of the change that brought that redial, pardes-pair-5's; the redial has no string of its own) and is skipped with a line from the installed build, whose far client took the cut for its session's end one run in five; `pair_exec_reaps` takes its mark before the Upgrade and waits for the blink (its screen left and entered again, the notes drawn after), as `far_exec` does: the mark taken after the client was seen on the new build missed a frame it had drawn by then (from the installed build 2 of 5 runs failed "drawn again" on pardes-merge50's release build and 2 of 5 on this line's, the same before the fix); after: far_exec 5 of 5 between this tree's Debug and ReleaseSafe builds, pair_exec_reaps from the installed build 6 of 6, `--upgrade` from it 3 of 3 Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | | test/daemon.py: an adopted shell's `echo $$` is asked once the shell answers ↵Gabriel Schneider7 days
| | | | | | | | | | | | | | | | | | | | | (`adopted_pid`, the wait plain mode's own Adopt had): on a ReleaseSafe build of pardes-merge50 `--relink` failed 3 of 10 (`relink` twice, `answer_late` once), each run answered `error not run`, not another pid: the adoption sizes the shell twice (dev/Ptys.zig `take`), it draws its prompt again, and a run sent into a prompt redrawn under it reads as not run (core/ninep/pty.zig `noteMarks`, its ponytail), which a faster build reaches more often; the same wait in `relink`, `answer_late`, `upgrades`' last Adopt and plain mode's; no product change: no output in another pane, a script's run told plainly that it did not run; after: `--relink` on this line's ReleaseSafe build 10 of 10 (loads 1.3-7.0) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | | replica: a view kept for a client's rejoin is let go after its 30 s in a ↵Gabriel Schneider7 days
|/ / | | | | | | | | | | | | session nobody types in, and a join refused meanwhile is told for how long: a wake by mail alone (a join, a client's input) moves no time (tui.zig `clockNow`), so in an idle session with a client in it the core's clock stood where it last moved and Core.openView judged the kept views by it forever (test/daemon.py `kept_views`, new, in plain mode: at the four views, two raw replicas leave saying they join again, and a join 31 s later, nothing typed, was refused on pardes-merge50); Peers.join now moves the clock (`advance` with the host's `now`, on the tape) when no view is free, before the views are judged, and its refusal says "(one is kept N s more for a client joining again)" while one is kept; test/daemon.py `upgrades`, from a build that keeps views with their time (`keeps_views`: `away_ns` in its binary), waits as long as the first join's refusal says, saying so, for the two views kept for clients that never return (the raw replica and the old build's client, refused by the daemon for its build); kept_views passes; `--upgrade` between this tree's Debug and ReleaseSafe builds 3 of 3 each way (each says "the join waited 30 s"), from the installed build 3 of 3 (it keeps no time: its views load already expired); the soak (--clients 5) diverged 0, unequal 0; core-test 893/1053 (160 skipped), shell-test 1095/1098 Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | integration: the pair's round 5 and the layers' round 2 on the gathered ↵Gabriel Schneider7 days
|\ \ | | | | | | | | | | | | | | | | | | line: pardes-pair-5 (`ssrtxkzx`, on pardes-merge48: a link an Upgrade cuts with no last word asks the daemon whether its session is listed still and joins again (`replica.cutListed`): an upgrade from the installed build carries its clients; a no-daemon pair refuses Restore in words (P42); /dev/tty opened before the pair forks; a TERMed or hung-up client dies of the signal; the process suite as pairs 13 to 8 of 145) and pardes-layers-2 (`myxnnquu`, on pardes-merge49: the click on path@rev tested, a revision read-only from 9P, Syntax off in a patch keeps the patch's colours); no conflict; core-test 893/1053 (160 skipped), shell-test 1095/1098; its gate: .scratch/sketch/reorg/merge50, the numbers in PARDES.md (2026-11-21) Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T