summaryrefslogtreecommitdiff
path: root/runtime
Commit message (Collapse)AuthorAge
* colors, Core, Kind, lib: the old views deleted, now that no surface reads ↵Gabriel Schneider32 hours
| | | | | | | them (DESIGN.md B6, B8): `ChromeTheme` (its old fields, `view` and `resolved`) and the old names' view of every theme (`viewOf`, theme_schema's `toLegacy` and `Derived`), `readingOf` (the reading tint, gone with G1'), `separatorOf`, `focusTint`/`focusTintFloor` and their floors, `lerp`, the sRGB `mix`, and `Grounds` (the library's diff grounds: `Chrome`'s `add` and `del` say them; lib_syntax exports `Chrome` in its place); `Pardes.theme()` is the theme worn in the new names (`*const Theme`: a picker's preview, a theme file's, or the session's), read for its name; `chromeTheme()` is gone and `chrome()` is the one accessor (the session's chrome or a preview's, each a `Chrome` worked out at a theme change); a theme file is kept as the `Theme` it loads to (`custom_theme`), its old names read by the load-time loader, which STAYS (`LegacyTheme` and `Theme.fromLegacy`: the user's own one_dark_zed_mod.zon and an older DumpThemes' output load as before); Kind's page, ink, selection and link for a picture's or a PDF's raster from the chrome (R1: the page, never the tag, as a theme's page where it has none: dark's `null_page`; the link the page's key ink), the macOS shell's rules and page from the chrome and the theme's `page`; the source test (body_layer.zig's: no `theme()` read but its name, no `chromeTheme()`, `.roles`, `Grounds` or `LegacyTheme`) covers draw.zig, tagline.zig, Band.zig, Messages.zig and Kind.zig too, so a surface deriving its own colour cannot be written there (B6's bar); THE TESTS: the tests of the old derivations go with them, each held by the ring test on the chrome (every native's separators and focus tint, every faithful port's own chrome, a legacy document's derived roles, the old active name-tint precedence), and the rest read the new names and the chrome (a theme's own rule kept, the natives' text and UI roles on their own surfaces, their dark palettes, the quiet line numbers through a theme file, the column grips, the ThemeFile load and its old-names loader, Core's, Command's, panes', terminal's, output's and file_watch's theme reads, the library consumer's diff grounds through `Chrome`); RUN: the build is the test of a deletion (no reader left), the suites below; GOLDENS: none moved; GATES on this change, the stack's top (tui): core-test 1158/1332 (174 skipped: the 4 tests of the old derivations gone; the importer's 7 counted again after a cache wipe), shell-test 1373/1376 (3 skipped), pane-test 184/185 (1 skipped), behaviour-test 287/287 and --replay 20 seeds of 70 steps, 0 failures, process-test 0 of 149 failed (3 skipped; 0 of 103 moved with --update), term-test 17/17, kitty-test 45/45; gui unit-test 1984/1988 (4 skipped; its one failure the known BaselineHarnessMismatch; test/consumer's diff grounds through `Chrome` pass); the ring 245 of 245; the dump fuzz at 40,000 join seeds twice and 1,779 image seeds 11/11 (custom_theme, a digested field, is a Theme now); the soak (replicas, 5 clients, rtt 30,80,207): diverged 0, unequal 0, quiet checks 365/0 451/0 622/0, unlisted stops 0, the corpus 22 of 22 scenes the same, no leak; load 1.3 to 15.6 (other agents' builds); OUTSIDE the L2a files: core/colors.zig, core/Core.zig, core/root.zig, core/theme_schema.zig, core/lib_syntax.zig, core/syntax.zig (a doc line), core/Kind.zig (two hunks), core/File.zig (a test line), core/body_layer.zig (the source test's list), runtime/macos.zig (three lines), dev/file_watch.zig, test/consumer/lib.zig, test/panes.zig, test/terminal.zig, test/output.zig, core/Command.zig (tests) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
*-. merge (M2): W3+W3b lean chrome (krwnyllv 027c96360928) + L2cde/L2b/L3457 ↵Gabriel Schneider34 hours
|\ \ | | | | | | | | | | | | | | | | | | colour and themes with W4 (ryuzknor 14723377a8d1) + W6 Symbols by kind (pnmuqkop 8393c24f7667) + W78/T1/T23 previews, root search, the shell's prompt, a server started on open, kbdin's path (xuwpnwno 849542a05f7b), resolved: THE CODE: core/Pick.zig and test/behaviour/language_servers.zig, each side's tests appended at the file's end (W6's Symbols tests and W78's W8 test; W6's server Symbols test and T2's start-on-open test); core/colors.zig, where L2b took `hit` and `hit_current` out of Roles and W6 put `kind` beside them: W6's mark ink moves onto the chrome, `Chrome.Inks.kind`, the keyword held to 4.5:1 on each ground and on that ground's selection (a list's cursor row), worked out by groundInks at a theme change as the key and match inks are (DESIGN.md B4, B1.3), and draw.zig's band draws a row's kind mark in the focused or the plain tag's `kind` (`p.chrome().on(...)`, the band's other inks still Roles' until L2a), Roles.kind and its floor check gone; the ring's per-ground check (ringFailures' `inks`) holds it to 4.5:1 on its ground and its selection where the keyword's hue reaches it there (a hue held to the end of light keeps a trace of itself: #000100 on solarized_dark's grey tag and its selection reads 4.49, papercolor_light's page under its dark selection 3.33; held to pure black's reach those two failed); Pick.zig's Symbols test asks the mark in `p.chrome().on(.focus).kind`; test/soak.py's safe_tags wrote the old window words to /tag, which since K'2 appends them after the computed `Find Grep Newcol Help Exit` (a doubled row, and Exit, computed, not taken away): it writes `Joincol Themes`, the old safe tag's words the row no longer computes; THE GOLDENS: the 40 in conflict (14 on L2b's tree, 40 once L3457's 37 came in) re-recorded once with `process-test -- --update` (the whole run before it failed on exactly those 40; no other golden moved) and each read against both sides and their common base (ymkwwwnn) by .scratch/walkui/M2/gcmp.py, g9p.py and galign.py: text rows, and every changed cell's style pair explained by the other side's base-to-side pairs (its ink and its ground each): lean's words and rows on every snap (`text == A` wherever the other side moved no text), every colour the other side's (L2b's hits, chip, secondary selection, diff grounds, guides, sweeps; L3's focused name tint #dfbce5 to #ecc8f2, resting grip #496656 to #465a43, column grip #887455 to #504733), 0 cells unexplained; the other sides' text at lean's rows: W4's `l Lists` in find's SPC f level and its `C-o back to ...` notes (find, fsearch), W78's preview spines (find), W6's marked, grouped symbols (lsp: `f helper`, `f main`, `c std`, the preview landing on helper's line 3), T1's `$` kept (ttyhelp's leaderworks, row 2) and W4's Resume doc at the +Help's foot (ttyhelp), L5's ring (theme: five new snaps, dark, light, mono, okabe, sepia; themesel: every step's rows and styles L3457's row for row, one row up under K'2, only the rail thumb's cells moved, the panes one row taller); tagnav's Themes list shows in neither lean's recording nor the merge's (the window row's click lands on Dump there); the 9P captures (collapse, mini, ninep) read the same way; no merge fault found; GATES: core-test 1155/1329 (174 skipped), the ring 245 of 245 themes with no expected failure; process-test 0 of 149 failed (3 skipped) after the re-record; load 0.8 to 7.1 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
| | * Lsp, lsp_client, File, dump: a file of a language a server speaks, opened in ↵Gabriel Schneider37 hours
| |/ |/| | | | | | | | | | | a pane (a Look, a landing, a walk step, the boot's file, a restored session's), starts that server and tells it of the file on a worker of its own, so the file's first question finds it ready (agent V4's find for the comparison video, VIDEO2/STORY.md §4.1 and §10.2: pardes's first `gd` cost about 2.5 s where Helix's, LazyVim's and Doom's cost 0.05 s; the user was asked, the default yes); THE CAUSE: dev/lsp/lsp_client.zig spawned a server on the first query that needed it (its header's lifecycle), and that query paid the spawn, the handshake and the server's first parse of the file; THE FIX: an effect `lsp_open`, emitted beside the file's watch by File.open (look.open, Trail's step, the boot document) and dump.revivePane (a restored or upgraded session), performed through a Host entry `lsp_open` (tui, gui and macOS: Inbox.openLsp; not held for `threads_ok`: the boot's file and a restored session's are opened before the loop's threads start); dev/Lsp.zig `open` asks nothing for a file no spec speaks for (lsp.speaks, on the loop), else copies the pane's file (`snapshot`) and hands it to a worker of its own (`Opener`, one at a time: a file opened while one is under way is let go and told at its first query, syncDoc; one done is awaited, at once, before the next), which calls lsp_client.open: a spec disabled asks nothing, a binary not found disables the spec without a word (its first query says `language server for .py not found`, not every file opened), else `ensure` (the server started as a query starts it, `starting` and `ready` narrated as before, one per spec) and `syncDoc` (didOpen); nothing in the query log; not through Lsp.start (its cancel and join of the query in flight waits out a protected handshake, up to init_ms = 8 s, on the loop) nor `work` (the queries' one fixed region, memory.takeLspQuery); a picker's preview (Pick.preview, no pane) and a 9P `ctl get` (ninep/ctl.zig getFile, no File.open) start none; Lspinfo says `not started yet (a file of its opened starts it)`; docs/typ/setup.typ and reference.typ say when a server starts; THE HARNESSES (the coordinator's ruling: no test starts a server of this machine's): PARDES_LSP_OPEN=off starts none and is the process harnesses' default (test/process.zig's child environment, test/tty.zig, and test/fs.py, selfmount.py and daemon.py's base_env), so the `lsp` tty cases' zls is started by their first query as before; a test binary (builtin.is_test) starts none unless it says `on`, as the behaviour harness's language sessions do (Session.initLanguage, every spec the mock or off, `.lsp_open` drained as a host performs it, awaited); RUN (TEST FIRST): behaviour/language_servers.zig "a file of a server's language opened in a pane starts that server and tells it of the file, with no query asked; a picker's preview of one starts none, a second file no second server, and a server not installed is found silently" previews a.zig in Find's picker (Lspinfo: zls `not started yet`), opens it (zls `ready`, `docs 1`, the query count unchanged), opens b.zig (`docs 2`: the same server), and opens c.py and d.py with PARDES_LSP_PY naming no binary (pyright `disabled`, no query, nothing on the screen): fails on the base at language_servers.zig:367 (zls not started by the open), passes now; lsp_client.zig "a file opened whose server is not installed disables it without a word ..." opens two .py files with a status sink set: the spec disabled, no word posted, a query then `not found`; MEASURED (.scratch/walkui/T23/measure-v8.sh: VIDEO's probe.py, the screen polled every 50 ms, this change's Debug tui, a reflink copy of VIDEO2's V8 tree with clangd and its 27-file compile database, torque-parser.cc opened, `743ggfI` then `gd` 4 s after the start, until utils.h's `bool IsUpperCamelCase` shows): with PARDES_LSP_OPEN=off (the base's way) 1.97, 1.98, 1.97 s; started at the open 0.05, 0.05, 0.05 s; on VIDEO's tally with zls (measure.sh) both ways 0.05-0.10 s (zls starts and answers within one poll there); a user hit it on the first question of every file of a session's languages, about 2 s with clangd over a real project; NEW HOT PATHS: none per key or frame; per file opened, one effect more and on the loop lsp.speaks (the spec table's extensions); for a file a spec speaks for, a copy of its text (the snapshot a query makes) and a worker started; GATES: core-test 1130/1304 (174 skipped: +1), shell-test 1352/1355 (3 skipped: +1), pane-test 183/184, behaviour-test 286/286 (+1) and --replay 20 seeds of 70 steps, 0 failures, process-test 0 of 147 failed (3 skipped), term-test 17/17, kitty-test 45/45; the wire's semantics move (a Host entry, tape.shape); no dump change (effects are local, not dumped); the soak `replicas -- --clients 5 --rtt 30,80,207` dies on the base too (5dab435d7262, run here: `allocator leaks detected` at seed 0 rtt 80, MuPDF's allocations of documents a picker previewed, Pick.showKind), so run without the pdf addon (its binary, `--addon` image and life): diverged 0, unequal 0, quiet checks 468/0 251/0 657/0, stops not on may_wait 0, the corpus 22 of 22 scenes the same, no leak (a first run had one key stop at `spawn` at seed 3 rtt 80, exec.zig's rerun of a command pane, which emits a spawn with no `open a terminal` stop; the base's run and a second run had none); the gui unit-test run once, on T3's change over this one (its description); no frame or perf gate (the user's rule of 2026-11-26); load 1.1 to 9.1 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
| * themes, colors, gen_themes: `dark` refreshed and four new pardes themes, ↵Gabriel Schneider38 hours
| | | | | | | | | | | | | | light, mono, okabe and sepia, and the ring in DESIGN.md E's groups (the themes programme's L5; DESIGN.md C, D, E, G2, G3): DARK (C): still the one theme with no page and no text of its own, so a terminal keeps the host's cell, ink and sixteen (ansi.inkOf's `host`), and a window draws colors.null_page #121212 and #cccccc (G2 (a)); its comments the brightest ink, #f0f0f0; keywords violet #d76ef0 (6.6:1; was #da5eea, 5.9:1); the lilac tag #2c2a3e with #aba9c3 ink, focused #d6d4e8; the grip #a58bff (3.4:1 on its focused tag; was #663fe0, 1.45:1); a violet selection #46337a in #f4f0ff (G3 (a): the tan #513c17 sat in the hits' amber); its own severities #ff6e7f #ffb454 #7fa8ff #62d2c4, line numbers #5c5c66 / #8e8c9e, and a designed sixteen for the window (its ANSI 8 #7e7b96, 4.6:1, where L1's derived one was 3:1); its focused tag, mode ring, grip ring, dirty, rules, hits and diff rows Chrome.of's; LIGHT, MONO, OKABE, SEPIA (D): each its primitives as the designer's prototype resolved and audited them (.scratch/themes/C1/newthemes.py, swatches.md: page, text, tag and its ink, accent, selection and its ink, the four syntax hues, line numbers, the four severities, the sixteen; okabe's added blue #56b4e9 and deleted vermilion #ff8a4c), everything else Chrome.of's; THE RING (E): curated in the picker's sections: Pardes (dark, light, orchard, orchard_black, ink, mono, okabe, sepia, paper, daybreak, dusk, lapis), Pardes, after a classic (forge, forge_black, forge_soft, lagoon, solarium, spectrum, harvest, clay), acme (acme, atelier), the faithful ports a family at a time as before, Captured (helix; "Legacy themes" gone); the imported a family at a time, each under its heading (`Imported: gruvbox`, a family the name's first word, two themes or more), the lone ones last under one (`Imported, one of a kind`): the generator rings them so (gen_themes `byFamily`) and colors.zig heads them at comptime (`import_heads`, a compile error where a family rings after a lone theme); ORCHARD THE DEFAULT BY NAME (`colors.default_theme`: config.Settings' `theme`, the library's `default_theme`, macos.zig's bare page), never index 0, which is dark now; THE RING TEST: dusk, lagoon, solarium and forge_soft `soft` (`soft_themes`: held at AA, their text and tag text never to the pro 7:1; the coordinator's ruling) where they were on the expected list; the diff rows' "unless the text holds it nearer" exception for the ports and imports only, pardes's own held to 1.15:1 (the coordinator's ruling: every one of them meets it); pardes's own are every theme before the first faithful port, so dark and the new four are held to the pro floors with the natives; the old tests that read the first fifteen by place read the fifteen designed natives by name (`designed`; `native_theme_count` gone, B8); RUN (TEST FIRST): the ring test with dark off its list and the soft four marked failed on L4's dark (ansi_pro: its ANSI 8 3:1) and, with the soft mark on text alone, on lagoon's and solarium's tag_text7: 281 of 289 themes pass (272 of 285 at L4, the four new ones passing every floor, pro included), 8 on the list (L7's retired); colors.zig "the picker's sections run in ring order and cover it": dark first, orchard the default by name, each imported family's heading at its first, none after the lone ones' (fails on L4: "Pardes themes", orchard at 0); test/process/tty_themes.zig's `theme` case boots in dark (`Theme dark`, its own init line) and steps NextColor through the 24 of the new order into the first ports (dark, light, orchard, orchard-black, ink, mono, okabe, sepia, paper, daybreak, dusk, lapis, forge, ..., clay, acme, atelier, dark-plus, solarized-dark), `themesel` walks the Themes list from its first row the same 24 (both goldens re-recorded and read at the programme's end gate: the snaps are named for the new order); core-test 1140/1313 (173 skipped: as L4, the picker test grown); OUTSIDE my files: core/config.zig (the default, 1 line), core/lib_syntax.zig (`default_theme`), runtime/macos.zig (1 line), test/consumer/lib.zig (orchard is `default_theme`), test/process/tty_themes.zig (the two cases); no dump or digest change (a dump names its theme; settings.theme is a place in this build's ring, as before) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
| * themes, colors, gen_themes: every theme file in the v2 names, values ↵Gabriel Schneider39 hours
| | | | | | | | | | | | | | unchanged (the themes programme's L3; DESIGN.md B2, B3, B8, E1, G4, G6), the fields the new names derive deleted, the comptime fold of the old names gone, each faithful port's file saying each own colour pardes moves to meet a floor, and E1's five fixes: THE FILES: core/themes/*.zig renamed by a script (bg page, fg text, tag_bg tag, tag_fg tag_text, box accent, sel_bg selection, kw keyword, str string, num number, palette ansi, sel_fg selection_text, tag_active_* tag_focus*, tag_name_fg tag_name, tagline_* workspace*, lineno* line_number*, search_bg hit, diagnostic_* the severities, border rule, scroll_* rail*, empty_col empty_column, box_border grip_ring, box_dirty dirty, column_box column_grip, tag_sel_bg tag_selection; seoul256's level rows and their citations too), box_dim, column_box_dim, tag_active_name_fg, search_fg and acme's tag_reading_bg deleted with the lines citing them (B8: always derived; G1': acme's #f3f0cc reading tint goes with the ground), acme's sweep_bg and sweep_fg one `sweeps`; tools/gen_themes.zig writes the generated ones in the same names (its emitted box_dim, the selection again, gone); `colors.fold` folds the files into `Theme` itself (a field no Theme has is a compile error; `as` turns acme's sweep literals into Theme.Sweep, which a literal's own struct type does not coerce to); `legacy_themes`, the ring folded in the old names at comptime, deleted: THE OLD NAMES' VIEW (what draw.zig and the old ChromeTheme and Roles still read until L2a) is a ring theme's chrome's, `ChromeTheme.view`, filled from its Chrome as L1 filled a new-names ThemeFile's (`viewOf`: the old required fields a theme leaves unset, and the derived ones: box_dim a resting grip's fill, the tag's own ground where a theme rings its grips itself (acme's clean button, so its grid grip keeps its look) else the resting ring; tag_active_name_fg `name[1]`, column_box_dim `grip.column_rest`); `Pardes.theme()` reads it (a ThemeFile's, the file itself, as before); ChromeTheme.box, the focused grip the grid fills, is the chrome's `grip.focus` (the accent held 3:1, R6: ayu_light's accent, 2:1 on its tag, was its resting ring too, and the grid drew its focused and resting grips alike); the library's `Theme` and `themes` are the v2 ones (lib_syntax: page, ink and synInk read page, text, keyword, string, number, comment; Grounds.of takes a Theme), runtime/macos.zig's bare page reads `themes[0].page`; E1's FIXES (the ring test's L3 list): acme's sixteen each 4.5:1 on its page, the native floor (6, 8 and 13 held darker in their hue; 10, 11 and 14, held there, landed on their normal colour and go 0.06 OKLab darker than it, R14's bright on a light page: #038384 #757575 #016e08 #785300 #b942b9 #017070); solarized_dark's, solarized_light's and seoul256's light levels' search hit their own hue as a ground the text reads on (#1d180e, #ffeb99, #a6e6fe; each file says from what and why); R8 takes a theme's own hit at R0's visible alternative, 1.1:1 off the page with 0.08 OKLab, only where its text leaves no room for 1.5:1 (no ground that far off keeps the text its floor: those four and forge_soft and ayu_light, whose own hits are taken now where an amber stood; no other theme's hit moves), else E1's `hit` fixes could not be met; G4: core/themes' ports say, under "Moved by pardes as it loads", each own colour Chrome.of moves (focused tag and grip, the resting and unsaved grip, the selection and its ink, the hit, the four severities on the page; 267 lines over 54 files, written from the test's own output by .scratch/themes/L3457/tools/g4_headers.py); RUN (TEST FIRST): colors.zig "every faithful port's file says each of its own colours pardes moves to meet a floor (DESIGN.md G4)" (each port's own value Chrome.of moves, as `role #own -> #got`, found in its file): fails on the renamed files with 273 unsaid, passes now; "every theme in the ring meets every floor ..." with L3's five taken off its list: acme fails ansi and ansi_pro, solarized_dark, solarized_light, seoul256_light_254 and _255 fail hit, all five pass now: 266 of 285 themes pass (261 at L1), 19 on the list (L4 6, L5 1, L7 8, soft 4); draw.zig's "an unfocused reading pane's box in the grid is its ring round the reading tint where the box's fill is the tag's own ground (acme's)" failed on the first view (acme's resting fill its ring), passes with the tag's ground; "a grip's four states ... are each its own" failed in ayu_light on the raw accent, passes on grip.focus; the old tests that pinned the deleted fields' file values keep what is still a file's (a name's tint at its tag ink's lightness, the accent off the column grip; the helix document test strips the derived fields too; the names test reads Chrome's names, an ink held to white or black its own name, ao's and modus_vivendi's); the consumer's lib.zig pins orchard's page, ink and syntax unchanged (dark's page its `.tag`); the ring's values unchanged by the rename (the ring test's count and every original's colour asserted unmoved); core-test 1133/1306 (173 skipped: L2b's 1132/1305 + the G4 test); OUTSIDE my files: core/Core.zig `theme()` (the view), core/lib_syntax.zig (v2 Theme), runtime/macos.zig `pardes_theme_bg` (one line), test/consumer/lib.zig (`.tag`); the process goldens move with the view (the grid's resting grip, the focused name's tint, the column grip at rest, acme's reading grip) and are re-recorded and read at the programme's end gate; no dump or digest change (the view is the chrome's, a `local` field) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
| * gui, tui, macos, surface, draw: the frontends' colours from the chrome (the ↵Gabriel Schneider41 hours
|/ | | | | | | themes programme's L2e; DESIGN.md R1, R6, R11, R15, G1'): the window's one null page and text are colors.null_page and null_text (gui.zig's own bg_default and fg_default, the same values written twice, deleted; the tty's trail ink the same constant where it wrote #cccccc again); SGR faint in a window is its ink toward its own ground to the dim floor, 3.5:1 (R15; a terminal's faint on the page's text is the page's dim ink already, L2d's), where it was the ink at 60 % toward black, darker and stronger on a light page; InactiveDim's fade is worked out, not searched: luminance runs straight in linear light, which `blendLinear` mixes in, so the most of the setting that keeps a pair at its own contrast or 4.5 is one division (`fadeToward`, a hair inside the floor for the bytes' rounding), where each frame bisected every distinct (ink, paper) pair eight times into a 32-slot cache made again each frame (A7); the grips (G1', R6): a reading pane's button is ringed in the chrome's mode ink (`grip.mode`: sky, else mint, violet, paper, rose; 3:1 on both tag grounds), two logical pixels as acme's ButtonBorder, outside a pixel of band so its fill never touches it (an unfocused dirty one's gap, now a reading one's too), a held pane's ring the resting `grip.ring` and a focused one's `grip.focus`, dirty `grip.dirty`; the glyph and the mode's bars on a filled button (focused or dirty) in `grip.ink` (held 4.5:1 on every fill), on the band in the tag's own ink: gui.zig's inkOn (black or white past a luminance of 140, not WCAG) deleted; the window's rules: spines, column and stacked-pane rules in `rule` (R11), the topbar's in `rule` unless gui_topbar_pane_border_rgb, the tag rule `tag_rule` (half the tag toward the page in OKLab; acme's own #8888cc) where it was the sRGB average of the tag and the page, `rule_px` and `rail_px` the chrome's; surface.Chrome gains `grip_mode` and `grip_ink`, `tag_rule` is always given (null meant "mix it yourself"), and draw.zig fills them from `p.chrome()`; macOS: the two exports nothing reads, pardes_tagline_bg (the tag's ground, misnamed) and pardes_tag_active_bg, deleted with their header lines and ABI guards; the Mac's sixteen for an index are core/colors.zig's `xterm`, the gui's, where they were Tango (a window is handed a program's sixteen as the theme's own colours now, L2d, so an index under 16 reaches it only from elsewhere: one colour an index in every window); RUN (TEST FIRST): gui.zig "every pixel of a grip column is band, button or ring" asks the button's pixels in the chrome's fills, rings, mode ring and grip ink (it allowed the grid's old box and boxDirty colours and inkOn), over four sizes, focused or not, dirty or not, the first pane reading (Jumps walk): fails on the base by compile (the surface had no mode ring or grip ink), passes now; "InactiveDim fades the unfocused panes' rows alone, never below the text's floor" passes with the fade worked out (#e6e6e6 on black faded toward it, at least 4.5:1); acme's #8888cc tag rule and its 2 px rules and 18 px track as before; PICTURES (the S kit, before = the installed build, after = this tree's Debug gui, 26 px, `Jumps walk`): .scratch/themes/L2cde/png/: the Changes view (dark, neonotte84, orchard, acme), a terminal with `ls --color` and the sixteen, bright, backgrounds, faint, 256 and greys (dark, neonotte84), the grip's four states (held or reading, focused or not; 16 and 26 px; dark, neonotte84), InactiveDim 35 (dark, neonotte84); derived once: every colour these surfaces read is Chrome.of's (colors.zig, at the theme's change: finishThemeInitialization, setThemeIndex, previewTheme, loadThemeFile), handed to the window in surface.Chrome by draw.zig a frame as before; the fades (faint, InactiveDim) are a cell's arithmetic, as the 60 % and the blend were, with no search or cache left; NOT DONE: PDF hits (the PDF addon is handed fg, bg, sel and link through pa_view, the addon ABI 3.3; the theme's hit wants a field there, an ABI 3.4 with a version check: abi/pardes_addon.h, abi/addon.zig, core/Kind.zig, addons/fake, beyond this line's files), so test/image_harness.zig's helix tints are unchanged and not re-pinned; a mark's ink on a button is still pushed 4.5:1 against the fill a frame (it wants a severity ink per grip fill in Chrome: L2a's marks); the grid's frame and empty columns (draw.zig's fills) and the tag grounds the window lays under a tag (tag_bg, tag_focus_bg, tag_reading_bg) stay the old views' until L2a moves the grid; GATES: gui unit-test 1948/1952 (4 skipped; w2base 1947/1951, +1 the dark terminal test of L2d; its one failure the known BaselineHarnessMismatch); macOS: runtime/macos.zig built for this host and its ABI guard run (`unit-test -Dplatform=macos`, "pardes.h declares every export the way it is defined"), the Swift not compiled (no Darwin here); the tui suites on L2c+L2d+L2e: core-test 1123/1296 (173 skipped), shell-test 1344/1347 (3 skipped), pane-test 184/185 (1 skipped), behaviour-test 280/280 and --replay 20 seeds of 70 steps, 0 failures, process-test 0 of 147 failed (3 skipped, no golden moved by L2e), term-test 17/17, kitty-test 45/45; the dump and digest unchanged (no fuzz or soak); load 0.9 to 12.8 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
* colors, theme_schema: the colour system's core (the themes programme's L1; ↵Gabriel Schneider43 hours
| | | | | | | DESIGN.md B2-B4, B6, G1', H): a theme says ten colours and the terminal's sixteen in names that say the role (`Theme`: page, text, tag, tag_text, accent, selection, keyword, string, number, comment, ansi, then B3's overrides and G1''s `mode`), and everything a surface draws is worked out from it once a theme change by one function, `Chrome.of` (R0-R16 by halves: `hold` moves an ink's lightness alone, `hued` steps a ground off another in a hue's tint), into one set, `Chrome`: the page's, the two tag grounds' (plain and focus, G1': the mode is a mark on the grip, `grip.mode`, never a ground) and the status row's inks, each held on its own ground (text, H's `word`, dim, rule, key, match, the four severities, a selection rebuilt there); the selection's faint and the three sweeps; hits and the solid current hit; added and deleted rows; lanes and churn; the grips (focus, ring, mode and its glyph, dirty, a column's grabbed and at rest); rules, rail, empty column; syntax, line numbers, names and the sixteen; read by `Pardes.chrome()`; H's tag: the plain tag lifted to a band 1.1:1 off the page (across it where the gamut ends) unless rules of 3:1 part panes (acme), the focused band a focus step off it and louder than it off the page, a mid-grey tag no ink reads on the page a step off, the full ink up to 7:1, command words toward the ground to 4.5:1; no surface reads `Chrome` yet: the L2 lines move them, so no frame moves here; THE SEAM: the theme files and every ThemeFile so far speak the old names (`LegacyTheme`, theme_schema.zig, the old struct verbatim): `fold` folds them as they are (`legacy_themes`) and renames them at comptime (`themes`, `Theme.fromLegacy`: one table of old and new names, the fields now always derived left out, a compile error for a field on either side without its line, so G6's rename stays one table to drop); `Pardes.theme()` hands the surfaces still reading a theme's own fields the old names' view (the ring's own, a ThemeFile's file itself, or a new-names file's view filled from its Chrome, `Theme.toLegacy`), and ChromeTheme, Roles and Grounds keep today's derivations on it, unchanged, beside the new set (`ChromeTheme.resolved`), until each surface moves; `custom_theme` keeps its type, so no dump or digest changes; a ThemeFile is read in the old names when it names `tag_bg` (the user's one_dark_zed_mod.zon, an older DumpThemes'), else in the new; DumpThemes writes the new; `initial_chrome` (comptime) goes: the chrome is resolved at the session's start (finishThemeInitialization, as before, into `theme_chrome`, the field `chrome()` reads it from), and each place that resolves one hands it to the body's cache (Core.bodyChrome), which made its own again at the first frame; B9's budget: the derivations convert to and from OKLab with no pow (`labOf`, `rgbOf`: `to_linear`, and the light where a byte's rounding turns; `toOklab`/`fromOklab` stay the old views' so none of their values moves), one ink's line toward its ground is walked once for its words, dim and rule, a status row that is the plain tag's takes its inks, and the name tint's search (today's, the old view's too) skips by luminance the candidates that cannot read before the bytes round them, and a source hue already tried, its answers the same over the whole ring (compared byte for byte); readings where DESIGN.md is silent or in tension, each in the report: `tag_name` for B3's `name` (the theme's own `name` holds its name), `@"error"`, `hold` wherever B4 says held (the prototype pushes tag, selection and ANSI inks toward white or black), the current hit the hue itself held (R8's words; the prototype held its rejected own ground), each tag ground's full ink its own (B1.3; hring holds one ink on both), a port's `column_grip` held on the page (B3; hring takes the number), the focus step tried lighter on a dark tag first, as the prototype does in effect (H's "away from the page" first would sink lagoon's and forge_soft's focused tags to #0b2722 and #020205), R3's status-bar swap left to the importer (L4: no import flag in a theme), B6's selection triple without key and match, no `filter[256]` (ghostty's, L2d) and no InactiveDim table (L2e); RUN (TEST FIRST): colors.zig "every theme in the ring meets every floor pardes owns ..." (every theme x the designer's checks, A8, with B4's per-ground inks, G1''s mark and H's words, band, loudest focus and column grip: the natives and dark held to the professional floors too; the original's text, syntax, comments, line numbers and sixteen asserted never moved): 261 of 285 pass, and the 24 on its list fail as it says: L3 5 (acme's ANSI 10 and 14; solarized_dark and _light, seoul256_light_254 and _255: a `hit`, `added`/`deleted` of their own), L4 6 (everforest_light, github_dark_dimmed, gruvbox_material_light_hard/_medium/_soft, hex_toxic), L5 1 (dark: its derived ANSI 8 at 3:1, under the pro 4.5), L7 8 (retired), and 4 no line fixes (dusk, lagoon, solarium, forge_soft: soft by design, their text under the pro 7:1: C1's ruling); "the whole ring resolves in 150 ms of CPU, no theme in over 0.5 ms (Debug)": 39 to 44 ms of CPU, the slowest theme 291 to 307 us (seoul256_dark_239, modus_vivendi), each the least of five (under a load of 8.7, before the speedups, it measured twice that: 871 us); "a theme file in the old names, a user's own or an older DumpThemes', and DumpThemes' now in the new names, load to the same Chrome" (one_dark_zed_mod.zon's shape copied into the test); the neonotte84 and acme goldens on Chrome, re-pinned where B4 moves them (text, dim, rule and key as D4's; the match the hits' amber on that ground alone, neonotte84 #e29e47, where D4's pushed #f1a271 over seven grounds at once, acme its number #a05200; the reading mark sky on the grip, #2b92bc and #1e8ab3, where D4 tinted the tag, #29271e, and acme's own #f3f0cc; the hit an amber ground 1.5:1 off the page, #4c301a and #ffc790; the current hit the hue itself, #e29e47 and #a05200, where D4 drew a 1.9:1 ground); the error ink red on the page and both tags; against C1's prototype over the ring's 285 (resolve.py, g1ring.py, hring.py; the R3 status-bar swap aside, L4's): the page's tokens (11,115 values) 84 % the same, 96 % within 2, 2 % over 6, each from a reading above (hold for push: ANSI 1 and 9 in 37 themes; the current hit in 46); with the prototype's own choices put back (an experiment), 17,081 of 20,520 the same and 59 over 6, at floors that a bisection and a 0.005 walk cross on different sides; H's tag grounds against hring.py the same or within 2 in 271 (plain) and 268 (focus) of 285, the others R3's status-bar swap (13, L4's) and monokai_pro_light_sun (its tag its page: lifted darker, hring lighter); G1's mark sky in 225, mint 50, violet 9, paper 1 (C1: 225, 50, 10); no frame moves: core-test 1115/1287 (172 skipped: +3, the ring, timing and loader tests; the two goldens rewritten in place), shell-test 1335/1338 (3 skipped: +3), pane-test 183/184 (1 skipped), behaviour-test 280/280 and --replay 20 seeds of 70 steps, 0 failures, process-test 0 of 147 failed (3 skipped, no golden moved), term-test 17/17, kitty-test 45/45, the gui unit-test 1938/1942 (4 skipped; its one failure the known BaselineHarnessMismatch); perfops against the installed tree (1e8787e0b2eb, its prefix built here) at 10 % a cell: PASS, 121 counts, the largest `open on small` +3.02 % (5,736,138 to 5,909,480 instructions: each cell boots a session, which now resolves its chrome at start where `initial_chrome` was comptime; +11.3 % before the body's cache took the start's chrome and create stopped resolving one of its own), the boots' setup +0.13 %, every operation within 0.01 %; the dump and the digest unchanged (`custom_theme` keeps its type, `theme_chrome` is local), so no fuzz or soak; load 2.0 to 10.2 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
* upgrade, test/daemon.py: an Upgrade no build could load says so as an error ↵Gabriel Schneider2 days
| | | | | | | of no pane, and the upgrade row reads what the walk UI draws (D1, the install gate's failure 2: `--upgrade` from the installed 9bd7dbb00a01 to the release, `the word said` TimeoutError): (a) `Upgrade: now pardes …` is a notice on the notice row until the next message (pick-ui SPEC §10.1), and the test looked for it after its own Undo, whose echo retired it: looked for as soon as the session answers again; the fallback's `Upgrade: the new build could not load this session (…); it goes on as …` shows its start in 80 to 100 columns, cut with `…` (SPEC §10.3; the chip showed a long message's end): the test looks for `could not load this session`, on each client's own screen once a key of its own (made_live's `gg`) has put away its `joined again: …` line (tui.zig noticeLine, drawn over the window's last row, which is the notice row now; replica.zig Link.input), and for `no build could load the session` where it looked for the end; (b) THE FAULT: that refuse-everywhere outcome (`…; its shells are here, and Restore upgrade-N brings the rest back`) was a notice about the fresh session's first pane, which the fresh session's first word's echo (`✓ @p1 Term`) retired at once: the one word of how to get the session back was never on the notice row, only in the history; now an error (until Esc, the next error or SPC e), of no pane as tellEveryView's; TEST FIRST: upgrade.zig "an older build's dump named by a path past 4096 bytes is refused in words and kept for a Restore: an error of no pane, ..." fails on walkui-final at upgrade.zig:640 (the echo leads the row); a user could have hit it at any Upgrade whose new build and the build it ran both refused the dump; core-test filtered `upgrade` 13/14 (1 skipped); test/daemon.py upgrades() from the installed build to Debug: rc 0 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
* upgrade: a newer build installed is said of no pane, as the Upgrade's ↵Gabriel Schneider2 days
| | | | | | | outcome is (D1, the install gate's failure 3: `--upgrade` between the tree's own Debug and ReleaseSafe builds, both ways, `the newer build said` TimeoutError): noticeNewer said it about the focused pane (from when a message was a chip in that pane's tag); under the walk UI a pane's message names its cause first on the notice row (pick-ui SPEC §10.1, Messages.say's causeWord), so the row read `· <the focused file's path> a newer pardes …` and, in 80 columns behind the test's 77-byte path, only `· /home/…/.scratch… 2 messages · SPC h m`; THE FIX: `.at(MAX_PANES)` (tellEveryView's rule: the session's news, of no pane in particular); TEST FIRST: upgrade.zig "a newer build installed is said on the notice row in its own words, of no pane: ..." (the focused file at an 84-byte path, another file at the start path than the one started from) fails on walkui-final, the message about the focused pane (serial 2); a user could have hit it: a narrow terminal on a file with a long path, the focus-in that tells of a newer build showing that file's path alone Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
* messages: a message is said where its cause is: the mark in its pane's box, ↵Gabriel Schneider3 days
| | | | | | its words at its line, its detail under the caret, progress at its tag's end, and a failed run's report its places (pick-ui SPEC §10.2, walk UI line C item 3): the mark is the glyph of the most important live error, question, warning or progress about a pane (its pane, its file, a place's file: Messages.markOf), drawn in the box's second cell (the grid's dirty cell, its ground kept dirty under unsaved text) and never in the tag's text, so it rewraps no tag and moves no row (written as a prefix word it could push a column under its minimums: the random placement test in ninep/tree.zig caught that); a message's places in a file shown are its glyph and words two cells after the end of their line, and with the keyboard in that body and its caret on that line the message's detail as ghost rows under it, the rows below pushed down for as long (body_layer.zig messageGhosts: drawn, never written, ruling R3; bounded by the rows shown and 16 messages of 4 places); a pane's progress at its tag's first row's right end and a server's (a message of no pane: the language server's status, dev/Inbox.zig and runtime/macos.zig now say it of none) at the workspace tag's, where the row has room, and setStatus with no text ends it; a command pane's run that fails is read back from its last 400 rows for a compiler's places (path:line:col: error|warning|note, a relative path its directory's: Messages.readPlaces), and names them as an error of that pane ('exit N', its places, the rows after its first error its detail), which the pane's next run takes away (SPEC §11); say returns the message it made; tests: Messages.zig 'a compiler's report names its places ...', 'a burst of the same message is one message, counted, and moves nothing on the screen' (×10, rects and tag rows equal), body_layer.zig 'a build error is said where its cause is: the mark ..., its words after its line, its detail under the caret's line pushing the rows below down, the walk on the notice row', draw.zig 'progress is said at the right end of its tag ...', panes.zig 'a command whose run fails naming places is an error of its pane ...'; Term.zig's calls list takes the run's rows read (S1); tui: core-test, shell-test, pane-test, behaviour-test pass; process-test 0 of 146 failed after shellset's and lsp's goldens took the mark (✗ in the box of the pane whose refusal is live) Co-Authored-By: Claude Opus 5.5 <[email protected]>
* messages: one session-wide list of live messages replaces each pane's stack ↵Gabriel Schneider3 days
| | | | | | of chips (pick-ui SPEC §10.1, walk UI line C item 1): Messages.Said is a kind (echo, notice, warn, error, question, progress), its cause first as a word a Look understands (a file's path, @pN and its command), its text, the places it names and the lines that explain it, the pane it is about, the question it asks, ×n and the core's clock, in a fixed list of 16 (Messages.live); a new message retires every echo and notice, a new error the error before it, the same message right after itself is counted, progress from the same cause runs in place and is never the notice row's; an echo or a notice dims after MessageLinger (now 4000 ms, a warning twice as long: test configs' MessageLinger 0 keep their meaning, nothing dims and nothing wakes), and the core sleeps to that dim (Messages.dimDue in nextWake) instead of a frame-counted linger; no key or click dismisses a message any more: Esc in normal mode takes the warnings and errors first, then goes back as before; every call site says what it said, mapped by its entry: setMessage a notice, setStatus progress, reportError and reportFailure an error, a builtin's announcement an echo (exec.zig), the sent-to-a-REPL arrow an echo; the log ring stays the history and 9P /log (each line now with its kind); gone: Pane.msg, msg_older and their lives, slots, announcement, status and sent flags, dismissMessage, advanceMessages, holdMessages, messageWake, expireUnattended and the detached shells' 100 ms message waits; until the notice row (item 2) a pane's one message chip shows the newest message said of it (Messages.saidBy); an Upgrade's outcome is said once and is every view's; tests: Messages.zig 'an echo or a notice retires those before it, an error the error before it, a repeat counts and progress runs in place', 'Msg says a notice by hand ... and the next message retires it', 'an idle core wants no wake, and a message wakes it once, when it dims', runtime/upgrade.zig 'an upgrade's outcome stays on every view's notice row until something else is said'; core-test 862 pass 162 skip, pane-test and shell-test pass; behaviour-test: the pdf addon's script golden and one PDF Restore test move with the chip over a PDF's body, which item 2 takes away Co-Authored-By: Claude Opus 5.5 <[email protected]>
*-. integration: merge65 with its fixes (zxslxmlo), pardes-release-soak-2 ↵Gabriel Schneider4 days
|\ \ | | | | | | | | | (vszznuqx) and pardes-no-panic-2 (lokskytr): no conflict
| | * addons: a Zig addon's panic is pardes's panic, and a segmentation fault ↵Gabriel Schneider4 days
| | | | | | | | | | | | | | | | | | | | | leaves a crash record: RUN on the base (a throwaway Debug build whose snake addon panics at its open, a tui session in a pty of its own, Snake sent over its 9P; .scratch kept/i5-addon-panic-throw): the session died with the trace on the terminal, NO CRASH RECORD, the terminal LEFT RAW (`-isig -icanon -iexten -echo -opost`, the alternate screen and the mouse modes still on: the shell after it took no line), `pardes new` exited 0, the daemon kept the shell ("shells no session holds"); the cause: a library kind is its own root, so its `@panic` ran std's handler, never runtime/main.zig's (replica.dying, vaxis.recover, crash.record); THE CHANGE: the ABI's pa_api gains `panic` (3.3, at its end, checked by api->size as `draw` is; an addon of 3.2 loads as ever, a 3.3 addon on an older pardes keeps std's handler), the core's entry (core/Kind.zig) `@panic`s with the addon's words ("an addon's panic: ...") so the host's root handler runs, and abi/addon.zig's `panic` is a handler that calls it, which every Zig addon's root names (`pub const panic = addon.panic;`: pdf, image, life, snake, snake_shader, test/liar, test/veil, and the example in addon.zig's head); runtime/main.zig `debug.handleSegfault` writes the crash record too (a fault in C code: MuPDF, stb, tree-sitter, an addon's library); RUN on the change (kept/i5-addon-panic-fixed): the record written ("panic: an addon's panic: addon panic: ... in addon snake, open"), the terminal put back (`isig icanon iexten echo`, the alternate screen and the mouse modes left), the daemon keeping the shell as before; NOT BUILT, the user's to rule: recovery (an addon's panic ending its pane and not the session); the behaviour tests read the addons' ABI as 3.3; addon-test Debug whole Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * | messages: what a view kept for its client's return shows at its keyboard's ↵Gabriel Schneider4 days
| | | | | | | | | | | | | | | | | | | | | pane waits for that client (the coordinator's rule for an Upgrade's outcome: kept for each view until its client is back and drawn, until its kept time for a view whose client never comes, as now for the session's own frontend): pair-10's rule "a message waits for someone to see it", which a session-wide `unattended = false` keeps for a pair's one client (dev/tui/tui.zig `Own.start`, `rec.state == .pair`), made per view for every client: `Messages.awaited(p, pane)`: a pane that the keyboard of a view kept for its client (views.away: an Upgrade's clients, a divergence's) is on, within the view's kept time (views.away_kept_ns); neither another view's key or click (`dismissMessage`) nor the unattended clock (`expireUnattended`) takes its message; the client back for its view (`rejoinView`) gets it in its join's dump; pair-10's line stays: deleted, the `--with-pair --upgrade` rows failed 3 of 3 at "brings the rest back" (a pair's session no build could load starts afresh with no view kept, its message on the unattended clock at once): that case has no view to hold it; what failed the merged gate (pardes-merge63, its row "each client's own screen saying the Upgrade's outcome" 3 of 3) was NOT a race but the test's first needle, `Upgrade: the new build`, which a message longer than its pane never shows (it shows its end: round 1's five kept runs, both clients, 0 head and 1 end each): pardes-merge63 stands on `ulztktwm` without `mntzqroy` (its needle `it goes on as`); on this tree (with `mntzqroy`) the row passed before this change 3 of 3 each way (dbg->rel, rel->dbg, a message trace in every process: every client back within 3 ms of the outcome, nothing between); the race this closes is a user's: a key in the session's own terminal, or a detached session's clock, before a client is back; TEST FIRST: runtime/upgrade.zig "an upgrade's outcome waits in each view kept for its client until that client is back for it: no other view's key and no clock take it" (two client views kept as an Upgrade keeps them, the dump loaded by `load`, MessageLinger 0: a key in the own view takes its pane's outcome and not theirs; unattended, a tick takes none; a client back has it and the next key takes it; the other's goes past its kept time): fails on the base at the first kept view (upgrade.zig:534), passes with it; the two upgrade tests share `upgradedForTest` (the dump and `load`) and `saysOutcome` Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * | integration: the installed tree (main = pardes-merge64, f34d3a74cc4a) and ↵Gabriel Schneider4 days
| |\ \ | | |/ | |/| | | | | | | | | | | | | pardes-release-soak round 1 with its unfinished cheap jump equality on top (pardes-jump-eql-wip = mxkpuqwo on mntzqroy on zmxmqkmw): the base of pardes-release-soak round 2; no conflict Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | * upgrade: an Upgrade's outcome is the session's news: `tellEveryView` says it ↵Gabriel Schneider4 days
| | | | | | | | | | | | | | | | | | | | | at each open view's keyboard pane, a pane two views share once (the coordinator's ruling: every view that has a frontend reads it on its own screen), where `load` said it at the live view alone, the one whose input came last before the Upgrade's step; the test of the change before passes (Debug, 8/8 of the filter) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | * upgrade: the test that an Upgrade's outcome is said in every view: ↵Gabriel Schneider4 days
| | | | | | | | | | | | | | | | | | | | | runtime/upgrade.zig:449 (`load`'s end) set "Upgrade: now ..." or "... it goes on as ..." at `p.view().active`, the live view at the dump, the one whose input came last before the Upgrade's step, not the one that asked (the pair round's `--with-pair --upgrade` ReleaseSafe to Debug 1 of 3: the message on pane 5, a pane of client f's view, which the session's /screen does not show); the unit test (two views, the second's keyboard on a New pane of its own and its input last, dumped and loaded as an upgrade loads it: each view's pane at its keyboard must say "Upgrade: now pardes ") fails at upgrade.zig:493 (logs/t7-upgrade-unfixed.log); and test/daemon.py's refused-upgrade row (two replica clients, the Upgrade written over 9P to the shell's pane) now waits for each client's own screen to say "Upgrade: the new build" Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | |
| \ \
*-. \ \ integration: the tree to install (2026-11-23 evening): the Changes layer's ↵Gabriel Schneider4 days
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | second step, a window's size across an Upgrade, the boundaries' first no-panic fixes, and the builtins' documentation with Help: pardes-layers-9 (`rqvtuyou` on `rtmzywzn`, `xkvoyzwu`, `snmnxyqo`, its merge `yvzwukkn` of `main` = pardes-merge64, on rounds 8's two changes: the layer's lines are lines of the pane's text, read-only, nothing cut; the view from the middle; every way into a patch view; `Compare`'s pair ahead; the node keys and the indent on the file's text; a file with no layer paying nothing: 120 of 121 counts, the terminal's cell ruled (P81); the wire 34), pardes-upgrade-size (`xmowzmto`: the record's `size WxH`), pardes-no-panic-1 (`zwquloxl` and six under it: the fuzzes, `rows`' style, a client's row metrics, the tape's reader, a top-down BMP, a Grep row's numbers, vaxis's mouse bytes) and pardes-help-1 (`kvnnqktq` and twelve under it: a builtin's `///` is its documentation, a comptime table, `Help`, `Help <name>`, `Help <keys>`); RESOLVED HERE: core/builtins.zig, the `///` of `Changes` (help's text saying what the layer's second step made true: shown in every view of the pane; what the file no longer has stands as read-only lines of its text; a long description wraps) and of `Compare` (help's), and the two generated lists (docs/typ/builtins-tui.json, builtins-gui.json: `zig build builtins-json` for each platform); NOT in it: pardes-link-state (its wire history and `told_from` meet the layer's 34: link-3's merge), the jump list's equality and an Upgrade's outcome kept for each client (in their gate); its gate: .scratch/sketch/reorg/merge65, the numbers in PARDES.md Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | * | help: `pardes help <Word>` prints what `Help <Word>` shows (one function ↵Gabriel Schneider4 days
| |/ / |/| | | | | | | | | | | | | | | | | writes both, core/Output.zig `writeWordHelp`: the builtin's row, its whole documentation, its keys, argument, what it acts on and its `pardes do` line), and the manual's glossary prints each word's whole documentation under it (the sinks of the one table, `registry.doc`: the user's "the CLI as living documentation, like 9P, maybe sharing the source with different sinks"): `pardes help <Word>` read the word's line of /commands, a session's or a core made here, and printed its first sentence; now a builtin of this build is answered from the table with no tree asked (runtime/main.zig `help`), the name as the registry takes it (`pardes help index` stays the tree's file), and an addon's word, which only a session knows, as before from /commands; `pardes help`, `pardes words` and /commands keep one line a word, the summary; docs/typ/style.typ's `builtin-entry` prints `text`, a paragraph a line, where it printed `doc` (the summary); tests: test/process/cli.zig's help case (`pardes help Newcol`: its row and `acts on: the session (over 9P, the root ctl)`; `pardes help Save`: `from a shell: pardes do Save [ARG]`; `pardes help Diff`: its second paragraph's `Diff <hash>`); process-test (cli: help) 1/1, core-test (docs/typ) 9/9, Debug tui; the book builds in the change that regenerates builtins-gui.json (its words need `text` too) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * | upgrade: a window comes back from an Upgrade the size it had (the user's two ↵Gabriel Schneider4 days
|/ / | | | | | | | | | | | | windows went from 140 x 74 cells to 112 x 32 and from 343 columns to 193 at the 15:11 install): a window session's Upgrade is an exec, and its record said only that there was a window (runtime/upgrade.zig `Record.window`), so the new image made it the default 1120 x 720 points, or the `--geometry` it was started with (its arguments are passed again), never the size the user had given it since; now `upgradeNow` (dev/gui/gui.zig) puts the window's size in points as SDL_GetWindowSize says it then in the record, a line `size WxH` after `window 1` (`Record.size`), and the new image takes it as its `--geometry`, ahead of the one it was started with: the pair's road (a client window's PARDES_JOIN_SIZE, runtime/client.zig `execAgain`, read by the same parse), size only as the pair's (no place: an X11 window started at `+X+Y` is placed by the window manager after an Upgrade now); an older build's record has no such line (the word is passed over by a build before this one): the default, as before; a test window keeps a carried size over PARDES_TEST_COLS and ROWS; test: test/daemon.py `gui_upgrades` resizes the session's window to 100 x 30 cells (the test feed's in-band resize) before the Upgrade and reads the new image's first frame's size from its capture: on the base 1280x840 (80 x 24, the default) where it had been 1600x1050; now 1600x1050 from a build that writes the line, the default from one that does not (the record on the new process's command line says which), and upgrade.zig's record test reads the line back and an older record's none; core-test 934/1100 (166 skipped), shell-test 1142/1145 (3 skipped), gui unit-test 1739/1743 (4 skipped; its perf step's known BaselineHarnessMismatch), test/daemon.py `--upgrade --gui` between this tree's builds (Debug, unstamped and -Dstamp-commit: two semantics) 3/3 and from the installed build (62c6caf414fd) 3/3, `--upgrade` from it 1/1, plain 1/1 Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | daemon: the stub dies of its session's KILL as of any other signal, not of ↵Gabriel Schneider4 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 Schneider4 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 Schneider4 days
| | | | | | | | | | | | | | | | | | | | | coordinator's ruling P63a): `Link.backHere` says no for a link that crosses machines (`Link.far`, set by runtime/client.zig from its `Have`) and fell behind `behind_max_ms`, so that client says its goodbye, shuts its link and dials again through the daemon, a new connection that drops what the old one holds for it; every other way back (a divergence, a near lag, a cut, a refused load's ask) stays on the link; marked in the code as the second road it is, with what replaces it (bounded flight: the session never more than a window past what its client has taken); the failing row first: test/daemon.py `--far` on ReleaseSafe 6 of 7 on round 1's tree (`far_flood`: over its own link the far client read through all the relay held for it, agreeing 49-68 s after `yes` against 22.7 s by a dial); `far_flood` now asserts the far client behind took ANOTHER connection; the lag test asserts both roads (`backHere` near yes, far no) ; gated with the next change as its tree (g1, rnllpvzw fd3730201cb3): `--far` on ReleaseSafe 7 of 7, far_flood ANOTHER connection each time and agreed 22.3-26.0 s after `yes` ended (Debug 25.3 s), every other row as before: core-test 931/1095 (164 skipped), shell-test 1137/1140 (3 skipped), process-test 0 of 146 failed both ways, the soak x3 and --pair x3 clean, daemon.py every mode on both builds, the upgrades 12 of 12, frames 77/77 and 121 counts within 0.1% against tree6, the cross-builds Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * | merge: round 1 of a link's lifecycle (pardes-link-1, `nlqrtuns`: a client ↵Gabriel Schneider5 days
| |\ \ | | |/ | |/| | | | | | | | | | | | | whose link is up comes back over it) onto the dump and the digest (pardes-m63-base, `xxvnuywy`: the installed tree + the one decision + a join's digest taken with its dump, a refused load naming its field), the two implementations of "a refused load names its field" made one: the dump line's naming kept (every join's dump ends with the session's digest a field at a time, `dump.joinParts`, read by `loadDiffers`), round 1's deleted (the wire's `ServerTag.parts` 0x0d and `ServerMsg.parts`, a bye's byte 3 and `ClientMsg.bye.parts`, `Peer.fields`, `Peer.parts`, `Peers.partsOf`, `Peer.writeParts`, the `Parts` read in `loadAgain`, `comeBack`'s `parts` argument, `fromDump`'s second naming from that message); round 1's road kept (`fromDump` asks once more over the same connection, `loadAgain`, `joinOn` reading on to a welcome); the conflicts: abi/wire.zig's 31 line (both sides' sentences, round 1's without `parts`), `Peers.join` (the dump line took `dumpJoin`'s `.{ bytes, digest }` inline where round 1 had split the dump and the welcome out, `Peers.dumped` and `Peers.welcome`: `dumped` now returns the bytes WITH the digest `dumpJoin` took at the dump's moment and `welcome` takes that digest, so a join again over the link (`dumpAgain`) has the dump line's guarantee too, where round 1's `welcome` read `tape.digestOf(core)` after the dump), `fromDump` (the dump line's named refusal and round 1's loop: now the first refusal names its fields in the log and asks once more, a second, or a link that cannot ask (its words kept, `j` and its dump the caller's), gives up naming them in its words: "the session's dump loaded as another session twice: fs differs"); `loadAgain` asks before it lets the dump go (the dump line's test hands `fromDump` a dump of its own and no link: it was freed); semantic conflicts looked for: the one decision's `Replica.confirm` and core/tape.zig (`feedsTerminal`, `touchTerminal`, `Pending.terminal`, `shell_rows` gone): nothing of round 1's used them; the rollback copy's walk: `Peer`'s and `Link`'s new state (`gen`, `written`, `back`) is outside the core it walks (Peers and Link are the engines', not `Pardes`'s fields), nothing to declare; tests: round 1's "refused twice" made from the dump's own parts (its first field's word changed in the dump, no message), the dump line's "says which field" given the session's name argument; root.zig's machine_lines for replica.zig 90 -> 89 (`loadAgain`'s close gone); core-test 930/1094 (164 skipped: the base's 924/1088 and round 1's six), shell-test 1136/1139 (3 skipped: the base's 1130/1133 and round 1's six) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | * link: a client whose link is up and must take the session's state again (it ↵Gabriel Schneider5 days
| |/ | | | | | | | | | | | | diverged, fell 2 s behind, or the session cut it off 64 MB behind) comes back OVER THAT LINK, the daemon not asked: its goodbye that says `again` and today's hello for its view in one write (`replica.comeBack`, runtime/client.zig `Loop.run` when `Link.backHere`), its reader letting the stream it leaves go (units, blobs and checks not even copied) and stopping at the session's welcome there, put back at its framer's front for the join's reader (`readLink`'s back mode, `Framer.putBack`), the join read on that framer (`joinOn` takes it; `replica.join`'s `here`); on the session the reader reads on after a `bye` that says `again`, a hello after it is the same client back (`Peer.take`, inputs numbered afresh), and `Peers.joinAgain` dumps for it there with what the old road put on the tape (`awayView`, then the join's `viewFor`: every side's terminals reloaded in that step), what was queued for it let go, the cut over; one writer loop writes a join whenever one is due (`Peer.gen`, `Peer.written`; the `.joined` note carries its gen so a stale one releases nothing), what it was sent a MiB at most a write at a message's end (`writeOut`) so a join due waits for no more of the old stream, a far client's old zstd frame ended before the welcome; a cut keeps the link (its words, then nothing until the hello); a link that ends before the welcome (an Upgrade's or a Restore's words: the session closes it), or one gone, is dialled again as before: the one case left for a redial; and a client refused its own load (`fromDump`) asks ONCE more over the same link with the session's digest a word a field after that dump (wire 31, nothing at 31 installed: a bye's byte 3 = `again` + `parts`, a new ServerTag `parts` 0x0d) and only then gives up, naming the fields that differ in its words and its log; the failing run first: test/daemon.py's new `pair_back` (a no-daemon pair whose client diverges, and one stopped 3 s while the session is edited) on the installed build 79b73e14711e: "the client and the session went (client exit 1)", "'diverged' let this client go", on this tree both join again over their own link, the session alive, the unsaved text there, agreed; `clients`: client D's socket the same across its rejoin, the session counting 6 joins, 1 over a client's own link and 5 handed by the daemon; `far_flood` (20 KB/s, 200 ms): the same link after 3 joins again of 0.56 s each against a dial each time on the installed build (0.99 s each), but agreement 68.6 s after `yes` ended against 22.7 s: the client reads through what the relay holds for it (the relay buffers without bound; ssh bounds it by its window), said in reports/pardes-link-lifecycle.md; `Peer.rejoin` and `hungUp` stay for the one road that still dials after a goodbye saying `again` (a client of another build exec'ing: `sameBuild`), their test rewritten for it; core tests at the replica's surface with real link threads (near and far: back over its own link; a refused load asked once more and loaded; refused twice and named, against a session played by hand; a cut client back over its link, the same peer, connection and view); the soak models the road (`ended`, `Soak.joinDown`, the `here` column); core-test 924/1084 (160 skipped), shell-test 1126/1129 (3 skipped), root.zig's machine_lines for replica.zig 76 -> 90 (the tests' sockets and sleeps; the session's one shutdown of a link it will not dump for again, and a close) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* / 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
* 9P: a request that changes the core waits for the output already read out of ↵Gabriel Schneider5 days
| | | | | | | the ptys before it, as a terminal shows a program's output before what it led to: `cmd | pardes -` typed in a pane writes its pager over 9P after the shell echoed the line and started the command, and the session, which feeds its queue a read a step (dev/tui/tui.zig `takeQueue`), could still hold that echo when the write was served at its next rest (runtime/9p_io.zig `onServe`); the pager's layout then gave the shell's pane its rows as the stale emulator had its cursor (one short), and the emulator's resize cleared the command line as a prompt the shell would draw again (ghostty's Screen.clearPromptForRedraw: the cursor still after `133;B`, the `133;C` not yet fed), which bash, running the command, never did; process-test's `pagercolor` failed so as a pair 7 of 20 pinned to one CPU (a client's keys reach the shell a step each, so its echo comes a key a read: 55 reads queued in a failing run, the write served with seven still to feed) and on the own path 1 of 20 (its keys a burst a step: a read or two); now core/Turn.zig counts the reads (`reads`, by each pty reader as it reads, dev/Inbox.zig `readPty`, beside `unapplied`) and those applied or dropped (`applied`, `outputApplied` from `Inbox.applied`), and `awaitOutput` waits, the turn given up, until every read made before the request is applied, only while the editor waits in its loop (`listening`, set by the new `listen` in the tui's `waitOnce` and the window's `waitInput`, cleared by `wake`): resting in a call of its own (a save through its own mount, core/fs.zig `writeOut`) it applies nothing and the request goes first as before; `onServe` waits so for every request that `needsQuiet` and asks `quiet` after; a user could hit it typing or pasting `cmd | pardes -` in a pane of a session with a client attached, or under load on the own path (the pager open, the command line wiped from the shell's screen); pagercolor pinned to CPU 5 after: as a pair 20 of 20 first time, own path 20 of 20 (before: 13 of 20, 19 of 20); a core test of the rule (`Turn` now in core's test imports); core-test 918/1075 (157 skipped), shell-test 1116/1119 (3 skipped) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* integration: the pair's chain on the gathered line: pardes-pair-10 ↵Gabriel Schneider5 days
|\ | | | | | | | | | | | | (`vxutwuwz`, the pair's ten changes on pardes-merge50 past the four already gathered: a window's facts its client's (P47: WindowOpacity applied by a client window, `Font` gated by the desktop builds' capabilities, not the frontend's build), a window pair's session listed as a window's (P49), the user's terminal put back when a pair's client dies with no word (P48), a pair's user told a newer build is installed, an addon's landing on the tape and a client on the session's machine running a kind loaded by path (`Site.landing`, P51), an upgraded pair's session attended until its client is back, and test/daemon.py's `--with-pair`, `base_env`, `listed_as` and the Restore test as P44) on pardes-merge57 (the terminals' old road deleted, the wire at 30); two textual conflicts: core/replica.zig `Peer`'s fields (the pair's `bye` and `pair` kept, the deletion's removal of `sid` with its `Screens` kept) and test/daemon.py's head (the pair's `WITH_PAIR`, `base_env` and `listed_as` kept where the deletion had removed `KEEP`); the semantic ones the text did not show: the pair's `zwrkukrx` (`PARDES_TERM_BYTES`, its switch to the bytes road) merged without a conflict into core/replica.zig `takeJoined` (setting `r.t.screen_state`, a field the deletion removed), runtime/session.zig (`Peers.bytes`, removed) and test/process.zig (its passthrough): all three taken out, the gathered line's text there exactly, no road to choose (core/root.zig's machine_lines for replica.zig stays at the gathered line's 76: the pair's +1 was that getenv); test/daemon.py's two functions the gathered line added after the pair's base (`kept_views`, `kitty_image`) built their environment in the idiom `base_env()` replaced at every other site: now `base_env()` (the same without `--with-pair`; with it they run as a user who exported PARDES_PAIR, as every other mode does); the pair's `Peers.input` focus line, written after `screensOut` (deleted), stands alone before the step; `Site.landing` stays at the enum's end after `medium` (`images` gone): `wire.semantics` moves as any tape change does, no version line; and found by the gate: test/panes.zig's P51 test (the pair's, written on its old base) called `Authority.init` and `Replica.init` with the road's flag the deletion removed (pane-test did not compile): the argument removed, as merge57 did in core/jj.zig; nothing in core/tape.zig, abi/wire.zig or core/views.zig resolved by hand; gate (Debug tui in the workspace, loads 2-10): core-test 916/1073 (157 skipped), shell-test 1115/1118 (3 skipped), pane-test 182/183 (1 skipped: the base's + the P51 test), term-test 15/15, kitty-test 45/45, addon-test 5/5, behaviour-test and --replay 275/275, consumer-test, process-test own 0 of 146 and as pairs 0 of 146 (themesel first time as a pair, alone 0 of 5 first time and 5 of 5 on the runner's retry: pair-8's open case); the soak --clients 5 diverged 0, unequal 0 at 30/80/207 ms, unlisted 0, the corpus 22 of 22, no leak; daemon.py on Debug and ReleaseSafe: plain 3 of 3 each, --restore PASS each (P44's test, failing on the base), --pair, --attach-upgrading, --clients 3 of 3 each, --far PASS on ReleaseSafe and on Debug 3 of 3 alone (once at load 10 by_hash saw a client join again); --upgrade from the installed build PASS; with --with-pair every mode passes on both builds (plain, clients, manage, launch, relink, far, restore, attach-upgrading, pair, window-clients, gui, games, kitty-image), its --upgrade both ways past pair-10's wall and failing later (far_exec; a client's check differing after a ReleaseSafe-to-Debug Upgrade); the frame and perf gate against tree3 (gpu/pp11-g): 77/77 frames, perfab corpus2x +0.105% (noise 0.048%), 121 counts within 0.1% (largest terminal-on-all +0.085%) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * pair: a pair's user is told a newer build is installed: the words were set ↵Gabriel Schneider6 days
| | | | | | | | | | | | | | only by a session's own frontend at its focus in (upgrade.noticeNewer), which a pair's session has not, and its client never asks: `Peers.input` marks a focus in from the pair's first client (`Peers.pair_focused`) and the session loop asks `noticeNewer` for it between steps (runtime/session.zig), the session's binary being the one an Upgrade replaces; attach clients as on the own path; daemon.py --upgrade with the variable now passes 'the newer build said' both ways and stops later, at 'the word said' (the upgraded session's 'Upgrade: now' on /screen: not chased) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * pair: a pair's session puts the user's terminal back when its client dies ↵Gabriel Schneider6 days
| | | | | | | | | | | | | | with no word (P48): a tty pair (runtime/main.zig `pair`) keeps /dev/tty and its termios as they are before the client enters it and hands them to the session (dev/tui/tui.zig `Term.pair`, `Kept`); `Peers` marks the pair's first peer (`Peer.pair`, from `Joining.own`) and a bye (`Peer.bye`) and says at that peer's leave whether it left with no word at all (`Peers.pair_left`: no bye, not let go by the session, not cut); the session's frontend (`Own.sent`, now before a no-daemon pair's end in runtime/session.zig) writes on a loss what the own path writes when a terminal is lost under it (`Killed`'s bytes, which now also turn the in-band resize off: vaxis's terminal query turns it on) and the cooked termios, and lets the device go either way (a terminal held open keeps an ssh or its emulator waiting); not across an Upgrade (close-on-exec) nor after the pair's client joined again; daemon.py plain with the variable passes on Debug (it failed at 'the terminal is put back'), its row after a killed stub listing `(tty)` under the variable (a loss: still a pair's, P36), and --upgrade counts the device let go at the exec; core-test 896/1056, shell-test 1098/1101 Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * pair: a window pair's session lists as a window's (P49): the `pardes` a ↵Gabriel Schneider6 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 Schneider6 days
| | | | | | | | | | | | | | the terminals' second road, the pty's bytes in the units to each client's own emulator (`Peers.bytes`), which only the soak could take (`--bytes`): the session's `Peers` is made with `.bytes` set (runtime/session.zig), every joined replica, a dump's or a pair's own boot, is turned to its own emulators as the soak turns its clients (core/replica.zig `takeJoined`: `screen_state` false, no predicted echo), and the process harness keeps the variable in a case's environment as it keeps PARDES_PAIR (test/process.zig `Child`); a client started without it against a session with it diverges: for the corpus through a pair's client window, not for a user (the switch for real clients is the terminals' line's); with it the corpus as a pair (PARDES_PAIR, a client window) is byte-identical to tree3's through frame 57, the kitty image in a terminal's pane (frame 50) included, where screen state diverges the client; frames 58-59 (WindowOpacity) differ and frame 61 (Font) never idles: only the own window applies or answers either (dev/gui/gui.zig `pollFrame`), a client window never does, and a window pair's session is the tui binary beside it; core/root.zig's machine_lines counts replica.zig's new getenv (76); core-test 896/1056, shell-test 1098/1101 Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | pty: a shell forks at its pane's grid, and the core hands its host every ↵Gabriel Schneider5 days
| | | | | | | | | | | | | | pty's size, pixels too (pardes-term-join-9, item 2 (B), points (a) and (c)): the spawn host call took no size and both hosts forked at the session's live screen (dev/Ptys.zig `spawn`, runtime/macos.zig `spawnShell`: `core.view().screen_h/w`), so a shell started again into a pane already sized (pty/ctl's exec, a finished command pane run again by exec.zig `runCommand`, a Restore's `revivePane`) ran at the screen's size and nothing resized it, the grid unchanged and `sync` emitting nothing (`stty size` said 50 160 in a 44x158 pane); and a pty's pixels were the live view's (host_io.zig `ptyWinsize` read `core.view().cell_pixels`) whichever view sized it; now `Effect.PtySize` (cells and pixels) is what the core gives its host for `spawn` and `pty_resize`, made by `Core.ptySize` from the pane's grid (or 9P's numbers) at the cell of the view that sizes it, a spawn performed after its step's `sync` reading the laid-out grid, and the hosts fork and size from it alone (`Ptys.take` sizes an adopted shell from it too: 1x1 then the size, once, its forced redraw kept, an ioctl to the size a pty has already sending no SIGWINCH); test (test/process/terminals.zig, a new case): a Term pane's shell, the same shell started again by pty/ctl's exec and a finished command pane run again each say the grid their pty/ctl reads back (fails on the base: 50 160 against 44 158); not covered: a new command pane made over 9P is placed a step after its fork, so its first size can still be the screen's Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | replica: 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
* | terminals: every client's terminals by the pty's bytes, the one road (the ↵Gabriel Schneider6 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
* pair: the process suite as pairs from 8 of 145 failing to 0, no golden ↵Gabriel Schneider6 days
| | | | | | | changed: a pair's first client takes the session's view instead of one opened beside it (core/replica.zig `Peers.viewFor` `own`, daemon.zig `Joining.own`, `Replica.initBoot` alike so the digests agree), as does a joiner of any session with no frontend, no client and no view kept for one (after a Restore's `views.only`, or detached since): the boot's terminals were sized by the session's own view 0, which nobody looks at, so a client's layout never resized them (`Pardes.sizes`): the `↑` pans and the pane a row off of shrinktag, windowops, layout-close, topbarexec, headersweep-restored; a size already taken is no resize (dev/tui/tui.zig `Shell.resized`: a client's start and its input thread's first size were two `.resize` events, `resizes=2`); a Restore tells its clients so and they join again saying nothing (`Peers.restoring`, `restore_words`, `Link.rejoins`: they were cut with no word and asked the daemon, which once in two answered nothing listed and the client ended, and when they rejoined they said "upgrading"), a client handed over while it restores joins the restored core at the next boundary (it was hung up on, and its redial's 100 ms showed the old screen), and the dump's messages are not put on the clock while they rejoin (runtime/session.zig `restore`: the "Dump" chip went); a pair's client enters its terminal before its own boot (tui.zig `runClient`: keys typed while it booted went into a cooked terminal, echoed as ^B and lost; winch as a pair pinned to one CPU 0 of 5, now 5 of 5; the own path takes them); the tty cases' private daemon and their pair's session are killed at the case's end (test/tty.zig `Tty.deinit`: 21 of them outlived this morning's runs); core-test 894/1054 (160 skipped), shell-test 1096/1099 (3 skipped) (+1 each, the Restore's test; firstOnPair now expects no reload at a pair's first join); PARDES_PAIR=1 process-test 1, 0, 0 of 145 (pagercolor once at load 12.9, on the known list; runs 2 and 3 with no case failing even once), own path 0 of 145, winch alone as a pair 20 of 20; daemon.py plain, --pair, --attach-upgrading pass on Debug and ReleaseSafe Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* client: an Upgrade from the installed build (main 6d937cd125ca) to this one, ↵Gabriel Schneider6 days
| | | | | | | the coordinator's release stage: a window exec'd at an Upgrade takes its size from PARDES_JOIN_SIZE (runtime/client.zig `execAgain`; dev/gui/gui.zig where `--geometry` is read), a string a test finds in the binary as PARDES_JOIN_VIEW is: test/daemon.py `knows_size`, and `pair_window_geometry` skips with a line said when the old window cannot pass its size (the installed build's: by design, its exec is the old client's); a far link cut with no last word dials again too (`replica.cutListed(why, session, far)`: the dial is the asking, the far daemon's "no session called" ends it), as near ones do since item 0: from the installed build `far_exec` lost its client before (2 of 6 runs) and still does once in five (the old far client is the installed build's code); a far client whose ssh link drops now dials again for up to 20 s before it says so Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* pair: the process suite as pairs from 13 of 145 failing to 7 that stay (the ↵Gabriel Schneider6 days
| | | | | | | goldens of one cause, open): the harness dials a pair's session, the launched client's child (test/process.zig `of`, `childOf`: it dialled the launched pid's socket); a Restore in a pair no daemon keeps is refused in words, as its Upgrade is (P42: runtime/session.zig `restore`: it let the client go and the session ended with its last link), and the three cases that Restore a pair run it with a daemon of their own root's (tty.zig `privateDaemon`, e2e_harness `PARDES_HARNESS_DAEMON`, process.zig `Detached.tty_daemon`, ended by `--kill-all` at its deinit); a pair's launch with no terminal says what the own path says and forks no session (main.zig `pair`, `noTerminal`: it said "pardes: NoDevice" after forking one); a terminal client ended by TERM or HUP dies of the signal once its goodbye is said and its terminal put back, as the own path's stub does (tui.zig `dieOfQuitSignal`: it exited 0 since pair-3), and the kill test takes a pair's hang-up as the close P36 ruled; PARDES_PAIR=1 process-test 8 of 145 (7 goldens of one family: resizes=2, a terminal panned in a view shorter than the one that sized it, a restored terminal's history; winch once), without the variable 0 of 145 Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* client: a link an Upgrade's exec cuts with no last word joins again: ↵Gabriel Schneider7 days
| | | | | | | `Peers.refuseAll` queues each client's `refused` after what it is still being sent and gives the writers 200 ms (`flushed200`), then `drop` cuts every link, so a client whose join's dump was still on its way read the cut as its session's end and exited 1 ("'NAME' let this client go"), with PARDES_PAIR or without (a `new --detach` session holding a 100 MB file, the Upgrade written as the attach is listed: 3 of 3 on main's ReleaseSafe build, 3 of 3 Debug); now a near link that ends with no last word asks this machine's daemon whether its session is listed still (`replica.cutListed`), and listed, joins again as one told `upgrading` (runtime/client.zig `Loop.run`; a first join cut mid-dump likewise, `replica.join`), so no flush bound decides a client's fate; a patient redial stops at once at "no session called" (`redial`: a session killed outright costs no 20 s of dialling); a far client and a no-daemon pair ask nobody (nothing changes); test/daemon.py `attach_upgrading` gains the round (two attaches to a 100 MB session, the Upgrade written as each joins; plain mode and --attach-upgrading): failed on merge48's builds, passes on both builds; tui core-test 885/1045 (160 skipped) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* integration: the pair's finished steps on the gathered line: pardes-pair-4 ↵Gabriel Schneider7 days
|\ | | | | | | | | | | | | (`rustnvoo`: an attach handed to a session as it upgrades is told so and joins the new process; the fast start, the boot as input zero: the wire at 27; a window client exec'd at an Upgrade comes back the size it was) and pardes-merge47 (`rprvwpnv`: the terminals' line at 26 and the library for a browser reader); three textual conflicts: abi/wire.zig's history says 27 and 26 each in its own words and the version is 27, test/daemon.py's WIRE is 27, core/replica.zig's Link keeps both lines' fields (the lag bound's `behind`, `least`, `fresh`, `lagged`; the pair's `held`); core-test 885/1045 (160 skipped), shell-test 1087/1090; its gate: .scratch/sketch/reorg/merge48, 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
| * client: what the pair's last rounds left, each a test first: a window client ↵Gabriel Schneider7 days
| | | | | | | | | | | | | | exec'd at its session's Upgrade comes back the size it was, not the default (runtime/client.zig `execAgain` passed `--attach=` alone, so the new process made a 1120x720 window: a `--geometry=900x560` pair's session went from 56x16 to 70x20 after an Upgrade to another build, with the variable or without (any `pardes-gui attach`); now the window's size at the exec, SDL_GetWindowSize, as `--geometry=WxH`); a pair's client exec'd at an Upgrade waits for its session at `ended` as before the exec (tui.zig and gui.zig `runClient` asked `opts.pair`, which the exec'd `--attach=` client has not: now every near client waits, a non-child answers ECHILD at once; not seen to fail here: the subreaper took the session first); tests in test/daemon.py: `pair_upgrade_views` (plain, --pair: two clients' own views, the pair's scroll and the attach's focus, the same after a same-build Upgrade: the screens by pyte, the focus by where typing lands: passed before this change too), `pair_exec_reaps`, `far_exec` (a far client, PARDES_REPLICA_FAR by the socket's path, execs the build at its start path and agrees after: passed before too), `pair_window_geometry` (offscreen, not test mode: failed before), the last three in --upgrade OLD NEW Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * integration: the pair's fast start on the landed main: pardes-pair-start ↵Gabriel Schneider7 days
| |\ | | | | | | | | | | | | | | | | | | (`xrkvvkkk`, the boot as input zero: the client makes its own core and says its digest, `boot`; the session's dump only when they differ) merged over main (merges 40 to 44: the typed slot fields, the 9P state in the join's dump and digest) and step 1 of pardes-pair-4; three conflicts, none by the compiler: abi/wire.zig's history and version (main 25, the boot 26: now 27, as 26 is the terminals' line's, merging now), Peers.join's welcome (main's typed `peer.view` with the boot's `peer.digest = digest` before it), `replica.join`'s first dial (the boot took the pair's arm out, step 1 put the upgrading redial in: both kept), test/daemon.py WIRE 27; tui core-test 878/1036 (158 skipped), shell-test 1078/1081 Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | * pair: the boot as input zero (the last step's design 3, way a2): under ↵Gabriel Schneider7 days
| | | | | | | | | | | | | | | | | | | | | PARDES_PAIR the client no longer waits for its session's init, dump and socket before its first frame: it makes its own core from the same options and arguments (replica.ownBoot, Replica.initBoot: Pardes.init on no tape, as the session's start, its file read on its own machine, then the view the session's join opens for it, Peers.viewFor, shared by both), draws it, and says its digest before its `far` (a new client word, `boot`, 0x0a: 0x09 is the server's zstd envelope, which a stream's reader unpacks whichever way it runs; wire protocol 26, after the other line's 25); the session's writer sends no dump when the joiner's boot digest is its own at the join, and the client, reading the welcome once its first frame is drawn (replica.confirmBoot, client.zig `confirm`, the start's inputs held until then: Link.held, Link.release), goes on from its own core, or, unequal (the file edited between the two reads, anything else a start reads otherwise), loads the dump in its place and starts again; what made boots unequal by construction, found by the digest's parts compared in a scratch build: a join's view settled the session's first effects (Pardes.settle in openView: its boot shell spawned and acknowledged inside the join), which a client cannot perform; the effects queued before a join are now performed after it, on the tape the client is sent (viewFor, queueFirst), so the boot shell's spawn and first bytes reach the client as units, as P32 asked, and the dump path gets them so too; and a boot stepped on the replica's own tape read the machine as a replica's step would (the shell, the directory): Pardes.init runs on no tape, the view on the replica's tape (no terminal reloaded there, as on the session's screen-state tape); confirmed over 100 starts of a file and 100 of a shell (see the report); a boot's terminals are made on the C heap (panes.emulatorGpa reads dump.terminal_gpa); a window's pair's client boots unwindowed, as the terminal binary its session execs (main.zig `pair`, Options.windowed); tests: core/replica.zig "a pair's client makes its own core ...: no dump is sent" and "... the file edited between ...: the dump is sent, loaded in its place, and the client shows the session's file", and firstOnPair's screen-state client now its own boot, confirmed with no dump, the boot shell's spawn and first bytes after, digests equal, no reload; the start (ReleaseFast, medium.zig, one build alternated, NOT quiet: loads 8-16): the pair's first frame best 9.5 ms against the own path's 9.9 (median 10.2 against 11.4), the client 45.0-53.8M instructions:u (the bar 56.7M), its session 17.2-17.6M beside it, the own path 53.5M bit-equal to the base's; confirmed 100 of 100 starts of a file and 100 of 100 of a shell, a window pair 17 of 17; tui core-test 863/1018 (155 skipped), shell-test 1060/1063, term 17/17, pane 183/184, kitty 45/45, behaviour-test and --replay 275/275, process-test 0 of 144 failed, as a pair (PARDES_PAIR=1) 16 of 144 failed (the base 17), both soaks diverged 0, unequal 0, checked/wrong 0, unlisted 0, corpus 22 of 22, no leak, daemon.py plain, --far, --pair, --relink, --launch, --games, --window-clients, --gui, --upgrade both ways (new->old failed once on a client's key under load, then passed twice) pass, an idle pair 0 and 0 wakeups in 2 s, gui unit-test 1656/1660 with only BaselineHarnessMismatch, the frame and perf gate against tree2 PASS (77/77 frames, corpus2x -0.008%, 121 per-operation counts within 0.1%), macOS lib (Linux host), aarch64-macos and FreeBSD build (loads 5-23) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | | integration: the terminals' side line on the landed main: pardes-term-join-4 ↵Gabriel Schneider7 days
|\ \ \ | |/ / |/| | | | | | | | | | | | | | (terminals by the pty's bytes: a client's emulator fed the session's bytes, reload at a join, the lag bound; the query rows' paint decided on replicated state; views.park's leak; a view kept for its client's rejoin; C and Alt-C on a long text walking on from the row last tried: 306 G instructions to 194 M; the soak's witness and watchdog) and main (pardes-new-upgrade); seven conflicts: the wire's version (the side line's 24 is 26 here: 24 is the bye's close byte, 25 the 9P state), Peers' join (the view typed, the lag limit a field's default), a peer's end (the view's index; cut joins again), the client's and the soak's bye (the struct, again or lagged), daemon.py's WIRE; three more the compiler found (a test's view typed: its index where a u8 is asked) Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * | integration (the terminals' line, NOT the main line yet): a client that ↵Gabriel Schneider7 days
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | falls behind lets go and joins again, a join's reloads never dropped and only of the terminals written, on the first client and the pair: pardes-term-join (with pardes-term-lag under it) and pardes-merge35; three conflicts, each two sides adding at one place: the tests at the end of core/replica.zig (both kept), the soak's fields and its end's checks in test/replicas.zig (the images' and the far client's both kept); one name follows: Peer.writeLoop's local for a cut link was named last, which the first client's Peer.last now is (cut_off); tui core-test 861/1018 (157 skipped), shell-test 1058/1061, term-test 18/18, the window builds; the soak, screen state: diverged 0, unequal 0, unlisted 0; BYTES: seed 0 at 30 ms two clients diverged (client 2 at digest 29, client 3 at digest 2): the divergence the join's report left open, here on the merged session: this line stays beside the main one until that soak is clean Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | * | replica: a client measures how far behind its session it is and past two ↵Gabriel Schneider8 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | seconds lets its link go and joins again from a dump, saying so once (P32 (b); step 3, item 2): the fault shown first (a client whose units came 2.1 s later than its quickest took them on: Link.quit false) and in the soak (the far client never let go: one join, its final screen 17.7 s after the flood's end); Link.behind, each unit's head's session clock against the client's own (Link.time), less the smallest difference seen; one constant, behind_max_ms = 2,000, near and far; past it the link let go (the bye's `again`, its view kept), the notice "joined again: N.N s behind" (Link.rejoins), the first unit after a join past it taken as the link now (a session's clock stood still while its machine slept; a dump that took longer than the bound: never a let-go at once, never a loop); the clock is the client's machine's, read in Link alone (no new line on root.zig's machine_lines; Link is no part of Pardes, so no digest or dump reaches it); a test that fed a simulated client clock with units of the real clock made them on its own clock; the soak counts the let-gos and how far behind each client fell; tui core-test 859/1009 (150 skipped), shell-test 1045/1048, term-test 17/17; the soak, screen state (--clients 5, 4 seeds): diverged 0, unequal 0, deltas 7093/0 7518/0 7603/0, quiet 590/0 472/0 541/0, unlisted 0, corpus 22 of 22, the far client 9/9/7 let-gos, others 0; bytes (--seeds 8): the far client shows its final screen in every run, 6.5-7.9 s after the flood's end, refreshed every 7.0-7.3 s (p50), others 0 let-gos and 2-10 ms behind at most, quiet 1077/0 1083/0 1457/0, unequal 0, BUT 5/3/1 near clients diverged at joins (reports/pardes-term-lag.md: open); ReleaseFast (2 seeds, 80 ms): 0 diverged, a join's unit on a client already there 9.6 ms p50, 17.7 ms at worst, the session's join step 1.4/14.3 ms Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | | | main: an upgraded session's `new` is the verb still, not a file's name: a ↵Gabriel Schneider7 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | session started as `pardes new [--detach=NAME] FILE` ENDED at its Upgrade: its new process is given the arguments it was started with after its record, the verbs were read only when not resuming, so `new` was taken for the file and FILE was 'the second' (badArgs: the process exits; its dump stays in the state file); with no file the session lived on by luck (`new` the ignored positional); found by the coordinator's check of the release build before the install (reorg/landing: eight variants: with a file dead in all four, without alive in all four, same build or another, on Debug and ReleaseSafe); test/daemon.py's pair rows: `new --detach=kd FILE` is upgraded, lives, and is attached to after Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | | | macos: the Mac's own tests take the typed Pane.Id (pardes-slots typed ↵Gabriel Schneider7 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Lsp.Request.pane and Inbox's acceptReader/pushOutput; runtime/macos.zig's tests still passed bare integers: `.pane = @intCast(view().active)`, `acceptReader(0, 23)`, `pushOutput(1, 1, ...)`), so `unit-test -Dplatform=macos` compiles again: on a real Mac (mbair-1, macOS 26.6.2 arm64, Zig 0.17.1) it was 3 compile errors at runtime/macos.zig:2115, 2269, 2340 and is now 18/19 (the one failure, "mac Restore keeps host state and rejects callbacks from the old core" at macos.zig:2274, `serial > old_serial`, fails the same on main); test code only: the library, the app and the e2e harness built without it Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | | | integration: six slot fields typed, the docking vocabulary, the Mac's ↵Gabriel Schneider7 days
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | callbacks and consumer-test, on six small faults: pardes-slots (Pipe.PendingPipe.pane, Ask.wait.pane, theme_file_pane, ThemeFileRequest.pane as Pane.Id; Authority.view_of and Peer.view as View.Id; layout.dockFrom and the prose; macos State.callbacks; the build step consumer-test) and pardes-merge42; one conflict, in Peers.detach, where the pair's lifetime rule (daemon.keepSession) and the view's type (peer.view.index()) met on neighbouring lines: both kept; tui core-test 874/1031 (157 skipped), shell-test 1073/1076, term-test 17/17, both soaks diverged 0, unequal 0, unlisted 0, the window builds; this line carries the client's heap corruption that came with pardes-merge40 (a fix is being made): not gated further until it has it Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T