summaryrefslogtreecommitdiff
path: root/core
Commit message (Collapse)AuthorAge
...
| | * fuzz: a loaded core is used as its user would, on both roads: drawn at its ↵Gabriel Schneider4 days
| | | | | | | | | | | | | | | | | | | | | own size, at 40x12 and at 200x60 (a resize each), then given keys (`j w x d u`, PageDown, PageUp, `k`, Escape) and a wheel notch each way, and drawn again (core/fuzz.zig `use`): a load that draws and then dies at a key is the same fault as one that dies drawing; the join road's byte dump is digested first, as a join's is; in the suite 2048 join seeds and 1024 image seeds (Debug: about 2.5 ms and 5 ms a seed); the image road past seed 1779 reaches xitdb's own reader (a slot's tag past its kinds: a `switch` on it), a dependency's, for build/patches.zig; what this fuzz reached is held by the change before (each seed in its description) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | * walk: a loaded index is held to what it names, and a place to its thing, by ↵Gabriel Schneider4 days
| | | | | | | | | | | | | | | | | | | | | a declaration beside the field, read by the comptime walk and checked where `pastHeld` is (the end of a struct's fields in all three decoders: a tape's `decode`, a byte dump's `Loader.fields`, an image's `Get.fields`, through `holdTo`): `replica.index` says what a field names (a field's slots, a predicate's things, or, with a third word, the things of the struct holding it, held where ITS fields end over every value of the type it holds (`heldIn`, `visit`); a fourth word: a span counted from it), and one that names none is REFUSED, the field named, in the words `fromDump` and a Restore say (`Core.live says 9, which names none of Core.openViews: refused`); `replica.place` gives a field's last place (or its first and last) and one past it is that place (the session is there, its view a line off); `replica.left_out` is what a load that left a thing out (another build's pane) does to what named it before the indexes are held (`Pardes.dropMissing`, now every view's); a field that names a slot by its type (`Pane.Id`, `View.Id`) with no declaration is a compile error (`checkSlots`). RUN FIRST, each the dump fuzz with every loaded core drawn at its size, 40x12 and 200x60 and given keys and a wheel notch (core/fuzz.zig `use`), each a panic or an allocation past the fuzz's cap on the tree before: join seed 1761, `Pardes.multi_count` read as 2^30 sized a yank's register array at 17 GB (`d`, Registers.put): a step's own, now not dumped, with `multi_*`, `exec_depth`, `exec_column` (root.zig `kept_out`); join 3682, `File.State.scroll` past its text: `@intCast` into `wrap_line` (File.zig fillBody): clamped to its last line (`lastLine`; a slim dump's file, read again at its revival, to its saved bytes' lines), `scroll_row` to the top line's bytes; join 77, `Messages.head` past its ring (logMessage): clamped (`head`, `len`); restore 1211, `View.screen_h` 0, drawn (draw.zig paintHeaders: surface.zig `at`), and join 24086/28218 a screen sizing a 111 GB frame: a view's screen side is a grid a frontend sizes or the dump is refused: a cell at least (a zero refused, not clamped, as abi/wire.zig `getCols` refuses one), at most 4096 (`View.max_grid`: past any display's; the wire's 512x128 is a client's, and a session's own frontend is wider: a replica test's view is 500 rows); join 14189, `Pane.tag_lead` past i32 (Core.sync): held to the room its prefix is made in (`Pane.prefix_room`); join 18926, an undo's `Journal.done` past its steps (Text.zig `mark`): clamped, `Step.first..n` a span of the journal's entries (refused past them), and join 35489 `Journal.bytes` overflowing (`record`): held to what its entries hold. And a bitset a load made is freed with the rest when the load fails or what held it is let go (`Bits`, on `customs`): the 40,000-seed run's leak (16 KB, `Loader.value` `.bitset`), reached once a refusal came after one was read. Declared beside them, by the brief and by reading: `Pardes.live` (an open view), `theme_file_pane`; `View.active` (a pane there, or any slot in a window with none), `window_pick`, `kind_grab`, `kind_hover`; `Column.panes` (panes there, held as far as `n` now says: a `len` pair, so a digest and a dump take that far); `Pane.sized_by`, `prompt_view`, `search_pane`; `Jump.cur` (place), `Jump.Loc.pane`; the language server's awaited `pane`. TESTS (each site was a failing run first, above): walk.zig "an index read back that names none of its things is refused, its field named, in a tape, a dump and an image; a place past its thing's last is that last", "a thing another build's dump left out takes what named it with it (`left_out`), before the indexes are held"; dump.zig "a dump whose index names no view or pane there is refused, the field named; a top past its text is its last line; a key's replay is not dumped" Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | * layout: a view's geometry (`rects`, `col_x`, `col_w`) is the layout pass's, ↵Gabriel Schneider4 days
| | | | | | | | | | | | | | | | | | | | | never dumped: every load lays each open view out again (dump.zig `afterLoad`: `layout.compute` per open view, as a resize lays it out), and `cols` is held to `ncol` (`View.replica.len`): RUN FIRST on pardes-merge67 (core/fuzz.zig's dump fuzz, the restore road's seed 589): an image's pane 0 rect read back as 534 rows on a 24-row screen (`View.rects`, dumped as it was), drawn: draw.zig:448 `clearRect`, then surface.zig:322's `at` asserted; walk.zig `pastHeld` passes over a pair whose buffer is derived; TEST FIRST: dump.zig "a view's geometry is laid out again at a load, never read: a pane's rect past its screen in a dump is the layout's after it" (merge67: expected 22, found 534); not whole alone: the dump's layout moved, and the fuzz's seeds then reach the indexes the next change holds (`live` past the views, a file's top past its text) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | * integration: the tree to install next: a view scrolls by ROWS: `main` ↵Gabriel Schneider4 days
| |/| |/| | | | | | | | | | | | | | | | | (pardes-merge66, 0252c830daf6, installed 2026-11-24 01:22) and pardes-row-scroll-3 (`wkxsvmun` on `kyntorlp`, `rymstysv`, `qwssppvo`, on pardes-merge65: a view's top is (line, row within the line's own wrapped rows): a notch is one row through a wrapped line and a wrapped description of the layer, the margin, PageDown/PageUp, `gt`/`gb`, `gw`, `blankRows` and a Look's centring count rows; the wire 35); no conflict; REMOVED HERE: `core/walk.zig.orig`, a patch's leftover that `pvwuwnlk` had added; EXPECTED in its gate and ruled: corpus frame 76 differs (the margin counts rows: the new picture stands) and ten perf counts over tree7 (P85: the view now draws the rows the cursor is on in a wrapped line: deep-sel; the cursor's row found in long lines); its gate: .scratch/sketch/reorg/merge67, the numbers in PARDES.md Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | * scroll: what still moved by lines now counts rows where a wrapped line made ↵Gabriel Schneider4 days
| | | | | | | | | | | | | | | | | | | | | it wrong (P62 round 3, item 3): gt/gb land on the row `scroll_off` rows in from the body's top or its last row of text, a wrapped line's later row as any, the cursor on the first byte that row shows (helix's goto_window), where they went `scroll_off` LINES down from the top line (inside a wrapped line: a line far below, the view moved); gw labels the words of the bytes the body shows (`File.shownBytes`: its first row's first to its last row's last), none on a wrapped line's rows above the view's top (a word the first row starts inside of begins above it: its label would not show), where it labelled the words of `rows` lines from the top line's start; a new pane goes below the rows a pane's text takes (layout.zig `blankRows`: the rows from the view's top to the text's end, `File.rowsTo`, a wrapped line's each), where a pane of a few long lines counted a row a line and had the new pane laid over its text; a Look opening a file in a pane of its own puts its line half the body's rows down, a wrapped line's rows above it counted (look.zig, `walkRows`), where it went half the body's LINES up; TESTS FIRST, each failing on item 1's tree (`qwssppvo`) and passing here: core/normal.zig "gt and gb go to the row scroll_off rows in from the body's top and from its bottom, ..." (the view moved, row 4 to 5), "gw labels the words the body shows and no others: ..." (a label above the top), core/layout.zig "a new pane goes below the rows a pane's text takes, ..." (the pane kept fewer rows than its text), core/look.zig "a Look that opens a file in a pane of its own puts its line half the body's rows down, ..." (24 rows above it, not 17); STILL LINES, each right there: Places' first range (its search pieces are whole lines, so a match is never cut at a piece's edge, and `scroll + rows + 1` lines hold every row shown, each line at least one), the frames' `view` (a statistic's label: no decision reads it), the rail's thumb (rows would wrap the whole text at each width), the syntax window (the rows shown lie inside the lines `scroll .. scroll + rows`) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | * perf: a long wrapped line's row walks cut to the rows the view needs, each ↵Gabriel Schneider4 days
| | | | | | | | | | | | | | | | | | | | | row's end found without a grapheme step, the top's byte handed to the geometry by the step that found it, the geometry's key hashed once a step (P62 round 3, item 2): perfops against tree6 from 11 of 121 over (item 1's tree: body-appends on longline +18.2%, client-key-down on longline +1.44%) to 10 (deep-sel's eight, the view drawing the selection deep in its 2 MB line; body-appends on longline's SETUP +0.66%, derived; client-key-down on longline +0.44%; terminal on all +0.12%, below the base's own ruled +0.14%), body-appends on longline per-op -7.4%, every key, wheel, page and edit cell at or under tree6; each cut found by Intel PT by symbol (`.scratch/sketch/reorg/pardes-row-scroll-3/pt-*.txt`): `fitEnd` ended every full row with a grapheme step to learn the next byte did not fit (~118 instructions a row): a full row before a printable ASCII byte that no non-ASCII byte follows now ends there, and the rest of a row of printable ASCII past the vector loop is one masked vector (both checked by the exhaustive fitEnd tests); `show` walks the cursor's line once and no further than it needs (`Bound`: `margin` rows past the cursor's and `body - 2 margin + 1` in all, its rows a lower bound then, which its walks never pass), keeping the first bytes of its last rows in a ring on the stack, and where the view lands in that line hands that byte to the geometry (`Pane.top_skip` gains the `key` of the geometry it is for: fillBody walks to the top's row only for a key no step found it for); a wheel's notch down off the map hands the map's byte the same way; `show` and `scrollRows` hash the geometry's key once (`topNow`, `shownNow`; ensureCursorVisible's extra `geometry` call gone) and a walk asks whether the map is fresh only when it reads a line off it; `rowsOf` walks a line with the walk's width (`rowWalked`), not through `rowIn`'s one-row check again; Debug in the workspace: core-test 963/1129 (166 skipped) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | * 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
| * | replica, gui, tui: the clock a session's pump reads after its wait is held ↵Gabriel Schneider3 days
|/ / | | | | | | | | | | | | only while a client's post waits for it (Peers.heldNow, which both shells' clocks call), so a wait that ran out always reads the clock and its step meets the deadline it waited for: a window's session showing a PDF with a client attached stepped ~700 times a second with nobody typing, each step a unit every client replayed (the multi-client line's "a PDF in a window's session floods every client"); RUN (an instrumented Debug build, the window's loop offscreen with no test mode, a terminal client; .scratch reorg/pardes-idle-flood/runs/probe): the client's view of the PDF (pane 1, view 1: 78x9, 8x16, glyphs) owed to the kind from its join on (Kind.wake: now, so nextWake a frame on), and 2247 of 2268 pumps 'mail_only true, mail false, wait ran out', the clock read after each the one held at the join (1.302 s while the real one ran to 2.93 s), so advance never reached the deadline, the view was never told, and the next wait was 1 ms: for ever; THE CAUSE: dev/gui/gui.zig guiNow held the clock after any wait whose `mail_only` was still set, and waitInput sets it at a wait's start and clears it only for an event that is not a replica's wake or a queue message: a wait that ran out (SDL_WaitEventTimeout false, waitDetached's too) took no post and still held the clock; a terminal's session never did (its wait ends in a .wake event, tui.zig apply clears it); THE FIX: Peers.heldNow (core/replica.zig): held only when the wait took nothing else (the shell's `mail_only`), a client is attached (`recording`), a post waits to be taken (`mail`, set by post, cleared at the boundary) and the clock has started; gui.zig guiNow and tui.zig clockNow call it (their own copies of the rule gone), so no shell's wait can hold the clock without a post; TEST FIRST: test/panes.zig "a PDF shown and a client's view its kind was not told: the session's next pump, its wait run out with nobody typing, tells it, and nothing is owed after; a client's post waiting holds the clock" (on the base's rule, the same function without `mail`: fails at panes.zig:4120, the view still owed after the pump); test/daemon.py --client-idle on this build: the window's loop 7 boundaries and 8 units with a PDF against the text alone's 5 and 6 (4871 and 4872 on the base), the test surface 223 against 207 (388 against 206), the terminal's 8 against 5; a user hit it: every window's session with a client attached and a deadline owed (a PDF's view, a message's linger, a Life's tick, a look's hover) stepped and sent a unit a millisecond until someone typed in the window Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | walk: what a value read back had made before it was left out, or took its ↵Gabriel Schneider4 days
| | | | | | | | | | | | | | default, is freed: the merged gate's shell-test (its SafeAllocator counts every allocation) failed the dump fuzz with 8 leaks once the fuzz read the byte dump and 1024 images (core-test's run does not count the image allocator's): a pane another build's (or a damaged) dump cannot give is left out (`elements`/`listInto`, an array of optional pointers) and a field whose kind changed takes its default or is left as it was (`fields`, by name), but what their read had made before it failed (the pane itself, a name, a slice; a custom type's `dumpRead`) stayed in the reader's list with nothing holding it: freed at no rollback, since the load succeeded; a leak on every Upgrade from a build whose pane another cannot read, and on every such damaged dump; now each reader marks where a value's read began (`Mark`: its made list and its customs) and `letGo` frees what was made since, customs first, each entry left dead (a later reference to it is refused, as a half-made one is); TEST FIRST: walk.zig "what a value left out had made is freed: a pane another build cannot give leaks nothing, from a dump or an image" (a pane whose `n` changed kind with no default, after its name was made: 4 leaks on the base, a pane and its name from each reader; none with it); the dump fuzz under shell-test's allocator passes (13/13) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| |
| \
*-. \ 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
| | * | a file's name in a row is written as git writes an unusual one, and read ↵Gabriel Schneider4 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | back so: a newline in a name no longer makes a row of its own: the Grep worker wrote `path:line:col-end code` with the name as it is (core/Stream.zig `row`, and Find's `file`), so a file named `a\nb:1:1` holding a hit made two rows, `a` (no place, passed over) and a hit in a file `b` at line 1, which a crafted name can point anywhere with any text (the test below on the base: the one hit's name `b`); the query pane's rows the same (a name with a newline was two lines of the pane's text over one row's metadata); and a name with a `:` and digits in it read as another file at a line (`a:5:b.txt:3`); THE RULE, one for every row that names a file: git's quote_c_style, `look.quoted`: a name holding a control byte, a `"`, a `\` or a `:` is written in double quotes with `\n \t \r \" \\` and `\ooo` for the other control bytes, any other name as it is; WRITTEN by the worker (Stream `row`, `file`), the query pane's rows (Query: a Grep's, a language server's, a pane's places: the name `lookPath` gives, quoted), the patch view's labels (hunks.zig `flush`); READ by `look.parsePathLine`, which takes a `"`-led word whole to its closing quote as the path (its `:` its own; the place after it as ever), Query `take` (the name unquoted, `look.unquoted`, into the Found it opens) and Find's rows (the name a row shows opens the file it names); a B3 on a quoted row whose name has an escape finds the escaped text and misses (no file has it): a miss, never another file; the patch view's names come from the diff, where git quotes the same way (diff.zig `cutPath` keeps the inside), and Find's rows show the name as the worker wrote it; tests: core/Stream.zig "a file named `a\nb:1:1` is one Grep row and one Find name, its own, for the walk and rg; a row is a line" (fails on the base), core/look.zig "a file's name written as a row writes it reads back whole: ..."; core-test Debug 953/1119 (166 skipped) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | * | theme files: one nested deeper than 64 levels is refused in words before ↵Gabriel Schneider4 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | std's ZON parser sees it: round 1 inferred a stack overflow from core/colors.zig `loadThemeFile` (std.zon.parse.fromSlice, whose std.zig parser recurses a level a bracket with no bound); RUN (the test below on the base, Debug, a 16 MiB stack): 10 and 1 000 levels refused in words (a type error, with its line), 2 000 too, 5 000 a SEGMENTATION FAULT in std/zig/Parse.zig (parseTypeExpr, parsePrimaryTypeExpr: the stack), so a theme file of some 10 KB of `.{` ended the session, and every session after it whose config loads that theme at its start; a user hits it only with a file made so; the theme file is the one ZON from outside the program (the config file is lines of words); now `nesting` counts how deep its brackets go with std's own tokenizer (iterative: strings and comments are tokens of their own, nothing is parsed twice), and past `max_theme_nesting` (64; the schema is three deep) the file is refused as any bad theme file is, its pane told "theme file <path>: nested past 64 levels" and the theme in effect kept; test: core/colors.zig "a theme file nested 10, 1 000 and 100 000 deep is refused in words, never a stack overflow"; core-test Debug theme tests 26/27 (1 skipped) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | * | numbers from outside are checked where they are read: a diff's hunk header, ↵Gabriel Schneider4 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | a place's line and column, a PDF's page size (the failing runs first, kept in the scratch): core/fuzz.zig gains two fuzzes, "a diff's hunk headers with numbers past any file's: drawn, formatted and looked at, never a panic" (each seed a diff whose `@@` numbers are drawn from around and past every int width, drawn as a `.diff`, formatted as the patch view, looked at on every row) and "a language server's rows and a typed Look with numbers past any file's: landed, stepped and drawn, never a panic" (rows as lsp.sourceSpanRow writes them for seven kinds of answer, landed, stepped with n N j k Enter, drawn; the same places typed to Look in its three spellings); on the base the first panicked at core/diff.zig:134 (`w.new_at += 1`, integer overflow: a `.diff`, or a `cat` of one in a terminal, with `@@ -1 +18446744073709551615 @@` killed the session and every client that drew it) and the second at core/look.zig:751 (`@intCast(at.col - 1)`, integer does not fit: `Look /test.txt:1:3000000000` typed, or such text B3'd anywhere, a server's row with a column past i32 looked at); the language server's own rows land through Query's landing, which clamped already (its client validates each coordinate to a u32); FIXES: core/diff.zig `number` reads a header's number as a u32 (a line or a count of lines: no file pardes opens has more), one past it makes the row no header, drawn as text as patch(1) refuses it, so the walk's counts, hunks.zig `moved`'s i64 and jj.zig's u32 casts all hold; core/look.zig `focusPaneLine` takes a line past an i32 as no line and lands a column past its line's end at the end (`columnOn`, as a search's landing and Text.clampCursor have it: `Look x:2:9` on a 5-byte line lands at its end, where it stood past it before; a terminal's column, a jump's, as it was), the newly opened file's the same, and `selectSpan` saturates each number into cellRange, which clamps to the text; the pdf addon: a page's size is held where the bridge reads it (addons/pdf/pdf_bridge.c `pardes_pdf_get_page_size`, every size the layout sees comes through it) to `PARDES_PDF_MAX_PAGE_POINTS` (2^24 pt, 5.9 km, on a side; MuPDF bounds neither a MediaBox nor a UserUnit, nor a float's infinity) and the addon says so ("a page past 16777216 pt on a side: laid out at that size") when one lands: on the base a page 1e9 pt wide panicked the addon's paint (`@intFromFloat`, out of bounds, pdf.zig:413: the session and every client that drew it), test/pdf-fixtures/huge-pages.pdf (a 1e9 pt side, a side past a float, a UserUnit past a float, a page as any) opened, drawn, stepped and ended in the addon's script (addons/pdf/pdf.script, pdf.out); a test in core/look.zig of the landing itself; core-test Debug 950/1116 (166 skipped; base 947/1113), shell-test Debug 1162/1165 (3 skipped), 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
| * | | replica tests: `joinedNow` sends what the session recorded as a unit before ↵Gabriel Schneider4 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | it dumps, as a join does (`Peers.dumped`), and a test of the jump fault at the replica's surface: round 1's open test ("a client joined from a dump keeps the session's jump list through a step", the session's list written by hand, entries with place bytes 0x11 and 0x22 round a gone pane's) failed in Debug with the client's list [now] against the session's [F, now]: NOT a second jump fault but a state no step makes: a print in `trackJump` showed the client's first unit replayed on a core made afresh (n 0, another core's address): `joinedNow` dumped with the authority's records since its start still on the tape, so the joiner's first unit began with the session's `init` (core/tape.zig `apply`: `.init` makes `t.core` anew) and threw the dump it had loaded away; the real join sends them first (`ps.unit` before `dumpJoin`); with the helper doing the same, every replica.zig test passes (95/126, 31 skipped) and the jump test passes on `walk.eql` and FAILS in Debug with the dedupe's compare put back to `std.meta.eql` (the session keeps the 0x11 and 0x22 entries apart, the client's loaded bytes are one fill: the digests differ): fault 2 held at the replica's surface, deterministically, on every build Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * | | jump list: the dedupe stores an entry and then compares it where it is ↵Gabriel Schneider4 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | stored, `walk.eql(Loc, &list[w - 1], &list[w])`, where it compared `&kept`: the pointer to `kept` (56 bytes) made it a stack temporary for every entry of every step (`walk.eql` compares a place's bytes cut to their length by a call, `mem.eqlBytes`, given that pointer), about 8 instructions an entry: body-appends +12.6 k an op over tree6 (+0.0874% on longline), where `std.meta.eql` inlined kept it in registers; THE RUN THAT SETTLED IT (pardes-release-soak-2 item 1, exp1): pardes-perf of this tree with `walk.eql` (A) and with the compare put back to `std.meta.eql` (B): the jump list after every body-appends rep is the same entry for entry in both (k+2 entries after rep k, no two neighbours equal as the digest sees them: the dedupe decides nothing in that cell), B +54.0 k an op (its `std.meta.eql` not inlined: a call and two stack copies an entry) where tree6 is 0 and the installed tree -5.6 k: one source line compiled three ways; the cost was the compare's code, not a deduplication; with this, perfops against tree6: 120 of 121 within 0.1%, body-appends -0.0307% on longline and -0.021% on small, medium, large, the one over the base's own `open` cell (+8.8 k an op, another agent's: +0.167% on small) (load 2.9); Debug core-test filtered on the jump tests: the two Jump.zig tests pass 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
| | * | | walk: `eql` by the digest's own rules, field by field (a field `replica` ↵Gabriel Schneider4 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | leaves out skipped, a `len`-cut array to its length, flat arrays and slices by std.mem.eql, a type that walks itself by its digest), where it took the digest of each: the jump dedupe calls it for every pair on every step, and two Wyhash walks a pair put 32 of pardes-perf's 121 per-operation counts over 0.1% (every key, wheel, page and edit op about +26k instructions, body-appends +1.74M); with this, 120 of 121 within 0.1%, body-appends on longline +0.1001% and on small, medium, large +0.067% (the same +14.5k instructions an op: the dedupe deciding as the digest does where the base's release garbage decided otherwise; every body-appends setup cheaper), everything else within 0.02% (against tree6, load 4.2-4.6); core-test 926/1090 (164 skipped), shell-test 1132/1135 (3 skipped) in Debug (loads 5.0-10.2) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | * | | jump, walk: two jump entries in a row are one when the digest sees them the ↵Gabriel Schneider4 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | same (`walk.eql`: the digest of each, so what the walk leaves out, a Buf's bytes past its length, a cache, decides nothing), not by std.meta.eql's every byte: core/Jump.zig:207 took the dedupe on a text entry's `place` bytes, undefined (`.place = .{}`), the same 0xAA on every Debug process and each process's own on a release build, so a session and its client kept different jump lists and the client parted (both release soaks of the base, the witness naming `views[3].jumps`, `views[0].jumps`); the test of the change before passes (Debug) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | * | | jump: the test of two jump entries the same but for the bytes past their ↵Gabriel Schneider4 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | place's length: both release soaks of the base parted a client at seed 0 and 30 ms ("client 5 parted on unit 0/1407", "client 3 parted on unit 0/1749" then "on unit 1/106"), the witness naming `views[3].jumps` and `views[0].jumps`; trackJump (core/Jump.zig:207) drops the second of two entries in a row that std.meta.eql calls the same, and std.meta.eql compares a Loc's `place` (a Kind.Buf(32)) byte for byte, past its length: a text pane's entry has `.place = .{}`, its bytes undefined, 0xAA on every Debug process and on a release build whatever that process's stack (or a client's load) left there: the session keeps two entries the client makes one (or the other way), and the client parts; the test puts two such entries round a gone one, their place bytes 0x11 and 0x22, and fails in Debug: "expected 3, found 4" (logs/t6-jump-test.log) (PARDES_REPLICA_TRACE's "digest 36 differs in next_serial" of the round before was the soak's own divergence put on its second client, test_diverge = 40, counted "rejoined", not this) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | | | | walk: every count a byte dump or an image holds is held to the bytes it came ↵Gabriel Schneider4 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in, and the fuzz reads the byte dump a join streams as a join does: core/fuzz.zig's dump fuzz had read two IMAGES (`dump.dumpBytes` is an image too), so the byte loader a client's join runs (`walk.Load`, before the session's digest is checked) was never fuzzed; now its two wholes are `dump.byteDump` read as a join reads it (`Road.join`: loaded, digested, let go) and the image read as a Restore or an Upgrade reads it (`Road.restore`: loaded, drawn), 4096 seeds and 1024 (seconds each). EACH SITE BELOW WAS A RUN OF IT FIRST, then the fix: the join road's seed 96, `Loader.readInt` on a same-build dump `@intCast` a byte-wide word into a narrower int (`integer does not fit`): `std.math.cast`, BadDump; the table's counts sized allocations of 240 GB (an enum's names, a u32 read): `Loader.entries`, each count held to the bytes left by the least an entry takes (a type 1, a name and value 18, a field 6); seed 456, `skip` over a damaged table where a struct is its own field recursed to a stack overflow (a segfault): `max_depth` 256 (a session's types nest about twenty); seed 1835, a same-build enum read with `@fromBackingInt` (`invalid enum value`): `std.enums.fromInt` (`enumFrom`'s rule), BadDump; the restore road's seed 672, an image's list count sized a 10 TB allocation (`Get.slice`): held to the slots the image's bytes hold; and its byte values read with no bound (`readBytesObjectAlloc(.., null)`: 12 EB asked): `walk.most` (the database's length) at each of `Get`'s reads and `Db.Read.open`'s session. Then the counts the fuzz did not reach, by the same rule and a test that fails without it (`integer overflow` in `initEmpty`'s and `skip`'s `bits + 63`): a bitset's count (`Loader.bitCount`, read and passed over; `Get`'s), a slice's count and an array's or a skip's loop held to the bytes LEFT (were the whole dump's, or none: a loop of 2^64 skips); test walk.zig "a bitset's count read back is held to the bytes left, read or passed over, in a dump and an image: never a size that overflows". OPEN, not done here: the image road past seed 1024 reaches xitdb's own reader (seed 1780: `switch on corrupt value` in xitdb `HashMap.init`, a slot's tag byte past its kinds, from `Db.Read.blobs`): a dependency's, for build/patches.zig and a report; a byte dump that loads but means nothing (a live view that is none: a Restore of an old byte-dump file draws it and panics in `Core.view`); references read back as another type (no-panic-1's `typeWord` sites, not reached in 4096 seeds) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | | | | walk: a length past what its buffer holds is refused where a tape, a dump or ↵Gabriel Schneider4 days
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | an image is decoded, its field named, never walked: merge65's core-test crashed in core/fuzz.zig's own dump fuzz (`index out of bounds: index 4503599627370496, len 64` at core/Text.zig:130, `Text.deinit` slicing `ed_redo[0..ed_redo_len]`, from views.zig `freeView`): a damaged dump was loaded with a length past its buffer, and the core's own deinit panicked (a digest, a copy and every use slice the same way); the layer's new fields moved the dump's layout so the fuzz's seeds reach it now, but the fault is the decoders': each read a `replica.len` pair's length as just a number. THE RULE, ONCE, for every pair of every type (the comptime walk lists them: `T.replica.len`, what the digest's `hash`, `fieldDigests`, the dump writer and rollback.zig already go by): `pastHeld` (the first length of a value past what its buffer holds: a slice's its own length, a fixed array's how many were read back, a dump writing one only as far as its length said, else whole), called where a struct's fields are decoded: `decode` (the tape: BadTape), `Loader.fields` (the byte dump, both of its paths: `heldTo`, BadDump) and `Get.fields` (the image: BadDump), the count read kept by each reader's `elements`/`listInto` (`filled`); the refusal's words name the field (`Text.ed_redo_len says N, past the 64 its buffer holds: refused`) and reach the user: `walk.load` and dump.zig `loadKnowing`/`loadImage` hand a refusal's notes out as they hand out a load's, and replica.zig `fromDump` says them (`the session's dump would not load: BadDump: <field> says ...`; `Replica.made` copies them out of the epoch); TESTS FIRST, each failing with the check out (run: the walk test loads `ring_len = 200`, the replica test panics `index out of bounds: index 7, len 1`): walk.zig "a length past what its buffer holds is refused where it is read back (a tape, a dump, an image), its field named, never walked" (a ring a length cuts and a room a length cuts, each through `encode`/`decode`, `save`/`load` with its length byte set past the array and past what the dump held, and `Put`/`Get`), replica.zig "a join's dump whose length says more than its buffer holds is refused, the field named, never loaded" (a column tag's `nsel` set to 7 in a byte dump's bytes, `fromDump`'s words); the fuzz as merged passes on it; the user's case: a Restore, an Upgrade or a join of a damaged dump is refused in words, the session going on (it ended at the first deinit or digest) 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: the process cases that show the Help pane read it as it is now, their ↵Gabriel Schneider4 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | goldens with them, builtins-gui.json regenerated, and Compare's row said in words: test/process/tty_boot.zig's `builtins` case reached the full index's words with no SPC path by `g e` and forty wheel ticks up (a count every builtin added moved); with each word's documentation under its row they are some 220 lines down, so the case searches for Look's row, `/^ +Look ` and Enter (the one line that starts with blanks and `Look `: the documentation's lines start with a letter), and B2 on Tutor in the SPC h group at its row now (24); the `leader` case waits for the SPC t group's first two rows (`SPC t a Ascii`, `SPC t c Changes`), the rest being below its 41 rows now; tty_terminals.zig's `ttyhelp` waits for `SPC ? Help`; the three goldens (test/snapshots/builtins.golden, leader.golden, ttyhelp.golden) updated a case at a time (`-- --update <case>`) and read: each Help capture now shows the rows with their documentation under them, the builtins case's query pane `/^ +Look` and its row `@p2:220:1`, Tutor opened by B2 from the index; docs/typ/builtins-gui.json regenerated (`text` in it, every doc the table's); Compare's second paragraph says its pair's row in words (the two points, how many changes lie between them, their first and last days) where the format `from..to N changes dates` lost a blank where the `///` wrapped; docs/typ/builtins-tui.json with it; the tui suites on the tree before this change's Compare edit: core-test 942/1108 (166 skipped), shell-test 1150/1153 (3 skipped), pane-test 182/183 (1 skipped), behaviour-test 277/277 and `-- --replay` 20 seeds of 70 steps 0 failures, term-test 17/17, kitty-test 45/45, process-test 0 of 146 failed (2 skipped), Debug, load 3.6-10; `zig build book` builds (128/128), its glossary each word's whole documentation; on this change: the frame and perf gate vs tree6 (`gpu/help1-g`, 1,648 s): 77 frames, 0 differ, gui unit-test 1748/1752 (no failure the base has not), perfab PASS (pictures identical in 10 runs, corpus2x -0.002%), perfops 120 of 121 within 0.1%, the one over the base's own (`open on small` +0.171%, the base's table +0.167%); the cross-builds (macOS, macOS aarch64, FreeBSD) build; the base's own counts here: core-test 941/1107, shell-test 1149/1152 Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | | * | | help: the rest of the builtins documented for a user (item 5's eighth group: ↵Gabriel Schneider4 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `NextColor`, `Themes`, `ThemeFile`, `DumpThemes`, `Fonts`, `TreeContext`, `Palette`, `Ascii`, the five clipboard words, `Tutor`, `DumpConfig`, `LocationsConfig`, `Messages`, `Mini`, `Back`, `Forward`, `Last`, `Jumplist`, `Edit`, `Undo`, `Redo`; `Help`, `Config`, `Build`, `Changelog`, `Addon`, `Petscii`, `Incl` and `Plumb` as the earlier changes wrote them), each sentence checked against its run (core/builtins.zig; core/Output.zig `openThemes`, `fontsListed`; core/locations.zig `Config.parse`; core/mini.zig `open`; core/edit.zig `clipYank`; core/sam_edit.zig's list of what is left out of sam): Themes and Fonts (each a `Theme <name>`, `Font <name>` line to run), ThemeFile and DumpThemes (each names the other), TreeContext, Palette and Ascii (`on`/`off`, `commodore`/`terminal`, bare flips; was lower-case fragments, "the C64 palette or the terminal's own 16"), ClipYank (every cursor's selection, joined; an image's or a PDF's selection), DumpConfig, LocationsConfig (its four fields as typed; bare, +LocationsConfig), Mini (`Mini notes.txt`; drawn once, again at the next Mini), Back (a closed file's place opens it again), Last (with none, the pane beside), Jumplist (+Jumps), Edit (`Edit ,s/old/new/g`; what of sam's is left out), Undo and Redo; docs/typ/builtins-tui.json regenerated Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | | * | | help: the settings' documentation read against what each takes (item 5's ↵Gabriel Schneider4 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | seventh group: core/config.zig `Settings.settings`, a setting's `.doc`, which the table reads and the compiler holds as a builtin's): the seventeen were already a user's sentences, each what the setting is and, in `Help <Setting>`, what it takes (`Settings.takes`: `on, off`, `0-100 (a percentage)`, `1-16 (cells)` ...); three gain their example and the word that lists or steps them: Theme ("Switch to the theme named: `Theme atelier`. Themes lists them, NextColor steps through them."), Shell (`Shell /bin/zsh`), Font (`Font Mono:14`; Fonts lists them); DumpDir's was split in the table's change; docs/typ/builtins-tui.json regenerated Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | | * | | help: the language words documented for a user (item 5's sixth group: `Def`, ↵Gabriel Schneider4 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `Refs`, `Hover`, `CodeAction`, `SelectRefs`, `Symbols`, `Diagnostics`, `WsDiagnostics`, `Index`, `Callstack`, `Callers`, `Callees`, `Supertypes`, `Subtypes`, `Rename`, `WsSymbols`, `Lspinfo`, `Lspwhy`), each sentence checked against its run (core/builtins.zig: each is `lspRequest` of a kind; core/Output.zig `traits`: where each kind's answer goes, +Search, +Hover, +Lsp, +Callstack, and which kinds jump on one answer) and the reference's paragraph on the language server's words and the guide's "Call hierarchy": Def and Refs (with a 2-1 chord's selection, at its occurrence nearest the cursor; one answer a jump; `g d`, `g r`), Hover, CodeAction, Symbols, Diagnostics (`] d`, `[ d`, `] D`, `[ D`), WsDiagnostics and WsSymbols (in a +Search; bare asks), Index (what it writes, and that the language words ask the nearest index.scip first), Callstack (the tree, outermost first, its places and signatures, tests last, `↻`, CallstackDepth, `g c`: the Help pane's paragraph "Callstack: static caller chains, with signatures and clickable call sites. Callers / Callees: one direction at a time." deleted in item 3 is said here and in Callers' and Callees' "one level up/down"), Supertypes and Subtypes (one answer a jump), Rename (bare asks; in this file at once, saying how many; across files a +Search of its edits, nothing changed), Lspinfo, Lspwhy; docs/typ/builtins-tui.json regenerated Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | | * | | help: the words of terminals and commands documented for a user (item 5's ↵Gabriel Schneider4 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fifth group: `Term`, `Kill`, `Filter`, `Repl`, `Mount`, `Unmount`, `Msg`), each sentence checked against its run (core/builtins.zig, core/exec.zig `spawnTty`): Term (below this pane, in its directory, raw at once; `Term fish` as the tag word `Term+fish`; a shell or a directory that is not there said; was: two blocks, "A shell in the calling pane's directory ... On every pane's tagline: the fast path ..." then "A terminal below the caller ..."), Kill (the lines pardes typed and its command panes; a command pane's whole command, a terminal's foreground job, never its shell), Filter, Repl (`Repl python`, `Repl -`, bare; the language as a code fence names it; what is typed into it and what stays a command), Mount (`Mount <name> <dial>`, the dial's four forms; one that cannot be reached is said and not kept), Unmount, Msg; docs/typ/builtins-tui.json regenerated Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | | * | | help: the session words documented for a user (item 5's fourth group: ↵Gabriel Schneider4 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `Exit`, `Restore`, `Dump`, `Detach`, `Adopt`, `Upgrade`, `History`), each sentence checked against its run (core/builtins.zig `warnModifiedIn`, `Restore`, `Dump`; core/Core.zig `endSession`; core/dump.zig `dumpTo`, `restoreFile`, `dumpExit`; core/Output.zig `openHistory`): Exit (+Unsaved lists what it would lose and the notice counts it; again, nothing edited since, it quits; on the way out the panes go to the state file, for History and Restore), Restore (a label, History's; a file, a path or a name in the DumpDir or the directory pardes runs in; bare, the last this session made, else the newest; a file that is no dump said before the unsaved-text question), Dump (`Dump export <path>`, `~`; the workspace tag's `Restore <path>` word after it), Detach, Adopt and Upgrade (and what each says when it cannot), History (+History: a `Restore <label>` line a dump, its date, size and pane count, the panes' names under it; B2 on the Restore, or a Look at its line); docs/typ/builtins-tui.json regenerated Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | | * | | help: the words of panes and columns documented for a user (item 5's third ↵Gabriel Schneider4 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | group: `New`, `Newcol`, `Del`, `DelAbove`, `DelBelow`, `Delcol`, `Joincol`, `Collapse`, `Zerox`, `Get`, `Save`, `Mode`, `Togglettymode`, `Left`, `Down`, `Up`, `Right`; `Follow`, `Unfollow`, `Undock`, `Window` and `Putall` as the table's change wrote them), each sentence checked against its run (core/builtins.zig, core/layout.zig `newColumn` and `placeNew`, core/keys.zig `cycleMode` and `toggleTty`, core/exec.zig `saveTo`): New (it takes the keyboard; Save asks it for a path; past 100 bytes Exit, Del and Restore ask about it), Newcol (the next pane made there goes in it; refused, saying why), Del (`Del k`, `Del j`, the question on the notice band from the keyboard between two panes, a docked pane's rows to the pane it answers for, the refusal once over unsaved text), DelAbove and DelBelow (as `Del k`, `Del j`), Delcol (the tag's column, else the pane's; refused once), Joincol (when it is refused), Collapse, Zerox (only a file's pane), Get (`Get <file>`; a directory's pane read again), Save (`Save <path>`; a pane with no file of its own asks; a revision is written only to a path; the warning once over a file changed on disk), Mode (normal, insert, and in a terminal raw, then normal), Togglettymode, the four moves; was: Get and Zerox opening on "acme's"; docs/typ/builtins-tui.json regenerated Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | | * | | help: the words of looking and finding documented for a user (item 5's ↵Gabriel Schneider4 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | second group: `Look`, `Exec`, `Find`, `Grep`, `Search`, `More`, `Panes`, `Recent`, `LookNext`, `LookPrev`), each sentence checked against its run (core/look.zig `lookAt` and `lookWalk`, core/exec.zig `executeFrom`, core/builtins.zig `search`, core/Query.zig `open`, core/Stream.zig `moreFor`) and the guide's chapters "Look" and "Search": Look (its argument's address forms, where a relative path is found, bare: the selection, else what is under the cursor), Exec (a builtin, else the line: typed into the terminal it runs from at an idle, empty prompt, else a command pane, `$SHELL -c`, `exit N`, Kill; run by name never a REPL's), Find and Grep (a query pane under the pane, line 1 the word and the argument; with a word listed, the keyboard left where it was, bare typed into; Find fuzzy over names, Grep the text as it is; 2000 lines and More; a script's search that finds nothing fails, `not found`), Search (line 1's first word names the source, `/` when none does; `SPC b b`, `SPC s s`, `SPC /`), More, Panes (open, then closed this session; Enter brings one back), Recent, LookNext and LookPrev (what a Look would open, walked through the panes, the keyboard with it); was: Grep "Find's sibling ... on the disk engine's worker", Exec with no word of where a command's output goes; docs/typ/builtins-tui.json regenerated Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | | * | | help: the change layers' words and the patches' documented for a user (item ↵Gabriel Schneider4 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5's first group: `Changes`, `Compare`, `At`, `Churn`, `Diff`, `Syntax`), each sentence checked against its run (core/jj.zig `pinWord`, `word`, `churnWord`, core/hunks.zig `word`) and the guide's chapter "Changes on the source view": the five were written whole in the table's change (their first sentences were over the bound: Changes' was 332 bytes), and are as they read there: Changes (its revset's changes on a file's pane or a revision's, one set a pane, bare hidden or shown, `@` with none pinned; lanes, the rows of what was taken away, a description after a change's last line ending its lane's arrow; `] g` `[ g`; B3 on a description's id is `Diff <id> <path>:<line>`), Compare (two points or more in order, each one revision, a pair one change however many lie between, its row `from..to N changes dates`), At (`path@rev` beside the file; in such a pane another revision in its place, bare the file), Churn (a revset or a span of time back from now; a heat cell and a strip; bare hidden or shown, the whole history with none counted), Diff (bare on a diff or a +Diff; a file, a commit hash, a jj change with a place, two points with `..`; what a hunk stands under; `SPC j n`/`p`); here Syntax: "Turn this text's syntax colours off in this view, or on again.", its code note (the ink layer) a `//` line in the struct; these words are being changed NOW by the change layers' line (ws-tilde: the layer's lines as the pane's read-only text, the view from the middle right): their documentation says what they do today and is to be brought up to date at that line's merge; docs/typ/builtins-tui.json regenerated 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
| | | * | | help: a builtin's documentation is the `///` block right above its `pub ↵Gabriel Schneider4 days
| | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | const <Word> = struct`, read at compile time into one table, `registry.doc` (its summary, the first sentence, and all of it, a line a paragraph), and every reader takes the table (the user's words of 2026-11-23: "the builtins should have their documentation in code somewhere (you may use comptime to extract that) near their definitions"): the summary was found at run time, each word's by a scan of the embedded source for `\npub const <Word> = struct` (core/ninep/ctl.zig `summaryOf`), `stripCitations` cutting `(exec.c:892)` and the like out of it: both are deleted; THE CONVENTION is written at the top of core/builtins.zig (the `///` above a builtin is what a user reads in Help, `pardes help`, /commands, `pardes words` and the glossary; no file names, no "registration", no history; notes for the code's reader are `//` lines inside the struct) and the compiler holds what it can read of it: a builtin with no `///` block, a first sentence over `summary_max` (100 bytes) or a `///` naming a .zig file fails the build, naming the builtin (one pass over the source, `registry.docs`; a setting's documentation is its `Setting.doc`, held the same); 35 builtins' docs cut to it (a first sentence over 100 bytes split at a sentence, acme and source citations into `//` notes in the struct), and DumpDir's setting doc (core/config.zig) the same; /commands prints each word's summary whole (no clip: the bound holds it); the docs' JSON (core/builtins_json.zig) takes `doc` from the table and gains `text`, the whole documentation, beside it (an addon's word: its one `.doc` in both); docs/typ/builtins-tui.json regenerated (`zig build builtins-json -Dplatform=tui`; builtins-gui.json in the change that runs the window's gates); tests: builtins.zig "a builtin's documentation is the whole `///` block above it, a line a paragraph, its summary first", ctl.zig "every word's /commands description is its documentation's summary, a line" (replacing the source-scanning one); core-test 942/1108 (166 skipped; the base measures 941/1107 here, see the report), Debug, tui, load 2-7 Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | * | | Grep: a row whose numbers a Found cannot hold is passed over: a row is a ↵Gabriel Schneider4 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | line's text with the file's name in it, and core/Query.zig take narrowed its line, column, end and path length by `@intCast`: a row `b:7:4294967297 hit` (a column past u32: a long line's hit, or a name made of such numbers) panicked every process (`integer does not fit` at Query.zig:1267 on main, the test of the tests change); now `std.math.cast` each, the row passed over; the survey's example, a file named `a:5000000000:b`, is no fault: the name parses whole; not fixed: the name unescaped (a newline in a name injects a row) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | * | | the tape's reader holds every record to its type: a unit a client replays ↵Gabriel Schneider4 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (from its session, a far link, a recorded tape) is cut, flipped or hostile, and each read of it is checked, the client diverging (and joining again) in words where it panicked: a record's kind byte (core/tape.zig Tape.next, peek, nextRecord, describe: `@fromBackingInt`: `invalid enum value` at tape.zig:458 on main, the fuzz's client side), a payload cut short after its head (replayUnit, finishInput: `next().?`), a host record under two bytes (finishInput, expectHost: new Tape.hostId), an input's tag (apply), and in core/walk.zig's decode, the tape's decoder for every type: an enum's bytes (new walk.enumFrom: its number held to a name, as std.enums.fromInt holds it), a run of enums copied whole (`named`), a slice's count held to the bytes left before it is allocated (`least`, the fewest bytes encode writes for a type, derived from the same walk); the one generic decoder checked, every type the tape carries is, and every type added; a user could hit it only by a corrupt or hostile peer Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | * | | notice band: a prompt's caret is counted wide and kept on the grid: a ↵Gabriel Schneider4 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | client's row metrics (a body cell far wider than a tagline glyph) make a band of 65535 glyphs (Layer.capacity's bound), whose caret x put `region.rect.x + caret.x` past u16 (core/draw.zig joinNotice: `integer overflow`, the session's render, found by the wire fuzz's session side on main); now counted in u32 and not drawn past the grid's columns; a user could not hit it with pardes's own frontends' metrics, a hostile or broken client could end the session Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | * | | rows: a style is one the syntax has, or the write is refused: a pane rows ↵Gabriel Schneider4 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | line took a style number as any u4 (core/locations.zig parseRows, 1..15) where the render casts the style syntax bits into `Syn` (four kinds): `m 1 1 0 0 0 0 0 3:0+3=7 a.txt` written to a +Search pane rows, then any frame, panicked (`invalid enum value`, core/File.zig:2079 recolorSyntax) the session and every client that draws; now the decoder yields a `Syn`, by name or by a number `std.enums.fromInt` takes, `.none` refused: a 9P write refused in words (EINVAL, the rows text error), never drawn; a user could hit it with a script writing rows; the test (the change before) passes Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | * | | the boundaries fuzzes and tests, failing first: bytes from outside (garbage ↵Gabriel Schneider4 days
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | and mutated-valid) into the reader that takes them, a fixed seed list and seconds, an error never a panic, memory held by a capped allocator (core/fuzz.zig, in core-test): 9P frames through the engine pardes runs (`runtime.ninep.Server(pardes.ctlfs, runtime.ninep.editor)`), framed as the engine frames them so that no walk reaches `os` (the host files) or `n`, the core effects dropped, a frame drawn after each push (16 seeds x 400 frames, deep: 607 writes, 604 reads in one run); a client inputs into the session reader (`replica.parseInput`, every tag decodeClient) applied with `update` and drawn; a session units recorded by an `Authority`, cut, flipped and grown, replayed by a `Replica` (the client road); a session byte dump and image, damaged, through `dump.check` and `dump.load`; and the sites the note found by reading, each a test: a +Search pane rows style past the syntax kinds (`m 1 1 0 0 0 0 0 3:0+3=7 a.txt`), a Grep row of a file named `a:5000000000:b` (core/Query.zig), a top-down BMP (its height negative, addons/image/image.zig, addon-test), an X10 mouse report with a control byte and an SGR one with button 192 (dev/tui/tui.zig, shell-test); on main (f34d3a74cc4a), Debug, each alone: the rows test `expected .err, found .ok` (drawn: `invalid enum value` at core/File.zig:2079), the session side `integer overflow` at core/draw.zig:282 (joinNotice, a prompt caret on a band of 65535 glyphs: Layer.capacity under a client row metrics), the client side `invalid enum value` at core/tape.zig:458 (`peek`), the Grep row `integer does not fit` at core/Query.zig:1267, the BMP `integer does not fit` (image.zig `info`), the X10 report `integer overflow` at vaxis Parser.zig:792; the 9P fuzz and the dump fuzz pass on main (no panic reached) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | | | changes layer: a file with no layer pays for it what tree6 paid, found by ↵Gabriel Schneider4 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | measure (instructions by symbol and by source line, Intel PT, on the ReleaseFast pardes-perf, tree6 against round 9's base): perfops against tree6 from 12 of 121 over 0.1% to 1 (the base's `body-appends` +0.44%, `open` +0.235%, `client-key-down` +0.13..0.16%, `client-delete-undo`, `client-edit-char`, `deep-sel` +0.10..0.14%, every frame +3.8k); (1) `File.fillBody`'s row walk compiled worse with the gutter number's layer lookups (`readOnlyRow`, `fileRow`) inlined beside it: PT by source line, tree6's lines matched to the base's by their text, the same bytes walked, the inlined `fitEnd` byte loop +98k an op with no line and its checks reshuffled (body-appends +86k an op): `fillBody(comptime layered)`, as tree6's `comptime ghosted` was, chosen by `mapRows` and `bodyText` (a length test); (2) the 9P path asked the file's text and its offsets through calls: `bodyOf`, `fileDot`, `setFileDot`, `showFileOffset` answer with no layer by a length test, inline (core/ninep/pane.zig); (3) `open` (+8.8k since tree6, step 1's): not the change-id rule's regexp (it stands after the file rules and is never reached for a file) but its PARSE: pardes-perf's open boots a core each time and each core reads the rules at its first plumb (`Plumb.Parser.take` +4.0k, `expand` +1.4k, `feed` +1.2k, `endSet`, `word`, `append`, `stringToEnum`: +8.6k): the rule is deleted from core/plumbing and Look's own unresolved path takes a change id (core/look.zig `lookUnresolved`: eight letters or more, k to z, in a pane neither a raw terminal's nor a kind's, the rule's `src is pardes`; `jj.diffChange`; one naming no change searched for as before), no rule and no parse anywhere; (4) a client's key (+2.0..2.4k): the digest of File.State's two new fields, two small hash updates a pane a digest (Wyhash's buffered update and its memcpy): one field, `layer: Layer` (`owner`, `lines`: what were `layer` and `read_only`), digested by hand (`Layer.digest`: nothing hashed with no layer shown, a length test), its line in replica.zig's `hand_walked` (the test joining a client over a pane showing the layer); LEFT FOR THE COORDINATOR'S RULING: `terminal on all` +0.141% (+147k an op over the 18 terminal cells, +7.8k a terminal frame, the same in-run by an in-process counter around each cell): PT by line in the terminal's render cell: core/ansi.zig `recolor`'s per-cell style loop (source unchanged) compiled worse inlined into `body_layer.renderBody` after round 8's deletions there (`w.ghost`'s skips, `Pane.wrapAt`'s `ghost` field): what it buys is those deletions; `@call(.never_inline, ansi.recolor)` made it worse (+0.227%, and `deep-sel` +0.285%), not kept; perfops (the gate's malloc setting, load 2-9): v4 against tree6 120 of 121 within 0.1%, largest under the budget `client-key-down` on medium +0.065%; core-test 952/1118 (166 skipped) Debug tui Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | | | changes layer: a pinned change that is neither behind nor ahead of the ↵Gabriel Schneider4 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | revision shown (a sibling) draws nothing and the notice line says so in words, `Changes: wlrmpstu is not on @'s line` (the coordinator's ruling of round 8's question (b), said to the user): round 8 left a sibling out of jj's query, so a revset of siblings alone said "no change of `...` touches a.zig" and one beside others went unsaid; now the query takes the whole revset (with the unpinned changes between, as before) and `logTemplate` marks a change neither behind nor ahead `s` (`entryOf`'s `aside`); `parse` keeps its step (its diff's bounds) but reads none of its hunks (it moves no place on the shown line), Churn counts it as a change ahead (none of the shown lines), and `pinAnswer` says the siblings' ids (`asideSaid`, from jj's answer: no new state, nothing replicated) as the notice with what is drawn, or as the refusal when nothing else is pinned; the guide's *From the middle* says so; THE FAILING TEST FIRST (core/jj.zig "a pinned change neither behind nor ahead of the shown revision (a sibling) draws nothing ..."): `two` and `sib` children of `one`, the working copy on `sib`: `Changes ~::@` (two alone) said "no change of `~::@` touches a.zig" on the round's base; now `Changes: <id> is not on @'s line`, nothing pinned, no lanes; `Changes ~::@ | @-`: `sib` drawn, `two` named; core-test filtered on jj (Debug tui) 56/56 Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | | | changes layer: the node keys and the indent parse the FILE's text, as every ↵Gabriel Schneider4 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | other parse does (round 8 left them parsing the buffer with the layer's lines in it): `normal.fileTree` parses `File.fileText` (the buffer itself with no layer: a length test), and `Editor.Tree` carries the text it parsed and the file whose buffer the keys' places are of, `in` (a buffer place as the tree's: `File.fileOffset`) and `out` (back: `File.bufferOffset`, a range's end before the layer's lines standing there; the library's text is its own: both the identity at comptime): Alt-o and kin (`nodeSelect`: the walk asked in the file's places, its spans mapped back), `]f` and kin (`objectJump`), a tree-sitter text object (`maf` and kin, edit.zig), and `o`'s indent (`treeIndent`: the file's text, row and offset with the layer shown; unchanged with none); `File.edit` tells the kept tree of no edit with the layer's lines in the buffer or going in or out (`told`, `read_only`): it is the file's text's, parsed anew at the next key; THE FAILING TEST FIRST (core/jj.zig "the node keys and the indent read the file's text ..."): with the layer shown and hidden, the cursor on `c2();`, Alt-o once, twice and three times and `maf` give the same range of the file's text (9P's `dot`), and `o` the same new line: on the round's base the function's text object selected nothing beside the layer's lines (27..27 where hidden 0..34: the description line in the buffer broke the function's parse); with this, equal; core-test filtered on jj (Debug tui) 55/55 Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | | | merge: the Changes layer as the pane's read-only text (pardes-m64-base: ↵Gabriel Schneider4 days
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | round 8's two changes on pardes-merge63c) and Compare (pardes-merge64: `ntlsszul`, `qkksrtsn`), resolved by function: `pinWord` (Compare's road for both words) keeps round 8's `setLanes` (the layer the pane's: shown or hidden in every view of it), `pinAnswer` parses the file's text (`File.fileText`) and names its kind's word in every notice, `describe` gives a pair its row whole (no author; `fitted` gone with round 8's cut) and returns where an author would start, `isPair` kept beside it, `lookGhost` reads a description line as round 8 does (a buffer line, `readOnlyRow`) and opens a pair's patch by its row's first word (`from..to`), hunks.zig `word` tries a pair then a change (`diffChange(.., false)`) and keeps round 8's revset word at no such file, its doc saying both; round 8's rule made Compare's (the coordinator's 15:10: "a pair is ahead when its FROM point's text is the shown one"): `pairRuns` finds where the revision shown stands among the points (an empty `jj diff --from POINT --to REV`: the last point first, the one diff already run; then from the first), marks every pair from there on `a` (pinned, ahead) or `d`, and adds the step from the last point to the revision shown only when no point's text is the shown one; `pairOwners` skips a step ahead (it wrote none of the shown lines); the test marked ROUND 8 ("Compare in a revision's pane at its middle point ...") now wants the second pair ahead (`d();` the text's, going; `d2();` and `e();` read-only lines after it; its row after them) and passes; the first Compare test's `]g` wants each run's first line, a layer's line among them (rows 2 and 6, where ghost rows were no lines: 2 and 3); the guide's *Points.* paragraph says a middle point's pairs as built, the cheatsheet's and the guide's table rows both sides', `pinWord`'s and Compare's docs (builtins.zig, both JSON lists) "in every view of it"; core-test filtered on jj (Debug tui): 54/54 with the next changes' tests left out Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| * | | changes layer: `Compare <rev> <rev> [<rev> ...]`, the user's three-way view ↵Gabriel Schneider4 days
| |/ / | | | | | | | | | | | | | | | | | | compressed: between each two consecutive points of the history ONE change, the file's whole difference between them however many commits lie between (the user, 2026-11-23, of `Changes (9ef..ea6) | (ea6..master@origin)`'s six lanes on cpi.rs: "they should be compressed so its only two changes"), each a pin of the layer as a commit is, so every part of the layer and what round 8 does to pins serves it with no second implementation: TESTS FIRST (core/jj.zig, a throwaway jj repository, the pane's surface, terminal and window): three points on one line of history (`Compare @----- @--- @-` over five commits) are two pins, each pair's row `from..to 2 changes day` after its last line, who wrote each line (b2 the first pair, d2 and e the second), the rows as the view shows them with the lines each took away where they stood and no number on the layer's, each pair's lane its own colour, `]g`, bare `Compare` hiding and showing the set without asking jj, `Changes` after it replacing it and it `Changes`'; two points neither the other's ancestor (two branches: `1 change, 1 undone`, each changed line's old text above it, the patch's `+` and `-` lines); a revision's pane at the middle point (`At @---`: the first pair behind, as at the last; the second drawn as round 7 draws a change ahead, as behind it: the test's want is marked for round 8's merge); one point, bare with nothing pinned, a point naming two commits (jj's words, `more than one revision`) and an unknown one refused, nothing pinned; a B3 on a pair's row's first word opening its patch (`Compare from..to`, the changes between newest first each signed, the hunks, the cursor on the pair's last line, typed the same); a client replaying it equal and its pairs crossing a join whole (`loadsAsSession`); on a worker, the word returning at once and the answer landing as one input; each failing on the base (no word `Compare`); THE CHANGE: the struct `Ask` (its `Kind` gains `compare`, and `word`, each kind's name in its notices: a rename is that line and the builtin's) and two functions, `answer` (one line: a Compare's runs are `pairsAnswer`'s) and `parse` (one line: who wrote each line from the pairs' hunks, `pairOwners`, where a Changes reads jj's annotation); `pairsAnswer`/`pairRuns` answer in the shape a `Changes` gets: the clock, for each pair an entry line as `logTemplate` writes one (its id the first point's change, its title the pair's row from one `jj log` a pair: `f`/`t` the points, `+` a change in the second not the first, `-` the other way, the author's day) then `jj diff --from --to --git --context=0 -- FILE` (an empty difference: an entry not pinned), then from the last point to the revision shown an entry not pinned whose hunks carry the places (`carried`, unchanged), and jj's text of the revision shown (`jj file show`, lined up with the pane's as the annotation's text is); `pairOwners` walks that text back through the steps' hunks, the newest step a line's (a carrier's nobody's), and `provenance`'s last lines are `linedUp`, shared; `describe` gives a pair its row (`isPair`: a title starting with its id and `..`), `lookGhost` passes a pair row's first word whole (`Diff from..to path:line`), `diffPair` (hunks.zig's `Diff` before `diffChange`) is that patch: `jj diff --from --to --git [-- path]` under `Compare from..to` and the changes between (no plumbing rule for `x..y`: a `matches` rule compiles its regexp at every plumb, and an open plumbs: it cost every open about 9,100 instructions in the perf gate, so a Look on `from..to` in running text searches), `standAt` is `diffChange`'s cursor placing, shared; `changesWord`'s body is `pinWord(kind)` for both words (bare as bare Changes; fewer than two points refused in words), `ask`/`receive`/`pinAnswer` name the kind's word; config.zig `Compare` has no leader path (it needs its points); builtins.zig, both builtins lists; NOT TOUCHED: `File.fillBody`, the ghosts' geometry, `ghostsOf`, `carried`, `nest`, `hunksOf`, the paint; nothing new in any replicated struct (a pair is a `Pin`, its row in `ghost_text`, its points in `Changes.revset`, all made by `parse` in every process from the one input): wire 31; THE GATE (ws-svc, loads 2-8): tui core-test 943/1109 (166 skipped) and shell-test 1151/1154 (3 skipped) in Debug and in ReleaseSafe (the base, my first run: 936/1102 and 1144/1147; ReleaseSafe run under bin/sig: from a background chain without it the four host_io Ctrl-C tests fail, as the rules say), behaviour-test and --replay 276/276 (20 seeds, 0 failures), test/daemon.py plain and --clients on the Debug install, the user's case run (agave's cpi.rs, `Compare 9ef6312813 ea63317630 master@origin`: two lanes, rows `ozlwptts..pyquzokk 4 changes, 1 undone 2026-09-25..2026-11-03` and `pyquzokk..rmrksrzs 2 changes 2026-11-05..2026-11-09`, jj's answer on the worker in 1.5 s, agave's operation log untouched); the frame and perf gate against tree6 (gpu/cmp1-g2): 77/77 frames, gui unit-test 1748/1752 (no failure the base has not), perfab corpus2x +0.022% (noise 0.044%), perfops 33 of 121 over against tree6, exactly the base line's own 33 (the coordinator's gpu/merge63-g: body-appends +12.026%/+8.068%), and against that gate's candidate all 121 within 0.1% (largest client-key-down small +0.037%) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | | the Changes layer from the middle, and every way into a patch view: in a ↵Gabriel Schneider4 days
| | | | | | | | | | | | | | | | | | | | | file at a revision a pinned change behind it (the revision or an ancestor) shows what it took away where it stood, and one ahead of it (a descendant) shows the lines it will write as read-only lines, green, where they will stand, the lines it will take away the revision's own text, red across, going; a change that is neither (a sibling) is left out (round 7's evidence, `layer-gone/mid2.py`: a deleted line's ghost a line late there, a change ahead drawn as behind); the causes: `carried` moved a pin's place through every later change's hunks, those ahead of the shown revision too, so jj's log now marks each change behind (`::REV`) or ahead (`logTemplate`: `p`/`c` behind, `a`/`d` ahead; the query takes the revset's changes behind or ahead and the unpinned ones between) and `carried` passes only the changes behind (`Hunk.ahead`); a pin ahead's places are carried back from its parent through the changes ahead before it (`carriedBack`), the lines it takes away marked (`Line.going`, its lane beside them: `going`), the lines it writes the layer's (`Ghost.Kind.added`), its description after them; and "a changed line's old text below the new where the guide says above": a replaced line the patch view's alignment does not pair was a line taken away standing after what was written in its place: now a diff's order, what went right above what came (lines taken away after a run's last changed line right after its new text; with none changed, before the lines written in their place), in the file's own pane and from the middle alike; Churn counts no change ahead; `Diff` with a word that names no file, in a jj repository, takes it for a revision (`Diff @-`, a bookmark): its patch with jj show's header (`jj.diffChange(..., any)`), the one way in that had none (round 7's table; `jj diff` prints no header, so its paged text has none to keep; a header was never dropped on purpose in core/hunks.zig's and core/diff.zig's history); the guide's chapter (the layer the pane's, its lines text and read-only, what an edit there says, what reads the file without them, from the middle, `Diff @-`), the cheatsheet's line, the `Changes` builtin's doc and both JSON lists; tests (core/jj.zig): "from the middle: in a revision's pane a pin behind it ... a pin ahead of it ..." (terminal and window), "a line replaced by one too unlike it ... a diff's order ...", "Diff with a revision jj takes (`@-`, a bookmark) ..."; not gated yet: jj's 44 tests pass (core-test filtered), the book builds Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
* | | the Changes layer's lines are the pane's text, read-only, and nothing is cut ↵Gabriel Schneider4 days
|/ / | | | | | | | | | | | | (the user's rulings of 2026-11-23: "all text is regular text", "the ghost line should be regular text too ... but I cant edit them", "don't cut them ... break them following the regular softwrap"; the coordinator's model P71): while a pane's layer is shown, a line a change took away, a changed line's old text and each change's description (`id title author age`, its whole title and its whole author) are lines of the pane's buffer, and the buffer carries their places (`File.State.read_only`, `File.ReadOnly`, whose layer `File.State.layer`), so every motion, selection, search, text object, count, yank, B2 and B3 works on them because they are text, and they wrap by the pane's soft wrap; ONE check where every edit passes (`File.edit`'s `readOnly`: a file at a revision is its whole text, the layer's lines each one; an edit that changes a byte of one, puts any in at its start or inside it, or leaves one on the end of the line above is refused whole, in words on the notice line), edit.zig's second revision check deleted; THE FILE'S TEXT by one function (`File.fileText`, `FileParts`, `fileHash`, `fileEql`, `fileLen`: the buffer itself with no layer, a file with none pays nothing) and two maps (`fileOffset`/`bufferOffset`, `fileRow`/`bufferRow`: a place in one of the layer's lines is after the file line above it), read by every sink: Save and Save-as (Effect.zig), `body`, `addr`, `data`, `xdata`, `sel` and `dot` over 9P (ninep/pane.zig `bodyOf` is the file's text, `fileDot`/`setFileDot`, a 9P write is `File.replaceFile`, a read of a pane with the layer a copy, never a region of the buffer), the dirty checks, Get and a disk reread (`File.load`: the layer out and back), Edit (sam over the file's text, its result a load, its `w` the file's), the language server (its source, the offset asked at, its edits, its places), the syntax parse (`highlightLayered`: the file's text parsed, its colours laid around the layer's lines; context declarations; a worker's parse; query rows' colours and line numbers), jj's own provenance and churn, `Look :N` and `path:N` (the file's line N), the undo journal (an edit journaled in the file's offsets, an undo taken with the layer out; `Journal.record` takes the removed bytes); the layer in and out by `jj.showLayer`/`jj.hideLayer` through `File.relayer` (an edit of kind `.layer` that nothing reading the file hears of, every view's cursor, selection and top line kept by the file's offsets); the layer is the pane's: shown in every view of it and of its twins (`jj.setLanes`); when the editor's whole new text's shortest splice runs into a read-only line where an equal splice does not, that one is taken (`File.clearOfReadOnly`, never back across a read-only line); deleted: `File.fillBody`'s ghost branch, `File.hasGhosts`, `File.bodyWidth`, `jj.fitted`, `jj.row_max`, `jj.showGhosts`, `jj.wordAt`, `Pane.ghosts`/`ghost_text` and `wrapAt`'s `ghost`, Core's per-step sync; the gutter numbers the file's lines; `]g`/`[g` land on a layer's line as on any; the arrow keeps the user's bend (`╰─→`, as nmwnvrow); WIRE 34 (a file pane's `read_only` and `layer`, a description ghost's `author` in the dump and the digest; a clean file's text is dumped while the layer's lines are in its buffer; a dump of 31 loads, a pane whose view showed the layer showing it again: `jj.loaded`); tests (core/jj.zig): the layer's lines as text, read-only (terminal and window), THE FILE'S TEXT (every sink with the layer off and on, byte for byte), the undo across hide and show, 9P in the file's offsets, a client replaying them and a join loading them, a wire-31 dump, a description whole and wrapped in 50 columns, and the old tests of the per-view rows made the pane's; its gate (.scratch/sketch/reorg/pardes-layers-8/g8a, loads 3-7): core-test 942/1108 (166 skipped; the base 936/1102) and shell-test 1150/1153 (3 skipped; the base 1144/1147) in Debug and in ReleaseSafe, behaviour-test 276/276 and --replay, pane-test 182/183, the soak --clients 5 (diverged 0, unequal 0, unlisted 0 at 30/80/207 ms, the corpus 22 of 22, no leak), the gui unit-test 1747/1751 (the known BaselineHarnessMismatch alone), the frame gate 77/77 frames, 0 differ; the perf counts against tree6 40 of 121 over 0.1% where the base's own gate (merge63-g) has 33: against the base this adds body-appends +0.42%, client-key-down +0.18%, terminal on all +0.155%, client-delete-undo +0.14%, deep-sel +0.12%, client-edit-char +0.11% (cause not found yet) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| |
| \
| \
| \
*---. \ integration: the tree to install (2026-11-23, the user's "as quickly as ↵Gabriel Schneider4 days
|\ \ \ \ | | | |/ | | |/| | | | | | | | | | | | | | | | | possible"): the pdf kind's abort, the Changes layer's first step, a link rejoined over its own connection, a terminal's first run, the pair's fixes for both paths: pardes-rejoin (`rnllpvzw`), pardes-first-run (`qvzzotyn`), `ulqsysrv` on `vwzmwwpw` (the release-soak line's FIRST fix only: `addon.cSlice` at every C pointer with a count: a search with no hit on a PDF's page and an outline that is none no longer end the session), pardes-pair-13 (`ttvpvmlo`: the start path less " (deleted)", a stub's abort at kill -9) and pardes-layers-7a (`lupmqzxl`: one pinned change's lane green and red, the arrow, the looks, a change's patch with its header), with the terminal's arrow as the bend the user chose (`╰─→`, as `nmwnvrow`); LEFT OUT on purpose, for the next install: the release-soak line's `walk.eql` in the jump list (it hashes two entries a cursor move: body-appends +8 to +12% an op in merge63b's gate) and `tellEveryView` with its test (a client back after the outcome's message had gone failed every upgrade row there); no conflict; its gate: .scratch/sketch/reorg/merge63c, the numbers in PARDES.md Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | | * changes layer: a Look on a jj change's id opens its patch, its header and ↵Gabriel Schneider4 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | whole message at the top, and a Look on a ghost row looks at its word as anywhere (the user's rulings of 2026-11-23: all text is text; a patch of one change opens with its metadata): a word of k to z letters had no meaning to a Look (searched), `Diff` took only a git hash, and a B3 on a ghost row was a button of its own (`lookGhost` opened the line in the revision it came from); now `Diff <change> [path[:line]]` (core/jj.zig `diffChange`, from hunks.zig's word) runs `jj show --git -r change_id(<change>)` in the pane's repository (on the tape, as `At`'s `jj file show`), stacks it in the change's own `+Diff-<commit>` with jj's header above the hunks (Commit ID, Change ID, Author, Committer, the whole message) and puts the cursor on `path`'s row for `line` (that file's first row without one, the top without a place; a second Look moves the open one); a plumbing rule sends a change id looked at in any pane (eight to thirty-two letters k to z, as `jj log` writes them: four would name a change by accident too often) to `Diff`, which declines a word that names no change, so it is searched as before; a B3 on a ghost row looks at the word under it (`wordAt`, then the regular `look.lookAt`), and on a description's id runs `Diff <id> <path>:<line>` with the line of that change's last hunk in this file, the text a user could type; tests: "a Look on a change's id opens its patch ..." (B3 on mid's description id in a terminal and a window: a `+Diff-` pane, its first lines jj's header, ` mid` in it, the cursor on a.zig:4; the same typed with a.zig:2; `Look <cut's id>` from the file: cut's patch at its top; `Look zzzzzzzz`: no patch), the ghost-row test's Look now asserts a B3 on `c();`'s ghost row is what `Look c` does (no revision opens), and hunks.zig's "a log of several changes keeps each one's header and whole message above its own hunks" (git log -p: each commit's header above its own hunks: it passed on the base: the format keeps them); core-test 927/1091 (164 skipped), shell-test 1133/1136 (3 skipped) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | | * changes layer: a lane's colour says the kind of the row it stands beside, ↵Gabriel Schneider4 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | and a change's lane ends in an arrow at its description (the user's rulings of 2026-11-23): a lane had one colour a change (the theme's accents in hue order, `laneColours`); now beside a row a change wrote (a line added whole, a changed line's new text) it is the theme's cool accent and beside a row it took away (a line taken away, a changed line's old text) its warm one, both from one function, `jj.laneInks` (among the theme's accents, greys and those within 15 degrees of its green and red left out, the one nearest azure and the one nearest orange, each from its own half of the hue circle so the two are never one; a half with none takes the theme's most vivid accent turned to its pole in OKLab, `colors.turnOklab`: the user's neonotte84 has no cool accent and gets its keyword pink turned azure; then each pushed toward the ink to read 3:1 on the page); a description row's lanes keep the kind of the row above it (`takenAbove`), and its change's lane ends there as an arrow pointing at the id: in a terminal `▎─→` across the lane cells (`↳` from the last level), in a window the strip bent at the row's middle into a shaft and a head (`Lane.arrow`, the cells to the text; dev/gui/gui.zig `laneStrip`, each piece cut to the glide as the strips are), the outer lanes passing it unbroken; a description's id is the theme's keyword ink and its title the text's (no one lane colour is left to give it); a lane runs through no unchanged line (`nest` ends a block at a line no pinned change wrote), so none needs a neutral; tests: the lanes test and the ghost-rows test assert each row's lane ink by its kind, the arrow's glyphs in a terminal and `Lane.arrow` in a window, and the id's ink; a new test runs `laneInks` over all 285 themes (never one colour; each reads 3:1 on the page or as nearly as the theme's own ink does; 16 end greyish); not changed: the rows' grounds (green and red, as the patch view's), Churn's cell and strip; core-test 925/1089 (164 skipped), shell-test 1131/1134 (3 skipped) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T