summaryrefslogtreecommitdiff
path: root/core
Commit message (Collapse)AuthorAge
...
| * | | registers: `"` shows the registers rolled in the tag, each its key and the ↵Gabriel Schneider3 days
| | |/ | |/| | | | | | | | | | | | | first line of its value (`" ▸ " self.dirty = true; a const best = rank(q, nam… / — … % core/x.zig . o # 1 _ —`), `↓` unrolls them a row each (key, what it is, first line) beside the cursor's value in full, and choosing one (its key, or Enter) goes down to its verbs rolled (`" a ▸ p after P before R replace y into`), Backspace back up, Esc to rest (pick-ui SPEC §9, walk UI line F item 1): the level is built from the registers (and the four computed from the pane with the keyboard) when it is read, as the addon words join SPC's (bindings.registerLevel, registerValue: the first value only, a first line cut at 24 columns and never scanned past 96 bytes, the value step reading only the lines the band shows); a register named (`t.normal.register`, the parser's) is the root `"` with that key as its path (TagState.current), its verbs a node of normal mode's paste, yank and replace roles (bindings.register_verbs, a group slot of its own: TagState.used one longer, the dump with it); keys.prefixKey reads the level at the current path, Esc there goes to rest (normal mode's Esc would have named the register ESC, then left the pane), Backspace from the verbs goes back to `"`; TEST: bindings.zig "\" shows the registers rolled ..." (the level, the band's rows and value, Enter, Backspace, `a p` pasting, Esc); core-test 1024/1191 (167 skipped), 0 failed, load 5 Co-Authored-By: Claude Opus 5.5 <[email protected]>
* | | config, look, Trail, tests: jumps walk by default, `Jumps new-pane` the ↵Gabriel Schneider3 days
| | | | | | | | | | | | | | | | | | opt-out (walk UI G item 3, the coordinator's ruling: SPEC §6.6), every test about a jump opening a pane set to new-pane, a reader placed with its walk in its tag and a stepped pane lifted to its tag's rows: config.zig Settings.jumps is `.walk`; FOUND BY THE FLIP (core/ninep/tree.zig 'random placements, refused or not, leave no pane under its tag and two rows', seed 69 rows 21: a Look's reader 5 rows high where its tag takes 2): look.zig walk set a new reader's walk (‹@pN and its place) after openNew had placed it, so its rows were given for a tag a row shorter; openNew sets it before layout.placeNew now; Trail.show (a step to another file in place, Back, Forward, a list's n) replaced the pane with its trail and a longer name and gave it the old pane's rows, and a step in the same file pushed a word the tag may wrap on: Trail.lift gives the stepped pane its minimum from its column (layout.restoreMinimaFrom, the others keeping theirs); NOT FIXED (seed 109): a step in place in a column with no rows to give still wraps its tag under its minimum (the spec's give-way, folding the trail further, is the fix): that test runs with new-pane now (it is about placements as a Look made them), its comment says so; core/replica.zig's may_wait gets `Look *` stopping at read_file: a jump from a held pane (a kind's, a listing's) opens its reader from the disk where new-pane focused the reading pane already showing the file (SPEC §6.1 focuses a held one only); TESTS SET TO `Jumps new-pane` (each ABOUT a Look opening a pane, a query pane, a twin, Back/Forward over panes, a placement): 39 core and pane tests (look.zig 10, Query.zig 7, jj.zig 7, edit_cmd.zig 3, ninep/ctl.zig 2, test/panes.zig 3, lsp/Ask, Messages (C's SPC e +Search way), Store, layout, rollback, replica, ninep/tree), 25 behaviour tests (look-and-exec 5, placement 4, other-files 5, modes 3, language-servers 3, settings, follow, addons, columns-and-tags, panes), 18 process cases (`.init` or Tty.config: edit, flags 2, the canary, mounts, other-files 2, root-ctl, tree 2, filewatch, topbarexec, chordcut, cmdword, grep, lsprelpath, lsp-rename-files, layout-open); TESTS OF A FILE PANE'S TAG made to hold their pane first (`Keep`, SPEC §6.5: the `Keep` word moves every offset after the path): 16 behaviour tests (tags 11, keys 2, panes, columns-and-tags); GOLDENS regenerated and read, each changed row only ` Keep` after a reading pane's path (.scratch/walkui/G/gkeep.py): argv builtins cmdexit collapse delask lsp-rename lspcomplete markup mini msg nested-optout pipe savepane selregex themesel tutor (16); the other 41 changed goldens are NOT in this change (their rows move with more than the word: see the next change); tui core-test 1037/1206 (169 skipped), shell-test 1253/1256, pane-test 183/184 (1 skipped), behaviour-test 277/277, process-test 41 of 146 failed (those 41 goldens, every one a GoldenMismatch) Co-Authored-By: Claude Opus 5.5 <[email protected]>
* | | Trail: the walk drawn with a picker's list and the notice row in one tree, a ↵Gabriel Schneider3 days
| | | | | | | | | | | | | | | | | | test (walk UI G item 2e, SPEC §3.7's 'After ⏎' mockup and §6.7): B's walk, D's picker routing and C's notice row were each tested on their own line; a list asked from a held pane (SPC e's places, a server's answer) unrolls in its reader's tag, Enter steps the reader (another file: a pane of its own, the owner's word kept, no pane more), its word goes into the reader's trail before the place (`‹@pN › rank.zig:12 › Refs 1/2 › …/place.zig Keep`), the reader's tag is in the reading tint with Keep and the held one's is not, the notice row at the window's foot says where the reader's caret is (`…/place.zig:8`, nothing said), n walks the list (`Refs 2/2`, line 40); it passed as written once the reader's slot was read after the step: nothing to fix; the §3.7 rolled mockup's notice row is item 2a's test, the unrolled level A's, the picker's tag D's; tui core-test 1037/1206 (169 skipped) Co-Authored-By: Claude Opus 5.5 <[email protected]>
* | | Messages, body_layer, edit, mouse, panes: a click lands on what is drawn ↵Gabriel Schneider3 days
| | | | | | | | | | | | | | | | | | under it while a message's detail is unrolled under the caret's line, and the detail's rows are read-only text for the mouse (walk UI G item 2d, the user's "everything a pane shows is regular text"): C's detail rows (body_layer.zig messageGhosts) pushed the rows under the caret's line down in the drawing only, so the mouse, which maps a body row through the row map (Pane.wrapAt), landed a click below them that many rows off (C's report: 'to fix'), and a click on a detail row landed on a line under it; THE FIX: where the detail goes is the step's, as the notice bands are: Messages.detailUnder (the first message naming the caret's line, its lines that fit under that line's last row, in the pane with the keyboard, its body) is made in Messages.collectNotices (the top of update, presented, sync, place) into Pane.ghost_at and ghost_rows (derived: root.zig's kept_out says so), messageGhosts draws from them (it no longer finds the detail itself), and the mouse maps a drawn body row to the row map with Pane.textRow (edit.pointerTextSelection, both the grid's and a body hit's; mouse.dragUpdate's sweep end): a row under the detail is ghost_rows higher, a row of the detail is the line it explains (B1 there puts the caret on that line, the detail kept); B2 and B3 on a word of the detail Exec and Look it as a typed word would be (mouse.zig, body_layer.wordAt reads the word as it is drawn: the body layer's row, else the grid's); a step reads only what its own state makes, so every replica's click lands alike; cost: one more check a pane at collectNotices (none without a live message, the detail only in the pane with the keyboard), nothing a frame; TEST FIRST: body_layer.zig 'a click under a message's detail lands on the row drawn there, a click on the detail on the line it explains, and B2 on a word of the detail runs it' (on the parent: expected 4, found 6, the click on line 5 as drawn landing on line 7's row); NOT DONE: B1's sweep cannot select the detail's text itself (it is no buffer's; the band has the same gap, A's report), a hover underlines the word of the line under the detail row; tui core-test 1036/1205 (169 skipped), process-test 0 of 146 failed Co-Authored-By: Claude Opus 5.5 <[email protected]>
* | | Messages, Pick, Output: where jumps walk, SPC e lands an error's places as a ↵Gabriel Schneider3 days
| | | | | | | | | | | | | | | | | | list in the pane's walk through D's picker, and SPC h m is a picker over the history in the pane's tag (walk UI G item 2c, SPEC §10.4, §5.1's messages source), C's stopgaps replaced: SPC e (Messages.act) made a +Search under the pane and walked it with the Look walk; now, when Pick.asked (jumps walk, not a 9P script), it opens Pick's `list` with the places as rows, its word `✗ <cause>` (cut at a character's start to the word's 24 bytes), and lands its first row at once as the prototype's actOnMessage does (openPicker then accept): the pane steps (or its reader, the pane being held), the list word goes into its trail before the place, n and N walk the places through Pick.walkList; the history (Messages.history, from SPC e with nothing to act on and from the Messages word, SPC h m) is Pick's new source `messages`, its rows Output.messagesText (openMessages' text, split out), the newest first, a place indented under its error; Enter on a message row gives the keyboard to its cause's pane while it is open, on a place row Looks the place; C-q keeps it as the +Messages (Pick.keep); the source is not offered among the picker's other sources (its second row), as `list` is not; where jumps open panes, and for a 9P script, both are as C made them; the Message and Messages docs say so (builtins-{tui,gui}.json regenerated); TEST FIRST: Messages.zig 'where jumps walk, SPC e lands an error's places as a list in the pane's walk, n walking them; SPC h m is a picker over the history…' (no pane made, the caret on the first place and then the second, the word `✗ @p9 zig build 1/2` then `2/2` in the tag, the history's rows newest first, Enter on a message, C-q the +Messages); C's own SPC e test keeps the +Search way (jumps open panes there); GOLDENS: builtins (SPC h m's doc two rows longer: the rows under it, Tutor's among them, two lower; the +Look's line 237 for 236; tty_boot.zig's click on Tutor's row 32 for 30) and leader (the same doc rows in help-group), nothing else; tui core-test 1035/1204 (169 skipped), process-test 0 of 146 failed after those two updates (2 before them: those two) Co-Authored-By: Claude Opus 5.5 <[email protected]>
* | | TagState, tagline, Messages: a question waiting on a pane is its tag's head ↵Gabriel Schneider3 days
| | | | | | | | | | | | | | | | | | while the tag is at rest, in place of the tag's own words, not text in its prefix (walk UI G item 2b, ruling R1, SPEC §3.2's asking row and §10.2): C's asking text (Messages.askingText) was put after the path in tagline.prefixIn, so the tag's own words followed it (`… d Diff · SPC e to answer Save Term Collapse Follow Del`) and an edit's prefix check (edit.zig setEditTextSpan reads pathPrefix) took it for the own text; now TagState.head answers for a pane not out of rest in the view with `asking`: the question's words, `▸` and each answer's key in the key ink, its word, `· SPC e to answer` (`· Esc later` while SPC e has given it the keyboard) dimmed, computed and read-only as A's heads are (drawn with their spans, its edits refused), never written into tag.own, which is back when the question goes; a pane state (Messages.waiting), so every view shows it, and not while the tag has the keyboard (its own text is edited then) nor while the view's level or typing state is in it (the level's head wins); the mark `?` in the box's second cell is C's; askingText and prefixIn's concat go (a 512-byte buffer and a concat a tag a frame); TEST FIRST: Messages.zig 'a file changed on disk under unsaved text asks…' now reads the shown tag: it ends with the question and holds no Save, the prefix holds no question, the head is there (edits refused), SPC's key cell replaces it and Esc brings it back (on the parent the tag ends `… Follow Del`); GOLDEN filewatch: `kept` and `reloaded_sub` row 6 lose the tag's own words after the question, nothing else; tui core-test 1034/1203 (169 skipped), process-test 0 of 146 failed after that update (1 before it: filewatch) Co-Authored-By: Claude Opus 5.5 <[email protected]>
* | | walk UI M2: A2's final tip rqntnxpr merged in (ztzvvwkk: B's ozlumvqo ↵Gabriel Schneider3 days
|\ \ \ | | | | | | | | | | | | | | | | | | | | dump.zig hunks, already here, and the fuzz session in Help; rqntnxpr: a click that gives the keyboard to another pane ends a level as Esc does): core/fuzz.zig's one conflict is both sessions' setup kept, B's reader walk and then A2's tag out of rest; tui core-test 1034/1203 (169 skipped, 0 failed) Co-Authored-By: Claude Opus 5.5 <[email protected]>
| * | | mouse: a click that gives the keyboard to another pane ends a tag's level or ↵Gabriel Schneider3 days
| | | | | | | | | | | | | | | | | | | | | | | | typing state as Esc does (item 6 of A2, the coordinator's ruling on SPEC §3.4.6: only the pane with the keyboard leaves rest): a level (SPC's, a helix prefix's once shown, C-w's), Help or describe-key stayed out of rest when a click moved the keyboard, and followed it into the other pane's tag (the leader case had to press Esc after its struck key for that); now handleMouse notes the pane out of rest (TagState.hostOf) and, when the event leaves the keyboard on another pane, puts that pane's tag at rest as Esc does (TagState.toRest on it: its text's prefix too; the pane the click went to keeps its own); a click in the band or in the level's own tag keeps it; TEST FIRST: TagState.zig "a click that gives the keyboard to another pane ends a level as Esc does; one in the level's own tag keeps it" (failed before at the click into the other pane's body: the leader still current) Co-Authored-By: Claude Opus 5.5 <[email protected]>
| * | | dump: a load frees what it read after the core as the things it made, once ↵Gabriel Schneider3 days
| | | | | | | | | | | | | | | | | | | | | | | | each (item 5 of A2, on line A2; the fix B made in ozlumvqo, the same hunks): the 40,000-seed dump fuzz on xqqlroux panicked at join seed 19224 with `double free` (the first free dump.zig:422 `defer gpa.free(theme)` in loadKnowing, the second the errdefer's rollback, the slice allocated by walk.zig slice:1847 inside the core's own fields); THE CAUSE: walk.Load.ref hands back a slice made before (the load's `shared` list), which for a damaged dump's theme read after the core is one the loaded core holds, and loadKnowing freed its trailing reads (mounts, theme, the other views' shares) by hand: a reference freed once by the defer and again by the rollback of a later failed read; THE FIX (B's, ozlumvqo, verbatim, so the merge coincides): one defer frees `l.shared.items[read..]` (what the load made after the core) and drops it from the rollback, the views' shares the same; a user could hit it only with a damaged or hostile dump (a join's stream, a Restore file); TEST FIRST: fuzz.zig's session now holds a view in Help (`SPC t w` remembered, `SPC ? hel`: View.tag_state out of rest in every dump it cuts) and checks join seed 19224 by name (fails before: double free); the fuzz at 40,000 join and 1,779 image seeds green (core-test filter, 2 min, 8 of 8) Co-Authored-By: Claude Opus 5.5 <[email protected]>
* | | | Messages, draw: a rolled level's last leaf is said on the notice row, the ↵Gabriel Schneider3 days
| | | | | | | | | | | | | | | | | | | | | | | | whole row, and the leader's chip is gone (walk UI G item 2a, SPEC §3.7's first mockup: `k Hover: the language server's hover (last used here)` on the row under the panes while SPC l is rolled): A's line under a rolled level (TagState.lastUsed) was a chip over the body's top rows, the last notice band kind but a prompt's; now Messages.noticeRow leads with it while the level shows, cut to the row's width, nothing on the right (the prototype's status() for an open leader step), and Row.lead names the message the left says, so paintNoticeRow tints the glyph and fades only a message's (it read headline() again); Pane.Notices.Kind is `prompt` alone (the notice bands' layers a pane 1 for 2: 64 fewer tag layers a Surface, A2's measure of what a layer costs a temporary Surface), Messages.leaderText and leader_room go, noticeText takes the pane alone, bands and collectNotices lose the view and slot they no longer read; the TreeContext test keeps its message half (no chip to look for); TEST FIRST: Messages.zig 'a rolled level's last leaf is said on the notice row, the whole row, never in a chip over the body; at rest the row is the messages' again' (on the merge the row says `/test.txt:1` and the pane has the chip); tui core-test 1033/1202 (169 skipped), process-test 0 of 146 failed (no golden shows a rolled level with a last leaf) Co-Authored-By: Claude Opus 5.5 <[email protected]>
* | | | walk UI M2: A2's xqqlroux merged in (TagState.loaded from dump.zig ↵Gabriel Schneider3 days
|\| | | | | | | | | | | | | | | | | | | | | | | afterLoad: a loaded tag state that indexes past what it names is at rest; Core.reportFocus asks no pane past MAX_PANES), no conflict; tui core-test 1032/1201 (169 skipped, 0 failed) Co-Authored-By: Claude Opus 5.5 <[email protected]>
| * | | TagState, Core: a loaded tag state is held to what it indexes, and a told ↵Gabriel Schneider3 days
| | | | | | | | | | | | | | | | | | | | | | | | focus to the pane slots (fixes found by item 4's dump fuzz, on line A2): RUN: the 40,000-seed dump fuzz (core/fuzz.zig "a dump and an image cut...", its counts raised to 40,000 join and 1,779 image seeds and its session put in Help, `SPC t w` then `SPC ? hel`, a temporary edit put back) panicked twice before this: `index out of bounds: index 65163, len 64` at TagState.zig helpLeaf (`p.kinds.words[at - flat.len]`), from Band.helpSteps, draw.joinBand, render of a damaged dump's view, and then `index 524288, len 64` at Core.zig reportFocus (`p.panes[old.id]`); THE CAUSE: a dump gives View.tag_state as it was written, and nothing held its indexes after a load: a Help hit past the tree and the registry's words, its rows' cursor past its hits, the field's caret past its text, describe-key's found leaf with no keys; and View.focus_told (main's, unchanged since e9f3712c) is read back as a pane slot unchecked (the seeds land elsewhere since the tag state joined the dump: wire 36); THE FIX: TagState.loaded, from dump.zig afterLoad (both loads): a tag state that does not hold is at rest, its memory of leaves kept; reportFocus asks a slot past MAX_PANES for no pane; a user could hit them only with a damaged dump (a cut file, a flipped byte), and the session panicked on its first frame or key; NOT FIXED: the third run of the fuzz panicked with `double free` in walk.zig slice (walk.zig:1847, from value:1780, oneField:1988, dump.zig:422 loadKnowing: the join road): a damaged back-reference (l.ref) lets two fields share one allocation, both freed on the error path: the loader's, main's; TEST: TagState.zig "a dump's tag state that indexes past what it names is at rest when loaded, and its frame draws" Co-Authored-By: Claude Opus 5.5 <[email protected]>
| | | |
| \ \ \
*-. | | | walk UI M2: M1 (lines A to moosvmpn, B to ozlumvqo, D to uxrmlvno) + line C ↵Gabriel Schneider3 days
|\ \| | | | |_|/ / |/| | | | | | | | | | | | | | | (vxmpyyst, on main) + A2's fixes (to mzmzklqu) merged, each conflict resolved by what both sides meant: Layer.Kind gets both new kinds (A's band, C's notice_row); root.zig's layers are C's order (the notice row's layer after the workspace tag's, NOTICE_LAYER_BASE one on) with A2's single BAND_LAYER after the notice bands (draw.joinBand takes it, A2's vlkqpnxq); draw.zig's header arms list both kinds; config.zig's leader paths keep A's Keys (SPC h k) and C's Message (SPC e), its settings B's Jumps and C's MessageLinger doc; panes.zig's replica keeps A's derived band_rows and drops C's removed msg/msg_older lengths; keys.zig handleKey answers C's question given the keyboard by SPC e first, then A's tag states; Messages.zig pushes the leader chip only with a last-used leaf (A's rule) in C's bands, C's notice-row test replacing the removed chips' stack test; core/Core.zig's TreeContext test sets a last-used leaf for its leader chip and no longer expects the body's rows kept under the leader (A's rolled level wraps the tag: TagState); test/behaviour/keys.zig's PDF case looks for A's key cell ` ␣ ` in the panes only (C's panesShown: the notice row says SPC h m); docs/typ/builtins-gui.json regenerated (A's Keys was missing; tui's unchanged); the four conflicting goldens regenerated (process-test --update) and every changed row read against both sides (.scratch/walkui/G/gdiff.py): find (A2's rolled SPC f level over two tag rows, C's notice row and the panes of the bottom column a row up, the Find chip gone), leader (the rolled levels with D's Resume and C's Message among SPC's leaves, the Help chip gone, the notice row, C's longer Messages doc), builtins (A2's Help-word rows, A's Keys in SPC h's help, the +Look line 236 for 224 under the longer +Help, the notice row), ttyhelp (D's Resume in the help list, Help's count 136 for 133: Resume, Message, Keep), nothing else; tui core-test 1031/1200 (169 skipped, 0 failed), process-test 0 of 146 failed after the four updates (4 before them: those four) Co-Authored-By: Claude Opus 5.5 <[email protected]>
| | * | TagState, Core, Band, process-test: a tag out of rest keeps its rows at ↵Gabriel Schneider3 days
| | | | | | | | | | | | | | | | | | | | | | | | rest, a rolled level counts every cell it adds, a doc's paragraphs are rows, and the +Help cases use the word (fixes on top of items 2-5 of line A, uqopxwqz vnqmzpqs kquzozvs okqtwzll moosvmpn, frozen): process-test's six failures on moosvmpn: TAGNAV (row 6's `$` gone after `c-w l enter`, `c-b`) and LOOKPANES (`@alpha` off row 6 after `space w h`, on the parallel pass only): RUN: a screen dumped before each click: lookpanes' shell tag `/tmp/.../cwd C-w …` on ONE row where its own text takes two, the shell's rows moved up one; tagnav's shell pty resized twice by `c-w h enter` from its focused tag (bash's redraw lost its prompt mark); THE CAUSE: Core.zig sync gave a tag out of rest the rows its head takes, and a root's key cell (` C-w …`, ` ␣ …`, before its level shows 250 ms on) is shorter than the tag's own text: the body moved up and back down, a terminal's pty resized under its program (moosvmpn bounded a terminal's rolled level from above only); and TagState.head's room left out the ` …` past the last child that fits, each group's `…` and a struck key (at 100 columns C-w's level took 97 of a terminal's 96 cells, three rows for its two); THE FIX: sync: out of rest (hostOf), a tag keeps the rows its own text takes (layout.wantedTagRows), at least, and a terminal's exactly; tag_top saturates (a head of fewer lines than the tag's rows overflowed `lines - tag_rows` when the tag had the keyboard: a panic the first fix met in tagnav); head counts every cell (exact separators, `…`s, the struck key) and the child whose ` …` would not fit stops the level; DECIDED (SPEC §3.6's give-way order): a text pane's rolled level may wrap its tag to three rows (the first give-way, the §3.7 mockup's two rows), never fewer rows than at rest; a terminal's, exactly its rows at rest; a user hit both: every SPC or C-w in a pane whose tag takes two rows or more moved its body up for 250 ms, and in a terminal resized its program twice; THE BAND (seen in ttyhelp's new golden): a doc's paragraphs, a line each in builtins.Doc.text, were drawn as one row with a `�` for each newline (Band.wrap): each now starts a row; FIND, LEADER, BUILTINS, TTYHELP: `SPC ?` and `?` down a level are Help in the tag now (SPEC §4.5), so the cases that test the +Help index run the word (`Help` from the workspace tag, `Help h`, `Help t`, `Help c`, `Help l` swept with B2 on a line of their file, tty_boot.zig sweepHelp); ttyhelp's `SPC ?` shows the new Help in the focused pane's tag, `tutor` typed into its field; the snapshots taken after SPC wait for its level (the quiet screen of the parallel pass came back before the 250 ms frame: a golden that depended on the pass); leader presses Esc after its struck key (the level stays, A's ruling); GOLDENS, every changed row: find: `group` the rolled SPC f level in the tag over two rows (the hint cut by the cell, acme's wrap), the body a row down, the `SPC f` chip gone; `armed` the tag back at rest; ttyhelp: `leaderworks` the +Help's tag `^ ... Help tutor 1/133`, its band (the row, the doc step, no `�`) pushing its body four rows down; builtins: notes.txt's first line `Help c Help h`; the +Help for SPC h with Keys (SPC h k, item 5) and its documentation, every row under it six down, the +Look search on line 224 for 220, Tutor's row 30 for 24; leader: `spc`, `spc-h`, `unmapped` the rolled levels (SPC's over three rows, `x` struck), cmds.txt's line of five words, the Help announcement chip, the Keys rows, the tutor a row lower under the longer +Help; TESTS FIRST: TagState.zig "a rolled level fits its rows at every width..." (failed: 4 rows), "a terminal's rolled level keeps its tag rows at every width, C-w's as SPC's..." (shell-test; failed: expected 2, found 3), "a tag out of rest keeps its rows at rest at least..." (failed: expected 2, found 1; then the integer overflow at Core.zig:2047 with the keyboard in the tag), Band.zig "a doc's paragraphs are rows of their own..." (failed: a newline in a row) Co-Authored-By: Claude Opus 5.5 <[email protected]>
| | * | Band: one band layer a surface, not one a pane (a fix on top of item 3, ↵Gabriel Schneider3 days
| | | | | | | | | | | | | | | | | | | | | | | | vnqmzpqs, frozen): the cost at rest of the walk UI: every frame makes many a temporary Surface (renderHeaderLayer one a header row, joinPaneTag one a tag, body_layer one a pane), each a whole Surface whose tag_layers array is default-initialised by a copy, and BAND_LAYER_BASE + MAX_PANES had added 64 layers to it: about 4 KB more copied a temporary, the +3,300 instructions an image-frame (+0.94%) and +7,000-9,000 a key or render cell, in compiler_rt memcpy under draw.renderHeaderLayer and draw.joinPaneTag (perf record of image-frame, main against moosvmpn: memcpyFast +2,650 a frame, its block loop, memcpy.zig:136-138); a view has one tag out of rest (SPEC §3.4: the keyboard's; Band.takes is 0 for every other pane), so one band layer (root.zig BAND_LAYER, the index, in place of the working name BAND_LAYER_BASE) and Band.bandLayer asks its pane id; MEASURED (pardes-perf ReleaseFast gui, per-op instructions, main e9f3712c -> moosvmpn -> this): image-frame small 351,781 -> 355,074 -> 352,716 (+0.27% on main), render small 11,351,038 -> 11,360,330 -> 11,353,581 (+0.02%), key-down small 9,932,384 -> 9,939,622 -> 9,932,840 (+0.005%), client-key-down small 1,915,270 -> 1,924,015 -> 1,921,482 (+0.32%, the rest there not traced: a profile points at the digest walk, walk.hash, which View.tag_state joined); core-test 1006/1173 Co-Authored-By: Claude Opus 5.5 <[email protected]>
| * | | messages: SPC e acts on the message the notice row leads with, SPC h m is ↵Gabriel Schneider3 days
| | | | | | | | | | | | | | | | | | | | | | | | the history newest first, and Esc at rest takes a thing at a time (pick-ui SPEC §10.4, walk UI line C item 5): the Message word (SPC e, quiet: what it does shows) lists an error's places in a +Search under the pane and lands on the first (today's list, walked by the Look walk until agent D's picker lands lists in the pane), the error gone; a question gets the keyboard in its tag (View.answering, item 4); anything else, or nothing, opens the history; the history (Messages, SPC h m) is the log ring newest first, each line its kind's glyph, a live error's places under it, a question's answer logged after it; Esc in normal mode at rest takes a search's tints first (Places.clear), then the warnings and errors, then the extra selections (the primary kept), and only then goes back to the previous pane; tests: Messages.zig 'SPC e on an error that names places lists them under the pane and lands on the first, on a question gives its tag the keyboard, and on anything else opens the history, the newest first', 'Esc at rest takes a search's tints first, then the warnings and errors, and only then goes back'; docs/typ/builtins-tui.json from the registry; tui: core-test, shell-test, pane-test, behaviour-test pass; process-test 0 of 146 failed after the builtins and leader goldens took the Messages word's longer doc line Co-Authored-By: Claude Opus 5.5 <[email protected]>
| * | | messages: a background question waits in its pane's tag and never takes the ↵Gabriel Schneider3 days
| | | | | | | | | | | | | | | | | | | | | | | | keyboard; SPC e gives it the keyboard, Esc leaves it waiting (pick-ui SPEC §10.2, §10.4, §3.2 asking, walk UI line C item 4): a file that changes on disk under unsaved text is now a question of its pane (one at a time: File.changed), its answers r Reload, k Keep mine and d Diff (Messages.Ask.answers); while the tag is at rest the question is drawn after the path as computed prefix text, 'changed on disk ▸ r Reload k Keep mine d Diff · SPC e to answer' (Messages.askingText; the tag's own words stay after it until the head of ruling R1 takes their place), its mark ? in the box and the notice row's '1 question · SPC e'; the keys stay the body's: View.answering (a pane's serial, the view's own keyboard state, ruling R4) is set by SPC e (item 5) and makes the answer's key answer it in handleKey's first slot, Esc leaving it waiting; the own-command questions (Del's side, a REPL's choice) keep that slot as they were; B2 on an answer's word in its tag answers it (exec.execute: Messages.answerWord); r reads the file again with the consent Get would ask for, k keeps the text and says so, d reads the disk's text (the host's read, taped) and shows where it parts from the buffer as ghost rows under that line, the disk's + lines first (Messages.diskDiff, Said.open: shown whatever the caret), d again hides them; an answer is logged ('... · answered Reload'); Messages.waitingAnswers is what a : lists first (for agent E); 9P /log says 'msg N changed on disk' (monkey9p's checker reads that); tests: Messages.zig 'a file changed on disk under unsaved text asks in its tag and never takes the keyboard: SPC e's keyboard answers, d shows the disk's lines as ghosts, Esc leaves it waiting, B2 on Reload reads it again', ninep/ctl.zig's disk-change test now finds the question; tui: core-test, shell-test, pane-test, behaviour-test pass; process-test: filewatch's golden takes the question (its tag row and its notice row), Restore's root-ctl case failed once under load and passes alone Co-Authored-By: Claude Opus 5.5 <[email protected]>
| * | | messages: a message is said where its cause is: the mark in its pane's box, ↵Gabriel Schneider3 days
| | | | | | | | | | | | | | | | | | | | | | | | its words at its line, its detail under the caret, progress at its tag's end, and a failed run's report its places (pick-ui SPEC §10.2, walk UI line C item 3): the mark is the glyph of the most important live error, question, warning or progress about a pane (its pane, its file, a place's file: Messages.markOf), drawn in the box's second cell (the grid's dirty cell, its ground kept dirty under unsaved text) and never in the tag's text, so it rewraps no tag and moves no row (written as a prefix word it could push a column under its minimums: the random placement test in ninep/tree.zig caught that); a message's places in a file shown are its glyph and words two cells after the end of their line, and with the keyboard in that body and its caret on that line the message's detail as ghost rows under it, the rows below pushed down for as long (body_layer.zig messageGhosts: drawn, never written, ruling R3; bounded by the rows shown and 16 messages of 4 places); a pane's progress at its tag's first row's right end and a server's (a message of no pane: the language server's status, dev/Inbox.zig and runtime/macos.zig now say it of none) at the workspace tag's, where the row has room, and setStatus with no text ends it; a command pane's run that fails is read back from its last 400 rows for a compiler's places (path:line:col: error|warning|note, a relative path its directory's: Messages.readPlaces), and names them as an error of that pane ('exit N', its places, the rows after its first error its detail), which the pane's next run takes away (SPEC §11); say returns the message it made; tests: Messages.zig 'a compiler's report names its places ...', 'a burst of the same message is one message, counted, and moves nothing on the screen' (×10, rects and tag rows equal), body_layer.zig 'a build error is said where its cause is: the mark ..., its words after its line, its detail under the caret's line pushing the rows below down, the walk on the notice row', draw.zig 'progress is said at the right end of its tag ...', panes.zig 'a command whose run fails naming places is an error of its pane ...'; Term.zig's calls list takes the run's rows read (S1); tui: core-test, shell-test, pane-test, behaviour-test pass; process-test 0 of 146 failed after shellset's and lsp's goldens took the mark (✗ in the box of the pane whose refusal is live) Co-Authored-By: Claude Opus 5.5 <[email protected]>
| * | | messages: one notice row at the window's foot indexes the live messages, and ↵Gabriel Schneider3 days
| | | | | | | | | | | | | | | | | | | | | | | | the chips over the bodies go (pick-ui SPEC §10.3, walk UI line C item 2): the panes' area ends a row higher (layout.noticeRowHeight, none on a screen under 3 rows, as the column tags); the row is a header layer of its own (Layer.Kind.notice_row, NOTICE_ROW_LAYER, Region.Kind.notice_row) in the workspace tag's colours: on the left the message the row leads with (error > question > warn > notice > echo, the newest within a rank: its glyph in its kind's ink, its cause unless its words name it, its words without a host's clock stamp, ×n, its places as words), dimmed once its bright time is over; on the right +N more, N questions · SPC e, SPC e walk for an error with places, or N messages · SPC h m; with nothing live the focused pane's path:line (a terminal's directory); built each frame from the state (Messages.noticeRow, bounded by notice_row_cap), the left part giving way to the right; B2 runs and B3 Looks at a word on it (mouse.zig); Pane.Notices keeps the leader's and a prompt's chips only; a latent fault found by it: a kind's pane reopened (its file changed on disk, a Restore) kept the hashes of the views its old state was told, so the new state was never told its view and a PDF stayed blank until something moved its pane; the reloaded message's chip used to move it (Kind.reopen now tells a new state every view; behaviour addons_pdf's disk-change and Restore tests, failing before the fix); a message's cause for a kind's pane is its path; every frame changes (the foot row): boot's foot reads '/tmp/pardes-snap/boot/cwd', msg's 'repainted' '· saved /tmp/pardes-snap/msg/cwd/a.txt 2 messages · SPC h m' where a chip stood on the body's first row; the 98 tty goldens rewritten and read (57 the rows shifted alone, the rest the chips gone and racy shell output re-recorded; no file-written block and no snapshot's name changed), the four tty cases that click at fixed rows given a row more (chordcut, layout-open, images, respawn: their cursors unchanged), the addon scripts' outputs (fake, snake, life, pdf: windows a row shorter, the chip gone), hxdiff's core a row taller (22 rows as helix's), the tests over tiny screens a row taller, the drag edge of a bottom pane over the notice row (mouse.zig); tests: Messages.zig 'the notice row leads with the most important live message ...', 'a builtin announces itself on the notice row, an echo ...', draw.zig 'the word under the pointer on the notice row is lit ...', 'a message wider than the notice row ... gives way to the row's right end'; tui gate: core-test, pane-test, shell-test, behaviour-test (and --replay: 20 seeds, 0 failures), term-test, kitty-test pass; process-test 0 of 146 failed; the gui build is gated at the line's end Co-Authored-By: Claude Opus 5.5 <[email protected]>
| * | | messages: one session-wide list of live messages replaces each pane's stack ↵Gabriel Schneider3 days
| | | | | | | | | | | | | | | | | | | | | | | | of chips (pick-ui SPEC §10.1, walk UI line C item 1): Messages.Said is a kind (echo, notice, warn, error, question, progress), its cause first as a word a Look understands (a file's path, @pN and its command), its text, the places it names and the lines that explain it, the pane it is about, the question it asks, ×n and the core's clock, in a fixed list of 16 (Messages.live); a new message retires every echo and notice, a new error the error before it, the same message right after itself is counted, progress from the same cause runs in place and is never the notice row's; an echo or a notice dims after MessageLinger (now 4000 ms, a warning twice as long: test configs' MessageLinger 0 keep their meaning, nothing dims and nothing wakes), and the core sleeps to that dim (Messages.dimDue in nextWake) instead of a frame-counted linger; no key or click dismisses a message any more: Esc in normal mode takes the warnings and errors first, then goes back as before; every call site says what it said, mapped by its entry: setMessage a notice, setStatus progress, reportError and reportFailure an error, a builtin's announcement an echo (exec.zig), the sent-to-a-REPL arrow an echo; the log ring stays the history and 9P /log (each line now with its kind); gone: Pane.msg, msg_older and their lives, slots, announcement, status and sent flags, dismissMessage, advanceMessages, holdMessages, messageWake, expireUnattended and the detached shells' 100 ms message waits; until the notice row (item 2) a pane's one message chip shows the newest message said of it (Messages.saidBy); an Upgrade's outcome is said once and is every view's; tests: Messages.zig 'an echo or a notice retires those before it, an error the error before it, a repeat counts and progress runs in place', 'Msg says a notice by hand ... and the next message retires it', 'an idle core wants no wake, and a message wakes it once, when it dims', runtime/upgrade.zig 'an upgrade's outcome stays on every view's notice row until something else is said'; core-test 862 pass 162 skip, pane-test and shell-test pass; behaviour-test: the pdf addon's script golden and one PDF Restore test move with the chip over a PDF's body, which item 2 takes away Co-Authored-By: Claude Opus 5.5 <[email protected]>
| | | |
| \ \ \
*-. \ \ \ walk UI M1: line A (to moosvmpn), line B (to ozlumvqo) and line D (to ↵Gabriel Schneider3 days
|\ \ \ \ \ | |_|_|/ / |/| | | | | | | | | uxrmlvno) merged, the base of line F
| | * | | Pick: the entry points open a picker in the tag (walk UI, pick-ui SPEC.md ↵Gabriel Schneider3 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | §14.3 phase 4, item 5 of line D): in a session whose jumps walk, from the keyboard or a click (Pick.asked: never a 9P script's, which keeps the query pane whose rows it reads back and whose `not found` it hears), Find and Grep (`SPC f f`, `SPC f g`, their words), Recent (`SPC f r`), Search's sources (`SPC b b` Panes, `SPC s s` Symbols, `SPC /` All), Panes, Jumplist (`SPC j l`) and the language server's symbols and diagnostics (`SPC l s`, `l S`, `l d`, `l D`: lsp/Ask.zig, a list picker titled by its word) unroll in the tag of the pane their Enter lands in; `Jumps new-pane` (still the default) keeps today's query pane and +Jumps, so no golden moves; `/` in a body stays today's; two fixes to the items before: the band is as tall as its second step (the acts and what they act on, the sources), and with the preview off (M-p) no frame is asked for it (Pick.busy spun every frame); test/perf.zig `--pick`: a key in a Find of 50,000 paths and its frame, the frames after it while the names are scored, a cursor move over files and the frame after it that loads the preview, instructions and time; TEST FIRST: Pick.zig "pick-ui §14.3 phase 4: SPC f f from a held pane opens in its reader and Esc removes it; from a reading pane it unrolls there; Enter lands as a step leaving the list word; n walks; a Look on the word reopens it with its cursor and marks"; core-test 0 failed; pane-test 182/184 and behaviour-test (and --replay) 274/277, process-test 5 of 146 failed: all the base's (A's tests not updated in this base: Help's +Help, window mode, a PDF's SPC; the goldens find, tagnav, builtins, leader, ttyhelp of A's report), shell-test, term-test, kitty-test pass Co-Authored-By: Claude Opus 5.5 <[email protected]>
| | * | | Pick: after Enter, the list word (walk UI, pick-ui SPEC.md §5.6, ↵Gabriel Schneider3 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | §6.1-§6.3 list words and n/N, item 4 of line D): Enter rolls the list into the trail of the reading pane it landed in as one word before the place, `Find pick 3/6 •2` (its word, refinements and query, where its cursor is among its rows, its marks; Trail.through, B's Trail.zig: the list a step came through), the list keeping its rows, marks, cursor and query in the session's ring; n and N in that pane walk its rows, the newest list or search word's (normal.zig, after the text's own places: a search made since is n's), in place of the current step (Trail.replaceStep: no step pushed, a file of its own a pane in its place as a step's), its word saying where it is now; a Look on the word (Trail.lookStep's list arm) unrolls the list again in that pane's tag as it was, an Exec (execStep's) runs its source again with its query from there; Resume (`SPC '`, a new builtin, docs/typ/builtins-tui.json regenerated) reopens the last picker from the pane the keyboard is in, in the tag of the pane its Enter lands in; Enter lands from the landing pane when it reads (the owner's reader or the asker itself) and from the owner otherwise; THE FAULT IT MET (B's Trail.zig, never reached before a list word existed): Trail.wordOf returned a list's, a search's or a recipe's text out of a copy of the step made by its switch, gone at the return, so a list word drew as freed bytes; the switch takes the step's own now; TEST FIRST: Pick.zig "after Enter the list is a word in the reader's trail: n and N walk its rows in place, a Look on it reopens it with its cursor and marks, Exec runs it again, Resume reopens the last" (failed on the freed bytes first); core-test 1018/1184 (166 skipped), 0 failed Co-Authored-By: Claude Opus 5.5 <[email protected]>
| | * | | Pick: the act step (walk UI, pick-ui SPEC.md §5.5, item 3 of line D): M-l ↵Gabriel Schneider3 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | or M-Enter unrolls the acts beside the rows, headed by what they act on (`on 2 marked`, `on core/pick.zig`), and the head's second row says them before the sources' words (`Walk Look Split Newcol Grep Edit Copy Keep Drop | Grep Recent ...`); a key letter or Enter on the act's row: w Walk lands on the first picked place and queues the others (Pick.queue, the places as paths and spots), which Ctrl-i steps in the landing pane past its newest step (Pick.stepQueue, at the hook B left in Jump.jumpBy), o Look, s Split, v Newcol (Enter's three ways), g Grep a Grep picker in the picked rows' directory with the same pattern, e Edit the field a sam command (the head `Find pick | Edit s/a/b/`) run by Enter on each picked row's line in the open text that shows it (edit_cmd.run, from the last line up, a row whose file no pane shows passed over and said), y Copy the places as `path:line` lines into the unnamed register, k Keep as C-q, x Drop the picked rows as a refinement without them, d Del (the Panes list's, whose acts are Look Copy Keep Drop Del: its rows are no places) closes the picked panes and lists them again; an act's or a source's word run while the picker is live (B2 on the head's second row or on the band) is the picker's (Pick.execWord, at the head of exec.zig executeBuiltinLine; Grep, both, is the source); B3 on a picker's row lands on it and B2 runs the word with the picker live (mouse.zig bandPress: the picker's arm before A's toRest); a landing pane previewed in its own file has its caret and top put back when the picker rolls up (said in item 2's description, made here); TEST FIRST: Pick.zig "M-l unrolls the act step, which says what it acts on; Copy puts the places in the register, Drop takes the picked rows out, Walk queues the rest for C-i"; core-test 1017/1183 (166 skipped), 0 failed Co-Authored-By: Claude Opus 5.5 <[email protected]>
| | * | | Pick: a picker's keys (walk UI, pick-ui SPEC.md §5.4, item 2 of line D): ↵Gabriel Schneider3 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enter lands through the walk's open from the pane it lands in (a reading pane steps in place, a held one's reader does; the reader made for the picker is taken away first and the place opens as the held pane's reader, look.open's own), its Spot a Find row's first line, the jump list forced so Ctrl-o goes back to where it was asked; S-Enter and C-s open each picked row in a pane below; C-v in a new column (layout.newColumn, the place put there by exec_column as a column tag's New is); marked rows land the first as asked and the others below; Tab and S-Tab mark and move (Pick.marks, what each row is: a name's candidate, a Grep's line, sorted, so a frame finds a row's mark by a search over them, never a walk); M-a marks all or none; M-h the source spine as a step in the band (f g r b s / ?: Find Grep Recent Panes Symbols All, Help over the binding tree with the query, which A's TagState.openHelp takes), the query kept; C-SPC refines: the rows the query keeps become the list (a new Names of them, the old one stacked with its query, max_refine 3; a Grep's lines and All's become names, `path:line:col text`), the head `Refs alpha | w`; Backspace on an empty field undoes a refinement, else goes back to the leader level the picker's builtin is under, unrolled (as Help's Backspace); C-q keeps the rows (the marked, else all, Query.max_rows) as a +Search of text under the asking pane, its first line the word and query, each row an address a Look opens; M-p turns the preview off (the landing pane's own text back) and on; Esc rolls everything up (the tag's: TagState.toRest); a landing pane that previewed its own file has its caret and top put back; TEST FIRST: Pick.zig "a picker's keys: Tab marks and moves, M-a all and none, C-SPC refines and Backspace undoes it, M-h switches source keeping the query" and "Enter lands as a walk step in the reading pane; S-Enter opens below; from a held pane the reader made for the picker becomes its reader"; core-test 1016/1182 (166 skipped), 0 failed Co-Authored-By: Claude Opus 5.5 <[email protected]>
| | * | | Pick: a picker unrolls in the tag of the pane its Enter lands in (walk UI, ↵Gabriel Schneider3 days
| | | |/ | | |/| | | | | | | | | | | | | | | | | pick-ui SPEC.md §3.5, §5.1-§5.3, item 1 of line D): core/Pick.zig, a picker the session's (Pardes.picks, a ring of max_lists 8, each named by a serial from the panes' counter so the disk engine's target names it as it names a pane, Stream.receive giving it its batches through Query.take, now taking either), live in a view's tag as TagState kind pick (TagState.pick its serial, host its landing pane: the asking pane when it reads, else its reader, else a pane made for it where its reader would go, an empty +Preview until the preview fills it, taken away by Esc); its sources Query.zig's producers re-presented: Find's listing from the disk engine's worker and Recent, Panes, Symbols (Query.gather, the name gathering startSource did, now shared), the jump list (Output.jumpsText, what +Jumps lists) and a list's rows handed over (a language server's answer, titled by its word), all scored by Names a frame's count at a time; Grep's lines from the worker after its pause, All the places each open text finds (as Query's All); the head ` ␣ f Find pick 3/6 ⋯` (key cells from the source's leader keys, the word, the field, cursor/total, ⋯ while scoring or searching) and a second row of the other sources' words under spines continued from the key cells (TagState.Head.cells counts the second row's spines, which Band.findSpines hangs the band from); the band's rows eleven around the cursor, made in the frame's arena for the rows shown only (O(rows shown): a Find of 50k paths makes 11 rows a frame), a place prefix in the name's tint, a path's directory dimmed, matches in the match tint; the preview is the landing pane's body: the current row's file at its line (a Grep's matches lit as its places), taken from an open pane's text or read, on the frame after the cursor stood (never on the key that moved it: Pick.busy asks the frame), a reading pane's own text set aside meanwhile (Pick.aside) and put back when it rolls up, a twinned text never previewed in; TagState.toRest rolls a live picker up first, whoever puts the tag to rest; A's API: TagState.Kind pick and its pick field, Band.takes/of's pick arm, Band.Row mark/pre/faint (drawn in draw.zig joinBand), Band.place holding a step to the band's width, TagState.point on a picker's row; TEST FIRST: Pick.zig "a picker from a held pane unrolls in a reader made for it ..." and "a picker from a reading pane unrolls in that pane, its own text set aside while it previews and back on Esc"; core-test 1014/1180 (166 skipped), 0 failed Co-Authored-By: Claude Opus 5.5 <[email protected]>
| | * | walk UI wave-2 base: line A items 1-4 (kquzozvs) merged with line B items ↵Gabriel Schneider3 days
| | |\ \ | | | | | | | | | | | | | | | 1-5 (mqmtqvtt)
| * | | | dump: a load frees what it read after the core (its mounts, its theme, the ↵Gabriel Schneider3 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | other views' shares) as the things it made, once each, never by hand: a damaged dump whose theme is a reference to a slice the loaded core holds had it freed by `defer gpa.free(theme)` and again by the rollback when a later read failed (and, had the load gone on, the core keeping a freed slice); found by the 40,000-seed fuzz this line's dump layout asks for: RUN FIRST: fuzz.zig "a dump and an image cut ..." at 40,000 join seeds over a session with a reader's walk in it, join seed 19224: `panic: double free` (the first free dump.zig:421 `defer gpa.free(theme)`, the second the errdefer's `l.rollback()`, dump.zig:401); THE CAUSE: walk.Load.ref hands back a slice made before (`shared`), which for the trailing reads is the core's, and loadKnowing freed those reads by hand; THE FIX: one defer frees `l.shared.items[read..]` (what was made after the core) and drops it from the rollback, the views' shares the same; no user could hit it but with a damaged or hostile dump (a join's stream, a Restore file); TEST FIRST: the fuzz's session keeps a reader's walk and checks join seed 19224 by name (fails before: double free); the fuzz at 40,000 join and 1,779 image seeds green in 145 s Co-Authored-By: Claude Opus 5.5 <[email protected]>
| * | | | walk, a fix on top of the frozen items 1-3: what the walk costs where there ↵Gabriel Schneider3 days
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | is none: Trail.edited (an edit holds the panes showing its file) returns at once under `Jumps new-pane` and for an output, a listing, a pager or a Mini, where no pane can read, and tagline.nameAt and forwardSpan return at once for a pane with no walk; RUN FIRST: the gate against tree7, its per-op counts set beside main's own gate merge70-g's (the same base): body-appends +0.16% on every size (+30,860 instructions an op, the same on each: Trail.edited's 64-slot loop at each of its 9P appends to a file pane), client-key-down +0.07 to +0.13%; the counts after it are in the next gate Co-Authored-By: Claude Opus 5.5 <[email protected]>
| * | | | walk (pick-ui SPEC §6.6, item 6 of the Walk UI line B): `Jumps new-pane`, ↵Gabriel Schneider3 days
| | |/ / | |/| | | | | | | | | | | | | | | | | | the default (item 1 made the setting: a Settings choice, `Jumps walk` in a tag or an init line, reported by DumpConfig), jumps exactly as before the walk: look.open runs the new-pane code it always ran, nothing reads (no Keep, no tint) and no trail is made; TEST FIRST: Trail.zig "Jumps new-pane jumps as before the walk: a new pane for a file no pane shows, under the asking one, the one showing it focused, nothing stepped"; docs/typ/builtins-gui.json refreshed for Keep and Jumps, and the builtins process golden (its Look row 4 lines down); on the stack: shell-test 1214/1217, term-test 17/17, kitty-test 45/45, behaviour-test --replay 277/277, process-test 146 less the builtins golden refreshed here, the soak (5 clients) diverged 0 unequal 0 quiet checks 595/0 corpus 22/22, the gate against tree7: unit-test 1809/1813 (no failure the base has not), frame 76 and the 8 deep-sel counts differ as main's own gate merge70-g does (load 5-9) Co-Authored-By: Claude Opus 5.5 <[email protected]>
| * | | walk (pick-ui SPEC §6.5, §11, item 5 of the Walk UI line B): a held pane's ↵Gabriel Schneider3 days
| | | | | | | | | | | | | | | | | | | | | | | | reader is its tether and closes with it (panes.removePane: Trail.readerOf first, its rows where a closed pane's go), one kept or typed into stays; Keep (the tag word, `SPC j k`, item 1) and an edit hold a reader the same way, its places, owner and forward steps leaving its tag and a search's or a recipe's word staying, so the next jump from its old owner makes a new reader; TEST FIRST: Trail.zig "closing a held pane closes its reader; a kept reader stays; typed into, a reader is held and its walk leaves its tag" (Keep itself in the §6.7 session test); core-test 1000/1166 (166 skipped), pane-test 183/184, behaviour-test 277/277 Co-Authored-By: Claude Opus 5.5 <[email protected]>
| * | | walk (pick-ui SPEC §6.4, item 4 of the Walk UI line B): Ctrl-o goes back ↵Gabriel Schneider3 days
| | | | | | | | | | | | | | | | | | | | | | | | one place in a reading pane's walk and Ctrl-i forward one (Trail.walkBy, at the head of Jump.jumpBy, so Back, Forward, the keys and the mouse's side buttons all take it), past its first place (its owner's word is no place) or its last, and from a held pane, the jump list's step as before; the hook for Ctrl-i stepping the Walk queue once the pickers make one is a comment where it goes; TEST FIRST: Trail.zig "Ctrl-o goes back one place in a reader's walk and Ctrl-i forward again; past its first place, or from a held pane, the jump list's"; core-test 999/1165 (166 skipped), pane-test 183/184, behaviour-test 277/277 Co-Authored-By: Claude Opus 5.5 <[email protected]>
| * | | walk (pick-ui SPEC §6.3, §6.4, item 3 of the Walk UI line B): a reader's ↵Gabriel Schneider3 days
| | | | | | | | | | | | | | | | | | | | | | | | trail is words of its tag: its back steps before its path (`‹@p3 › rank.zig:14 › `, the owner's word written so that its Look is `@p3`, the newest shown_steps 3 whole and older ones folded to `·`, still their steps), its forward steps after it, dimmed in the theme's lineno ink (draw.zig inkTag, the name's tint loop made one with it), then Keep; the prefix is made in the room Trail.bytes measures (tagline.pathPrefix, no allocation past it), and the name's place after the words is tagline.nameAt (onName, typedIntoName, tagTintRange, the drafted name's caret); a click on a step's word is that step's Look (B1 with no drag, the one place it does more than select, and B3) or Exec (B2): a place gone back to (the later steps kept as forward steps) or forward to, the owner focused; a list, a search or a recipe word says it is not walked yet (their makers are D's and E's: Trail.lookStep, Trail.execStep); TEST FIRST: Trail.zig "the session of pick-ui §6.7: four jumps across three files, back by a click on a trail word, the later steps kept dimmed after the path, forward again, Keep, and a new reader on the next jump" and "a trail keeps its newest three back steps whole, older ones fold to ·, and a click on a · goes back to its step"; core-test 998/1164 (166 skipped), pane-test 183/184, behaviour-test 277/277 Co-Authored-By: Claude Opus 5.5 <[email protected]>
| * | | walk (pick-ui SPEC §6.1, §6.2, item 2 of the Walk UI line B): a jump goes ↵Gabriel Schneider3 days
| | | | | | | | | | | | | | | | | | | | | | | | through look.open(from, path, at, how), the one way a Look at an address, a definition (lsp/Ask.zig), an error's place, a list's row and a closed jump-list entry land, for D's pickers too: under `Jumps walk` a held pane showing the file is focused and nothing replaced, the asking pane showing it moves in it (a step when it reads), a reading pane steps in place and a held one steps its one reader (Trail.readerOf: the reading pane whose trail starts with its owner), made on its first jump under it with half its rows (layout.placeNew .reader: unless that leaves it under reader_keeps 8 body rows; then the bottom of the next column, the previous from the last); a step to another file is a new pane in the reader's place in every view (layout.replacePane), its walk with it, the old one closed as a pane is (Recent keeps its dot) but kept by no Store record; a place on the trail is gone back or forward to, a jump to where it is takes no step, a path over max_text opens a pane as new-pane does; `Jumps new-pane` (the default) runs the code it always ran (openNew is lookAt's new-pane branch moved, and the .pane branch is untouched); TEST FIRST: Trail.zig "a jump from a held pane steps its reader ...", "a Look from inside the reader at a file its held pane shows focuses the held pane and replaces nothing", "the reader of a held pane too short to halve goes to the bottom of the next column ..."; core-test 996/1162 (166 skipped), pane-test 183/184, behaviour-test 277/277 Co-Authored-By: Claude Opus 5.5 <[email protected]>
| * | | walk (pick-ui SPEC §2, §6.1, §6.5, item 1 of the Walk UI line B): a pane ↵Gabriel Schneider3 days
| | |/ | |/| | | | | | | | | | | | | is held or reading: Pane.trail (core/Trail.zig: a fixed walk, max_steps 16 of max_text 256 bytes, its steps a union of place, owner, list, search and recipe, `cur` held by walk.zig, in the digest and the dumps) and `held`, set by Keep (a new builtin, `SPC j k`) and by any edit of the file (File.edit, Trail.edited, twins too); a reading pane (a file not held: no output, listing, pager, query or kind) shows Keep after its path in its tag and its tag in the reading tint (a new theme role tag_reading_bg, derived from the page and the search ground, acme the spec's #f3f0cc), under the new setting `Jumps walk|new-pane`, whose default is new-pane until the walk's pickers are in, so every tag, frame and golden is as before (a walk default changes 74 of 102 process goldens and 21 behaviour tests by the Keep word alone); TEST FIRST: Trail.zig "a file's pane is reading ..." and "Keep holds a reading pane ..."; draw.zig's three-row tag test reads its band through tagGround; docs/typ/builtins-tui.json refreshed; core-test 993/1159 (166 skipped), pane-test 183/184, behaviour-test 277/277 Co-Authored-By: Claude Opus 5.5 <[email protected]>
* | | TagState: a terminal's rolled level takes no more tag rows than its own text ↵Gabriel Schneider3 days
| | | | | | | | | | | | | | | | | | (a fix on top of item 2, uqopxwqz, frozen): the rolled level wraps to three rows, and a terminal's body is its pty, so a which-key that took a row resized the program under it (SIGWINCH) at every SPC or C-w held past its delay in a terminal in normal mode; its room is now the rows its own text takes at rest (layout.wantedTagRows), the rest `…` as past three rows; TEST: TagState.zig "a terminal's rolled level takes no more tag rows than its own text: its pty keeps its size" (shell-test, which has a shell) Co-Authored-By: Claude Opus 5.5 <[email protected]>
* | | TagState: a root struck in a pump wakes the loop for the frame that dates it ↵Gabriel Schneider3 days
| | | | | | | | | | | | | | | | | | (a fix on top of item 2, uqopxwqz, frozen), and the pane and behaviour tests that read the old leader: THE FAULT: a pump advances its clock before it settles its keys (Pardes.pump), so a root's key leaves its delay undated (TagState.asked) and TagState.wake left an undated root out, as nextWake leaves Del's question's: with nothing else due the loop slept until the next key and the level never showed (the process suite's find snapshot drew ` ␣ f …` after 400 ms still); a user hit it at every SPC, g, z, m, [, ], C-w and " in a terminal or a window; THE FIX: an undated root asks for the next frame (TagState.wake), whose advance dates it, then for its level's time; TEST FIRST: TagState.zig "a root struck in a pump, after its advance, wakes the loop for the next frame, which dates it, then for its level" (on uqopxwqz's wake: nextWake null after the key); the tests of the old behaviour: test/panes.zig's generated Help replaced by `Help h`, the word (SPC h ? is Help in the tag), test/behaviour/modes.zig's window mode (the pane with the keyboard shows window mode's head after its name, not its own words: looked for as `name `), test/behaviour/keys.zig's PDF (the leader's cell `␣` in the tag, not the SPC chip; a key the PDF takes still takes the leader away); behaviour-test 277 of 277 with these Co-Authored-By: Claude Opus 5.5 <[email protected]>
* | | TagState, builtins: describe-key (walk UI, pick-ui SPEC.md §4.5, item 5 of ↵Gabriel Schneider3 days
| |/ |/| | | | | | | | | line A): SPC h k runs a new builtin, Keys (its word anywhere does the same), and the next keys typed are replayed in the tag of the pane it ran in (TagState.kind describe, its sequence in the view's scope_root and scope): the head says ` Keys` and the keys as key cells; a sequence that reaches a leaf shows ` Keys g ▸ d Def` and unrolls its level in the band with the leaf on the cursor and its doc beside it, for every root (g d, ] f, SPC l r, C-w h); Enter runs it, typed as its keys; a sequence nothing is bound to is struck, `runs nothing` (a first key that is no root's, `starts no sequence`); Backspace takes a key back, Esc goes to rest, any key after a sequence ended starts the next; docs/typ/builtins-tui.json and -gui.json have Keys (the tui's made by `zig build builtins-json`, the gui's line the same); TESTS: TagState.zig's describe-key (g d replayed with its level and doc in the band, ] f, SPC l r, g q struck, g e run by Enter) and window mode's level (C-w: its cell at once, its level after the delay, kept while h j k l move the outline, gone at Enter); core-test 1005 pass, 166 skip, 0 fail Co-Authored-By: Claude Opus 5.5 <[email protected]>
* | TagState, Field, Band: the typing state, and Help over the binding tree ↵Gabriel Schneider3 days
| | | | | | | | | | | | (walk UI, pick-ui SPEC.md §3.2's typing row and §4.5, item 4 of line A): a tag's typing state is the view's (TagState.kind help, its host pane by serial, the hostOf every tag's text asks), its box `^` whatever the body's mode, its caret a bar at the field's (the body's caret and its layer's put by while the head is typed in), and it takes every key before anything but a question (keys.zig tagStateKey: Esc back to rest, Enter runs the row typed as its keys, Backspace on an empty field back to the level `?` was struck from, unrolled); SPC ? is Help over every leaf of every root (SPC's, g m z Z [ ]'s, window mode's, the addons' words) and `?` down a level or under a helix prefix Help for that level's (SPC l ?, g ?); its head ` Help ␣ l <field> n/N`; its rows `chord · word · group` scored by the query pane's scorer (Names.match, now pub) on each key into the view's fixed hits (max_hits: the tree's 160 leaves and the registry's 64 words; best first, the tree's order while the field is empty), the band shows eleven around the cursor, the query's bytes in the match tint, the cursor's leaf's doc beside them; `Help <name>` stays the word's +Help; FOR THE PICKERS AND PROMPTS, as they are: Field (core/Field.zig: a one-line field in a fixed 256-byte buffer with its caret, each view's in TagState.field; Field.key takes a line editor's keys: characters, Backspace/C-h, Delete/C-d, Left/C-b, Right/C-f, Home/C-a, End/C-e, C-u, C-k, C-w/M-Backspace, M-b, M-f; false for a key it has no use for, Enter, Esc, the arrows, which its owner takes; set, insert, clear) and Band.Cursor (a list's cursor, TagState.rows: Cursor.key steps it on Down/C-j/C-n, Up/C-k/C-p, PageDown/PageUp; Cursor.window(n) is the eleven rows [lo, hi) a band shows around it); a state's head is a TagState.Head {text, spans, caret}, its band Band.of's switch on TagState.kind; TagState.follow takes no argument now (a root a state puts back is current already: Help's Backspace keeps its level unrolled); TESTS: Field.zig's (a line editor's keys, and the keys it leaves), TagState.zig's two (SPC ? over every root, filtered, the box and the caret, Enter runs Wrap; SPC l ? and g ? scoped, Backspace back to the level unrolled, Esc to rest); core-test 1003 pass, 166 skip, 0 fail Co-Authored-By: Claude Opus 5.5 <[email protected]>
* | Band: the rows a tag unrolls into (walk UI, pick-ui SPEC.md §3.6 and ↵Gabriel Schneider3 days
| | | | | | | | | | | | §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]>
* | TagState, keys: which-key, rolled (walk UI, pick-ui SPEC.md §3.2-§3.4, ↵Gabriel Schneider3 days
| | | | | | | | | | | | §3.7, item 2 of line A): a view's tag out of rest is its own (View.tag_state: the root the last key left current, when its level shows on the session's clock, whether it is unrolled, its cursor, the key it missed, the leaf each group ran last; in the dump and the digest, wire 36); the root and its keys are what the core already holds (SPC's leader keys, window mode's outline, the helix prefix the text with the keyboard waits on: TagState.current reads View.prefix and Text.normal.prefix both); a key that strikes a root starts its delay at the next advance, whose clock it is (TagState.asked, as Del's question), and the loop wakes for it (nextWake): SPC writes its key cell at once and shows its level 250 ms on, " and C-w the same (300, 250), g m z Z [ ] change nothing until 500 ms pass with no next key, so gg and gd never touch the tag; the head is computed tag text after the prefix in place of the tag's own text, never written into it (the coordinator's R1: tagline.shownTail, which tagText, sync's wrap and paintPaneTag read; an edit of the tag while it shows is refused): ` ␣ l ▸ a CodeAction b Callstack … ↓ unroll · ? help`, wrapped to three rows at most, keys in the key ink, LSP leaves dimmed in a pane no server speaks for, the leaf its group ran last underlined and said on the leader band's line (`k Hover: … (last used here)`, Messages.leaderText, where the SPC chip was); leaderKey on the binding tree (a level's children, not every builtin's row a key): a group goes down, a leaf runs and is remembered, a key with no child is struck and the level stays (was: the leader left), Backspace goes up a level, Enter runs the cursor's leaf (rolled: the last one run here); Down unrolls (the band is item 3), Up on the first row rolls up, Right/M-l and Left/M-h enter and leave a group; the helix prefixes take the same keys before their own (prefixKey), a key the root binds staying its (z Down scrolls); THE FAULT IT MET: walk.Get's list of a damaged image whose count runs past its elements left the rest undefined (fuzz.zig's "a dump and an image cut", restore seed 781 on this layout: a pane loaded with 256 location rows of 0xAA, freed by a key: integer overflow in SafeAllocator) and the load is now refused (core/walk.zig, after listInto); TESTS: TagState.zig's three (SPC at once then 250 ms, g at 500 ms, gg never; a leaf remembered, underlined, said and run again by Enter; a missed key struck, Backspace up), config.zig's Space-k test (a missed key is struck now, Esc leaves), Messages.zig's two chips (the leader's line); core-test 996 pass, 166 skip, 0 fail Co-Authored-By: Claude Opus 5.5 <[email protected]>
* | bindings: one binding table, a tree per root (walk UI, pick-ui SPEC.md ↵Gabriel Schneider3 days
|/ | | | | | §4.1-§4.3, item 1 of line A): SPC's from config.leader_path and config.leader_args, the helix prefixes' (g m z Z [ ]) from their roles in modal.zig and their chords in config.zig (the first role a key has is the one it runs, so zz/zc centre once; a role only a held chord types, z C-d, is not a row), window mode's (C-w) from config.window_keys with Collapse and Del, and " a root with no tree (its rows are the registers', later); all made at compile time, ordered as which-key orders them (groups first, punctuation, then a-z with a lowercase key before its capital), a builtin leaf labelled by its word (Def), a motion by its role's name without its context's word (line start), SPC's groups by the spec's names (lsp, file, ...); a group's slot in a view's memory of its last leaf (groups, ngroups); an addon's leader words joined into SPC's levels where a level is read (level: the tree's children this view takes, then the registry's 64 words at most), a level of 96 children at most; Help's rows, every leaf of every root as `chord · word · group` with its lowercase for the scorer (flat, 160 rows, comptime); docOf (a builtin's summary, a word's doc, a motion's root and description), dimmed (an LSP leaf in a pane no server speaks for), keysOf, rootOf, chord; TEST: bindings.zig's three (the SPC tree's order and leaves, the helix trees' labels, Help's rows) Co-Authored-By: Claude Opus 5.5 <[email protected]>
*-. merge70: main (8a40a71e2eab, installed 2026-11-24 16:00) + an idle session ↵Gabriel Schneider3 days
|\ \ | | | | | | | | | | | | | | | | | | sends nothing (mzmzszzk: the clock held after a wait only while a post waits) + a terminal client keeps a terminal's row metrics (nmvzxqrp; yrslyomp is main's clip correction again) + docs/loose-ends.md (oosunrzm) + a view scrolls by rows, its two soak faults fixed (vnlwrnvu: top_skip read through File.topSkip, scroll_row no place held at a load); wire 35; no conflict Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | * load: a view's top row is read back as the session holds it, never held to ↵Gabriel Schneider3 days
| | | | | | | | | | | | | | | | | | | | | 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
| | * rows: a view's top row is read off the geometry it is of, never another's ↵Gabriel Schneider3 days
| | | | | | | | | | | | | | | | | | | | | (row scroll round 4, fault 1): `Pane.top_skip` (the top's row in its line and its first byte, a derived cache keyed by the geometry it is of) is read only through `File.topSkip`, the skip walk fillBody had, moved there: one keyed for another geometry is walked again, so the text pass, `topNow` (a step's top) and the map's pass all take the top of the view they draw or step: a step's `show` or `scrollRows` hands the NEXT geometry the byte it found (keyed so), and a view drawn or stepped in before that geometry is made (another view alike the first: a client's own view, drawn by `drawOne` after another client's unit moved the live one's top) took that byte for its own top line (the release soak's client panic, `index 41, len 38`); `geometry` stamps the top it found or took with the key it ends on (the walk brings tables and index up to it), so a text pass after a remade map reads it with no walk; `rowsOf` reads whether rows of the top line are above the top off the fresh map itself (its first body row starts past the line's first byte), not off the cache; the tab's width is in `geometryKey` (a Tab zeroed `geometry_key` and left `top_skip`, whose key then matched again: a row start of the old width trusted, a wrong row drawn and a step's top read wrong): the reset in exec.zig's Tab goes. The other readers of a pane's geometry, every one listed (the report's table): two read it on a step before making it: normal.zig `gotoWindow` read `context_rows` before `shownRows` made the geometry (gt/gb after a step that moved the top past its last geometry: the held rows of the place before; now read after it), and File.zig `rowTable` took its width from `body_wrapped` (the last geometry's) for j/k (`verticalMove`, which makes none): now from what that is made of, the view's `wrap`. The three tests of the change below pass (wip: gate to come) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | * tests: a view's top read off a geometry it is not the view of (row scroll ↵Gabriel Schneider3 days
| | | | | | | | | | | | | | | | | | | | | 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
| | * soak: a join's dump that loads as another session says the fields it differs ↵Gabriel Schneider3 days
| | | | | | | | | | | | | | | | | | | | | by, as a client's join says them (replica.fromDump's words: `loadDiffers` made pub): the coordinator's merge67b release soak had 'seed 3 rtt 207 ms: client 3's dump loaded as another session' and no field (1 in 12 seed-runs), not reproduced yet Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | * walk, views, Core: what the 40,000-seed dump fuzz reached once a view's ↵Gabriel Schneider4 days
| | | | | | | | | | | | | | | | | | | | | 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
| | * replica: `may_wait` lists the two stops the soaks saw that no row held, each ↵Gabriel Schneider4 days
| | | | | | | | | | | | | | | | | | | | | a read of what only the session has: `a key into a kind's pane` (a key to a kind this client does not run, no library for it here or not PA_PLAIN: its state the session's, as "a replica with no code for a kind whose state is not plain ... its keys go to the authority" has it; on `.addon`, which the walk does not stand in, as the kinds' other rows) and `jj` (jj run in the session's tree: `At <rev>`, a file at a revision; a Look at a change id, its patch; `Diff a..b`: what the session's repository holds, its disk, as `resolve` and `read_file` are); the walk walks `At @-` (walk_samples), which stops at `jj` on a file's pane and a directory's, so the row is held to a stop it names (the shell-test walk's stale check passes with it, 12/12); WHERE EACH WAS SEEN: the first only after a divergence (the geometry fault, the change before: a client that found the pdf break PA_PLAIN distrusts it and joins again without its code, then every key into its pane stops there: 532 in rpplxwst's soak), none in a soak with the fix; the second on main's soaks (pair-14, link-3, merge65's release soak: a client's Enter, `\r`, stopped at `jj`), whose path to a jj site is not named here (Enter on a word that reads as a change id, in a scratch and in a file, stopped nowhere in a probe) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
| | * layout: a view's geometry is read back as its session holds it, never laid ↵Gabriel Schneider4 days
| | | | | | | | | | | | | | | | | | | | | out again at a load, and held to its screen (walk.zig `.within`): a dump whose rect or column is off its screen is REFUSED, the field named: RUN FIRST (the soak, `replicas -- --clients 5`, Debug): `rpplxwst` ALONE diverged 124 at rtt 30 (225 clients parted at their first unit after a join, `addon pdf: its state after view is not the session's (it breaks PA_PLAIN)` and `the tape's answer to addon is short`; then 532 keys into the pdf's pane stopped at `a key into a kind's pane`, the kind distrusted; the witness's replay past a divergence panicked, `integer overflow` in Core.advanceInner), `pardes-merge67` 0 at 30, 80 and 207 ms; THE CAUSE: a join opens its client a view (views.zig `open`: the live one's screen and columns, NO rects: laid out at that view's first input), and rpplxwst's load (dump.zig `afterLoad`) laid every view out again, so the client had rects for its own view the session had not, told its plain kinds a view the session never told them (Kind.zig `step`, `viewOf`), and parted at the session's next step; a join's dump is the session: THE FIX: `rects`, `col_x`, `col_w` back in the digest, the dump and the copy as merge67 had them, `afterLoad`'s relayout gone (and walk.zig `pastHeld`'s pass over a derived buffer with it), and where a value read back may be is declared beside the field: `replica.within` (a predicate of the struct by the entry's place in the field, as far as its length says), checked with the indexes (`heldIndexes`) in all three decoders (a tape's `decode`, a byte dump's and an image's `holdTo`): `View.rects` on its screen (`onScreen`: x + w <= screen_w, y + h <= screen_h, as the layout pass puts every one, and a view not laid out yet has empty ones), a column's edge with its width (`columnOnScreen`, declared on `col_w`), refused in words (`Core.View.rects[0] is not within Core.View.onScreen: refused`), never clamped (a clamped rect is a state no session had); `cols` stays held to `ncol` (a column past `ncol` is a dropped one's, which the index rule would read); TESTS FIRST: replica.zig "a client joins with its session's geometry as the session holds it ..." (a plain kind keeping the rows its view was told; on pardes-load-index: `expected 0, found 5`, the joined view's rect, and without that line `the tape's answer to addon is short (tape byte 241, in tick)`), dump.zig "a view's geometry is read back as the session holds it, never laid out again; a rect or a column off its screen is refused, the field named" (the fuzz's restore seed 589: a pane 534 rows tall on a 24-row screen; a column 900 wide; a column's edge at 900), walk.zig's index test gains an entry not where it may be (`S.edges[1] is not within`, a tape, a dump and an image) Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T