summaryrefslogtreecommitdiff
path: root/core/Output.zig
Commit message (Collapse)AuthorAge
*-. 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_client, Output, lspmock, syntax, Pick, Query, docs: the Symbols builtin ↵Gabriel Schneider39 hours
| |/ |/| | | | | | | | | | | (a language server's documentSymbol) gives the Symbols picker's marks and order (UX DESIGN N, binding: "The builtin `Symbols` keeps reading the server but gets the same mark, order and qualified names, from `SymbolKind`"): walkSymbols keeps each symbol's SymbolKind, mapped onto N2's kinds (5 Class, 10 Enum, 11 Interface, 23 Struct, 26 TypeParameter a type; 6 Method, 9 Constructor, 12 Function, 25 Operator a function; 7 Property, 8 Field, 22 EnumMember a field; 14 Constant a const; 13 Variable, 15 to 21 and 24 a var; 1 File to 4 Package a module; any other the other), and names each in the ones it is in (a DocumentSymbol's nesting, a SymbolInformation's `containerName`): a row is `shapes.rs:5:5-8 m Shape.side`, the rows types, functions, fields, then the rest, each in the server's order; the +Search keeps that order: a file's symbols are neither sorted by their places (Output.sortResults) nor laid out as Locations, which put a file's rows in their lines' order (Output.usesLocationsConfig): a row each, as the picker lists them; the walk's list picker (`Jumps walk`, Ask's) takes them in that order (tty `lsp` with zls: `f helper`, `f main`, `c std`, was `std`, `helper`, `main`); an index's Symbols (SCIP, dev/lsp/Scip.zig) keep their rows unmarked, one row each now too; the mock answers documentSymbol with a nested list in no kind's order (a const, a function, a struct with a field and a method, an enum with a member, a module); docs/typ guide's `Symbols name` and the reference's Symbols say the marks and the order; and three faults of the change before's rows, which its pictures showed (each TEST FIRST: the syntax.zig and Pick.zig tests failed with them first; the pattern guard came with its JavaScript case, not before it): a test whose name is longer than 200 bytes was no symbol, so its body was no scope and its local structs and functions were listed as types and functions (Pick.zig's own tests: `t typeIn = struct`): a name that long is cut, on a character, and a test's body lists nothing (370 rows of core/Pick.zig to 247); a name field is taken whole when it is one line (C++'s `namespace v8::internal::torque` named `v8`, now whole; a value binding's must still be a name, never a pattern: `const { x, y } = a`, OCaml's `let () =`); the qualifier dimmed in a row ran to the name's last `.`, a test's sentence's (`(SPEC §6.3, §7.3)` dimmed most of it): it is the candidate's `base` now, the qualifier's length from the gather, which also gives the scorer its basename bonus on the name; core/root.zig's import of syntax.zig (the change before) says what it does: without it a -Dtest-filter run compiles none of syntax.zig's tests, while a whole run has them (core-test 1135/1308 with it or without it; the change before said they ran nowhere: wrong); RUN (TEST FIRST): test/behaviour/language_servers.zig "language-servers: a server's Symbols are the Symbols picker's rows ..." opens shapes.rs with no index (the server asked) and asks the +Search's rows in that order: with walkSymbols' marks alone they came in their lines' order (`c LIMIT`, `f main`, `t Shape`, ...: the sort and the Locations layout), passes now; the index's Symbols test asks one row each (`lib.rs:1:11-15 Shape`); test/snapshots/lsp.golden re-recorded: only its symbols snap's three rows (marked and grouped) and the preview landing on their first, `helper`'s line 3; GATES on this stack (the change before under it): core-test 1135/1308 (173 skipped; base 1127/1301 with the base's one failure, a CPU-time test under load: colors' "the whole ring resolves in 150 ms"), shell-test 1356/1359 (3 skipped), pane-test 183/184 (1 skipped), behaviour-test 281/281 and --replay 281/281, process-test 1 of 147 failed (tty editing: lsp, its golden: re-recorded, the ten `tty editing: lsp` cases 0 of 10 failed), term-test 17/17, kitty-test 45/45; the dump fuzz (Names.Cand.group, Stream.Batch.symbols) at 40,000 join seeds twice and 1,779 image seeds 13/13; the soak `replicas -- --clients 5 --rtt 30,80,207`: diverged 0, unequal 0, quiet checks 421/0 415/0 590/0, unlisted stops 0, the corpus 22 of 22 scenes the same, no leak; the gui unit-test 1960/1964 (4 skipped; its one failure the perf check's BaselineHarnessMismatch, every base's); core-test, shell-test, pane-test and behaviour-test again after the three faults: the same counts; the pictures (the S kit at 26 px, neonotte84, 100x30, typed through the pty; .scratch/walkui/W6/png): today's install (install74) beside this tree's Debug gui, SPC s s on core/Pick.zig (today 127 rows of declarations, `pub fn deinit(...` first; here 247, `t Pick = @This()` first, the types, then the functions ...) and on V8's torque-parser.cc (today 132, here 273 under `v8::internal::torque.`), and `count` typed (today the cursor on `count`, then `paneCount` and every row whose signature holds c-o-u-n-t, `[]const u8` among them; here `f count` current, `f paneCount`, `c counts_zig`, then the tests whose sentences match); no frame or perf gate (the user's rule of 2026-11-26); load 3.0 to 14.2 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
| * body_layer, Places, Query, Output, Tables, File, Prompt, Pick, Core: the ↵Gabriel Schneider40 hours
|/ | | | | | | body draws every colour from the chrome (the themes programme's L2b; DESIGN.md R7-R12, B5, B6, G7), worked out once a theme change by Chrome.of and read by `p.chrome()`, never by a theme's own fields or the old views: ONE SELECTION FAMILY (R7): the primary range, a `gw` label and a target with no number on `page.selection` in its ink, a multi-cursor head that selection reversed; every other range, a hover, a look preview, `m a`/`m i`'s region, a selecting prompt's dimmed preview and a query pane's current row on `selection_secondary` (the page halfway toward the selection in OKLab) in the text's own ink, where they were four sRGB mixes (25 % and 50 % toward a page that was `dark`'s tag) and a secondary drew `sel_fg`; the B1, B2 and B3 sweeps the chrome's `sweeps` (select, exec on the error hue, look on the added hue; acme its own), the body's and the tags' alike, where body_layer.buttonTints tinted the selection toward the keyword, string and number; HITS (R8, G7 as the designer's position): every place, a picker's landing line, a query pane's and a results pane's match on `hit` in the text's ink (was the theme's search ink), the current place and a landing line's matched span solid in the hue with the page's ink (`hit_current`, `hit_current_text`), where Roles drew a third tone step (1.9:1) that 68 themes could not show and a query pane its search ground; a search whose field is no regex dims its last places, the current on `hit` and the rest on `hit_faint` (new: the page halfway toward the hit, R7's secondary for hits; DESIGN.md is silent); SEVERITIES (R9): a message's words and detail after its line (Messages.inkOn, new: an error, a warning and a question their severity's ink on that ground, an echo, a notice and progress its dim ink), a diagnostics list's labels, a rename's struck name and its new one, each `page.severity`, where they were the theme's raw diagnostic inks or Roles' pushed ones; DIFF GROUNDS (R10): a patch's rows, changed words and faint lines (File.recolorSyntax), a pipe prompt's and a code action's ghost rows, `add` and `del` with the page's text, where colors.Grounds mixed the page 18 %, 28 % and 7 % toward the palette's green and red once a frame; THE REST: line numbers `line_number` and the caret's `line_number_current` (R12: derived where a theme has none, it was the plain number), the wrap marker the line numbers', a tree's guides (a call stack's) and their wrap pads the page's dim ink (were the info ink: a guide is meta, B5's dim row), a location the line numbers' ink, keys, `▸` and the sam fence `page.key`, context rows, a table's header and a hover's ghost lines on the plain tag's ground (its ink for the hover), a table's rules the page's rule ink (were `border orelse lineno`), the rail and thumb the chrome's, the body's page and text `page` (a theme that leaves its page to the host leaves it its text, as before), syntax `syntax`; DELETED: Core.bodyChrome and its cache (`body_chrome`: a whole Theme compared with meta.eql for every decorated row and every wrap-pad cell, C1's A7), body_layer.buttonTints and buttonInks, the Grounds recipe (colors.Grounds is the library's view on the chrome now: lib_syntax exports it, test/consumer pins its relations), Roles.hit and hit_current with hitOf and their floors, ChromeTheme's search_fg, diagnostic_info, diagnostic_hint and lineno (nothing reads them now); every value is Chrome.of's, worked out at a theme change (finishThemeInitialization, setThemeIndex, previewTheme, loadThemeFile), never a frame, a row or a cell: the one new one, `hit_faint`, is one OKLab mix there; RUN (TEST FIRST): Places.zig "places: each on the hit ground in its text's own ink, the current one solid ... the selection over it; a search whose field is no regex dims them, the rest faint" (orchard: after `/alpha`, Enter and `j`, the current place `hit_current` in `hit_current_text`, the other `hit` in the page's text; searched again, its current under the selection; with `(` the others `hit_faint`): fails on the base at its current place (Roles' 1.9:1 step under the text's ink, where the hue in the page's ink is asked; its first version, asked during the live prompt, failed there on #3c614a: the body's selection is the current place then, drawn over it as before); Query.zig "a query pane's hits are the body's ..." (a `/alpha` query pane: the row's match `hit` in the text's ink, the owner's current place solid, the current row `selection_secondary` between its places and to its end, none below): fails on the base at Query.zig (expected #917a53, found #5e4923, the search ground); body_layer.zig "the body's selections are one family (R7) ..." (`eC` in orchard: the primary on `page.selection` in its ink, the other range on `selection_secondary` in the text's ink, its head reversed, a B2 sweep held over beta on `sweeps[1]`): fails on the base at body_layer.zig (expected #24382c, found #243a2d); body_layer.zig "the body's surfaces take every colour from the chrome: none reads a theme's own fields or the old views (DESIGN.md B6)" (the source test: body_layer, Places, Query, Output, Tables, File, Prompt, Pick, jj and ansi, their code before their tests: `theme()` read for its name alone, no chromeTheme(), bodyChrome, .roles, Grounds or LegacyTheme); re-pinned to the chrome and failing on the base: Prompt.zig's pipe ghosts (del.row #331a12, was Grounds' #302b25) and `/`'s `▸` (page.key #add38a, was Roles' #bada9d), Pick.zig's code action ghosts and its landing line, body_layer's motion targets, the build error's `✗` in `page.severity[0]`; colors.zig "line numbers stay quiet ..." (a ThemeFile with no current number: R12's derived one, 4.5:1), look.zig's hover preview on `selection_secondary`, test/output.zig and test/panes.zig's results colours (hit, page text, line numbers, the warning severity); GOLDENS re-recorded (13, orchard unless said), each class read: (1) R8 hit ink: a match on #5e4923 (orchard's own search ground, kept as its `hit`) in the text #e5eee5 where its search ink #f7e4a5 was: callstack 6 cells, psearch 15, stepgrain 26, lsprelpath 11; (2) G7 current hit: lsprelpath row 20, the owner's current place in a query row, #0d1410 on #917a53 (the hue held 4.5:1) where it was #f7e4a5 on #5e4923, 9 cells; (3) R7 secondary: #243a2d (sRGB half) to #24382c (OKLab half), the text's own ink where `sel_fg` #f5f7ee was: multicursor 2 cells and selregex 24 (secondary ranges), stepgrain 285 and lsprelpath 185 (a query pane's current row); (4) R10 diff grounds: diffview rows 12-19 (the diff pane's own rows: added #263025 to #132503, deleted #302b25 to #331a12, 558 cells; the same values the command pane's diff took in L2c), diffstack rows 26-29 (a faint added line #171f18 to #101c0b, changed words #364131 to #203900 and #453832 to #53251b), pagercolor rows 36-37 (a +Pager's faint lines: #1a1d18 to #211812, #171f18 to #101c0b); markers and syntax inks unchanged; (5) a tree's guides: callstack rows 11-21, #92d1de (the info ink) to #666f68 (the page's dim ink), 35 cells; (6) key ink: fsearch's `▸`, #bada9d (pushed over seven tag grounds) to #add38a (the accent held on the page); (7) R7 exec sweep: headersweep and headersweep-restored, a B2 sweep on the header, #f5f7ee on #5b7e5a (the selection tinted toward the string) to #e5eee5 on #4c251b (the error hue a selection step off the page), 8 and 16 cells (draw.zig's sweeps, moved with buttonTints); (8) R12: themesel row 26, the caret line's number in solarized_dark (#586e75 to #7f9193) and acme (#999980 to #74746a), themes with no current-line number of their own; no text moved, no other golden; GATES: core-test 1132/1305 (173 skipped; the merge's 1128/1301 + 4), shell-test 1353/1356 (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; 13 re-recorded above, ttyhelp unmoved), term-test 17/17, kitty-test 45/45; gui unit-test 1957/1961 (4 skipped; its one failure the known BaselineHarnessMismatch; test/consumer's Grounds relations pass on the chrome's rows); PICTURES (the S kit, 26 px, 100x30, `Jumps walk`; before = install74's pardes-gui, after = this tree's Debug gui): .scratch/themes/L2b/png/, `<state>-<theme>-before|after.png` and `pair-<state>-<theme>.png` side by side, in dark, neonotte84, orchard and acme: `search` (a live `/words`: the current place is the body's selection, as before), `landed` (Enter, then `j`: the current place the solid chip), `selhit` (`x` over a hit), `grep` (SPC f g count: the preview's landing line and matched span), `error` (`:zig build`'s error words after report.zig's line 11: dark's were its grey text, red now), `diff` (a .diff file's rows); the dump and the digest unchanged (`body_chrome` was derived, `theme_chrome` local), so no fuzz or soak; load 3.2 to 9.7 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
* Messages, Pick, Output: where jumps walk, SPC e lands an error's places as a ↵Gabriel Schneider3 days
| | | | | | list in the pane's walk through D's picker, and SPC h m is a picker over the history in the pane's tag (walk UI G item 2c, SPEC §10.4, §5.1's messages source), C's stopgaps replaced: SPC e (Messages.act) made a +Search under the pane and walked it with the Look walk; now, when Pick.asked (jumps walk, not a 9P script), it opens Pick's `list` with the places as rows, its word `✗ <cause>` (cut at a character's start to the word's 24 bytes), and lands its first row at once as the prototype's actOnMessage does (openPicker then accept): the pane steps (or its reader, the pane being held), the list word goes into its trail before the place, n and N walk the places through Pick.walkList; the history (Messages.history, from SPC e with nothing to act on and from the Messages word, SPC h m) is Pick's new source `messages`, its rows Output.messagesText (openMessages' text, split out), the newest first, a place indented under its error; Enter on a message row gives the keyboard to its cause's pane while it is open, on a place row Looks the place; C-q keeps it as the +Messages (Pick.keep); the source is not offered among the picker's other sources (its second row), as `list` is not; where jumps open panes, and for a 9P script, both are as C made them; the Message and Messages docs say so (builtins-{tui,gui}.json regenerated); TEST FIRST: Messages.zig 'where jumps walk, SPC e lands an error's places as a list in the pane's walk, n walking them; SPC h m is a picker over the history…' (no pane made, the caret on the first place and then the second, the word `✗ @p9 zig build 1/2` then `2/2` in the tag, the history's rows newest first, Enter on a message, C-q the +Messages); C's own SPC e test keeps the +Search way (jumps open panes there); GOLDENS: builtins (SPC h m's doc two rows longer: the rows under it, Tutor's among them, two lower; the +Look's line 237 for 236; tty_boot.zig's click on Tutor's row 32 for 30) and leader (the same doc rows in help-group), nothing else; tui core-test 1035/1204 (169 skipped), process-test 0 of 146 failed after those two updates (2 before them: those two) Co-Authored-By: Claude Opus 5.5 <[email protected]>
*-. walk UI M2: M1 (lines A to moosvmpn, B to ozlumvqo, D to uxrmlvno) + line C ↵Gabriel Schneider3 days
|\ \ | | | | | | | | | | | | | | | (vxmpyyst, on main) + A2's fixes (to mzmzklqu) merged, each conflict resolved by what both sides meant: Layer.Kind gets both new kinds (A's band, C's notice_row); root.zig's layers are C's order (the notice row's layer after the workspace tag's, NOTICE_LAYER_BASE one on) with A2's single BAND_LAYER after the notice bands (draw.joinBand takes it, A2's vlkqpnxq); draw.zig's header arms list both kinds; config.zig's leader paths keep A's Keys (SPC h k) and C's Message (SPC e), its settings B's Jumps and C's MessageLinger doc; panes.zig's replica keeps A's derived band_rows and drops C's removed msg/msg_older lengths; keys.zig handleKey answers C's question given the keyboard by SPC e first, then A's tag states; Messages.zig pushes the leader chip only with a last-used leaf (A's rule) in C's bands, C's notice-row test replacing the removed chips' stack test; core/Core.zig's TreeContext test sets a last-used leaf for its leader chip and no longer expects the body's rows kept under the leader (A's rolled level wraps the tag: TagState); test/behaviour/keys.zig's PDF case looks for A's key cell ` ␣ ` in the panes only (C's panesShown: the notice row says SPC h m); docs/typ/builtins-gui.json regenerated (A's Keys was missing; tui's unchanged); the four conflicting goldens regenerated (process-test --update) and every changed row read against both sides (.scratch/walkui/G/gdiff.py): find (A2's rolled SPC f level over two tag rows, C's notice row and the panes of the bottom column a row up, the Find chip gone), leader (the rolled levels with D's Resume and C's Message among SPC's leaves, the Help chip gone, the notice row, C's longer Messages doc), builtins (A2's Help-word rows, A's Keys in SPC h's help, the +Look line 236 for 224 under the longer +Help, the notice row), ttyhelp (D's Resume in the help list, Help's count 136 for 133: Resume, Message, Keep), nothing else; tui core-test 1031/1200 (169 skipped, 0 failed), process-test 0 of 146 failed after the four updates (4 before them: those four) Co-Authored-By: Claude Opus 5.5 <[email protected]>
| * | messages: SPC e acts on the message the notice row leads with, SPC h m is ↵Gabriel Schneider3 days
| |/ | | | | | | | | | | the history newest first, and Esc at rest takes a thing at a time (pick-ui SPEC §10.4, walk UI line C item 5): the Message word (SPC e, quiet: what it does shows) lists an error's places in a +Search under the pane and lands on the first (today's list, walked by the Look walk until agent D's picker lands lists in the pane), the error gone; a question gets the keyboard in its tag (View.answering, item 4); anything else, or nothing, opens the history; the history (Messages, SPC h m) is the log ring newest first, each line its kind's glyph, a live error's places under it, a question's answer logged after it; Esc in normal mode at rest takes a search's tints first (Places.clear), then the warnings and errors, then the extra selections (the primary kept), and only then goes back to the previous pane; tests: Messages.zig 'SPC e on an error that names places lists them under the pane and lands on the first, on a question gives its tag the keyboard, and on anything else opens the history, the newest first', 'Esc at rest takes a search's tints first, then the warnings and errors, and only then goes back'; docs/typ/builtins-tui.json from the registry; tui: core-test, shell-test, pane-test, behaviour-test pass; process-test 0 of 146 failed after the builtins and leader goldens took the Messages word's longer doc line Co-Authored-By: Claude Opus 5.5 <[email protected]>
* / Pick: a picker unrolls in the tag of the pane its Enter lands in (walk UI, ↵Gabriel Schneider3 days
|/ | | | | | pick-ui SPEC.md §3.5, §5.1-§5.3, item 1 of line D): core/Pick.zig, a picker the session's (Pardes.picks, a ring of max_lists 8, each named by a serial from the panes' counter so the disk engine's target names it as it names a pane, Stream.receive giving it its batches through Query.take, now taking either), live in a view's tag as TagState kind pick (TagState.pick its serial, host its landing pane: the asking pane when it reads, else its reader, else a pane made for it where its reader would go, an empty +Preview until the preview fills it, taken away by Esc); its sources Query.zig's producers re-presented: Find's listing from the disk engine's worker and Recent, Panes, Symbols (Query.gather, the name gathering startSource did, now shared), the jump list (Output.jumpsText, what +Jumps lists) and a list's rows handed over (a language server's answer, titled by its word), all scored by Names a frame's count at a time; Grep's lines from the worker after its pause, All the places each open text finds (as Query's All); the head ` ␣ f Find pick 3/6 ⋯` (key cells from the source's leader keys, the word, the field, cursor/total, ⋯ while scoring or searching) and a second row of the other sources' words under spines continued from the key cells (TagState.Head.cells counts the second row's spines, which Band.findSpines hangs the band from); the band's rows eleven around the cursor, made in the frame's arena for the rows shown only (O(rows shown): a Find of 50k paths makes 11 rows a frame), a place prefix in the name's tint, a path's directory dimmed, matches in the match tint; the preview is the landing pane's body: the current row's file at its line (a Grep's matches lit as its places), taken from an open pane's text or read, on the frame after the cursor stood (never on the key that moved it: Pick.busy asks the frame), a reading pane's own text set aside meanwhile (Pick.aside) and put back when it rolls up, a twinned text never previewed in; TagState.toRest rolls a live picker up first, whoever puts the tag to rest; A's API: TagState.Kind pick and its pick field, Band.takes/of's pick arm, Band.Row mark/pre/faint (drawn in draw.zig joinBand), Band.place holding a step to the band's width, TagState.point on a picker's row; TEST FIRST: Pick.zig "a picker from a held pane unrolls in a reader made for it ..." and "a picker from a reading pane unrolls in that pane, its own text set aside while it previews and back on Esc"; core-test 1014/1180 (166 skipped), 0 failed Co-Authored-By: Claude Opus 5.5 <[email protected]>
* scroll: a view's top is a line and a row within that line's own wrapped ↵Gabriel Schneider4 days
| | | | | | | rows, and a scroll moves it by rows (P62, round 3, on the layer's new model where the `Changes` layer's lines are lines of the buffer): a wheel's notch, the glide, PageDown/PageUp, zj/zk, Ctrl-d/u, zt/zz/zb and the margin (`scroll_off` now ROWS) go a row at a time through a line wrapped over many rows and through a long description line of the layer, where the base jumped all of a wrapped line's rows at once (the user, 2026-11-23: "the scroll view jumps around near deleted lines on the diff view"; one-row deleted lines were cured by the layer's second step, a wrapped one was not): TESTS FIRST: core/jj.zig "a view scrolls by rows through a line wrapped over 12 rows and a change's description wrapped over several (a line of the layer): ..." (a notch is one row down the whole text and back, the notches the text's rows exactly; PageDown/PageUp a page of rows; zj/zk one; a held j and k keep the cursor's row `scroll_off` rows inside the body) failing on the base at notch 21 (line 20's 12 rows crossed at once), and "a client wheels its session's view a row a notch into a change's description wrapped over several rows ..., agreeing at every notch; a client joined over that view loads its row"; kept from round 1: core/replica.zig's join over a view scrolled into a wrapped line (with a rollback and a dump) and the explorer of a view's rows (30 seeds), dev/gui's glide a row a notch; THE CHANGE, taken from pardes-row-scroll (`xrxmqlnw`) and -2 (`xxzmwnvq`) without their ghost-row "blocks" (a block is now just a line's own rows): `File.State.scroll_row` and `views.PaneView.scroll_row` in the generic walk (digested, dumped, copied; a dump of 34 loads at its lines' first rows), the wire 35; core/File.zig `Top`, `rowIn`/`rowWalked` (a line's rows as fillBody wraps them, `guideOf` shared), `rowOf`, `lineRows`, `top`/`setTop`, `walkRows`/`walkKnown`, `rowsTo`, `rowsOf` (off the map where it holds the line), `mapFresh`, `scrollRows`, `shownRows` (the geometry laid out first), `show` (a cursor's or a result's row inside the band, the line's rows whole when they fit), `textRowLine`, fillBody's skip to the top's row walked once a geometry (`Pane.top_skip`, derived), the geometry's key with `scroll_row` and stored as what the map was made from; the one-row fact `State.widest` (`Widest`, an upper bound kept by the index's own vector passes `countLines`/`fillLines`) so a view whose lines are each one row walks nothing (`oneRow`: line arithmetic, checked against the walk in Debug); `fitEnd` a vector of printable ASCII at a time; the callers in rows: panes.zig `scrollBy(tab, delta)` and `ensureCursorVisible` (a file's through `File.show`), the wheel and the rail and the edge scroll (mouse.zig), Ctrl-d/u (normal.zig `halfPageMove`), zt/zz/zb, Ctrl-f/b and PgUp/PgDn (Text.zig `scrollViewMove`), Look's reveal and centring, Places' `goTo`/`restore`, Query's `showCurrent`/`caretTo`, the frames' `Region.row` and the glide (dev/glide.zig, the window's `topOf`); test/perf.zig's checks by (line, row) and its seek at a line's first row; Debug in the workspace: core-test 963/1129 (166 skipped), shell-test 1172/1175 (3 skipped) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* help: bare `Help` lists every builtin of this view as before, a row each ↵Gabriel Schneider4 days
| | | | | | | (its keys, its name, its other shortcuts), now with its whole documentation under it, a line a paragraph, and a blank line after; `Help <name>` shows that one alone, and `Help <keys>` the builtins under SPC and those keys (the user's words of 2026-11-23: "the Help command wiht no arguments should list all builtins like now but with their larger-ish documentation, and the Help builtin with arguments should show the documentation specific for that builtin only"): Help took no argument, so `Help l` ran as a shell command and only `SPC l ?` opened a group; now `Help` takes one (core/builtins.zig `Help`): a builtin's name as the registry takes it, or an addon's word, opens its row, its documentation and what the list does not say, a line each (core/Output.zig `writeWordHelp`: its keys spelled out, its argument, a setting's values (`Settings.takes`), what it acts on and so which ctl takes it, a window's word in a terminal, and `pardes do <Word> [ARG]`); SPC keys open that group (`openHelp`, as `SPC <keys> ?` does); a word that is neither fails, `Help: <word>: no such builtin, nor SPC keys`, the +Help left as it was; every Help fills the one +Help (openRead, as before: a second replaces its text); the header is one paragraph, wrapped by the pane, not three lines broken for a 40-column pane; an addon's word's row puts its name in the builtins' name column, `(addon <kind>)` after it and its doc under it; the paragraph "Callstack: static caller chains, ..." is gone, Callstack's and Callers' documentation say it; tests: test/behaviour/builtins.zig "builtins: Help holds every builtin with its whole documentation, `Help <name>` that one's alone, and B2 on a builtin's name in it runs it" (through 9P alone: for every word of /commands, `Help <word>`'s documentation is in bare Help's text whole under its row, begins with its /commands summary and holds no other word's; `Help diff` refused; `Help c` the column group; B2 on `Newcol` in `Help Newcol`'s row adds a column), core/Output.zig's full-Help test (rows, each one's paragraphs, the language keys), test/behaviour/addons.zig's addon row, test/panes.zig's Tutor click finds its row by the pane's wrap map (the documentation above it wraps), test/process/tty_boot.zig's waits for the new header; docs/typ/builtins-tui.json regenerated (Help takes an argument); core-test (Help) 12/12, behaviour-test (Help) 4/4, pane-test (Help) 4/4, Debug tui; the whole suites run on item 4's change, and the process-test goldens the Help pane shows change in the last change (the full index's scroll is set once the documentation is written) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* layers: a file at a revision: the address path@rev and path@rev:line, ↵Gabriel Schneider7 days
| | | | | | | resolved by a Look anywhere (a file really named so wins; the path must be a file), and At <rev> in a file's pane, open the file as jj has it at that revision in a pane named path@rev, coloured as its file (File.langPath), read-only (File.edit refuses a key's splice, edit.zig a whole text's; a bare Save says so); At in such a pane turns it to another revision in its place, bare it goes back to the file; what jj says is the session machine's: core/jj.zig runs it as a site of the step's tape (Site.jj: jj --ignore-working-copy file show, in the file's directory, the name a literal fileset), on an io of its own (the tape's spawns nothing: its allocator fails), its answer recorded, a replica replaying it and never running jj; jj's refusals in its words (At: Revision `x` doesn't exist, No such path, no jj); tests in a jj repository made in the test's directory: At's open, the read-only edits, the Look at a line, the turn in place, the refusals, and a client that replays the open of path@rev:2 ends with the session's digest; tui core-test 879/1037 (158 skipped); the tip gated whole: core-test 880/1038, shell-test 1080/1083, pane-test 183/184, behaviour-test 275/275 and --replay, process-test 0 of 145 failed, term 17/17, kitty 45/45, addons 5/5, consumer-test, both soaks diverged 0, unequal 0, unlisted 0, corpus through a client 22 scenes, daemon.py far, games, window-clients, clients x5, relink, launch, pair, gui, and --clients x2 on ReleaseSafe, macOS and FreeBSD cross-builds; daemon.py plain on ReleaseSafe times out at pair rows as main itself does (2 of 2 on main) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* build: the grammar set is one option, `grammars`, with `none | minimal | ↵Gabriel Schneider8 days
| | | | | | | full` (pardes-build-2 item 3; the start design's step 3, P31's lean): for a package that depends on pardes `.grammars = .minimal` where it wrote `.@"tree-sitter" = .minimal`, and for pardes's own products `-Dgrammars=minimal` where `-Dtree-sitter=minimal` was (one option, not two spellings of one: no live gate script passes -Dtree-sitter, only two configure-matrix scripts of an earlier agent's and the first build pass's shapes script, which also name test/lib and the deleted `disabled` and change anyway; the three consumers' lines change for `.grammars` anyway); `none` is tree-sitter's runtime with no grammar, for a program that hands in its own at run time (sketchbook's examples/live, which set `zig` only because it was the smallest set that kept syntax on: `zig`, its one setter, goes, and the Zig grammar is a minimal one: grammar_manifest's tiers are minimal and full); syntax.zig's sets read `none` (`minimal_grammars` is `!= .none`, four tests' doubled condition one), the Build pane prints the set's own name (`none` was what it printed for the zig set), and abi/wire.zig hashes the set as the four words it was hashed as, so a minimal or a full set's semantics did not move (8b6382fddba7b382 full, 0520895ac88d25ad minimal, as at items 1 and 2) and `none` hashes as highlighting with no grammar (794d23e0255281f8; the old zig set's hash is gone with it); test/lib asks with `.grammars`; the manual's table, its library section's two lines and the changelog say it; build.zig and build/ 2,974 -> 2,971 lines; -Dgrammars=full, minimal and none each install and pass lib-test, and the old spelling is refused (`invalid option: "tree-sitter"`); the suites run on the stack's top (item 5) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
*-. integration: a terminal joinable and exactly reloadable with the engine's ↵Gabriel Schneider8 days
|\ \ | | | | | | | | | | | | | | | | | | bytes kind made right, a client's kept list let go for free at its bound, the build's options said once, and ghostty's page and zstbi's resize the same on every machine, on the far client's fixes: pardes-term-1 (the terminal by the pty's bytes, steps 1 and 2), pardes-perf-fix, pardes-build-options, pardes-patches and pardes-merge25, merged without a textual conflict; tui core-test 856/1006 (150 skipped), shell-test 1042/1045, term-test 17/17 before the patches joined; the coordinator's gate in the ledger (reorg/merge26) Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * | build: one options module a module set, `pardes_options`, and `build_info` ↵Gabriel Schneider8 days
| | | | | | | | | | | | | | | | | | | | | beside it (the start design's step 2, pardes-build-options change 2): `core.module` makes the set's options from the build's `ShellConfig` and the set's `Core` (the platform, now a `Core` field in place of a module handed in; the grammar set; the terminal; pardes-isolate's `isolated`; the addons compiled in and the pdf one with them, `builtin_addons` and `builtin_pdf`; tracy; the workspace tag; embedded sources; the library's `lib`), one module shared by the set's five as `pardes_config` was, and `build_info` (version, commit, change, built, deps) made once in `assemble` and given to every set; the three one-value modules made in both values (`term_options`, `pardes_isolation`, `builtin_addons`), `shellOptions`, the six `Parts` fields that held them, `Parts.tracy` and `Parts.embed_sources` (the `ShellConfig` in `Parts` holds both) and the assembly's two options (`opts`, `gui_opts`) go; the library's `pardes-syntax` and the editor (the library's and hxlib's) get `pardes_options` with no terminal, the editor's with `lib` as before; the sources' imports follow, one identifier a line (abi/wire.zig and core/Output.zig import both, the hash's and the Build pane's lines reading the version, commit and dependencies from `build_info`); test programs see it as before, through the core module's import table (pane-test, behaviour-test); `pardes version`'s semantics line did not move on any product (38b5ae573b965550; d41689a1f97605b8 with -Dtree-sitter=minimal); build.zig and build/ 2,992 -> 2,960 lines (3,005 at the base); every shape configures and builds as on the base, pardes-isolate and -Dtree-sitter=disabled failing with the base's same errors (pardes-isolate reaching them through its own options module); tui core-test 848/991 (143 skipped), shell-test 1027/1030, pane-test 183/184, behaviour-test 275/275 (and -- --replay), term-test 15/15, kitty-test 45/45, lib-test (11/11 in the consumer), hxlib 538 cases 0 mismatches, process-test 2 of 144 failed (lspcomplete and lspcompletemoved, the base's), gui unit-test 1625/1629 (the perf check's BaselineHarnessMismatch, the base's); the test names of every suite equal the base's (ledger); the frame and perf gate (gpu/bo-s2 against tree1) PASS: 77/77 frames byte-identical in Debug, the alternated window corpus2x -0.104% (pictures identical in all 10 runs), the 97 per-operation counts within 0.1% (largest image-frame +0.0345%; against the coordinator's pardes-merge22 gate m22-g, 90 within 5 ppm, deep-sel 8-10 ppm, image-frame up to 85 ppm, its known noise); load 5-25 on 16 cores Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * | build: the dead and the doubled options go (the start design's step 1, ↵Gabriel Schneider8 days
| |/ | | | | | | | | | | | | pardes-build-options change 1): `ShellConfig.prebuilt_shaders`, set at build.zig:147 and read nowhere (the `-Dprebuilt-shaders` flag stays: gui.make hands it to sketchbook and the perf identity names it); `tools.add` and `core.assemble` handed the grammar set and -Dtracy beside the `shell_cfg` that holds them (`ShellConfig.tracy` is the checkout's path now, so Parts and the perf identity read it there); `syntax_zig_grammar`, always equal to `syntax_highlighting`; and the four `syntax_*` bools as the one enum they said four ways, `grammars` (`-Dtree-sitter`'s `TreeSitterGrammars`), read by syntax.zig, Output.zig's Build pane and three tests, with abi/wire.zig hashing it as the four words it was hashed as, so `pardes version`'s semantics line did not move on any product (38b5ae573b965550 on tui, gui, the bare build's two, both statics, FreeBSD; d41689a1f97605b8 with -Dtree-sitter=minimal, as on the base); build.zig and build/ 3,005 -> 2,992 lines; every shape configures (12 configurations) and builds as on the base (tui, gui, bare, the macOS library for Linux and aarch64-macos, static on musl and on the window, FreeBSD, -Dtree-sitter=minimal), and the two that fail on the base fail with the same errors (pardes-isolate: core/builtins.zig:510, core/ninep/ctl.zig:1298; -Dtree-sitter=disabled: core/indent.zig:48); tui core-test 848/991 (143 skipped), shell-test 1027/1030, pane-test 183/184, behaviour-test 275/275 (and -- --replay), term-test 15/15, kitty-test 45/45, lib-test, hxlib 538 cases 0 mismatches, process-test 3 of 144 failed (lspcomplete and lspcompletemoved, the base's, and headersweep-restored, on the flaky list: passed alone, 1364 ms), gui unit-test 1625/1629 (the perf check's BaselineHarnessMismatch, the base's); the test names of every suite equal the base's (ledger); load 15-45 on 16 cores Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* / core, dev, runtime, test: the settings a session changes while it runs are ↵Gabriel Schneider8 days
|/ | | | | | | `config.Settings`, no longer `config.Runtime` (P18, the user's ruling on the tree step's name collisions: the type's name collided with the directory `runtime/`, and the core's field of that type is already `settings`): the type on 17 lines of core/config.zig (its declaration, its methods' receivers, its tests, the comment naming it), `config.Settings` on 50 lines of eleven other files (core/Core.zig, Output.zig, builtins.zig, builtins_json.zig, exec.zig, ninep/ctl.zig, surface.zig; dev/gui/gui.zig 598, 5860, 5909; dev/jump_trail.zig's comment; runtime/main.zig 756; test/output.zig 552) and docs/next-winmode.md's one mention; a rename only, nothing else on any line; the semantics hash does not move (a type's name is not in the tape's shape); tui core-test 848/991 (143 skipped), shell-test 1027/1030, gui unit-test 1625/1629 failing only the perf check's BaselineHarnessMismatch (as the base), the macOS library for Linux and aarch64-macos and the FreeBSD cross-build rc 0, under a load of 6 to 42 Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* core: the entries that take or answer a slot take and answer its type (P21, ↵Gabriel Schneider8 days
| | | | | | | pardes-ids change 2): a pane's slot is `Pane.Id` in the twelve entries that took it, six as `usize` (setCwd, acknowledgeShell, setMessage, setStatus, reportError, noteLateFailure) and six as `u8` (readerFailed, shellFailed, restartFailed, saveFailed, reloadWatchedFile, File.deleted), and in what adoptShell answers (`?Pane.Id`); a view's slot is `View.Id` in closeView, leaveView, awayView, rejoinView and the hand-written toView (its `to_view` variant is `Pardes.View.Id` now, and its replay arm unchanged) and in what openView answers (`?View.Id`); the tape's other variants follow their inners' types with no edit (`Args`); each inner converts where its body indexes (`id.index()`), passes the id itself to another entry, and the core's own code stays integers; every caller converts at its own line, `p.reportError(.at(id), ..)` (the decl literal of the parameter's type), 514 calls in 56 files written by a script that refuses any path outside the workspace (`.scratch/sketch/reorg/pardes-ids/wrap.py`), 46 `.index()`; nothing the compiler caught was a pane's slot passed as a view's or the reverse: what it caught were a script's wrong guesses (Editor.reportError(err) and macos.zig's own reloadWatchedFile, same names, undone) and the integers a view's id met (views.zig's tests, replica.zig's Authority and Peers.join, host_io's Adoption); in files another agent is in, each conversion on the line that was there: core/Kind.zig 5 lines, core/Addon.zig 4, core/replica.zig 23 (Authority.openView and join, closeView/toView/awayView/rejoinView/leaveView calls, Peers.join's `openView`, tests), test/replicas.zig 1; the tape's records are smaller (a `usize` is a byte in six inputs) and its shape moves, so the semantics word moves, 313a99190b93a8c5 -> c47ecf638b3f4b9f; test/perf.zig untouched (its harness id does not move); the Mac: runtime/macos.zig 16 call lines, abi/pardes.h unchanged; 581 lines changed in 56 files, no line added. Gate (load 4 to 28: a drat build and other agents' gates beside): tui core-test 841/984 (143 skipped), shell-test 1020/1023, term-test 15/15, pane-test 183/184, kitty-test 45/45, behaviour-test 275/275 and --replay 20 seeds of 70 steps, 0 failures, process-test lspcomplete and lspcompletemoved (the base's), gui unit-test 1618/1622 (BaselineHarnessMismatch, the base's); replicas --clients 5 (TMPDIR /tmp/claude-1000/ids, alternated with the base twice, both pass both times): diverged 0, unequal 0 at rtt 30, 80, 207, deltas checked/wrong 1811/0, 1838/0, 1715/0, quiet checks 567/0, 650/0, 544/0, stops not on may_wait 0 (its corpus-through-a-client scene fails at step 21 as on the base with that TMPDIR); two earlier runs of this tree under a load of 10 to 28 ended in a leak of Places' compiled regex (Places.derive from Query.produce) and one rtt-207 run in an assertion in mouse.kindMouse's clamp during a client's speculation, the leak not seen in the eight runs of this tree after them (the full soak, each rtt alone, single seeds), the assertion not in the two full runs after it, and neither in three full runs of the base (by reading neither touches a slot: in the report); daemon.py plain, --far, --games, --window-clients, --upgrade both ways against pardes-tree's base prefix pass; test/cross_replay.py (tui records, gui replays): 27 digests agree in each of three replicas; rollback-bench runs; the macOS library for Linux and aarch64-macos and the FreeBSD cross-build build; frames (gpu/ids-2 against tree1) 77/77 byte-identical in Debug, unit-test 1618/1622 there too, perfab corpus2x -0.059% (session noise 0.134%, threshold 0.4%), pictures identical in all 10 runs, perfops 97 counts within 0.1% (largest image-frame on longline +0.0274%), key-down on medium 10,040,104 -> 10,039,959 an operation (-0.0014%), render on medium 11,455,764 -> 11,455,707 (-0.0005%) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* the small ones: their tape calls are the handle's, `p.tape` (the handle's ↵Gabriel Schneider8 days
| | | | | | | step 5, P20, pardes-handle-sizing section 3's fifth noun): sixteen calls in ten files, each in a function that holds the core: Output (History's dumps and Config's default dump directory asked of the authority, Fonts' listing a site), Query (Recent's rows and the closed panes asked of the authority, a preview's read a site), Store (a closed pane's record, the authority's), Plumb (a port's readers, the authority's; its `const tape = @import("tape.zig")` gone, 1 line apart from the count), Stream (a search run on the loop, a site), mouse (whether a script reads a pane's events, the authority's), File (an edit's mtime, a clock), ninep/events (the boot's event when not replaying), ninep/tree (/sessions, a site), builtins (Get's label, Mount's probe and Term's shell check: `c.p.tape`, a word's context holds the core); no function gains the parameter (row: 0); Stream.runHere, the host's search on its loop when it has no worker, holds the core and reads its field, which is the tape the global names whenever a step is under way (the safe build's check at every entry); the five numbers: (1) functions that gained the parameter 0 (row: 0); (2) the 97 per-operation counts within 0.1%, the largest image-frame on medium +0.0332%; no function on a per-row path touched; (3) nothing stopped compiling for want of an io; (4) global io uses 7 (unchanged), free calls into the tape 45 -> 29, machine_lines rows unchanged; (5) lines changed: tests 0, code +16/-16 (and the import's one line). Lines in files not this work's: none. Gate: tui core-test 840/983 (143 skipped), shell-test 1018/1021, pane-test 183/184, term-test 15/15, kitty-test 45/45, behaviour-test 275/275 and --replay 20 seeds 0 failures, process-test lspcomplete and lspcompletemoved (the base's; winch failed once, passed on the runner's retry), replicas --clients 5 diverged 0, unequal 0, deltas wrong 0 (2033/0, 1978/0, 1682/0), quiet 568/0, 581/0, 748/0, stops not at may_wait 0 (its "corpus through a client" fails as on the base, steps 18 to 21), gui unit-test 1616/1620 (BaselineHarnessMismatch, the base's), daemon.py plain, --far, --games, --window-clients pass, test/cross_replay.py tui to tui: 28 digests agree in each of the three replicas, semantics 313a99190b93a8c5 (unmoved); frames (gpu/handle2-5b against tree1, run again after the machine's reboot cut handle2-5 short) 77/77 byte-identical in Debug, gui unit-test 1616/1620, perfab corpus2x +0.035% (session noise 0.089%, threshold 0.4%), pictures identical in all 10 runs, perfops PASS Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* fs: the file system's sites are read through the tape a step is handed, and ↵Gabriel Schneider8 days
| | | | | | | the reads no tape saw are listed (the handle's step 2, P20, pardes-handle-sizing's second noun): every site of core/fs.zig is the handle's, the core's (`p.tape`: /os's stat, listing and read, a mount's read) where a function holds the core, else a `tape: *Tape` parameter, taken by 16 functions (fs.makeDirs, expandHome, expandHomeFrom, resolveOs, readFile, readFileLimit, readRestore, restorePath; exec.kindOf; up to a core: dump.directory, restoreFile, onDisk, Db.statePath, Core.recentKeeps, Core.parentTrouble, config.Runtime.apply); fs.resolve takes its optional core's tape, `none` without one; sam's World carries the session's tape for `~user`; the bodies of make_dirs, read_file and kind take Zig's io from the tape, and /os's stat and listing are handed it, so fs.zig and exec.zig read the process's io nowhere; the finding, what stopped compiling for want of an io: fs.readHost's two direct callers, both host halves (the tape's own read by path of a record sent by hash, which takes its tape's io; a client's join reading a plain kind's file through the walk's dump hook, whose mode `join_files` is now the host's io), and by reading one step's read no tape saw, ninep/ctl.zig's bare deniedAbove in a /pager open (served in serveFs, which a client replays), now taped as its neighbours are (`p.tape.value(.denied, ..)`, no new site); the host's own calls of these (the launcher, a -l dump, fonts, theme files, Upgrade, a dump failure's message, gui tests) pass `&tape.none`, recorded by nobody as before; and the replay's dump check now puts the core's tape aside with `on` (its dump's `onDisk` replayed a site the tape did not have: every --replay seed diverged at its end in the first gate). The five numbers: (1) functions that gained the parameter 16 (row: 19 + 7); (2) perfops 97 counts within 0.1%, largest image-frame on small +0.0295%, none on a per-row path gained it; (3) stopped compiling for want of an io: fs.readHost from tape.byHash and from dump.slotWrite (host halves), osHandle's io local (fed only sites); (4) global io uses 6 (10), calls into the free functions 80 (92), machine_lines fs.zig 39 -> 38, exec.zig 4 -> 3; (5) lines changed: tests 33, code about 130 (20 of them in host files). Lines in files not this work's: dev/tui/tui.zig 990, dev/gui/gui.zig 613 629 1054 3057 6171 6264 7494 8290, dev/file_watch.zig 612 644, dev/host_io.zig 1521, runtime/main.zig 1373 1391 1398, runtime/macos.zig 646 668, runtime/upgrade.zig 349 396 (each one argument). Gate: tui core-test 837/980 (143 skipped), shell-test 1015/1018, pane-test 183/184, behaviour-test 275/275 and --replay 20 seeds 0 failures, process-test lspcomplete and lspcompletemoved (the base's; pagercolor flaked once, passed alone three of three), replicas --clients 5 diverged 0, unequal 0, deltas wrong 0 (1731/0, 1620/0, 1737/0), quiet 545/0, 554/0, 651/0; daemon.py plain, --far, --games, --window-clients pass; semantics 2f615168fe07b35f (unmoved); frames 77/77 byte-identical in Debug, gui unit-test 1613/1617, perfab corpus2x +0.057% pictures identical in all 10 runs, perfops PASS Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* core: the reads no tape saw are taped, and a check counts what core/ asks of ↵Gabriel Schneider9 days
| | | | | | | the machine (the reorganisation's 12b, the design round's step 4 and its finds): DumpDir's check whether its directory may be written (fs.deniedAbove in config.Runtime.apply, two `access` calls in a step) is the session's disk's answer, tape.value(.denied) as a failed save's is, and Font <name> and Fonts, which walked the machine's font directories in a step (dev/fonts.list), ask the session's machine through a new site, `fonts` (a far client's Font or Fonts waits a round trip; its replay takes the session's answer); each was a real fault: a client on another machine diverged at its replay of the session's unit, a test each at the end of core/replica.zig (a directory the session may not write and the client may, the setting refused on both; a face the session's machine has and the client's lacks, its family renamed so no installed face shares it, listed and chosen alike on both), each shown failing on the change before (the digests differ); Edit's pipe environment (host_io.commandEnv) is shown harmless and left as it is: it is kept in Pipe.edit_run, `.authority` state (Pipe.zig:21: in no digest and no copy), read only by the host's `pipe` entry, which a client never calls (a speculation records the void call, a replay answers from the tape); the check, the twin of allowed_vars, at the end of core/root.zig: per file of core/, the lines outside tests naming std.c., libc., std.posix., getenv, std.Io's File, Dir, net or Threaded (not Dir.path, a path's text, nor max_path_bytes) or importing dev or runtime, against one list, machine_lines, 34 files and 313 lines, each file with why; a file whose count moves is named with its lines, shown failing once (a getenv added to Messages.zig: 7 lines against 6, its line 891 named); found by it and not changed: Messages.noTime reads PARDES_NOTIME in a step (a test's knob: set on one side only it would diverge); may_wait gains Font and Fonts at `fonts` in a window's build; Stats.unspeculated is not deleted: its only reader is the soak's (test/replicas.zig: the field, its sum, the view column), a file another agent is rewriting; the semantics word moves again (a site added), 517cd1c276996a3c -> 0900e560fd6395ef; tui core-test 836/979 (143 skipped), shell-test 1014/1017, pane-test 183/184, behaviour-test 275/275 and --replay 275/275, process-test 2 of 144 failed (lspcomplete, lspcompletemoved, the base's), replicas --clients 5 diverged 0 unequal 0 deltas wrong 0 (1827/0, 1596/0, 1803/0) quiet differ 0 (422/0, 563/0, 655/0) at 30/80/207 ms, stopped 89/73/108, mispredicted 37/34/36, gui unit-test 1612/1616 (its perf check's BaselineHarnessMismatch the base's), daemon.py plain, --far, --games, --window-clients pass; gate-w seam-b-4 against tree1: 77/77 frames byte-identical in Debug, its unit-test 1612/1616, perfab corpus2x +0.047% (pictures identical in all 10 runs), perfops 97 counts within 0.1% (largest +0.0199%, body-appends on longline) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* core: the session's facts are the core's state, read once at its start (the ↵Gabriel Schneider9 days
| | | | | | | reorganisation's 12b, the design round's step 3; the user's ruling P16 and the lean put with P17: a far client's `~`, default shell and "is this shell installed" are the session's): its home (`~`) and the shell its terminals run when no `Shell` is set ($SHELL if executable, else /bin/sh) are fields beside `session_dir`, `session_home` and `session_shell` (working names, the user's to rule), each read once with `session_dir` by Pardes.readSessionFacts (tape.value(.env): a replay of the boot reads the session's answers), at the session's start and after a load of a dump made before they were dumped, and carried by the dump; `sessionDir` no longer fills itself at first use (it was filled at the start already), and a client's step reads the session's, never its own machine's: Pardes.expandHome (`~` the session's home; `~user` a passwd read, taped, as before) at Save, a tag's name, Theme's path, Get, Incl, a Look of `~/x`, a 9P name and pager, Dump's path, sam's B, e, r and w (sam_edit.World.home) and DumpDir's check (config.Runtime.apply takes the home); bare `Shell`, the shell a terminal runs, the settings report and its 9P twins read `session_shell`; "is this shell installed" (Shell <bin>, Term <bin>, a 9P exec) is a question to the session's disk, tape.site, so far away it waits a round trip instead of answering from the client's machine and rolling back; deleted: the value reads at config.defaultShell (now the process's read, made at the start alone) and at Core.sessionDir, and the tape's `cwd` tag (the directory is read under `env` at the start); fs.expandHome stays for this process's own home, the launcher's (runtime/main.zig) and the state file's directory and a Restore's name (the session's side: a client's Restore waits, its replay reads the tape); the tape's shape changes (`cwd` gone, `shell` a site), so the semantics word moves (the tape's shape now hashes the sites too: it did not see a site gone or added, and this change alone left it as it was), adacca2db2b39264 -> 517cd1c276996a3c: an old build and a new refuse each other's clients, in words; a test at the end of core/replica.zig (a joined client's own `Look ~/x`, bare `Shell` and Tutor, a word run in the session's directory, record no `env` read; the client's shell and directory are the session's), shown failing on the change before (`Look ~/x` read the environment); not handled: a Restore of a dump carries that dump's facts (as `session_dir` did); tui core-test 833/976 (143 skipped), shell-test 1011/1014, pane-test 183/184, behaviour-test 275/275 and --replay 275/275, process-test 2 of 144 failed (lspcomplete, lspcompletemoved, the base's; hscroll flaked once), replicas --clients 5 diverged 0 unequal 0 deltas wrong 0 quiet differ 0 at 30/80/207 ms, stopped 89/73/108, gui unit-test 1609/1613 (its perf check's BaselineHarnessMismatch the base's), daemon.py plain, --far, --games, --window-clients pass; gate-w seam-b-3 against tree1: 77/77 frames byte-identical in Debug, its unit-test 1609/1613, perfab corpus2x +0.095% (pictures identical in all 10 runs), perfops 97 counts within 0.1% (largest +0.0198%, body-appends on longline) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* core: nothing of a core is a process global, the three that were ↵Gabriel Schneider9 days
| | | | | | | (pardes-probes P3, the reorganisation's 12c): config.tab_now goes, a tab's width is the core's settings.tab handed to every width function as `tab` (File.graphemeDisplayWidth and the 73 functions above it, test helpers among them, that had no core to read it from gained the parameter; an Editor, a Surface and the hunks' Ctx carry it; render sets Surface.tab; graphemeDisplayWidth asks its one printable ASCII byte before the tab, the two disjoint: with the tab first, as before, the parameter cost 0.2-1.7% instructions an operation in pardes-perf, with ASCII first the measured cells use 2-16% fewer than the base), so a rollback can no longer leave a stale width and replica.zig's hand-made put-back in toConfirmed goes; Addon.distrusted/ndistrusted become Addon.Distrusted, the client's own list, which its frontend owns across its joins and hands each core as Options.distrusted (in no tape, dump or digest: Options' replica .local); Kind.draw_tokens becomes each slot's `draws` (local: a draw is a frame's, so each process's count differs and no digest may hold it; the copy saves it with the slot); the two turn reads in a step stay, being shown unable to reach a client's state (the report); the soak's Proc keeps only the client's list (its tab_now and the global swaps go, forced); test/perf.zig follows three signatures, so unit-test's perf check now says BaselineHarnessMismatch until the baselines are recorded again; tui core-test 824/966 (142 skipped), shell-test 1001/1004, pane-test 183/184, behaviour-test 274/274 and --replay 274/274, process-test 2 of 144 failed (lspcomplete, lspcompletemoved), replicas --clients 5 diverged 0 unequal 0 deltas wrong 0 quiet differ 0 at 30/80/207 ms, gui unit-test 1598/1602, lib-test, daemon.py plain, --far, --games, --window-clients pass Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* core: src/ becomes core/, pardes.zig its root.zig (the reorganisation's ↵Gabriel Schneider9 days
tree, step 2d), and every mention of a src/ path follows: the build's paths, the core's imports of its root, the tests that read the repository's files by path (lspbench's, look.zig's spans over core/look.zig), the comments that cite files, the documents and the manual (the typst corpus reads core/tutor.txt and core/plumbing); left as they were: the /src tree's served names (src/pardes.zig and the rest are the 9P tree's, not the repository's), the CHANGELOG's history, fixtures that are only strings; fs-unit-test runs from the core's root (a module of the core rooted at fs.zig had the runtime's and the devices' `core` be fs.zig); nothing else changes: the ledger (pardes.test.* now root.test.*), frames byte-identical, replicas and process-test the base's Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T