TODO §53.1 (docs/features/extract-inline-module), the fourth §8
refactoring; §53.2 inline module is unstarted and runs as its own lane.
`vlog_refactor::extract` (region, flow, boundary, render): a selection
of whole module items becomes a new module — a name declared outside
and read inside is an `input`, written inside an `output` (assign and
procedural LHS, for init/step, ++/--, force/release/deassign, `-> ev`,
an initialiser, an output/inout connection through the index), written
on both sides refused; parameters passed through `#(.P(P))`, used
imports copied, the port's type taken from the declaration's own text;
the selection replaced by an instantiation rendered from the new
module's text. Forty-three refusal sentences. `RefactorEdit::created`;
the server emits `CreateFile` document changes when the client reads
both halves of the capability, else writes the module below its source;
`refactor.extract` action carrying `lucisv.extractModule [uri, range,
name]`, and a name prompt in the VS Code extension through the language
client's middleware.
The verifier's never-dropped ledger follows the move (review rework of
QA's two HIGHs): `verify_move(moving: &[(file, region)])` — a piece
deleted inside the moved region must land exactly once in the file the
move names, a deletion outside the region stays an ordinary deletion,
four equations, twelve attack pairs through the production entry;
`check.rs` split (pure move) into `check/{mod,ledger}.rs`. `interface`
and `program` bodies are refused (one AST node, gated on `kw`). QA's
re-attack: PASS; its MEDIUM (a same-file relocation as two edits) is
filed as topo §2.9-32.
Trials: corpus 5 extracted / 6 refused, opentitan `hw/ip/{aes,uart,
spi_host,hmac}` 5 / 5, the unresolved-name census held for every
accepted extraction. 0 of 820 corpus files differ from 0.46.0.
Co-Authored-By: Claude Fable 5.1 <[email protected]>
lucisv documentation site
Astro 7 and Starlight build the static user guide and reference pages from
src/content/docs/. Dependencies are pinned in package.json and
package-lock.json; use the lockfile when installing:
cd docs/site
npm ci
npm run dev
Build and inspect the deployable output:
npm run build
npm run preview
dist/ contains pre-rendered HTML, CSS, JavaScript, Pagefind search, and XML
sitemaps; no application server is required. It is tracked in this repository,
so rebuild it after changing documentation and review the generated diff.
Building does not publish the site. In a restricted environment, use
ASTRO_TELEMETRY_DISABLED=1 npm run build to avoid Astro writing its global
telemetry preferences.
Editing and verification
- Usage guides:
src/content/docs/start/andguides/. - CLI, lint rules, LSP, architecture and API navigation:
src/content/docs/reference/. - Overview:
src/content/docs/index.mdx. - Routes/sidebar, site URL and metadata:
astro.config.mjs. - Visual styles:
src/styles/custom.css; static media:public/.
The site is derived documentation. Check behavior against the Rust source, CLI help, and feature contracts before updating prose. The repository-wide analysis and topology cover internal ownership and limitations. Historical coverage/performance numbers must retain their measurement scope and date.
From the repository root, generate the canonical lint rule reference and the complete Rust API docs with:
cargo run -p lucisv -- check --rules-doc
cargo doc --workspace --no-deps
The site rule page adds editorial explanations; it must agree with the
registry's rule names, severities, defaults, options and fix applicability.
The API page is navigational, not an exhaustive signature inventory.
npm run build validates content rendering and builds search/sitemaps.
npm run check invokes Astro's optional checker; it requires checker
packages beyond this site's current declared dependencies.