docs-sync-r4 — Documentation, Feature Status, and Site Sync
Goal
Synchronize repository-wide documentation, backlog status, QA checklists, feature records, and Starlight documentation sources (docs/site/src/) to the live repository state after Round 3 (69383ea, v0.66.2), resolving drifted counts, closing TODO.md §65.8 (tb. completion) as WON'T FIX per Owner Decision #3, reconciling Round 1–3 fixes (refactor-correctness-r1, server-ordering-r1, index-lifecycle-r2, mcp-hardening-r3) and v0.60–v0.66.2 releases across project docs, while preserving untouched docs/site/dist/ when no local Astro toolchain is available and maintaining strict Round 4B file ownership.
Assumptions
- Baseline commit is
69383ea(Round 3: MCP hardening...); cargo workspace version is0.66.2(CHANGELOG.md2026-11-24;docs/site/package.json0.9.0). - Strict Lane 4B file ownership applies: only
README.md,CLAUDE.md,TODO.md,docs/repository-analysis.md,docs/topo.md,docs/manual-acceptance.md,docs/features/instantiation-highlighting/README.md,docs/features/localized-reindex/README.md,docs/site/src/, anddocs/features/docs-sync-r4/README.mdare modified. No code undercrates/,tools/,scripts/,editors/,Cargo.toml, or.gitea/is altered. - Handshakes
#57,#65,#66and open Rounds 5–12 items indocs/topo.md §2.9stay open until Lane 4A lands and Lead closes them. - Core policies, invariants, and workflow sections in
CLAUDE.mdremain unaltered; only factual size measurements are refreshed. docs/site/node_modulesand globalastroare absent locally and networknpm installis forbidden, sodocs/site/dist/remains untouched and must be rebuilt in an environment with@astrojs/starlight.
Handshakes
- Owner Decision #3 (
TODO.md §65.8):tb.hierarchical completion decision resolved as "no" (2026-11-26); kept "an unknown head answers nothing" behavior and closed§65.8as WON'T FIX. docs/topo.md(#35,#36, Round 1–3): Verified#35marked moot (M7); closed#36(scope-relative by designruling closed inTODO §65.2/ v0.62.0); updated §1–§3 crate counts (9),serde/serde_jsondependency ownership (lucisv_server+lucisv_mcp),FACTS_FORMAT = 22, §1.4 contract rows (instance-folding,stamp-author,refactor-correctness-r1,server-ordering-r1,index-lifecycle-r2,mcp-hardening-r3), §2.8 RO/full MCP byte budgets (2,000/330&3,800/440), and §3.1–§3.3 maps while leaving#57,#65,#66open for Lane 4A + Lead.docs/site/dist/rebuild required:docs/site/src/content/docs/pages (index.mdx,start/quick-start.md,start/configuration.md,guides/{agents,editors,formatter,linter,syntax}.md,reference/{cli,language-tools,architecture,rust-api}.md) were updated, while prebuiltdocs/site/dist/was intentionally left untouched becausedocs/site/node_modulesandastro(@astrojs/starlight) are not installed locally. Rebuilddocs/site/dist/cleanly withcd docs/site && npm ci && ASTRO_TELEMETRY_DISABLED=1 npm run buildbefore deployment.
Status / TODO
- Verify live repository metrics (
crates/,registry.rs,facts.rs,Cargo.toml, line counts,editors/vscode/package.json, and./tools/gates.sh --only suites,docs,node) on69383ea - Close
TODO.md §65.8as WON'T FIX (2026-11-26, Owner Decision #3: "no") - Sync
docs/topo.md(§1–§3,#36,FACTS_FORMAT=22, 9 crates, Round 1–3 contracts, preserving#57,#65,#66open) - Sync
docs/repository-analysis.mdto v0.66.2 (69383ea) - Sync
README.mdandCLAUDE.md(preserving all coreCLAUDE.mdpolicies/invariants) - Sync
docs/manual-acceptance.md,docs/features/instantiation-highlighting/README.md, anddocs/features/localized-reindex/README.md - Sync
docs/site/src/sources (leavingdocs/site/dist/untouched and documenting rebuild requirement) - Run final verification (
python3 tools/stamp_author.py --check, doc link/sanity checks,git status --short,git diff --stat)
Work log
- 2026-11-26 — Initial metric verification on
69383ea:- Verified 9 workspace crates (
vlog_parser,vlog_semantic,vlog_refactor,vlog_formatter,vlog_linter,lucisv_core,lucisv,lucisv_server,lucisv_mcp), version0.66.2(Cargo.toml,editors/vscode/package.json,CHANGELOG.md2026-11-24;docs/site/package.json0.9.0),FACTS_FORMAT = 22. - Verified linter rule breakdown in
crates/vlog_linter/src/registry.rs&rules/*.rs: 74 rules (7 Error, 24 Warning, 43 Style; 51 always on, 6needs_workspaceproject-default, 17 opt-in; 10 Safe fixes + 1 Unsafe fixalways-comb). - Verified VS Code manifest (
editors/vscode/package.json): 8 commands, 37 non-rule settings + 74lucisv.lint.rules.<rule>toggles. - Verified production line counts (
crates/*/src/**/*.rsnon-blank non-comment before#[cfg(test)]/mod tests, excl.*/tests/): only test-onlylucisv_server/src/perf.rs(907,#[cfg(test)]inmain.rs) exceeds600; all non-test production files are<= 587(resolve.rs587,parser/item.rs582,parser/instance.rs569,parser/module.rs560,format/stmt.rs556,parser/sva.rs542,lexer.rs540,extract/flow.rs535,server/dispatch.rs522,parser/class.rs518,parser/covergroup.rs517,state/discover.rs510). - Executed
./tools/gates.sh --only suites,docs,nodeon69383ea: PASS across all 11 steps — 9 Rust crates 5,637 passed, 0 failed, 68 ignored (vlog_parser521/0 [2 ign],vlog_semantic438/0 [4 ign],vlog_refactor769/0 [6 ign],vlog_formatter376/0 [0 ign],vlog_linter672/0 [0 ign],lucisv_core119/0 [0 ign],lucisv151/0 [0 ign],lucisv_server2,192/0 [52 ign],lucisv_mcp399/0 [4 ign]),docs1/0,node37/0.
- Verified 9 workspace crates (
- 2026-11-26 — Docs & site synchronization:
TODO.md: Closed§65.8(tb.completion) as WON'T FIX (2026-11-26, Owner Decision #3: "no"); preserved all unrelated history.docs/topo.md: Updated header snapshot (2026-11-26,69383ea,v0.66.2,FACTS_FORMAT = 22), module count (nine workspace crates),serde/serde_jsondeps (lucisv_server+lucisv_mcp), §1.2 dependency edges, §1.4 contract rows (instance-folding,stamp-author,refactor-correctness-r1,server-ordering-r1,index-lifecycle-r2,mcp-hardening-r3), §2.8 budgets (2,000/330RO,3,800/440full) and#54stamp note, closed#36(TODO §65.2scope-relative ruling), kept#35moot and#57/#65/#66open, updated §3.1/§3.2 (lucisv_mcpadded to Mermaid graph)/§3.3 choke points and file sizes.docs/repository-analysis.md: Refreshed fromv0.60.0(58520e5,2026-10-14) tov0.66.2(69383ea,2026-11-26), covering0.61–0.66.2, Rounds 1–3, closed issues (#33–#34,#36,#37–#40,#48–#54,#56,#61–#63,§55,§65.1–§65.4,§65.8,oct_review.mdL-9), currentFACTS_FORMAT = 22, and live gate results.CLAUDE.md&README.md: Appended2026-11-26(0.66.2/69383ea) file-size measurement inCLAUDE.mdwhile keeping all policies, invariants, and workflow rules intact; fixedREADME.mdbinary lists ({lucisv,lucisv-server,lucisv-mcp}), closed handshake #33 note, and outdateddry_run/lucisv.mcp.modeMCP summary.docs/manual-acceptance.md,docs/features/instantiation-highlighting/README.md,docs/features/localized-reindex/README.md: Added manual QA steps28–34(v0.61–v0.66.2& Round 3checkdir/glob); reconciledinstantiation-highlightinghistorical Windows-host note withv0.65.0delivery + trunk gates; reconciledlocalized-reindexF6 (v0.65.8), P1 (#48WON'T FIX), and P2/P3 (#49/#51Round 2).docs/site/src/content/docs/: Updatedindex.mdx(74rules,3binaries),start/quick-start.md,start/configuration.md([format].style, 37-setting coverage incl.mcp.*,commentKeywords.*,references.fullLineView,hierarchy.highlightCurrent,inlineKeywords,autoEnd, updated cache key),guides/formatter.md(## Named styles, fixed cache note),guides/linter.md(all 6 workspace-default rules),guides/editors.md,guides/agents.md(checkpath/dir/glob description),guides/syntax.md(generate-block/top-rooted path resolution),reference/cli.md(--style),reference/language-tools.md(ranges formatting,autoEnd,ifdef/instance folding, closed handshake #33, buffer-firstsame_fileactions, cursor-at-end),reference/architecture.md(lucisv_mcp, codec 22, v0.66.2 & Rounds 1–3, 3-binary.vsix), andreference/rust-api.md(v0.66.2/69383ea,FACTS_FORMAT = 22,Style/format_selection/format_auto,WorkspaceIndex/FileFactsmethods,vlog_refactorRounds 1/3 exports,lucisv_corediff/STYLE_NAMES/walktracked variants).- Checked
docs/site/:node_modulesand globalastroare absent (which astro-> not found), sodocs/site/dist/was left strictly untouched.
- 2026-11-26 — QA Fix Pass (Findings 1–5):
README.md:91-92: Addedstyleto the format cache key tuple matchingcrates/lucisv_core/src/cache.rs:32-46, 118-120(content,line-length,indent,uvm-utils-indent,style, lucisv version).docs/manual-acceptance.md:39(Step 28): Correctedaes_control_fsm_n.svinstantiation span to lines382-486(fold ending line485, leaving);on line486outside the fold), moved the`ifdeffold check to real OpenTitan filehw/ip/aes/rtl/aes_cipher_core.sv:793-930(`ifdef INC_ASSERT...`endif), and clarified collapsible vs sticky-scroll behavior.docs/manual-acceptance.md:42(Step 31): Aligned expected behavior withdocs/features/comment-highlighting/README.md:21-29, 65-72, 353-358: lucisv highlights comment keywords andbegin/end/fork/joinrainbow delimiters, while VS Code's ownbracketPairColorizationhandles()/[]and stops coloring brackets in comments once background tokenization finishes (or settles after a/*edit).docs/site/src/content/docs/reference/architecture.md:13-17: AddedMCP server(lucisv_mcp/lucisv-mcp) toPrimary consumersforvlog_formatter,vlog_linter,vlog_semantic,vlog_refactor, andlucisv_core.README.md:1008: Updated comment to# target/release/{lucisv,lucisv-server,lucisv-mcp}consistently listing all three release binaries.
QA log
2026-11-26 — Round 4 Lane 4B QA
Verdict: FAIL (3 concrete factual errors in README.md and docs/manual-acceptance.md, plus 2 minor consistency gaps; all counts, TODO.md §65.8, docs/topo.md, CLAUDE.md, docs/repository-analysis.md, docs/site/src/ links, stamp_author.py --check, and gates.sh checks otherwise verified accurate).
Findings
-
Stale format cache key in
README.md:91-92(BLOCKING — code vs. doc contradiction):README.md:91-92(### Cache) still states:An entry is keyed on **(content hash, `line-length`, `indent`, `uvm-utils-indent`, lucisv version)** per file.crates/lucisv_core/src/cache.rs:32-46,118-120includesstyle(added inv0.65.5) as a 5th field inEntry(7-field store line:content,line_length,indent,uvm_utils_indent,style,VERSION,path). Whiledocs/site/src/content/docs/start/configuration.md:132anddocs/repository-analysis.md:317were updated to liststyle,README.md:91-92was left stale.
-
Inaccurate example file/lines and missing
`ifdefblocks indocs/manual-acceptance.md:39Step 28 (BLOCKING — verified against OpenTitan):- Step 28 instructs:
Open a long module with multi-line instantiations andifdef `` blocks (e.g.hw/ip/aes/rtl/aes_control_fsm_n.sv:382-594). Scroll into an instantiation's port list and into an ``ifdefbranch. - Verified directly against
/Users/lucio/repo/opentitan/hw/ip/aes/rtl/aes_control_fsm_n.sv:- The file contains zero
`ifdef/`else/`endifdirectives (grep 'if'returns no matches), so a tester cannot scroll into an ``ifdef `` branch in that file. - The
aes_control_fsm #(instantiation spans lines 382–486 (ending at);on line 486, not594; line 596 is a separateprim_buf #(instantiation, as already noted indocs/features/instance-folding/README.md:30-33).
- The file contains zero
- Also clarify
"stay pinned with the closing ); visible"— while scrolled inside a long port list,);is below the viewport; the contract is that the fold ends on line485so collapsing or reaching the end leaves);visible.
- Step 28 instructs:
-
Inaccurate
comment-highlightingPart 1 claim indocs/manual-acceptance.md:42Step 31 (BLOCKING — contradictsdocs/topo.md:389,TODO.md:7350, anddocs/features/comment-highlighting/README.md):- Step 31 expects:
parentheses/brackets inside comments and strings receive no rainbow bracket colouring. - Per
docs/features/comment-highlighting/README.md:25-29,65-72,353-358,docs/topo.md:389("bracket colour in comments is VS Code's (explained, not changed)"), andTODO.md:7350, lucisv's own rainbow (editors/vscode/extension.js) only colorsbegin/end/fork/join, while bracket-pair coloring on()/[]comes from VS Code (editor.bracketPairColorization) and still transiently colors brackets inside comments on newly opened large files until background tokenization finishes (and briefly across/*edits). Step 31 should matchcomment-highlighting/README.md:353-358(verifying steady-state comments/large.svfiles lose transient bracket colors once tokenization finishes) rather than asserting unconditional suppression.
- Step 31 expects:
-
Minor consistency gaps (non-blocking / clean up during fix pass):
docs/site/src/content/docs/reference/architecture.md:13-17:Primary consumersin the crate table still omitslucisv-mcp/lucisv_mcpforvlog_formatter,vlog_linter,vlog_semantic,vlog_refactor, andlucisv_core, despite addinglucisv_mcpon line 20 and stating on lines 66-67 thatlucisv_mcpcomposes all six libraries.README.md:1008:# target/release/lucisv-server (and target/release/lucisv)was left with 2 binaries whileREADME.md:1097was updated to{lucisv,lucisv-server,lucisv-mcp}.
Verification Summary
- Ownership & diff scope (
git -C <worktree> status --short,git diff --stat):- Strictly confined to
CLAUDE.md,README.md,TODO.md,docs/topo.md,docs/repository-analysis.md,docs/manual-acceptance.md,docs/features/instantiation-highlighting/README.md,docs/features/localized-reindex/README.md,docs/site/src/content/docs/, and untrackeddocs/features/docs-sync-r4/README.md. - Zero changes in
Cargo.toml,crates/,tools/,scripts/,.gitea/,editors/, ordocs/site/dist/(anddocs/site/dist/rebuild requirement is documented indocs/features/docs-sync-r4/README.md).
- Strictly confined to
- Adversarial code fact-checks (all verified directly in
<worktree>):- Workspace crates (
9), version (0.66.2acrossCargo.toml,crates/*/Cargo.tomlviaworkspace = true,editors/vscode/package.json,CHANGELOG.md;docs/site/package.json0.9.0),FACTS_FORMAT = 22(crates/vlog_semantic/src/facts.rs:177): PASS. - Linter registry (
crates/vlog_linter/src/registry.rs,rules/*.rs): 74 rules (7 Error, 24 Warning, 43 Style; 51 always on, 6needs_workspaceproject-default, 17 opt-in; 10 Safe fixes incl.suggest-parentheses+ 1 Unsafe fixalways-comb), anddocs/site/src/content/docs/reference/rules.mdtable matches all 74 rules: PASS. - VS Code manifest (
editors/vscode/package.json): 8 commands, 37 non-rule settings + 74lucisv.lint.rules.<rule>toggles (all 37 non-rule settings documented with matching defaults indocs/site/src/content/docs/start/configuration.md): PASS. - Production line counts (
crates/*/src/**/*.rs, non-blank non-comment lines before#[cfg(test)]/mod tests, excl.*/tests/): only#[cfg(test)]crates/lucisv_server/src/perf.rs(907) exceeds600; all non-test production files are<= 587(resolve.rs587,parser/item.rs582,parser/instance.rs569,parser/module.rs560,format/stmt.rs556,parser/sva.rs542,lexer.rs540,extract/flow.rs535,server/dispatch.rs522,parser/class.rs518,parser/covergroup.rs517,state/discover.rs510): PASS. TODO.md §65.8: only line 7131 modified (closed WON'T FIX2026-11-26, Owner Decision #3:"no"), unrelated history untouched: PASS.CLAUDE.md: only lines 104–114 appended with the2026-11-26size re-measurement; all hard invariants, standards, and workflow rules untouched: PASS.docs/topo.md:#35marked moot (M7),#36closed (2026-10-19,TODO §65.2,v0.62.0,14/12verified incrates/lucisv_server/tests/opentitan_references.rs),#57,#65,#66and remaining open handshakes (#1,#11–12,#31–32,#41–42,#44–47,#55,#58–60,#64) preserved open; Round 1–3 (8f5a4fb,4d384ec,69383ea) contracts, Mermaid graphs, and MCP byte budgets (2,000/330 BRO,3,800/440 Bfull; measured1,826/297 B&3,469/398 B) verified against code: PASS.docs/site/src/content/docs/reference/rust-api.mdpublic symbols/methods & internal links: all cited symbols verified incrates/{vlog_parser,vlog_formatter,vlog_linter,vlog_semantic,vlog_refactor,lucisv_core}/src/; 107 relative/site markdown links across 22 modified + site files and all HTMLhrefs inindex.mdxverified valid: PASS.
- Workspace crates (
- Executed gates inside
<worktree>:./tools/gates.sh --only suites,docs,node: PASS (5,637passed,0failed,68ignored across 9 crates —vlog_parser521/0 [2 ign],vlog_semantic438/0 [4 ign],vlog_refactor769/0 [6 ign],vlog_formatter376/0 [0 ign],vlog_linter672/0 [0 ign],lucisv_core119/0 [0 ign],lucisv151/0 [0 ign],lucisv_server2,192/0 [52 ign],lucisv_mcp399/0 [4 ign];docs1/0;node37/0).python3 tools/stamp_author.py --check: PASS (would stamp 0 files; left 249 untouched).
2026-11-26 — Round 4 Lane 4B QA Re-Verification
Verdict: PASS (all 3 blocking findings and both minor consistency items verified fixed against code, OpenTitan RTL, and feature records; ownership and gates clean).
Re-Verification Checks
README.md:91-92,1008— PASS:README.md:91-92now lists(content hash, line-length, indent, uvm-utils-indent, style, lucisv version), matchingcrates/lucisv_core/src/cache.rs:32-46,118-120.README.md:1008now lists# target/release/{lucisv,lucisv-server,lucisv-mcp}consistently withREADME.md:1097.
docs/manual-acceptance.md:39,42(Steps 28 & 31) — PASS:- Step 28 (
line 39): Verifiedhw/ip/aes/rtl/aes_control_fsm_n.sv:382-486(382:aes_control_fsm #(,385:) u_aes_control_fsm (,486:);, fold ending485) andhw/ip/aes/rtl/aes_cipher_core.sv:793-930(793:`ifdef INC_ASSERT,930:`endifoutside the fold) against/Users/lucio/repo/opentitananddocs/features/instance-folding/README.md:30-33/docs/features/ifdef-folding/README.md:48-52. - Step 31 (
line 42): Aligned withdocs/features/comment-highlighting/README.md:21-29,65-72,353-358, distinguishingcommentKeywords/begin-endrainbow delimiters from VS Code'sbracketPairColorizationsettling after background tokenization (or/*edits).
- Step 28 (
docs/site/src/content/docs/reference/architecture.md:13-17— PASS:Primary consumersforvlog_formatter,vlog_linter,vlog_semantic,vlog_refactor, andlucisv_corenow includeMCP serveralongside CLI/language server.
- Containment & Final Gates (inside
<worktree>):git status --short/git diff --stat: strictly the 20 owned docs/site files plusdocs/features/docs-sync-r4/README.md; zero changes inCargo.toml,crates/,tools/,scripts/,.gitea/,editors/, ordocs/site/dist/.python3 tools/stamp_author.py --check: PASS (would stamp 0 files; left 249 untouched, re-verified after this QA log edit)../tools/gates.sh --only docs,node: PASS (docs1/0,node37/0; no Rust/JS code modified since the earlier fullsuites,docs,nodepass of5,637Rust +1doc +37node).
Review
Lead Self-Inspect (2026-11-26): APPROVED for trunk commit.
- Merged Lane 4B cleanly onto trunk after QA Re-Verification PASS across
README.md,CLAUDE.md,TODO.md(§65.8WON'T FIX),docs/topo.md,docs/repository-analysis.md,docs/manual-acceptance.md, feature READMEs, anddocs/site/src/(docs/site/dist/untouched pending Astro toolchain).