| Commit message (Collapse) | Author | Age |
| |
|
|
|
|
|
| |
head row ends with its count and at most one dim hint, the one key to what the head and the band do not show; a list known at open is exactly its rows tall (UX DESIGN O4, binding; the user, on W5's field under the tag: "why so many builtins are shown below still? most of them don't make much sence in the picker context right? also why other pickers names are there? that's wayyyyy to crowded, we only want to keep the absolute necessary there"); THE WAY IT WAS: Pick.head put a second row under every picker's head, under the spines, `Walk Look Split Newcol Grep Edit Copy Keep Drop | Grep Recent Panes Symbols All Jumplist …` (the acts, then the other sources' words, cut with `…`), the head row's right block carried up to 43 cells of hints (`⏎ land · M-⏎ as a list · C-r history · esc`, `↑ roll up · ? field · esc`, `⏎ wear it · esc`, `⏎ or 1-9 apply it · esc`, `⏎ rename · esc`, `⏎ run · esc`), and Pick.bandRows held 4 rows at least (D6's 4 counted the act row), a Grep's and All's 11 from the first frame whatever they found; THE CHANGE: Pick.head is one row, the count and `M-l acts` (dim, dropped first when the row is narrow; none for Themes, code actions and Lists, which have no acts); the acts stay on their keys and in the act step (M-l, M-Enter), each source on its own leader key, M-h's spine switching with the query kept, and any word typed into a tag still runs (Pick.execWord: `Grep`, `Split`); every text prompt and `:` hints `C-r history` (Prompt's table loses its `hint` column: one const), a rolled or unrolled level and the registers `? help`, describe-key keeps its question `press a key or a sequence` (its `· esc` and a found key's `⏎ run · esc` go), rename none; Pick.bandRows: a list known at open (Panes, Recent, Jumplist, a list, Messages, Themes, code actions, Lists) exactly its rows (1 at least, 11 and the cap at most), one whose rows come later (Find, Grep, All, Symbols) 3 at least and growing as they come, never shrinking while it is up: `tall`, a picker's most rows since it unrolled (a new field, reset by unroll, raised in produceAll a step at a time: in the dump and the digest), so typing a Grep's query never moves the body; RUN (TEST FIRST): Pick "a picker's head is one row: the count and one dim hint at its right end, `M-l acts`; no row of acts and sources, the list's rows right under it; Themes hints nothing" (replaces the act-row test; fails on the change before at Pick.zig:3979, the head two rows) and Pick "a picker's band is its list's rows (UX DESIGN O4, D6): a list whose rows come later (Find) holds 3 at open, never moved by typing; a list known at open exactly its rows: SPC b b with two panes covers its head and 2 rows" (was "… 4 rows at least …"; fails on the change before, 4 rows for 3), pass now; the tests that read the old hints read the new ones (TagState's right block, at 14 columns now where `? help` no longer fits, its rolled-level and wrapping tests, Band's SPC Down, draw's dim-hint ink, Prompt's `/ ? s K |` heads, Command's `:`), Pick's 40 % test lets the Grep's lines come (the clock to the pause's end: 40 lines, the band from 3 to its cap), and views' short-column test runs at 40x14 (at 40x15 the band, a row shorter, now fits whole); a user saw the crowded row under every picker and the long hints on every head; the process cases that wait for a rolled level wait for its `? help` (tty_boot leader twice, tty_editing find; they waited for `↓ unroll`); GATES (Debug tui): core-test 1172/1346 (174 skipped; one program's 7 cached), shell-test 1387/1390 (3 skipped); process-test 7 of 149 failed (3 skipped): pipe, msg, selregex, fsearch, lsp on their goldens, leader and find on the old wait, the goldens re-recorded by the next change; the dump changes (Pick.tall, and the change before's TagState.waits): the dump fuzz and the soak with the next change; load 1.4 to 4.7
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
|
| |
|
|
|
|
|
| |
a pane's tag stays exactly as at rest and what the keyboard drives hangs under it, the head on the row under the tag's rows, then the band (UX DESIGN M, binding; the user, looking at a picker started in an empty pane whose tag had become `^ ␣ f Find ascii 1/1`: "doesn't it make sense to the search just show below the tagline instead of being search tagline then results?", then "Keep consistent, idk, yes"): for every state the keyboard drives (rolled and unrolled levels, `"`, Help, describe-key, every picker, every text prompt, `:`, rename, code actions) the tag keeps its mark, owner, trail, path, Keep, computed words and own text, its rows and its wrapping, the box alone saying `^` while typing; THE WAY IT WAS: the head (TagState.head) was the tag's text after a cut-down prefix (D1's owner and newest step, tagline.pathPrefix's out-of-rest branch, Trail's `.newest` part), so the path, Keep and the user's text left the screen while you typed, the key cells sat on the tag's row for a level and jumped with it, and a picker's preview in a reading pane would have named the previewed file had the path stayed; THE CHANGE: TagState.head is the head alone, laid out from the tag's text column on rows of its own (Builder's `lead` gone), and TagState.asking the question a tag says, which stays in the tag (UX D13, M1: questions unchanged); tagline.shownTail is the question or the own text in every state, pathPrefix the path in every state (the out-of-rest branch and Trail's `.newest` part, `newest_cells` and the `cut` buffers deleted); a pane a picker previews in names its own file, the one Pick.showText set aside (tagline.named, tagWords, and Trail.reading asking the same file, so its tint, Keep and words are the rest ones); a pane made for the picker (it has no rest) shows its owner's word alone, `‹@pN ›` (M3; P1's reading 2 reversed); Band.covered is the tag's rows at rest, then the head's rows, then the band's, `over` = head + band (no rows the head reused: M4), layout.headRows the head's own rows and floorRows the tag's rows plus the head's and the band's (a head that does not fit borrows from its column as a band does); draw.zig joinBand paints the head's rows as the band layer's first rows (its spans' inks moved there from paintPaneTag, its caret the band layer's cursor), the band's under them, the spines from the head's key cells on its own row; render draws the host's tag with its rest rows; mouse: a press on a tag out of rest ends its state as Esc does and then does what it does at rest (M3; a pane made for a picker goes with it and the press with it), bandPoint reads the head's rows as the band layer's first, and B1 in the head's field puts the field's caret there; edit.zig refuses an edit of a tag only while it asks; RUN (TEST FIRST): five new tests, each failing on the base (M2, 8959b031dc33) and passing now: TagState "out of rest a tag is drawn as at rest, the head hanging under it ..." (a `.list` picker in a reading pane that walked near.txt -> far.txt: the tag's rows cell for cell as at rest but the box, its path far.txt while the body previews near.txt, the head `␣ l Refs ... 1/1` on the next row, its count the row's last cells, the band under it; Esc, the rows as before: failed on the base at the tag text, `near.txt:2 › ␣ l Refs ...`), TagState "the key cells are one thing growing on the row under the tag ..." (`␣`, `␣ f`, `␣ f Find` in the same cells of the row under a two-row tag: failed on the base, `␣` on the tag's row), TagState "a click that gives the keyboard to another pane ends a level ...; one in the level's own tag ends it too, then does what it does there at rest ..." (was "... one in the level's own tag keeps it"; B1 on the tag's own word ends SPC's level and gives the tag the keyboard, B2 on `Wrap` ends Help and toggles wrap: failed on the base, the level kept), Pick "a pane made for a picker has no rest: its tag is its owner's word alone, `‹@pN ›` ..." (B3 on it: the picker ends, the made pane goes, nothing under the press looked at: failed on the base, its tag `␣ f Find ...`), Command ": hangs its field under the tag, which stays as at rest; `:` on the empty field gives the keyboard to that tag's own text right above it ..." (failed on the base, the tag text `: ...`); the expectations that read the head through the tag's text read it from TagState.head now (TagState's testTag, Prompt's and Command's headOf, Pick's headOf; bindings, Messages, lsp/Ask, Trail, Band, draw, views: ~40), and the ones that read a body's first row while a prompt is up read the rows under the head's (Prompt's `/`, `s`, `|` tests, body_layer's current-place test, Ask's rename); views' short-column picker test runs at 15 rows (the head's row is one more covered row: at 12 the band had none left); the process test msg waits for the second reload by the notice row's `×2` (the pane's one line is under the `s` prompt's head now); AND A FAULT THIS MADE VISIBLE: code actions drew their edit's ghost lines from the body's top under a band drawn over it (Pick.previewing was a place's preview alone), so an edit on the first rows of a file was under the band; with the head's row one more covered row, test/behaviour/language_servers.zig's "SPC l a lists the server's code actions ..." failed (`let x = sum(1, 2);` at line 4 under the head and a 4-row band, not on the screen); THE FIX: code actions' body is their preview from the first (UX DESIGN I1: "a picker and code actions (whose body is the preview) keep D6"): Pick.previewing is true for them, so the body starts under the head and the band as a picker's preview does; the behaviour test passes now; GATES (Debug tui, this change): core-test 1166/1340 (174 skipped; M2's gate 1155/1329), shell-test 1381/1384 (3 skipped), behaviour-test 287/287 and --replay 287/287, pane-test 184/185 (1 skipped), term-test 17/17, kitty-test 45/45 (these three before the code-actions fix and two renames), process-test 8 of 149 failed (3 skipped): exactly the goldens with a frame out of rest (find, fsearch, leader, lsp, msg, pipe, selregex, ttyhelp), re-recorded and explained by the next change; the dump does not change (no pane or view field); no frame or perf gate (the user's rule of 2026-11-26); load 4.2 to 14.3
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
|
| |
|
|
|
|
|
| |
out of rest a tag keeps exactly its rows at rest, and its head's rows past them and the band under it are drawn over the top rows of its body, which never moves, wraps or resizes for them (UX DESIGN I1, on the user's "the other editors when there's new ui on top of the text it doesn't scroll ... I think we should do that, no?"); THE OLD WAY: the band pushed the body down (Pardes.sync grew `tag_rows` by `band_rows` and the head's rows), so every row of the text jumped by the band's height on SPC Down, Help, `:`, the registers, a rolled level of three rows, and back on Esc, while a terminal's and a kind's band was a second path drawn over its body (Band.over, Band.shownRows); THE CHANGE: Band.covered (from the state alone, as takes is) says where a tag out of rest is drawn: its head's rows, the band under them (as many as the pane has; a picker's keeping D6's body under it), and `over`, those past the tag's own rows; sync keeps the tag's rows at rest (the terminal special case is every pane's now) and puts `over` in the pane's view (SessionView.covered) for File.show; draw.render draws the host's tag and band after every body, one path for every pane, the grip's column beside the covered rows on the tag's ground, a caret under them hidden until rest; layout.floorRows borrows for a level, Help, `:` or the registers only the rows its head and band need (a picker and code actions keep D6's 60 % / 6 rows; a terminal's and a kind's size stay their user's); mouse.bandPoint gives a covered row to the band (a head's row over the body: B2/B3 on its word as on the tag's first row, B1 nothing); File.show counts the covered rows like the context rows, so what a state shows (a prompt's current hit, C-r's) is put in the rows left visible, a target already there not moved; TagState's rolled level of a terminal takes its three rows too (over the pty, which keeps its size); `band_rows` goes from Pane and PaneView (the dump: SessionView.covered and Pick.previewed come); W1'S READING (I1 is silent on a landing near a file's top): a picker's preview starts under its band (Pick.previewing: from the first place it shows in its landing pane, the band takes its rows from that body, as before), since Find lands on line 1 and a band over the body's top hid the file's first eleven lines and the landing line; before its first row, and after Esc, the pane's own text is where it was; the GUI's tag rule goes under the head's rows as under the band's (gui.zig paneDecor); TESTS (FIRST, where the old behaviour was asserted, inverted): Band.zig "SPC Down unrolls ... drawn over the top rows of the body, which stays where it was" (was "the body pushed down and never drawn over"), "out of rest the body stays where it was ..." (a rolled level, SPC Down, Help, `:`, the registers and a picker before it previews: every row of text under the rows drawn over it on its screen row at rest, the same first row, size and scroll; Esc leaves the body's rows as at rest), "a level's band covers what it needs ..." (no borrow where head and band fit, exactly head + band where they do not), "a covered row belongs to the band ..." (B1 on a band row over the body moves the level's cursor, on a head's row over it touches no body); Pick.zig "a picker's preview starts under its band ..." (in a reading pane: its text stays before the first row; line 60 at ⌈visible/3⌉ under the band, line 1 on the row right under it; Esc: its own text where it was); Prompt.zig "a search's current hit under C-r's band is put in the rows the band leaves the body ..."; the tests that read `band_rows` read Band.covered; body_layer's D10 test: `g`'s first-line target is under the rolled level's rows now (I2's named cost); GOLDENS re-recorded, every moved row: leader (spc, unmapped: the one line of cmds.txt stays on row 3 under the level's second row instead of row 5, the caret on it hidden), find (nomatch, topbar: a picker with nothing to preview leaves here.txt's line 1 on row 3 under the band instead of row 8; cancel: row 8 no longer listed as changed), ttyhelp (leaderworks: Help's band over the +Help pane's text, whose rows 10-20 keep the previous snap's text instead of moving down seven rows); a user saw the text jump on every SPC Down, Help, `:` with rows, registers Down and a rolled level wider than its tag; core-test 1115/1287 (172 skipped: +3), shell-test 1335/1338 (3 skipped: +3), pane-test 183/184, behaviour-test 280/280 and --replay 20 seeds 0 failures, process-test 0 of 147 failed (3 skipped; 3 goldens re-recorded), term-test 17/17, kitty-test 45/45; the dump fuzz at 40,000 join seeds and 40,000 + 1,779 image seeds 11/11; the soak `replicas -- --clients 5 --rtt 30,80,207`: diverged 0, unequal 0, quiet checks 580/0 480/0 675/0, unlisted stops 0, the corpus 22 of 22 scenes the same, no leak; load 1.2 to 10.9
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
|
| |
|
|
|
|
|
| |
rows the tag keeps from rest, and no spine hangs where no band row is (UX D5 as E3 amends it, DESIGN.md E5.2: "there is never a blank row between a head and its rows"; "no stub `│` in a kept row under a prompt"): a pane whose tag takes two rows at rest showed `SPC ?`'s one-row head, a blank row with spines, then the band (P1-L 03/04, P2-L 02/03); TESTS FIRST: Band.zig "a narrow band gives way ... the band starts on the row under the head, in the rows the tag keeps from rest" (44 columns, a tag of 2 rows at rest, Help for SPC l: on the base the tag's own rows 2 (`expected 1, found 2`), the band from its third row) and "out of rest with no band, the rows a tag keeps from rest stay blank: a spine hangs only where a band row is" (`/` in the same pane: on the base a `│` under the key cell in the kept row); THE CHANGE: Core.sync lays a host's tag out as the head's own rows (a terminal's: the rows at rest, as before), and a band of B rows takes the rows kept from rest first: `band_rows = max(B, kept - head)`, `tag_rows = max(kept, head + band_rows)` (body offset = max(rest rows, head rows + band rows), E3), so the band (drawn from `tag_rows - band_rows`, draw.joinBand, and read there by mouse.zig) starts under the head and its ground runs down through the kept rows; with no band the tag keeps its rows from rest, blank: draw.paintPaneTag's spines in the kept rows (P1's reading 6, E4: "no band no spine") are deleted; layout.floorRows works the band's pane's top out from the state as sync will lay it, `max(rows at rest, head rows + band)` (layout.headRows: the prefix out of rest and the head, wrapped as sync wraps them), where it read the last sync's rows (`tag_rows - band_rows + band`): the first layout after a head changed (a level's band opening) read the rows of the one before, and the next key would have moved the body by the kept rows; so that it can wrap at the pane's width, layout.compute gives each pane its column's x and width before it works out the heights (no rect had one while the floors were asked); the views.zig soak test now holds its band short under a picker's head and act row (2 rows: Find in the pane itself at 40x12: band 2 of 3, tag rows 4; the old load's `min(takes, tag_rows - 1)` would say 3): under SPC's one-row head the kept row is the band's now, and a head of one row never told the two apart; TagState's "a tag out of rest keeps its rows at rest at least" asks the new geometry (the head's own row, the body giving only what the band takes past the kept rows); GOLDEN: fsearch `nomatch`: the `│` under `/` in the kept row 17 is gone (a prompt with no band); no other golden moved; a band over a terminal or a kind's pane still starts under the rows the tag keeps (their tag is their rest rows, the pty and the view never resized); core-test 1086/1257 (171 skipped), process-test 1 of 147 failed before the golden (fsearch, regenerated)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
|
| |
|
|
|
|
|
| |
are, so the layout a load's next step makes is the never-loaded session's (G4's soak, run 1: seed 1 rtt 30 client 3, `views[0].rects` alone at unit 0/1591, "digest 0 differs", once in 36 seed-runs); TEST FIRST: views.zig "a band its sync held short under a tag of two rows, dumped and loaded: its rows are the never-loaded session's, and so is the next layout" (40x18, a scratch pane under the file's, SPC Down: the band held to 6 of the 11 rows it wants under a tag of 2 rows, so the pane's tag rows 8; byteDump, load: on the base `expected 6, found 7`, and with that check left out the next step (a taller window) laid the host out 30 rows high where the session that never loaded laid it 33: `views[0].rects`); THE CAUSE: `band_rows` was derived (kept out of the dump and the digest) and a load made it again in views.bandsLoaded as `@min(Band.takes, tag_rows - 1)`, while Core.sync makes it `@min(Band.takes, r.h - the tag's own rows - Band.body_rows)`: where sync held the band short under a tag of two rows or more, the load's came back larger, and layout.floorRows, which reads the last sync's (`above = tag_rows - band_rows + Band.takes`: the tag's own rows as their difference), worked out a smaller floor for the band's pane: the next layout (every sync's first act, and every view unparked: views.unpark) borrowed fewer rows from its column than the session's did; the tag's own rows cannot be worked out again from its dumped rows once sync held the band short (they are then `r.h - body_rows`, whatever the tag's own); THE FIX: `band_rows` is in the dump and the digest, in the pane and in each view's share, as `tag_rows` is (only Core.sync writes it, a step), and views.bandsLoaded with its call in dump.afterLoad is deleted (P1's panic fix: the draw before a load's next step reads the dumped rows now; the draw's MAX_TAG_ROWS bounds stay); root.zig's kept_out loses its `band_rows` line; P1's test keeps its checks (the band's rows after the load equal, the draw, the bound), its name says "as dumped"; a dump of an older build has no `band_rows`: 0, which a build with no band had; a user's client could diverge (and be joined again) after a rollback or a join while a band was held short in a short column; core-test 1084/1255 (171 skipped)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
|
| |
|
|
|
|
|
| |
state, and the tag's own rows are held to MAX_TAG_ROWS where the frame reads them (the coordinator's item from P3's soak: `index out of bounds: index 15, len 8` at draw.zig paintPaneTag, `for (lines[0..rows])`, from views.drawOne in a replica client's draw after a divergence); RUN FIRST: views.zig's new test on the parent, its band-rows check left out: `panic: index out of bounds: index 12, len 8` at draw.zig:1007 paintPaneTag, from joinPaneTag, renderPane, render, drawOne: the same fault; THE CAUSE: a tag's `tag_rows` counts its band's rows (Core.sync: the band unrolled under its text pushes the body down) and is dumped and in the digest, while `band_rows` is derived (views.PaneView and Pane: never dumped, made again at every sync); a load (a join's dump, a replica's rollback) zeroed `band_rows` and kept `tag_rows`, so a view drawn before its next step (drawOne: a replica client's own view, a pump's other views; no sync there) read the tag's own rows as `tag_rows - band_rows` = the band's too, 12 to 19, and indexed paintPaneTag's `[MAX_TAG_ROWS]` array past its 8; THE FIX: views.bandsLoaded (from dump.afterLoad, after TagState.loaded) makes each open view's `band_rows` again within that view from its own state as its sync does (`Band.takes`, 0 for a folded pane and Band.over's), into the pane's live field and the view's share (derived: the digest is unchanged, as the test checks); draw.joinPaneTag and paintPaneTag hold the tag's own rows to MAX_TAG_ROWS (`-|` and `@min`): production code never panics on a stale pair; TEST: views.zig "a view not live with its band open, dumped and loaded, draws before its next step: its band's rows made again from its state, its tag's rows never past MAX_TAG_ROWS" (SPC Down in view 0, another view live, byteDump, load: the digest equal, view 0's share's band rows 11 again (0 on the parent), drawOne draws it; with its band rows zeroed by hand drawOne draws it too); a user's client could abort on a join or a rollback while another view had a band open; core-test 1073/1244 (171 skipped)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
|
| |
|
|
|
|
| |
§14.1's "rows under a tag", item 3 of line A): a per-pane band between a tag's text and its body, in the tag's tint, derived from the live view's state each time it is asked and never stored (the coordinator's R2, R4); its height is a layout term beside the tag's text rows (Pane.band_rows, each view's, out of the digest and the dump as notices are: Pardes.sync puts the band's rows under the text's and counts them in tag_rows, so the body below, its rail, its regions, the pty, the pointer's rows and every geometry that counts from tag_rows are pushed down unchanged; only the tag's own text rows, joinPaneTag and paintPaneTag, take tag_rows - band_rows); a body that would drop under four rows borrows them from the column's other panes, which shrink to their tags until it rolls up (layout.floorRows, the floor keepTerminalFloors already raises); painted as a tag layer of a new kind, `band` (Layer.Kind, BAND_LAYER_BASE: a layer a pane after the notices', wire 36's line), the grid a copy of it (draw.zig joinBand); spines (│) under the head's key cells when they are on the tag's last row, the steps right of them side by side with a one-cell rule between, a level of more than nine rows in two columns, the cursor's row `▶` and tinted as a selection, keys in the key ink, an LSP leaf dimmed, the leaf its group ran last underlined; narrow, the doc step gives way first, then the spines (the steps from the band's left edge); the other panes dim while a pane is out of rest (style.dim on their cells and layers), but a pane flagged as previewing (TagState.previewing, a bit a slot, for the states that preview: pickers, actions, themes); read-only text (R2): a select click puts the cursor on the row, an execute click runs the word under it and a look click looks at it, the tag back at rest first (mouse.zig bandPoint, bandPress: the grid's rows and a window's `band` hits alike); THE API (for the pickers, prompts and registers): Band.Row {text, on, key, dim, under, marks, index}, Band.Step {rows, two, doc; x and width placed}; a new step kind is a function filling a Step from the state that owns it (in the frame's arena, only the rows it shows), added in Band.of for its tag state, with that state's rows in Band.takes; Band.line(y) is a row's text and where each step's row starts (the painter's and the mouse's one source); levelStep and docStep are the which-key's; TagState.toRest leaves every state, TagState.point puts the cursor on a clicked row; TESTS: Band.zig's three (SPC Down unrolls into the band, the body pushed down and never drawn over, the grid's copy, Up on the first row rolls up, Right/Left through a group; borrowing from the column, the other pane dimmed, the band's own not; B2 on a band word runs it, the tag at rest); root.zig's kept_out names band_rows; core-test 1000 pass, 166 skip, 0 fail
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
| |
|
|
|
|
|
| |
its line's bytes (row scroll round 4, fault 2: 'client 3's dump loaded as another session', once in the merge67b release soak): `File.State.scroll_row` was a `.place` held at a load to `lastRow` (the top line's bytes), but no step holds it so: an edit leaves a view's row where it was while its top line shrinks or another line becomes its top (`ParkedPlaces`, a twin's, the live pane's own), and every reader takes a row past its line's as the line's last (`top`/`topSkip`, the walks' `@min(t.row, rows - 1)`), so the SESSION holds such a row and a join's load cut it: another digest. TEST FIRST, failing on uxxwxpvt (the fault 1 fix): views.zig "a view's top on a wrapped line's third row, the line taken out by another view and the next one empty: its top row past its line's, read as its last, and the session's dump loads as the session" (the session's row 2 on an empty line, read as row 0; the loaded core's digest another); the place and `lastRow` deleted (a row of any size is read as its line's last by every reader: `topSkip`'s walk ends at the line's end; the digest and the key take it as a number); fault 1's stale `top_skip.row` read by a step (`scrollRows`' map path: a row of another view's line plus the notch) was a second road to such a row
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| |
|
|
|
|
|
| |
round 4, fault 1, TESTS FIRST, each failing on the base ynxykzrt): the release soak's panic (run 18 of 24, a client's drawOne: `index out of bounds: index 41, len 38` at core/File.zig fillBody `text[from..end]`) is a view drawn after ANOTHER VIEW's step moved the top: the step's `show` hands its next geometry the top's byte (`Pane.top_skip`, keyed for the geometry after the move) while the map stays the one made before it; a view that was where the first was (a client's view opened as a copy of the live one, the same size) has that map's key, so `geometry` returns early and the text pass takes `top_skip.at`, a byte of the OTHER view's top line, with no look at its key: views.zig "a view drawn after another view's step moved the top into a long wrapped line, the two alike before it: ..." panics on the base `index out of bounds: index 1584, len 5` (a probe run first, throwaway, every top_skip read checked against the walk: made by `show`, line 10 row 22, read for line 0); a STEP takes the same stale row (`topNow`): views.zig "a view's step after another view's step moved the top, the two alike before it: it scrolls from its own top's row, as a core loaded from the session (none of its geometry) does" (PageDown in the second view: expected 12, found 14 on the base: a session that drew and a client that did not step apart); and the tab width is not in the geometry's key (a Tab zeroes `geometry_key` but not `top_skip`, whose key matches again: a row start of the old width trusted; in bounds, a wrong row; 180 such reads in one Debug soak with the probe): File.zig "a view scrolled by rows into a line of tabs, the tab width changed after a frame: its body drawn from the row the new width makes, as a core loaded from it draws it" fails on the base (rows from the 8-cell width's byte 27, the 2-cell width's is 74); and a second derived reader of the same kind, found by the table of every reader of a pane's geometry (normal.zig `gotoWindow` read `context_rows` before `shownRows` made the geometry): normal.zig "gt after a step that moved the view off the place its geometry was made for: ..." (two notches up off the held headers, then gt: expected 3, found 5 on the base: the session read the held rows of the place before the notch)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| |
|
|
|
|
|
| |
geometry is in the dump again (its seeds land elsewhere; and the dump holds its tree's path, so each tree's seeds damage bytes of their own), each a run first: (1) THE WORKSPACE'S RUN (my gate's fuzz40k, the join road): `views.undumped` took `bit(d.k)` of a view's shares whose `k` was past any view (`integer does not fit in destination type` at views.zig `bit`), and `Shares.k` declared an index (`slots`) did NOT hold it: the `[]Shares` was a REFERENCE (walk.zig `Loader.ref`) to bytes made for another type, read as shares without being decoded (no-panic-1's open item, "references read back as another type", reached): every allocation a load makes records what it holds (`Made.of`, `typeWord` of its element), and a reference read back is to a value of its own type or the dump is refused (`Loader.ref`, `Get.again`, at a pointer's and a slice's, in both readers: a damaged one had one type's bytes read as another's, pointers and alignment and all; the writers share a reference between values of one type only, so no session's dump is refused); the skips' placeholders hold no type, so a reference to one is refused; `Shares.k` stays declared (a slot read back is held); (3) THE WORKSPACE'S RUN with (1) (my gate h2's fuzz40k): leaked 1 allocation, 7 bytes, a byte dump's theme (dump.zig `loadKnowing`: `l.get([]const u8)` failed after its slice was made, and the load's `defer` cut its books back to before the mounts, dropping the half-made slice unfreed: a leak at every such damaged join dump or Restore): a root read that fails lets go of what it had made (`Loader.get`, `Get.get`: `mark`/`letGo`, merge65's mechanism), so no caller's books hold half of a value; (2) MY SECOND TREE'S RUN (the join road): `Pardes.resize_count` read back as the most a usize holds, `+= 1` at the next resize (`integer overflow`, Core.zig `updateInner`, the fuzz's `use` resizing to 40x12): a count that only grows saturates (`+|=`); the fuzz with them: 40000 join and 1779 image seeds green in my second tree three times (212 seeds refused by `.within` each: 211 a pane's rect off its screen, 1 a column; 210 on the join road, 2 on the image's); in the workspace 40000 join seeds green with no leak (206 refused by `.within`), the image road green to seed 1366: seed 1367 there reaches xitdb's own reader (`switch on corrupt value`, xitdb lib.zig `readBytesObjectAlloc`, from Db.zig `Read.open` in dump.check: the last agent's seed 1780 in another tree, a dependency's, not here)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| |
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
| |
the emulator's (pardes-term-join-10, item 1; the note's point 3, the coordinator's choice): `Pane.scrolled_to` (core/panes.zig), a per-view field (views.zig `pane_fields`, `PaneView`: in the rollback copy, the digest and the dump, each view's own), the row its top shows or null on the output, written only by a step (`scrollBy`, `followOutput`), and carried with every open view's through each write of the emulator that moves rows, once, in the confirmed unit's apply, on every side alike (`Term.feed`/`Term.resize` take the places; core/term/terminal.zig `carry`/`carried` pin each place's row on the primary screen and read the pin back: up by the rows the history drops, 0 when its own row goes, null in the active area or after a reset: a function of the fed bytes); the draw reads the rows from the view's place (`viewport`, `paint`, `ImagesAt.place`, terminal.zig `shown`), and ghostty's own viewport is never moved, read, digested or dumped (`Grid.offset`/`view`, `Parts.view` and the digest's offset gone): two clients no longer scroll one viewport (the new views.zig test failed on the base, `expected 80, found 77`), and a speculation's scroll is in the copy, so `putViews`, the view half of `keepViews` (now `keepSerials`), `viewTo`/`scroll`/`follow` (ops, wrappers, bodies), the Debug screen hash's view exclusion, `reflow`'s column-0 cure and `feedOutput`'s follow-after-read are deleted, and S1's `calls` lists no view write (the rows `viewTo`, `scroll`, `follow` gone); tests: the two-view test (with a dump), the place at the history's cap (`setMaxBytes(1)`), a 300-seed fuzz of the carried place against ghostty's own pinned view, a client's wheel over a shared terminal through output and a rollback, round 6's order explorer (30 seeds a run); the wire at 31 (abi/wire.zig, test/daemon.py `WIRE`): an installed build's dump loads with every view on the output; IN THE WORKSPACE core-test 912/1072 (160 skipped), shell-test 1114/1117 (3 skipped), term-test 16/16, kitty-test 45/45, pane-test 181/182, behaviour-test 275/275, --replay 275/275, process-test 0 of 146 failed, as pairs 0 of 146; gui unit-test 1707/1711, its one error BaselineHarnessMismatch (every base's)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| |
|
|
|
|
|
| |
types into it (pardes-term-join-9, item 2 (B), point (b)): `sizes` handed a terminal whose sizing view had closed to whichever view was live at the next `sync`, a view nobody looks at among them, and a client given the closed view's index later sized it without typing; now `Pane.sized_by` is `?u8`, `views.dropView` clears it (the terminal keeps the size it has), `closeKeeping` hands it to the view that takes the closing one's place (the session's own laid out as it was: the size it promised to keep), and `sizes` is `sized_by == live` alone, typing (`typedInto`) the one act that moves it; test (core/views.zig "a terminal shown at two sizes ...", extended): the pty's pixels at the sizing view's cell whichever view is live (point (c) of the change before); the sizing view closed, the size stays until the view left types; a view opened at the closed index sizes nothing until it types (on the base the size moved at the close)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| |\ \
| | |
| | |
| | |
| | |
| | |
| | | |
the gathered line: pardes-layers-1 (`lwsrrykk`: File.Layers and the Syntax word, a file at a revision: path@rev, At, core/jj.zig's recorded answers, the provenance data), pardes-syntax-lib-2 (`pymoqzkq`: patchFile, a row's text without its line end) and pardes-view-test (`sxrzsmss`, on pardes-merge48: the upgrade tests ask a client's view again); no conflict; core-test 890/1050 (160 skipped), shell-test 1092/1095; its gate: .scratch/sketch/reorg/merge49, the numbers in PARDES.md (2026-11-21)
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | |/
| |
| |
| |
| |
| |
| | |
File.Layers (core/File.zig, beside recolorSyntax), a pane's field that each view keeps its own (views.zig pane_fields), says which painters a file's body wears and writes down their order and places (1 the ink, tree-sitter's colour a code cell; 2 the patch, a diff's grounds, marker and changed words; next, ruled and not built: changes, a lane after the line number, green and red grounds, a changed line's words, ghost rows; churn, a heat lane and a strip by the scroll thumb), both still painted in recolorSyntax's one walk; Syntax (a tag word, SPC t h: SPC t s is the pdf addon's PdfSections, a ctl line) turns the ink off in this view and on again; the ink off is no style byte read at all (a test a cell, as a branch or a mask, cost the frame 0.1 to 0.5% of its instructions, 0.15 to 0.47% on the long line; a walk specialised at comptime for each state cost 0.5 to 3.4%: the gate measured all three), so in a patch Syntax takes its grounds too; File.zig's test draws a .zig text's first row with the ink, without it, in a second view that keeps its own, and with it again; tui core-test 876/1034 (158 skipped); the tip's gate: frames 77/77, the 121 counts within 0.1% of tree3 (largest +0.026%), perfab -0.013%
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | |
| |
| |
| | |
(30 s): the screen-state soak's 'the far client never showed the screen after the flood (it left)' (seed 0 at 207 ms, reproduced in f207-2: the far client 10.5 s behind joined again for its lag, then refused 40 times with 42 keys left, and given up) was openViewInner (Core.zig:1168) giving a join with no room the first away view (Views.close(@ctz(views_away))) while that view's client, which had said in its bye that it joins again, was still waiting for its dump to cross a slow link: a dialling client took its place and every later join of the far client was refused; FIRST the test (views.zig, the rejoin test turned round: with every view taken and two kept away, a join is refused until away_kept_ns has passed, then takes the first kept; on the base 'expected null, found 1'); then the fix: View.away_ns, the session's clock when its client went away (Views.away), and openViewInner lets a kept view go only once it is that old; the bound: the soak's far link (1 Mbit/s, 200 ms each way) has taken up to 18.3 s between two of its joins (g-1, 207 ms) and 15.6 s before; past 30 s the client is taken as gone; the wire's version 23 -> 24 (a view's state in the dump and the digest), test/daemon.py's WIRE with it; a user: a far client resyncing for its lag while a fifth client dialled lost its view and was refused (every view taken)
|
| |/
|
|
| |
detected' at a session's end (g4, seed 7 at 80 ms: Text.reserveSels from setRanges <- normal.replaySels <- a key in insert mode) was the ranges beside a text's primary, made while one view was open, left in a view's slot nothing frees: views.installed returns before `pane.pv_known = p.views_open` while one view is open (views.zig:284), so a pane made then knows no view; a client's join opens another (open sets that view's bit only) and its first input parks the live view (park, views.zig:334: pv[live] = extract(pane), which owns the live text's selections from then on) with the live view's bit still unset, so neither the pane's end (tornDown frees a slot only where its bit is set) nor the view's (dropView, the same) frees them; FIRST the test (views.zig, 'a text's ranges beside its primary, made while one view was open, are freed once another view has been live': a second cursor and a key in insert mode, a view opened and gone into; on the base the testing allocator: 1 leak, 20460 bytes); then the fix: park sets the live view's bit as it fills its slot (one line); a user: a session that ran with one client and later took a second, every pane opened before it that had several cursors leaked its ranges (about 20 KB a pane) until the session's end
|
| |
|
|
|
|
|
| |
`Pane.docked_to`, and the tag word that lets it go is `Undock`, no longer `attached_to` and `Unattach` (P18 and P28, the user's rulings: *attach* is a client joining a session now; `Undock` confirmed; no alias, so `Unattach` is an unknown word after this change): the field `attached_to` on 24 lines of seven files (core/panes.zig's Pane field and its one use; views.zig's PaneView field and its name in `pane_fields`; dump.zig, Handover.zig, layout.zig, Query.zig, builtins.zig) and docs/next-daemon.md's mention; the builtin `Unattach` (its struct in core/builtins.zig with its help line and its refusal, "Undock: not docked to a pane"; its null key in core/config.zig; the frozen query pane's tag tail in core/tagline.zig with its comment; layout.zig's test that runs it; Query.zig's comment, with its two lines' "attached"/"unattached" where they mean docked); the builtin lists docs/typ/builtins-tui.json and builtins-gui.json (the line `zig build builtins-json` writes, checked byte for byte against the generator for both platforms); the one line in the changelog's Unreleased; docs/search-proto-converge.md's three mentions; the seven goldens that show a frozen query pane's tag (find, fsearch, grep, lookrange, lsp-client, lsprelpath, stepgrain: nine lines, each `Save Unattach Del` -> `Save Undock Del` and nothing else, edited by hand and passing as they are, not regenerated); the other prose "attach"/"attachment" meaning docked and the functions `attachFrom` and `testAttachment` stay (not ruled; listed in the report); a dump written before this change restores its docked panes undocked, with a note (walk.load lets an unknown field go); the semantics word does not move (38b5ae573b965550 before and after: the tape's shape names neither the builtin nor the field); tui core-test 848/991 (143 skipped), shell-test 1027/1030, pane-test 183/184, term-test 15/15, kitty-test 45/45, behaviour-test 275/275 (--replay 20 seeds, 0 failures), process-test 2 of 144 failed (lspcomplete and lspcompletemoved, the base's; msg's cursor column flaked once and passed again in the run), the soak (--clients 5) diverged 0, unequal 0, deltas wrong 0, quiet checks 618/0, 835/0, 771/0, stops unlisted 0, the corpus through a client 22 scenes each frame the same, no leak; gui unit-test 1625/1629 failing only the perf check's BaselineHarnessMismatch (as the base); the macOS library for Linux and aarch64-macos and the FreeBSD cross-build rc 0; the cheatsheet (one page), the book (77 pages) and the site build, Undock in the glossary; the frame and perf gate PASS (77/77 frames byte-identical in Debug, the alternated window corpus2x +0.041% against a 0.4% threshold, the 97 per-operation counts within 0.1%, the largest +0.0197%); under a load of 4 to 37
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| |
|
|
|
|
|
| |
pardes-ids change 3): `Pane.Id` in Event's six variants that carry a pane (output, eof, exited, file_changed, addon, job), in the fourteen effects that do (spawn, write, resize_pty, signal_pty, close_pty, start, save_file, save_text, lsp, watch, dump_themes, detach, addon, job), in the fourteen Host functions that take one (dev/Host.zig: adopt, upgrade, spawn, pty_write, pty_resize, pty_signal, close_pty, tty_taken, fg_name, kill_job, write_file, watch_file, dump_themes, job; tape.zig's Wrap follows with no edit), in the device messages that carry one into the core (the inbox's output and eof and the five reader functions that make them, dev/Lsp.zig's Request, host_io's Adoption and Adoptions.take, which hold what adoptShell answered); `View.Id` in abi/wire.zig's welcome.view (its bytes on the wire unchanged: one byte, hand-encoded, `.at(takeByte())`/`writeByte(view.index())`); every producer converts at its own line (`.pane = .at(id)`, a script that refuses any path outside the workspace, `fields.py`), every consumer where it indexes or compares (`o.pane.index()`), every Host implementer at its own first line (`fn spawn(ctx, id: pardes.Pane.Id, ..) { const pane = id.index(); ..}`: the terminal's 14, the window's 14, the Mac's 10, and the tests' hosts), and an id that went integer and back is passed through whole (`s.core.readerFailed(e.pane, err)`); the compiler caught no pane's slot passed as a view's or the reverse, only integers meeting the type; kept integers on purpose: KindJob.pane (core/Kind.zig, another agent's, reads it four times; converted at KindJob's and Effect's lines), the Watch table (file_watch: its last slot is the theme's, no pane), the hello's view and the replica's Peer/Joined/Replica views (core/replica.zig, another agent's), the C ABI's `pardes_watch_changed(uint8_t pane)` (abi/pardes.h unchanged; runtime/macos.zig converts at its Host functions); in files another agent is in, each conversion on the line that was there: core/Kind.zig 2 lines, core/Addon.zig 4, core/replica.zig 31 (the welcome's view, 3 test hosts, test literals), test/replicas.zig 12 (4 host functions with their first lines, 1 signature, the welcome's view, 5 literals); the tape's shape moves (Event is update's input), so the semantics word moves, c47ecf638b3f4b9f -> 38b5ae573b965550; test/perf.zig follows on 6 lines its Event and effect literals forced, so its harness id moves, be7cc504010471bc -> 1ed95030eb768eae (unit-test's perf check was BaselineHarnessMismatch already); 607 lines added, 562 deleted in 48 files. Gate (load 4 to 8): tui core-test 841/984 (143 skipped), shell-test 1020/1023, term-test 15/15, pane-test 183/184, kitty-test 45/45, behaviour-test 275/275 and --replay 20 seeds of 70 steps, 0 failures, process-test lspcomplete and lspcompletemoved (the base's; hscroll failed once and passed on the runner's retry), gui unit-test 1618/1622 (BaselineHarnessMismatch, the base's); replicas --clients 5 (TMPDIR /tmp/claude-1000/ids): diverged 0, unequal 0 at rtt 30, 80, 207, deltas checked/wrong 1811/0, 1838/0, 1660/0, quiet checks 567/0, 650/0, 655/0, stops not on may_wait 0 (corpus through a client fails at step 21 as on the base with that TMPDIR); daemon.py plain, --far, --games, --window-clients, --upgrade both ways against pardes-tree's base prefix pass (the semantics words differ: the upgrade carries the session by its dump); test/cross_replay.py (tui records, gui replays): 27 digests agree in each of three replicas; rollback-bench runs; the macOS library for Linux and aarch64-macos and the FreeBSD cross-build build; frames (gpu/ids-3 against tree1) 77/77 byte-identical in Debug, unit-test 1618/1622 there, perfab corpus2x -0.021% (session noise 0.036%, threshold 0.4%), pictures identical in all 10 runs, perfops 97 counts within 0.1% (largest image-frame on longline +0.0231%), key-down on medium 10,040,108 -> 10,039,990 an operation (-0.0012%), render on medium 11,455,765 -> 11,455,683 (-0.0007%), terminal on all +0.0030%
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| |
|
|
|
|
|
| |
pardes-ids change 2): a pane's slot is `Pane.Id` in the twelve entries that took it, six as `usize` (setCwd, acknowledgeShell, setMessage, setStatus, reportError, noteLateFailure) and six as `u8` (readerFailed, shellFailed, restartFailed, saveFailed, reloadWatchedFile, File.deleted), and in what adoptShell answers (`?Pane.Id`); a view's slot is `View.Id` in closeView, leaveView, awayView, rejoinView and the hand-written toView (its `to_view` variant is `Pardes.View.Id` now, and its replay arm unchanged) and in what openView answers (`?View.Id`); the tape's other variants follow their inners' types with no edit (`Args`); each inner converts where its body indexes (`id.index()`), passes the id itself to another entry, and the core's own code stays integers; every caller converts at its own line, `p.reportError(.at(id), ..)` (the decl literal of the parameter's type), 514 calls in 56 files written by a script that refuses any path outside the workspace (`.scratch/sketch/reorg/pardes-ids/wrap.py`), 46 `.index()`; nothing the compiler caught was a pane's slot passed as a view's or the reverse: what it caught were a script's wrong guesses (Editor.reportError(err) and macos.zig's own reloadWatchedFile, same names, undone) and the integers a view's id met (views.zig's tests, replica.zig's Authority and Peers.join, host_io's Adoption); in files another agent is in, each conversion on the line that was there: core/Kind.zig 5 lines, core/Addon.zig 4, core/replica.zig 23 (Authority.openView and join, closeView/toView/awayView/rejoinView/leaveView calls, Peers.join's `openView`, tests), test/replicas.zig 1; the tape's records are smaller (a `usize` is a byte in six inputs) and its shape moves, so the semantics word moves, 313a99190b93a8c5 -> c47ecf638b3f4b9f; test/perf.zig untouched (its harness id does not move); the Mac: runtime/macos.zig 16 call lines, abi/pardes.h unchanged; 581 lines changed in 56 files, no line added. Gate (load 4 to 28: a drat build and other agents' gates beside): tui core-test 841/984 (143 skipped), shell-test 1020/1023, term-test 15/15, pane-test 183/184, kitty-test 45/45, behaviour-test 275/275 and --replay 20 seeds of 70 steps, 0 failures, process-test lspcomplete and lspcompletemoved (the base's), gui unit-test 1618/1622 (BaselineHarnessMismatch, the base's); replicas --clients 5 (TMPDIR /tmp/claude-1000/ids, alternated with the base twice, both pass both times): diverged 0, unequal 0 at rtt 30, 80, 207, deltas checked/wrong 1811/0, 1838/0, 1715/0, quiet checks 567/0, 650/0, 544/0, stops not on may_wait 0 (its corpus-through-a-client scene fails at step 21 as on the base with that TMPDIR); two earlier runs of this tree under a load of 10 to 28 ended in a leak of Places' compiled regex (Places.derive from Query.produce) and one rtt-207 run in an assertion in mouse.kindMouse's clamp during a client's speculation, the leak not seen in the eight runs of this tree after them (the full soak, each rtt alone, single seeds), the assertion not in the two full runs after it, and neither in three full runs of the base (by reading neither touches a slot: in the report); daemon.py plain, --far, --games, --window-clients, --upgrade both ways against pardes-tree's base prefix pass; test/cross_replay.py (tui records, gui replays): 27 digests agree in each of three replicas; rollback-bench runs; the macOS library for Linux and aarch64-macos and the FreeBSD cross-build build; frames (gpu/ids-2 against tree1) 77/77 byte-identical in Debug, unit-test 1618/1622 there too, perfab corpus2x -0.059% (session noise 0.134%, threshold 0.4%), pictures identical in all 10 runs, perfops 97 counts within 0.1% (largest image-frame on longline +0.0274%), key-down on medium 10,040,104 -> 10,039,959 an operation (-0.0014%), render on medium 11,455,764 -> 11,455,707 (-0.0005%)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| |
|
|
|
|
|
| |
(P21, pardes-ids change 1; the user, reading the tape's inputs: "why the id is an u8 though?", and "the id to be typed too"): each a distinct non-exhaustive `enum(u8)` (`pub const Id` inside `Pane` in core/panes.zig and inside `Pardes.View` in core/Core.zig, side by side with the thing whose slot it is), with the one conversion each way the boundary needs, named once: `Id.at(i)` the id of a slot the core holds (`@fromBackingInt(@intCast(i))`, so a slot past a byte panics in a safe build) and `id.index()` the slot as a `u8` (which widens to the `usize` half the core indexes with, so no caller casts); nothing uses them yet; one test at the end of core/views.zig, "a pane's id and a view's id are two types: neither is taken for the other, nor for an integer" (an enum coerces only into itself, so it shows the two are distinct, a byte each and non-exhaustive, and every slot round-trips; a probe that assigned a `View.Id` to a `Pane.Id` failed to compile with "expected type 'panes.Pane.Id', found 'Core.View.Id'"); 46 lines added in three files, no line changed; nothing a step runs is touched, so the frame and perf gate was not run on it and the semantics word does not move (313a99190b93a8c5); gate (load 5 to 10, a drat build beside): tui core-test 841/984 (143 skipped), shell-test 1020/1023, gui unit-test 1618/1622 (the perf check's BaselineHarnessMismatch, the base's 1617/1621 with it), each the base's plus this test
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| |
|
|
|
|
|
| |
the frame and one record beside it (the reorganisation's runners, step 10a, on the line as it is now): surface.Facts, the core's (Pardes.facts) and pointed at by the frame it is filled for (Surface.facts), filled by draw.place in the walk over the panes it makes anyway and by a runner after an input it applied (draw.facts), carries what a frontend took from the core (the view's size, cell pixels and row metrics, each open pane's rectangle, tag rows, context rows, serial, whether a terminal whose program takes the wheel or a kind's, its mode, the jumps' back and forward, the settings it draws by); the window keeps a copy (Gui.facts) with the frame it shows (Gui.frame) and its hit tests, wheel, touchpad rows, timedemo, blink, overlays and dim read only those; Host.present returns whether the frame was shown, so present_skipped leaves the core and nothing writes it; the frame statistics are the runner's (Options.frames, Pardes.frames a pointer to them), which the frontends write and the core's draw reads; Replica.draw returns the shown and keeps needs_frame itself, so the two client loops put nothing back; OwnView and Replica.within are deleted (the window client's own pass reads its facts, its inputs fed after each event as before); rollback-bench compiles again; the tape's watched fields lose present_skipped and present answers a bool, so the semantics word moves (0900e560fd6395ef, pardes-seam-b's, -> 2f615168fe07b35f). The first version (psvoxrup, on pardes-tree) kept the record by value in every Surface, and every Surface a tag line builds for a moment copied its 1.3 KB more: +1,556 instructions an image-frame, +3,763 a render (perf record: memcpy); now perfops against tree1 97 counts within 0.1%, largest image-frame +0.029%. Brought onto pardes-seam-b: the client set-up keeps the Distrusted list beside the runner's frame statistics, Options' local fields both, and the rollback test's present answers a bool. Gate: frames 77/77 byte-identical in Debug, the alternated windows' pictures identical in all 10 ReleaseFast runs, corpus2x -0.039% (PASS); tui core-test 836/979 (143 skipped), shell-test 1014/1017, term-test 15/15, pane-test 183/184, kitty-test 45/45, behaviour-test 275/275 and --replay 275/275, process-test lspcomplete and lspcompletemoved (the base's) and grep (passed alone three times of three); gui unit-test 1612/1616 with the base's BaselineHarnessMismatch; replicas --clients 5 diverged 0, unequal 0, deltas wrong 0, quiet 470/0, 600/0, 764/0; daemon.py plain, --far, --games, --window-clients, --upgrade both ways (from pardes-tree's pfx-base); the macOS library for Linux and aarch64-macos and the FreeBSD tui configure; rollback-bench runs
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| |
|
|
|
|
|
| |
(pardes-probes P3, the reorganisation's 12c): config.tab_now goes, a tab's width is the core's settings.tab handed to every width function as `tab` (File.graphemeDisplayWidth and the 73 functions above it, test helpers among them, that had no core to read it from gained the parameter; an Editor, a Surface and the hunks' Ctx carry it; render sets Surface.tab; graphemeDisplayWidth asks its one printable ASCII byte before the tab, the two disjoint: with the tab first, as before, the parameter cost 0.2-1.7% instructions an operation in pardes-perf, with ASCII first the measured cells use 2-16% fewer than the base), so a rollback can no longer leave a stale width and replica.zig's hand-made put-back in toConfirmed goes; Addon.distrusted/ndistrusted become Addon.Distrusted, the client's own list, which its frontend owns across its joins and hands each core as Options.distrusted (in no tape, dump or digest: Options' replica .local); Kind.draw_tokens becomes each slot's `draws` (local: a draw is a frame's, so each process's count differs and no digest may hold it; the copy saves it with the slot); the two turn reads in a step stay, being shown unable to reach a client's state (the report); the soak's Proc keeps only the client's list (its tab_now and the global swaps go, forced); test/perf.zig follows three signatures, so unit-test's perf check now says BaselineHarnessMismatch until the baselines are recorded again; tui core-test 824/966 (142 skipped), shell-test 1001/1004, pane-test 183/184, behaviour-test 274/274 and --replay 274/274, process-test 2 of 144 failed (lspcomplete, lspcompletemoved), replicas --clients 5 diverged 0 unequal 0 deltas wrong 0 quiet differ 0 at 30/80/207 ms, gui unit-test 1598/1602, lib-test, daemon.py plain, --far, --games, --window-clients pass
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
|
|
tree, step 2d), and every mention of a src/ path follows: the build's paths, the core's imports of its root, the tests that read the repository's files by path (lspbench's, look.zig's spans over core/look.zig), the comments that cite files, the documents and the manual (the typst corpus reads core/tutor.txt and core/plumbing); left as they were: the /src tree's served names (src/pardes.zig and the rest are the 9P tree's, not the repository's), the CHANGELOG's history, fixtures that are only strings; fs-unit-test runs from the core's root (a module of the core rooted at fs.zig had the runtime's and the devices' `core` be fs.zig); nothing else changes: the ledger (pardes.test.* now root.test.*), frames byte-identical, replicas and process-test the base's
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|