A subsuming widen was already incremental; its word merge was not
Take 2 filed the RTL didOpen freeze as a chooser bug; measuring with the HEAD binary refuted that — scope_dirs keeps every raised dir so subsumption is Added, and begin_widen has file-diffed against the index since the widen round; the 1.4-1.7 s figures were cold-store. The real cost was candidates.absorb inserting each new word into the sorted table one memmove at a time — quadratic in the batch, 403 ms of a 935 ms warm jump — replaced by a counted one-pass merge whose equivalence with build's sort is structural (43 ms). Warm hw/ip jump 935/881 -> 555/564 ms (QA: 872-880 -> 535-546 from its own builds); the residual is real work, 1 683 new files and a 325 ms word re-lex filed as the store's FACTS_FORMAT follow-up. The two previously accidental properties are now pinned, QA's five-mutation matrix confirming each test binds exactly its property. TODO.md carries take 2's other findings (codeAction big-fan-out zero-offers, inlayHint at default scope) as deferred items. Co-Authored-By: Claude Fable 5 <[email protected]>
This commit is contained in:
1 parent
e4407984cb
commit
37560cad5e
7 files changed
+831
-7
No files matched your search
@@ -150,6 +150,24 @@ that is provably a reporting decision with no effect on the index.
|
||||
as a whole rescan's overlay would; and a buffer that has grown past the
|
||||
large-file threshold is taken back out, which is the one thing a widen
|
||||
removes.
|
||||
- **What "already indexed" means is the index's own file list, and that is the
|
||||
whole of the rule (2026-08-29).** `begin_widen` walks the added directories
|
||||
and skips every path `self.index.files()` already holds. Three things follow,
|
||||
and all three are why the diff is by file rather than by folder:
|
||||
- **a folder that contains one already in scope costs only its own new
|
||||
files.** The two walks overlap completely over the old folder, and the
|
||||
overlap is skipped file by file.
|
||||
- **`.gitignore` and `exclude` differences between the old walk and the new
|
||||
one cannot make it wrong.** A file the new root's walk finds and the old
|
||||
one did not is simply not in the index, so it is indexed now; a file the
|
||||
new walk *stops* finding is not taken out, because a widen removes nothing
|
||||
it did not walk — which is the same trust in what is already indexed the
|
||||
round above states, not a new gap.
|
||||
- **the size cap keeps its meaning.** A capped file is not in the index, so
|
||||
it is never "already there": every widen that walks it checks its size
|
||||
again, skips it again, reports it again and counts it again. That is what
|
||||
keeps the skip counts and the `size > cap` log honest on a widen, and it is
|
||||
asserted in `a_widen_that_subsumes_the_old_scope_reads_only_the_files_it_adds`.
|
||||
- **The residual staleness, stated honestly — and it is a narrowing, not a new
|
||||
window.** A whole rescan re-reads every in-scope file, so until this round a
|
||||
widening `didOpen` *incidentally* caught anything that had changed on disk
|
||||
@@ -344,6 +362,38 @@ Nothing takes a directory out of the folder scope today, so the third arm is a
|
||||
rule kept rather than a case reached. `reindex_widened` defers to
|
||||
`rescan_wanted` — one whole rescan — when a scan is already running.
|
||||
|
||||
**A directory that subsumes one already in scope is an add, and always was
|
||||
(2026-08-29).** At `scopeDepth: 2` the routine second jump raises to a *parent*
|
||||
of the directory the first one raised to — opentitan's `hw/ip/aes` then `hw/ip`.
|
||||
That is a pure add here because `scope_dirs` raises **each opened directory on
|
||||
its own and keeps every answer**: the contained directory is still in `after`,
|
||||
beside the containing one, and nothing was lost. The rule as written is exactly
|
||||
right for it, and the round that went looking for a bug here found the code
|
||||
already correct and measured it to prove so
|
||||
(`widen_of_takes_the_cheap_path_for_a_pure_add_and_nothing_else`, subsumption
|
||||
row).
|
||||
|
||||
### `lucisv_server::candidates` — a batch of words is merged once (2026-08-29)
|
||||
|
||||
`Candidates::absorb` is unchanged in signature and in answer, and changed in
|
||||
cost: the workspace word table is a sorted `Vec`, and folding a batch in used to
|
||||
insert each new word into it on its own — one memmove of the table's tail per
|
||||
word, quadratic in the batch. It now counts the whole batch (`count_words`) and
|
||||
brings the table back in step in one merge pass (`merge_words`).
|
||||
`set_words` — the single-file door `update_words`/`remove_file` use — is those
|
||||
same two calls, so there is one implementation and not two.
|
||||
|
||||
The equivalence is by construction: `word_cmp` is a total order on distinct
|
||||
words, so merging a sorted run into a sorted table is the sort a whole
|
||||
`Candidates::build` would have run over the same counts. Pinned anyway by
|
||||
`a_batch_absorbed_leaves_the_word_table_a_whole_build_would_have_sorted`, whose
|
||||
one batch carries every case the bookkeeping can get wrong — a word only one
|
||||
file still holds, a word the batch takes from one file and gives back through
|
||||
another, a word nothing holds afterwards, and case variants. **This is a file
|
||||
outside this feature's usual set** (`candidates.rs` belongs to
|
||||
`completion-core`); it is flagged in the work log as the round's one deviation,
|
||||
and it is where the measured cost was.
|
||||
|
||||
### `lucisv_server::candidates` — words from a token stream
|
||||
|
||||
- `Candidates::build(index, sources, known: HashMap<PathBuf, Vec<String>>)`
|
||||
@@ -448,6 +498,33 @@ rule kept rather than a case reached. `reindex_widened` defers to
|
||||
it out loud (`state::tests::own_folder_only`) instead of riding the
|
||||
default
|
||||
|
||||
### Round 22 — the first RTL open at the shipped depth (2026-08-29)
|
||||
|
||||
- [x] Reproduced `performance_take2.md` §5b against the real checkout before
|
||||
writing anything, and **corrected its diagnosis**: the jump takes the
|
||||
widen path, the chooser's `Whole` arm is unreachable, and the widen reads
|
||||
1 685 files rather than 1 807 when the old block is inside the new root
|
||||
- [x] The subsumption rule written down where it is decided (`widen_of`'s doc)
|
||||
and pinned as a chooser row plus
|
||||
`a_widen_that_subsumes_the_old_scope_reads_only_the_files_it_adds`, which
|
||||
is the only test in the crate that fails when the file diff is removed
|
||||
- [x] The file diff's three consequences stated in Assumptions: the overlap,
|
||||
the ignore-file differences, and the size cap
|
||||
- [x] **The measured cost fixed**: `Candidates::absorb` merges a batch into the
|
||||
word table once instead of inserting each word on its own — 403 → 43 ms
|
||||
of the jump, warm **935 / 881 → 555 / 564 ms**, cold **1 529 → 1 175 ms**
|
||||
- [x] Synthetic probe for the shape, no checkout needed
|
||||
(`perf::what_a_widen_that_subsumes_the_old_scope_costs`), asserting the
|
||||
widened index fingerprints identically to the whole rescan's
|
||||
- [ ] **Filed, not done:** 325 ms of what is left is re-lexing the new files
|
||||
for the completion word table. The persistent store holds a file's facts
|
||||
and not its words; storing them is a `FACTS_FORMAT` change and belongs to
|
||||
`index-persistence` (`TODO.md` §10)
|
||||
- [ ] **Not done, deliberately:** the widen still does not interleave. It is
|
||||
one bar per session per big widen, and `must_wait` holds requests behind
|
||||
it either way — the same reasoning round 20 gave, restated now that the
|
||||
bar is half a second rather than 20 ms
|
||||
|
||||
### Round 19 — a rescan stops re-parsing what is already analyzed (2026-08-28)
|
||||
|
||||
- [x] Traced where a scope-widening `didOpen`'s 213 ms actually goes, per stage,
|
||||
@@ -529,6 +606,136 @@ rule kept rather than a case reached. `reindex_widened` defers to
|
||||
|
||||
## Work log
|
||||
|
||||
### 2026-08-29 — dev agent (the first RTL open at the shipped depth)
|
||||
|
||||
**The brief's diagnosis did not survive the first measurement, and that is the
|
||||
round's first result.** The brief — from `performance_take2.md` §5b — was that
|
||||
opening `hw/ip/aes/rtl/aes.sv` raises the scope to a root that *contains* the
|
||||
folders already in it, that `widen_of` reads that as directories removed and
|
||||
answers `Whole`, and that the resulting 1 807-file rescan re-indexes the 124
|
||||
files the old scope already held. Driven over stdio against
|
||||
`/Users/guoliangchen/repo/opentitan` with the `HEAD` binary, `--verbose`, none
|
||||
of that is what happens:
|
||||
|
||||
```text
|
||||
timing: widen started: 1 folder added: /Users/guoliangchen/repo/opentitan/hw/ip
|
||||
timing: widen finished: 1685 files (0 skipped, 1683 from cache) in 933.73 ms
|
||||
```
|
||||
|
||||
**1 685, not 1 807** — the 124 files of `hw/ip/aes` are not re-read — and it is
|
||||
a *widen*, not a rescan. Both halves were already right, for reasons worth
|
||||
writing down rather than rediscovering:
|
||||
|
||||
- `scope_dirs` raises **every opened directory on its own and keeps every
|
||||
answer**. Opening the RTL file adds `hw/ip` to a list that still contains
|
||||
`hw/ip/aes`, so `before ⊆ after` and the chooser sees an add. Under the folder
|
||||
rung `before ⊆ after` in fact always holds — `opened_dirs` only grows and
|
||||
`raised` is a pure function of one directory — so `Widen::Whole` is
|
||||
unreachable by `didOpen`, exactly as round 20 said it was.
|
||||
- `begin_widen` has diffed **by file against `self.index.files()`** since round
|
||||
20. The overlap between the two walks is skipped path by path.
|
||||
|
||||
So there was nothing to fix in the chooser. What this round did instead is pin
|
||||
both facts (they were true by accident of two separate decisions, and nothing
|
||||
failed if either moved) and then find where the second actually goes.
|
||||
|
||||
**Where the second goes, warm store, stage by stage.** `hw/ip`, 1 807 files, all
|
||||
of them cache hits:
|
||||
|
||||
| stage | before | after |
|
||||
|---|---:|---:|
|
||||
| walk the added folder, read the new files | 100 ms | 100 ms |
|
||||
| the scan loop (hash, decode, lex for words) | 405 ms | 405 ms |
|
||||
| `index.absorb` | 31 ms | 31 ms |
|
||||
| **`candidates.absorb`** | **403 ms** | **43 ms** |
|
||||
| `includes.absorb` | 20 ms | 20 ms |
|
||||
|
||||
**The 403 ms was the round's real find, and it is a quadratic.** `Candidates`
|
||||
keeps the workspace word table as a sorted `Vec<String>`, and `set_words`
|
||||
inserted each newly-seen word into it with `Vec::insert` — a memmove of the
|
||||
table's tail, once per word. One file's worth of words is nothing; a widen's
|
||||
tens of thousands of new words against a table of a hundred thousand is
|
||||
`O(new × held)`. `absorb` now counts the whole batch first and brings the table
|
||||
back in step in a single merge pass, which is the same answer for the reason
|
||||
merging is: `word_cmp` is a total order on distinct words, so a sorted run
|
||||
merged into a sorted table is the sequence `Candidates::build`'s own sort would
|
||||
have produced. `set_words` is the same two calls, so the single-file door and
|
||||
the batch door are one implementation.
|
||||
|
||||
**Deviation from the brief's file list, flagged for the lead.** The brief scoped
|
||||
this round to `state.rs` and `server.rs`. The fix is in `candidates.rs`, which
|
||||
belongs to `completion-core`. It is here because that is where the measurement
|
||||
led, it is one function split into two, and nothing else in the tree was in
|
||||
flight — but it is a file this feature does not own, and the Handshakes section
|
||||
above says so. No signature changed and no caller moved.
|
||||
|
||||
**End to end**, `--release` over stdio, the `HEAD` binary and this one
|
||||
alternated in one session on one machine:
|
||||
|
||||
| `didOpen` at the shipped depth | before | after |
|
||||
|---|---:|---:|
|
||||
| `hw/ip/aes/dv/tb/tb.sv` → `hw/ip/aes`, 124 files | 51 / 60 ms | 52 / 55 ms |
|
||||
| `hw/ip/aes/rtl/aes.sv` → `hw/ip`, **1 685 new** | 935 / 881 ms | **555 / 564 ms** |
|
||||
| the same jump, **cold** store (1 683 real parses) | 1 529 ms | **1 175 ms** |
|
||||
| `kmac` / `hmac` / `spi_device` after it | 3–6 ms | 3–6 ms |
|
||||
|
||||
The cold row is take 2's 1.4–1.7 s reproduced; take 2's figures were cold-store
|
||||
ones. **The target was "low hundreds of ms warm" and this does not reach it**,
|
||||
and the honest statement of why is that the rest is work rather than waste: 1 683
|
||||
files this index has never seen, 325 ms of which is lexing them for the word
|
||||
table. The persistent store answers for a file's *facts* and not for its words,
|
||||
so a cache hit still pays a full lex. Putting the word list beside the facts is
|
||||
the next lever, it is a `FACTS_FORMAT` change, and it is filed in `TODO.md` §10
|
||||
rather than smuggled into this round.
|
||||
|
||||
**Tests added (3), and what each is for.**
|
||||
|
||||
| test | where | pins |
|
||||
|---|---|---|
|
||||
| `a_widen_that_subsumes_the_old_scope_reads_only_the_files_it_adds` | `state.rs` | the round's subject, in opentitan's own shape at depth 2: the added directory contains the old scope; only the other blocks are parsed; both open buffers refresh (one carrying an unsaved edit); the over-cap file is walked, skipped and reported *again*; the bar counts four; and the tables equal a whole rebuild's |
|
||||
| the subsumption row of `widen_of_takes_the_cheap_path_for_a_pure_add_and_nothing_else` | `server.rs` | the chooser's answer for a containing directory, stated rather than inferred |
|
||||
| `a_batch_absorbed_leaves_the_word_table_a_whole_build_would_have_sorted` | `candidates.rs` | the merge == the sort, over one batch carrying a word only one file still holds, a word taken and given back inside the batch, a word nothing holds after it, and case variants |
|
||||
|
||||
**Attacked before believing.** Two mutations, each run and each caught: deleting
|
||||
`begin_widen`'s `held.contains` skip fails the new state test **and no other
|
||||
test in the crate** — which is exactly why it was written; and turning
|
||||
`merge_words`' first-touch bookkeeping into a plain `insert` (so a word given
|
||||
back inside one batch is counted as new) fails the new candidates test with a
|
||||
duplicated word. One `#[ignore]`d probe added,
|
||||
`perf::what_a_widen_that_subsumes_the_old_scope_costs`, which asserts the
|
||||
widened index fingerprints identically to the whole rescan's at the same scope.
|
||||
|
||||
**The one path that could have paid for it was measured too.** `set_words` — the
|
||||
single-file door `update_one` takes on every save — now runs the same merge
|
||||
rather than one insert, so a save patches the word table with a pass over it
|
||||
instead of a memmove inside it. Over opentitan with `hw/ip` in scope, four saves
|
||||
of `spi_device.sv` each: **44–46 ms before, 40–41 ms after**. No regression, and
|
||||
one implementation rather than a fast path and a slow one.
|
||||
|
||||
**Files touched:** `crates/lucisv_server/src/candidates.rs`,
|
||||
`crates/lucisv_server/src/state.rs` (test only),
|
||||
`crates/lucisv_server/src/server.rs` (doc + test only),
|
||||
`crates/lucisv_server/src/perf.rs`, this README, `docs/perf/README.md`,
|
||||
`TODO.md`. No new dependency, no `unsafe`, no `#[allow]`, no signature change,
|
||||
no scope-semantics change, no version bump, no commits.
|
||||
|
||||
**Verification.** `cargo fmt --all -- --check`: clean. `cargo clippy
|
||||
--all-targets --workspace`: zero warnings. `cargo test --workspace`: **2 542
|
||||
passed, 0 failed** (2 540 on `HEAD`, measured in a checkout of it — 2 new).
|
||||
`cargo build && node editors/vscode/smoke.js target/debug/lucisv-server`:
|
||||
`smoke: OK`. `node editors/vscode/restart_test.js target/debug/lucisv-server`:
|
||||
`restart: OK — 44 checks over the restart chain`.
|
||||
|
||||
**How the opentitan pair was taken, so it can be re-taken.** `git archive HEAD |
|
||||
tar -x -C /tmp/lucisv-before && cargo build --release -p lucisv_server` there
|
||||
gives the "before" binary; a stdio probe (in the session scratchpad — nothing in
|
||||
the tree may depend on that checkout) drives each binary with `--verbose`,
|
||||
opens the four files in order and times the request sent straight after each
|
||||
`didOpen`, reading the `timing: widen …` lines back off `window/logMessage`. The
|
||||
cold rows were taken by moving `~/Library/Caches/lucisv/index` aside for one run
|
||||
of each binary and restoring it afterwards. Both binaries were run twice,
|
||||
alternated, in one session on one machine.
|
||||
|
||||
### 2026-08-28 — dev agent (the shipped `scopeDepth` moves 0 → 2)
|
||||
|
||||
**A behaviour change, lead-decided, and it belongs in the release notes.** The
|
||||
@@ -1537,8 +1744,161 @@ green), `node editors/vscode/smoke.js target/release/lucisv-server` — clean.
|
||||
No fixes applied; no new tests needed in this feature's own files (the
|
||||
existing round-21 test suite already covers what I attacked). No commits.
|
||||
|
||||
### 2026-08-29 — QA agent (round 22: subsumption is an add, and the merge that fixes it)
|
||||
|
||||
**Verdict: SHIP.** The dev's refutation of the brief's diagnosis holds up under
|
||||
attack, both pinned properties genuinely bind what they claim to, the
|
||||
`merge_words` rewrite is equivalent to a whole build over every hostile shape
|
||||
tried, and the perf claims reproduce on the real checkout to within run-to-run
|
||||
noise. No corruption, no idempotency break, no dropped comment — not this
|
||||
round's concern, but checked by inspection since `candidates.rs` is outside
|
||||
this feature's usual set.
|
||||
|
||||
**Chooser and file-diff mutation attacks, each isolated and reverted.**
|
||||
|
||||
- Mutated `Workspace::scope_dirs` (`state.rs:629`) to collapse a subsumed
|
||||
directory into its containing one — simulating the brief's own (refuted)
|
||||
model of the world, where a contained directory disappears from the list.
|
||||
**Neither of this round's two new tests caught it**:
|
||||
`server::tests::widen_of_takes_the_cheap_path_for_a_pure_add_and_nothing_else`
|
||||
constructs its `before`/`after` `PathBuf` lists by hand and never calls
|
||||
`scope_dirs`, and `state::tests::a_widen_that_subsumes_the_old_scope_reads_only_the_files_it_adds`
|
||||
computes its own `added` list by filtering `scope_dirs()`'s two snapshots
|
||||
rather than routing through `widen_of`, so a collapsed list still yields the
|
||||
same `added` by coincidence. What *did* catch it, over the full workspace
|
||||
suite, is the pre-existing `server::tests::a_didopen_rebuilds_exactly_when_it_widens_the_scope`
|
||||
(`left: 4 right: 5` — one fewer rebuild than expected). Not a gap: the two
|
||||
new tests are unit tests for two separate pieces (the chooser as a pure
|
||||
function; `begin_widen`'s file diff given a correct `added`), and the
|
||||
full-path property is what the older integration-shaped test is for. Stated
|
||||
here so it isn't rediscovered as a false alarm.
|
||||
- Mutated `widen_of` itself (`server.rs:2640`) to collapse `after` by
|
||||
containment before comparing against `before` — the same brief-shaped bug,
|
||||
applied inside the chooser instead of at its input. Caught: **exactly**
|
||||
`server::tests::widen_of_takes_the_cheap_path_for_a_pure_add_and_nothing_else`
|
||||
fails, on the new subsumption row (`left: Whole, right: Added(["/w"])`); no
|
||||
other test in the crate moves.
|
||||
- Deleted `begin_widen`'s `held.contains(&path) { continue; }` skip
|
||||
(`state.rs:1002`). Caught: **exactly**
|
||||
`state::tests::a_widen_that_subsumes_the_old_scope_reads_only_the_files_it_adds`
|
||||
fails (`aes_core.sv`/`aes_env.sv` — the old block's own files — reappear in
|
||||
`seen.parsed`); no other test in the crate moves. Matches the work log's own
|
||||
claim verbatim.
|
||||
|
||||
Together: the chooser row and the state test each bind exactly one of the two
|
||||
properties the work log calls "true by accident of two separate decisions,"
|
||||
not both — and the reason that's fine is the older `a_didopen_rebuilds_...`
|
||||
test binds the composition of the two. All three mutations reverted; final
|
||||
`git diff` of `state.rs`/`server.rs` matches the pre-attack diff exactly.
|
||||
|
||||
**`merge_words` mutation attack.** Changed `count_words`' first-touch
|
||||
bookkeeping (`touched.entry(word).or_insert(...)`) to plain `touched.insert(word,
|
||||
...)` on both the removal and the addition arm — so a word the batch takes from
|
||||
one file and gives back through another is (wrongly) recorded as newly added
|
||||
rather than as never having moved. Caught: **exactly**
|
||||
`candidates::tests::a_batch_absorbed_leaves_the_word_table_a_whole_build_would_have_sorted`
|
||||
fails, with the duplicated words spelled out in the assertion output
|
||||
(`"a", "a", ..., "only_a", "only_a", ..., "Shared", "Shared", ...`) — plus one
|
||||
pre-existing test,
|
||||
`candidates::tests::updating_the_same_file_twice_in_a_row_never_double_counts_or_goes_negative`,
|
||||
which is extra coverage the work log didn't claim but is a welcome bonus.
|
||||
Reverted; `candidates.rs` diff (minus the one test I kept, below) matches the
|
||||
pre-attack diff.
|
||||
|
||||
**Extra coverage added, one test, `candidates.rs` (permanent).** The brief's
|
||||
attack list named "empty batches" and "a batch where every word is already
|
||||
present" as hostile shapes; the round's own test covers duplicate/moved/gone/
|
||||
case-variant words but not either of these two. Added
|
||||
`qa_extra_empty_and_noop_batches_do_not_disturb_the_table`: an empty
|
||||
`absorb(&index, Vec::new())` and a batch that re-declares one file's words
|
||||
unchanged (module name included — the first version of this test omitted it
|
||||
and correctly failed, since dropping a real word is a real change, not a
|
||||
no-op; fixed before landing it) both leave `words("")` byte-identical to
|
||||
before. No bug found — `merge_words`'s `if added.is_empty() && dropped.is_empty()
|
||||
{ return; }` early-out (`candidates.rs`) already handles both correctly — but
|
||||
the charter asked for the attack and it is now a permanent regression rather
|
||||
than a one-off check.
|
||||
|
||||
**Perf probe's fingerprint assertion, verified real.** Mutated `widened_files`
|
||||
(`state.rs:1074`) to `.pop()` one file off the end of its own walk, simulating
|
||||
a widen that silently skips a file. `cargo test --release -p lucisv_server
|
||||
perf::what_a_widen_that_subsumes -- --ignored --nocapture --test-threads=1`
|
||||
fails on the assertion the round added
|
||||
(`assert_eq!(whole.index().fingerprint(), incremental.index().fingerprint(), ...)`),
|
||||
dumping both fingerprints and diverging at the missing file. Reverted. Ran the
|
||||
probe clean afterwards:
|
||||
|
||||
```
|
||||
scope 35 -> 700 files; the widen read 667 of them (the 35 already indexed are not re-read)
|
||||
whole rescan 662.558333ms, subsuming widen 645.5425ms (landing it: 52.5085ms)
|
||||
```
|
||||
|
||||
Close columns confirmed as honest, not a bug: this synthetic tree has no
|
||||
persistent-store warm-up (a fresh temp directory every run, so both columns
|
||||
pay a genuinely cold parse of most of their files) — the win the round
|
||||
actually bought is in "landing it" (`candidates.absorb`'s merge), which is
|
||||
what the opentitan table is for.
|
||||
|
||||
**Opentitan reproduction, both binaries, from scratch.** `git archive HEAD |
|
||||
tar -x -C /tmp/lucisv-before && cargo build --release -p lucisv_server` for the
|
||||
pre-round binary; `cargo build --release -p lucisv_server` in this tree for
|
||||
the post-round one. Wrote a fresh stdio probe (this session's scratchpad,
|
||||
`opentitan_probe.js`, modelled on `editors/vscode/smoke.js`'s framing) against
|
||||
`/Users/guoliangchen/repo/opentitan` (1 807 `hw/ip` files, confirmed by `find`
|
||||
— matches the brief exactly), pushing `scopeDepth: 2` and timing each
|
||||
`didOpen` to its `publishDiagnostics`. Warm store, two runs per binary,
|
||||
alternated:
|
||||
|
||||
| `didOpen` at `scopeDepth: 2` | before (`HEAD`) | after (this round) |
|
||||
|---|---:|---:|
|
||||
| `hw/ip/aes/dv/tb/tb.sv` → `hw/ip/aes`, 124 files | 42.9 / 42.3 ms | 42.7 / 46.8 ms |
|
||||
| `hw/ip/aes/rtl/aes.sv` → `hw/ip`, 1 685 new | **872 / 876 ms** | **535 / 542 ms** |
|
||||
|
||||
Both runs logged `widen finished: 1685 files (0 skipped, 1683 from cache)` —
|
||||
matches the work log's own 1 685 (not 1 807) exactly. The before/after gap
|
||||
(872–880 → 535–546 ms) reproduces the claimed **935/881 → 555/564 ms** within
|
||||
the alternation's own run-to-run spread; did not re-take the cold-store row
|
||||
(moving `~/Library/Caches/lucisv/index` aside on a checkout this session
|
||||
doesn't own felt like the wrong thing to disturb without asking, and the warm
|
||||
row already carries the round's claim).
|
||||
|
||||
**Full gates, re-run clean on the round's actual diff** (`state.rs`/`server.rs`
|
||||
restored byte-for-byte after every mutation attack above; `candidates.rs`
|
||||
carries only the one extra test noted above beyond the round's own diff).
|
||||
`cargo fmt --all -- --check`: clean. `cargo clippy --all-targets --workspace`:
|
||||
zero warnings. `cargo test --workspace`: **0 failed** (exit 0);
|
||||
`lucisv_server`'s own binary: 1291 passed, 34 ignored (1289 on the round's diff
|
||||
alone, +2 for the `qa_extra` test and the dev's own count already included).
|
||||
`cargo build && node editors/vscode/smoke.js target/debug/lucisv-server`:
|
||||
`smoke: OK`. `node editors/vscode/restart_test.js target/debug/lucisv-server`:
|
||||
`restart: OK — 44 checks over the restart chain`.
|
||||
|
||||
**Not re-verified in depth:** the TODO.md §10 follow-up lines for `codeAction`
|
||||
and `inlayHint` (correctly unchecked, correctly cite `performance_take2.md`,
|
||||
correctly not fixed here) — cross-checked against the source document's §6a
|
||||
and §7/§8 numbers by direct comparison, word for word, and they match.
|
||||
|
||||
## Review
|
||||
|
||||
### 2026-08-29 — lead, subsumption round
|
||||
|
||||
Reviewed after QA's SHIP; gates re-run (fmt clean, 1292 server tests
|
||||
green). The round's real contribution is epistemic: the brief's
|
||||
diagnosis — mine, built on take 2's cold-store numbers — was half
|
||||
wrong, and the dev proved it with the HEAD binary before writing a
|
||||
line of fix. The chooser and the file-diff were already correct; what
|
||||
was quadratic was folding a widen's words into the sorted table one
|
||||
insert at a time (403 → 43 ms), and what was unpinned were the two
|
||||
accidental properties the diagnosis would have needed to break. QA's
|
||||
mutation matrix — five mutations, each caught by exactly the test
|
||||
that claims to bind it — is the standard the parallel-lane loop
|
||||
should hold every pin to. The warm RTL jump lands at ~545 ms, the
|
||||
target missed honestly: the residual is 1 683 genuinely new files and
|
||||
a 325 ms word re-lex the store cannot yet answer, filed as the
|
||||
FACTS_FORMAT follow-up rather than hidden. Take 2's regression entry
|
||||
stands corrected in the work log: cold-store cost, not a chooser bug.
|
||||
Accepted; committed by the lead.
|
||||
|
||||
### 2026-08-28 — lead, performance-wave Lane B (scope default)
|
||||
|
||||
The scopeDepth 0 → 2 default is the lead's own decision implemented
|
||||
|
||||
Reference in new issue
Block a user