<feed xmlns='http://www.w3.org/2005/Atom'>
<title>pardes.git/test/daemon.py, branch main</title>
<subtitle>Pardes</subtitle>
<id>https://git.0x4200.cafe/pardes.git/atom?h=main</id>
<link rel='self' href='https://git.0x4200.cafe/pardes.git/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/pardes.git/'/>
<updated>2026-11-09T00:48:19Z</updated>
<entry>
<title>fix: test/daemon.py --upgrade --gui waited for a second view's frame in the session's own captures (caps/view-1), which no build writes since a session shows one frontend of its own: the second window is a replica client, opened as window_clients' second is (its own process and captures), and after the upgrade the session's window is drawn again while the old build's client window is let go and told to upgrade too</title>
<updated>2026-11-09T00:48:19Z</updated>
<author>
<name>Gabriel Schneider</name>
<email>gbrls@0x4200.cafe</email>
</author>
<published>2026-11-08T23:34:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/pardes.git/commit/?id=fb2b69bdbbf3cf33706989635ca3416b97667ea7'/>
<id>urn:sha1:fb2b69bdbbf3cf33706989635ca3416b97667ea7</id>
<content type='text'>
Co-Authored-By: Claude Fable 5.1 &lt;noreply@anthropic.com&gt;
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
</content>
</entry>
<entry>
<title>fix: test/daemon.py --upgrade's fds level counted the second terminal as a view of its own (its terminal and its stub's pipe, two fds) where it joins as a replica client today (one connection, let go at the exec and told to upgrade too): the session lost exactly its three replica connections (ss -xp maps each to its peer), so nothing leaked; the level takes one for a client and two for a view, and the redraw check accepts the client's word</title>
<updated>2026-11-09T00:48:19Z</updated>
<author>
<name>Gabriel Schneider</name>
<email>gbrls@0x4200.cafe</email>
</author>
<published>2026-11-08T23:31:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/pardes.git/commit/?id=aa278d5338a7776cfe4657b5eec9afd7adfaa823'/>
<id>urn:sha1:aa278d5338a7776cfe4657b5eec9afd7adfaa823</id>
<content type='text'>
Co-Authored-By: Claude Fable 5.1 &lt;noreply@anthropic.com&gt;
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
</content>
</entry>
<entry>
<title>kinds #40, rasters as bounded messages on the wire (§17.3 C): a placement over PA_RASTER_MAX is dropped at paint and said once, a kind's frame names its placements by key and their pixels cross before it as `raster` strips of at most 4 MiB over the rows its `src` shows (only those the peer was not sent with the frame before), the peer assembles them by name in a 64 MiB cache let go by least recent use but for what a Shadow shows, a frame naming one it lacks draws its cells and asks once for its pane again, the sender checks every message against wire.max_payload (Debug's panic, release's drop and log) and a reader names an oversized one (said on the client as it joins again, logged at the session) instead of reading it as the link's end, so kinds #21's byte budget goes; wire 23; and pdf.c lays out for a view with pictures over a glyph view until an input chooses (one layout until 7c), so the 110-column window of the stall's repro shows its page</title>
<updated>2026-11-06T23:00:43Z</updated>
<author>
<name>Gabriel Schneider</name>
<email>gbrls@0x4200.cafe</email>
</author>
<published>2026-11-06T21:31:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/pardes.git/commit/?id=3e1677f526baa02179c5646223f48b316e5152e0'/>
<id>urn:sha1:3e1677f526baa02179c5646223f48b316e5152e0</id>
<content type='text'>
Co-Authored-By: Claude Fable 5.1 &lt;noreply@anthropic.com&gt;
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
</content>
</entry>
<entry>
<title>kinds #16, replication: daemon.py's window case a PDF in a detached session with a window client turning its wheel (wire 22), and the soak's tree holds design.pdf, which its Find opens</title>
<updated>2026-11-06T14:19:44Z</updated>
<author>
<name>Gabriel Schneider</name>
<email>gbrls@0x4200.cafe</email>
</author>
<published>2026-11-06T09:24:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/pardes.git/commit/?id=f48973ef58ca64383517a2a2190809f9c8735dbc'/>
<id>urn:sha1:f48973ef58ca64383517a2a2190809f9c8735dbc</id>
<content type='text'>
Co-Authored-By: Claude Fable 5.1 &lt;noreply@anthropic.com&gt;
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
</content>
</entry>
<entry>
<title>client #3, wire 21: the views in the dump and the digest (client #1) are another replica stream, which the semantics hash did not see (it hashes the tape's types, not the core's), so a replica of the base could join and load a dump by names that no longer hold its views; daemon.py's Replica dials an older daemon again in its protocol (as across an Upgrade), and its Upgrade case, run from the base onto this build, takes the base's second terminal of its own being let go (its stub told, two fds fewer) and the base's client told to run the same pardes; gates: core-test 956/956, unit-test 1487/1488 tui and 1530/1531 gui, replicas ok, daemon.py main, --window-clients, --gui and --upgrade &lt;base&gt; &lt;this&gt; ok</title>
<updated>2026-11-06T07:13:33Z</updated>
<author>
<name>Gabriel Schneider</name>
<email>gbrls@0x4200.cafe</email>
</author>
<published>2026-11-06T06:54:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/pardes.git/commit/?id=3f4df1363d3051bf8c4665fdf4898d59ab365b27'/>
<id>urn:sha1:3f4df1363d3051bf8c4665fdf4898d59ab365b27</id>
<content type='text'>
Co-Authored-By: Claude Fable 5.1 &lt;noreply@anthropic.com&gt;
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
</content>
</entry>
<entry>
<title>client #2, one frontend a session: the daemon answers `other &lt;name&gt;` for an attach to a session attached already (as it did for one of the other kind), so a second `pardes --attach` or `pardes-gui --attach` on this machine is a replica client through the replica socket, the path a remote one takes; a session tells the daemon its clients (SO_PEERCRED on each replica socket, at every join and leave) and `--ps` lists `client &lt;pid&gt; &lt;command&gt;` under it; the tty's per-terminal Screens (Screen.create/drop/destroy, primary, its stub and Killed slot), the Poster and its `from` input, the Gui's window-fields swap (window_fields, GuiWindow, copyWindow, freshWindow, follow, route, openAnotherWindow, closeView, windowsOpen, closeOtherWindows, resumeWindows), drawOthers and every harness's extra terminals (snapshot.zig's `start ... views=N` and `view &lt;k&gt;`, e2e_harness's initView and drainOthers, PARDES_TEST_VIEWS in both frontends, the GUI feed's `view;&lt;k&gt;`, the monkey's --views) go; the pump draws the one view this process shows (views.shown), through drawOne when a client's input was the last; an Upgrade from a build that kept a second terminal of its own lets it go (its stub told it is detached) and closes its view; deleted: views.snap, views-term.snap and views-pan.snap with their goldens (the in-process second terminal they drove is gone; views.zig's unit tests keep the per-view cursor, layout, register, sizing, closing and panning behaviour, test/replicas.zig and the soak the views of clients); the two views.zig tests that drew through drawOthers draw through drawOne; daemon.py's second terminal is a client listed by --ps, typed into in both terminals, detached from inside and closed; its second window a client listed by --ps and closed; the reference and next-daemon.md say so; no golden changes; gates: core-test 956/956 both, behaviour-test 248/248 both, unit-test 1487/1488 tui and 1530/1531 gui, pane-test 171/172 both, snap all 102 ok, process-test 0 of 37 failed on both, hxdiff 19 and hxparity 6 mismatches (the base's names), hxgolf 0, replicas, addon-test, gui-golden and monkey-gui 0 of 1 failed, daemon.py main, --window-clients and --gui ok, soak local pass (differ, mispred, view_bad, lost 0)</title>
<updated>2026-11-06T07:13:33Z</updated>
<author>
<name>Gabriel Schneider</name>
<email>gbrls@0x4200.cafe</email>
</author>
<published>2026-11-06T06:20:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/pardes.git/commit/?id=4c2125ecf47588d33f9894c1fdf2833d0512f3b4'/>
<id>urn:sha1:4c2125ecf47588d33f9894c1fdf2833d0512f3b4</id>
<content type='text'>
Co-Authored-By: Claude Fable 5.1 &lt;noreply@anthropic.com&gt;
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
</content>
</entry>
<entry>
<title>digest: a blob of 4 KiB and up (a file's text, a register's text, a file's rows, an undo entry's bytes) is taken as its length, never its bytes, a text's revision saying what it holds, where it was hashed once and kept as a word by its address (walk.zig's blob words, from when no text was written in place): since the journal a session's edit writes its text in place, and since the change before a replica's does too, so the word went at every edit and the next unit's digest hashed the whole text again, 100 MB of it in a big file, on the session's step and the replica's; the words go with what kept them (walk.forget, wordOf, forgetAll, unhashed, makeWords, the bench's blob_words_on, memory.freeRaw's and unpin's forgets, File.edit's and grow's), and so does the join's hashing thread (replica.Peers' held, texts, hasher and rounds, joins, hashTexts, unhashedDone, the `hashed` note), which made the words of the texts a session never digested before a join's digest took them, its pins with it: a client is joined at the boundary its connection comes at; the semantics change, so the wire's version is 20 (a client of the build before is refused at its hello, as any other build's, and test/daemon.py's own hello says 20); a blob under 4 KiB is hashed whole as before, so a small text's bytes stay in the digest, and the replicas harness (test/replicas.zig) compares every file's text byte for byte at quiescence beside the digest; tests: walk.zig's 'a blob is hashed once and folded in as a word; one written in place is not its word, which a Debug build checks; a freed one's word goes' becomes 'a blob of 4 KiB and up is digested by its length, what it holds told by its keeper's revision; a smaller one by its bytes'</title>
<updated>2026-11-05T23:49:41Z</updated>
<author>
<name>Gabriel Schneider</name>
<email>gbrls@0x4200.cafe</email>
</author>
<published>2026-11-05T22:53:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/pardes.git/commit/?id=0d07182abfa2cb02c5351231af2f1e1a156a59af'/>
<id>urn:sha1:0d07182abfa2cb02c5351231af2f1e1a156a59af</id>
<content type='text'>
Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
</content>
</entry>
<entry>
<title>tests: daemon.py's upgrade from the build before counts the state file's fd: a session keeps its state file open (Db.zig) where the build before opened Recent's file for each use, so after an Upgrade from it the session holds one fd more, the state file's, and only that one may be (`state_fds`, a session's fds on `pardes.xitdb`); when the level is missed it says what the fds are open on (`links`), where it gave their bare numbers; `daemon.py --upgrade &lt;old&gt; &lt;new&gt;` failed here with ('fds', (13, 8), (14, 8), …) and passes</title>
<updated>2026-11-05T22:16:37Z</updated>
<author>
<name>Gabriel Schneider</name>
<email>gbrls@0x4200.cafe</email>
</author>
<published>2026-11-05T19:15:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/pardes.git/commit/?id=b3cf70c686d1505bc687cb1f0935959ffa5d119d'/>
<id>urn:sha1:b3cf70c686d1505bc687cb1f0935959ffa5d119d</id>
<content type='text'>
Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
</content>
</entry>
<entry>
<title>tests: a test session's state file is its HOME's, never the user's: the process harness's child (when it is given a root), daemon.py and soak.py leave XDG_DATA_HOME unset, as they set HOME, so a session's Recent and dumps go to the test's `.local/share/pardes/pardes.xitdb`; with the user's XDG_DATA_HOME passed on, the dumps a run makes (an Upgrade's `upgrade-&lt;pid&gt;`, the Dump cases) would go into the user's state file, which keeps the newest 32, and push the user's own out, where the `.dump` files a test wrote were only added beside theirs; nothing changes where XDG_DATA_HOME is unset, as on this machine</title>
<updated>2026-11-05T22:16:37Z</updated>
<author>
<name>Gabriel Schneider</name>
<email>gbrls@0x4200.cafe</email>
</author>
<published>2026-11-05T18:55:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/pardes.git/commit/?id=8de3d7b4719bddfd2c24a53e6db9278914c16410'/>
<id>urn:sha1:8de3d7b4719bddfd2c24a53e6db9278914c16410</id>
<content type='text'>
Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
</content>
</entry>
<entry>
<title>blob cache: a far client's blobs are kept in `cache.xitdb` (src/Db.zig's Cache, in $XDG_CACHE_HOME/pardes, else ~/.cache/pardes), a file of its own and never the state file (expendable, and up to a gigabyte): `blobs/&lt;hash&gt;` the texts, `seqs/&lt;hash&gt;` and `seen` (a sorted map, a number to its hash, the least recently used first) their order, `size` and `next`; a join's blobs are put in one transaction by the client's storing thread, with those it found there made the most recently used (a hit takes a new number), and at the client's end what it made since is put and the cache trimmed: past the cap (PARDES_BLOB_CACHE_MB, 1 GiB) the oldest go in one transaction and the file is compacted into `cache.xitdb.new` and renamed over it, where a directory of files was scanned, sorted and deleted from at each join; each use opens the file for itself (a database a thread, as xitdb asks), a text read back is hashed again (one kept wrong is a miss, and goes), and a file that is no database is started afresh; replica.zig's Cache (its directory, the hex names, put by rename, trim by scan) goes for Db.Cache; tests: replica.zig's 'a cached blob is hashed again as it is read: one cut short, corrupted, planted or longer is a miss, and goes' and 'the blob cache stays under its cap, the least recently used going first' are rewritten for the file (texts kept wrong under a hash through put, the order made by hits, and the file seen compacted), 'a blob cache that is no database is started afresh' is new, the far join test keeps its biggest blob wrong through the cache rather than a file, and daemon.py's far clients read the cache file's size, cut it short by hand where they corrupted files, and check the cap after a client's end where they planted junk files</title>
<updated>2026-11-05T22:16:37Z</updated>
<author>
<name>Gabriel Schneider</name>
<email>gbrls@0x4200.cafe</email>
</author>
<published>2026-11-05T18:20:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/pardes.git/commit/?id=1eae252b80ddab0a06574de700b6b2957d3b64fc'/>
<id>urn:sha1:1eae252b80ddab0a06574de700b6b2957d3b64fc</id>
<content type='text'>
Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
</content>
</entry>
</feed>
