# Performance take 6 — 0.66.2 against Rounds 1–12 on OpenTitan `hw` Before: **0.66.2, `71d13b5`**. After: **`HEAD` `aa2259b`** (Rounds 1–12; the binaries still say `lucisv 0.66.2`). Both built `--release` on the same machine on 2026-11-26, the baseline from a detached worktree. Target: OpenTitan `237c8216`, read-only throughout. Every number below is in a file under [`perf/take6-20261126/`](perf/take6-20261126/); the file is named beside each table. Spread is min / median / max unless a row says otherwise; "no measurable change" means the two versions' ranges overlap. ## Summary | measurement | N | 0.66.2 | HEAD | change | |---|---:|---:|---:|---| | `lucisv --style auto --check --no-cache hw` | 7 | 5 407 / 5 564 / 5 728 ms | **2 653 / 2 806 / 2 865 ms** | −2.76 s (−50 %) median; user CPU 49.9 → 21.2 s; peak RSS 981 → 699 MiB median | | `lucisv --check --no-cache hw` (default style) | 7 | 1 028 / 1 077 / 1 118 ms | 990 / 1 036 / 1 073 ms | no measurable change | | same, peak RSS (18 threads) | 7 | 497 / 568 / 595 MiB | 590 / 654 / 715 MiB | **+86 MiB median (higher)** | | same, `--threads 1` | 5 | 4 166 / 4 210 / 4 269 ms, 291 MiB | **3 984 / 3 992 / 4 056 ms, 252 MiB** | −218 ms (−5 %), −39 MiB | | `lucisv --style lowrisc --check --no-cache hw` | 7 | 1 021 / 1 059 / 1 084 ms | 1 016 / 1 059 / 1 070 ms | no measurable change; peak RSS 574 → 674 MiB median (higher) | | `lucisv check hw` | 7 | 437 / 443 / 489 ms | 438 / 467 / 500 ms | no measurable change | | `lucisv check hw` findings | — | 1 182 | 1 178 | −5 `suspicious-semicolon`, +1 `incomplete-assignment` | | format verdicts over 4 046 files (every style) | — | 4 039 pass, 7 fail, 0 verification failures | identical | none | | LSP settings-push rescan of `hw` (`rescan.py`) | 8 | 681 / 703 / 730 ms | **615 / 642 / 673 ms** | −61 ms (−9 %) | | `documentSymbol` sent 5 ms into that rescan | 8 | 123 / 133 / 140 ms | **1.4 / 2.8 / 7.7 ms** | −130 ms | | LSP idle RSS after a cold workspace scan | 3 | 531 MiB (all three) | **479 MiB** (all three) | −51 MiB; warm 466 MiB both | | LSP `didOpen pinmux_reg_top.sv` → definition | 3 + 3 | 60–74 ms (two runs) | 76–84 ms (two runs) | **+~14 ms (regression)** | | LSP `workspace/symbol 'aes'`, default scope | 3 + 3 | 1.4–3.2 ms (two runs) | 3.8–6.7 ms (two runs) | **+~2 ms (regression)**, same 256 results | | every other LSP phase (scan, nav, rename, code actions, completion, diagnostics, scan-under-load …) | 3 | — | — | no measurable change, except two single-run cells (eager code action at fan-out 128 +5 ms; one `widen` cell +9 ms) | | MCP `find refs:true`, multi-declaration (`rst_ni`), warm | 10 | 7 693 / 7 800 / 8 771 ms | **1 994 / 2 032 / 2 315 ms** | 3.8× faster, identical answer | | MCP `find refs:true`, single declaration, warm | 10 | 1 084 / 1 099 / 1 127 ms | **408 / 415 / 466 ms** | 2.6× faster, identical answer | | MCP `find refs:true`, qualified `aes_core.AES192Enable`, warm | 10 | 1 104 / 1 115 / 1 175 ms | **470 / 474 / 524 ms** | 2.4× faster, identical answer | | MCP `check {}` (whole design), cold | 5 | 2 200 / 2 220 / 2 224 ms | 2 234 / 2 254 / 2 280 ms | +34 ms (+1.5 %, ranges disjoint) | | MCP `check` on a directory / a glob | 5 + 10 | refused (`is not a file` / `does not exist`) | 36 / 37 ms warm, `ok` | new in Round 3; not comparable | What matters most: 1. **`--style auto` halved.** The only CLI wall-time change over the whole tree, and it is the one Round 5 set out to make (`docs/features/parser-formatter-r5/README.md`, "parse-once `--style auto`", which measured 2.66–3.01 s against 5.04–5.46 s; this run reproduces it). 2. **MCP reference search is 2.4–3.8× faster** with byte-identical answers. Round 3 wired cached `FileFacts` (`KnownFacts`) into `find` (`docs/features/mcp-hardening-r3/README.md`, #37/#40); the speed-up is consistent with that, and the cold first call still pays the whole-set read. 3. **A rescan no longer holds a buffer-local request for ~130 ms**, and the rescan itself is 9 % shorter: `cache_open` went from 70 ms to 0 and the discovery walk is sliced (24 slices, longest 11.5 ms). Both are Round 10's (`docs/features/server-scaling-r10/README.md`, #58 and `IndexCache::reopen`), which measured 703 → 636 ms on the same tree. 4. **Regressions:** the multi-threaded formatter's peak RSS rose by ~90–100 MiB (default and `lowrisc`) while single-threaded peak RSS *fell* 39 MiB — the cause is not established; `didOpen` of the 42 192-line `pinmux_reg_top.sv` costs ~14 ms more (reproduced in a second run with the order reversed); `workspace/symbol` costs ~2 ms more (reproduced). None of the three is attributed to a round: not bisected. ## CLI — format Source: `cli/cli-timing.jsonl`, `cli/cli-timing-threads1.jsonl`, `cli/cli-timing-summary.md`; driver `scripts/cli_time.py` + `scripts/timer.py`. One untimed warm-up per binary per command, then N timed runs with the before/after order swapped every pair. Each run is `tools/guard.sh -m 8 -t 600 -- python3 timer.py -- lucisv …` with `cwd` in the scratch directory; wall time is measured inside the guard, peak RSS is the child's `ru_maxrss`. | `hw`, `--check --no-cache` | N | 0.66.2 wall ms | HEAD wall ms | 0.66.2 peak RSS MiB | HEAD peak RSS MiB | |---|---:|---|---|---|---| | default style | 7 | 1 028 / 1 077 / 1 118 | 990 / 1 036 / 1 073 | 497 / 568 / 595 | 590 / 654 / 715 | | `--style auto` | 7 | 5 407 / 5 564 / 5 728 | 2 653 / 2 806 / 2 865 | 897 / 981 / 1 039 | 660 / 699 / 719 | | `--style lowrisc` | 7 | 1 021 / 1 059 / 1 084 | 1 016 / 1 059 / 1 070 | 523 / 574 / 631 | 638 / 674 / 705 | | default style, `--threads 1` | 5 | 4 166 / 4 210 / 4 269 | 3 984 / 3 992 / 4 056 | 291 / 291 / 292 | 249 / 252 / 253 | Every run of both versions reports the same work: `3967 files would be reformatted, 72 files left unchanged, 7 files failed to format` (default and `auto`), `3976 / 63 / 7` (`lowrisc`), exit 2. The handoff's expected 4 046 / 4 039 / 7 is confirmed for both. The peak-RSS rise appears only with all 18 workers: on one worker HEAD uses less memory and is 5 % faster (ranges disjoint). The `sweep.sh` cells below show the same direction on every tree (`hw/ip` 245 → 268 MB, `hw/vendor` 64 → 83 MB, `hw/dv` 41 → 51 MB, maximum of five tries). How many files are in flight at once, or what each worker keeps, would explain it; neither was measured. ### `tools/perf/sweep.sh`, five trees Source: `cli/sweep/*.txt` (per-file lines removed; `sweeptable.py` output on the trimmed logs is identical to the untrimmed run), `cli/sweep/sweeptable.md`, `cli/sweep/sweep-order.log`. Driver `scripts/sweep_alt.sh` ran `sweep.sh … 5 ` one tree at a time, alternating which binary went first. Values are seconds, first try / range of tries 2–5, `/usr/bin/time` resolution 10 ms. | tree | command | 0.66.2 | HEAD | |---|---|---:|---:| | `hw/ip` | `format --check`, cold | 0.32 / 0.32–0.35 | 0.31 / 0.32–0.36 | | `hw/ip` | `format --check`, warm | 0.32 / 0.31–0.33 | 0.31 / 0.31–0.34 | | `hw/ip` | `check` | 0.20 / 0.19–0.20 | 0.19 / 0.19 | | `hw/ip` | `check --select error,warning,style` | 0.23 / 0.22–0.23 | 0.23 / 0.22–0.23 | | `hw/dv` | `format --check`, cold | 0.03 / 0.03–0.04 | 0.03 / 0.03–0.04 | | `hw/vendor` | `format --check`, cold | 0.05 / 0.05 | 0.05 / 0.05 | The other cells (`hw/top_earlgrey/ip`, `hw/top_darjeeling/ip`, warm and lint cells of `hw/dv` and `hw/vendor`) are 0.01–0.05 s in both versions with identical first/repeat values; they are in `sweeptable.md`. No timing change is measurable at this resolution. Cold tries had 0 cache hits in every cell; warm tries hit 30 (`hw/ip`), 3 (`hw/dv`), 12 (`hw/vendor`) files in both versions. ## CLI — lint Source: `cli/check-0.66.2.txt`, `cli/check-HEAD.txt` (sorted, paths relative to the corpus), `cli/check-diff.txt`, `cli/rules-*.txt`, `cli/rules-delta.txt`. Timing is in the table above (no measurable change, 437–489 vs 438–500 ms). `lucisv check hw`: **1 182 → 1 178** findings, 1 file not checked in both (`riscv_core_setting.tpl.sv`, a lex error). 38 of 40 rules that fire have identical counts. The rule set grew by `missing-port-direction` (Round 7, default-on); it reports **0** on `hw` (also checked alone with `--select missing-port-direction`). Every difference, by rule: | rule | 0.66.2 | HEAD | the findings | why (source) | |---|---:|---:|---|---| | `suspicious-semicolon` | 5 | 0 | `aes_scoreboard.sv:882,883`, `ibex_mem_intf_monitor.sv:59`, `ibex_mem_intf_response_driver.sv:43`, `ibex_icache_mem_driver.sv:36`: all `while (fifo.try_get(item));` | Round 7 exempts the `while ();` drain idiom (`docs/features/linter-hardening-r7/README.md`) | | `incomplete-assignment` | 0 | 1 | `ip/rom_ctrl/dv/tb/tb.sv:158`, `after_kmac_handshake` assigned on two of three paths of an `always_comb` | Round 7's nested-miss fix; the README records this exact hit as a real latch | | `missing-port-direction` (new) | — | 0 | — | Round 7 | The same six lines are the only difference in `tools/perf/outcomes.sh`'s per-tree runs (`cli/outcomes/`): `check` 452 → 451 on `hw/ip` and 232 → 229 on `hw/vendor`, `check --select error,warning,style` 8 388 → 8 387 and 1 587 → 1 584 (`check-select.diff`; the two 2 MB outputs are kept as hashes in `sha256.txt`), and `format.txt` is identical between the versions. The count matches Round 7's own record (1 182 → 1 178). ## LSP — by phase Source: `lsp/results.jsonl` (every `bench.py` phase, both binaries), `lsp/summary.txt` (one comparison line per row, generated by `scripts/lsp_summary.py`), `lsp/run-order.log` (start time, exit code, load before and after, OpenTitan status, per phase and binary), `lsp/logs/`. Driver `scripts/lsp_all.sh`: each phase ran once per binary, `--tries 3`, under `tools/guard.sh -m 8 -t 1200`, order swapped every phase, separate index stores per label. The harness opens the OpenTitan **root** as its workspace (as in takes 4–5), so "workspace scope" means 4 043–4 044 indexed files. Values are ms, first try / range of repeats. ### Scan and first answer (`scan`, `scanprofile`, `scanwait`, `scanserve`, `widen`, `rss`, `snapshotrss`) | row | 0.66.2 | HEAD | | |---|---|---|---| | workspace, cold, settled (3 fresh sessions) | 1 616 / 1 503–1 519 | 1 518 / 1 506–1 516 | no measurable change | | workspace, warm, settled | 659 / 665–692 | 679 / 667–691 | no measurable change | | first useful answer, cold / warm | 46.7 / 46.0–46.7 · 83.1 / 85.4–87.1 | 45.1 / 43.9–48.4 · 86.9 / 83.2–88.6 | no measurable change | | default scope (124 files), cold / warm | 53–72 / 37–43 | 52–72 / 36–41 | no measurable change | | definition every 200 ms during a cold / warm scan | max 240 / 194 | max 226 / 195 | no measurable change | | idle RSS after workspace scan, cold | 531 408 / 531 504 / 531 360 KiB | **478 912 / 478 384 / 478 944 KiB** | −51 MiB | | idle RSS after workspace scan, warm | 466 080–466 192 KiB | 466 000–467 888 KiB | no change | | idle RSS, 10 / 100 open buffers with quick fixes | 476 / 626 MiB | 476 / 627 MiB | no change | | index store on disk | 49 448 KiB | 49 448 KiB | none | `scanprofile` (one traced scan per row) splits the warm workspace scan: discovery 79 → 87–93 ms of which `sort` 0.35 → 5.7 ms (Round 10 sorts the sliced walk's result; its README's fix round records the sort at ~50 ms on 40 000 files), `slice_max` 8 ms over 37 slices (absent in 0.66.2). Totals 660 → 690 ms on one trace each; the three-session settled times above overlap, so the stage difference is not visible end to end. HEAD indexes **4 043** files where 0.66.2 indexes 4 044: `hw/ip/tlul/rtl/tlul_adapter_shim.sv` is the tree's one symlinked source, which fits Round 2's `(dev, ino)` dedup (`docs/features/index-lifecycle-r2/README.md`); which entry was dropped was not checked. With 100 open buffers HEAD reads 3 983 files from disk instead of 4 044, and its walk ran in 2 slices with `slice_max` 82 ms instead of 37 slices of ≤ 8 ms; this was seen in one trace and not investigated. At `scopeDepth 0`, warm, 0.66.2 traces two scans (a whole scan of 0 files, then a one-file widen) and HEAD one whole scan of 1 file; settled times overlap (13–15 vs 11–13 ms in `scanprofile`, 8–13 ms both in `scan`). The cold-RSS drop is not attributed: Round 10's streaming compaction is recorded at −0.47 GB peak on 40 000 files, but this row is idle RSS, not peak. Likely, not verified. `widen` (16 cells): 15 overlap or differ by at most 1.3 ms; `aes.sv` at the default scope, warm, is 37–41 → 47–50 ms (one run, not rechecked). ### Scan under load (`scanload`, `scanloadcold`, `scanloadcross`) Source: `lsp/scanload-summary.md`, `lsp/scanloadcold-rerun-summary.md`, `lsp/results-scanloadcold-rerun.jsonl`. Every cell: 3 fresh sessions, a fixed number of definitions at 100 or 250 ms, every request answered, **0 mismatched and 0 unsettled answers** in both versions. Median request wait 0.6–0.9 ms in every loaded cell of both. The first `scanloadcold` run (0.66.2 first) put HEAD's quiet cold controls 85–95 ms higher (e.g. 1 513–1 518 → 1 600–1 627 ms) and its loaded cold cells 80–170 ms higher. A second run with HEAD first overlaps in every cell (quiet, no extra buffer: 1 547–1 673 vs 1 581–1 588 ms), and the `scan` / `scanwait` cold sessions above overlap too. The first-run gap therefore went with run order or time of day (the load average went from 1.8 to 4.6 during HEAD's first run), not with the binary: **no measurable change**. Warm cells and `scanloadcross` overlap in both versions. ### Requests at a cursor (`nav`, `scopes`, `flush`, `didopen`, `diagnostics`, `completion`, `tailcompletion`, `hierarchy`) Every `nav` row overlaps: definition 0.05–0.16 ms, hover 0.07–0.61, references on `aes` 0.83–2.70 (14 results both), `foldingRange` 0.05–0.51, `semanticTokens/full` 0.23–0.77, inlay hints 0.22–1.10. `flush` (`didChange` → `foldingRange` barrier) 0.36–1.01 ms both. `diagnostics` (≈150 ms debounce) 153–163 ms both. `completion` at nine prefixes 0.19–6.48 ms, 512 items both. `lucisv/moduleHierarchy` 23–36 ms both. **No measurable change.** `baseline`'s `initialize` is one sample per binary (199 vs 170 ms) and its transport floor is a rejected-by-design request (0.03–0.11 ms both); no conclusion is drawn from either. Two rows moved and were re-run with HEAD first (`lsp/results-recheck.jsonl`, `lsp/recheck-summary.txt`): | row | 0.66.2 run 1 · run 2 | HEAD run 1 · run 2 | |---|---|---| | `didOpen pinmux_reg_top.sv` → definition | 63.4 / 71.8–73.6 · 62.9 / 60.2–67.6 | 77.2 / 80.3–83.9 · 80.6 / 76.4–83.8 | | `workspace/symbol 'aes'`, default scope | 3.24 / 2.24–2.26 · 3.11 / 1.44–1.61 | 6.71 / 3.87–4.45 · 5.33 / 3.79–4.66 | | `workspace/symbol 'aes'`, workspace scope | 10.3 / 6.40–7.58 · 5.76 / 4.78–5.13 | 12.5 / 7.73–9.11 · 8.17 / 6.83–7.32 | | `blockers`: `workspace/symbol` queued behind rename | 11.6 / 11.9–12.5 | 15.6 / 14.5–14.9 | Both regressions reproduce. The other three `didOpen` files overlap. `crates/lucisv_server/src/symbols.rs` is unchanged between the versions; the index paths underneath it were touched by Rounds 1, 2, 4, 8, 9 and 10. Not bisected, so not attributed. ### Code actions, refactorings, rename (`verbose`, `codeaction`, `portaction`, `refactor`, `execute`, `offerkinds`, `offerqueue`, `offeredit`, `actionprofile`, `ruleablation`, `extractrefuse`, `rename`, `tailrename`, `renametrace`, `renamewarn`, `blockers`) | row | 0.66.2 | HEAD | | |---|---|---|---| | eager code action, `prim_flop_2sync` (fan-out 128) | 262 / 237–242 | 274 / 244–247 | +5 ms on repeats, one run | | eager code action, fan-out 1 / 6 / 42 / 67 | 12–23 / 43–66 / 127–153 / 196–225 | 12–21 / 42–68 / 128–159 / 192–228 | no measurable change | | lazy offers, all five fan-outs | 0.26–4.50 | 0.48–4.81 | no measurable change | | connect-missing-ports resolve | 87 / 61–63 | 89 / 61–64 | no change, same fingerprint | | extract-module command | 104 / 75–77 | 99 / 76–78 | no change, same fingerprint | | `rename aes` (9 files) | 109 / 91–93 | 112 / 91–93 | no change, same fingerprint | | tail rename `state_q` (`tailrename`, run 1 · run 2) | 539 / 490–506 · 557 / 498–536 | 583 / 548–570 · 556 / 491–504 | run 1 higher, run 2 overlaps: no measurable change | | tail rename `state_q` (`renametrace` · `renamewarn`) | 545 / 499–511 · 552 / 485–505 | 548 / 496–520 · 545 / 485–502 | no measurable change | | refused renames (common port, conflict, many spellers, duplicate module) | 423–996 | 424–986 | no measurable change, same refusal sentences | | first offer after a `didChange`, pinmux comment | 73 / 52–55 | 70 / 52–54 | no change | Every edit-bearing row has the same fingerprint and result count in both versions; every refusal has the same sentence. `renametrace`'s stage trace for the tail rename is identical in selected files (683), bytes (15 189 287) and rung counts; `parses_edits` is 11 in 0.66.2 and 18 in HEAD (203 vs 196 whole-file parses in total) with no measurable time difference. Round 1's deterministic fixed-point pass in `carry.rs` (`docs/features/refactor-correctness-r1/README.md`) is a candidate for the extra parses; not verified. `offerkinds`, `ruleablation` and the repeated rows of `actionprofile` are 0.03–1.3 ms requests where 3 tries cannot separate differences of tens of microseconds; individual rows differ in both directions (e.g. `ruleablation` `unpacked-dimensions-range-ordering` 1.31–2.62 → 0.38–0.44 ms, `suspicious-semicolon` 0.14–0.15 → 0.56–0.57 ms). No conclusion is drawn from them. `ruleablation` gained a `missing-port-direction` row (HEAD only, 0.33–0.73 ms). ### Rescan (`tools/perf/rescan.py`) Source: `lsp/rescan.jsonl`, `lsp/rescan-summary.txt`, `lsp/logs/rescan.*.log`; driver `scripts/rescan_alt.sh`. `--trigger settings` (a settings push that owes a whole rescan and writes nothing, the form the script documents for the read-only corpus), `--tree` = `hw`, `--open ip/aes/rtl/aes_cipher_core.sv`, `--probe`, 4 rescans per session, two sessions per binary, alternating. The baseline emits every trace line the script parses except `slice_max` and `slices`, which Round 10 added. | stage (ms, N = 8) | 0.66.2 | HEAD | |---|---|---| | whole rescan, server | 681 / 703 / 730 | **615 / 642 / 673** | | `documentSymbol` sent 5 ms after the push | 123 / 133 / 140 | **1.4 / 2.8 / 7.7** | | `cache_open` | 65.5 / 69.7 / 70.7 | **0.0 / 0.0 / 0.0** | | discovery (walk + sort) | 61 / 67 / 72 | 62 / 71 / 83 | | longest discovery slice | — (one piece) | 10.5 / 11.5 / 12.7, 24 slices | | decode / absorb / candidates | 125 / 190 / 75 | 126 / 194 / 73 | | peak RSS during a rescan | 734 / 798 / 822 MiB | 660 / 718 / 737 MiB | Round 10's README measured the same rescan at 703 / 722 / 755 → 616 / 636 / 656 ms; this agrees. In both versions RSS climbs across successive rescans within a session (0.66.2 521 → 812 MiB over four, HEAD 470 → 740 MiB); not investigated. ## MCP Source: `mcp/mcp.jsonl` (one row per request), `mcp/summary.md`, `mcp/declarations.jsonl`, `mcp/check-full-answer.diff`, `mcp/mcp-run.log`; probe `mcp_probe.py`. One fresh `lucisv-mcp --read-only --root …/opentitan/hw` process per session (no `--index-cache`, each under `tools/guard.sh -m 8 -t 600`), 5 sessions per scenario per binary, alternating; each session sends `initialize`, `tools/list`, then the scenario's call once (cold) and twice more (warm). Wall time is request line written → response line read. Argument shapes are the same in both versions (`find {name, refs}`, `check {file?}`, `hierarchy {}`), read from `crates/lucisv_mcp/src/tools/`. | call | 0.66.2 cold (N=5) | HEAD cold | 0.66.2 warm (N=10) | HEAD warm | answer | |---|---|---|---|---|---| | `initialize` (all 35 sessions) | 4.5 / 9.4 / 11.3 ms | 4.7 / 9.1 / 10.4 ms | — | — | 491 → **478 B** (`"prompts": {}` removed, Round 3); instructions 297 B both | | `tools/list` | 0.1 ms | 0.1 ms | — | — | 5 tools; 2 361 → 2 387 B | | `hierarchy {}` | 1 110 / 1 114 / 1 121 | 1 122 / 1 124 / 1 140 | 85 / 91 / 96 | 85 / 91 / 103 | identical, 20 477 B; cold +10 ms (ranges disjoint), warm no change | | `find aes_cipher_core refs:true` (1 declaration) | 2 105 / 2 122 / 2 193 | **1 443 / 1 448 / 1 584** | 1 084 / 1 099 / 1 127 | **408 / 415 / 466** | identical, 8 lines | | `find aes_core.AES192Enable refs:true` (qualified) | 2 141 / 2 148 / 2 159 | **1 487 / 1 505 / 1 569** | 1 104 / 1 115 / 1 175 | **470 / 474 / 524** | identical, 4 lines | | `find rst_ni refs:true` (≥ 300 declarations, uses capped at 5) | 8 770 / 8 910 / 10 206 | **3 031 / 3 071 / 3 107** | 7 693 / 7 800 / 8 771 | **1 994 / 2 032 / 2 315** | identical, 301 lines | | `check {}` (whole design) | 2 200 / 2 220 / 2 224 | 2 234 / 2 254 / 2 280 | 1 088 / 1 102 / 1 117 | 1 111 / 1 127 / 1 161 | 200 lines + `… and 1925 more` → `… and 1921 more` | | `check {file: "ip/aes/rtl"}` | 1 100 / 1 121 / 1 130, **refused** | 1 142 / 1 163 / 1 173, `ok` | 4.2 / 5.8 / 6.8, refused | 34 / 36 / 38, `ok` | not comparable | | `check {file: "ip/aes/rtl/*.sv"}` | 1 103 / 1 119 / 1 128, **refused** | 1 152 / 1 158 / 1 160, `ok` | 4.2 / 5.8 / 6.8, refused | 36 / 37 / 40, `ok` | not comparable | Cold rows include the first project walk (`indexed 4043 files in ~1 120 ms` on stderr, both versions). `check {}` reports 4 fewer findings in HEAD, consistent with the CLI's −5/+1 but not broken down by rule here (the answer is capped at 200 lines). It is 34 ms slower cold and 25 ms slower warm at the median; the cold ranges are disjoint, the warm ranges touch (1 111–1 117). The declaration counts behind the three `find` targets are in `declarations.jsonl` (1, 1, 300+ lines). The directory and glob forms are Round 3 features: 0.66.2 answers `` `ip/aes/rtl` is not a file. `` and `` `ip/aes/rtl/*.sv` does not exist under any root. `` (`isError: true`), so its 6 ms is a refusal's time. ## Correctness cross-checks Source: `cli/format-diff/`. `lucisv --style S --diff --no-cache hw` was run once per binary and style; the six streams (43–47 MB each) were split per file and hashed (`scripts/diffsplit.py`); only the comparison, the errors and the stream hashes are kept (`compare-*.json`, `errors-*.txt`, `raw-diff-sha256-and-bytes.txt`). | style | files with a diff, both versions | files whose diff differs | diff bytes 0.66.2 → HEAD | |---|---:|---:|---| | `lucisv` (default) | 3 967 | **413** | 46 044 776 → 46 100 438 | | `auto` | 3 967 | **576** | 45 809 685 → 42 982 463 | | `lowrisc` | 3 976 | **972** | 46 916 557 → 44 456 524 | No file gained or lost a diff in any style; the default set is a subset of both others, and the `auto` set a subset of `lowrisc` (972 files in the union). Samples (`samples.txt`, three files, the first 12 diff lines each): - `hw/ip/aes/rtl/aes_core.sv`, every style: the `#(…)` parameter-port list is now column-aligned (type, name, `=`), where 0.66.2 left each entry single-spaced. This is Round 6's item 1 (`docs/features/format-alignment-overrides-r6/README.md`). - `hw/dv/sv/sec_cm/prim_singleton_fifo_if.sv`, `lowrisc` only: the same parameter alignment (`Depth = 1`). - `hw/ip/aes/pre_dv/aes_tb/rtl/tlul_adapter_tb_reqs.sv`, `auto` only (the file resolves to `lowrisc`): parameter alignment plus named connections set tight to the widest name (`.tl_i (tl_i)`, `.err_o(…)` instead of `.tl_i (…)`, `.err_o (…)`), Round 6's `connection_align_min = 0`. The per-file classification of all 972 was not done; the three samples are the evidence for the characterisation. Round 5's README records default-style byte-identity over OpenTitan for its own changes and Round 12's records byte-identity to Round 11, so Round 6 is the only round between the versions that claims to change formatted output. **Verification failures: 0 in both versions, every style.** The seven failures are the same seven lex/parse errors in both (`errors-*.txt`: `edn_env_cfg.sv`, `keccak_2share_fpv.sv`, `spi_device_scoreboard.sv`, `compare_helper.sv`, `riscv_core_setting.tpl.sv`, `latch_map.v`, `riscv_instr_cover_group.sv`), and none of the stderr lines is a verification error. Lint deltas by rule are in the lint section; edit fingerprints, result counts and refusal sentences of every LSP refactoring row are equal between the versions; the four MCP `find`/`hierarchy` answers are byte-identical. ## What did not run, or could not be compared - **`scanloadcross` failed in `tools/perf`** for both binaries: `tools/perf/phases_r4.py:382` looks for `"tl_if tl_if ("` in `hw/ip/aes/dv/tb/tb.sv`, and this OpenTitan has `tl_if tl_if(.clk(clk), …)` (line 30). It was run from a scratch copy with only that needle changed (`lsp/scanloadcross-needle-workaround.diff`); those are the `scanloadcross` rows in `results.jsonl`. The committed script is unchanged. - **Viewport, sticky scroll and semantic-token range phases**: `tools/perf` has no such phase (the viewport harness of `docs/features/viewport-highlight/README.md` is not in the repository). `nav`'s `foldingRange` and `semanticTokens/full` rows are the nearest measured requests. No viewport number is reported. - **Large-file mode** (buffers over the 4 MiB threshold): no `bench.py` phase opens one; the largest measured buffer is `pinmux_reg_top.sv` (1.3 MB, regular path). - **`rescan.py --trigger create`** (the 40 000-file delete/create loop) was not run: it writes probe files into its tree, and the brief rules out the 40k tree. The settings-push form on `hw` was run instead. - **`probe` and `scanloadprobe`** are ad-hoc/self-check phases and were not run. - **MCP `check` on a directory and a glob** cannot be compared: 0.66.2 refuses both. - **Formatter output differences** are counted and sampled, not classified file by file. - **Causes of the three regressions** (parallel formatter peak RSS, `pinmux_reg_top.sv` `didOpen`, `workspace/symbol`) are not established; no bisection was done (the brief allows no checkout besides the baseline worktree). - **Guard kills: none.** Every guarded command exited by itself. ## Method and environment - **Machine:** Apple M5 Max (`Mac17,14`), 18 logical CPUs (6 + 12 in two performance levels), 36 GiB RAM, macOS 27.2.1 (`26B131`). `rustc 1.100.0 (0ef1bc386 2026-11-09)`, Python 3.15.2. `provenance.json` has binary SHA-256s. - **Builds:** `build-baseline.log` (worktree at `71d13b5`, 30.7 s) and `build-head.log` (main tree at `aa2259b`, 28.2 s), both guarded, both before any timing. The binaries were copied to the scratch directory and run from there, so a later build could not change them mid-run. - **Load:** one-minute load average 0.7–3.5 before every LSP phase (`lsp/run-order.log`) except HEAD's `ruleablation` and `snapshotrss`, which started at 8.8 and 6.0 after a spike during 0.66.2's `ruleablation` (no conclusion is drawn from `ruleablation`; `snapshotrss` is memory, and its rows match); 1.4–3.1 during the MCP run (`mcp/mcp.jsonl` `load1`). During the whole-`hw` CLI runs it read 3.6–14 because the formatter itself uses all 18 CPUs; `ps` showed nothing else using CPU at the start. Around 21:36 a Safari process and `spotlightknowledged` appeared; that is the period of HEAD's first `scanloadcold`, which was re-run. Nothing else of this task ran concurrently with a timed step. - **Repetition:** CLI N = 7 (N = 5 for `--threads 1`), MCP 5 cold + 10 warm per call per binary, LSP the harness's 3 tries per row (fresh processes where the phase says so), rescan 8. Before/after order alternated per pair, per tree, per phase or per session. - **Guard:** every binary run and script ran under `tools/guard.sh -m 8 -t 600` (CLI, MCP children) or `-t 1200` (whole-phase drivers, `sweep.sh`, `outcomes.sh`, `rescan.py`). `sweep.sh` and `outcomes.sh` also guard their own children at `-m 8 -t 1800`. - **Read-only corpus:** `git -C /Users/lucio/repo/opentitan status --porcelain` was empty before the first run and after every CLI sweep, every LSP phase (`run-order.log`, `ot_porcelain=0` on every line), the MCP run and the rescans. Formatter caches, index stores and diffs were written only to the scratch directory, which was deleted afterwards. - **Scripts:** `scripts/` holds the drivers exactly as run (`cli_time.py`, `timer.py`, `sweep_alt.sh`, `lsp_all.sh`, `rescan_alt.sh`, `diffsplit.py`, and the summarisers); they expect the scratch layout (`bin-base/`, `bin-head/` beside them) and are kept for provenance. `mcp_probe.py` runs from where it is (`--bin LABEL=PATH`, `--root`). - **Size:** `lsp/results.jsonl` is 1.2 MB, over the ~1 MB guideline: it is the harness's own row file for 35 phases × 2 binaries and every LSP number above comes from it.