Cross-file instance-member tail: a module's hierarchical surface, read only behind an instance head; rename edits the tail

TODO §49 (docs/features/hierarchical-tail). Closes topo §2.9-23 and
comment-slots finding 2. The first dev was cut off by an outage with the
library half complete; a second finished the tests, README and gates.

`Surface { Connection, Hierarchical }` on `Resolution::ExternalCandidate`
and `MemberSite::Unit`, set by `resolve.rs::head_surface` for an instance
head. `workspace/hierarchy.rs`: `surface_of` (the export rule, re-ruled)
and the two surface-taking reads; the index keeps two disjoint tables —
`members` (connection: ports, parameters; byte-identical to before for
every existing reader) and `hier_members` (nets, variables, instances) —
and a hierarchical read consults the connection table first, so a port
has one record. `FACTS_FORMAT` 18 → 19. `assign w = u_x.sig;` in another
file now resolves to `sub`'s `wire sig`; rename edits both files (nested
`u_a.u_b.sig` included); the §2.9-20 warning is retired for a resolved
tail; a generate-scoped net is still refused honestly. Completion after
`u_x.` in an expression lists the hierarchical surface; a connection
list's does not.

Census: single-file numbers unmoved; 12 939 connection + 5 239
hierarchical-only members; 335 corpus references newly resolve, 514 over
opentitan `hw/` (20 sampled by QA, all genuine). 0 of 860 corpus files
differ. Also: §50/§51 planned, §55 (state.rs size) filed.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
This commit is contained in:
lucioandClaude Fable 5.1 committed 2026-09-05 13:35:57 -05:00
1 parent 9ef1058059
commit f476c31483
59 files changed
+2031 -479

No files matched your search

+16 -16
View File
@@ -1,23 +1,23 @@
# Verilog/SystemVerilog coverage gaps — ranked (2026-09-01)
**Reading this report today (2026-09-04).** The survey below is a historical
**Reading this report today (2026-09-05).** The survey below is a historical
v0.21.0 measurement with later amendments, not a fresh list of current failures.
For the current implementation and outstanding contracts, use
[repository-analysis.md](repository-analysis.md) and [topo.md](topo.md).
Since the original survey, interface/modport and struct-member semantics,
statement/class fences, header/list recovery, rule documentation, and three
lint expansion waves have landed. The old probes were not re-run as part of
the documentation audit; their historical counts are retained.
Use [repository-analysis.md](repository-analysis.md) and [topo.md](topo.md) for
current implementation status. Original probe counts remain historical.
Current follow-ups to the latest addendum: v0.40.0 recovers bare item-level
`begin` blocks as `ItemKind::GenBlock` **in tolerant mode**, so lint rules see
their contents; strict formatting still refuses them. It also improves recovery
for unclosed overrides that would consume the following instance. The
post-v0.41.0 `parser-skips` commit accepts rival conditional unit headers as
verbatim units and preserves net delays before or after the type. Its QA is
accepted; release v0.42.0 is pending. Comments immediately before a net-delay
`#` still cause a formatter verification refusal. External waiver files remain
planned, not implemented.
Through v0.44.0, external waivers, rival conditional headers, net-delay
positions and comment slots, inline aggregate overrides, statement/class
fences, header recovery, and the three lint-expansion waves have shipped.
The prior audit's atomic-write, project lint-selection and directory-cycle
findings are also fixed. Bare item-level `begin` blocks are recovered for
lint/editor consumers; strict formatting still refuses them.
At committed `9ef1058`, type-name spans replace `vlog_semantic/src/scan.rs`,
and package re-exports resolve through shared member edges (facts codec 18).
Both are accepted for the next release. The active hierarchical-tail work
proposes codec 19; QA is pending, and handshake 23 remains open. DPI-export
name binding is a separate remaining gap (handshake 31), and generate-block
hierarchy and cross-file macro expansion remain outside these fixes.
What lucisv 0.21.0 does not yet handle, ranked by severity, from two
independent sweeps crossed against each other:
+4
View File
@@ -124,6 +124,10 @@ where marked; no existing field changed meaning.
edited (`a_hierarchical_tail_that_resolves_is_renamed_with_its_declaration`
is the pin). Not this round's to fix — the warning is exactly the heads-up
§2.9-20 asked for — but it is a real gap worth a row of its own.
**Closed 2026-09-05 by TODO §49 / `docs/features/hierarchical-tail`:** a
module's hierarchical surface makes the cross-file tail resolve, so the
edit lands in both files and the warning is retired for a tail that
resolved.
3. **`docs/topo.md` rows 20, 21 and 22 are closed** and want striking by the
lead (this round does not edit `topo.md`).
+532
View File
@@ -0,0 +1,532 @@
# hierarchical-tail
TODO.md §49 — the cross-file instance-member tail in rename. `docs/topo.md`
§2.9 row 23. Ships in 0.45.0.
## Goal
With `module sub` in `sub.sv` and `assign w = u_x.sig;` in `top.sv`, renaming
`sub`'s internal `wire sig` used to edit `sub.sv` alone and warn about the
tail in `top.sv` — a rename that hands back a design which no longer
elaborates, with an apology. The same shape in one file resolved and was
edited. The cause was the export rule in `workspace/record.rs::is_exported`:
a module exported its ports and its parameters and nothing else, so the
cross-file member walk could not see `sig` through `u_x`.
The lead's ruling, implemented here: a module gains a **second, distinct
member surface**. Its *connection* surface stays what it was — ports and
parameters, what a connection list may name (IEEE 1800 §23.3). Its
*hierarchical* surface is that set **plus** its nets, its variables and its
instances, which is what a hierarchical path may name from anywhere in the
design (§23.6). The index records both, tagged; only the tail walk behind an
**instance** head reads the hierarchical one. Rename's reference set then
includes the cross-file tail, the edit lands in both files, and the §2.9-20
"the rename says so" warning is no longer raised for a tail that resolved (it
stays, unchanged, for one that did not).
## Assumptions
- **A hierarchical path is what an instance head opens, and nothing else
is.** `resolve.rs::head_surface` returns `Surface::Hierarchical` for exactly
`SymbolKind::Instance` and `Surface::Connection` for every other link of a
spine. A class handle, a struct field, a virtual interface and a package
path are all the connection surface, and for those units the distinction is
noise anyway — a package, a class, a struct and a covergroup have one
surface each.
- **The hierarchical surface contains the connection one.** A record is
tagged with the *narrowest* surface it joins, and a hierarchical read
consults the connection table first. So a tail naming a port has exactly one
answer, from one record, and it is the same declaration a connection-list
lookup finds. This is asserted, not assumed:
`a_tail_naming_a_port_is_one_answer_and_one_edit`.
- **A unit's members are the symbols of its own scope.** `collect_members`
walks `unit.child_scope` and no deeper (except into a nested class, struct
or covergroup, whose members are keyed under their own name). A net declared
inside a **generate block** therefore joins neither surface: its scope is
the block's. `u_x.gen_b.sig` does not resolve, and the rename leaves the
tail alone and says so — the honest refusal, pinned by
`a_generate_block_scoped_net_named_through_an_instance_is_refused_honestly`.
Widening that means teaching the index about generate scopes and their loop
indices (`u_x.gen[0].sig`), which §49 deliberately did not do.
- **An interface is unchanged.** Its signals *are* its connection surface
(the 2026-09-01 ruling: `virtual bus_if vif; vif.data` is how every DV
testbench reaches `data`, and `vif` is a variable, not an instance). It
gains only its **instances** on the hierarchical surface, for the same hop
reason a module does.
- **Two instances of a name in one module cannot happen**, so the
hierarchical table's `Vec<Def>` per name holds duplicates only across files
— the same ambiguity rule, and the same refusal, the connection table has
always had.
## Handshakes
### What this consumes
- `vlog_semantic::Semantics` — `member_site` / `unit_site` return the site a
tail is walked from, and a `Symbol`'s `kind` is what says whether a link is
an instance.
- `vlog_parser` — unchanged; nothing in the parser moved.
### What this promises
**`vlog_semantic` (the surface encoding).**
- `pub enum Surface { Connection, Hierarchical }` in `model.rs`, re-exported
from the crate root.
- `Resolution::ExternalCandidate { paths, surface }` — a new field. Every
construction site outside a hierarchical tail passes `Surface::Connection`;
`resolve.rs::head_surface` is the one place that can return the other.
- `MemberSite::Unit { path, surface }` — was `MemberSite::Unit(String)`. The
surface is `Hierarchical` exactly when the head of the spine was an
instance, and it stays that for every further hop: `u_a.u_b.` is one
hierarchical path.
- `WorkspaceIndex` gains `member_in(unit, member, surface)`,
`members_of_chain_in(path, surface)`, `member_unit_in(unit, member,
surface)` and `hierarchical_declarations(name)`. **Every existing method
reads the connection surface and answers exactly what it answered before**:
`member`, `members_of`, `members_of_chain`, `member_unit`,
`workspace_symbols`.
- `IndexCounts` gains `hierarchical_members`, disjoint from `members`, so the
whole member census is the two added.
- `FACTS_FORMAT` 18 → 19. Two new fields — a one-letter surface on every
declaration and on every `External` reference fact — so an older record
would be read field-shifted, and `index_cache` drops a store by format as it
already does.
**`lucisv_server`.** `Workspace::rename_sources`' fan-out gains one rung:
every file declaring the name on a module's hierarchical surface. `state.rs`
is the only server file whose *behaviour* changed;
`completion/member.rs` follows the site's own surface (below).
**`vlog_refactor`.** No behaviour of its own changed. `rename/warnings.rs`
took a mechanical `..` in one pattern for the new `ExternalCandidate` field;
the §2.9-20 warning retires itself, because it is raised only when the overlay
answers `StillUnresolved` and a resolved tail no longer does.
### The completion decision, said plainly
Behind `u_x.` **in an expression**, completion lists the module's
**hierarchical** surface — its nets, its variables and its instances as well
as its ports and its parameters. That is what the user is reaching for, it is
exactly what the tail resolution will find, and it is what the *in-file* half
of the same function has always offered for an instance this file declares
(`MemberSite::Scope` pushes every symbol of the module's scope). Making the
two halves disagree would have been the odd choice.
Behind the `.` of a **connection list** it is the connection surface and
nothing more. `.internal_net(w)` is not a legal connection, so an item there
would be one the resolution could not answer — a wrong answer rather than a
generous one. That path is `connection_members`, which reads
`WorkspaceIndex::members_of` (the connection table) and filters to `Port` or
`Param`; it never reaches `members_at`. Both halves are pinned in one test:
`an_instance_head_lists_the_hierarchical_surface_and_a_connection_list_does_not`.
The `propagate-ports` engine reads `member`/`members_of` and is untouched.
### What did not widen
- **Reference postings.** `facts_from_analysis` records a `Local` posting only
for a use whose declaration is on the **connection** surface. Posting a
module's every internal-net use would multiply the reference table by the
size of an RTL body for an answer nothing reads: the only consumer is a
rename, which re-analyses the declaring file anyway. The *cross-file* half —
the tail in the other file — is an `External` fact, and that is what makes
the rename work.
- **`workspace/symbol`.** An internal net is still not a workspace symbol: the
request answers what a user can name from outside, and a design with 20 000
modules has hundreds of thousands of internal signals.
`hierarchical_declarations` is the separate, map-only question the rename
fan-out asks instead.
- **`verify.rs`.** Untouched. No normalization was added or broadened, so no
masked-corruption attack tests are owed.
## Status / TODO
- [x] 49.1 surface bit in facts, `FACTS_FORMAT` 18 → 19, index member walk
- [x] 49.2 `MemberOf` behind an instance reads the hierarchical surface;
rename edits the tail; the warning retired for resolved tails
- [x] `workspace/hierarchy.rs` — `surface_of` (the old `is_exported`,
re-ruled) plus the two surface-taking reads; `record.rs`'s export doc
comment rewritten to say the ruling moved
- [x] Completion decision made, said here, and pinned both ways
- [x] Tests: the cross-file twin of the rename pin; nested `u_a.u_b.sig`; a
tail naming a port (one answer, one edit); a parameter; the
generate-block refusal; the interface tail unchanged; the ambiguous
`sub` still refused; the connection list unchanged; the census delta
- [x] Gates (guarded); census delta explained; opentitan before/after
- [ ] QA
## Work log
### 2026-09-05 — dev (agent 2, resuming)
**The state I found.** The first dev agent on this lane was cut off by a
network failure mid-round, leaving uncommitted work in the tree: 20 modified
files plus a new `crates/vlog_semantic/src/workspace/hierarchy.rs`, and no
feature README at all. `cargo check --workspace --all-targets` passed; the
agent's last words were "now the test compile errors across the workspace",
and that is exactly where it stood — the *library* half of §49 was complete
and coherent, the test suite was not green, and no new tests had been written.
What the first agent had already built, and which I kept unchanged: the
`Surface` enum and its two carriers (`Resolution::ExternalCandidate`,
`MemberSite::Unit`), `head_surface` in `resolve.rs`, `hierarchy.rs` with
`surface_of` and the two surface-taking reads, the second `hier_members` table
in `WorkspaceIndex` with its update/clear paths, the `FACTS_FORMAT` 18 → 19
encoding, `hierarchical_declarations` and the fan-out rung in the server's
`state.rs`, and the completion follow-the-site change in
`completion/member.rs`. It is a good design and I did not redo any of it.
**What I finished.**
1. Made the workspace suite green. Four failures, each a real consequence of
the change rather than a bug:
- `lucisv_server` `a_local_only_symbol_sharing_the_new_names_spelling_is_not_a_bogus_refusal`
— its fixture was a module's `wire`, which is now a hierarchical
declaration and joins the fan-out by the new rung, so the test would have
passed for the wrong reason ever after. The fixture is now a **function's
local**, which is on neither surface, and the rung-6 attack it exists for
is intact. The behaviour it used to pin got its own test beside it,
`a_module_net_sharing_the_new_names_spelling_joins_the_fan_out_and_refuses_nothing`:
the file *is* pulled in, and the rename still succeeds and still writes
nothing there.
- `vlog_semantic` `a_format_3_record_with_two_declarations_is_rejected_not_misread`
— the record stripper counts a decl's fields. `MEMBER_DECL_FIELDS`
11 → 12, `UNIT_DECL_FIELDS` 19 → 20, and one more `drain` for the surface
letter.
- `vlog_semantic` `an_instance_head_reaches_a_module_in_another_file` — its
`u.internal` assertion was the old ruling. It now asserts the net
resolves, *and* that the connection table still does not hold it, *and*
that a port has one record on it.
- `lucisv_server` e2e `an_instance_heads_port_is_hovered_across_files` —
hover of `u.internal` across files now answers with the net's own
declaration. The test asserts the file and line it names.
2. Wrote the plan's tests (all passed first time against the first agent's
library code, which is the strongest evidence I have that it was finished):
the cross-file twin driven from **both** ends, nested `u_a.u_b.sig` over
three files, the port, the parameter, the generate-block refusal, the
interface tail, the ambiguous-`sub` refusal from both ends, and the
two-way completion pin.
3. Added the census-delta measurement as a corpus test rather than a prose
claim, and put the hierarchical count into the index census line.
4. Wrote this README, which the first agent had not started.
**Deviations and files touched outside the plan's expected set.** The plan
named `crates/vlog_semantic/{facts.rs,workspace/*}`,
`crates/vlog_refactor/src/rename/*`,
`crates/lucisv_server/src/{completion/*,state.rs}`, tests, this README and
`TODO.md`. Beyond those I touched:
- `crates/lucisv_server/src/rename.rs` — **tests only** (the `#[cfg(test)]`
block): the fixture swap and the new sibling test above. No production line
in that file changed.
- `crates/lucisv_server/tests/e2e.rs` — the hover assertion above.
- `crates/vlog_semantic/src/{lib.rs,model.rs,resolve.rs}` — the first agent's
work, and unavoidable: `Surface` has to live in the model and be exported,
and `resolve.rs` is where a spine's head is visible.
**One size flag for the lead.** `crates/lucisv_server/src/state.rs` is **957
production lines outside its test module** — already well over the 800
threshold before this lane, and CLAUDE.md's post-§28 measurement (which names
only `perf.rs` and `lexer.rs` as over 600) is stale for it. This lane added
**13** production lines there: the fan-out's new rung, seven lines inside
`fan_out_of` plus its doc bullet. The rule says a dev adding to a file near
600 puts the code in a new module; I did not, because the rung reads
`self.index`, `want_declaration` and the caller's `containers` set and a
module holding seven lines of it would be worse than the disease. The file
wants a split of its own, which is a decomposition round, not a paragraph in
this one. Every other file this lane touched is inside the rule:
`workspace/hierarchy.rs` 80 production lines, `workspace/index.rs` 283,
`workspace/record.rs` 315 (it *lost* the 60-line `is_exported`),
`model.rs` 161, `resolve.rs` 520, `facts.rs` 526. Every function added or
changed is under 50 lines.
**The gates.** `cargo fmt -p vlog_semantic -p lucisv_server -p vlog_refactor`
(never `--all`) and `cargo clippy --all-targets` clean; `cargo test
--workspace` **3 839 passed / 0 failed / 44 ignored** (baseline 3 829, +10:
seven new rename tests, one new server fan-out test, one new completion test,
one new census test); `tools/corpus_check.sh` **814/820**, the same six
pre-existing parse errors (`compare_helper.sv`, `riscv_core_setting.tpl.sv`,
`latch_map.v`, `riscv_instr_cover_group.sv`, `romload/testbench.v`,
`smtbmc/mulcmp.v`); `format --stdout` over all **860** corpus files
**byte-identical** to `~/.cache/lucisv-baselines/lucisv-0.44.0`, 0 differing;
`cargo build --release -p lucisv_server` + `node editors/vscode/smoke.js` OK.
Everything through `tools/guard.sh`; no guard kill, no limit raised.
**The census delta.** The single-file corpus census does not move at all —
860 files, 27 486 symbols, 103 875 references, 1 197 unresolved, 0 unplaced,
identical to the number the brief carried. It cannot move: §49 adds a tag to
a resolution, not a resolution. What moves is the *workspace* census:
| | before | after |
|---|---|---|
| exported members (connection surface) | 12 939 | 12 939 |
| hierarchical-only members | — | **5 239** |
| corpus references only the hierarchical surface answers | 0 | **335** |
The connection count is unchanged **by construction**: `surface_of`'s
`Surface::Connection` arms are the old `is_exported`'s `true` arms, name for
name, with the hierarchical kinds added as new arms. The 5 239 new records are
the corpus's modules' and interfaces' nets, variables and instances. Over the
whole corpus 707 references carry a hierarchical candidate and 668 of them
resolve; **335** of those land in the hierarchical-only table, which is the
slice that could not resolve before.
`the_hierarchical_surface_is_what_answers_a_measurable_slice_of_the_corpus`
prints the three numbers on every run and pins the direction, not the
constants.
A note on how that 335 is counted, because the obvious way is wrong. "The
declaration's kind is `Net`, `Var` or `Instance`" over-counts by 216 on this
corpus: an **interface's** signals are `Net`/`Var` and are on the *connection*
surface, so they resolved before §49 as well. The exact test is membership of
the hierarchical-only table itself
(`WorkspaceIndex::hierarchical_declarations`), which is what the test does.
### opentitan (read-only, scratch index store)
Everything below is a `textDocument/rename` **request** whose returned edit
was inspected and never applied.
`git -C ~/repo/opentitan status --porcelain` reported the same three
pre-existing files (`hw/ip/aes/dv/tb/tb.sv`,
`hw/top_darjeeling/ip/ast/rtl/ast.sv`, `hw/top_earlgrey/ip/ast/rtl/ast.sv`)
before and after every run. Baseline binary: `lucisv-server` built
`--release` from the `v0.44.0` tag in a scratch `git worktree` under the
scratchpad, removed afterwards. Guard on every command; **no guard kill**.
**The headline — a DV bench reaching an IP module's internal variable.**
`hw/ip/lc_ctrl/dv/tb.sv:229` writes
`assign #1ps lc_ctrl_if.lc_ctrl_fsm_state = dut.u_lc_ctrl_fsm.fsm_state_q;`,
and `fsm_state_q` is declared at `hw/ip/lc_ctrl/rtl/lc_ctrl_fsm.sv:173`.
Renaming it (root `hw/ip/lc_ctrl`, cursor on the declaration):
| | 0.44.0 | this branch |
|---|---|---|
| files in the returned edit | `rtl/lc_ctrl_fsm.sv` (8 edits) | `rtl/lc_ctrl_fsm.sv` (8) **+ `dv/tb.sv` (1)** |
| `rename`, three tries | 10 / 9 / 10 ms | 22 / 23 / 22 ms |
| `prepareRename`, three tries | 1 / 0 / 1 ms | 0 / 0 / 1 ms |
That is the whole feature in one row: 0.44.0 edited the RTL and left the
bench spelling the old name, and now the bench moves with it. It is also the
whole cost: the tail's file is in the rename's fan-out now, so it is read,
parsed and verified — 10 ms → 22 ms on this cursor. `prepareRename` does not
move, because it does not fan out.
**`hw/ip/aes`, the tree the brief named.** Rename of
`hw/ip/aes/rtl/aes_core.sv:87`'s `logic key_touch_forces_reseed`, root
`hw/ip/aes`: **the same answer before and after** — `rtl/aes_core.sv`, 3
edits — at 40 / 41 / 41 ms before and 53 / 55 / 57 ms after; `prepareRename`
≈ 1 ms in both. And the count of newly resolved `MemberOf` references over
`hw/ip/aes` is **0**, before and after. That is not a disappointment to hide,
it is the shape of the IP: `aes`'s 5 hierarchical candidates all reach through
a **generate block** (`u_aes_core.u_aes_control.gen_fsm[i]. … `,
`u_aes_core.gen_ghash.u_aes_ghash. … ` in `rtl/aes.sv`) or sit inside a
`bind aes …` in `dv/sva/aes_bind.sv`, where the head is resolved in the bind
target's scope in another file and is therefore not an instance symbol this
file can see. Neither is on either surface, and §49 said so in advance.
Over **all of `hw/`** (3 979 files) the picture is the one the corpus
predicts: 91 930 connection members + **71 849** hierarchical-only ones;
1 611 references carry a hierarchical candidate, 1 290 resolve, and **514**
of those are answers only the hierarchical surface can give — `lc_ctrl`,
`otbn`, `keymgr`, `dma` and `entropy_src` benches reaching into their DUTs.
**Store size** (the scratch `initializationOptions.storagePath`, the whole
index cache for that root):
| root | 0.44.0 | this branch | delta |
|---|---|---|---|
| `hw/ip/aes` (124 files) | 1 459 576 B | 1 615 179 B | +155 603 B, **+10.7 %** |
| `hw/ip/lc_ctrl` | 765 347 B | 813 065 B | +47 718 B, **+6.2 %** |
Two things are in that delta and they are not the same size: the one-letter
surface field on every declaration and every external reference fact (small,
and paid whether or not a module has internals), and the hierarchical member
records themselves (the bulk).
## QA log
### 2026-09-05 — QA
**Diffs read in full**: `resolve.rs`, `model.rs`, `workspace/{hierarchy.rs (new),
external.rs, index.rs, mod.rs, record.rs, reexport.rs, update.rs}`, `facts.rs`,
`lib.rs`, `rename/warnings.rs`, `completion/member.rs`, `state.rs`, `rename.rs`,
`e2e.rs`, all touched test files. Traced `head_surface` end to end — a link
opens `Surface::Hierarchical` exactly when the *head symbol's own kind* is
`SymbolKind::Instance` (`resolve.rs::link_type`/`head_surface`), never off a
type name's spelling; a same-file spine stays on `MemberSite::Scope`
untouched by any surface at all, exactly as before this feature. The `Local`
reference-posting filter to `Surface::Connection` only in `record.rs` is by
design and doesn't widen anything: an internal net's own-file uses are found
by re-analysing its declaring file directly (which rename always does for
the file it edits), not through the posting table that filter narrows.
**Gates (guarded, `tools/guard.sh` throughout).** `cargo fmt --check` clean;
`cargo clippy --all-targets` clean; `cargo test --workspace`: **3 839 passed
/ 0 failed / 44 ignored** — matches the dev's claim exactly (re-verified
twice: once with the QA attack tests added, once after removing them, same
count both times save for the attacks themselves). `tools/corpus_check.sh`:
**814/820**, the same six pre-existing parse errors. `format --stdout` over
all 860 corpus files vs `~/.cache/lucisv-baselines/lucisv-0.44.0`: **0
differing**. Release build (`lucisv`, `lucisv_server`) + VS Code smoke
(`node editors/vscode/smoke.js target/release/lucisv-server`): OK. Census:
`the_corpus_index_finishes_most_external_references` prints 860 files,
103 875 references, 12 939 connection members + **5 239** hierarchical-only —
matches the README's table exactly.
**Rename matrix, driven through the public engine API (`vlog_refactor`) and
confirmed by the dev's own tests plus attacks I added and then removed
(temporary `qa_49_*` tests, run green, then deleted — the tree is back to
exactly the dev's diff):**
- Cross-file twin from both ends, nested `u_a.u_b.sig` over three files, a
port (one answer, one edit — checked the tail's edit range fires once, not
once per surface), a parameter, the generate-block-scoped net refused
honestly with no edit, an interface instance tail unchanged, the ambiguous
two-`sub` case refused from both ends: all the dev's own tests, read and
re-run green.
- **New attack — rename onto a name already in the module, via the
hierarchical tail, from both ends**: refused (`"would change what..."`).
The live cross-file tail does not bypass the ordinary same-module capture
check.
- **New attack — rename a hierarchically-reached net onto a sibling port's
name**: refused. A capture across the connection/hierarchical surface
boundary is caught exactly like one within a surface.
- **New attack — a non-instance head whose *type name* happens to spell a
module name** (`sub h;` with no parens, a data declaration, not an
instantiation): `head_surface` correctly reads the head symbol's own kind
(`Var`, not `Instance`), so `h.internal` reads the connection surface and
refuses the net. No crash.
- **New attack — a hierarchical path inside a `bind` connection expression,
through an instance declared *inside the bind target's module* in another
file** (the shape behind the aes `bind` zero-count in the README): no
crash, and the tail never resolves through the wrong scope — the head is
looked up (if at all) in the writing scope, never the target's, exactly as
the README predicts. Pinned with a temporary test, then removed.
- **New attack — `didChange` promotes an internal net to a port**: before,
hierarchical-only (1 record); after, on the connection table (1 record,
not 2 — the hierarchical read still finds exactly one), and the cross-file
tail still resolves exactly once, now to the port. **New attack —
`didChange` removes the net entirely**: the hierarchical table drops the
record and the cross-file tail goes back to unresolved. Both via
`WorkspaceIndex::update_file` at the library level (no server session
needed) — the incremental-update code path (`update.rs`) is exercised
identically for hierarchical and connection tables, which is by
construction from the diff (same `absorb`/`update_file` code, dispatched
on `decl.surface`) and confirmed by these two round-trips.
- **New attack — a hierarchical declaration's own reference postings
include the cross-file tail** (`WorkspaceIndex::references_to` on a net's
`Def`, gotten via `hierarchical_declarations`): confirmed — this is the
exact mechanism `state.rs::want_declaration` stands on to pull the tail's
file into a rename's fan-out.
**Completion.** The dev's own two-way pin
(`an_instance_head_lists_the_hierarchical_surface_and_a_connection_list_does_not`)
read and re-run. **New attacks, run green then removed**: `u_a.u_b.`
(nested) lists `u_b`'s module's own hierarchical surface, not `u_a`'s and
not empty; an instance of an **unknown** module in *expression* position
(not just the connection-list shape the dev's own
`a_module_the_workspace_does_not_declare_answers_nothing` already covered)
answers empty, no panic.
**Opentitan (read-only; every`textDocument/rename` a request, inspected,
never applied).** Built `v0.44.0`'s `lucisv-server` in a scratch worktree
(`git worktree add`, removed after). `git -C ~/repo/opentitan status
--porcelain` showed only the three pre-existing files
(`hw/ip/aes/dv/tb/tb.sv`, `hw/top_darjeeling/.../ast.sv`,
`hw/top_earlgrey/.../ast.sv`) before and after every run — reproduced
independently, not assumed from the dev's log.
- `lc_ctrl_fsm.sv:173`'s `fsm_state_q`, renamed from the declaration: 0.44.0
→ `rtl/lc_ctrl_fsm.sv` alone, 8 edits, 9–10 ms rename / 0–1 ms
prepareRename. This branch → **+ `dv/tb.sv`, 1 edit**, same 8 in the rtl
file, 22–24 ms rename / 0–1 ms prepareRename. Matches the README exactly.
Dumped every edit's range and the *exact source text at that range* on
both files: **every one reads `"fsm_state_q"`**, character-for-character,
new file included (`dv/tb.sv:229`, columns 63–74).
- `aes_core.sv:87`'s `key_touch_forces_reseed`: **identical answer** before
and after — `rtl/aes_core.sv`, 3 edits — 38–41 ms → 55–56 ms. Matches.
- Sampled the newly-resolved references over `hw/` with an independent
read-only tool (not the dev's — built fresh against the library API):
**1611 hierarchical candidates, 1290 answered, 514 hierarchical-only** —
matches the README's table exactly. Printed 20 of the 514 with the
occurrence line, the resolved declaration's file:line, and the
declaration's own source text. All 20 are genuine DV-bench-into-DUT
reaches (`dut.reg2hw...`, `dut.u_x.state_q`, `dut.lfsr_en`, …), every
declaration's source text actually spells the referenced name at the
claimed location, and every one is a plausible member of the instance's
module — no false positive found in the sample.
**Findings.** None at HIGH or MEDIUM severity. Two LOW observations, neither
blocking:
- LOW — `crates/lucisv_server/src/state.rs` is already flagged by the dev
(957 production lines) and separately filed by the lead as TODO §55; no
new action from this QA pass beyond confirming the number.
- LOW — the `Local`-reference-posting filter to the connection surface
(`record.rs::facts_from_analysis`) is a quiet, easy-to-miss line to
re-derive from first principles (it looks at first glance like it could
under-post same-file hierarchical uses). Traced it through
`merge_references`/`want_declaration` and confirmed by the incremental
`didChange` attacks above that nothing is actually lost — worth a comment
pointer from `record.rs` to `hierarchy.rs::surface_of` for the next reader,
but not a functional gap.
**Verdict: PASS.** Rename correctness, the completion split, the verifier's
refusals, the two-table index mechanics, the census delta and the opentitan
before/after all hold under attack, including several shapes beyond the
dev's own plan (own-scope and cross-surface capture through a hierarchical
tail, a non-instance head sharing a module's name, a bind-through-target
scope, and both `didChange` directions). Every temporary QA test was
removed after running green; the tree's diff against master is byte-for-byte
the dev's original plus this log entry and the TODO.md checkbox below.
## Docs to apply at merge (lead)
**`docs/topo.md` §2.9 row 23** — strike, with:
> ~~A **cross-file instance-member tail does not resolve for rename** …~~ —
> **delivered 2026-09-05 by hierarchical-tail (TODO §49):** a module now has
> two member surfaces. Its *connection* surface is unchanged — ports and
> parameters, what a connection list may name and what `member` /
> `members_of` / `members_of_chain` / the `propagate-ports` engine /
> connection-list completion read. Its *hierarchical* surface is that set plus
> its nets, variables and instances (§23.6), recorded in a second index table
> and tagged on the fact (`FACTS_FORMAT` 18 → 19), and read **only** by the
> tail walk behind an instance head (`Resolution::ExternalCandidate` carrying
> `Surface::Hierarchical`, set by `resolve.rs::head_surface`). `assign w =
> u_x.sig;` in `top.sv` now resolves to `sub.sv`'s `wire sig`, the rename
> edits both files, and the §2.9-20 warning is retired for a tail that
> resolved. A generate-block-scoped net (`u_x.gen[0].sig`) is on neither
> surface and is still refused honestly — the one gap this row leaves behind.
**`docs/features/comment-slots/README.md`, "Findings" item 2** — the gap it
flagged is closed. **Already applied by this lane** (the one line the brief
allowed); nothing for the lead to do, it is recorded here so the merge sees
it:
> **Closed 2026-09-05 by TODO §49 / `docs/features/hierarchical-tail`:** a
> module's hierarchical surface makes the cross-file tail resolve, so the edit
> lands in both files and the warning is retired for it.
**`README.md`** — no change needed; it does not describe the member tables at
this depth.
## Review
**2026-09-05 — lead.** Accepted; ships in 0.45.0 with §47 and §48. The
first dev was cut off by the outage with the library half complete and
sound; the second kept all of it and finished the tests, the README and
the gates — the right call. The ruling is implemented as ruled: two
disjoint tables, the hierarchical one read by exactly one walk, and the
connection surface byte-identical for every existing reader (the census's
12 939 connection members unchanged by construction). QA's matrix is the
proof that matters for a rename: refusals on capture across the surface
boundary, on an ambiguous module, on a generate-scoped net; the lc_ctrl
edit inspected range by range; 20 of the 514 newly resolved opentitan
references sampled and all genuine. The completion decision (hierarchical
members behind `u_x.` in an expression, ports only in a connection list)
is what a user typing a hierarchical path wants. The rename cost of one
more file's read is the feature. QA's two LOWs: `state.rs` is filed as
§55; the `Local`-posting doc pointer is added at review.
*(reserved for the lead — do not write here)*
+122 -167
View File
@@ -1,195 +1,150 @@
# Repository analysis
Audited 2026-09-04 against HEAD `d5abf81`. The manifest still declares
**v0.41.0**; HEAD includes the accepted parser-skips work intended for
v0.42.0. This is a source and documentation audit, not a new performance or
full language-conformance measurement.
Refreshed **2026-09-05**. Latest release: **v0.44.0** (`66f3898`). This
review uses committed snapshot **`9ef1058`**, which also includes accepted
type-name-spans and package-reexports work intended for v0.45.0. The active
hierarchical-tail changes are described separately; their QA is still open.
## Assessment
## Assessment and current status
lucisv is a complete developer-tool stack, with eight Rust crates (six
libraries and two binaries), a VS Code extension, Neovim/Vim configuration,
release/corpus scripts, and an Astro/Starlight documentation site. Its strongest
architectural choices are shared language engines, runtime formatter checks,
conservative semantic resolution, and a single owner for mutable LSP state.
lucisv remains an eight-crate toolchain: six reusable Rust libraries, CLI and
LSP binaries, editor integration, corpus/release tools, and a static docs site.
The architecture still separates syntax, formatting, semantics, linting,
refactoring, and project inputs. The three issues raised by the September 4
audit have been fixed; they should no longer be treated as open priorities.
The most consequential remaining issues found in this audit are coordination
between atomic writers and disagreement between project-file and editor lint
selection. The test suite passes, but neither result establishes those contracts:
the atomic tests exercise sequential replacement, and editor rule-selection
tests exercise client settings. Documentation had also fallen behind the
recent implementation rounds.
| Change | Status at this refresh | Implementation and contract |
|---|---|---|
| External waiver files | Released in v0.42.0 | `ExternalWaivers`, `WaiverUse`, and `lint_with`; CLI, project config and editor paths add together; inline/external suppression is a union; unused external waivers are reported only after a complete CLI run |
| Rival conditional headers and net-delay position | Released in v0.42.0 | Split units stay verbatim; delays print before or after the type according to their original position |
| Atomic-write coordination | Released in v0.43.0 | Exclusive per-operation temp files, permissions applied before bytes, CLI dedup by canonical path; separate processes remain last-writer-wins |
| Project/editor lint agreement | Released in v0.43.0 | Non-empty editor select/ignore lists override project lists independently; rejected project entries log once with file and line; valid entries continue to apply |
| Cycle-aware walks and net-delay comment slots | Released in v0.43.0 | Directory identity prevents cycles; comments around a delay's `#` are preserved |
| Walk warnings, editor rule-name warnings, aggregate overrides and delay-list comments | Released in v0.44.0 | Recoverable walk problems warn and continue; editor name typos log once; aggregate override expressions and delay-list comment slots are handled |
| didOpen cost | Released in v0.44.0 | `undriven-net` asks the workspace mention oracle after local guards; findings and synchronous request ordering stay unchanged |
| Type-name spans | Committed, accepted for v0.45.0 | `DataType::name_span()` / `segments()` and disable-target spans replace semantic name scanning; `scan.rs` is deleted |
| Package re-exports | Committed, accepted for v0.45.0 | Export name halves are references; the shared member walk follows cycle-guarded re-export edges; persisted facts gain `RX`, codec **18** |
| Hierarchical tails | **Working tree, QA pending** | Proposed codec **19**, tagged member/reference surfaces, instance-tail resolution and completion, and cross-file rename updates |
The current source of truth for feature acceptance is each feature's QA/review
log and [TODO.md](../TODO.md). The [topology](topo.md) records the interfaces
that future changes must preserve. A missing documented edge is not proof that
two edits have disjoint ownership.
## Repository map
| Location | Responsibility and starting point |
|---|---|
| `crates/vlog_parser` | Lexer and trivia, strict/tolerant recursive descent, AST and source coordinates; start at `src/lib.rs`, then `parser/` and `ast/` |
| `crates/vlog_formatter` | AST → document IR → printer, alignment, fences, ranges, token equivalence and convergence; start at `src/format/mod.rs` and `src/verify.rs` |
| `crates/vlog_semantic` | File binding/resolution and workspace facts; start at `src/lib.rs`, `bind/`, `workspace/`, and `facts.rs` |
| `crates/vlog_linter` | 73-rule registry, lazy analysis, options, severity, inline waivers and fixes; start at `src/lib.rs`, `context.rs`, and `registry.rs` |
| `crates/vlog_refactor` | Rename/references, port edits and instance plans; shared `src/scope.rs`, whole-edit checks in `check.rs` |
| `crates/lucisv_core` | Config, filelists, walking, format cache and atomic replacement; no language-engine dependency |
| `crates/lucisv` | CLI argument handling, discovery, worker pool, reports and writes; `src/main.rs`, `args.rs`, `lint.rs` |
| `crates/lucisv_server` | Synchronous LSP transport, workspace state, overlays, scans and capability handlers; `src/main.rs`, `server/`, `state.rs` |
| `editors/` | VS Code client/grammar/settings/hierarchy UI, plus configuration examples for other editors |
| `tools/`, `scripts/`, `.gitea/workflows/` | Resource guard, corpus evaluation, artifact audits and release automation |
| `docs/features/` | Feature-specific contracts, implementation history, QA and review; 135 READMEs at audit time |
| `crates/vlog_parser` | Lexer/trivia, strict and tolerant recursive descent, AST/spans; `src/lib.rs`, `parser/`, `ast/` |
| `crates/vlog_formatter` | AST → document IR → printer, alignment, fences/ranges, equivalence and convergence; `format/mod.rs`, `verify.rs` |
| `crates/vlog_semantic` | File binding/resolution, workspace facts and member lookup; `bind/`, `resolve.rs`, `workspace/`, `facts.rs`; committed `workspace/reexport.rs`, active `workspace/hierarchy.rs` |
| `crates/vlog_linter` | 73-rule registry, lazy semantics, options, severities, inline/external waivers and fixes; `lib.rs`, `context.rs`, `registry.rs`, `waiver_file.rs` |
| `crates/vlog_refactor` | Rename/references, port edits, instance plans; shared `scope.rs`, whole-edit verification in `check.rs` |
| `crates/lucisv_core` | Config, filelists, cycle-aware walks and warning channel, format cache, atomic replacement; no language-engine dependency |
| `crates/lucisv` | Argument handling, input discovery/dedup, worker pool, reports and source writes |
| `crates/lucisv_server` | Ordered LSP loop and workspace overlays; `server/`, `state.rs`, capability handlers; project lint validation/logging in `lint/project.rs` |
| `editors/` | VS Code client/grammar/settings/hierarchy UI and configuration for other editors |
| `tools/`, `scripts/`, `.gitea/workflows/` | Resource guard, corpus evaluation, artifact checks and releases |
| `docs/features/` | Implementation contracts, dated measurements, QA and acceptance records |
| `docs/site/` | User-facing static documentation and tracked generated output |
[topo.md](topo.md) gives dependency directions, recent cross-crate contracts,
shared interfaces, and numbered open handshakes. The manifests are authoritative
for crate edges; an absent documented edge alone does not prove two edits safe
to perform concurrently.
The crate dependency graph is unchanged. Parser and core have no dependencies;
formatter and semantics each depend on parser; linter and refactor depend on
parser and semantics. The linter depends on the formatter only in tests.
The CLI composes core/parser/formatter/linter; the server composes all six
libraries. External Rust dependencies stay in the CLI worker pool and server
LSP/JSON stack.
## Runtime behavior and limits
## Runtime contracts worth preserving
**Formatting.** `format_source` strictly parses input, renders a document tree,
re-lexes both versions and compares normalized tokens (including comments),
then parses/formats the output again and checks convergence. A failed check
returns an error instead of a candidate string. The CLI leaves the affected
source file alone. This protects lexical fidelity and stable layout; it does
not elaborate SystemVerilog or prove hardware equivalence. Fenced text still
has to parse. Ranges select items; fences can additionally protect statements
and class members.
**Formatting:** strict parse, layout, normalized token comparison (including
comments), then a second parse/format and convergence check. Failure returns
an error, not a candidate output. These are lexical/layout checks, not design
elaboration or proof of hardware equivalence. Fenced text must still parse;
ranges select items, while fences also protect statement and class scopes.
**Linting.** `ParsedSource` shares a tokenization and tolerant parse, and
`LintContext` computes semantics lazily. Rules consume text, tokens, AST, and
optional project facts; malformed AST elements remain opaque. Inline waivers
filter findings, and severity is stamped centrally. The CLI/server filter
fixes through the formatter's fence API: `apply_fixes` alone does not provide
that protection. `always-comb` offers an unsafe fix; editor actions offer only
safe fixes.
**Linting:** one prepared tokenization/tolerant parse feeds rules and lazy
semantics. Malformed AST elements remain opaque. Front ends call `lint_with`
when applying external waivers and filter automatic edits through the formatter's
fence API; `apply_fixes` alone does not protect fenced bytes. Editor actions
continue to offer only safe fixes. The mention oracle is a pure predicate;
asking it after cheap local guards avoids repeated workspace scans.
**Refactoring and editor state.** Refactors use resolved source spans and check
the whole edit; source selectors must remain supersets of every file an engine
could edit or refuse over. The LSP loop owns workspace mutation, open documents
overlay disk facts, and stepped scans publish related index/include/completion
state together. Facts persist under `FACTS_FORMAT = 17`. Lazy port code actions
compute their edits on selection for capable clients. Recorded UTF-16 positions
avoid reads for closed-file file-scope definitions; members and open buffers
still use text-based locations.
**Editor and refactors:** one loop owns workspace mutation; buffers overlay
disk facts and scans publish related index/include/completion state together.
Lazy port actions defer edits until selection. File-scope definition positions
can come from the index; members and open buffers use text-based positions.
Refactor source selectors must include every file an engine might edit or
refuse over, even when completion or navigation can answer from fewer files.
**Intentional scope.** Neither parser mode performs cross-file macro expansion
or compiler elaboration. Missing definitions outside an index scope can mean
missing hints or conservative lint silence. Rootless indexing never climbs;
with depth 0 it reads siblings flat, while positive depth walks descendants.
The published 814/820 frozen-corpus result is historical feature QA evidence,
not a new corpus sweep performed by this audit. Performance reports under
`docs/performance*.md` and `docs/perf/` likewise remain dated measurements.
**New committed semantic contracts:** a type-name segment is derived from AST
span data and verified against the source by `Binder::exact_or_empty`. The
source parameter to analysis remains necessary even though `scan.rs` is gone.
A package re-export records reference edges without adding a local import.
`export *::*` expands the package's imports into re-export facts; member lookup
follows those edges with cycle guards. Cache codec 18 prevents older stores
from silently omitting this information.
## Findings and follow-up priorities
## Active work and remaining limits
### 1. Coordinate writes to a shared target
TODO §49 owns hierarchical-tail resolution. At this refresh, its working tree
adds `Surface::{Connection, Hierarchical}`, a second member table, surface tags
on persisted declarations/references, and codec 19. Connection completion and
port propagation retain the existing ports/parameters view; paths behind an
instance can additionally reach internal nets, variables and nested instances.
Member completion and rename fan-out are part of the same contract. The feature
README reports development checks; independent QA is still pending, so topology
handshake 23 remains open. No working-tree API is treated as released here.
Evidence: [atomic.rs](../crates/lucisv_core/src/atomic.rs) canonicalizes the
target, then derives a temp name from the target filename and process ID.
`fs::write` opens that predictable path without exclusive creation.
[CLI dedup](../crates/lucisv/src/main.rs) folds lexical path components but
intentionally leaves symlinks unresolved. Two rayon jobs reaching one target
through different spellings can therefore share a temporary file.
Remaining constraints include generate-block-scoped hierarchical paths,
cross-file macro expansion, and compiler elaboration. Package re-export support
does not bind a DPI-export function name; that residue is now separated into
topology handshake 31. Shared path normalization (1) and structured formatter
error output (11) also remain open. Inline aggregate override arguments are
supported, but instance templates still omit a type default written across
multiple lines. These are narrower limits than the old audit's unresolved
entries 2, 16 and 17 suggested.
A disposable probe compiled the actual `atomic.rs` and used two barrier-started
threads per round to write different 1 MiB buffers to one target. Across
**100 rounds / 200 calls, 100 writes failed**. The final file in every round
was a complete one-writer buffer; **no mixed final bytes were observed**. This
reproduces the helper's collision, not an end-to-end formatter corruption.
The probe used only `/tmp` files and ran under the resource guard.
## Historical audit findings and evidence
Recommended follow-up: exclusive, unique per-operation temp files; coordinate
or deduplicate writes by target identity; add a concurrent alias regression.
The existing temp-and-rename helper is useful for sequential replacement, but
its tests do not justify a same-target concurrency guarantee. Tracked as
[topology handshake 26](topo.md).
The **2026-09-04** audit reproduced a temp-file collision at the old revision:
100 errors in 200 concurrent helper calls, with no mixed final bytes observed.
That is historical evidence, not a current failure. The
[atomic-write-coordination QA](features/atomic-write-coordination/README.md)
records the committed regression test and successful 2/4/8-thread checks.
[Lint-config-contract](features/lint-config-contract/README.md) records CLI/LSP
selection parity and once-only logging checks.
[Walk-cycles](features/walk-cycles/README.md) and
[small-items-4](features/small-items-4/README.md) record cycle handling, recoverable
warnings and the closed delay-comment gaps.
**Fixed by TODO §41 (0.43.0, 2026-09-05):** the probe now runs as
`atomic::tests::two_threads_writing_one_target_never_collide` and reports
0 write errors in 200 calls (QA re-ran it at 4 and 8 threads: 0 in 400 and
0 in 800); the symlink alias closes as `cli::a_symlink_and_its_target_are_one_file`.
Two processes writing one target remain last-writer-wins, stated in
`atomic.rs`. See `docs/features/atomic-write-coordination/README.md`.
[Performance take 3](performance_take3.md) measures v0.43.0 and predates the
v0.44.0 fix. The later [didOpen-cost report](features/didopen-cost/README.md)
records 1,742 ms → 117 ms on the large pinmux file at workspace scope, with
unchanged diagnostics. These are feature measurements on one machine, not
fresh measurements by this documentation refresh. The 814/820 frozen-corpus
result likewise remains attributed to feature QA; no corpus or OpenTitan sweep
is part of this refresh.
### 2. Define a consistent project lint configuration contract
## Validation of this refresh
Evidence: [server linting](../crates/lucisv_server/src/lint.rs) selects rules in
`enabled_rules` from `ClientSettings` only. Its `configured` function discovers
`lucisv.toml` but reads `lint_options` and line length, not `lint_select` or
`lint_ignore`. In contrast, [CLI linting](../crates/lucisv/src/lint.rs) consumes
project selection. The server also discards invalid project option entries
with `let _ = options.set_raw(...)`; only invalid *editor* option settings
receive the corresponding per-entry log.
**Fixed by TODO §42 (0.43.0, 2026-09-05):** `enabled_rules` now takes the
project's selection beside the editor's and picks the editor's list when it
is non-empty, the project's otherwise, key by key — the CLI's `pick` applied
to the editor. Rejected project entries are logged once per (configuration
file, entry) as `<file>:<line>: <message>`, the wording `lucisv check` fails
with, and the buffer is still linted with the entry dropped. Pinned by
`lint::project`'s four-way table test and by three wire-level tests in
`crates/lucisv_server/tests/e2e.rs`, one of which asserts the CLI's and the
server's rule lists equal for three configurations. See
`docs/features/lint-config-contract/README.md`.
### 3. Keep traversal and semantic gaps explicit
The shared [directory walker](../crates/lucisv_core/src/walk.rs) recursively
follows `Path::is_dir()` with no visited-directory set. Symlink cycles remain
an existing open issue (topology handshake 8); eventual filesystem refusal is
not an explicit traversal budget or cycle policy. Prioritize a deliberate
cycle policy before broadening traversal.
Other concrete open contracts include missing type spans (handshake 2),
package re-export resolution (16), inline aggregate type arguments (17), and
cross-file rename of an internal module net (23). The parser-skips regression
suite also retains a refusal for comments immediately before a net-delay `#`
(27). These limitations should remain visible when widening grammar or index
coverage; formatter verification must continue to reject unsupported output.
**Fixed by TODO §43 (0.43.0, 2026-09-05):** the walker enters each directory
once by identity (`(dev, ino)` on unix, the canonical path elsewhere); a
symlink cycle terminates and a doubly reachable file is reported once. The
"no traversal budget" ruling was the lead's: identity is the policy. The
net-delay comment refusal (handshake 27) is closed by `NetDelay`'s comment
slots. Still open from this finding: handshakes 2, 16, 17, 23, and the new 30
(an unreadable directory aborts the walk). See
`docs/features/walk-cycles/README.md`.
## Documentation changes from this audit
- Expanded the README's architecture to cover all eight crates and documented
the runtime checks, actual indexing behavior, documentation entry points,
and guarded verification commands.
- Updated topology facts to codec 17, corrected moved module paths, recorded
recent recovery/lint/fence/atomic/LSP contracts, and closed the stale `program`
linked-editing request using the existing module-shaped AST path.
- Updated site configuration, formatter/linter guides, CLI, language tools,
architecture and API navigation for current behavior. The API index now
explicitly defers to rustdoc for exhaustive signatures and fields.
- Removed the stale `0.9.0` product version from site structured metadata;
release versions remain owned by the workspace/release files.
The parser-skips changes were already present when the audit started and were
committed by another workflow during the audit. Their QA log now records PASS;
the topology reflects that final state. This audit made no Rust implementation
changes and did not modify their feature log or backlog checkboxes.
## Validation
Checks ran against an isolated archive of committed `9ef1058`, with a separate
build directory and the repository resource guard. This avoids the live agents'
target directory and does not certify their uncommitted changes.
- `cargo fmt --all -- --check`: passed.
- `cargo clippy --workspace --all-targets -- -D warnings`: passed.
- `tools/guard.sh -- cargo test --workspace`: **3,745 passed, 0 failed,
44 ignored**, summed across 48 test/doc-test harnesses. Counts include the
post-v0.41.0 parser-skip cases and one passing doctest; ignored measurement
tests were not enabled.
- Documentation build: `ASTRO_TELEMETRY_DISABLED=1 npm run build` in
`docs/site` passed; 13 pages, Pagefind index and sitemaps generated.
- Generated-site verification: 817 local links, assets and anchors checked,
zero failures; relative links in the repository documentation checked.
`git diff --check` passed.
- Atomic-write probe: collision reproduced as described above, no repository
source files written.
- `cargo clippy --offline --workspace --all-targets -- -D warnings`: passed.
- `cargo test --offline --workspace`: **3,829 passed, 0 failed, 44 ignored**,
across 49 harnesses, under `tools/guard.sh`. The archive did not include the
ignored/untracked corpus checkout, and ignored measurement tests were not run.
- `ASTRO_TELEMETRY_DISABLED=1 npm run build` in `docs/site`: passed;
13 pages, Pagefind search and sitemaps rebuilt.
- Generated-site validation: **820** local links, assets and anchors checked,
zero errors. Relative links in the root analysis/topology/coverage docs also
passed. `git diff --check` passed for these documentation changes.
The first test attempt was stopped because sandboxed `ps` prevented the guard
from measuring memory; the successful rerun used an approved environment where
monitoring worked. No corpus sweep, OpenTitan sweep, ignored benchmark run,
release packaging, or external publishing was performed by this audit.
The previous audit's 3,745 passing tests describe its September 4 snapshot;
they are not reused as the test result for this revision. This refresh changes
documentation only and leaves feature QA logs and backlog checkboxes to their
owners. No corpus/OpenTitan sweep, new benchmark, release packaging or
publishing was performed.
+1 -1
View File
@@ -116,4 +116,4 @@ to the lucisv log whether the file was named by the editor setting or by
are reported under <code dir="auto">unused-waiver</code> at their line of the waiver file, by
<code dir="auto">lucisv check</code> only and only after the whole run.</p>
<p>See the <a href="/reference/rules/">complete rule reference</a>.</p>
</div><footer class="sl-flex astro-xhxjzfa7"><div class="meta sl-flex astro-xhxjzfa7"><a href="https://git.luci.ooo/lucio/verilogrustformatter/src/branch/master/docs/site/src/content/docs/guides/linter.md" class="sl-flex print:hidden astro-xk5gmzsg"><svg aria-hidden="true" class="astro-xk5gmzsg astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.2em;"><path d="M22 7.24a1 1 0 0 0-.29-.71l-4.24-4.24a1 1 0 0 0-1.1-.22 1 1 0 0 0-.32.22l-2.83 2.83L2.29 16.05a1 1 0 0 0-.29.71V21a1 1 0 0 0 1 1h4.24a1 1 0 0 0 .76-.29l10.87-10.93L21.71 8c.1-.1.17-.2.22-.33a1 1 0 0 0 0-.24v-.14l.07-.05ZM6.83 20H4v-2.83l9.93-9.93 2.83 2.83L6.83 20ZM18.17 8.66l-2.83-2.83 1.42-1.41 2.82 2.82-1.41 1.42Z"/></svg>Edit page</a><p>Last updated: <time datetime="2026-09-05T05:03:07.000Z">Sep 5, 2026</time></p></div><div class="pagination-links print:hidden astro-jgq3vlii" dir="ltr"><a href="/guides/formatter/" rel="prev" class="astro-jgq3vlii"><svg aria-hidden="true" class="astro-jgq3vlii astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.5rem;"><path d="M17 11H9.41l3.3-3.29a1.004 1.004 0 1 0-1.42-1.42l-5 5a1 1 0 0 0-.21.33 1 1 0 0 0 0 .76 1 1 0 0 0 .21.33l5 5a1.002 1.002 0 0 0 1.639-.325 1 1 0 0 0-.219-1.095L9.41 13H17a1 1 0 0 0 0-2Z"/></svg><span class="astro-jgq3vlii">Previous<br class="astro-jgq3vlii"><span class="link-title astro-jgq3vlii">Formatter</span></span></a><a href="/guides/editors/" rel="next" class="astro-jgq3vlii"><svg aria-hidden="true" class="astro-jgq3vlii astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.5rem;"><path d="M17.92 11.62a1.001 1.001 0 0 0-.21-.33l-5-5a1.003 1.003 0 1 0-1.42 1.42l3.3 3.29H7a1 1 0 0 0 0 2h7.59l-3.3 3.29a1.002 1.002 0 0 0 .325 1.639 1 1 0 0 0 1.095-.219l5-5a1 1 0 0 0 .21-.33 1 1 0 0 0 0-.76Z"/></svg><span class="astro-jgq3vlii">Next<br class="astro-jgq3vlii"><span class="link-title astro-jgq3vlii">Editors &amp; LSP</span></span></a></div></footer></div></div></main></div></div></div></div></body></html>
</div><footer class="sl-flex astro-xhxjzfa7"><div class="meta sl-flex astro-xhxjzfa7"><a href="https://git.luci.ooo/lucio/verilogrustformatter/src/branch/master/docs/site/src/content/docs/guides/linter.md" class="sl-flex print:hidden astro-xk5gmzsg"><svg aria-hidden="true" class="astro-xk5gmzsg astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.2em;"><path d="M22 7.24a1 1 0 0 0-.29-.71l-4.24-4.24a1 1 0 0 0-1.1-.22 1 1 0 0 0-.32.22l-2.83 2.83L2.29 16.05a1 1 0 0 0-.29.71V21a1 1 0 0 0 1 1h4.24a1 1 0 0 0 .76-.29l10.87-10.93L21.71 8c.1-.1.17-.2.22-.33a1 1 0 0 0 0-.24v-.14l.07-.05ZM6.83 20H4v-2.83l9.93-9.93 2.83 2.83L6.83 20ZM18.17 8.66l-2.83-2.83 1.42-1.41 2.82 2.82-1.41 1.42Z"/></svg>Edit page</a><p>Last updated: <time datetime="2026-09-05T06:45:48.000Z">Sep 5, 2026</time></p></div><div class="pagination-links print:hidden astro-jgq3vlii" dir="ltr"><a href="/guides/formatter/" rel="prev" class="astro-jgq3vlii"><svg aria-hidden="true" class="astro-jgq3vlii astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.5rem;"><path d="M17 11H9.41l3.3-3.29a1.004 1.004 0 1 0-1.42-1.42l-5 5a1 1 0 0 0-.21.33 1 1 0 0 0 0 .76 1 1 0 0 0 .21.33l5 5a1.002 1.002 0 0 0 1.639-.325 1 1 0 0 0-.219-1.095L9.41 13H17a1 1 0 0 0 0-2Z"/></svg><span class="astro-jgq3vlii">Previous<br class="astro-jgq3vlii"><span class="link-title astro-jgq3vlii">Formatter</span></span></a><a href="/guides/editors/" rel="next" class="astro-jgq3vlii"><svg aria-hidden="true" class="astro-jgq3vlii astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.5rem;"><path d="M17.92 11.62a1.001 1.001 0 0 0-.21-.33l-5-5a1.003 1.003 0 1 0-1.42 1.42l3.3 3.29H7a1 1 0 0 0 0 2h7.59l-3.3 3.29a1.002 1.002 0 0 0 .325 1.639 1 1 0 0 0 1.095-.219l5-5a1 1 0 0 0 .21-.33 1 1 0 0 0 0-.76Z"/></svg><span class="astro-jgq3vlii">Next<br class="astro-jgq3vlii"><span class="link-title astro-jgq3vlii">Editors &amp; LSP</span></span></a></div></footer></div></div></main></div></div></div></div></body></html>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+1 -1
View File
@@ -1 +1 @@
{"version":"1.5.2","languages":{"en":{"hash":"en_e88e94fa5c","wasm":"en","page_count":12}},"include_characters":["_","‿","⁀","⁔","︳","︴","﹍","﹎","﹏","_"]}
{"version":"1.5.2","languages":{"en":{"hash":"en_8310bcd6c3","wasm":"en","page_count":12}},"include_characters":["_","‿","⁀","⁔","︳","︴","﹍","﹎","﹏","_"]}
Binary file not shown.
Binary file not shown.
+16 -3
View File
@@ -70,7 +70,7 @@
})();
</script></sl-sidebar-state-persist><div class="md:sl-hidden"><div class="mobile-preferences sl-flex astro-b5gddk54"><div class="social-icons astro-b5gddk54"><a href="https://git.luci.ooo/lucio/verilogrustformatter" rel="me" class="sl-flex astro-cg55etiy"><span class="sr-only astro-cg55etiy">Source repository</span><svg aria-hidden="true" class="astro-cg55etiy astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1em;"><path d="M12 .3a12 12 0 0 0-3.8 23.38c.6.12.83-.26.83-.57L9 21.07c-3.34.72-4.04-1.61-4.04-1.61-.55-1.39-1.34-1.76-1.34-1.76-1.08-.74.09-.73.09-.73 1.2.09 1.83 1.24 1.83 1.24 1.08 1.83 2.81 1.3 3.5 1 .1-.78.42-1.31.76-1.61-2.67-.3-5.47-1.33-5.47-5.93 0-1.31.47-2.38 1.24-3.22-.14-.3-.54-1.52.1-3.18 0 0 1-.32 3.3 1.23a11.5 11.5 0 0 1 6 0c2.28-1.55 3.29-1.23 3.29-1.23.64 1.66.24 2.88.12 3.18a4.65 4.65 0 0 1 1.23 3.22c0 4.61-2.8 5.63-5.48 5.92.42.36.81 1.1.81 2.22l-.01 3.29c0 .31.2.69.82.57A12 12 0 0 0 12 .3Z"/></svg></a></div><starlight-theme-select><label style="--sl-select-width: 6.25em" class="astro-r2p65idu"><span class="sr-only astro-r2p65idu">Select theme</span><svg aria-hidden="true" class="icon label-icon astro-r2p65idu astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1em;"><path d="M21 14h-1V7a3 3 0 0 0-3-3H7a3 3 0 0 0-3 3v7H3a1 1 0 0 0-1 1v2a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3v-2a1 1 0 0 0-1-1ZM6 7a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v7H6V7Zm14 10a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-1h16v1Z"/></svg><select autocomplete="off" class="astro-r2p65idu"><option value="dark" class="astro-r2p65idu">Dark</option><option value="light" class="astro-r2p65idu">Light</option><option value="auto" selected class="astro-r2p65idu">Auto</option></select><svg aria-hidden="true" class="icon caret astro-r2p65idu astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1em;"><path d="M17 9.17a1 1 0 0 0-1.41 0L12 12.71 8.46 9.17a1 1 0 1 0-1.41 1.42l4.24 4.24a1.002 1.002 0 0 0 1.42 0L17 10.59a1.002 1.002 0 0 0 0-1.42Z"/></svg></label></starlight-theme-select><script>
StarlightThemeProvider.updatePickers();
</script></div></div></div></div></nav><div class="main-frame astro-gqpr5s5a"><script type="module">var e=document.getElementById(`starlight__sidebar`),t=e?.querySelector(`sl-sidebar-state-persist`),n=`sl-sidebar-state`,r=()=>{let r=[],i=t?.dataset.hash||``;try{let e=sessionStorage.getItem(n),t=JSON.parse(e||`{}`);Array.isArray(t.open)&&t.hash===i&&(r=t.open)}catch{}return{hash:i,open:r,scroll:e?.scrollTop||0}},i=e=>{try{sessionStorage.setItem(n,JSON.stringify(e))}catch{}},a=()=>i(r()),o=(e,t)=>{let n=r();n.open[t]=e,i(n)};t?.addEventListener(`click`,e=>{if(!(e.target instanceof Element))return;let t=e.target.closest(`summary`)?.closest(`details`);if(!t)return;let n=t.querySelector(`sl-sidebar-restore`),r=parseInt(n?.dataset.index||``);isNaN(r)||o(!t.open,r)}),addEventListener(`visibilitychange`,()=>{document.visibilityState===`hidden`&&a()});</script><div class="lg:sl-flex astro-abfeecmu"><aside class="right-sidebar-container print:hidden astro-abfeecmu"><div class="right-sidebar astro-abfeecmu"><div class="lg:sl-hidden astro-q5mffni3"><mobile-starlight-toc data-min-h="2" data-max-h="3" class="astro-5ulgm6bh"><nav aria-labelledby="starlight__on-this-page--mobile" class="astro-5ulgm6bh"><details id="starlight__mobile-toc" class="astro-5ulgm6bh"><summary id="starlight__on-this-page--mobile" class="sl-flex astro-5ulgm6bh"><span class="toggle sl-flex astro-5ulgm6bh">On this page<svg aria-hidden="true" class="caret astro-5ulgm6bh astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1rem;"><path d="m14.83 11.29-4.24-4.24a1 1 0 1 0-1.42 1.41L12.71 12l-3.54 3.54a1 1 0 0 0 0 1.41 1 1 0 0 0 .71.29 1 1 0 0 0 .71-.29l4.24-4.24a1.002 1.002 0 0 0 0-1.42Z"/></svg></span><span class="display-current astro-5ulgm6bh"></span></summary><div class="dropdown astro-5ulgm6bh"><ul class="isMobile astro-cxyftcne" style="--depth: 0;"><li style="--depth: 0;" class="astro-cxyftcne"><a href="#_top" style="--depth: 0;" class="astro-cxyftcne"><span style="--depth: 0;" class="astro-cxyftcne">Overview</span></a></li><li style="--depth: 0;" class="astro-cxyftcne"><a href="#data-flow" style="--depth: 0;" class="astro-cxyftcne"><span style="--depth: 0;" class="astro-cxyftcne">Data flow</span></a></li><li style="--depth: 0;" class="astro-cxyftcne"><a href="#execution-paths-and-ownership" style="--depth: 0;" class="astro-cxyftcne"><span style="--depth: 0;" class="astro-cxyftcne">Execution paths and ownership</span></a></li><li style="--depth: 0;" class="astro-cxyftcne"><a href="#design-invariants" style="--depth: 0;" class="astro-cxyftcne"><span style="--depth: 0;" class="astro-cxyftcne">Design invariants</span></a></li><li style="--depth: 0;" class="astro-cxyftcne"><a href="#release-surface" style="--depth: 0;" class="astro-cxyftcne"><span style="--depth: 0;" class="astro-cxyftcne">Release surface</span></a></li></ul></div></details></nav></mobile-starlight-toc><script type="module" src="/_astro/MobileTableOfContents.astro_astro_type_script_index_0_lang.BcSo_yiZ.js"></script></div><div class="right-sidebar-panel sl-hidden lg:sl-block astro-q5mffni3"><div class="sl-container astro-q5mffni3"><starlight-toc data-min-h="2" data-max-h="3"><nav aria-labelledby="starlight__on-this-page"><h2 id="starlight__on-this-page">On this page</h2><ul class="astro-cxyftcne" style="--depth: 0;"><li style="--depth: 0;" class="astro-cxyftcne"><a href="#_top" style="--depth: 0;" class="astro-cxyftcne"><span style="--depth: 0;" class="astro-cxyftcne">Overview</span></a></li><li style="--depth: 0;" class="astro-cxyftcne"><a href="#data-flow" style="--depth: 0;" class="astro-cxyftcne"><span style="--depth: 0;" class="astro-cxyftcne">Data flow</span></a></li><li style="--depth: 0;" class="astro-cxyftcne"><a href="#execution-paths-and-ownership" style="--depth: 0;" class="astro-cxyftcne"><span style="--depth: 0;" class="astro-cxyftcne">Execution paths and ownership</span></a></li><li style="--depth: 0;" class="astro-cxyftcne"><a href="#design-invariants" style="--depth: 0;" class="astro-cxyftcne"><span style="--depth: 0;" class="astro-cxyftcne">Design invariants</span></a></li><li style="--depth: 0;" class="astro-cxyftcne"><a href="#release-surface" style="--depth: 0;" class="astro-cxyftcne"><span style="--depth: 0;" class="astro-cxyftcne">Release surface</span></a></li></ul></nav></starlight-toc><script type="module" src="/_astro/TableOfContents.astro_astro_type_script_index_0_lang.Csloo1VZ.js"></script></div></div></div></aside><div class="main-pane astro-abfeecmu"><main data-pagefind-body class="astro-vdxcvpsm" lang="en" dir="ltr"><div class="content-panel astro-oil7k7jf"><div class="sl-container astro-oil7k7jf"><h1 id="_top" class="astro-2sm4b3ln">Architecture</h1></div></div><div class="content-panel astro-oil7k7jf"><div class="sl-container astro-oil7k7jf"><div class="sl-markdown-content"><p>lucisv follows the same separation of concerns that makes ruff fast and maintainable: syntax and source fidelity at the bottom,Line truncated
</script></div></div></div></div></nav><div class="main-frame astro-gqpr5s5a"><script type="module">var e=document.getElementById(`starlight__sidebar`),t=e?.querySelector(`sl-sidebar-state-persist`),n=`sl-sidebar-state`,r=()=>{let r=[],i=t?.dataset.hash||``;try{let e=sessionStorage.getItem(n),t=JSON.parse(e||`{}`);Array.isArray(t.open)&&t.hash===i&&(r=t.open)}catch{}return{hash:i,open:r,scroll:e?.scrollTop||0}},i=e=>{try{sessionStorage.setItem(n,JSON.stringify(e))}catch{}},a=()=>i(r()),o=(e,t)=>{let n=r();n.open[t]=e,i(n)};t?.addEventListener(`click`,e=>{if(!(e.target instanceof Element))return;let t=e.target.closest(`summary`)?.closest(`details`);if(!t)return;let n=t.querySelector(`sl-sidebar-restore`),r=parseInt(n?.dataset.index||``);isNaN(r)||o(!t.open,r)}),addEventListener(`visibilitychange`,()=>{document.visibilityState===`hidden`&&a()});</script><div class="lg:sl-flex astro-abfeecmu"><aside class="right-sidebar-container print:hidden astro-abfeecmu"><div class="right-sidebar astro-abfeecmu"><div class="lg:sl-hidden astro-q5mffni3"><mobile-starlight-toc data-min-h="2" data-max-h="3" class="astro-5ulgm6bh"><nav aria-labelledby="starlight__on-this-page--mobile" class="astro-5ulgm6bh"><details id="starlight__mobile-toc" class="astro-5ulgm6bh"><summary id="starlight__on-this-page--mobile" class="sl-flex astro-5ulgm6bh"><span class="toggle sl-flex astro-5ulgm6bh">On this page<svg aria-hidden="true" class="caret astro-5ulgm6bh astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1rem;"><path d="m14.83 11.29-4.24-4.24a1 1 0 1 0-1.42 1.41L12.71 12l-3.54 3.54a1 1 0 0 0 0 1.41 1 1 0 0 0 .71.29 1 1 0 0 0 .71-.29l4.24-4.24a1.002 1.002 0 0 0 0-1.42Z"/></svg></span><span class="display-current astro-5ulgm6bh"></span></summary><div class="dropdown astro-5ulgm6bh"><ul class="isMobile astro-cxyftcne" style="--depth: 0;"><li style="--depth: 0;" class="astro-cxyftcne"><a href="#_top" style="--depth: 0;" class="astro-cxyftcne"><span style="--depth: 0;" class="astro-cxyftcne">Overview</span></a></li><li style="--depth: 0;" class="astro-cxyftcne"><a href="#data-flow" style="--depth: 0;" class="astro-cxyftcne"><span style="--depth: 0;" class="astro-cxyftcne">Data flow</span></a></li><li style="--depth: 0;" class="astro-cxyftcne"><a href="#execution-paths-and-ownership" style="--depth: 0;" class="astro-cxyftcne"><span style="--depth: 0;" class="astro-cxyftcne">Execution paths and ownership</span></a></li><li style="--depth: 0;" class="astro-cxyftcne"><a href="#recent-changes-and-release-boundary" style="--depth: 0;" class="astro-cxyftcne"><span style="--depth: 0;" class="astro-cxyftcne">Recent changes and release boundary</span></a></li><li style="--depth: 0;" class="astro-cxyftcne"><a href="#design-invariants" style="--depth: 0;" class="astro-cxyftcne"><span style="--depth: 0;" class="astro-cxyftcne">Design invariants</span></a></li><li style="--depth: 0;" class="astro-cxyftcne"><a href="#release-surface" style="--depth: 0;" class="astro-cxyftcne"><span style="--depth: 0;" class="astro-cxyftcne">Release surface</span></a></li></ul></div></details></nav></mobile-starlight-toc><script type="module" src="/_astro/MobileTableOfContents.astro_astro_type_script_index_0_lang.BcSo_yiZ.js"></script></div><div class="right-sidebar-panel sl-hidden lg:sl-block astro-q5mffni3"><div class="sl-container astro-q5mffni3"><starlight-toc data-min-h="2" data-max-h="3"><nav aria-labelledby="starlight__on-this-page"><h2 id="starlight__on-this-page">On this page</h2><ul class="astro-cxyftcne" style="--depth: 0;"><li style="--depth: 0;" class="astro-cxyftcne"><a href="#_top" style="--depth: 0;" class="astro-cxyftcne"><span style="--depth: 0;" class="astro-cxyftcne">Overview</span></a></li><li style="--depth: 0;" class="astro-cxyftcne"><a href="#data-flow" style="--depth: 0;" class="astro-cxyftcne"><span style="--depth: 0;" class="astro-cxyftcne">Data flow</span></a></li><li style="--depth: 0;" class="astro-cxyftcne"><a href="#execution-paths-and-ownership" style="--depth: 0;" class="astro-cxyftcne"><span style="--depth: 0;" class="astro-cxyftcne">Execution paths and ownership</span></a></li><li style="--depth: 0;" class="astro-cxyftcne"><a href="#recent-changes-and-release-boundary" style="--depth: 0;" class="astro-cxyftcne"><span style="--depth: 0;" class="astro-cxyftcne">Recent changes and release boundary</span></a></li><li style="--depth: 0;" class="astro-cxyftcne"><a href="#design-invariants" style="--depth: 0;" class="astro-cxyftcne"><span style="--depth: 0;" class="astro-cxyftcne">Design invariants</span></a></li><li style="--depth: 0;" class="astro-cxyftcne"><a href="#release-surface" style="--depth: 0;" class="astro-cxyftcne"><span style="--depth: 0;" class="astro-cxyftcne">Release surface</span></a></li></ul></nav></starlight-toc><script type="module" src="/_astro/TableOfContents.astro_astro_type_script_index_0_lang.Csloo1VZ.js"></script></div></div></div></aside><div class="main-pane astroLine truncated
<table>
<thead>
<tr>
@@ -142,7 +142,7 @@ Only a verified string is returned. Ranges splice whole items; format fences
also protect statement scopes, and verification covers the complete output.</li>
<li><strong>Lint:</strong> <code dir="auto">ParsedSource</code> bundles one tokenization and tolerant parse;
<code dir="auto">LintContext</code> supplies source facts and lazy semantics. The registry selects
73 rules with severities and validated options. Inline waivers filter findings,
73 rules with severities and validated options. Inline and external waivers filter findings,
and the front ends protect fenced bytes before applying fixes.</li>
<li><strong>Refactor:</strong> parsed spans and resolved references produce an edit plan;
the engine checks the whole candidate edit before returning it. Server source
@@ -150,7 +150,7 @@ selectors bound the input set but must include every file the engine might
edit or refuse over. No formatter dependency is involved.</li>
<li><strong>Editor:</strong> one ordered synchronous loop owns <code dir="auto">Workspace</code>; open documents
overlay disk facts. Scans publish index/include/completion batches together.
Closed-file facts persist under codec 17; a bounded file-view cache serves
Committed closed-file facts persist under codec 18, including package re-exports; a bounded file-view cache serves
queries that still need source text. Lazy port actions defer the edit until
selection; recorded file-scope definition positions avoid a closed-file read.</li>
</ul>
@@ -164,6 +164,19 @@ server’s synchronous LSP/JSON stack.</p>
verification, persisted semantic facts, server state/ordering, and matching
server/editor setting names. Source modules are split by grammar domain under
<code dir="auto">parser/</code>, <code dir="auto">ast/</code>, <code dir="auto">format/</code>, <code dir="auto">bind/</code>, <code dir="auto">workspace/</code>, <code dir="auto">ports/</code>, and <code dir="auto">server/</code>.</p>
<div class="sl-heading-wrapper level-h2"><h2 id="recent-changes-and-release-boundary">Recent changes and release boundary</h2><a class="sl-anchor-link" href="#recent-changes-and-release-boundary"><span aria-hidden="true" class="sl-anchor-icon"><svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 1 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 0 0-1.42-1.42m8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 1 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0l3.88-3.89a4.49 4.49 0 0 0 0-6.33M8.83 15.17a1 1 0 0 0 .71.29 1 1 0 0 0 .71-.29l4.92-4.92a1 1 0 1 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42"></path></svg></span><span class="sr-only" data-pagefind-ignore>Section titled “Recent changes and release boundary”</span></a></div>
<p>v0.42–0.44 added external waiver files, exclusive atomic temp files with
canonical CLI deduplication, shared project/editor lint configuration,
cycle-aware directory walks with recoverable warnings, and inline aggregate
overrides. The v0.44.0 <code dir="auto">undriven-net</code> fix asks the workspace mention census only
after local guards, reducing editor open/flush latency without changing the
rule’s findings or the synchronous request-ordering contract.</p>
<p>Two accepted changes are committed after v0.44.0: type names now carry exact
AST spans (<code dir="auto">scan.rs</code> is retired), and package re-exports are references and
cycle-guarded member edges in codec 18. Re-exporting a name does not import it
into the exporting package’s local scope. DPI-export names remain unbound.
The separate hierarchical-tail work proposes codec 19 and a module member
surface for instance paths; it is still under QA and is not a released API.</p>
<div class="sl-heading-wrapper level-h2"><h2 id="design-invariants">Design invariants</h2><a class="sl-anchor-link" href="#design-invariants"><span aria-hidden="true" class="sl-anchor-icon"><svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 1 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 0 0-1.42-1.42m8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 1 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0l3.88-3.89a4.49 4.49 0 0 0 0-6.33M8.83 15.17a1 1 0 0 0 .71.29 1 1 0 0 0 .71-.29l4.92-4.92a1 1 0 1 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42"></path></svg></span><span class="sr-only" data-pagefind-ignore>Section titled “Design invariants”</span></a></div>
<ul>
<li><strong>Source fidelity:</strong> comments and blank-line intent survive the parser.</li>
+6
View File
@@ -247,6 +247,12 @@
<p>Filelist paths bypass <code dir="auto">--exclude</code> and <code dir="auto">.gitignore</code>, just like direct command-line files. Duplicates are processed once. Unknown options, unset variables, and missing listed files warn without changing the exit code; an unreadable filelist is an error.</p>
<div class="sl-heading-wrapper level-h2"><h2 id="ignore-patterns">Ignore patterns</h2><a class="sl-anchor-link" href="#ignore-patterns"><span aria-hidden="true" class="sl-anchor-icon"><svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 1 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 0 0-1.42-1.42m8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 1 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0l3.88-3.89a4.49 4.49 0 0 0 0-6.33M8.83 15.17a1 1 0 0 0 .71.29 1 1 0 0 0 .71-.29l4.92-4.92a1 1 0 1 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42"></path></svg></span><span class="sr-only" data-pagefind-ignore>Section titled “Ignore patterns”</span></a></div>
<p>Directory walks read <code dir="auto">.gitignore</code> in each directory. Deeper rules override shallower rules; the last matching line wins. Supported syntax includes comments, blank lines, <code dir="auto">*</code> within a component, anchored <code dir="auto">/</code>, directory-only trailing <code dir="auto">/</code>, and <code dir="auto">!</code> negation. <code dir="auto">**</code>, <code dir="auto">?</code>, character classes, escapes, global excludes, and tracked-file exceptions are not implemented.</p>
<p>A directory is visited once by identity, so symlink cycles terminate. CLI
inputs resolving to the same canonical path are processed once. An unreadable
directory or <code dir="auto">.gitignore</code>, or a dangling source-file link encountered while
walking, produces <code dir="auto">warning: &lt;path&gt;: &lt;message&gt;</code> on stderr and the walk continues;
these warnings do not change the exit code. A missing explicitly named input
remains an error.</p>
<div class="sl-heading-wrapper level-h2"><h2 id="exit-codes">Exit codes</h2><a class="sl-anchor-link" href="#exit-codes"><span aria-hidden="true" class="sl-anchor-icon"><svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 1 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 0 0-1.42-1.42m8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 1 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0l3.88-3.89a4.49 4.49 0 0 0 0-6.33M8.83 15.17a1 1 0 0 0 .71.29 1 1 0 0 0 .71-.29l4.92-4.92a1 1 0 1 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42"></path></svg></span><span class="sr-only" data-pagefind-ignore>Section titled “Exit codes”</span></a></div>
<table>
<thead>
+1 -1
View File
@@ -74,7 +74,7 @@
<p>Every rule is in one of three <strong>severity</strong> classes. <code dir="auto">error</code> is code that would very likely fail to compile, elaborate or synthesize; <code dir="auto">warning</code> is code that compiles and very likely does not mean what it says; <code dir="auto">style</code> is code that is correct and reads badly. The class is the word in the CLI diagnostic line (<code dir="auto">FILE:LINE:COL: warning: …</code>), the <code dir="auto">severity</code> field of <code dir="auto">--output-format json</code>, and the colour of the editor’s squiggle — and it is accepted wherever a rule name is, so <code dir="auto">--ignore style</code> and <code dir="auto">--select error</code> both work.</p>
<p>Every <code dir="auto">error</code>-class rule is held to one discipline: it goes <strong>silent whenever the run cannot answer</strong> — a file that did not fully parse, a module the project does not hold or holds twice, a name a macro produces, a fragment written to be <code dir="auto"> `include</code>d. A wrong accusation in that class is worse than a hundred missed ones.</p>
<p>This page is hand-written prose. The generated truth is <code dir="auto">lucisv check --rules-doc</code>, which prints every rule with its class, default, fix and rationale straight from the registry — <strong>and every option a rule takes, with its kind and default</strong>.</p>
<p>A configurable rule is configured in a <code dir="auto">[lint.&lt;rule-name&gt;]</code> table of a <code dir="auto">lucisv.toml</code>, or from an editor in the <code dir="auto">lucisv.lint.options</code> object; the option names are Verible’s wherever it has the same option. An unknown rule or option name, a value of the wrong kind, an out-of-range integer or a pattern that does not compile fails a CLI run naming the file and the line. Invalid editor option settings are logged and dropped; invalid project-file option entries are currently dropped silently by server linting.</p>
<p>A configurable rule is configured in a <code dir="auto">[lint.&lt;rule-name&gt;]</code> table of a <code dir="auto">lucisv.toml</code>, or from an editor in the <code dir="auto">lucisv.lint.options</code> object; the option names are Verible’s wherever it has the same option. An unknown rule or option name, a value of the wrong kind, an out-of-range integer or a pattern that does not compile fails a CLI run naming the file and the line. Rejected project entries are logged once with file and line and dropped by server linting; invalid editor options and unknown editor select/ignore names are also logged. Valid entries continue to apply.</p>
<div class="expressive-code"><link rel="stylesheet" href="/_astro/ec.w36nc.css"><script type="module" src="/_astro/ec.0vx5m.js"></script><figure class="frame not-content"><figcaption class="header"></figcaption><pre data-language="toml"><code><div class="ec-line"><div class="code"><span style="--0:#D6DEEB;--1:#403F53">[lint.line-length]</span></div></div><div class="ec-line"><div class="code"><span style="--0:#C5E478;--1:#3B61B0">length</span><span style="--0:#D6DEEB;--1:#403F53"> = </span><span style="--0:#F78C6C;--1:#AA0982">120</span></div></div><div class="ec-line"><div class="code">
</div></div><div class="ec-line"><div class="code"><span style="--0:#D6DEEB;--1:#403F53">[lint.typedef-structs-unions]</span></div></div><div class="ec-line"><div class="code"><span style="--0:#C5E478;--1:#3B61B0">allow_anonymous_nested</span><span style="--0:#D6DEEB;--1:#403F53"> = </span><span style="--0:#FF6A83;--1:#A24848">true</span></div></div></code></pre><div class="copy"><div aria-live="polite"></div><button title="Copy to clipboard" data-copied="Copied!" data-code="[lint.line-length]length = 120[lint.typedef-structs-unions]allow_anonymous_nested = true"><div></div></button></div></figure></div>
<p>A rule marked <strong>on (project)</strong> runs by default only where lucisv can see the other files of your project — <code dir="auto">lucisv check &lt;dir&gt;</code>, or the language server. Over a single file or a stdin buffer it is off and must be <code dir="auto">--select</code>ed, because its one false-positive mode is a use in another file. Turn any rule off with <code dir="auto">--ignore</code>, with <code dir="auto">ignore</code> under <code dir="auto">[lint]</code> in <code dir="auto">lucisv.toml</code>, or with <code dir="auto">lucisv.lint.ignore</code> in your editor.</p>
+21 -7
View File
@@ -72,7 +72,9 @@
StarlightThemeProvider.updatePickers();
</script></div></div></div></div></nav><div class="main-frame astro-gqpr5s5a"><script type="module">var e=document.getElementById(`starlight__sidebar`),t=e?.querySelector(`sl-sidebar-state-persist`),n=`sl-sidebar-state`,r=()=>{let r=[],i=t?.dataset.hash||``;try{let e=sessionStorage.getItem(n),t=JSON.parse(e||`{}`);Array.isArray(t.open)&&t.hash===i&&(r=t.open)}catch{}return{hash:i,open:r,scroll:e?.scrollTop||0}},i=e=>{try{sessionStorage.setItem(n,JSON.stringify(e))}catch{}},a=()=>i(r()),o=(e,t)=>{let n=r();n.open[t]=e,i(n)};t?.addEventListener(`click`,e=>{if(!(e.target instanceof Element))return;let t=e.target.closest(`summary`)?.closest(`details`);if(!t)return;let n=t.querySelector(`sl-sidebar-restore`),r=parseInt(n?.dataset.index||``);isNaN(r)||o(!t.open,r)}),addEventListener(`visibilitychange`,()=>{document.visibilityState===`hidden`&&a()});</script><div class="lg:sl-flex astro-abfeecmu"><aside class="right-sidebar-container print:hidden astro-abfeecmu"><div class="right-sidebar astro-abfeecmu"><div class="lg:sl-hidden astro-q5mffni3"><mobile-starlight-toc data-min-h="2" data-max-h="3" class="astro-5ulgm6bh"><nav aria-labelledby="starlight__on-this-page--mobile" class="astro-5ulgm6bh"><details id="starlight__mobile-toc" class="astro-5ulgm6bh"><summary id="starlight__on-this-page--mobile" class="sl-flex astro-5ulgm6bh"><span class="toggle sl-flex astro-5ulgm6bh">On this page<svg aria-hidden="true" class="caret astro-5ulgm6bh astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1rem;"><path d="m14.83 11.29-4.24-4.24a1 1 0 1 0-1.42 1.41L12.71 12l-3.54 3.54a1 1 0 0 0 0 1.41 1 1 0 0 0 .71.29 1 1 0 0 0 .71-.29l4.24-4.24a1.002 1.002 0 0 0 0-1.42Z"/></svg></span><span class="display-current astro-5ulgm6bh"></span></summary><div class="dropdown astro-5ulgm6bh"><ul class="isMobile astro-cxyftcne" style="--depth: 0;"><li style="--depth: 0;" class="astro-cxyftcne"><a href="#_top" style="--depth: 0;" class="astro-cxyftcne"><span style="--depth: 0;" class="astro-cxyftcne">Overview</span></a></li><li style="--depth: 0;" class="astro-cxyftcne"><a href="#vlog_parser" style="--depth: 0;" class="astro-cxyftcne"><span style="--depth: 0;" class="astro-cxyftcne">vlog_parser</span></a><ul class="isMobile astro-cxyftcne" style="--depth: 1;"><li style="--depth: 1;" class="astro-cxyftcne"><a href="#entry-points-and-lexical-utilities" style="--depth: 1;" class="astro-cxyftcne"><span style="--depth: 1;" class="astro-cxyftcne">Entry points and lexical utilities</span></a></li><li style="--depth: 1;" class="astro-cxyftcne"><a href="#coordinates-and-token-queries" style="--depth: 1;" class="astro-cxyftcne"><span style="--depth: 1;" class="astro-cxyftcne">Coordinates and token queries</span></a></li><li style="--depth: 1;" class="astro-cxyftcne"><a href="#ast-queries" style="--depth: 1;" class="astro-cxyftcne"><span style="--depth: 1;" class="astro-cxyftcne">AST queries</span></a></li></ul></li><li style="--depth: 0;" class="astro-cxyftcne"><a href="#vlog_formatter" style="--depth: 0;" class="astro-cxyftcne"><span style="--depth: 0;" class="astro-cxyftcne">vlog_formatter</span></a><ul class="isMobile astro-cxyftcne" style="--depth: 1;"><li style="--depth: 1;" class="astro-cxyftcne"><a href="#formatting-and-verification" style="--depth: 1;" class="astro-cxyftcne"><span style="--depth: 1;" class="astro-cxyftcne">Formatting and verification</span></a></li><li style="--depth: 1;" class="astro-cxyftcne"><a href="#document-model-and-printer" style="--depth: 1;" class="astro-cxyftcne"><span style="--depth: 1;" class="astro-cxyftcne">Document model and printer</span></a></li><li style="--depth: 1;" class="astro-cxyftcne"><a href="#alignment-fences-and-ranges" style="--depth: 1;" class="astro-cxyftcne"><span style="--depth: 1;" class="astro-cxyftcne">Alignment, fences, and ranges</span></a></li></ul></li><li style="--depth: 0;" class="astro-cxyftcne"><a href="#vlog_linter" style="--depth: 0;" class="astro-cxyftcne"><span style="--depth: 0;" class="astro-cxyftcne">vlog_linter</span></a><ul class="isMobile astro-cxyftcne" style="--depth: 1;"><li style="--depth: 1;" class="astro-cxyftcne"><a href="#run-and-select-rules" style="--depth: 1;" class="astro-cxyftcne"><span style="--depth: 1;" class="astro-cxyftcne">Run and select rules</span></a></li><li style="--depth: 1;" class="astro-cxyftcne"><a href="#context-diagnostics-and-fixes" style="--depth: 1;" class="astro-cxyftcne"><span style="--depth: 1;" class="astro-cxyftcne">Context, diagnostics, and fixes</span></a></li></ul></li><li style="--depth: 0;" class="astro-cxyftcne"><a href="#vlog_semantic" style="--depth: 0;" class="astro-cxyftcne"><span style="--depth: 0;" class="astro-cxyftcne">vlog_semantic</span></a><ul class="isMobile astro-cxyftcne" style="--depth: 1;"><li style="--depth: 1;" class="astro-cxyftcne"><a href="#file-semantics" style="--depth: 1;" class="astro-cxyftcne"><span style="--depth: 1;" class="astro-cxyftcne">File semantics</spanLine truncated
<p>This is a navigational API index, not source documentation. It summarizes the main public callable surface of the six reusable library crates in the workspace; command-line and language-server binaries are documented in their dedicated references.</p>
<p>The workspace baseline is v0.41.0. For the complete signatures and fields,
<p>The latest release is v0.44.0. This index includes the accepted type-name-span
and package-re-export additions committed at <code dir="auto">9ef1058</code> for the next release;
it excludes the in-progress hierarchical-tail API and codec 19. For the complete signatures and fields,
run <code dir="auto">cargo doc --workspace --no-deps</code>; this hand-maintained index is not an
exhaustive replacement for rustdoc. The parser’s strict and tolerant entry
points share one grammar; tolerant errors do not imply formatter acceptance.
@@ -189,7 +191,7 @@ The CLI and server configure their worker threads accordingly.</p>
</tr>
<tr>
<td><code dir="auto">DataType</code></td>
<td><code dir="auto">is_implicit</code>, <code dir="auto">params</code>, <code dir="auto">inline</code></td>
<td><code dir="auto">is_implicit</code>, <code dir="auto">params</code>, <code dir="auto">inline</code>, <code dir="auto">name_span</code>, <code dir="auto">segments</code></td>
</tr>
<tr>
<td><code dir="auto">VirtualKw</code></td>
@@ -311,7 +313,11 @@ The CLI and server configure their worker threads accordingly.</p>
</tr>
<tr>
<td><code dir="auto">lint</code></td>
<td>Run enabled rules against a prepared context</td>
<td>Run enabled rules against a prepared context with inline waivers</td>
</tr>
<tr>
<td><code dir="auto">lint_with</code></td>
<td>Apply inline and external waivers and return external usage alongside findings</td>
</tr>
<tr>
<td><code dir="auto">all_rules</code></td>
@@ -397,6 +403,14 @@ The CLI and server configure their worker threads accordingly.</p>
<td><code dir="auto">as_str</code>, <code dir="auto">vocabulary</code> / <code dir="auto">value</code>, <code dir="auto">as_written</code></td>
</tr>
<tr>
<td><code dir="auto">ExternalWaivers</code></td>
<td><code dir="auto">read</code>, <code dir="auto">parse</code>, <code dir="auto">absorb</code>, <code dir="auto">is_empty</code>, <code dir="auto">unused</code></td>
</tr>
<tr>
<td><code dir="auto">WaiverUse</code></td>
<td><code dir="auto">merge</code> (aggregate usage across a complete run before reporting unused waivers)</td>
</tr>
<tr>
<td>editor settings functions</td>
<td><code dir="auto">vscode_lint_settings</code>, <code dir="auto">rule_setting</code>, <code dir="auto">severity_setting</code></td>
</tr>
@@ -481,8 +495,8 @@ The CLI and server configure their worker threads accordingly.</p>
</tr>
</tbody>
</table>
<p><code dir="auto">FACTS_FORMAT</code> is <strong>17</strong>. Cached facts include normal and macro identifier
censuses; <code dir="auto">Def::lines.positions</code> can carry <code dir="auto">DeclPositions</code> with UTF-16 ranges
<p><code dir="auto">FACTS_FORMAT</code> is <strong>18</strong> in the committed snapshot. Cached facts include
normal/macro identifier censuses and package re-export edges (the <code dir="auto">RX</code> group); <code dir="auto">Def::lines.positions</code> can carry <code dir="auto">DeclPositions</code> with UTF-16 ranges
for file-scope declarations. Any persisted shape or fact-census change needs
a codec-version decision so stale caches cannot silently omit answers.</p>
<div class="sl-heading-wrapper level-h2"><h2 id="vlog_refactor"><code dir="auto">vlog_refactor</code></h2><a class="sl-anchor-link" href="#vlog_refactor"><span aria-hidden="true" class="sl-anchor-icon"><svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 1 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 0 0-1.42-1.42m8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 1 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0l3.88-3.89a4.49 4.49 0 0 0 0-6.33M8.83 15.17a1 1 0 0 0 .71.29 1 1 0 0 0 .71-.29l4.92-4.92a1 1 0 1 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42"></path></svg></span><span class="sr-only" data-pagefind-ignore>Section titled “vlog_refactor”</span></a></div>
@@ -608,7 +622,7 @@ a codec-version decision so stale caches cannot silently omit answers.</p>
</tr>
<tr>
<td><code dir="auto">walk::collect_files</code></td>
<td>Walk inputs with ignores and exclusions</td>
<td>Walk inputs with ignores, exclusions and directory-cycle detection; accepts a <code dir="auto">FnMut(Warning)</code> sink for recoverable failures</td>
</tr>
<tr>
<td><code dir="auto">walk::is_excluded</code></td>
@@ -627,7 +641,7 @@ a codec-version decision so stale caches cannot silently omit answers.</p>
<tbody>
<tr>
<td><code dir="auto">atomic::write_atomic</code></td>
<td>Replace file contents through a sibling temp file and rename; callers must coordinate concurrent writes to one target</td>
<td>Replace contents using an exclusively created per-operation temp file; concurrent replacements publish one whole buffer, last writer wins</td>
</tr>
<tr>
<td><code dir="auto">content_hash</code></td>
+10 -6
View File
@@ -292,11 +292,15 @@ setting is non-empty and the project’s <code dir="auto">[lint] select</code> o
is decided the same way and independently. The severity switches and
per-rule toggles are editor-only — a <code dir="auto">lucisv.toml</code> has no such keys — and
apply over whichever selection stands. Editor rule options overlay project
rule options key by key. An entry that cannot be used is dropped and logged
once per configuration file and entry, in the same <code dir="auto">&lt;file&gt;:&lt;line&gt;: &lt;message&gt;</code> wording <code dir="auto">lucisv check</code> fails with: an invalid editor option, an
invalid <code dir="auto">[lint.&lt;rule&gt;]</code> entry, an unknown rule name in <code dir="auto">[lint] select</code>/<code dir="auto">ignore</code>, or an unreadable waiver file. <code dir="auto">lucisv check</code> treats each
of these as a configuration error and exits 2; the server keeps linting with
the entry dropped.</p>
rule options key by key. An invalid project option, unknown project rule name,
or bad waiver entry is dropped and logged once with the same
<code dir="auto">&lt;file&gt;:&lt;line&gt;: &lt;message&gt;</code> wording the CLI reports. The CLI treats those
project errors as exit 2; the server keeps linting with the valid entries.
Editor-only settings are validated separately: bad options are logged, and an
unknown select/ignore name is logged once as
<code dir="auto">lucisv.lint.select: unknown rule: &lt;name&gt;</code> (or <code dir="auto">ignore</code>). Changing that list
re-arms logging for newly introduced mistakes. An empty editor selection is
the fallback sentinel, so it does not clear a non-empty project selection.</p>
<div class="sl-heading-wrapper level-h2"><h2 id="cache">Cache</h2><a class="sl-anchor-link" href="#cache"><span aria-hidden="true" class="sl-anchor-icon"><svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><path d="m12.11 15.39-3.88 3.88a2.52 2.52 0 0 1-3.5 0 2.47 2.47 0 0 1 0-3.5l3.88-3.88a1 1 0 1 0-1.42-1.42l-3.88 3.89a4.48 4.48 0 0 0 6.33 6.33l3.89-3.88a1 1 0 0 0-1.42-1.42m8.58-12.08a4.49 4.49 0 0 0-6.33 0l-3.89 3.88a1 1 0 1 0 1.42 1.42l3.88-3.88a2.52 2.52 0 0 1 3.5 0 2.47 2.47 0 0 1 0 3.5l-3.88 3.88a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0l3.88-3.89a4.49 4.49 0 0 0 0-6.33M8.83 15.17a1 1 0 0 0 .71.29 1 1 0 0 0 .71-.29l4.92-4.92a1 1 0 1 0-1.42-1.42l-4.92 4.92a1 1 0 0 0 0 1.42"></path></svg></span><span class="sr-only" data-pagefind-ignore>Section titled “Cache”</span></a></div>
<p>Successful “already formatted” verdicts are cached under <code dir="auto">.lucisv_cache/</code>. Entries are keyed by file, content hash, line length, indentation, and lucisv version. Files that would change or fail are never cached. Use <code dir="auto">--no-cache</code> to disable reads and writes or <code dir="auto">--cache-dir</code> to relocate the store.</p>
</div><footer class="sl-flex astro-xhxjzfa7"><div class="meta sl-flex astro-xhxjzfa7"><a href="https://git.luci.ooo/lucio/verilogrustformatter/src/branch/master/docs/site/src/content/docs/start/configuration.md" class="sl-flex print:hidden astro-xk5gmzsg"><svg aria-hidden="true" class="astro-xk5gmzsg astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.2em;"><path d="M22 7.24a1 1 0 0 0-.29-.71l-4.24-4.24a1 1 0 0 0-1.1-.22 1 1 0 0 0-.32.22l-2.83 2.83L2.29 16.05a1 1 0 0 0-.29.71V21a1 1 0 0 0 1 1h4.24a1 1 0 0 0 .76-.29l10.87-10.93L21.71 8c.1-.1.17-.2.22-.33a1 1 0 0 0 0-.24v-.14l.07-.05ZM6.83 20H4v-2.83l9.93-9.93 2.83 2.83L6.83 20ZM18.17 8.66l-2.83-2.83 1.42-1.41 2.82 2.82-1.41 1.42Z"/></svg>Edit page</a><p>Last updated: <time datetime="2026-09-05T05:03:07.000Z">Sep 5, 2026</time></p></div><div class="pagination-links print:hidden astro-jgq3vlii" dir="ltr"><a href="/start/quick-start/" rel="prev" class="astro-jgq3vlii"><svg aria-hidden="true" class="astro-jgq3vlii astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.5rem;"><path d="M17 11H9.41l3.3-3.29a1.004 1.004 0 1 0-1.42-1.42l-5 5a1 1 0 0 0-.21.33 1 1 0 0 0 0 .76 1 1 0 0 0 .21.33l5 5a1.002 1.002 0 0 0 1.639-.325 1 1 0 0 0-.219-1.095L9.41 13H17a1 1 0 0 0 0-2Z"/></svg><span class="astro-jgq3vlii">Previous<br class="astro-jgq3vlii"><span class="link-title astro-jgq3vlii">Quick start</span></span></a><a href="/guides/formatter/" rel="next" class="astro-jgq3vlii"><svg aria-hidden="true" class="astro-jgq3vlii astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.5rem;"><path d="M17.92 11.62a1.001 1.001 0 0 0-.21-.33l-5-5a1.003 1.003 0 1 0-1.42 1.42l3.3 3.29H7a1 1 0 0 0 0 2h7.59l-3.3 3.29a1.002 1.002 0 0 0 .325 1.639 1 1 0 0 0 1.095-.219l5-5a1 1 0 0 0 .21-.33 1 1 0 0 0 0-.76Z"/></svg><span class="astro-jgq3vlii">Next<br class="astro-jgq3vlii"><span class="link-title astro-jgq3vlii">Formatter</span></span></a></div></footer></div></div></main></div></div></div></div></body></html>
</div><footer class="sl-flex astro-xhxjzfa7"><div class="meta sl-flex astro-xhxjzfa7"><a href="https://git.luci.ooo/lucio/verilogrustformatter/src/branch/master/docs/site/src/content/docs/start/configuration.md" class="sl-flex print:hidden astro-xk5gmzsg"><svg aria-hidden="true" class="astro-xk5gmzsg astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.2em;"><path d="M22 7.24a1 1 0 0 0-.29-.71l-4.24-4.24a1 1 0 0 0-1.1-.22 1 1 0 0 0-.32.22l-2.83 2.83L2.29 16.05a1 1 0 0 0-.29.71V21a1 1 0 0 0 1 1h4.24a1 1 0 0 0 .76-.29l10.87-10.93L21.71 8c.1-.1.17-.2.22-.33a1 1 0 0 0 0-.24v-.14l.07-.05ZM6.83 20H4v-2.83l9.93-9.93 2.83 2.83L6.83 20ZM18.17 8.66l-2.83-2.83 1.42-1.41 2.82 2.82-1.41 1.42Z"/></svg>Edit page</a><p>Last updated: <time datetime="2026-09-05T06:45:48.000Z">Sep 5, 2026</time></p></div><div class="pagination-links print:hidden astro-jgq3vlii" dir="ltr"><a href="/start/quick-start/" rel="prev" class="astro-jgq3vlii"><svg aria-hidden="true" class="astro-jgq3vlii astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.5rem;"><path d="M17 11H9.41l3.3-3.29a1.004 1.004 0 1 0-1.42-1.42l-5 5a1 1 0 0 0-.21.33 1 1 0 0 0 0 .76 1 1 0 0 0 .21.33l5 5a1.002 1.002 0 0 0 1.639-.325 1 1 0 0 0-.219-1.095L9.41 13H17a1 1 0 0 0 0-2Z"/></svg><span class="astro-jgq3vlii">Previous<br class="astro-jgq3vlii"><span class="link-title astro-jgq3vlii">Quick start</span></span></a><a href="/guides/formatter/" rel="next" class="astro-jgq3vlii"><svg aria-hidden="true" class="astro-jgq3vlii astro-n5k4ipy7" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.5rem;"><path d="M17.92 11.62a1.001 1.001 0 0 0-.21-.33l-5-5a1.003 1.003 0 1 0-1.42 1.42l3.3 3.29H7a1 1 0 0 0 0 2h7.59l-3.3 3.29a1.002 1.002 0 0 0 .325 1.639 1 1 0 0 0 1.095-.219l5-5a1 1 0 0 0 .21-.33 1 1 0 0 0 0-.76Z"/></svg><span class="astro-jgq3vlii">Next<br class="astro-jgq3vlii"><span class="link-title astro-jgq3vlii">Formatter</span></span></a></div></footer></div></div></main></div></div></div></div></body></html>
@@ -39,7 +39,7 @@ lucisv follows the same separation of concerns that makes ruff fast and maintain
also protect statement scopes, and verification covers the complete output.
- **Lint:** `ParsedSource` bundles one tokenization and tolerant parse;
`LintContext` supplies source facts and lazy semantics. The registry selects
73 rules with severities and validated options. Inline waivers filter findings,
73 rules with severities and validated options. Inline and external waivers filter findings,
and the front ends protect fenced bytes before applying fixes.
- **Refactor:** parsed spans and resolved references produce an edit plan;
the engine checks the whole candidate edit before returning it. Server source
@@ -47,7 +47,7 @@ lucisv follows the same separation of concerns that makes ruff fast and maintain
edit or refuse over. No formatter dependency is involved.
- **Editor:** one ordered synchronous loop owns `Workspace`; open documents
overlay disk facts. Scans publish index/include/completion batches together.
Closed-file facts persist under codec 17; a bounded file-view cache serves
Committed closed-file facts persist under codec 18, including package re-exports; a bounded file-view cache serves
queries that still need source text. Lazy port actions defer the edit until
selection; recorded file-scope definition positions avoid a closed-file read.
@@ -63,6 +63,22 @@ verification, persisted semantic facts, server state/ordering, and matching
server/editor setting names. Source modules are split by grammar domain under
`parser/`, `ast/`, `format/`, `bind/`, `workspace/`, `ports/`, and `server/`.
## Recent changes and release boundary
v0.42–0.44 added external waiver files, exclusive atomic temp files with
canonical CLI deduplication, shared project/editor lint configuration,
cycle-aware directory walks with recoverable warnings, and inline aggregate
overrides. The v0.44.0 `undriven-net` fix asks the workspace mention census only
after local guards, reducing editor open/flush latency without changing the
rule's findings or the synchronous request-ordering contract.
Two accepted changes are committed after v0.44.0: type names now carry exact
AST spans (`scan.rs` is retired), and package re-exports are references and
cycle-guarded member edges in codec 18. Re-exporting a name does not import it
into the exporting package's local scope. DPI-export names remain unbound.
The separate hierarchical-tail work proposes codec 19 and a module member
surface for instance paths; it is still under QA and is not a released API.
## Design invariants
- **Source fidelity:** comments and blank-line intent survive the parser.
@@ -60,6 +60,13 @@ Filelist paths bypass `--exclude` and `.gitignore`, just like direct command-lin
Directory walks read `.gitignore` in each directory. Deeper rules override shallower rules; the last matching line wins. Supported syntax includes comments, blank lines, `*` within a component, anchored `/`, directory-only trailing `/`, and `!` negation. `**`, `?`, character classes, escapes, global excludes, and tracked-file exceptions are not implemented.
A directory is visited once by identity, so symlink cycles terminate. CLI
inputs resolving to the same canonical path are processed once. An unreadable
directory or `.gitignore`, or a dangling source-file link encountered while
walking, produces `warning: <path>: <message>` on stderr and the walk continues;
these warnings do not change the exit code. A missing explicitly named input
remains an error.
## Exit codes
| Code | Meaning |
@@ -11,7 +11,7 @@ Every `error`-class rule is held to one discipline: it goes **silent whenever th
This page is hand-written prose. The generated truth is `lucisv check --rules-doc`, which prints every rule with its class, default, fix and rationale straight from the registry — **and every option a rule takes, with its kind and default**.
A configurable rule is configured in a `[lint.<rule-name>]` table of a `lucisv.toml`, or from an editor in the `lucisv.lint.options` object; the option names are Verible's wherever it has the same option. An unknown rule or option name, a value of the wrong kind, an out-of-range integer or a pattern that does not compile fails a CLI run naming the file and the line. Invalid editor option settings are logged and dropped; invalid project-file option entries are currently dropped silently by server linting.
A configurable rule is configured in a `[lint.<rule-name>]` table of a `lucisv.toml`, or from an editor in the `lucisv.lint.options` object; the option names are Verible's wherever it has the same option. An unknown rule or option name, a value of the wrong kind, an out-of-range integer or a pattern that does not compile fails a CLI run naming the file and the line. Rejected project entries are logged once with file and line and dropped by server linting; invalid editor options and unknown editor select/ignore names are also logged. Valid entries continue to apply.
```toml
[lint.line-length]
@@ -7,7 +7,9 @@ description: Navigational index of the main public APIs in lucisv’s reusable R
This is a navigational API index, not source documentation. It summarizes the main public callable surface of the six reusable library crates in the workspace; command-line and language-server binaries are documented in their dedicated references.
The workspace baseline is v0.41.0. For the complete signatures and fields,
The latest release is v0.44.0. This index includes the accepted type-name-span
and package-re-export additions committed at `9ef1058` for the next release;
it excludes the in-progress hierarchical-tail API and codec 19. For the complete signatures and fields,
run `cargo doc --workspace --no-deps`; this hand-maintained index is not an
exhaustive replacement for rustdoc. The parser's strict and tolerant entry
points share one grammar; tolerant errors do not imply formatter acceptance.
@@ -50,7 +52,7 @@ The CLI and server configure their worker threads accordingly.
| `Module` | `end_kw` |
| `ClassDecl` | `is_interface_class` |
| `BindDirective` | `target_path`, `head` |
| `DataType` | `is_implicit`, `params`, `inline` |
| `DataType` | `is_implicit`, `params`, `inline`, `name_span`, `segments` |
| `VirtualKw` | `text` |
| `CallComments` | `is_empty` |
| `WithComments` | `is_empty` |
@@ -93,7 +95,8 @@ The CLI and server configure their worker threads accordingly.
| Function | Purpose |
|---|---|
| `run` | Parse and lint source in one call |
| `lint` | Run enabled rules against a prepared context |
| `lint` | Run enabled rules against a prepared context with inline waivers |
| `lint_with` | Apply inline and external waivers and return external usage alongside findings |
| `all_rules` | Return the complete rule registry |
| `default_rules` | Return rules enabled for a single-file run |
| `workspace_rules` | Return defaults plus project-aware semantic rules |
@@ -117,6 +120,8 @@ The CLI and server configure their worker threads accordingly.
| `Severity` | `as_str`, `from_name`, `describes`; classes `Error`, `Warning`, `Style` |
| `RuleOptions` | `new`, `is_empty`, `set_raw`, `set`, `overlay`, `is_set`, `bool`, `int`, `str`, `list` |
| `OptionKind` / `OptionDefault` | `as_str`, `vocabulary` / `value`, `as_written` |
| `ExternalWaivers` | `read`, `parse`, `absorb`, `is_empty`, `unused` |
| `WaiverUse` | `merge` (aggregate usage across a complete run before reporting unused waivers) |
| editor settings functions | `vscode_lint_settings`, `rule_setting`, `severity_setting` |
## `vlog_semantic`
@@ -145,8 +150,8 @@ The CLI and server configure their worker threads accordingly.
| `index_order` | Sort workspace inputs into their deterministic index order |
| `words::harvest` / `harvest_text` / `harvest_raw` | Build the shared identifier census from tokens or source text |
`FACTS_FORMAT` is **17**. Cached facts include normal and macro identifier
censuses; `Def::lines.positions` can carry `DeclPositions` with UTF-16 ranges
`FACTS_FORMAT` is **18** in the committed snapshot. Cached facts include
normal/macro identifier censuses and package re-export edges (the `RX` group); `Def::lines.positions` can carry `DeclPositions` with UTF-16 ranges
for file-scope declarations. Any persisted shape or fact-census change needs
a codec-version decision so stale caches cannot silently omit answers.
@@ -190,14 +195,14 @@ a codec-version decision so stale caches cannot silently omit answers.
| `config::parse` | Parse strict lucisv configuration text |
| `Discovery` | `new`, `for_input`, `for_file`, `for_dir` |
| `filelist::read` | Resolve a nested EDA filelist |
| `walk::collect_files` | Walk inputs with ignores and exclusions |
| `walk::collect_files` | Walk inputs with ignores, exclusions and directory-cycle detection; accepts a `FnMut(Warning)` sink for recoverable failures |
| `walk::is_excluded` | Test a path against exclusion patterns |
### Atomic writes and cache
| Function or type | Public methods |
|---|---|
| `atomic::write_atomic` | Replace file contents through a sibling temp file and rename; callers must coordinate concurrent writes to one target |
| `atomic::write_atomic` | Replace contents using an exclusively created per-operation temp file; concurrent replacements publish one whole buffer, last writer wins |
| `content_hash` | Compute the cache’s FNV-1a content fingerprint |
| `Cache` | `load`, `disabled`, `is_clean`, `record`, `store` |
@@ -96,13 +96,15 @@ setting is non-empty and the project's `[lint] select` otherwise; `ignore`
is decided the same way and independently. The severity switches and
per-rule toggles are editor-only — a `lucisv.toml` has no such keys — and
apply over whichever selection stands. Editor rule options overlay project
rule options key by key. An entry that cannot be used is dropped and logged
once per configuration file and entry, in the same `<file>:<line>:
<message>` wording `lucisv check` fails with: an invalid editor option, an
invalid `[lint.<rule>]` entry, an unknown rule name in `[lint]
select`/`ignore`, or an unreadable waiver file. `lucisv check` treats each
of these as a configuration error and exits 2; the server keeps linting with
the entry dropped.
rule options key by key. An invalid project option, unknown project rule name,
or bad waiver entry is dropped and logged once with the same
`<file>:<line>: <message>` wording the CLI reports. The CLI treats those
project errors as exit 2; the server keeps linting with the valid entries.
Editor-only settings are validated separately: bad options are logged, and an
unknown select/ignore name is logged once as
`lucisv.lint.select: unknown rule: <name>` (or `ignore`). Changing that list
re-arms logging for newly introduced mistakes. An empty editor selection is
the fallback sentinel, so it does not clear a non-empty project selection.
## Cache
+42 -23
View File
@@ -24,13 +24,20 @@ null-items (108 feature READMEs); updated 2026-09-02 through v0.33.0 for the
testbench grammar/semantics wave, comment slots, bind semantics, SVA bodies,
and the four decomposition rounds (125 feature READMEs).
**Code audit: 2026-09-04, HEAD `d5abf81`, after the v0.41.0 release (`97aa2fe`).** The crate
edges below were checked against all eight manifests. Current facts codec:
**17**. Recent feature contracts are summarized in §1.4. HEAD
also contains **parser-skips** (TODO §38): implementation committed and QA
accepted, intended for v0.42.0; it is not part of the v0.41.0 release. External
waiver files (TODO §39) remain planned. See [repository-analysis.md](repository-analysis.md)
for findings, validation, and the distinction between measured and historical results.
**Code audit refreshed 2026-09-05.** Latest release: **v0.44.0**
(`66f3898`). Committed snapshot: **`9ef1058`**, including type-name-spans
(TODO §47) and package-reexports (§48), both accepted for v0.45.0. The
committed facts codec is **18**; the active **hierarchical-tail** work (§49)
uses **19** in the working tree and is awaiting QA. Public contracts below
describe committed code unless explicitly marked in progress. Do not treat
the working-tree codec or an unchecked QA item as a released guarantee.
The original audit's atomic-write, lint-config and walk-cycle findings are
closed in v0.43.0. External waivers shipped in v0.42.0; walk warnings,
inline aggregate overrides and the didOpen cost fix shipped in v0.44.0.
See [repository-analysis.md](repository-analysis.md) for current priorities
and dated verification evidence. Feature QA logs and TODO checkboxes remain
the authority for work being completed by other agents.
**Edge notation, used in all three sections:**
@@ -200,11 +207,12 @@ an error means emit nothing.
`ExternalCandidate`/`InheritedCandidate` carrying candidate paths);
`workspace/` (`mod` = the tables, `index` = queries and `build`, `update` =
incremental update and `fingerprint`, `record` = the `FileFacts` read-off,
`external` = the overlay; `WorkspaceIndex`: units, members, defines, instantiation and
`external` = the overlay, `reexport` = cycle-guarded package member traversal;
active §49 adds `hierarchy` and a second member table; `WorkspaceIndex`: units, members, defines, instantiation and
inheritance edge tables, incremental `update_file`/`remove_file`,
reference postings, `files_spelling`, batch `absorb`, declaration `DeclLines`,
`fingerprint`); `facts.rs` (`FileFacts` codec for the persistent cache;
`FACTS_FORMAT` is 17);
`FACTS_FORMAT` is 18 in committed code (19 in the active §49 work));
`instantiations.rs`, `classes.rs` (the shared walks, lifted from the server
so the index census and the request handlers cannot drift).
@@ -217,13 +225,17 @@ reader: files, `+incdir+`, defines, warnings), `cache.rs` (the format cache +
nothing of Verilog; depends on nothing. Config stores `LintOption` entries
raw with source/line information; front ends validate them through
`vlog_linter::RuleOptions`, so core still has no linter dependency. Open
contracts include path normalization, walk cycles, and same-target write
coordination (§2.9-1, §2.9-8, §2.9-26).
contract: path normalization (§2.9-1). Walk cycles and same-target temp
collisions are resolved (§2.9-8, §2.9-26). `collect_files` now takes a
`&mut dyn FnMut(Warning)` sink; CLI and server own presentation of recoverable
walk failures (§2.9-30). Atomic replacement uses exclusive per-operation temps;
CLI canonical-path dedup prevents symlink aliases reaching two workers.
**`vlog_linter`** — `registry.rs` (`Rule` trait, `all_rules`/`default_rules`/
`select_rules`), `rules/` (one file per rule; names are **stable API** — they
appear in users' waivers), `context.rs` (`LintContext<'a>`, `ParsedSource`,
lazy `semantics()`), `visit.rs` (the item/statement walk), `waiver.rs`,
lazy `semantics()`), `visit.rs` (the item/statement walk), `waiver.rs` (inline
waivers), `waiver_file.rs` (`ExternalWaivers`, usage tracking, unused reports),
`violation.rs` (+ `Fix`, `Applicability`), `signals.rs` (the shared signal
table for the three semantic rules), `naming.rs`, `rule_docs.rs`
(`rules_markdown()` — docs generated from the registry). There are 73 rules;
@@ -294,10 +306,17 @@ output after content changes, and keep historical measurements dated.
| linter-expansion-1 | `Severity`, `Violation::severity`, `rules_named`, `MentionOracle::module_interface`, `Semantics::duplicates` ↔ CLI reports, server diagnostics/settings, generated VS Code toggles | Delivered; duplicate facts are in-memory only |
| linter-expansion-2 | core `FileConfig::lint_options`/`LintOption` → linter `RuleOptions`; registry specs ↔ CLI validation, server option overlay and editor settings | Delivered; core records raw values and does not depend on the linter |
| linter-expansion-3 | shared scoped-item/expression/preprocessor walkers ↔ 73-rule registry, rule docs and generated editor toggles | Delivered; rule names and option keys are user-facing contracts |
| small-items-3 | parser `ItemKind::GenBlock` → every recursive item walker; `recover_list` lookahead; core `atomic::write_atomic` → CLI format/fix and format cache | Delivered in v0.40.0; atomic replacement does not yet coordinate same-target writers (§2.9-26) |
| small-items-3 | parser `ItemKind::GenBlock` → every recursive item walker; `recover_list` lookahead; core `atomic::write_atomic` → CLI format/fix and format cache | Delivered in v0.40.0; per-operation temp ownership and canonical CLI dedup followed in v0.43.0 (§2.9-26) |
| lazy-code-action | refactor `sites_phrase` ↔ server `ports.rs`; `ClientAbilities::code_action_resolve` ↔ dispatch and `{uri, position, title}` action data; indexed `DeclPositions` → `locate::definition_location` | Delivered in v0.41.0; clients without resolve support retain eager port actions, lint fixes remain eager |
| parser-skips | parser `module.rs`/`split.rs` rival-header detection; `DataDecl::delay: Option<NetDelay>` → formatter `format/decl.rs` and semantic `bind/decl.rs` | **Committed after v0.41.0; QA accepted, release pending**; preserves the written delay position; no verifier normalization change |
| external waiver files | proposed linter waiver parser ↔ core config, CLI args, server settings/diagnostics and VS Code manifest | **Planned (TODO §39)**; no callable API, CLI flag, or config setting yet |
| parser-skips | parser `module.rs`/`split.rs` rival-header detection; `DataDecl::delay: Option<NetDelay>` → formatter `format/decl.rs` and semantic `bind/decl.rs` | **Released in v0.42.0**; preserves the written delay position; no verifier normalization change |
| waiver-files | linter `ExternalWaivers`/`WaiverUse`/`lint_with` ↔ core `[lint] waivers`, CLI `--waiver-file`, server `lucisv.lint.waivers`, quick fixes and VS Code manifest | Released in v0.42.0; inline/external union, unused external reports are CLI-only |
| atomic-write-coordination | core exclusive temp creation and permissions → CLI canonical-path dedup and every in-place writer | Released in v0.43.0; independent processes remain last-writer-wins |
| lint-config-contract | server `lint/project.rs` parses project selection/options/waivers; `ProjectLint` → lint selection, `ConfigProblems`/`ProblemLog` → diagnostics logging | Released in v0.43.0; editor lists override project lists when non-empty, separately for select and ignore |
| walk-cycles / small-items-4 | core directory identity set and warning sink ↔ CLI/server walk callers; parser delay-comment fields and `ExprKind::Type` → formatter and instance planning | Released in v0.43–0.44; warning paths continue without changing CLI status, direct missing inputs remain errors |
| didopen-cost | `undriven-net` local guards → existing `MentionOracle` predicate; diagnostics equality → server publish/request ordering | Released in v0.44.0; no new async work or index API |
| type-name-spans | parser `DataType::name_span`/`segments`, disable-target span → binder `exact_or_empty` and census | Committed after v0.44.0; `scan.rs` deleted; source text remains the exact-span oracle |
| package-reexports | binder export references → `FileFacts` RX group, codec 18 ↔ workspace `reexport.rs` and shared member queries | Committed after v0.44.0; package exports add no local import; DPI-export names remain unbound |
| hierarchical-tail | proposed `Surface` tags on declarations/references, codec 19 ↔ `workspace/hierarchy.rs`, member-tail resolution, completion and rename source selection | **In progress, QA pending (TODO §49)**; connection surface stays unchanged, instance tails read the new hierarchical surface |
The lazy action resolves against current workspace state and rejects a stale
or inapplicable action. Indexed definition locations bypass closed-file reads
@@ -309,7 +328,7 @@ outside the configured index scope, rather than a hint-generation failure.
## 2. Feature dependency graph
125 features. They cluster into eight lanes; edges inside a lane are listed in
Feature contracts cluster into eight lanes; edges inside a lane are listed in
that lane's table, cross-lane edges are repeated where they matter. The
mermaid graph shows the lanes and the load-bearing cross-lane edges only.
@@ -627,22 +646,22 @@ update the filing README(s) and this file.
| ~~13~~ | ~~Anonymous-aggregate members (`enum {A,B} x;`) not declared as symbols — hover/definition gap~~ — **delivered 2026-09-01 by struct-members**: anonymous enum variants land in the enclosing scope via the shared `bind_enum_body`; an anonymous `struct {…} s;` declarator and every inline nested struct field carry their own `Struct` child scope, and `member_scope` accepts any symbol whose child scope is a `Struct` scope. Residue filed in the struct-members README: cross-file anonymous struct *variables*, `typeDefinition` inside an anonymous aggregate written as a data declaration | types-decls | ~~vlog_semantic~~ done |
| ~~14~~ | ~~A `program` node with `name_span`/`end_label_span` for linked editing~~ — **delivered by vendor-formal-grammar (0.30.0)**: `parser/item.rs` routes `program` to `parse_module("endprogram")`; the resulting `ItemKind::Module` carries both spans and `linked.rs::module_pairs` consumes them. Confirmed in the 2026-09-04 source audit. | linked-editing | ~~vlog_parser~~ done |
| ~~15~~ | ~~Bind semantics: whether a `bind`'s target scope and connections should resolve through the workspace index (today only the instantiated module name is recorded)~~ — **delivered 2026-09-02 by bind-semantics**: `BindDirective::target` is `Vec<PathSegment { name, span, index }>`; a lone target binds as `Target::Module`, an instance path records nothing (a guess would be a wrong answer); each connection's port half is `Target::Port(inst.module)` and its expression half `Target::BindScope` — the target's own scope first (`resolve::in_bind_target`, `None` on a miss because generate blocks open scopes of their own), the workspace's one-segment member path when the target lives elsewhere, the writing scope last. `FACTS_FORMAT` 14 → 15 | bind | ~~vlog_semantic~~ done |
| ~~16~~ | ~~DPI/package re-export halves as real references (`export pkg::item` doesn't resolve; `*::*` has `"*"` as its package name, which nothing expects)~~ — **closed 2026-09-05 by package-reexports (TODO §48):** both halves of `export pkg::item` are references (`bind_export_path`, no scope import); the index records each package's re-exports (`FACTS_FORMAT` 18, the `RX` group, `*::*` expanded to the package's own imports at record time); the member walk follows them transitively with a visited set, so definition, hover, completion, references and rename read the one edge. A DPI export's `name` is still unbound (dpi-export request (b)). | dpi-export | vlog_semantic |
| ~~16~~ | ~~DPI/package re-export halves as real references (`export pkg::item` doesn't resolve; `*::*` has `"*"` as its package name, which nothing expects)~~ — **closed 2026-09-05 by package-reexports (TODO §48):** both halves of `export pkg::item` are references (`bind_export_path`, no scope import); the index records each package's re-exports (`FACTS_FORMAT` 18, the `RX` group, `*::*` expanded to the package's own imports at record time); the member walk follows them transitively with a visited set, so definition, hover, completion, references and rename read the one edge. Package half closed; the DPI-export `name` remains unbound, tracked separately as §2.9-31. | dpi-export | vlog_semantic |
| ~~17~~ | ~~Inline aggregate as a parameter-override *argument* (`m #(.T(struct packed { logic a; })) u ();`) is rejected in expression position; M4's `instantiation_plan` drops such a `parameter type` default rather than emit unparseable text~~ — **delivered 2026-09-05 by small-items-4 (TODO §45.3):** `parse_expr_or_type` routes a `struct`/`union`/`enum` head to the type grammar; the value is an `ExprKind::Type` printed by the type printer. `instantiation_plan` emits a one-line `parameter type` aggregate default; a multi-line one is still dropped by the "written across several lines" rule, not the grammar. | refactor-instantiate (gap 1; its gap 2 was delivered by ansi-first-port) | vlog_parser |
| ~~18~~ | ~~A macro-invocation census in `FileFacts`~~ — **delivered 2026-09-02**: the engine half by sva-bodies (`macro_use_warnings` pinned for a file in the source set) and the server half by macro-word-census (TODO §29.2): `FileFacts::macro_words` (`words::harvest_raw`, tag `MW`, `FACTS_FORMAT` 16 → 17, +3.1 % corpus / +1.7 % opentitan store), `WorkspaceIndex::files_naming_in_macros`, and a warning appended by `lucisv_server::rename` for every such file **outside** the set `rename_sources` built — no rung, nothing read (58 files in 186 µs on opentitan for `clk`). | refactor-rename; sva-bodies; macro-word-census | ~~vlog_semantic~~ done |
| ~~19~~ | ~~An execute-command spelling of the instantiation skeleton (plain-text `render` through the same `plan_for`), for clients without `textDocument/inlineCompletion` — since the 2026-08-30 names-only popup, such a client (Neovim's built-in LSP, today) has no path to the full skeleton at all. Filed at lead review after correcting the dev's assumption that a `lucisv/instantiate` command already existed (it never did).~~ — **delivered 2026-09-02 by bind-semantics**: `lucisv.instantiate [uri, position, module]` (`lucisv_server/src/instantiate.rs`, advertised by `main.rs::commands()`, routed through `ports::execute`) — `plan_for` → plain `render` under `completion::layout_at` → `workspace/applyEdit`; `at_instantiation_site` validates the position; escaped names go in as plain text. Pinned at the plan level: the command's plan renders to the ghost's text. `editors/nvim/README.md` documents it | inline-instantiation (lead) | ~~lucisv_server~~ done |
| ~~20~~ | ~~Rename loses its heads-up for an **unresolvable member/hierarchical tail** spelling the renamed name (`unknown_mod u_x (); … u_x.sig` when `unknown_mod` is indexed nowhere): before class-member-access the tail had no reference and `rename.rs::stray_reason` warned "a hierarchical or member tail, which lucisv does not resolve"; since round 2 it carries an `ExternalCandidate` the workspace cannot answer, which the engine neither edits (correct) nor mentions. Wanted: a warning for candidate references that spell the old name and stayed unresolved through the overlay — one message per file. Pinned as a premise by `a_hierarchical_tail_that_cannot_resolve_is_left_alone_and_named_as_such`. Same class as item 18.~~ — **delivered 2026-09-02 by comment-slots**: `Scope::unresolved_candidate_warnings` — a reference that stayed `ExternalTarget::StillUnresolved` through the overlay (or an `InheritedCandidate` that missed) is reported one line per (file, unit), run over every file that spells the name. The premise pin is inverted. Surfaced item 23 in the process | class-member-access round 2 (lead) | ~~vlog_refactor (`rename.rs`)~~ done |
| ~~21~~ | ~~`Parser::parse_scoped_name` joins a `pkg::name` chain into one `String`, erasing the segment boundary, so an escaped segment (`\my-pkg ::\state-t` as a type, an instantiated module or a `bind` target) is reprinted without its terminating space and **refused by the safety net** — an error, never a corruption. Wanted: the AST keeps the segments (as `parse_method_name` already does for `FunctionDecl::scope`). Pinned by `escaped_identifiers.cases`'s one `#SKIP` and `verification::an_escaped_name_in_a_scoped_type_is_rejected_rather_than_corrupted`, both of which must keep failing-to-format until delivered~~ — **delivered 2026-09-02 by comment-slots**: `Parser::push_scope_segment` is the one join for every `::` chain and writes the escaped segment's terminator; `parse_method_name` keeps real segments (`ScopeSeg`, one comment slot per `::`). The `#SKIP` is a live case and the verification pin is inverted, with a new pair asserting the tightened spelling is still refused | escaped-identifiers | ~~vlog_parser~~ done |
| ~~22~~ | ~~**Comment slots in shared expression/name machinery** drop the comment and the safety net refuses the file: `q[/*c*/ i]` (index expressions), `x inside {[/*c*/ 0:3]}` and `n /*c*/ inside {` (`inside` / `parse_value_range`), `pkg/*c*/ ::cls::name` (`parse_method_name` chains), `foreach (q[/*c*/ i])` (`parse_foreach_target`), `static /*c*/ constraint` / `pure /*c*/ static function` (`take_member_prefix`). Found by constraint-bodies' exhaustive gap fuzzer (358 gaps; these 40 fail identically on v0.26.0 in the same constructs outside a constraint). Inside a constraint they are regressions relative to the verbatim era — but no opentitan file hits one (sweep unchanged). Wanted: a parser-wide round giving each slot a `Meta`/comments field, then re-running the fuzzer to zero.~~ — **delivered 2026-09-02 by comment-slots**: ~70 named comment fields across `ExprKind`/`Stmt`/declarations/headers/labels (`SegmentComments`, `BinaryComments`, `CastComments`, `LabelComments`, `Stmt::before_semi` + `StmtKind::takes_semi()`), three duplicated grammars folded into `parse_postfix_segment` / `parse_value_range`, and four gap fuzzers at zero — covergroup 329, fragment 153, constraint 395 (committed at last), RTL 352 (new). Corpus (860 files) and opentitan (3 975 files) byte-identical to v0.30.0. Deliberately left: `if`/`case` in-paren comments still recovered print-side by `header_parens` (only `after_kw` got a slot) — a real slot there would change existing layout A fifth fuzzer bar 2026-09-05 (small-items-4, TODO §45.4): the **delay list** — `#(1:2:3)` on nets and continuous assignments, `#(rise, fall)` on gates — gained `MinTypMaxComments`, `ast::DelayValue`, `ContAssign::{after_hash, after_delay}`, `GateInstantiation::{before_hash, after_hash, before_semi}`, `GateInstance::before_args`; `EXPECTED_RTL_GAPS` 374 → 419 at zero. | constraint-bodies (dev + QA) | ~~vlog_parser~~ done |
| 23 | A **cross-file instance-member tail does not resolve for rename**: with `module sub` in `sub.sv` and `assign w = u_x.sig;` in `top.sv`, renaming `sub`'s `wire sig` edits `sub.sv` only — the same shape in one file resolves and is edited (`a_hierarchical_tail_that_resolves_is_renamed_with_its_declaration`). Since comment-slots the rename *says so* (item 20's warning); the edit itself is the gap. Modules export ports and parameters only (the class-member-access round 2 ruling), so an internal net is exactly what the cross-file hop refuses — the fix is either an export rule for nets named through an instance or a rename-time in-file fallback resolution of the tail. | comment-slots (dev, surfaced by the §2.9-20 control test) | vlog_semantic / vlog_refactor |
| ~~23~~ | ~~A **cross-file instance-member tail does not resolve for rename**: with `module sub` in `sub.sv` and `assign w = u_x.sig;` in `top.sv`, renaming `sub`'s `wire sig` edits `sub.sv` only — the same shape in one file resolves and is edited (`a_hierarchical_tail_that_resolves_is_renamed_with_its_declaration`). Since comment-slots the rename *says so* (item 20's warning); the edit itself is the gap. Modules export ports and parameters only (the class-member-access round 2 ruling), so an internal net is exactly what the cross-file hop refuses — the fix is either an export rule for nets named through an instance or a rename-time in-file fallback resolution of the tail. **Active owner: hierarchical-tail (TODO §49), working-tree implementation present; QA pending.** Keep this request open until acceptance.~~ — **delivered 2026-09-05 by hierarchical-tail (TODO §49):** a module has two member surfaces — the *connection* surface (ports, parameters; unchanged for every existing reader) and the *hierarchical* surface (plus nets, variables, instances; a second index table, `FACTS_FORMAT` 19) read only by the tail walk behind an instance head (`Surface::Hierarchical` from `resolve.rs::head_surface`). `assign w = u_x.sig;` resolves cross-file, the rename edits both files, the §2.9-20 warning is retired for a resolved tail. A generate-block-scoped net (`u_x.gen[0].sig`) is on neither surface and is still refused honestly. 514 references newly resolve over opentitan `hw/`. | comment-slots (dev, surfaced by the §2.9-20 control test) | vlog_semantic / vlog_refactor |
| ~~24~~ | ~~A **half-typed `#(` parameter override whose value can read as a call** (`sub #(.W(` ⏎ `u0 (.a(x))`) — the greedy expression grammar swallows the next instance's name before any error fires, so the whole instantiation still degrades to an item-level `Error` node instead of getting header recovery's benefit. Found by §32's QA; the fix is a lookahead in the override grammar (an identifier followed by `(` on a later line is the next instance, not a call).~~ — **delivered 2026-09-04 by small-items-3 (TODO §36)** | header-recovery (QA) | vlog_parser |
| ~~25~~ | ~~The parser **refuses** a module-scope `begin … end` and a bare `begin` inside a `generate` region (an `ItemKind::Error`) rather than recovering them as an unnamed generate block, so `module-begin-block` and `v2001-generate-begin` (TODO §35) fire on an error leaf and the rest of the unit is lost to recovery. Wanted: tolerant-mode recovery that keeps the block's items.~~ — **delivered 2026-09-04 by small-items-3 (TODO §36)** | linter-expansion-3 (dev) | vlog_parser |
| ~~26~~ | ~~**Same-target atomic writers share a temp path.** `atomic::temp_path` uses canonical target + process ID; parallel workers following distinct symlink spellings can reach that same name, while CLI dedup is lexical. A bounded direct helper probe (100 rounds, two threads, 1 MiB each) returned 100 write errors in 200 calls; no mixed final bytes observed in that probe. Use exclusive per-operation temp creation and coordinate/deduplicate target writes. See repository-analysis.md for limits.~~ — **closed by §41 (0.43.0):** unique `O_EXCL` temps (`.{name}.{pid}.{n}.lucisv-tmp`), dedup on `fs::canonicalize`; two *processes* remain last-writer-wins by design, stated in `atomic.rs` | repository audit, 2026-09-04 | lucisv_core / lucisv |
| ~~27~~ | ~~**Net-delay comment slot**: parser-skips records a pre-existing refusal for a comment immediately before `#` in a net declaration. The regression cases mark it `#SKIP`; preserve the verifier's rejection until a parser/formatter comment slot handles it.~~ — **delivered 2026-09-05 by walk-cycles (TODO §43.2):** `NetDelay::{before_hash, after_hash}` own the gaps around `#`; the `#SKIP` is retired; the RTL gap fuzzer covers it. The gaps inside `#(1:2:3)` remain §2.9-22's. | parser-skips (dev + QA) | vlog_parser / vlog_formatter |
| ~~27~~ | ~~**Net-delay comment slot**: parser-skips records a pre-existing refusal for a comment immediately before `#` in a net declaration. The regression cases mark it `#SKIP`; preserve the verifier's rejection until a parser/formatter comment slot handles it.~~ — **delivered 2026-09-05 by walk-cycles (TODO §43.2):** `NetDelay::{before_hash, after_hash}` own the gaps around `#`; the `#SKIP` is retired; the RTL gap fuzzer covers it. The gaps inside delay lists subsequently closed in small-items-4 (§45.4; see §2.9-22). | parser-skips (dev + QA) | vlog_parser / vlog_formatter |
| ~~28~~ | ~~**Project lint selection is not consumed by the server.** `enabled_rules` reads `ClientSettings`; `configured` reads project rule options and line length only. `[lint] select/ignore` currently controls CLI runs, while the editor needs `lucisv.lint.select/ignore`. Decide and test a common precedence contract before claiming project-wide parity.~~ — **closed by §42 (0.43.0):** `enabled_rules` picks the editor's list when set, else the project's, key by key (the CLI's `pick`); rejected project entries logged once with file:line | repository audit, 2026-09-04 | lucisv_server |
| ~~29~~ | ~~An unknown rule name in the **editor's** `lucisv.lint.select`/`ignore` is still dropped silently, while §42 logs the same mistake in a project file (and `lucisv.lint.options` logs its bad entries). Wants the same once-only log through `notification.rs`.~~ — **delivered 2026-09-05 by small-items-4 (TODO §45.1):** `settings::rules` records every dropped name in `ClientSettings::lint_name_warnings` as `lucisv.lint.<select|ignore>: unknown rule: <name>`; `apply_settings` logs what the previous settings value did not already say — once per (setting, name), re-armed by a changed list. | lint-config-contract (QA) | lucisv_server |
| ~~30~~ | ~~**An unreadable directory aborts the whole walk.** `Walk::dir` propagates `read_dir`'s error with `?`, so one permission-denied directory anywhere under the start — reachable now that a symlink to an outside directory is followed once (§2.9-8's ruling) — drops every file already found and fails the run. Found by walk-cycles' QA on a link to `/`. Wanted: skip the directory and say so through a warning channel the walk does not have today (the filelist-missing-file precedent), which is also where a dangling source link's warning belongs.~~ — **delivered 2026-09-05 by small-items-4 (TODO §45.2):** `walk::collect_files` takes a `&mut dyn FnMut(Warning)` sink; an unreadable directory, an unreadable `.gitignore` and a dangling source link are warned about (`warning: <path>: <message>` on the CLI's stderr before the report, exit code unchanged; logged once per scan by the server through `report_scope`) and the walk continues. | walk-cycles (QA) | lucisv_core / lucisv / lucisv_server |
| 31 | **DPI-export name binding remains open.** Package re-export resolution closed §2.9-16, but the name in a DPI export is still not a semantic reference. Keep this separate from the delivered package-member traversal. | dpi-export request (b); package-reexports | vlog_semantic |
---
@@ -663,12 +682,12 @@ untouched, reusing existing arms.
|---|---|
| `vlog_parser` | spans, name-spans, recursion-limit, error-recovery, define-table, lexer-cleanup, decomposition-parser, and the grammar lane: *macro-items*, *classes*, *bind*, *dynamic-types*, *types-decls*, *item-misc*, *directives-in-lists*, *directives-in-instances*, *dpi-export*, *assertions*, *interfaces*, *expressions-2*, *dv-statements*, *mop-up-2*, *directive-split*, *ansi-first-port*, *null-items*, *constraint-bodies*, *covergroup-bodies*, *fragment-mode*, *vendor-formal-grammar*, *comment-slots*, *bind-semantics*, *sva-bodies* (most also add formatter arms — parser+formatter pairs by default; directive-split and ansi-first-port reused existing arms and left `vlog_formatter/src` untouched) |
| `vlog_formatter` | safety-net (`verify.rs`), case-tables, formatter-bug-fixes, corpus-bugs, comments-round, comments-round-2, alignment (`align.rs`), format-fences (`fence.rs`), range-formatting (`range.rs`), shared-fence-filter, decomposition-formatter, and the layout halves of constraint-bodies, covergroup-bodies, comment-slots, bind-semantics and sva-bodies (`format/`) |
| `vlog_semantic` | vlog-semantic (`bind/`, `resolve.rs`, `model.rs`), workspace-index (`workspace/`), decomposition-semantic, class-semantics, interface-semantics, class-member-access, struct-members, overlay-promotion, port-detail-spans (`Symbol`/`Def::detail_span` and `Semantics::symbols_named`), hover-line-index (`DeclLines`, facts codec), vscode-hierarchy-sidebar's declaration/instance positions, scan-interleave (`WorkspaceIndex::absorb`), semantic-lints-on's word census, bind-semantics and sva-bodies, refactor-rename's performance amendment (`files_spelling`), plus the index halves of indexing-ux (`index_order`/`IndexBuilder`), index-scope (order-insensitive `finish`, facts-from-analysis), incremental-index (`update_file`, edge/reference tables, `instantiations.rs`, `classes.rs`), index-persistence (`facts.rs`; current `FACTS_FORMAT` 17; plus a small `vlog_parser::defines` touch — `DefineTable::from_entries`, `Eq` derives) |
| `vlog_semantic` | vlog-semantic (`bind/`, `resolve.rs`, `model.rs`), workspace-index (`workspace/`), decomposition-semantic, class-semantics, interface-semantics, class-member-access, struct-members, overlay-promotion, port-detail-spans (`Symbol`/`Def::detail_span` and `Semantics::symbols_named`), hover-line-index (`DeclLines`, facts codec), vscode-hierarchy-sidebar's declaration/instance positions, scan-interleave (`WorkspaceIndex::absorb`), semantic-lints-on's word census, bind-semantics and sva-bodies, refactor-rename's performance amendment (`files_spelling`), plus the index halves of indexing-ux (`index_order`/`IndexBuilder`), index-scope (order-insensitive `finish`, facts-from-analysis), incremental-index (`update_file`, edge/reference tables, `instantiations.rs`, `classes.rs`), index-persistence (`facts.rs`; committed `FACTS_FORMAT` 18; active §49 uses 19; plus a small `vlog_parser::defines` touch — `DefineTable::from_entries`, `Eq` derives) |
| `vlog_linter` | linter-core, lint-harness, lint-rules-2, semantic-lints (`signals.rs`), semantic-lints-on (workspace oracle), one-parse (`context.rs`) |
| `vlog_refactor` | refactor (plan), refactor-rename (including `prepare_rename_here` / `rename_name_at` selector half), refactor-ports (including module-target selectors), refactor-instantiate, references-nav (whole-scope equivalence oracle), and the refactor half of decomposition-semantic |
| `lucisv_core` | lucisv-core-lift (`config.rs`, `walk.rs`), filelist (`filelist.rs`), format-cache (`cache.rs`) |
| `lucisv` (CLI) | cli-polish, config-discovery (wiring), parallel-files, cli-filelist, linter-core (CLI half in `lint.rs`), one-parse (`lint.rs` parses once via `ParsedSource`), format-cache (wiring), release-prep (`--version` contract) |
| `lucisv_server` | lucisv-server (trunk), decomposition-server (`server/`, `completion/`), and one or two modules per capability feature: editor-scopes→`pairs.rs`, filelist→scope ladder in `state.rs`, include-nav→`includes.rs`, completion-core/fuzzy-completion/member-completion→`completion/`+`candidates.rs`, completion-templates→`templates.rs`, inline-templates→`inline.rs`, inline-instantiation→`inline.rs`+`completion/`+`candidates.rs` (+`settings.rs` key), bind-semantics→`instantiate.rs`, macro-expansion→`expand.rs`, hierarchy→`hierarchy.rs`, vscode-hierarchy-sidebar→`design_hierarchy.rs`, type-hierarchy→`type_hierarchy.rs`, type-definition→`type_def.rs`, code-lens→`lens.rs`, inlay-hints→`inlay.rs`, server-lint→`lint.rs`+`code_action.rs`, one-parse→`lint.rs`+`state.rs` (`Document.tree`), refactor wiring/performance fan-outs→`rename.rs`/`ports.rs`+`state.rs`, apply-edit+folders-and-config+cancel-request+work-done-progress→`server/`, editor-settings+indexing-ux+index-scope+index-persistence→`settings.rs`+`state.rs`(+`index_cache.rs`), incremental-sync→`sync.rs`, file-watching→`watch.rs`, file-operations→`file_ops.rs` (+`include_sources` in `state.rs`), pull-diagnostics→`diagnostics.rs`+`server/`, semantic-tokens-delta→`tokens.rs`+`server/semantic_tokens.rs`, on-type-formatting→`on_type.rs`, will-save-wait-until→`format.rs` (+`settings.rs`/`main.rs`), selection-range→`selection.rs`, linked-editing→`linked.rs`, references-nav (server half)→`folding.rs`+`nav.rs`, large-file-mode→`large.rs`+`server/large_file.rs`, lsp-318-extras→`format.rs` (+`main.rs` capability), hover-declarations→`hover.rs`(+`nav.rs`), port-detail-spans (server half)→`hover.rs`+`nav.rs`, hover-line-index→`hover.rs`+`locate.rs`+`state.rs`, scan-interleave/change-debounce/verbose-timing→`server/`+`state.rs`, perf measurements→`src/perf.rs` (`docs/perf/README.md`, not a feature README), interactive-latency→`state.rs` (the two token searches) + `selection.rs`/`on_type.rs`/`completion/`/`inline.rs` (their callers) + `src/perf.rs`/`tests/e2e.rs` (its measurements), editor-packaging (grammar test)→`tests/grammar.rs` |
| `lucisv_server` | lucisv-server (trunk), decomposition-server (`server/`, `completion/`), and one or two modules per capability feature: editor-scopes→`pairs.rs`, filelist→scope ladder in `state.rs`, include-nav→`includes.rs`, completion-core/fuzzy-completion/member-completion→`completion/`+`candidates.rs`, completion-templates→`templates.rs`, inline-templates→`inline.rs`, inline-instantiation→`inline.rs`+`completion/`+`candidates.rs` (+`settings.rs` key), bind-semantics→`instantiate.rs`, macro-expansion→`expand.rs`, hierarchy→`hierarchy.rs`, vscode-hierarchy-sidebar→`design_hierarchy.rs`, type-hierarchy→`type_hierarchy.rs`, type-definition→`type_def.rs`, code-lens→`lens.rs`, inlay-hints→`inlay.rs`, server-lint→`lint.rs`+`lint/project.rs`+`code_action.rs`, one-parse→`lint.rs`+`state.rs` (`Document.tree`), refactor wiring/performance fan-outs→`rename.rs`/`ports.rs`+`state.rs`, apply-edit+folders-and-config+cancel-request+work-done-progress→`server/`, editor-settings+indexing-ux+index-scope+index-persistence→`settings.rs`+`state.rs`(+`index_cache.rs`), incremental-sync→`sync.rs`, file-watching→`watch.rs`, file-operations→`file_ops.rs` (+`include_sources` in `state.rs`), pull-diagnostics→`diagnostics.rs`+`server/`, semantic-tokens-delta→`tokens.rs`+`server/semantic_tokens.rs`, on-type-formatting→`on_type.rs`, will-save-wait-until→`format.rs` (+`settings.rs`/`main.rs`), selection-range→`selection.rs`, linked-editing→`linked.rs`, references-nav (server half)→`folding.rs`+`nav.rs`, large-file-mode→`large.rs`+`server/large_file.rs`, lsp-318-extras→`format.rs` (+`main.rs` capability), hover-declarations→`hover.rs`(+`nav.rs`), port-detail-spans (server half)→`hover.rs`+`nav.rs`, hover-line-index→`hover.rs`+`locate.rs`+`state.rs`, scan-interleave/change-debounce/verbose-timing→`server/`+`state.rs`, perf measurements→`src/perf.rs` (`docs/perf/README.md`, not a feature README), interactive-latency→`state.rs` (the two token searches) + `selection.rs`/`on_type.rs`/`completion/`/`inline.rs` (their callers) + `src/perf.rs`/`tests/e2e.rs` (its measurements), editor-packaging (grammar test)→`tests/grammar.rs` |
| `editors/vscode` | editor-packaging, editor-snippets, editor-settings (manifest half), editor-scopes (rainbow half), vscode-hierarchy-sidebar (`hierarchyView.js`/`hierarchyModel.js`), editor-platform-vsix, editor-marketplace-page, index-persistence (`storagePath` line), verbose-timing (`lucisv.verbose`, spawn args and restart in `extension.js`) |
| `tools/` + CI | corpus-check, release-prep, ci-release, editor-platform-vsix (staging), range-formatting (`lucisv-changed.sh`) |
@@ -754,7 +773,7 @@ ownership explicitly.
| `lucisv_server/src/server/` | lucisv-server; amended by cancel-request, change-debounce, scan-interleave, index-scope, verbose-timing | every request/notification and every rebuild trigger | One ordered loop owns all mutable server state. A startup scan may publish a prefix and answer queued work between files; a request queued behind a rescan trigger is held until that rescan lands, and its cancel travels with it. Never make the distinction time-based: machine load must not change which index a request sees. Verbose timing may observe each wrapper/lifecycle but must be entirely silent when off and must not move protocol ordering. The queue thread only forwards protocol messages and must never parse. |
| `lucisv_server/src/state.rs` | lucisv-server; amended by filelist, index-scope, scan-interleave, indexing-ux, incremental-index, index-persistence, hover-line-index, large-file-mode, one-parse (`Document.tree`), editor-settings + folders-and-config (`set_client_settings`/`change_roots`), include-nav (the include graph), completion-core (candidates), file-watching, interactive-latency (`first_token_reaching`/`first_token_from`), refactor performance fan-outs | every handler | `Workspace` is immutable through request handlers except the interior-mutable four-entry/8 MiB `FileView` cache. The scope ladder (filelist > `index.scope: "workspace"` > folder-scope at shipped depth 2; a rootless session never climbs; it reads flat at depth 0 and walks descendants at positive depth (including the default 2)) and open-buffer overlay are contracts. `Scan` has whole/widen shapes but one step/finish path; index/candidate/include prefixes publish together. `module_sources`, `rename_sources`, and `include_sources` must remain supersets of what their engines can edit/refuse over; `rename_sources` falls back to `sources()` when an ambiguous posting prevents a proven bound. `update_one` and a completed scan must equal a fresh build (`fingerprint`). Handlers reading `doc.text` instead of tokens/tree must check `doc.large`. |
| `lucisv_server/src/settings.rs` | editor-settings | folders-and-config, indexing-ux, index-scope, index-persistence, inline-templates, will-save-wait-until, filelist, large-file-mode | One parser for both doors (push and pull, via `from_section` re-wrapping). Every key drops garbage independently; defaults that are not "silence" (1 MiB cap, log on, persist on, 4 MiB large-file threshold) are hand-written in `Default`. `set_client_settings` returns whether a reindex is owed — new keys must decide that question explicitly. |
| `vlog_semantic/src/workspace/` (+ `facts.rs`) | workspace-index; extended by incremental-index, index-persistence, index-scope, hover-line-index, scan-interleave, member semantics, semantic-lints-on, bind-semantics, SVA bodies and refactor-rename performance | server state, hierarchy/lens/type-hierarchy, refactor, completion, semantic lints | Determinism (same inputs → same index, any order), the `paths` spelling coupling with `resolve.rs`, `FACTS_FORMAT` bumped on any codec change (currently 17), edge/posting tables built by the same lifted walks the engines use. `DeclLines` must round-trip and participate in `fingerprint`; `absorb` must equal one build over the resulting record set; `files_spelling` must continue to include unresolved non-empty external/inherited paths or rename loses its dangling-use refusal; `FileFacts::words` is the shared project mention/completion census. |
| `vlog_semantic/src/workspace/` (+ `facts.rs`) | workspace-index; extended by incremental-index, index-persistence, index-scope, hover-line-index, scan-interleave, member semantics, semantic-lints-on, bind-semantics, SVA bodies and refactor-rename performance | server state, hierarchy/lens/type-hierarchy, refactor, completion, semantic lints | Determinism (same inputs → same index, any order), the `paths` spelling coupling with `resolve.rs`, `FACTS_FORMAT` bumped on any codec change (committed 18; active §49 uses 19), edge/posting tables built by the same lifted walks the engines use. `DeclLines` must round-trip and participate in `fingerprint`; `absorb` must equal one build over the resulting record set; `files_spelling` must continue to include unresolved non-empty external/inherited paths or rename loses its dangling-use refusal; `FileFacts::words` is the shared project mention/completion census. |
| `vlog_refactor/src/rename/` | refactor-rename; shared by references-nav and the performance wave | server rename/prepareRename/references and port refactor verification | `Scope` remains the whole-scope authority and `collect_occurrences` the one rename/references walk. The fast `prepare_rename_here` answer/refusal and `rename_name_at` target are parity contracts, not alternate semantics. Any new refusal must be expressible on the fast path or force a deferral; any new occurrence shape must be reflected in the server fan-out or trigger its all-sources fallback. |
| `vlog_parser/src/token.rs` keyword table | completion-core (`KEYWORDS` export) | lexer, pairs.rs, editor grammar (test-locked), completion | Adding a keyword = lexer change + `pairs.rs` re-check + a hand edit to the grammar (`tests/grammar.rs` names the missing word) + potentially `verify.rs`-adjacent behavior. dv-statements added `randcase`/`let` to `is_keyword` and recorded it as shared with the adjacent lexer-cleanup round — the precedent for treating this file as coordinated even between back-to-back rounds. |
| `editors/vscode/package.json` | editor-packaging | editor-settings, editor-scopes (colour ids), editor-snippets, index-persistence, verbose-timing, platform-vsix, marketplace-page | Settings/colour/snippet ids referenced from `extension.js` or the server must move in lockstep; mismatches are *silent* (VS Code ignores unknown ids). `lucisv.verbose` is special: it changes a spawn argument and therefore restarts the server instead of flowing through the ordinary settings push. Version number is one of the four version files. |