| Commit message (Collapse) | Author | Age |
| |
|
|
|
|
|
| |
what the array held before the read, so a damaged dump whose messages' `live_len` came back without their `live` is refused, not walked over undefined messages (walk UI M4 item 2, the fuzz panic G2's gate met: join seed 4135 on G2's tree, 6356 on this one; G2's run without this line's session lines met it at 33733): RUN: the dump fuzz at join seed 6356 panicked in its digest (tape.digestOf after the load), `index out of bounds: index 43690, len 96` at walk.zig hash: Messages.live[0]'s `src` (a Kind.Buf(96)) said 0xAAAA bytes; the load said live_len 1 and had not read `live`; THE CAUSE: a load reads the core in place (dump.zig loadKnowing, walk.Loader.into: `fields(Pardes, ..., existing = true)`, and each struct field under it in place too), and Loader.fields (walk.zig, the `held` it begins with) and Get.fields (the image's) took an in-place struct's arrays as holding ALL their slots (`maxInt`) until they were read, so pastHeld refused no length whose array the dump did not carry: a damaged dump whose Messages kept `live_len` and lost `live` (a damaged name, or a kind that changed, "left as it was") left `live_len` 1 over the fresh core's `live: [max_live]Said = undefined` (0xAA in Debug, any bytes in a release build), and the digest, the notice row, the marks and every reader of a live message read past it; THE FIX (heldNow, both readers): an in-place array holds, before the read, as far as its length said then (heldOf: a fresh core's none), and a read array as far as it was read, as before; so the length read back alone is refused when it says more (pastHeld's note: `live_len` says 1, past the 0 its buffer holds), and a length the array held before stands; a same-build dump reads every field and is not changed by it; a user restoring or joining from a damaged dump could have hit it (a release build reads that garbage as messages); TEST FIRST: walk.zig "a struct read in place holds a length read back without its array to what the array held: past it, the dump is refused" (fails before: no error), fuzz.zig's join seed 6356 pinned beside 19224 and 31554 (panics before); the fuzz at 40,000 join and 1,779 image seeds over this line's session (kept picker, recipe, search word, Help): pass (3 min 17 s); core-test 1062/1232 (170 skipped), shell-test 1279/1282 (3 skipped)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
|
| |
|
|
|
|
| |
§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]>
|
| |
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
| |
a declaration beside the field, read by the comptime walk and checked where `pastHeld` is (the end of a struct's fields in all three decoders: a tape's `decode`, a byte dump's `Loader.fields`, an image's `Get.fields`, through `holdTo`): `replica.index` says what a field names (a field's slots, a predicate's things, or, with a third word, the things of the struct holding it, held where ITS fields end over every value of the type it holds (`heldIn`, `visit`); a fourth word: a span counted from it), and one that names none is REFUSED, the field named, in the words `fromDump` and a Restore say (`Core.live says 9, which names none of Core.openViews: refused`); `replica.place` gives a field's last place (or its first and last) and one past it is that place (the session is there, its view a line off); `replica.left_out` is what a load that left a thing out (another build's pane) does to what named it before the indexes are held (`Pardes.dropMissing`, now every view's); a field that names a slot by its type (`Pane.Id`, `View.Id`) with no declaration is a compile error (`checkSlots`). RUN FIRST, each the dump fuzz with every loaded core drawn at its size, 40x12 and 200x60 and given keys and a wheel notch (core/fuzz.zig `use`), each a panic or an allocation past the fuzz's cap on the tree before: join seed 1761, `Pardes.multi_count` read as 2^30 sized a yank's register array at 17 GB (`d`, Registers.put): a step's own, now not dumped, with `multi_*`, `exec_depth`, `exec_column` (root.zig `kept_out`); join 3682, `File.State.scroll` past its text: `@intCast` into `wrap_line` (File.zig fillBody): clamped to its last line (`lastLine`; a slim dump's file, read again at its revival, to its saved bytes' lines), `scroll_row` to the top line's bytes; join 77, `Messages.head` past its ring (logMessage): clamped (`head`, `len`); restore 1211, `View.screen_h` 0, drawn (draw.zig paintHeaders: surface.zig `at`), and join 24086/28218 a screen sizing a 111 GB frame: a view's screen side is a grid a frontend sizes or the dump is refused: a cell at least (a zero refused, not clamped, as abi/wire.zig `getCols` refuses one), at most 4096 (`View.max_grid`: past any display's; the wire's 512x128 is a client's, and a session's own frontend is wider: a replica test's view is 500 rows); join 14189, `Pane.tag_lead` past i32 (Core.sync): held to the room its prefix is made in (`Pane.prefix_room`); join 18926, an undo's `Journal.done` past its steps (Text.zig `mark`): clamped, `Step.first..n` a span of the journal's entries (refused past them), and join 35489 `Journal.bytes` overflowing (`record`): held to what its entries hold. And a bitset a load made is freed with the rest when the load fails or what held it is let go (`Bits`, on `customs`): the 40,000-seed run's leak (16 KB, `Loader.value` `.bitset`), reached once a refusal came after one was read. Declared beside them, by the brief and by reading: `Pardes.live` (an open view), `theme_file_pane`; `View.active` (a pane there, or any slot in a window with none), `window_pick`, `kind_grab`, `kind_hover`; `Column.panes` (panes there, held as far as `n` now says: a `len` pair, so a digest and a dump take that far); `Pane.sized_by`, `prompt_view`, `search_pane`; `Jump.cur` (place), `Jump.Loc.pane`; the language server's awaited `pane`. TESTS (each site was a failing run first, above): walk.zig "an index read back that names none of its things is refused, its field named, in a tape, a dump and an image; a place past its thing's last is that last", "a thing another build's dump left out takes what named it with it (`left_out`), before the indexes are held"; dump.zig "a dump whose index names no view or pane there is refused, the field named; a top past its text is its last line; a key's replay is not dumped"
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| |
|
|
|
|
|
| |
never dumped: every load lays each open view out again (dump.zig `afterLoad`: `layout.compute` per open view, as a resize lays it out), and `cols` is held to `ncol` (`View.replica.len`): RUN FIRST on pardes-merge67 (core/fuzz.zig's dump fuzz, the restore road's seed 589): an image's pane 0 rect read back as 534 rows on a 24-row screen (`View.rects`, dumped as it was), drawn: draw.zig:448 `clearRect`, then surface.zig:322's `at` asserted; walk.zig `pastHeld` passes over a pair whose buffer is derived; TEST FIRST: dump.zig "a view's geometry is laid out again at a load, never read: a pane's rect past its screen in a dump is the layout's after it" (merge67: expected 22, found 534); not whole alone: the dump's layout moved, and the fuzz's seeds then reach the indexes the next change holds (`live` past the views, a file's top past its text)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| |
|
|
|
|
|
| |
default, is freed: the merged gate's shell-test (its SafeAllocator counts every allocation) failed the dump fuzz with 8 leaks once the fuzz read the byte dump and 1024 images (core-test's run does not count the image allocator's): a pane another build's (or a damaged) dump cannot give is left out (`elements`/`listInto`, an array of optional pointers) and a field whose kind changed takes its default or is left as it was (`fields`, by name), but what their read had made before it failed (the pane itself, a name, a slice; a custom type's `dumpRead`) stayed in the reader's list with nothing holding it: freed at no rollback, since the load succeeded; a leak on every Upgrade from a build whose pane another cannot read, and on every such damaged dump; now each reader marks where a value's read began (`Mark`: its made list and its customs) and `letGo` frees what was made since, customs first, each entry left dead (a later reference to it is refused, as a half-made one is); TEST FIRST: walk.zig "what a value left out had made is freed: a pane another build cannot give leaks nothing, from a dump or an image" (a pane whose `n` changed kind with no default, after its name was made: 4 leaks on the base, a pane and its name from each reader; none with it); the dump fuzz under shell-test's allocator passes (13/13)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| |\ \
| | |
| | |
| | | |
(vszznuqx) and pardes-no-panic-2 (lokskytr): no conflict
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
leaves out skipped, a `len`-cut array to its length, flat arrays and slices by std.mem.eql, a type that walks itself by its digest), where it took the digest of each: the jump dedupe calls it for every pair on every step, and two Wyhash walks a pair put 32 of pardes-perf's 121 per-operation counts over 0.1% (every key, wheel, page and edit op about +26k instructions, body-appends +1.74M); with this, 120 of 121 within 0.1%, body-appends on longline +0.1001% and on small, medium, large +0.067% (the same +14.5k instructions an op: the dedupe deciding as the digest does where the base's release garbage decided otherwise; every body-appends setup cheaper), everything else within 0.02% (against tree6, load 4.2-4.6); core-test 926/1090 (164 skipped), shell-test 1132/1135 (3 skipped) in Debug (loads 5.0-10.2)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
same (`walk.eql`: the digest of each, so what the walk leaves out, a Buf's bytes past its length, a cache, decides nothing), not by std.meta.eql's every byte: core/Jump.zig:207 took the dedupe on a text entry's `place` bytes, undefined (`.place = .{}`), the same 0xAA on every Debug process and each process's own on a release build, so a session and its client kept different jump lists and the client parted (both release soaks of the base, the witness naming `views[3].jumps`, `views[0].jumps`); the test of the change before passes (Debug)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
in, and the fuzz reads the byte dump a join streams as a join does: core/fuzz.zig's dump fuzz had read two IMAGES (`dump.dumpBytes` is an image too), so the byte loader a client's join runs (`walk.Load`, before the session's digest is checked) was never fuzzed; now its two wholes are `dump.byteDump` read as a join reads it (`Road.join`: loaded, digested, let go) and the image read as a Restore or an Upgrade reads it (`Road.restore`: loaded, drawn), 4096 seeds and 1024 (seconds each). EACH SITE BELOW WAS A RUN OF IT FIRST, then the fix: the join road's seed 96, `Loader.readInt` on a same-build dump `@intCast` a byte-wide word into a narrower int (`integer does not fit`): `std.math.cast`, BadDump; the table's counts sized allocations of 240 GB (an enum's names, a u32 read): `Loader.entries`, each count held to the bytes left by the least an entry takes (a type 1, a name and value 18, a field 6); seed 456, `skip` over a damaged table where a struct is its own field recursed to a stack overflow (a segfault): `max_depth` 256 (a session's types nest about twenty); seed 1835, a same-build enum read with `@fromBackingInt` (`invalid enum value`): `std.enums.fromInt` (`enumFrom`'s rule), BadDump; the restore road's seed 672, an image's list count sized a 10 TB allocation (`Get.slice`): held to the slots the image's bytes hold; and its byte values read with no bound (`readBytesObjectAlloc(.., null)`: 12 EB asked): `walk.most` (the database's length) at each of `Get`'s reads and `Db.Read.open`'s session. Then the counts the fuzz did not reach, by the same rule and a test that fails without it (`integer overflow` in `initEmpty`'s and `skip`'s `bits + 63`): a bitset's count (`Loader.bitCount`, read and passed over; `Get`'s), a slice's count and an array's or a skip's loop held to the bytes LEFT (were the whole dump's, or none: a loop of 2^64 skips); test walk.zig "a bitset's count read back is held to the bytes left, read or passed over, in a dump and an image: never a size that overflows". OPEN, not done here: the image road past seed 1024 reaches xitdb's own reader (seed 1780: `switch on corrupt value` in xitdb `HashMap.init`, a slot's tag byte past its kinds, from `Db.Read.blobs`): a dependency's, for build/patches.zig and a report; a byte dump that loads but means nothing (a live view that is none: a Restore of an old byte-dump file draws it and panics in `Core.view`); references read back as another type (no-panic-1's `typeWord` sites, not reached in 4096 seeds)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | |/
|/|
| |
| |
| |
| |
| | |
an image is decoded, its field named, never walked: merge65's core-test crashed in core/fuzz.zig's own dump fuzz (`index out of bounds: index 4503599627370496, len 64` at core/Text.zig:130, `Text.deinit` slicing `ed_redo[0..ed_redo_len]`, from views.zig `freeView`): a damaged dump was loaded with a length past its buffer, and the core's own deinit panicked (a digest, a copy and every use slice the same way); the layer's new fields moved the dump's layout so the fuzz's seeds reach it now, but the fault is the decoders': each read a `replica.len` pair's length as just a number. THE RULE, ONCE, for every pair of every type (the comptime walk lists them: `T.replica.len`, what the digest's `hash`, `fieldDigests`, the dump writer and rollback.zig already go by): `pastHeld` (the first length of a value past what its buffer holds: a slice's its own length, a fixed array's how many were read back, a dump writing one only as far as its length said, else whole), called where a struct's fields are decoded: `decode` (the tape: BadTape), `Loader.fields` (the byte dump, both of its paths: `heldTo`, BadDump) and `Get.fields` (the image: BadDump), the count read kept by each reader's `elements`/`listInto` (`filled`); the refusal's words name the field (`Text.ed_redo_len says N, past the 64 its buffer holds: refused`) and reach the user: `walk.load` and dump.zig `loadKnowing`/`loadImage` hand a refusal's notes out as they hand out a load's, and replica.zig `fromDump` says them (`the session's dump would not load: BadDump: <field> says ...`; `Replica.made` copies them out of the epoch); TESTS FIRST, each failing with the check out (run: the walk test loads `ring_len = 200`, the replica test panics `index out of bounds: index 7, len 1`): walk.zig "a length past what its buffer holds is refused where it is read back (a tape, a dump, an image), its field named, never walked" (a ring a length cuts and a room a length cuts, each through `encode`/`decode`, `save`/`load` with its length byte set past the array and past what the dump held, and `Put`/`Get`), replica.zig "a join's dump whose length says more than its buffer holds is refused, the field named, never loaded" (a column tag's `nsel` set to 7 in a byte dump's bytes, `fromDump`'s words); the fuzz as merged passes on it; the user's case: a Restore, an Upgrade or a join of a damaged dump is refused in words, the session going on (it ended at the first deinit or digest)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| |/
|
|
|
|
|
| |
(from its session, a far link, a recorded tape) is cut, flipped or hostile, and each read of it is checked, the client diverging (and joining again) in words where it panicked: a record's kind byte (core/tape.zig Tape.next, peek, nextRecord, describe: `@fromBackingInt`: `invalid enum value` at tape.zig:458 on main, the fuzz's client side), a payload cut short after its head (replayUnit, finishInput: `next().?`), a host record under two bytes (finishInput, expectHost: new Tape.hostId), an input's tag (apply), and in core/walk.zig's decode, the tape's decoder for every type: an enum's bytes (new walk.enumFrom: its number held to a name, as std.enums.fromInt holds it), a run of enums copied whole (`named`), a slice's count held to the bytes left before it is allocated (`least`, the fewest bytes encode writes for a type, derived from the same walk); the one generic decoder checked, every type the tape carries is, and every type added; a user could hit it only by a corrupt or hostile peer
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| |
|
|
|
|
|
| |
what one walk cannot hold is listed and tested, and a client refused its own load names the field: the copy, the digest and the dump of the core already come from one walk with one declaration a struct (core/walk.zig `replica`: local, derived and authority fields in none of the three, every other in all three), so a field cannot be in the digest and out of the dump; what escapes that walk is a type that walks itself by hand, a `digest` or a dump of its own (eight reach the core: fs.Namespace, tree.Open.What, the pane's 9P state, Term.State, Kind.Slot, locations.Row, jj.Session, File.Layers), and the moment the two are taken at (the previous change); `walk.handWalked(roots)` lists at comptime every type the walk reaches that walks itself by hand, and replica.zig's `hand_walked` names, for each, the test that joins a client from a dump of a session holding it and checks the load by the welcome's digest: the test of that name fails for a type that walks itself by hand with no line (dropping File.Layers' line: "File.Layers walks itself by hand and no test joins a client over it") and for a line whose type no longer does; jj.Session and File.Layers had none (their tests replay a client from the start): `loadsAsSession` (any test's session, a client joined from its dump, the fields named) ends the jj test that replays Changes, its pins and lanes crossing a join whole; and a join's dump ends with the session's digest a field at a time (tape.digestParts, after the walk with nothing between; `dump.joinParts` reads it; the loader reads its roots and stops before it), so a client whose load is not the session says which field in its words and its log (`fromDump`: "the session's dump loaded as another session: fs differs", a warning line `client N: ...`), the diagnostic build's naming kept in the product, tested by a dump made before a 9P open checked by the digest after it; what this cannot hold: a hand walk's body (the list makes it seen and tested, a reviewer reads the walk), a load's own changes after it reads (Replica.made, loadKnowing's fixups: the roundtrip tests catch them only for the state the tests build), a host call in the join's dump on a road no test session reaches (`error.TurnGivenUp` refuses that join in words), and the dump of a type a test session never holds; its gate (this tree, .scratch/sketch/reorg/pardes-dump-digest/g1, loads 0.6-13.5): IN THE WORKSPACE core-test 922/1082 (160 skipped), shell-test 1124/1127 (3 skipped), each the base's plus the five new tests, addon-test 5/5, term-test 17/17, kitty-test 45/45, process-test 0 of 146 failed, pane-test 182/183, behaviour-test and --replay 275/275, consumer-test; the soak --clients 5 three times: diverged 0, unequal 0, unlisted 0 at 30/80/207 ms, quiet checks all agreeing, the corpus 22 of 22, no leak; daemon.py on Debug and ReleaseSafe: plain 3/3, --clients 3/3, --far, --restore; --upgrade from the installed build (wire 30) 3/3, --upgrade --gui 3/3, between the tree's own builds 3/3 each way; cross-builds 3/3; the frame and perf gate against tree4: 77/77 frames, perfab corpus2x -0.009% (noise 0.021%), 121 counts within 0.1% (largest terminal on all +0.0786%; no key's path changed, no field left the digest); the one-CPU upgrade rows: every run past the rejoin step fault D failed, 28 of 30 whole (the next change)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| |
|
|
|
|
|
| |
the session has: what a step reads that the requests made is the core's state like any other (P30, P35), so the walk sees it: fs leaves Pardes's and Pane's authority lists and the 9P server's own part says so in its types (fs.Namespace: the sockets, mounts, log, the request being served's flags and the rest; pane.State: the event and pty readers' queues and counts, winsize, unannounced; Open: the listener's held read and a stream's last answer; LogOpen whole), so the open records, the writes held to go in as one edit (fs.batch) and each pane's addr, limit, dot truncation, wrsel, joined, nomark, noscroll, lock, run, unmarked, tag truncation and chord are in every dump and in the digest; the digest is cheap by type: a pane's 9P state adds nothing for a pane no script has touched and its fields as one run of bytes for the rest (pane.State.digest), the namespace the opens in use and held writes by their length (Namespace.digest: a 9P body append hashed its whole batch, +0.14% on body-appends), so the frame and perf gate's 121 per-operation counts are within 0.1% of tree2 (largest client-key-down +0.054%; the plain walk of the same state cost client-key-down +0.73%); an open's union is named (Open.What) and digests what a step reads of it (its kind, a run, an event reader's flag, a pager's serial, a port's index), never the text its reader is answered with, which each process makes of its own state (walk.hash takes a tagged union's own digest as it takes a struct's); the opens are taken as far as fs.opens_len (an idle session's none; the scans that read records bound by it, openOf too, and an open lets go of what a rollback left in its record past the length); a session revived from a dump (Restore, an Upgrade, a start from one: dump.loadAndRevive; a closed pane brought back: loadPane) drops the opens and each pane's 9P state, as today, its connections gone (fs.Namespace.forget): a client's join loads alone and keeps them; not the join's dump alone: the tape's dump round trip at a replay's end wants the image to carry what the digest covers; pty.Run's answer cut at its length; the wire version 24, so the semantics word moves 64e89d6b25a84796 -> 18636a639ac075de (it did not move with the walk alone: a base client would have digested other fields than its session; test/daemon.py's WIRE with it, and its upgrade case takes a client of the other side's protocol saying `run the same pardes at both ends`, as its third terminal already did); the eleven tests of the change before pass; a join's dump (the probe, Debug): idle 63258 -> 64612 bytes, 50 opens held 63270 -> 66744; the image idle 233426 -> 237001, 50 opens 233738 -> 295089; tui core-test 867/1022 (155 skipped), shell-test 1062/1065, behaviour-test 275/275 and --replay 275/275, replicas --clients 5 diverged 0/0/0, unequal 0, unlisted stops 0, corpus 22 of 22, no leak (load 30-40, before the digests were made cheap; the whole gate on the change after)
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
|