| Commit message (Collapse) | Author | Age |
| ... | |
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
(the snapshot made, decoded, the old emulator let go, the new one installed with its stream, its sequence in flight and pardes's parts), returning the snapshot's hash: what makes two emulators with other histories of pages equal again, since ghostty prunes its history a page at a time against a limit in bytes and a snapshot does not say how its rows were cut into pages (reports/pardes-term-bytes.md, sections 1 and 2; the brief's step 1b; an Ops entry, the core's Term.reload); the sizing's join check as a test of the tree: plain text, a build's log and heavy colour and links (a truecolour a cell, a link a word, marks piled on letters) past a 1 MiB scrollback at 120x40, cut at random read boundaries: with every side reloaded (the session, a replica there from the start, a joiner loaded from the session's snapshot after) the same snapshot bytes, digest, marks and replies after more bytes and again after two reflows, 6 of 6 joins; without the reload the heavy joiner is another terminal, 2 of 2 (the pages pruned otherwise); term-test 17/17, core-test 848/991 (143 skipped), shell-test 1027/1030
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | | |/
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
ended (ghostty's continuation, up to 64 KiB: a CSI, an OSC, a UTF-8 codepoint, a kitty graphics chunk), its snapshot carries it and a load feeds it again, so a snapshot may be taken between any two reads (docs: reports/pardes-term-bytes.md, section 1; the brief's step 1a): ghostty promises it for its standard handler only, and a test pins it over pardes's MarkedHandler, a cut at every byte of a CSI, a link, pardes's own OSC 133 marks, a UTF-8 codepoint, a kitty graphics payload and three device queries (on the tree before: the first cut, inside the CSI, came to another terminal); the parse's cost with tracking on, pardes-perf --terminal-mib 8 and 32, instructions:u, three runs each, off and on alternated in one tree: 3,924.06M -> 3,924.09M and 13,202.27M -> 13,202.58M (+0.001%, +0.002%); term-test 16/16
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
units) while a key of its own is applied on top is let go free at the next unit that leaves nothing applied (the key's own unit, next in the stream), not put back with the 32 units replayed and the key applied again; with inputs on top all the while it is put back at twice the bound, so a rollback still replays a bounded list: before the session sends its pump's unit (it moved nothing, kept as neutral) ahead of every client key, so two units are kept a key and whether the 32nd is the pump's (the whole replay, about 50 to 100M instructions on the 3.2 MB file) or the key's own (free) is the parity the client's first units set, which made a near client's `edit` key 14.3 or 16.7 to 18.8M a block of 20 and `key-down` 3.8 or 8.8M by chance of the run, in either order of the send (`klmtkkpz` did not cause it: base against base with the order turned back, 6 runs each, edit medians 17.05 and 17.06M, 4 of 12 blocks over 1.05 in both); the kit (pardes-perf-sendfirst), base against this, 6 runs alternated, 12 blocks each, ReleaseFast, load 16 to 47: client edit 16.88M median (14.28 to 18.78, 5 blocks over 1.05) to 14.28M (14.26 to 14.30, none), key-down 3.83M (3.81 to 8.78, 2 over) to 3.84M (3.81 to 3.99, none), type 11.24M (11.00 to 12.88, 1 over) to 11.15M (11.01 to 11.29, none), rebases 1 to 5 a run to 0, the own path and the session unchanged; a test through the replica's surface (hand-ordered: a pump unit then the key's unit, 31 keys) fails before (one whole replay) and passes; tui core-test 849/992 (143 skipped), shell-test 1028/1031, pane-test 183/184, term-test 15/15, kitty-test 45/45, behaviour-test 275/275 and --replay 275/275
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | |/
| | |
| | |
| | |
| | |
| | |
| | | |
copies and checks, and `rebases` counts only a rebase that puts the copy back under inputs applied on top (the kept units replayed, the inputs applied again), not the free let-go with nothing applied: the three counters that name a heavy block of the client path were kept and never printed (pardes-perf-plan section 1 repair 3); no behaviour changes
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
beside it (the start design's step 2, pardes-build-options change 2): `core.module` makes the set's options from the build's `ShellConfig` and the set's `Core` (the platform, now a `Core` field in place of a module handed in; the grammar set; the terminal; pardes-isolate's `isolated`; the addons compiled in and the pdf one with them, `builtin_addons` and `builtin_pdf`; tracy; the workspace tag; embedded sources; the library's `lib`), one module shared by the set's five as `pardes_config` was, and `build_info` (version, commit, change, built, deps) made once in `assemble` and given to every set; the three one-value modules made in both values (`term_options`, `pardes_isolation`, `builtin_addons`), `shellOptions`, the six `Parts` fields that held them, `Parts.tracy` and `Parts.embed_sources` (the `ShellConfig` in `Parts` holds both) and the assembly's two options (`opts`, `gui_opts`) go; the library's `pardes-syntax` and the editor (the library's and hxlib's) get `pardes_options` with no terminal, the editor's with `lib` as before; the sources' imports follow, one identifier a line (abi/wire.zig and core/Output.zig import both, the hash's and the Build pane's lines reading the version, commit and dependencies from `build_info`); test programs see it as before, through the core module's import table (pane-test, behaviour-test); `pardes version`'s semantics line did not move on any product (38b5ae573b965550; d41689a1f97605b8 with -Dtree-sitter=minimal); build.zig and build/ 2,992 -> 2,960 lines (3,005 at the base); every shape configures and builds as on the base, pardes-isolate and -Dtree-sitter=disabled failing with the base's same errors (pardes-isolate reaching them through its own options module); tui core-test 848/991 (143 skipped), shell-test 1027/1030, pane-test 183/184, behaviour-test 275/275 (and -- --replay), term-test 15/15, kitty-test 45/45, lib-test (11/11 in the consumer), hxlib 538 cases 0 mismatches, process-test 2 of 144 failed (lspcomplete and lspcompletemoved, the base's), gui unit-test 1625/1629 (the perf check's BaselineHarnessMismatch, the base's); the test names of every suite equal the base's (ledger); the frame and perf gate (gpu/bo-s2 against tree1) PASS: 77/77 frames byte-identical in Debug, the alternated window corpus2x -0.104% (pictures identical in all 10 runs), the 97 per-operation counts within 0.1% (largest image-frame +0.0345%; against the coordinator's pardes-merge22 gate m22-g, 90 within 5 ppm, deep-sel 8-10 ppm, image-frame up to 85 ppm, its known noise); load 5-25 on 16 cores
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | |/
| |
| |
| |
| |
| |
| | |
pardes-build-options change 1): `ShellConfig.prebuilt_shaders`, set at build.zig:147 and read nowhere (the `-Dprebuilt-shaders` flag stays: gui.make hands it to sketchbook and the perf identity names it); `tools.add` and `core.assemble` handed the grammar set and -Dtracy beside the `shell_cfg` that holds them (`ShellConfig.tracy` is the checkout's path now, so Parts and the perf identity read it there); `syntax_zig_grammar`, always equal to `syntax_highlighting`; and the four `syntax_*` bools as the one enum they said four ways, `grammars` (`-Dtree-sitter`'s `TreeSitterGrammars`), read by syntax.zig, Output.zig's Build pane and three tests, with abi/wire.zig hashing it as the four words it was hashed as, so `pardes version`'s semantics line did not move on any product (38b5ae573b965550 on tui, gui, the bare build's two, both statics, FreeBSD; d41689a1f97605b8 with -Dtree-sitter=minimal, as on the base); build.zig and build/ 3,005 -> 2,992 lines; every shape configures (12 configurations) and builds as on the base (tui, gui, bare, the macOS library for Linux and aarch64-macos, static on musl and on the window, FreeBSD, -Dtree-sitter=minimal), and the two that fail on the base fail with the same errors (pardes-isolate: core/builtins.zig:510, core/ninep/ctl.zig:1298; -Dtree-sitter=disabled: core/indent.zig:48); tui core-test 848/991 (143 skipped), shell-test 1027/1030, pane-test 183/184, behaviour-test 275/275 (and -- --replay), term-test 15/15, kitty-test 45/45, lib-test, hxlib 538 cases 0 mismatches, process-test 3 of 144 failed (lspcomplete and lspcompletemoved, the base's, and headersweep-restored, on the flaky list: passed alone, 1364 ms), gui unit-test 1625/1629 (the perf check's BaselineHarnessMismatch, the base's); the test names of every suite equal the base's (ledger); load 15-45 on 16 cores
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| |\ \
| | |
| | |
| | |
| | |
| | |
| | | |
pardes-far-faults (a refocus that no longer asks the session's host about a newer build; a drag in a kind's pane grown too short; a draw's token that no rollback takes back; a text's declarations dumped so a joined client's query reads what the session's does; a search that goes on at once on a far client; two tests of what cannot happen) and pardes-merge24, merged without a textual conflict; the coordinator's gate in the ledger (reorg/merge25)
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
test that a client whose environment differs replays the session's stamped text (no fix: the fault does not happen on this tree): `Messages.Message.noTime` is called by `clockText` alone, whose callers are `timeOfDay`, called by `stamp` alone, which only hosts call (dev/file_watch, dev/host_io's save and dumped themes, tui's, gui's and macos's lsp status and reloads: between steps, or inside the host's own entry during one, where the text then enters the tape as the setMessage the host makes, a nested input), and tape.zig's `guessed` for a `[8]u8` clock read, a branch no site instantiates (the clock sites return i64: the message's monotonic ms); dev/lsp's `hideTime` is a host's too; so the knob needs no option handed in: root.zig's machine_lines reason for Messages.zig, which said a step reads it, and noTime's doc say what is so; found dead, not changed: the `[8]u8` guess in tape.zig's `guessed` and with it `Guess.gmtoff`, the replica's `gmtoff()` and the welcome's `gmtoff` (abi/wire.zig), there for a message time of day guessed in a speculation, which no step reads any more; the test `a far client's replay of a message its session's host stamped takes the session's text, whatever its own PARDES_NOTIME says` (end of core/replica.zig: the session's host stamps a yank's message with PARDES_NOTIME set, the client replays it with it unset) passes on the base; gates on the seven together (the stack's top, load 18 to 50 beside them): tui core-test 855/999 (144 skipped), shell-test 1035/1038, pane-test 183/184, term-test 15/15, kitty-test 45/45, behaviour-test 275/275 and --replay 20 seeds 0 failures, process-test 3 of 144 (lspcomplete and lspcompletemoved, the base's, and headersweep-restored, which passes alone), gui unit-test 1633/1637 with the base's BaselineHarnessMismatch; replicas --clients 5 and --seeds 8: diverged 0, unequal 0, deltas wrong 0, quiet checks differed 0, unlisted stops 0, corpus 22 of 22, no leak report; the walk over every word and key passes; frame and perf gate against tree1 (farfaults): frames 77/77 byte-identical in Debug, unit-test 1633/1637, perfab corpus2x -0.087% (noise 0.092%, bar 0.4%, pictures identical), perfops 97 counts within 0.1% (largest +0.0329%)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
once, and a host that runs one on its loop hands its rows in as inputs: `search` was on tape.zig's keeps_stopping because a host with no worker (tui's and gui's `search` before their threads, and Stream.start when no worker can be had) runs the search in its entry and writes the rows into the core outside any record (Stream.runHere's `receive`); but then no client had those rows, stopped or not (a replay answers the entry from the tape and runs no host), so the stop protected nothing and cost every `/` in a file (its parse asked of the session's host) and every query whose rows ask colours a round trip; whether the session has the entry at all a client already knows (the host's mask, told at the join: a client's tape offers only the session's entries), and with no entry the search runs in the step under `tape.site(.search)`, which still stops; the same host also let go a paint (`rows_paint`, digested) or a parse it had no worker for by writing the core in its entry; now `runHere` takes `in_call` (comptime): from a host's entry each batch goes in as `p.update(.{ .search = b })`, a nested input the tape records and every replica replays, as a worker's batches are, and a paint it cannot run is let go by an input too (a worker's answer of nothing); Stream.start, when no worker can be had, does the same for a paint, a parse (an answer that found none) and a search (tui's and gui's entries and Stream.start pass true; Stream.step and Effect's perform, in a step, false); `search` leaves keeps_stopping, and may_wait's row `Search *` at `search` goes (the walk would call it stale); the test `a far client's step that asks for a search goes on at once, and a session whose host searches on its loop gives every client its rows` (end of core/replica.zig: a `/` in a file, then a Grep the session's loop runs at its ticks) failed on the base with `expected 0, found 1` (stopped), and with the host writing as before (`runHere(.., false)` in its entry) the client's digest differed after the `/` (the paint the host let go) and never had the Grep's rows; it passes; a user could hit the second only with a window or tty session whose worker could not be had (std.Io's concurrency refused) while a client was attached; gates on the seven together (the stack's top, load 18 to 50 beside them): tui core-test 855/999 (144 skipped), shell-test 1035/1038, pane-test 183/184, term-test 15/15, kitty-test 45/45, behaviour-test 275/275 and --replay 20 seeds 0 failures, process-test 3 of 144 (lspcomplete and lspcompletemoved, the base's, and headersweep-restored, which passes alone), gui unit-test 1633/1637 with the base's BaselineHarnessMismatch; replicas --clients 5 and --seeds 8: diverged 0, unequal 0, deltas wrong 0, quiet checks differed 0, unlisted stops 0, corpus 22 of 22, no leak report; the walk over every word and key passes; frame and perf gate against tree1 (farfaults): frames 77/77 byte-identical in Debug, unit-test 1633/1637, perfab corpus2x -0.087% (noise 0.092%, bar 0.4%, pictures identical), perfops 97 counts within 0.1% (largest +0.0329%)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
dumped and digested, the declarations parsed again from the text at the load), and a query's rows read no others, so a client joined from a dump makes a `/` query's rows as its session does: a `/` (or Symbols) in a file groups its rows under the declarations they are in once a parse of the text exists (Query.ownerDecls), the pane's `context` (sticky headers', a worker's answer, sync's) or the locations cache's (a Diff's); both were kept out of the dump as made again from the text, which a worker's answer is not (an input a client joined since never saw), so a client joined after the session's worker parsed a file found none, and its replay of the session's next row in that query asked for a parse the session never asked: `diverged: the core called search where the tape has a host` (a real session's: tty and window run parses on workers; a user with a far client who had typed a `/` in a file before it joined, then any key in that query, saw the client join again); now `File.State.context` leaves File.State's `.derived`: `ContextCache.revision` is dumped and digested, its `declarations` derived and its `allocator` local (root.zig's kept_out says why), and a load (dump.zig's loadKnowing and loadImage) parses the declarations again from the text, with the syntax allocator, where the dumped revision is the text's (`ContextCache.reload`): never loaded with the core's allocator (dump.zig's test of that, which pinned that the context was not restored at all, now pins it parsed again; a first try that dumped the declarations themselves crashed a Restore's rollback in `owned cwd restore ...`), and `ownerDecls` takes the pane's context alone (the cache's loop and the never-used `small` parse here deleted: a Diff's parse no longer groups a query's rows, the worker's does); the test `a client joined from a dump makes a `/` query's rows as the session does, though only the session has the owner's declarations from a worker's parse` (end of core/replica.zig, a host whose parses run on a worker as a tty's, their batches the session's inputs) failed on the base with that divergence and passes; Places' rail ticks: by reading `gen` moves wherever the hits do (clear, feed, shift, restart, a search's new hits, the current one), and the test `a client joined from a dump lands a click on a rail's tick as the session does, the session's ticks drawn before the places changed` (the session draws its ticks, the client changes the places and clicks every row of the rail) passes on the base; it shows a fair misprediction of the key that changed the places, 3 runs in 4: a step's places are a frame's time of search (`tape.over`), and the session's drawn caches find more in it than a cold client; gates on the seven together (the stack's top, load 18 to 50 beside them): tui core-test 855/999 (144 skipped), shell-test 1035/1038, pane-test 183/184, term-test 15/15, kitty-test 45/45, behaviour-test 275/275 and --replay 20 seeds 0 failures, process-test 3 of 144 (lspcomplete and lspcompletemoved, the base's, and headersweep-restored, which passes alone), gui unit-test 1633/1637 with the base's BaselineHarnessMismatch; replicas --clients 5 and --seeds 8: diverged 0, unequal 0, deltas wrong 0, quiet checks differed 0, unlisted stops 0, corpus 22 of 22, no leak report; the walk over every word and key passes; frame and perf gate against tree1 (farfaults): frames 77/77 byte-identical in Debug, unit-test 1633/1637, perfab corpus2x -0.087% (noise 0.092%, bar 0.4%, pictures identical), perfops 97 counts within 0.1% (largest +0.0329%)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
cannot leave a client unlike its session, and why (no fix: the fault does not happen): Core.reportFocus skips the focus write in a client's speculation, and on the session the write parks behind what is already parked for the pane (`pending_write`, digested), so a client confirmed on the fast path would lack those bytes; but bytes are parked between steps only by a step that does not drain the queue (a 9P write, serveFs, past the 4096 effects the ring holds: every pump drains it whole), that step reaches the client as the session's unit, so the client holds the same queue, and its own step settles as the session's does (replica.speculate: update, then step, which drains it): the parked write into the shell stops it at `pty_write`, and it waits for the session's step, focus report and all; the test `a far client's click into a shell whose queue is backed up: ...` (end of core/replica.zig, shell-test: a 9P write of 1 MiB + 100 bytes into the shell, then the client's click) passes on the base: the click stops at pty_write alone, the program gets the parked bytes then ESC [ I, mispredicted 0, the client's digest the session's; gates on the seven together (the stack's top, load 18 to 50 beside them): tui core-test 855/999 (144 skipped), shell-test 1035/1038, pane-test 183/184, term-test 15/15, kitty-test 45/45, behaviour-test 275/275 and --replay 20 seeds 0 failures, process-test 3 of 144 (lspcomplete and lspcompletemoved, the base's, and headersweep-restored, which passes alone), gui unit-test 1633/1637 with the base's BaselineHarnessMismatch; replicas --clients 5 and --seeds 8: diverged 0, unequal 0, deltas wrong 0, quiet checks differed 0, unlisted stops 0, corpus 22 of 22, no leak report; the walk over every word and key passes; frame and perf gate against tree1 (farfaults): frames 77/77 byte-identical in Debug, unit-test 1633/1637, perfab corpus2x -0.087% (noise 0.092%, bar 0.4%, pictures identical), perfops 97 counts within 0.1% (largest +0.0329%)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
never its slot's: the token api.draw gives was the slot's `draws` (core/Kind.zig, the `.draw` entry of the api), which the rollback copy holds with the slot, so a frame drawn under a speculation that is rolled back asked token T, the copy put the count back, and the next frame's draw, of the state the replay came to, was given T again; both answers come to the kind's job_done as T, in the order its workers finish (`deliver` matches a job by core, pane, serial, gen and ops, not by token), and a kind with one draw outstanding takes the first and drops the second: it showed the discarded state's picture while asking nothing more, until its state moved again; the count is now `drawn`, beside `ready` (this process's draws), on root.zig's allowed_vars with why, and the slot's field and its kept_out entry are gone; the test `a far client's frame drawn under a speculation that rolls back asks a picture whose token the next draw is never given again: ...` (end of core/replica.zig: a plain kind drawing its count from its paint, a frontend's workers held so the discarded picture lands first) failed on the base with `expected 3, found 1` (the picture of 1 shown, its count 3) and passes; a user could not have hit it with the kinds in the tree (image draws in its open, from the file's bytes, the same picture whichever answer comes, and ignores the token; the pdf kind is not plain, so a client runs none of its code), only with a plain kind that draws from its paint and keeps its last token; gates on the seven together (the stack's top, load 18 to 50 beside them): tui core-test 855/999 (144 skipped), shell-test 1035/1038, pane-test 183/184, term-test 15/15, kitty-test 45/45, behaviour-test 275/275 and --replay 20 seeds 0 failures, process-test 3 of 144 (lspcomplete and lspcompletemoved, the base's, and headersweep-restored, which passes alone), gui unit-test 1633/1637 with the base's BaselineHarnessMismatch; replicas --clients 5 and --seeds 8: diverged 0, unequal 0, deltas wrong 0, quiet checks differed 0, unlisted stops 0, corpus 22 of 22, no leak report; the walk over every word and key passes; frame and perf gate against tree1 (farfaults): frames 77/77 byte-identical in Debug, unit-test 1633/1637, perfab corpus2x -0.087% (noise 0.092%, bar 0.4%, pictures identical), perfops 97 counts within 0.1% (largest +0.0329%)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
short (or narrow) for a cell of body, is told its body's edge instead of tripping std.math.clamp's assertion: a press on a kind's body grabs it (`kind_grab`), and the drag and release after it are the kind's wherever they land, so `kindMouse` (core/mouse.zig) clamped the pointer into the body's range, which a step between the press and the drag (a resize, a pane put above it) can leave empty: `clamp(m.row, top, r.y + r.h -| 1)` with `top > r.y + r.h - 1` (the soak's one `lo <= hi` assertion, in a client's speculation at rtt 207: its typists press at random, resize the window to 16 rows and open panes; the same in the session, which a user could hit with a mouse kind's pane (a PDF) and a resize while a button is held, in Debug a panic, in ReleaseFast a wrong row); now `@min(m.row -| top, (r.y + r.h) -| top -| 1)` and the same for the column: equal to the clamp where the range has a cell, 0 where it has none; the test `a far client's drag in a kind's pane it grabbed, the pane since too short for a row of body: ...` (end of core/replica.zig, with a plain kind that takes the mouse and `runsHere`, its code in the client as a client with its library runs it) aborted on the base at core/mouse.zig's clamp (the press, a resize to 4 rows leaving the pane its tag alone, the drag) and passes: applied at once, confirmed, the client's digest the session's; gates on the seven together (the stack's top, load 18 to 50 beside them): tui core-test 855/999 (144 skipped), shell-test 1035/1038, pane-test 183/184, term-test 15/15, kitty-test 45/45, behaviour-test 275/275 and --replay 20 seeds 0 failures, process-test 3 of 144 (lspcomplete and lspcompletemoved, the base's, and headersweep-restored, which passes alone), gui unit-test 1633/1637 with the base's BaselineHarnessMismatch; replicas --clients 5 and --seeds 8: diverged 0, unequal 0, deltas wrong 0, quiet checks differed 0, unlisted stops 0, corpus 22 of 22, no leak report; the walk over every word and key passes; frame and perf gate against tree1 (farfaults): frames 77/77 byte-identical in Debug, unit-test 1633/1637, perfab corpus2x -0.087% (noise 0.092%, bar 0.4%, pictures identical), perfops 97 counts within 0.1% (largest +0.0329%)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | |/
| |
| |
| |
| |
| |
| | |
host whether a newer build is installed: the core's focus step called the Host's `newer_build` (core/Core.zig, the `.focus` branch of updateInner), an entry that answers, so a far client's refocus stopped and its first keys after it waited a round trip, for a question about the SESSION's binary that the client's window has nothing to do with (and a client's own binary nobody looked at: tui's entry said false for a client); each process's build is now its own frontend's to look at, at its own focus-in, between steps: the tty session calls `upgrade.noticeNewer` as the window session already did (gui.zig), its line an input (`setMessage`, taped) that its clients replay; a client's refocus asks no one; the entry `newer_build` is gone from dev/Host.zig and tui.zig, and its row "focus lost and found" from may_wait (the walk would now call it stale); the test `a far client's window found again is instant: ...` (end of core/replica.zig) failed on the base with `expected 1, found 0` (applied: the refocus stopped) and passes; the walk over every word and key passes in core-test and shell-test; gates on the seven together (the stack's top, load 18 to 50 beside them): tui core-test 855/999 (144 skipped), shell-test 1035/1038, pane-test 183/184, term-test 15/15, kitty-test 45/45, behaviour-test 275/275 and --replay 20 seeds 0 failures, process-test 3 of 144 (lspcomplete and lspcompletemoved, the base's, and headersweep-restored, which passes alone), gui unit-test 1633/1637 with the base's BaselineHarnessMismatch; replicas --clients 5 and --seeds 8: diverged 0, unequal 0, deltas wrong 0, quiet checks differed 0, unlisted stops 0, corpus 22 of 22, no leak report; the walk over every word and key passes; frame and perf gate against tree1 (farfaults): frames 77/77 byte-identical in Debug, unit-test 1633/1637, perfab corpus2x -0.087% (noise 0.092%, bar 0.4%, pictures identical), perfops 97 counts within 0.1% (largest +0.0329%)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| |\ \
| | |
| | |
| | |
| | |
| | |
| | | |
tests: pardes-renames (config.Settings, macos.Callbacks, core/ninep/harness.zig, Pane.docked_to and the word Undock) and pardes-merge23; one conflict, in core/CHANGELOG.md, where both sides added Unreleased entries: both kept; no old name left in the tree; tui core-test 848/991 (143 skipped), shell-test 1027/1030, the window builds
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
`Pane.docked_to`, and the tag word that lets it go is `Undock`, no longer `attached_to` and `Unattach` (P18 and P28, the user's rulings: *attach* is a client joining a session now; `Undock` confirmed; no alias, so `Unattach` is an unknown word after this change): the field `attached_to` on 24 lines of seven files (core/panes.zig's Pane field and its one use; views.zig's PaneView field and its name in `pane_fields`; dump.zig, Handover.zig, layout.zig, Query.zig, builtins.zig) and docs/next-daemon.md's mention; the builtin `Unattach` (its struct in core/builtins.zig with its help line and its refusal, "Undock: not docked to a pane"; its null key in core/config.zig; the frozen query pane's tag tail in core/tagline.zig with its comment; layout.zig's test that runs it; Query.zig's comment, with its two lines' "attached"/"unattached" where they mean docked); the builtin lists docs/typ/builtins-tui.json and builtins-gui.json (the line `zig build builtins-json` writes, checked byte for byte against the generator for both platforms); the one line in the changelog's Unreleased; docs/search-proto-converge.md's three mentions; the seven goldens that show a frozen query pane's tag (find, fsearch, grep, lookrange, lsp-client, lsprelpath, stepgrain: nine lines, each `Save Unattach Del` -> `Save Undock Del` and nothing else, edited by hand and passing as they are, not regenerated); the other prose "attach"/"attachment" meaning docked and the functions `attachFrom` and `testAttachment` stay (not ruled; listed in the report); a dump written before this change restores its docked panes undocked, with a note (walk.load lets an unknown field go); the semantics word does not move (38b5ae573b965550 before and after: the tape's shape names neither the builtin nor the field); tui core-test 848/991 (143 skipped), shell-test 1027/1030, pane-test 183/184, term-test 15/15, kitty-test 45/45, behaviour-test 275/275 (--replay 20 seeds, 0 failures), process-test 2 of 144 failed (lspcomplete and lspcompletemoved, the base's; msg's cursor column flaked once and passed again in the run), the soak (--clients 5) diverged 0, unequal 0, deltas wrong 0, quiet checks 618/0, 835/0, 771/0, stops unlisted 0, the corpus through a client 22 scenes each frame the same, no leak; gui unit-test 1625/1629 failing only the perf check's BaselineHarnessMismatch (as the base); the macOS library for Linux and aarch64-macos and the FreeBSD cross-build rc 0; the cheatsheet (one page), the book (77 pages) and the site build, Undock in the glossary; the frame and perf gate PASS (77/77 frames byte-identical in Debug, the alternated window corpus2x +0.041% against a 0.4% threshold, the 97 per-operation counts within 0.1%, the largest +0.0197%); under a load of 4 to 37
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
longer core/ninep/testing.zig (P18, the user's ruling on the tree step's name collisions: the file's name collided with the future `core.testing`): the file moved whole in this change, so its history follows it (no line of it changed), and its 27 imports follow, nine `@import("testing.zig")` in core/ninep (addr, cols, ctl, events, pane, pty, screen, sources, tree) and 18 `@import("ninep/testing.zig")` in core (Addon, Core three, Dir, Effect, Query, dump three, edit_cmd, fs, keys, look two, mouse, sam_edit, tape), with the two design notes naming it (docs/next-tests.md, docs/next-terminal.md); the build and the root's test lists never named it; a rename only, nothing else on any line; tui core-test 848/991 (143 skipped), shell-test 1027/1030, the window builds (`install -Dplatform=gui`), the macOS library for Linux and aarch64-macos and the FreeBSD cross-build rc 0, under a load of 22 to 60
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | |/
| |
| |
| |
| |
| |
| | |
`config.Settings`, no longer `config.Runtime` (P18, the user's ruling on the tree step's name collisions: the type's name collided with the directory `runtime/`, and the core's field of that type is already `settings`): the type on 17 lines of core/config.zig (its declaration, its methods' receivers, its tests, the comment naming it), `config.Settings` on 50 lines of eleven other files (core/Core.zig, Output.zig, builtins.zig, builtins_json.zig, exec.zig, ninep/ctl.zig, surface.zig; dev/gui/gui.zig 598, 5860, 5909; dev/jump_trail.zig's comment; runtime/main.zig 756; test/output.zig 552) and docs/next-winmode.md's one mention; a rename only, nothing else on any line; the semantics hash does not move (a type's name is not in the tape's shape); tui core-test 848/991 (143 skipped), shell-test 1027/1030, gui unit-test 1625/1629 failing only the perf check's BaselineHarnessMismatch (as the base), the macOS library for Linux and aarch64-macos and the FreeBSD cross-build rc 0, under a load of 6 to 42
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| |\ \
| | |
| | |
| | |
| | |
| | |
| | | |
the load or the clock's second: pardes-docs (six changes of documents and the changelog) and pardes-test-robust (the corpus's click in one write, the two clock-second core tests, winch, headersweep and grep waiting on what they need, and the language server's false "still loading" message), merged without a conflict on pardes-merge22; tui core-test 848/991 (143 skipped), shell-test 1027/1030
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | |/
| |
| |
| |
| |
| |
| | |
second compare what was done, not when, and a failed rollback test no longer poisons the next: an edit stamps its text's mtime with the second (core/File.zig:782, CLOCK_REALTIME through tape.value(.mtime)), so rollback's "a copy put back..." (rollback.zig:599) and Places' "...loaded from its dump..." (Places.zig:893), each comparing whole-core digests of one edit made twice a moment apart, failed whenever a second turned between them (reproduced at will with an LD_PRELOAD that makes each CLOCK_REALTIME read a second later: 1 of 1 each; plainly 0 of 50 and 0 of 104 started 5-60 ms before a second turned); no clock can be handed in there (a tape's stamp answers only inside a step of a stepping tape, tape.zig:814, and Places' edit is no step), so each test sets the second edit's mtime to the first's before comparing, as draw.zig's twin test leaves mtime out by name; and the failed rollback test left syntax.held_trees pointing into its dead Epoch (Epoch.begin sets it, only end puts it back), so the next test ("a text written in place...") panicked in syntax.parseTree: Epoch.deinit now lets go of a hold that is its own (+3, product code no user could reach: an epoch dies held only in a failed test); with the shim the rollback file passes 14/14 and Places' 8/8, 50 runs each plain and shimmed 0 failures (load 17-18); tui core-test 848/991 (143 skipped), the base's
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| |/
|
|
|
|
|
| |
Unreleased: what a client applies at once and what waits (layout beside a shell, Del, Zerox, the clipboard, ClipPaste, a Theme after a ThemeFile, an addon's job, a click beside a shell that asked for focus events), a client's clipboard and links its own machine's, n and N in a kind's pane, the session's ~, shell, directory and fonts on a client, an idle client silent, an addon load no longer taken for a crash, a search pattern cut short (a{, fn main() {), the divergences a frame made (a notice's chip, a big markdown text's tables, read whole at open), and the crashes and the leak the rollback and the real loops found; and the Unreleased entries' src/ paths made this tree's (core/, dev/tui/, abi/); the cheatsheet, the book and the site build (zig build cheatsheet, book, site, -Dplatform=tui, to a scratch prefix), core-test's drift test (docs/typ names only words, keys and default tags that exist) passes, and every path, identifier and line cited in the added lines exists on pardes-merge22 (the checker in .scratch/sketch/reorg/pardes-docs-arch/check.py: 454 ok, 0 bad); no code changed, so the suites and the corpus were not run
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| |\
| |
| |
| |
| |
| |
| | |
regular-expression fixes and the fixes the real loops asked for: pardes-ids (Pane.Id and View.Id through the entries, the events, the effects, the Host table and the device messages) and pardes-merge21, merged without a textual conflict; one call site written since on the old type follows (core/draw.zig: the twin test's file_changed event, .pane = .at(0)); tui core-test 848/991 (143 skipped), shell-test 1027/1030, the window builds; gates in the coordinator's ledger
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | |
| |
| |
| |
| |
| |
| | |
pardes-ids change 3): `Pane.Id` in Event's six variants that carry a pane (output, eof, exited, file_changed, addon, job), in the fourteen effects that do (spawn, write, resize_pty, signal_pty, close_pty, start, save_file, save_text, lsp, watch, dump_themes, detach, addon, job), in the fourteen Host functions that take one (dev/Host.zig: adopt, upgrade, spawn, pty_write, pty_resize, pty_signal, close_pty, tty_taken, fg_name, kill_job, write_file, watch_file, dump_themes, job; tape.zig's Wrap follows with no edit), in the device messages that carry one into the core (the inbox's output and eof and the five reader functions that make them, dev/Lsp.zig's Request, host_io's Adoption and Adoptions.take, which hold what adoptShell answered); `View.Id` in abi/wire.zig's welcome.view (its bytes on the wire unchanged: one byte, hand-encoded, `.at(takeByte())`/`writeByte(view.index())`); every producer converts at its own line (`.pane = .at(id)`, a script that refuses any path outside the workspace, `fields.py`), every consumer where it indexes or compares (`o.pane.index()`), every Host implementer at its own first line (`fn spawn(ctx, id: pardes.Pane.Id, ..) { const pane = id.index(); ..}`: the terminal's 14, the window's 14, the Mac's 10, and the tests' hosts), and an id that went integer and back is passed through whole (`s.core.readerFailed(e.pane, err)`); the compiler caught no pane's slot passed as a view's or the reverse, only integers meeting the type; kept integers on purpose: KindJob.pane (core/Kind.zig, another agent's, reads it four times; converted at KindJob's and Effect's lines), the Watch table (file_watch: its last slot is the theme's, no pane), the hello's view and the replica's Peer/Joined/Replica views (core/replica.zig, another agent's), the C ABI's `pardes_watch_changed(uint8_t pane)` (abi/pardes.h unchanged; runtime/macos.zig converts at its Host functions); in files another agent is in, each conversion on the line that was there: core/Kind.zig 2 lines, core/Addon.zig 4, core/replica.zig 31 (the welcome's view, 3 test hosts, test literals), test/replicas.zig 12 (4 host functions with their first lines, 1 signature, the welcome's view, 5 literals); the tape's shape moves (Event is update's input), so the semantics word moves, c47ecf638b3f4b9f -> 38b5ae573b965550; test/perf.zig follows on 6 lines its Event and effect literals forced, so its harness id moves, be7cc504010471bc -> 1ed95030eb768eae (unit-test's perf check was BaselineHarnessMismatch already); 607 lines added, 562 deleted in 48 files. Gate (load 4 to 8): tui core-test 841/984 (143 skipped), shell-test 1020/1023, term-test 15/15, pane-test 183/184, kitty-test 45/45, behaviour-test 275/275 and --replay 20 seeds of 70 steps, 0 failures, process-test lspcomplete and lspcompletemoved (the base's; hscroll failed once and passed on the runner's retry), gui unit-test 1618/1622 (BaselineHarnessMismatch, the base's); replicas --clients 5 (TMPDIR /tmp/claude-1000/ids): diverged 0, unequal 0 at rtt 30, 80, 207, deltas checked/wrong 1811/0, 1838/0, 1660/0, quiet checks 567/0, 650/0, 655/0, stops not on may_wait 0 (corpus through a client fails at step 21 as on the base with that TMPDIR); daemon.py plain, --far, --games, --window-clients, --upgrade both ways against pardes-tree's base prefix pass (the semantics words differ: the upgrade carries the session by its dump); test/cross_replay.py (tui records, gui replays): 27 digests agree in each of three replicas; rollback-bench runs; the macOS library for Linux and aarch64-macos and the FreeBSD cross-build build; frames (gpu/ids-3 against tree1) 77/77 byte-identical in Debug, unit-test 1618/1622 there, perfab corpus2x -0.021% (session noise 0.036%, threshold 0.4%), pictures identical in all 10 runs, perfops 97 counts within 0.1% (largest image-frame on longline +0.0231%), key-down on medium 10,040,108 -> 10,039,990 an operation (-0.0012%), render on medium 11,455,765 -> 11,455,683 (-0.0007%), terminal on all +0.0030%
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | |
| |
| |
| |
| |
| |
| | |
pardes-ids change 2): a pane's slot is `Pane.Id` in the twelve entries that took it, six as `usize` (setCwd, acknowledgeShell, setMessage, setStatus, reportError, noteLateFailure) and six as `u8` (readerFailed, shellFailed, restartFailed, saveFailed, reloadWatchedFile, File.deleted), and in what adoptShell answers (`?Pane.Id`); a view's slot is `View.Id` in closeView, leaveView, awayView, rejoinView and the hand-written toView (its `to_view` variant is `Pardes.View.Id` now, and its replay arm unchanged) and in what openView answers (`?View.Id`); the tape's other variants follow their inners' types with no edit (`Args`); each inner converts where its body indexes (`id.index()`), passes the id itself to another entry, and the core's own code stays integers; every caller converts at its own line, `p.reportError(.at(id), ..)` (the decl literal of the parameter's type), 514 calls in 56 files written by a script that refuses any path outside the workspace (`.scratch/sketch/reorg/pardes-ids/wrap.py`), 46 `.index()`; nothing the compiler caught was a pane's slot passed as a view's or the reverse: what it caught were a script's wrong guesses (Editor.reportError(err) and macos.zig's own reloadWatchedFile, same names, undone) and the integers a view's id met (views.zig's tests, replica.zig's Authority and Peers.join, host_io's Adoption); in files another agent is in, each conversion on the line that was there: core/Kind.zig 5 lines, core/Addon.zig 4, core/replica.zig 23 (Authority.openView and join, closeView/toView/awayView/rejoinView/leaveView calls, Peers.join's `openView`, tests), test/replicas.zig 1; the tape's records are smaller (a `usize` is a byte in six inputs) and its shape moves, so the semantics word moves, 313a99190b93a8c5 -> c47ecf638b3f4b9f; test/perf.zig untouched (its harness id does not move); the Mac: runtime/macos.zig 16 call lines, abi/pardes.h unchanged; 581 lines changed in 56 files, no line added. Gate (load 4 to 28: a drat build and other agents' gates beside): tui core-test 841/984 (143 skipped), shell-test 1020/1023, term-test 15/15, pane-test 183/184, kitty-test 45/45, behaviour-test 275/275 and --replay 20 seeds of 70 steps, 0 failures, process-test lspcomplete and lspcompletemoved (the base's), gui unit-test 1618/1622 (BaselineHarnessMismatch, the base's); replicas --clients 5 (TMPDIR /tmp/claude-1000/ids, alternated with the base twice, both pass both times): diverged 0, unequal 0 at rtt 30, 80, 207, deltas checked/wrong 1811/0, 1838/0, 1715/0, quiet checks 567/0, 650/0, 544/0, stops not on may_wait 0 (its corpus-through-a-client scene fails at step 21 as on the base with that TMPDIR); two earlier runs of this tree under a load of 10 to 28 ended in a leak of Places' compiled regex (Places.derive from Query.produce) and one rtt-207 run in an assertion in mouse.kindMouse's clamp during a client's speculation, the leak not seen in the eight runs of this tree after them (the full soak, each rtt alone, single seeds), the assertion not in the two full runs after it, and neither in three full runs of the base (by reading neither touches a slot: in the report); daemon.py plain, --far, --games, --window-clients, --upgrade both ways against pardes-tree's base prefix pass; test/cross_replay.py (tui records, gui replays): 27 digests agree in each of three replicas; rollback-bench runs; the macOS library for Linux and aarch64-macos and the FreeBSD cross-build build; frames (gpu/ids-2 against tree1) 77/77 byte-identical in Debug, unit-test 1618/1622 there too, perfab corpus2x -0.059% (session noise 0.134%, threshold 0.4%), pictures identical in all 10 runs, perfops 97 counts within 0.1% (largest image-frame on longline +0.0274%), key-down on medium 10,040,104 -> 10,039,959 an operation (-0.0014%), render on medium 11,455,764 -> 11,455,707 (-0.0005%)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | |
| |
| |
| |
| |
| |
| | |
(P21, pardes-ids change 1; the user, reading the tape's inputs: "why the id is an u8 though?", and "the id to be typed too"): each a distinct non-exhaustive `enum(u8)` (`pub const Id` inside `Pane` in core/panes.zig and inside `Pardes.View` in core/Core.zig, side by side with the thing whose slot it is), with the one conversion each way the boundary needs, named once: `Id.at(i)` the id of a slot the core holds (`@fromBackingInt(@intCast(i))`, so a slot past a byte panics in a safe build) and `id.index()` the slot as a `u8` (which widens to the `usize` half the core indexes with, so no caller casts); nothing uses them yet; one test at the end of core/views.zig, "a pane's id and a view's id are two types: neither is taken for the other, nor for an integer" (an enum coerces only into itself, so it shows the two are distinct, a byte each and non-exhaustive, and every slot round-trips; a probe that assigned a `View.Id` to a `Pane.Id` failed to compile with "expected type 'panes.Pane.Id', found 'Core.View.Id'"); 46 lines added in three files, no line changed; nothing a step runs is touched, so the frame and perf gate was not run on it and the semantics word does not move (313a99190b93a8c5); gate (load 5 to 10, a drat build beside): tui core-test 841/984 (143 skipped), shell-test 1020/1023, gui unit-test 1618/1622 (the perf check's BaselineHarnessMismatch, the base's 1617/1621 with it), each the base's plus this test
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| |\ \
| | |
| | |
| | |
| | |
| | |
| | | |
asked for: pardes-regex-2 (mvzr's reads past a pattern cut short patched as it is fetched; the leak of a pattern that does not compile; the soak's corpus check comparing what is visible) and pardes-draw-2 (a step's notice bands and a markdown text's tables made from the step's own state, never from the last frame; a load under way in another live process no crash; an idle pair silent), merged without a conflict; gates in the coordinator's ledger
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
it was asked, so an idle pair stops waking (the user's bar: an idle editor does not wake): every unit a client took marked a change (`Link.take`), and the session's pump that answers a check sends one before the answer (its clock read and its advance, taped: the clock is digested, so "an empty pump sends no unit" is not safe), so each answer was followed by another check 300 ms later, for ever: a check, a session's wake and pump, a unit and an answer every 0.3 s per idle client; strace of a real idle pair (my own detached session and one terminal client, 30 s) showed every wake of both processes was that cycle (the client's timer thread's 298 ms futex wait, its main loop asking, the session's reader taking the 5-byte check, its loop pumping, its writer, the client's reader taking unit and answer) and nothing else; now a unit taken while a check is asked marks no change (the answer comes after it in the stream's order and its digest covers it), and an answer let go (the client not quiet then) marks one; the test `an idle client's check answered covers the units that came while it was asked: it asks no other until something changes` (a Link on a socket pair over a replica joined from an Authority's dump: a change, a check asked, the pump's unit, the answer, then ten quiet seconds ask nothing; a unit after it asks again; an answer let go marks a change) failed on the base and passes; measured on that real pair idle 60 s after a 5 s settle: session 120 ms of CPU and 1236 context switches (20.6 a second: its loop 3.9, its client's writer 6.8 and reader 9.9 a second), client 140 ms and 1656 (27.6 a second) before; 0 ms and 0 switches in both, and in the daemon, after; the gates on the three changes together (i3): tui core-test 843/986 (143 skipped), shell-test 1022/1025, term 15/15, pane 183/184, kitty 45/45, behaviour-test 275/275 and --replay 275/275, process-test the base's two, gui unit-test 1620/1624 + BaselineHarnessMismatch; replicas --clients 5: diverged 0/0/0, unequal 0/0/0, deltas checked/wrong 1907/0, 2028/0, 1812/0, quiet checks 623/0, 835/0, 771/0, stops not on may_wait 0/0/0, corpus 22/22; daemon.py plain, --far, --games, --window-clients, --upgrade both ways pass, and --games 10 of 10 under 24 busy processes (load 11-37); cross_replay 27 digests agree each; the frame and perf gate against tree1 (d2-i3): frames 77/77 byte-identical, corpus2x +0.005% (noise 0.044%), the 97 per-operation counts within 0.1% (largest +0.031%)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
that starts while its session loads the same library runs the kind (`test/daemon.py --games` under load: a client's game stopping every key for the rest of the session): every pardes of the user shares one crash mark, `addon-loading` in the data directory, written around each library's load (`Addon.mark`), and a start that found it took the load for a crash (`crashedPath` renamed it to `addon-crashed`); so a client whose scan (its first plain kind's `plainOps`) fell inside the session's or another client's load of the snake listed it `skipped: it crashed its last load`, never had its code (`runsHere` false: slot ops null, the registry's null, nothing distrusted, no rejoin, as a probe in `Kind.key`, `plainOps` and `Link.rejoins` showed in 8 failing runs of 10 at load 13-30), and every key of it into the snake waited for the session (client a: at once 5, stopped 149; or client b's one key into it: stopped 1), and the false crash stayed for every later start until `Addon load`; now the mark is the loading process's (`addon-loading.<pid>`) and a start takes a mark for a crash only when its process is gone (`kill(pid, 0)`: ESRCH; the bare name, an older build's, as before); the test `a load under way in another live process is no crash: a start meanwhile lists the addon, and the mark stays the loader's` orders it by hand (this process marks a load, a scan starts before it unmarks; then a dead pid's mark is a crash) and failed on the base (the scan listed the library skipped); `--games` under 24 busy processes: 2 of 10 passed on the base's code (load 13-30), 10 of 10 with the fix (load 12-31, keys stopped 0 and 0 in every run); root.zig's machine lines for Addon.zig 48 -> 54; the gates on the three changes together (i3): tui core-test 843/986 (143 skipped), shell-test 1022/1025, term 15/15, pane 183/184, kitty 45/45, behaviour-test 275/275 and --replay 275/275, process-test the base's two, gui unit-test 1620/1624 + BaselineHarnessMismatch; replicas --clients 5: diverged 0/0/0, unequal 0/0/0, deltas checked/wrong 1907/0, 2028/0, 1812/0, quiet checks 623/0, 835/0, 771/0, stops not on may_wait 0/0/0, corpus 22/22; daemon.py plain, --far, --games, --window-clients, --upgrade both ways pass, and --games 10 of 10 under 24 busy processes (load 11-37); cross_replay 27 digests agree each; the frame and perf gate against tree1 (d2-i3): frames 77/77 byte-identical, corpus2x +0.005% (noise 0.044%), the 97 per-operation counts within 0.1% (largest +0.031%)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
whoever asks first, never a reading under way that a frame moved (the audit of what a frame writes and a step reads, after Pane.notices): a step read a big text's table pads (a click's byte, a `j` over a table, through File.geometry -> Tables.ensure) from `File.State.tables`, which is derived (in no digest, no dump) yet carried a reading's progress: the first look read 4096 lines, the session's ticks read on 4 ms at a time, and an edit after a look took the short way past the read point; so a core that drew a frame before an edit (the frame's geometry made the first look at that revision) read on past line 4096 where one that had not drew began again and stopped there, and a client joined from a dump began from nothing where its session had read the text whole (then its tick asked the tape for a budget its session never read); the test `tables: a click on a big text's table is the same state whichever frame this process drew last` (a session that drew once and a replica joined from its dump that drew nothing, the same paste and a click on each cell of a table at line 5001) failed on the base (`expected 4, found 5`: the click put the caret on another byte) and passes; the fix reads the whole text at once in `Tables.ensure` (an edit still reflows only its block), deleting the budgeted reading (`pending`, `step`, `busy`, `frame_ns`, `first_lines`, the tick's call and `nextWake`'s, the key's word): its cost is the read at open, measured in ReleaseFast at 40 ns a line of prose and 18 ms for 2.7 MB of 2000 tables (docs/next-tables.md's stress text, generated), where it was 4096 lines then 4 ms a frame; and the class is kept closed two ways: `root.zig`'s `kept_out` names every `.local` and `.derived` field of core/ (68) with who writes it and why a step's read of it is the step's, a test failing on a new one not listed, and `draw.zig`'s `a frame changes nothing a step reads` steps a core that draws after every input (each frame at its own later time, and `presented`) and one joined from its dump that never draws through 600 random keys, clicks, wheels, pastes, commands, ticks and disk changes over a 4500-line markdown text with a table and a second pane, their digests equal after every step (16 seeds of 3000 steps agree); the audit's table is in the report (.scratch/sketch/reports/pardes-draw-2.md); the gates on this change: tui core-test 841/984 (143 skipped), shell-test 1020/1023, term 15/15, pane 183/184, kitty 45/45, behaviour-test 275/275 and --replay 275/275, process-test the base's two (lspcomplete, lspcompletemoved), gui unit-test 1618/1622 + BaselineHarnessMismatch (the base's); replicas --clients 5, the session drawing after every pump: diverged 0/0/0, unequal 0/0/0, deltas checked/wrong 2113/0, 1773/0, 1775/0, quiet checks 800/0, 794/0, 893/0, stops not on may_wait 0/0/0 (rtt 30/80/207), corpus through a client 22/22; daemon.py plain, --far, --games, --window-clients, --upgrade both ways (against pardes-tree/pfx-base) pass; cross_replay 28 digests agree each; macOS lib and FreeBSD rc 0; the frame and perf gate ran on the three changes together (d2-i3): frames 77/77 byte-identical, corpus2x +0.005% (noise 0.044%, bar 0.4%), the 97 per-operation counts within 0.1% (largest +0.031%)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
the last frame left them, and the soak's session draws after every pump as a terminal's does (the user's rule: replica bugs caught by a soak that does what real use does): drawn so, `replicas --seeds 2 --rtt 30 --clients 5` diverged client 5 on seed 1 (`the tape's answer to addon is short (tape byte 145, in mouse)`, then every key of it stopped at `a key into a kind's pane`): another client's wheel_up over the PDF's pane in view 3 was `inside` on client 5 (top 23, no band) and not on the session (top 24, one message band), so the session called no addon (kindLeave and the rest) where the client called mouse; the read is `kindMouse`'s `pane.notices.span()` (core/mouse.zig, the same read as `edit.pointerTextSelection`'s chip test), and `notices` is derived (core/panes.zig's replica `.derived`, views.zig's PaneView: in no digest and no dump, which says "recomputed from the rest whenever it is wanted") yet was written outside every step, by a frame (`draw.place` -> `Messages.collectNotices`, at the frame's time and in the drawn view), and inside a step only for the live view at its end (`sync`), so what a step found there was the last frame this process drew, the band of a view as it stood when that view was last live, or nothing in a client joined from a dump since (client 5's case: the session's view-3 band was made by view 3's last step, client 5 joined after it); now `updateInner` (and `presentedInner`, whose look-hover reads the same chip test) makes every pane's bands again from the step's state before it reads them (core/Core.zig, a line each), so a step's calls no longer depend on whether a frame was drawn, and the soak's `watchedHost` is true (the `at_frame` field gone); a test, `a press on a notice's chip is the same state whichever frame this process drew last` (core/mouse.zig: a session that drew its frame once Del's question was due, a replica joined from its dump that drew none, a B1 press on the chip): before the fix the session swallowed it (drag .none) and the replica began a sweep (.select), after it both alike; the soak drawing after every pump: diverged 0/0/0, unequal 0/0/0, deltas checked/wrong 2078/0, 1773/0, 1775/0, quiet checks 932/0, 794/0, 893/0, stops not on may_wait 0/0/0 (rtt 30/80/207), corpus through a client 22/22; tui core-test 839/982 (143 skipped), shell-test 1018/1021, term 15/15, pane 183/184, kitty 45/45, behaviour-test 275/275 and --replay 275/275, process-test the base's two (lspcomplete, lspcompletemoved), gui unit-test 1616/1620 + BaselineHarnessMismatch (the base's); daemon.py plain, --far, --window-clients pass, --games fails as on the base (item 2, load 6-7), cross_replay 27 digests agree each; the frame and perf gate against tree1 (dd-i1b): PASS, frames 77/77 byte-identical, corpus2x +0.264% (bar 0.4%, noise 0.094%), the 97 per-operation counts within 0.1% (largest +0.038%)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
where pardes patches it already (build/patches.zig: eight edits that check the pattern's end before each read in a count, a byte escape and a class; unreported upstream as of its trunk 3efcfe33; docs/mvzr-bounds.md is the report), so the walk of the pattern that core/regexp.zig made to refuse them beforehand goes (55 lines: the dependency is fixed, not guarded, and no fork is needed); the test of every such pattern stays and aborts without the edits (index out of bounds: index 2) and passes with them; the edits checked to reproduce the patch proven on 5.4M patterns byte for byte; tui core-test 842/985 (143 skipped)
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
compile (pardes-regex item 2, the coordinator's fix finished; the gate of pardes-merge20: the soak's session aborted on its allocator's leak check, 14 branches of `Places.derive` leaked): a pattern with no `\b` allocated its one Branch (2,176 bytes) with the allocator it was handed and then `try`d the compile, and Places compiles a typed pattern with the pane's own allocator, not an arena, at every keystroke of a search, so each half-typed pattern that is no expression yet (`(`, `[`, `*a`) leaked one for the session's life; an `errdefer` frees it; the test "SearchRegex: a pattern that does not compile leaves nothing allocated" (its `a{` left to item 1's change, and `\bfoo(` added for the branch list's own path), each refused, none leaking: without the `errdefer` the testing allocator reports 4 leaks (normal.zig:145), with it it passes; the same shape (an allocation then a `try`, with an allocator that is not an arena) looked for where a typed pattern is compiled or kept: normal.zig (SearchRegex.compile's `\b` list has its `errdefer`; searchStep compiles into `e.scratch`, an arena), Places.zig (search's `dupe` and derive's two compiles: no `try` after an allocation; clear frees the branches), Query.zig (save has an `errdefer` for each allocation; the line's `dupe` is caught), regexp.zig (allocates nothing), look.zig (compiles no pattern), Plumb.zig, sam_edit.zig, indent.zig and ninep/addr.zig (Regex.compile, a value): none other; gate, on items 1 and 2 together (load 5 to 14, other agents' builds beside): tui core-test 842/985 (143 skipped; the base's 840/983 and the two tests), shell-test 1021/1024, pane-test 183/184, behaviour-test 275/275 and --replay 20 seeds of 70 steps 0 failures, process-test 2 of 144 failed (lspcomplete and lspcompletemoved, the base's; winch failed once and passed on the runner's retry), gui unit-test 1619/1623 (the base's 1617/1621 and the two tests; the perf check's BaselineHarnessMismatch, the base's), replicas --clients 5 (TMPDIR /tmp/claude-1000/rx) ENDS with no leak report: diverged 0/0/0, unequal 0/0/0, deltas checked/wrong 1799/0 1832/0 1681/0, quiet 591/0 645/0 579/0, stops unlisted 0/0/0, the corpus scene 22 of 22 (that run); the frame and perf gate against tree1 on all three changes (gpu/regex-1, load 4 to 16): PASS, frames 77/77 byte-identical in Debug, gui unit-test 1619/1623, perfab corpus2x +0.015% (session noise 0.057%, threshold 0.4%), pictures identical in all 10 runs, perfops 97 counts within 0.1% (largest image-frame on large +0.0307%)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | |/
|/|
| |
| |
| |
| |
| | |
before it reaches mvzr, which reads past its end there, and a class escape holding a lone non-ASCII byte is refused instead of rewritten without end (pardes-regex item 1; the coordinator's gate of pardes-merge20: its leak test's `a{` aborted in the dependency): typing `a{` or `fn main() {` into a search panicked a safe build (index out of bounds in mvzr 0.3.9's compileRegex, src/mvzr.zig:1449) and in a fast build compiled a pattern whose meaning came from the stale bytes after `buf[len]` in Regex.compile, so a session and its client could find different places for the same keys; every pattern up to five characters over `()[]{},*+?|\^$.-a1xnbf` (5,399,042) driven through Regex.compile in a safe build, a child process per run that names the pattern it panicked on (.scratch/sketch/reorg/pardes-regex/enum/): 100,666 read out of bounds, at six reads of mvzr's: after the `{` (`a{`, 94,586), after `{,N` (`a{,1`, 297), after `{N` (`a{1`, 5,432), after `{N,` (`a{1,`, 297), after `{N,N` (`a{1,2`, 17), and parseHex's `in[0..2]` (37: `{\\x`, the literal `{` taking the next `\` with it so that `\x` ends the pattern, and `[\\x]`, a class's `\\` reading the `x` as a byte escape); the guard (one block before the compile, its comment naming the dependency's fault and version, to be deleted with the re-pin) walks the pattern as mvzr does and refuses exactly those: through it, 0 of the 5.4M panic and none that the base compiled is refused, the same over every pattern up to four characters of a 32-letter alphabet with two non-ASCII bytes (1,222,980) and 20M random patterns of 6 to 12 characters of each alphabet; with mvzr patched (.scratch/sketch/reorg/pardes-regex/mvzr-bounds.patch, for the fork) the guard refuses nothing the unguarded wrapper does not, so its deletion changes no answer; what a user sees typing `fn main() {` into a `/` search: before, the editor aborts (a safe build) or finds what stale bytes made of the pattern (a fast one); after, the pattern does not compile and the search does what it does for any half-typed one, finds the characters it is (`fn main() {` itself); the same drive found a second fault, pardes's own: runeClass copies an escape inside a class as it came, so `[\` or `[\x` followed by a byte no rune starts with (not UTF-8: a paste, a 9P address) was rewritten into a class still holding that byte and compiled again without end (a stack overflow in every build; 2 of the 1.2M, 1,538 of the 20M random patterns with those bytes): such an escape is refused; test "a pattern that stops inside a count or an escape is refused, not read past its end": one pattern per read, the two recursions, the counts and escapes that end still compiling, and every pattern up to five characters over `{},1\x[]a` (66,429, 4,516 of which read past their end at all six reads on the base): it panics on the base at its first pattern and passes; gate, on items 1 and 2 together (load 5 to 14, other agents' builds beside): tui core-test 842/985 (143 skipped; the base's 840/983 and the two tests), shell-test 1021/1024, pane-test 183/184, behaviour-test 275/275 and --replay 20 seeds of 70 steps 0 failures, process-test 2 of 144 failed (lspcomplete and lspcompletemoved, the base's; winch failed once and passed on the runner's retry), gui unit-test 1619/1623 (the base's 1617/1621 and the two tests; the perf check's BaselineHarnessMismatch, the base's), replicas --clients 5 (TMPDIR /tmp/claude-1000/rx) ENDS with no leak report: diverged 0/0/0, unequal 0/0/0, deltas checked/wrong 1799/0 1832/0 1681/0, quiet 591/0 645/0 579/0, stops unlisted 0/0/0, the corpus scene 22 of 22 (that run); the frame and perf gate against tree1 on all three changes (gpu/regex-1, load 4 to 16): PASS, frames 77/77 byte-identical in Debug, gui unit-test 1619/1623, perfab corpus2x +0.015% (session noise 0.057%, threshold 0.4%), pictures identical in all 10 runs, perfops 97 counts within 0.1% (largest image-frame on large +0.0307%)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| |\ \
| |/
|/|
| |
| |
| |
| | |
joined, with the tape's handle through the kinds, the core's own files and the small ones: pardes-runners-d (10c's last changes) and pardes-handle-2 (the handle's steps 3 to 5 and its two rules as tests), merged without a conflict; gates in the coordinator's ledger
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | |
| |
| |
| |
| |
| |
| | |
step 5, P20, pardes-handle-sizing section 3's fifth noun): sixteen calls in ten files, each in a function that holds the core: Output (History's dumps and Config's default dump directory asked of the authority, Fonts' listing a site), Query (Recent's rows and the closed panes asked of the authority, a preview's read a site), Store (a closed pane's record, the authority's), Plumb (a port's readers, the authority's; its `const tape = @import("tape.zig")` gone, 1 line apart from the count), Stream (a search run on the loop, a site), mouse (whether a script reads a pane's events, the authority's), File (an edit's mtime, a clock), ninep/events (the boot's event when not replaying), ninep/tree (/sessions, a site), builtins (Get's label, Mount's probe and Term's shell check: `c.p.tape`, a word's context holds the core); no function gains the parameter (row: 0); Stream.runHere, the host's search on its loop when it has no worker, holds the core and reads its field, which is the tape the global names whenever a step is under way (the safe build's check at every entry); the five numbers: (1) functions that gained the parameter 0 (row: 0); (2) the 97 per-operation counts within 0.1%, the largest image-frame on medium +0.0332%; no function on a per-row path touched; (3) nothing stopped compiling for want of an io; (4) global io uses 7 (unchanged), free calls into the tape 45 -> 29, machine_lines rows unchanged; (5) lines changed: tests 0, code +16/-16 (and the import's one line). Lines in files not this work's: none. Gate: tui core-test 840/983 (143 skipped), shell-test 1018/1021, pane-test 183/184, term-test 15/15, kitty-test 45/45, behaviour-test 275/275 and --replay 20 seeds 0 failures, process-test lspcomplete and lspcompletemoved (the base's; winch failed once, passed on the runner's retry), replicas --clients 5 diverged 0, unequal 0, deltas wrong 0 (2033/0, 1978/0, 1682/0), quiet 568/0, 581/0, 748/0, stops not at may_wait 0 (its "corpus through a client" fails as on the base, steps 18 to 21), gui unit-test 1616/1620 (BaselineHarnessMismatch, the base's), daemon.py plain, --far, --games, --window-clients pass, test/cross_replay.py tui to tui: 28 digests agree in each of the three replicas, semantics 313a99190b93a8c5 (unmoved); frames (gpu/handle2-5b against tree1, run again after the machine's reboot cut handle2-5 short) 77/77 byte-identical in Debug, gui unit-test 1616/1620, perfab corpus2x +0.035% (session noise 0.089%, threshold 0.4%), pictures identical in all 10 runs, perfops PASS
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | |
| |
| |
| |
| |
| |
| | |
handle's step 4, P20, pardes-handle-sizing section 3's fourth noun): Core.zig's twelve (the state file off in a replica, `p.tape.replaying()`; the config directory, the startup file and Recent by hash asked of the authority, `p.tape.authority`; the focus report under a speculation of screen state, `p.tape.speculating and p.tape.screen_state`; a missing interpreter, the session's facts (its directory, home and shell), a command's prompt and a greeting, the next wake, `p.tape.value`), Messages.zig's two clocks (a message said, the unattended expiry: `p.tape.value(.clock, ..)`), dump.zig's two (a terminal's kind refused to a speculation, a slot revived on a replica); every function among them holds the core, so none gains the parameter; the sizing's three handed none: Core.parentTrouble and config.Runtime.apply took the tape in step 2, and Messages.Message.stamp is no step's at all: its only callers are hosts (dev/file_watch.zig, dev/host_io.zig, dev/tui/tui.zig, dev/gui/gui.zig, runtime/macos.zig: a file reloaded, a save, a language server's status), between steps, handing the text to `setMessage`, an input the tape carries, so its `tape.value(.clock, timeOfDay)` recorded nothing anywhere (a host's call is the host's side: `call` goes straight through) and is now the host's own `timeOfDay()`, no tape, no parameter, no `&tape.none` in five host files; left on the global with the entries, for step 9: init's and initFromDump's startFromEnv, deinit's `current` and `forget` (a client's core freed between its steps would write `forget` into its idle tape, the rule of this line's first change), Restore's `adopt`, and the hand-written entries' enter and leave; config.zig has no other tape call; no file of these four imports `tape` (Core.zig and dump.zig say `pardes.tape.`, config.zig's is a parameter); the five numbers: (1) functions that gained the parameter 0 (row: 3, two of them done in step 2, the third off the tape); (2) the 97 per-operation counts within 0.1%, the largest image-frame on longline +0.0232%; no function on a per-row path touched; (3) nothing stopped compiling for want of an io; (4) global io uses 7 (unchanged), free calls into the tape 63 -> 45, machine_lines rows unchanged (Messages.zig's 6: timeOfDay's libc lines are the same lines); (5) lines changed: tests 0, code +21/-19. Lines in files not this work's: none. Gate: tui core-test 840/983 (143 skipped), shell-test 1018/1021, pane-test 183/184, term-test 15/15, kitty-test 45/45, behaviour-test 275/275 and --replay 20 seeds 0 failures, process-test lspcomplete and lspcompletemoved (the base's; winch and headersweep failed once, passed on the runner's retry), replicas --clients 5 diverged 0, unequal 0, deltas wrong 0 (2033/0, 1978/0, 1682/0), quiet 568/0, 581/0, 748/0, stops not at may_wait 0 (its "corpus through a client" fails as on the base, steps 18 to 21), gui unit-test 1616/1620 (BaselineHarnessMismatch, the base's), daemon.py plain, --far, --games, --window-clients pass, test/cross_replay.py tui to tui: 28 digests agree in each of the three replicas, semantics 313a99190b93a8c5 (unmoved); frames (gpu/handle2-4 against tree1) 77/77 byte-identical in Debug, gui unit-test 1616/1620, perfab corpus2x +0.112% (session noise 0.068%, threshold 0.4%), pictures identical in all 10 runs, perfops PASS
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | |
| |
| |
| |
| |
| |
| | |
step's core's tape or a `tape: *Tape` parameter (the handle's step 3, P20, pardes-handle-sizing section 3's third noun): Kind.zig's fourteen (a kind's open, close, key, search, address, mouse and word refused to a speculation, `p.tape.authorityOnly`; its tag's prefix, `p.tape.value(.addon, ..)`; a tick's `p.tape.speculating` and `poison`; a call's end, `Call.end`, on its core's tape: its outcome taped, its plain block hashed only on a tape that is not `none` (`t.through`, where `tape.on == null` was: the one read of the global outside tape.zig and replica.zig is gone), and a client's plain kind that broke its promise diverging the replay through `Tape.diverge`, made public, under `t.replay` as `tape.diverged` was), and the C callback `api.job` (callconv(.c), no parameter to give) reaching its handle through `Kind.current`, the call under way, whose core it holds at that line (a call that asks a job and is not quiet is a step's: `cl.p.?.tape`), which holds at its one site: the other callbacks ask nothing of the tape; Addon.zig's three, its import gone with Kind.zig's (`const tape = @import("tape.zig")`, 2 lines apart from the count): Addon.need, Addon.take and Kind.Registry.started take `tape` (3 functions, the row said 1 + 20: the graph tied `take` by name to walk.Reader.take and the rest), `swap` reads `p.tape`; Kind.reopen takes the core it was always handed (`*Pardes`, was `?*Pardes`: no caller passed null); Pardes.create names its tape once, for `.kinds = .started(tape, ..)` and `.tape`; the count asked for first: Addon.zig's 48 machine lines are all in functions handed no core (hold 17, scan 11, mark 4, scanDir 3, readSmall 3, closeIdle 2, read 2, listed 2, fileOf, loadListed, unmark, crashedPath), 0 in one that holds it; a step reaches 29 of them through `need` (a kind's first pane, the session's: loadListed, mark, hold, closeIdle) and all 48 on a client's first plain kind (need -> plainOps -> scan), and the addon effect (Effect.perform's arm, not replaying) reaches the same 29 through readLoaded; none of these host halves asks the tape anything, the one question (`replaying`) sits above them in `need` and in perform's arm, so none took the tape, none is handed `&tape.none`, and none needed splitting: `need` is already the split (the step's question, then the host's body); the five numbers: (1) functions that gained the parameter 3 (row: 1 + 20); (2) the 97 per-operation counts within 0.1%, the largest image-frame on longline +0.0308% (the base's own spread); no function on a per-row or per-grapheme path gained it; (3) nothing stopped compiling for want of an io (no io moved: Addon's reads are libc); (4) global io uses 7 (6 and the tape's default, unchanged), free calls into the tape 80 -> 63 (count.py, a call on a `tape` parameter not counted), machine_lines rows unchanged; (5) lines changed: tests 4 (the take calls of three tests), code +41/-37 (with tape.zig's `pub` of diverge and the two import lines). Lines in files not this work's: none (no line in dev/, runtime/, core/replica.zig or test/). Gate: tui core-test 840/983 (143 skipped; Places' "a session's places loaded from its dump find what an edit makes as the session's do" failed once in the whole run, an edit's second crossing a clock second, and passed alone three times of three), shell-test 1018/1021, pane-test 183/184, term-test 15/15, kitty-test 45/45, behaviour-test 275/275 and --replay 20 seeds 0 failures, process-test lspcomplete and lspcompletemoved (the base's; headersweep and headersweep-restored failed once and passed on the runner's retry), replicas --clients 5 diverged 0, unequal 0, deltas wrong 0 (2033/0, 1978/0, 1682/0), quiet 568/0, 581/0, 748/0, stops not at may_wait 0; its "corpus through a client" fails at steps 18 to 21 (the client's frame 34 or 35 cells otherwise than the own frontend's, row 20) on this change and on the base alike (pardes-entries with the rules' tests, run the same hour), so not this change's; gui unit-test 1616/1620 (the perf check's BaselineHarnessMismatch, the base's); daemon.py plain, --far, --games, --window-clients pass; a session recorded and replayed (test/cross_replay.py, tui to tui, private runtime directory): 28 digests agree in each of the three replicas; semantics 313a99190b93a8c5 (unmoved); frames (gpu/handle2-3 against tree1) 77/77 byte-identical in Debug, gui unit-test 1616/1620 there too, perfab corpus2x +0.083% (session noise 0.071%, threshold 0.4%), pictures identical in all 10 runs, perfops PASS
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | |
| |
| |
| |
| |
| |
| | |
its first part; pardes-handle-1's reading): every place that sets the global tape aside sets the core's field aside, a source check at the end of core/tape.zig over every function of core/ outside tests that writes `on` (`tape.on = `, or `on = ` in tape.zig), which must write a core's `tape` too (`p.tape = `, never an options' `opts.tape`) or be on `sets_on_alone` with why (startFromEnv: no core yet, the next one made takes `on`; replayBytes: its core is made with the tape in its options; Stepping's begin and end: the core stepped holds the tape already, which `enter` checks in a safe build), a listed function that writes none named stale; shown failing with dumpRoundTrip's two field lines taken out ("core/tape.zig: dumpRoundTrip sets tape.on and no core's `tape`"); and the idle tape: a client draws its own frame between its steps with `on` null and its core's field its own tape, neither replaying nor speculating, so `enter` must not record into an idle replica's tape when it reads the field (step 9's): the rule written at `enter`, and a test (a replica joined from a core's dump, Replica.draw twice) that its tape holds the bytes it held, not stepping, the host's side; shown failing with `enter` and `leave` made to read the field ("expected 0, found 6795"); no product line changed; core-test 840/983 (143 skipped; rollback's "a copy put back is the core as it was" failed once in the first run, an edit's second crossing a clock second, and its next test crashed on the epoch it left held; both passed in the next run), shell-test 1018/1021
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| |/
|
|
|
|
|
| |
runners, step 10c, its second part; the user's rule: replica bugs caught by a soak that does what real use does): test/replicas.zig runs runtime/session.zig's Loop over a frontend of its own (Soak) whose host's wait_input is the soak's delayed net, with its clients' links in memory (Peers.threads false: the soak is each Peer's reader, Peer.take then a posted gone, and its writer, the welcome and the dump with its blobs put back then the Peer's queue, a frame a message down the link; a socket pair a dial, its dup handed as the daemon hands one, so a refusal, a Detach's shutdown and a let-go close are the real ones), so the session's pump, Peers.boundary's order (the pump's unit, then joins, inputs, checks and leaves as posted), Peers.input, join (its dump, pins, refusal), leave (a view kept or closed), detach and the teardown in the loop's order are the shipped ones, not Authority's imitation; what a soak's session opens is what run opens (the allocators and their Debug leak check, the workers, the addons' scan, the prompt files and a 9P listener, both in the soak's own runtime directory, XDG_RUNTIME_DIR set to it): no branch for a test in the loop; the two traps the agent before named are handled at the wait's end (the tape stepped, the session core's field and the held trees put back) and a third found (a client's own frame is drawn with no tape stepped, so client-side work inside the wait runs with tape.on null); the wait ends where a terminal's would (its own input, an echo, a client's post, a dial, a worker's draw, the core's timeout; a pty's output paced to the frame's tick, a person's input held behind it as tui.zig's split holds it); the run ends inside its last wait when nothing is in flight (every typist done, the flood over, two seconds of frames: the session's own wakes and the clients' quiet checks no longer taken, as each idle client's check wakes the session whose pump's unit asks the next check, a loop found here); core/replica.zig: Peers.threads, Peers.flushed (each terminal's version recorded after a flush), Peers.post and Peer.take pub; core/Kind.zig (a line the soak forced: its region allocator's leak check found it): a draw that lands after its pane closed is dropped, never kept in Kind.ready for the life of the process; replicas --clients 5 (4 seeds, Debug): diverged 0/0/0, unequal 0/0/0, deltas checked/wrong 1776/0 1832/0 1638/0, quiet checks 694/0 654/0 694/0, unlisted 0/0/0 at rtt 30/80/207 (inputs 1721/1864/1499, units 25712/27409/22491: a unit a pump now, as a session sends them); the corpus-through-a-client check fails at its step 21 (a resize) on the base as here; tui core-test 838/981 (143 skipped), shell-test 1017/1020 (the base's 1016/1019 and change 3's test), term-test 15/15, pane-test 183/184, kitty-test 45/45, behaviour-test 275/275 and --replay 275/275, process-test 2 of 144 failed (lspcomplete and lspcompletemoved, the base's; lsp-client failed once and passed again in the run), gui unit-test 1615/1619 and BaselineHarnessMismatch (the base's), replicas --clients 5 as above (the corpus through a client 22 scenes the same: its step 21 differs only when TMPDIR is a longer path, on the base too), daemon.py plain, --far, --window-clients, --upgrade both ways (pardes-tree's pfx-base) pass, --games failed in the gate's run (a client's keys at a kind's pane, as the base's do under load: reports/pardes-runners-d.md), cross_replay tui and gui 27 digests agree, macOS library (Linux and aarch64-macos) and FreeBSD tui build, rollback-bench runs (the suites run on this change with change 3 on top); the frame and perf gate against tree1 (run5-1, on the tree with both changes): PASS, frames 77/77 byte-identical, corpus2x -0.151% (bar 0.4%), the 97 per-operation counts within 0.1% (largest +0.031%)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| |
|
|
|
|
|
| |
first half; the owner's mechanism C and names): each of 36 entries is its public name made by `pardes.tape.taped` from the private body directly under it (`pub const setCwd = pardes.tape.taped(setCwdInner);` then `fn setCwdInner(p: *Pardes, id: usize, cwd: []const u8) void { body }`, the doc comment on the public line), so the entry no longer opens with `tape.enter` and a deferred `tape.leave` and has no replay arm of its own: `taped` makes a function of the inner's own parameters (one per arity, 1 to 4, `tape.Taped((function 'setCwdInner')).f3` in a profile) that records the variant of `tape.Input` whose line names the entry (`set_cwd: Args(Pardes.setCwd)`, a type of that entry's own, found by the function itself in the wrapper's body: at the declaration it would be a dependency loop between the union and the entries), defers the leave and calls the inner with `@call(.always_inline)`, so an entry compiles to what one written with its own pair did; the replay's `apply` keeps its hand-written arms (init, init_from_dump, restore, deinit, pump, render, to_view) and calls every other entry from its variant in ONE `inline else`; the six kept by hand say why in one line each (init and initFromDump: no core yet; deinit: what it records is no argument and it leaves on no core; pump: the host is set before the enter and is no input; render: the arena is no input; toView: the live view asked again records nothing, and a frontend asks before every input), and restore is taped with an arm of its own (it swaps the replay's core); an entry in 36 places went from 4 lines in 3 places (variant, enter, leave, arm) to 2 in 2 (the public line beside its body, the variant's line), and an argument left out or passed in another order can no longer be written: a variant naming the wrong entry or an entry with no variant does not compile, the error naming the inner ("tape: two variants of Input name the entry tape.Taped((function 'setStatusInner')): set_message and set_status", "tape: no variant of Input names the entry tape.Taped((function 'rejoinViewInner'))"); the payloads are now the entry's arguments in order (`args[0]`), read so in the tape's three readers (a screen-state output's bytes stripped, the input's name for a divergence, `describe`), `Input.Font` gone; the bytes a tape holds are the same (walk writes no field names) but its shape is not, so the semantics word moves, 2f615168fe07b35f -> 313a99190b93a8c5; `update`, `presented` and `dumpFailed` read `p.view()` before their enter and now after it (the enter writes only the tape's own state and the host it wraps, nothing a view holds); no call site changed, no line outside core/; core/ 203 lines added, 187 deleted (tape.zig 204 of them: the helper 58 code lines, 36 arms gone). Gate: tui core-test 838/981 (143 skipped), shell-test 1016/1019, term-test 15/15, pane-test 183/184, kitty-test 45/45, behaviour-test 275/275 and --replay 20 seeds of 70 steps, 0 failures, process-test lspcomplete and lspcompletemoved (the base's), replicas --clients 5 diverged 0, unequal 0, deltas wrong 0 (1705/0, 1722/0, 1714/0), quiet 526/0, 652/0, 811/0, stops not at may_wait 0; a session recorded and replayed by itself (test/cross_replay.py: 28 digests agree in each of the three replicas); gui unit-test 1614/1618 (the perf check's BaselineHarnessMismatch, the base's); daemon.py plain, --far, --games, --window-clients pass; the macOS library for Linux and aarch64-macos and the FreeBSD cross-build configure and build; frames (gpu/entries-1 against tree1) 77/77 byte-identical in Debug, gui unit-test 1614/1618 there too, perfab corpus2x +0.100% (session noise 0.031%, threshold 0.4%), pictures identical in all 10 runs, perfops 97 counts within 0.1% (largest image-frame on medium +0.0246%); every entry is one function in the ReleaseFast pardes-perf (36 symbols `tape.Taped((function '<inner>')).f<n>`); update's count, key-down on medium per operation, 10,040,394 at pardes-handle-1's step 2 -> 10,040,439 (+0.0004%; 10,040,102 at tree1), render's, render on medium per operation, 11,456,076 -> 11,456,085 (+0.0001%; 11,455,763 at tree1)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| |\
| |
| |
| |
| |
| |
| | |
handle a step is given: pardes-runners-b (10b: runtime/client.zig run by the terminal's client, the window's and the soak; a client's clipboard and links its own frontend's; an input sent before it is applied) and pardes-handle-1 (the handle's steps 0 to 2: p.tape, the directory listing and the file system read through the tape they are handed), merged without a conflict; gates in the coordinator's ledger
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | |
| |
| |
| |
| |
| |
| | |
the reads no tape saw are listed (the handle's step 2, P20, pardes-handle-sizing's second noun): every site of core/fs.zig is the handle's, the core's (`p.tape`: /os's stat, listing and read, a mount's read) where a function holds the core, else a `tape: *Tape` parameter, taken by 16 functions (fs.makeDirs, expandHome, expandHomeFrom, resolveOs, readFile, readFileLimit, readRestore, restorePath; exec.kindOf; up to a core: dump.directory, restoreFile, onDisk, Db.statePath, Core.recentKeeps, Core.parentTrouble, config.Runtime.apply); fs.resolve takes its optional core's tape, `none` without one; sam's World carries the session's tape for `~user`; the bodies of make_dirs, read_file and kind take Zig's io from the tape, and /os's stat and listing are handed it, so fs.zig and exec.zig read the process's io nowhere; the finding, what stopped compiling for want of an io: fs.readHost's two direct callers, both host halves (the tape's own read by path of a record sent by hash, which takes its tape's io; a client's join reading a plain kind's file through the walk's dump hook, whose mode `join_files` is now the host's io), and by reading one step's read no tape saw, ninep/ctl.zig's bare deniedAbove in a /pager open (served in serveFs, which a client replays), now taped as its neighbours are (`p.tape.value(.denied, ..)`, no new site); the host's own calls of these (the launcher, a -l dump, fonts, theme files, Upgrade, a dump failure's message, gui tests) pass `&tape.none`, recorded by nobody as before; and the replay's dump check now puts the core's tape aside with `on` (its dump's `onDisk` replayed a site the tape did not have: every --replay seed diverged at its end in the first gate). The five numbers: (1) functions that gained the parameter 16 (row: 19 + 7); (2) perfops 97 counts within 0.1%, largest image-frame on small +0.0295%, none on a per-row path gained it; (3) stopped compiling for want of an io: fs.readHost from tape.byHash and from dump.slotWrite (host halves), osHandle's io local (fed only sites); (4) global io uses 6 (10), calls into the free functions 80 (92), machine_lines fs.zig 39 -> 38, exec.zig 4 -> 3; (5) lines changed: tests 33, code about 130 (20 of them in host files). Lines in files not this work's: dev/tui/tui.zig 990, dev/gui/gui.zig 613 629 1054 3057 6171 6264 7494 8290, dev/file_watch.zig 612 644, dev/host_io.zig 1521, runtime/main.zig 1373 1391 1398, runtime/macos.zig 646 668, runtime/upgrade.zig 349 396 (each one argument). Gate: tui core-test 837/980 (143 skipped), shell-test 1015/1018, pane-test 183/184, behaviour-test 275/275 and --replay 20 seeds 0 failures, process-test lspcomplete and lspcompletemoved (the base's; pagercolor flaked once, passed alone three of three), replicas --clients 5 diverged 0, unequal 0, deltas wrong 0 (1731/0, 1620/0, 1737/0), quiet 545/0, 554/0, 651/0; daemon.py plain, --far, --games, --window-clients pass; semantics 2f615168fe07b35f (unmoved); frames 77/77 byte-identical in Debug, gui unit-test 1613/1617, perfab corpus2x +0.057% pictures identical in all 10 runs, perfops PASS
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | |
| |
| |
| |
| |
| |
| | |
handle's step 1, P20, pardes-handle-sizing section 3's first noun): Dir.read takes `tape: *Tape` before its allocator and its site is the tape's method (`tape.site(.dir_listing, ..)`), its two callers pass the core's (`p.tape`) and its test the tape nobody records (`&tape.none`), and the listing's body takes Zig's io as its first parameter, handed by the tape (Tape.call gives a body whose first parameter is an `std.Io` its caller does not pass the tape's own; a body whose caller still passes one, /os's stat and listing in fs.zig, keeps it until its noun), so Dir.zig no longer reads the process's io; the listing's site is recorded, replayed and refused as before. The five numbers: (1) functions that gained the parameter 1, Dir.read (row: 1), its caller lines 3 in 1 file (row: 5 in 3); (2) perfops 97 counts within 0.1%, largest image-frame on medium +0.0308% (the base's own spread), no function on a per-row path gained anything; (3) nothing stopped compiling for want of an io: the listing's body was the only reader of Dir.zig's; (4) global io uses 10 (11 before; plus the tape's field default), calls into the free functions 92 (93), machine_lines Dir.zig 2 -> 1; (5) lines changed: tests 1, code 24 (Dir.zig 12, tape.zig 11, root.zig 1). Gate: tui core-test 837/980 (143 skipped), shell-test 1015/1018, pane-test 183/184, behaviour-test 275/275 and --replay 20 seeds 0 failures, process-test lspcomplete and lspcompletemoved (the base's), replicas --clients 5 diverged 0, unequal 0, deltas wrong 0 (1731/0, 1620/0, 1737/0), quiet 545/0, 554/0, 651/0; daemon.py plain, --far, --games, --window-clients pass; semantics 2f615168fe07b35f (unmoved); frames 77/77 byte-identical in Debug, gui unit-test 1613/1617, perfab corpus2x +0.256% pictures identical in all 10 runs (under 0.4%; no operation moved, so outside pardes's own code), perfops PASS
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | |
| |
| |
| |
| |
| |
| | |
handle's step 0, P19/P20, pardes-handle-sizing section 1): Pardes.tape: *Tape, never null, set when a core is made (Options.tape for init, else tape.on's, else tape.none; tape.adoptCore for a client's join, tape.adopt for a Restore, the tape's own apply for a replay's init and restore, replica.zig's Peers when a session's first client joins and when its last leaves), tape.none the tape of a session nobody records (Tape.through: every call goes through, nothing is taped, nothing writes it), Tape.io Zig's io for a site's body (the process's, as every global read of it was), the entry points as methods on the tape (site, value, authority, over, replaying, stray, stepping, screenReplica, screenAuthority, poison, authorityOnly, viewOnly, touchTerminal, adopt, current, forget; `speculating` and `screen_state` are its fields; `diverged` stays free, its name being the field it writes) and the free functions kept beside them, each now the method on `on orelse &none`, so every caller exercises the methods; the field is this process's own, in no digest, dump or tape (Pardes.replica.local, Options.replica.local) and no rollback copy (rollback.zig's `unsaved`), with a test that neither the digest nor the dump moves with it and that a copy put back leaves it as set; a safe build checks at every entry that a core's field is the tape `on` steps it on (or, with none on, an idle one): it found that a client's own frame drawn between its steps (Replica.draw, an entry with `on` null) is entered on its idle tape, which `enter` must not record into once it reads the field (step 9), and that a replay's dump check loaded its core on the session's tape through its options (now on none); Core.zig names the module `pardes.tape` (82 lines), its import `tape` colliding with the field; `init` and dump's `initFromDump` leave the tape once, deferred, with the core made or none (they left it twice, one per way out: the owner's reading); Stepping's swap and the three tests' save-and-restore stay: the free functions still read `on`, so a replica's step needs it pointed at its tape until the last of them goes. The five numbers: (1) functions that gained the parameter 0 (row: 0); (2) perfops 97 counts within 0.1%, largest image-frame on large +0.0215% (the base's own spread), none on a per-row path gained anything; (3) nothing stopped compiling for want of an io (none was removed); (4) global io uses 11 plus the tape's field default, calls into the free functions 93 (each now a method's), machine_lines tape.zig 10 -> 11 (the io field); (5) lines changed: tests 32, code about 580 (164 of them Core.zig's module name, about 250 bodies moved into methods; tape.zig 1533 -> 1623 lines). Gate: tui core-test 837/980 (143 skipped), shell-test 1015/1018, pane-test 183/184, behaviour-test 275/275 and --replay 20 seeds 0 failures, process-test lspcomplete and lspcompletemoved (the base's), replicas --clients 5 diverged 0, unequal 0, deltas wrong 0 (1646/0, 1620/0, 1737/0), quiet 484/0, 554/0, 651/0; daemon.py plain, --far, --games, --window-clients pass; semantics 2f615168fe07b35f (unmoved); frames 77/77 byte-identical in Debug, gui unit-test 1613/1617, perfab corpus2x +0.028% pictures identical in all 10 runs, perfops PASS
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | |
| |
| |
| |
| |
| |
| | |
runners, step 10b, its fourth part; the design round's step 1): Replica.input is now its two halves, pend (working name: the input stamped, numbered and pending, its message for the session in r.out) and applyPended (working name: settled, applied at once when it can be, its echo predicted), and Link.input sends between them, so the session starts its step while the client speculates (a key into a shell stops at pty_write and is undone, which the session no longer waits behind); Replica.input stays both halves for the tests and the walk; the client-path kit's key into a shell pane (a pardes --detach session and pardes --attach in a terminal, ReleaseFast, 6 blocks of 30 keys, before and after interleaved twice, the machine loaded 5 to 12): with the predicted echo off, the shell's own echo (the whole round: the client's input sent, the session's step, the pty, the delta, the client's frame) first shown at min 16.05/16.00 -> 15.83/15.83 ms, median 16.30/16.27 -> 16.15/16.15 ms, the client's instructions a key 8.46M/8.77M -> 8.46M/8.52M, the session's 1.138M -> 1.138M; with the echo on (the predicted echo drawn at once) median 0.74/0.71 -> 0.95/0.70 ms, within its noise. Gate: tui core-test 837/980 (143 skipped), shell-test 1015/1018, term-test 15/15, pane-test 183/184, kitty-test 45/45, behaviour-test 275/275 and --replay 275/275, process-test lspcomplete and lspcompletemoved (the base's) and `Lspinfo opens one +Lsp pane` (a Hangup in the loaded run; alone three times of three PASS); gui unit-test 1613/1617 with the base's BaselineHarnessMismatch; the soak (--clients 5) as change 3's, diverged 0, unequal 0, deltas wrong 0, quiet checks 526/0, 550/0, 811/0, unlisted 0 (its delayed link reads the socket after the loop's pass, so the order of send and apply is not visible to it); daemon.py plain, --far, --games, --window-clients, --upgrade from pardes-tree's pfx-base to this and back; the macOS library for Linux and aarch64-macos and the FreeBSD tui configure; rollback-bench runs; gate-w run3-4 against tree1: frames 77/77 byte-identical in Debug, unit-test 1613/1617 (no failure the base has not), the alternated windows' pictures identical in all 10 runs, corpus2x +0.061%, perfops 97 counts within 0.1% (largest image-frame on longline +0.032%)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| | |
| |
| |
| |
| |
| |
| | |
client loop (the reorganisation's runners, step 10b, its third part; the user's ruling: a client's yank fills the CLIENT's clipboard, always): since 12a the session's host no longer makes them for a view a client draws, and its view counts each request (View.yanks, pastes, links and the link), so until now a far client's yank, paste and link did nothing on either machine; after each settle the loop compares the view's three counts with those it has acted on (Link.yanks, pastes and links, from the joined dump's at each join, so a join does none again; only a count that moved forward, so a rollback that puts one back and makes it again is not a second) and its frontend acts on the machine it is shown on: copy (register `+`: the terminal's OSC 52 through vaxis, the window's SDL clipboard), paste (the terminal asks its clipboard and the answer comes back as a paste through the loop's input, the window sends the clipboard's text as a paste at once), open (look.openLink); three more frontend calls, the soak's frontend counting them (y/p/l in its stops line) and answering a paste with one; the soak types ClipYank and ClipPaste now and then; a test through the loop over a frontend that draws nothing (runtime/client.zig: a client's ClipYank, ClipPaste and Look of a URL each reach its frontend once, at once and not again when the session's unit confirms it, the link as typed, and the session's host is asked none of them). Gate: tui core-test 837/980 (143 skipped: the base's and the new test), shell-test 1015/1018, term-test 15/15, pane-test 183/184, kitty-test 45/45, behaviour-test 275/275 and --replay 275/275, process-test 2 of 144 failed (lspcomplete and lspcompletemoved, the base's; headersweep, winch and lsp-client failed once and passed again in the run); gui unit-test 1613/1617 with the base's BaselineHarnessMismatch; the soak (--clients 5) diverged 0, unequal 0, deltas wrong 0, quiet checks 526/0, 550/0, 811/0, unlisted 0, the clients' frontends did 3 yanks and 9 pastes (2/3, 0/3, 1/3), stopped 41/72/71 of 1846/1727/2015, mispredicted 29/40/39 at rtt 30/80/207 (its random inputs changed: ClipYank and ClipPaste among them); daemon.py plain, --far, --games, --window-clients, --upgrade from pardes-tree's pfx-base to this and back; the macOS library for Linux and aarch64-macos and the FreeBSD tui configure; rollback-bench runs; gate-w run3-3 against tree1 PASS: frames 77/77 byte-identical in Debug, unit-test 1613/1617 (no failure the base has not), the alternated windows' pictures identical in all 10 runs, corpus2x -0.105%, perfops 97 counts within 0.1% (largest image-frame on longline +0.026%)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| |/
|
|
|
|
|
| |
run (the reorganisation's runners, step 10b, its second part; the user's rule: replica bugs caught by a soak that does what real use does, twice hidden by a hand-written imitation): each client of test/replicas.zig is runtime/client.zig's Loop over a frontend of the soak's own (a terminal's or a window's by turns: it draws no pixels but counts its frames and keeps the facts a window reads; a window's size posted from its own pass; a terminal holds a key already one pass in four, so no copy then; its wait is the delayed link's next message, a wake it asks for one timer at a time on the soak's clock), driven as a loop woken from outside (Loop.pass up to its wait, Loop.woken after what woke it), so its mirrors of the two loops are deleted (Client.draw, own, within, pass, and the quiet check imitated on the soak's clock: the link's own quietCheck now runs, its clock the soak's through Link.now as Echo.now is); its host has every entry (replica.everyEntry, which 12b's FullHost is now too: pty_resize, watch_file, watch_theme, open_link, pipe, search and the rest do nothing unless the soak's), and an input whose stop's name replica.may_wait does not list fails the run, said with its input (replica.mayWait; the soak's random inputs cannot be named as the walk names them, so by the name alone): the soak found seven names the list did not have, all a far client's by design, now rows with why (Search's rows, a session worker's: `search`; a +Preview's file, the session's disk: `preview`; a kind whose state is its own on the session, a PDF's, its search, a place in it, its word, its open and its close: five rows on a new pane kind `addon`, which the walk does not stand in and never judges stale); the stops by name, the wakes asked and the frames drawn are a line per rtt; the leftovers go (Stats.unspeculated and its column, Proc with enter and current: the distrusted list is the client's, the stale comment about config.tab_now); and a new check, the frame corpus through a client (corpusCase): the corpus's scenes (a wheel, a click, a jump, TaglineSize, a markdown file, three columns, a dirty pane, InactiveDim, WindowOpacity, ligatures, Zerox, a resize) typed into a session's own view drawn by its own pump and, the same, through the client loop into a client's view of a second session of the same files, the session's unit back at once; after each, the two frames a frontend draws from (cells, cursor, chrome, regions, the facts beside them, the placements) are the same: 22 scenes, 25 frames own and 24 through the client, every one the same. Gate: the soak on the shared loop (--clients 5, 4 seeds) diverged 0, unequal 0, deltas wrong 0, quiet checks 489/0, 556/0, 700/0, mispredicted 32/36/43, stopped 87/43/81 of 1784/1806/1977 at rtt 30/80/207 (pty_write 54/9/47, the kinds' 20/19/20, resolve 6/8/4, search 2/4/4, the authority's own state 3/2/3, close a terminal 0/0/3, kind 1/0/0, detach 1/1/0), unlisted 0, 216 s (the base's 230 s); tui core-test 836/979 (143 skipped), shell-test 1014/1017, term-test 15/15, pane-test 183/184, kitty-test 45/45, behaviour-test 275/275 and --replay 275/275, process-test 2 of 144 failed (lspcomplete and lspcompletemoved, the base's); gui unit-test 1612/1616 with the base's BaselineHarnessMismatch; daemon.py plain, --far, --games, --window-clients, --upgrade from pardes-tree's pfx-base to this and back; the macOS library for Linux and aarch64-macos and the FreeBSD tui configure; rollback-bench runs; gate-w run3-2 against tree1: frames 77/77 byte-identical in Debug, the alternated windows' pictures identical in all 10 runs, corpus2x -0.055% (PASS), perfops 97 counts within 0.1% (largest image-frame on large +0.031%); its unit-test 1608/1616: the gate was started in the background (`&`), so SIGINT was ignored down to its test shells and the four host_io tests whose Ctrl-C must end a foreground job failed; the same unit-test run detached but not so (setsid, no terminal) 1612/1616 with the base's BaselineHarnessMismatch only
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| |
|
|
|
|
|
| |
the frame and one record beside it (the reorganisation's runners, step 10a, on the line as it is now): surface.Facts, the core's (Pardes.facts) and pointed at by the frame it is filled for (Surface.facts), filled by draw.place in the walk over the panes it makes anyway and by a runner after an input it applied (draw.facts), carries what a frontend took from the core (the view's size, cell pixels and row metrics, each open pane's rectangle, tag rows, context rows, serial, whether a terminal whose program takes the wheel or a kind's, its mode, the jumps' back and forward, the settings it draws by); the window keeps a copy (Gui.facts) with the frame it shows (Gui.frame) and its hit tests, wheel, touchpad rows, timedemo, blink, overlays and dim read only those; Host.present returns whether the frame was shown, so present_skipped leaves the core and nothing writes it; the frame statistics are the runner's (Options.frames, Pardes.frames a pointer to them), which the frontends write and the core's draw reads; Replica.draw returns the shown and keeps needs_frame itself, so the two client loops put nothing back; OwnView and Replica.within are deleted (the window client's own pass reads its facts, its inputs fed after each event as before); rollback-bench compiles again; the tape's watched fields lose present_skipped and present answers a bool, so the semantics word moves (0900e560fd6395ef, pardes-seam-b's, -> 2f615168fe07b35f). The first version (psvoxrup, on pardes-tree) kept the record by value in every Surface, and every Surface a tag line builds for a moment copied its 1.3 KB more: +1,556 instructions an image-frame, +3,763 a render (perf record: memcpy); now perfops against tree1 97 counts within 0.1%, largest image-frame +0.029%. Brought onto pardes-seam-b: the client set-up keeps the Distrusted list beside the runner's frame statistics, Options' local fields both, and the rollback test's present answers a bool. Gate: frames 77/77 byte-identical in Debug, the alternated windows' pictures identical in all 10 ReleaseFast runs, corpus2x -0.039% (PASS); tui core-test 836/979 (143 skipped), shell-test 1014/1017, term-test 15/15, pane-test 183/184, kitty-test 45/45, behaviour-test 275/275 and --replay 275/275, process-test lspcomplete and lspcompletemoved (the base's) and grep (passed alone three times of three); gui unit-test 1612/1616 with the base's BaselineHarnessMismatch; replicas --clients 5 diverged 0, unequal 0, deltas wrong 0, quiet 470/0, 600/0, 764/0; daemon.py plain, --far, --games, --window-clients, --upgrade both ways (from pardes-tree's pfx-base); the macOS library for Linux and aarch64-macos and the FreeBSD tui configure; rollback-bench runs
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| |
|
|
|
|
|
| |
the machine (the reorganisation's 12b, the design round's step 4 and its finds): DumpDir's check whether its directory may be written (fs.deniedAbove in config.Runtime.apply, two `access` calls in a step) is the session's disk's answer, tape.value(.denied) as a failed save's is, and Font <name> and Fonts, which walked the machine's font directories in a step (dev/fonts.list), ask the session's machine through a new site, `fonts` (a far client's Font or Fonts waits a round trip; its replay takes the session's answer); each was a real fault: a client on another machine diverged at its replay of the session's unit, a test each at the end of core/replica.zig (a directory the session may not write and the client may, the setting refused on both; a face the session's machine has and the client's lacks, its family renamed so no installed face shares it, listed and chosen alike on both), each shown failing on the change before (the digests differ); Edit's pipe environment (host_io.commandEnv) is shown harmless and left as it is: it is kept in Pipe.edit_run, `.authority` state (Pipe.zig:21: in no digest and no copy), read only by the host's `pipe` entry, which a client never calls (a speculation records the void call, a replay answers from the tape); the check, the twin of allowed_vars, at the end of core/root.zig: per file of core/, the lines outside tests naming std.c., libc., std.posix., getenv, std.Io's File, Dir, net or Threaded (not Dir.path, a path's text, nor max_path_bytes) or importing dev or runtime, against one list, machine_lines, 34 files and 313 lines, each file with why; a file whose count moves is named with its lines, shown failing once (a getenv added to Messages.zig: 7 lines against 6, its line 891 named); found by it and not changed: Messages.noTime reads PARDES_NOTIME in a step (a test's knob: set on one side only it would diverge); may_wait gains Font and Fonts at `fonts` in a window's build; Stats.unspeculated is not deleted: its only reader is the soak's (test/replicas.zig: the field, its sum, the view column), a file another agent is rewriting; the semantics word moves again (a site added), 517cd1c276996a3c -> 0900e560fd6395ef; tui core-test 836/979 (143 skipped), shell-test 1014/1017, pane-test 183/184, behaviour-test 275/275 and --replay 275/275, process-test 2 of 144 failed (lspcomplete, lspcompletemoved, the base's), replicas --clients 5 diverged 0 unequal 0 deltas wrong 0 (1827/0, 1596/0, 1803/0) quiet differ 0 (422/0, 563/0, 655/0) at 30/80/207 ms, stopped 89/73/108, mispredicted 37/34/36, gui unit-test 1612/1616 (its perf check's BaselineHarnessMismatch the base's), daemon.py plain, --far, --games, --window-clients pass; gate-w seam-b-4 against tree1: 77/77 frames byte-identical in Debug, its unit-test 1612/1616, perfab corpus2x +0.047% (pictures identical in all 10 runs), perfops 97 counts within 0.1% (largest +0.0199%, body-appends on longline)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|
| |
|
|
|
|
|
| |
reorganisation's 12b, the design round's step 3; the user's ruling P16 and the lean put with P17: a far client's `~`, default shell and "is this shell installed" are the session's): its home (`~`) and the shell its terminals run when no `Shell` is set ($SHELL if executable, else /bin/sh) are fields beside `session_dir`, `session_home` and `session_shell` (working names, the user's to rule), each read once with `session_dir` by Pardes.readSessionFacts (tape.value(.env): a replay of the boot reads the session's answers), at the session's start and after a load of a dump made before they were dumped, and carried by the dump; `sessionDir` no longer fills itself at first use (it was filled at the start already), and a client's step reads the session's, never its own machine's: Pardes.expandHome (`~` the session's home; `~user` a passwd read, taped, as before) at Save, a tag's name, Theme's path, Get, Incl, a Look of `~/x`, a 9P name and pager, Dump's path, sam's B, e, r and w (sam_edit.World.home) and DumpDir's check (config.Runtime.apply takes the home); bare `Shell`, the shell a terminal runs, the settings report and its 9P twins read `session_shell`; "is this shell installed" (Shell <bin>, Term <bin>, a 9P exec) is a question to the session's disk, tape.site, so far away it waits a round trip instead of answering from the client's machine and rolling back; deleted: the value reads at config.defaultShell (now the process's read, made at the start alone) and at Core.sessionDir, and the tape's `cwd` tag (the directory is read under `env` at the start); fs.expandHome stays for this process's own home, the launcher's (runtime/main.zig) and the state file's directory and a Restore's name (the session's side: a client's Restore waits, its replay reads the tape); the tape's shape changes (`cwd` gone, `shell` a site), so the semantics word moves (the tape's shape now hashes the sites too: it did not see a site gone or added, and this change alone left it as it was), adacca2db2b39264 -> 517cd1c276996a3c: an old build and a new refuse each other's clients, in words; a test at the end of core/replica.zig (a joined client's own `Look ~/x`, bare `Shell` and Tutor, a word run in the session's directory, record no `env` read; the client's shell and directory are the session's), shown failing on the change before (`Look ~/x` read the environment); not handled: a Restore of a dump carries that dump's facts (as `session_dir` did); tui core-test 833/976 (143 skipped), shell-test 1011/1014, pane-test 183/184, behaviour-test 275/275 and --replay 275/275, process-test 2 of 144 failed (lspcomplete, lspcompletemoved, the base's; hscroll flaked once), replicas --clients 5 diverged 0 unequal 0 deltas wrong 0 quiet differ 0 at 30/80/207 ms, stopped 89/73/108, gui unit-test 1609/1613 (its perf check's BaselineHarnessMismatch the base's), daemon.py plain, --far, --games, --window-clients pass; gate-w seam-b-3 against tree1: 77/77 frames byte-identical in Debug, its unit-test 1609/1613, perfab corpus2x +0.095% (pictures identical in all 10 runs), perfops 97 counts within 0.1% (largest +0.0198%, body-appends on longline)
Co-Authored-By: Claude Opus <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
|