TODO §65: stabilization round 1 — generate-label rename/references, LSP references fan-out to the pd_main tops, the doc-test stall
Co-Authored-By: Claude Fable 5.1 <[email protected]>
This commit is contained in:
1 parent
5316c0b127
commit
b9ee399ac6
1 file changed
+92
@@ -6939,3 +6939,95 @@ Nothing else.
|
||||
(23e2e4b, v0.55.0), CI green on the release commit, 8 assets, the
|
||||
darwin-arm64 vsix at 0.55.0 with both binaries,
|
||||
`hierarchySections.js`, `extract.js`, no `*_test.js`.
|
||||
|
||||
## 65. Stabilization round 1 (planned 2026-09-30, owner's order) — two correctness gaps, then the doc-test stall
|
||||
|
||||
Three lanes, one at a time on trunk, dev (Opus) → QA (Opus) → lead review →
|
||||
commit. Rules as §63/§64: every suite and sweep through `tools/guard.sh`,
|
||||
never piped (log to a file, check `guard exit` and the suite count); no
|
||||
`sleep` over 60 s; never `grep` without a path; opentitan read-only (the
|
||||
eval clone `~/.cache/lucisv-eval/ot` may be read and, for an edit test,
|
||||
restored with `git -C … checkout -- <file>`). Ships as 0.60.0.
|
||||
|
||||
### 65.1 Rename and references through a generate block label (topo §2.9-43, MCP-14)
|
||||
|
||||
`rename` of a generate block label (`for (…) begin : g_lane … end`) rewrites
|
||||
the label and nothing else: a hierarchical path through it
|
||||
(`g_lane[0].lane_q`, `u_x.g_lane[1].sig` from another file) keeps the old
|
||||
name and no longer resolves, with no warning; `find_references` on the label
|
||||
reports no use. The MCP layer refuses the rename (any `block`-kind
|
||||
declaration); the LSP and the CLI still perform it. Feature README
|
||||
`docs/features/generate-label-rename`.
|
||||
|
||||
The contract to reach, in `vlog_semantic` (resolution) and `vlog_refactor`
|
||||
(`find_references`, `rename`, the verifier):
|
||||
|
||||
- [ ] a path segment that names a generate block — bare (`g.x`), indexed
|
||||
(`g[0].x`, `g[i].x`), nested (`g_a.g_b[2].x`), and behind an instance
|
||||
path from another file (`u_x.g[0].x`) — resolves to the block's label
|
||||
and is a reference to it
|
||||
- [ ] `find_references` on the label lists the declaration, the closing
|
||||
`end : label` and every such segment, same-file and cross-file, through
|
||||
the same fan-out §64.1 uses for hierarchical-surface declarations
|
||||
- [ ] `rename` rewrites all of them, all-or-nothing; a closing label is
|
||||
rewritten with its opening one; a segment it cannot resolve (macro
|
||||
text, a string) is a warning, as for any other declaration; an
|
||||
unnamed block (`genblk1`) is not renameable
|
||||
- [ ] named procedural blocks (`begin : lbl` in `always`/`initial`/
|
||||
functions/tasks): the label, its closing label and `disable lbl;` are
|
||||
one reference set
|
||||
- [ ] the verifier accepts exactly these rewrites and nothing more:
|
||||
masked-corruption attack tests for any normalization it gains
|
||||
(CLAUDE.md invariant 4)
|
||||
- [ ] the LSP (`textDocument/references`, `rename`, `prepareRename`) and
|
||||
the CLI get it through the engine; `lucisv-mcp`'s refusal of a
|
||||
`block`-kind rename (`crates/lucisv_mcp/src/tools/edit.rs`) is lifted
|
||||
and its tests (`tests/qa_m7.rs`) assert the rename instead
|
||||
- [ ] opentitan: a generate label with cross-file uses renamed on the eval
|
||||
clone — every site rewritten, the files still parse, clone restored
|
||||
- [ ] QA: attack the index forms, nesting, shadowing (a net and a block of
|
||||
the same name in different scopes), a label used only in a closing
|
||||
label, `disable`, an escaped label, a label inside an `ifdef`
|
||||
|
||||
### 65.2 LSP `references` omits three `aes` instantiations (topo §2.9-36, MCP-6)
|
||||
|
||||
On opentitan, `textDocument/references` at the `aes` instantiation in
|
||||
`hw/ip/aes/dv/tb/tb.sv` (and at its `.clk_i` connection) answers 11 and 9
|
||||
locations; the whole-set engine answers 14 and 12 — the same plus the three
|
||||
top-level instantiations in
|
||||
`hw/top_{earlgrey,darjeeling,englishbreakfast}/rtl/autogen/*_pd_main.sv`
|
||||
(`aes #(` and `.clk_i(clkmgr_clocks_i.clk_main_aes)`). Stable after a 30 s
|
||||
settle, so not an indexing race. Feature README
|
||||
`docs/features/references-fanout-pd-main`.
|
||||
|
||||
- [ ] root cause named (the fan-out/scope selection in `lucisv_server` —
|
||||
`module_select`, `state/` scope widening, or the index's
|
||||
instantiation facts for those three files; they are large generated
|
||||
files, check the 1 MiB cap and the word census)
|
||||
- [ ] the LSP answer equals the whole-set engine's for the module name and
|
||||
for a port of it, from the declaration and from a use; a regression
|
||||
test with a fixture that reproduces the cause (not only opentitan)
|
||||
- [ ] an opentitan test (ignored by default, like `tests/opentitan.rs`)
|
||||
pinning the 14 and 12
|
||||
- [ ] QA: the same comparison for five other modules instantiated from a
|
||||
`*_pd_main.sv` top, and for `rename`'s fan-out (does rename see the
|
||||
three sites?)
|
||||
|
||||
### 65.3 The combined test command stalls entering the doc-tests
|
||||
|
||||
`cargo test --workspace` under `tools/guard.sh`: on 2026-09-29 (0.59.0 gate)
|
||||
every suite finished in about two minutes and the run then sat 25 minutes
|
||||
in `Doc-tests vlog_linter` until the guard cut it; on 2026-09-30 an
|
||||
independent session's run hit its 600 s guard "entering the final doc-test
|
||||
harness". `cargo test --workspace --doc` alone passes in under a minute.
|
||||
|
||||
- [ ] reproduce (how often, which doc-test, what the stuck process tree
|
||||
is — `rustdoc`, `rust_out`, stdin?) and name the cause; `guard.sh`
|
||||
runs the command with `0<&3` — check what the doc-test harness
|
||||
inherits as stdin when the gate runs in the background
|
||||
- [ ] fix at the cause (the harness, the doc-test, or the guard), and make
|
||||
the release gate a script (`tools/gates.sh`) that runs fmt, clippy,
|
||||
the test build, the suites, the doc-tests, the corpus gate and the
|
||||
node tests as separate guarded steps with logs kept and a summary
|
||||
that shows a kill — `tools/RELEASING.md` and CLAUDE.md point at it
|
||||
- [ ] ten consecutive green runs of the gate script recorded
|
||||
Reference in new issue
Block a user