<feed xmlns='http://www.w3.org/2005/Atom'>
<title>pardes.git/core/regexp.zig, branch main</title>
<subtitle>Pardes</subtitle>
<id>https://git.0x4200.cafe/pardes.git/atom?h=main</id>
<link rel='self' href='https://git.0x4200.cafe/pardes.git/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/pardes.git/'/>
<updated>2026-11-22T21:26:17Z</updated>
<entry>
<title>tests: what mvzr compiles it can walk: core/regexp.zig's test of that name searches `()a` on `b` and `a()b` on `a` (no match) and on `ba` and `xab` (what they match), expects `a|*` `|+` `(|?)` `|??` `^*` `^+?` `a|{2}` `({1))` `a{1b` refused, and searches every pattern up to five characters over `()|*+?a` and four over `()|*+?a^{1}` from every offset of `aa\n\na`: refused, or answered inside the budget (Debug: its test program runs in 50 ms); on this base it aborts at its first case, `()a` on `b` (index out of bounds, index 0 of len 0, mvzr.zig:999 `patternAcceptsEmpty` from `groupAcceptsEmpty` :1040 from `matchPattern` :333 of the build's patched copy: the frames of the abort in .scratch/sketch/reorg/merge57/replicas-2.log, where the soak's random typist, narrowing a selection by a regex (`s`) a key at a time, took its session down); outside the tree (.scratch/sketch/reorg/pardes-regex-2/enum: this core/regexp.zig over the build's patched mvzr in a safe build, a forked child per panic) 18,746 of the 960,799 patterns up to seven characters over `()|*+?a` panic, every one indexing an empty slice: `patternAcceptsEmpty` (an empty group with more after it: `()a`, `a()b`), `thisPattern` and `nextPattern` (a repeat right after `|`: `a|*`, `|*`, `|??`); over wider alphabets two more kinds, a repeat right after `^` (`^*`: reached unreachable code) and a count ending in neither `,` nor `}` (`({1))`: index 1 of len 1): 68,627 of 5,229,042 up to six over `()|*+?a^$.{}1`, 40,135 of 5,399,042 up to five over `()[]{},*+?|\^$.-a1xnbf`; the next change is the fix</title>
<updated>2026-11-22T21:26:17Z</updated>
<author>
<name>Gabriel Schneider</name>
<email>gbrls@0x4200.cafe</email>
</author>
<published>2026-11-22T20:56:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/pardes.git/commit/?id=f60f51fe89f1d3737389047cb2f3671b1b21e56d'/>
<id>urn:sha1:f60f51fe89f1d3737389047cb2f3671b1b21e56d</id>
<content type='text'>
Co-Authored-By: Claude Opus &lt;noreply@anthropic.com&gt;
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
</content>
</entry>
<entry>
<title>build: mvzr's reads past a pattern cut short are patched as it is fetched, 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)</title>
<updated>2026-11-19T21:22:50Z</updated>
<author>
<name>Gabriel Schneider</name>
<email>gbrls@0x4200.cafe</email>
</author>
<published>2026-11-19T21:21:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/pardes.git/commit/?id=e4f99d2370c8b44e76b541826d91356d86090f53'/>
<id>urn:sha1:e4f99d2370c8b44e76b541826d91356d86090f53</id>
<content type='text'>
Co-Authored-By: Claude Fable 5.2 &lt;noreply@anthropic.com&gt;
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
</content>
</entry>
<entry>
<title>regexp: a pattern that stops inside a count or a `\x` escape is refused 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%)</title>
<updated>2026-11-19T21:17:17Z</updated>
<author>
<name>Gabriel Schneider</name>
<email>gbrls@0x4200.cafe</email>
</author>
<published>2026-11-19T20:05:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/pardes.git/commit/?id=4262f3859814beef59c2dbd3e8a3db7dbf90e699'/>
<id>urn:sha1:4262f3859814beef59c2dbd3e8a3db7dbf90e699</id>
<content type='text'>
Co-Authored-By: Claude Opus &lt;noreply@anthropic.com&gt;
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
</content>
</entry>
<entry>
<title>core: src/ becomes core/, pardes.zig its root.zig (the reorganisation's tree, step 2d), and every mention of a src/ path follows: the build's paths, the core's imports of its root, the tests that read the repository's files by path (lspbench's, look.zig's spans over core/look.zig), the comments that cite files, the documents and the manual (the typst corpus reads core/tutor.txt and core/plumbing); left as they were: the /src tree's served names (src/pardes.zig and the rest are the 9P tree's, not the repository's), the CHANGELOG's history, fixtures that are only strings; fs-unit-test runs from the core's root (a module of the core rooted at fs.zig had the runtime's and the devices' `core` be fs.zig); nothing else changes: the ledger (pardes.test.* now root.test.*), frames byte-identical, replicas and process-test the base's</title>
<updated>2026-11-19T01:23:51Z</updated>
<author>
<name>Gabriel Schneider</name>
<email>gbrls@0x4200.cafe</email>
</author>
<published>2026-11-19T01:03:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/pardes.git/commit/?id=99f5b10eccd95aa0066ea6fe6bb75f367ab56a47'/>
<id>urn:sha1:99f5b10eccd95aa0066ea6fe6bb75f367ab56a47</id>
<content type='text'>
Co-Authored-By: Claude Opus 5.5 &lt;noreply@anthropic.com&gt;
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
</content>
</entry>
</feed>
