lucio and Claude Fable 5.1
23ec44455c
MCP M4: structural edits — replace_item, insert_item, delete_item with the block's own verifier
...
crates/lucisv_mcp/src/tools/item.rs + item/{verify,lexical,span,refs,macros,star}.rs: the general token saver — an agent sends one item's text, never the file. Every edit is a byte-range splice of exactly the slice read_item shows (kind classes: module/interface/program/package/class/declaration/port declaration/always/initial/final/instance/function/task/generate/…), through apply::run (dry_run, freshness, atomic write). The verifier: 1a the text lexes on its own; 1b every token and comment outside the region is byte-identical, shifted, nothing straddles the region's end and no comment inside attaches to a token outside; 2 every item outside the region keeps its depth, kind class and span (a text opening a block or closing the enclosing module is refused); 3 the region holds what the tool promised, each item a kind its container may hold; 4 no new duplicate declaration; 5 ifdef/endif balance in the old and new bytes; 6 define entries inside the region unchanged unless the item is a directive; 7 fence markers unchanged. Normalisation: one trailing newline when the old slice ended a line, the file's line endings; a text that brings comments widens the replaced span over the item's own leading/trailing comments so repeats are `unchanged`; own comments stop at the first blank-line gap; a same-line comment goes with the item. delete_item refuses while a declared name is used — the whole-set engine, the file's own tables, macro-call arguments and define bodies (possible use), and `.*` instantiations in the item's scope whose module declares the port (bound) or cannot be resolved (possible) — unless force, listing the first sites.
QA (Opus, two rounds across an app restart): 45 qa_m4 tests + 23 dev attacks; four masked corruptions fixed (open comment swallowing a fence, macro and .* uses invisible to delete, banner comments deleted). Timings release: 40 000-line file replace 159 ms, insert 284 ms, delete 263 ms. Handshakes MCP-11 (batched find_references), MCP-12 (generate-loop hierarchical use missed by the engine), MCP-13 (lint gap on a directionless header port). Gates through tools/guard.sh: fmt, clippy, workspace 4 846 passed.
Co-Authored-By: Claude Fable 5.1 <[email protected] >
2026-09-23 15:34:51 -07:00
..
2026-08-25 23:36:00 -07:00
2026-09-05 18:03:54 -05:00
2026-09-01 22:53:27 -07:00
2026-08-26 11:06:51 -07:00
2026-09-03 02:28:11 -07:00
2026-09-05 00:40:48 -05:00
2026-09-02 13:15:21 -07:00
2026-09-02 13:15:21 -07:00
2026-09-08 22:38:56 -05:00
2026-08-25 23:36:00 -07:00
2026-08-28 03:16:54 -07:00
2026-09-02 11:13:19 -07:00
2026-09-01 23:53:45 -07:00
2026-09-02 06:01:48 -07:00
2026-09-03 03:40:12 -07:00
2026-08-25 23:36:00 -07:00
2026-08-25 23:36:00 -07:00
2026-09-02 06:11:32 -07:00
2026-08-27 14:35:27 -07:00
2026-09-05 13:35:57 -05:00
2026-08-25 23:36:00 -07:00
2026-08-25 23:36:00 -07:00
2026-09-02 09:06:08 -07:00
2026-08-30 14:17:16 -07:00
2026-08-25 23:36:00 -07:00
2026-09-02 11:32:16 -07:00
2026-08-25 23:36:00 -07:00
2026-09-02 08:33:30 -07:00
2026-09-07 01:12:49 -05:00
2026-09-02 11:32:16 -07:00
2026-09-02 16:39:08 -07:00
2026-09-02 21:13:32 -07:00
2026-09-02 21:55:55 -07:00
2026-09-02 21:33:48 -07:00
2026-09-02 07:34:31 -07:00
2026-09-05 08:15:37 -05:00
2026-08-29 13:38:02 -07:00
2026-09-04 23:06:37 -05:00
2026-09-02 13:15:21 -07:00
2026-08-25 23:36:00 -07:00
2026-09-05 10:41:54 -05:00
2026-09-06 00:04:05 -05:00
2026-09-03 02:28:11 -07:00
2026-08-25 23:36:00 -07:00
2026-08-27 02:03:17 -07:00
2026-08-25 23:36:00 -07:00
2026-08-27 02:03:10 -07:00
2026-09-02 08:33:30 -07:00
2026-08-29 01:44:56 -07:00
2026-08-25 23:36:00 -07:00
2026-09-04 02:58:24 -05:00
2026-09-02 11:32:16 -07:00
2026-09-05 15:03:11 -05:00
2026-08-25 23:36:00 -07:00
2026-09-06 21:04:05 -05:00
2026-08-29 00:11:13 -07:00
2026-08-28 21:36:55 -07:00
2026-08-27 13:12:27 -07:00
2026-09-08 20:48:41 -05:00
2026-09-07 04:31:26 -05:00
2026-09-03 03:40:12 -07:00
2026-08-29 13:38:32 -07:00
2026-09-02 11:32:16 -07:00
2026-08-30 19:02:42 -07:00
2026-09-04 17:08:53 -05:00
Cross-file references reach a module's nets, variables and instances (§64.1, QA task_d8afe80f of §63.1): nav.rs's two index questions (leaves_this_file, indexed_def_in_file, the latter shared with hover's live_symbol) asked WorkspaceIndex::member — the connection surface, ports and parameters — so a declaration only a hierarchical path can name (a bind connection's expression half, a u_x.sig tail) was judged unable to leave its file and references fell to the single-file answer, while a rename already edited both files; from a use that did resolve cross-file, the declaring buffer's own uses could not re-identify themselves. Both now ask member_in(…, Surface::Hierarchical); the connection answer comes first and whole from that read, so every port/parameter/package/class/struct answer is byte-identical (nav harness controls and a 948-declaration opentitan census). A hierarchical-only member has no Local postings by the §49 ruling, so nav::declaring_file_uses parses exactly the closed declaring file once per request (0.4–1.5 ms on state_q into a shut entropy_src_main_sm.sv), hierarchical_only asking the index's own table rather than restating surface_of. Three QA rounds (Sonnet, Sonnet, then Fable per the escalation rule): the closed-file path read a cached FileView and rendered against a fresh text_of (a stale offset on a wrong line) — now one fresh read per closed file threaded to the rendering step; every index-time span about a closed file, and the open-buffer declaration fallback (nav::declaration_site), guarded by hover::spells_exactly (pub(crate), shared not copied): a stale index may omit a location, never mislocate one. Accepted: +25 % on a local-net references in a 40 267-line buffer (1.22 → 1.54 ms), the guard is textual (a different exact token at a deleted declaration's old bytes). opentitan: entropy_masking_req from aes.sv now lists aes_bind.sv; state_q lists entropy_src_core.sv; checkout untouched. Tests 4422 → 4459 (11 dev + 1 hover + 1 e2e wire test; 19 QA attacks incl. escaped identifiers, UTF-8 boundaries, a deleted declaring file, oracle equivalence with vlog_refactor::find_references); fmt, clippy, workspace suite green through tools/guard.sh. Feature README docs/features/references-hierarchical-surface; references-nav, hierarchical-tail and hover-declarations READMEs, record.rs's postings comment and the topo row amended; perf entry in docs/perf/README.md. Release 0.55.0 left to the owner.
2026-09-12 14:50:16 -07:00
2026-08-27 14:35:27 -07:00
Cross-file references reach a module's nets, variables and instances (§64.1, QA task_d8afe80f of §63.1): nav.rs's two index questions (leaves_this_file, indexed_def_in_file, the latter shared with hover's live_symbol) asked WorkspaceIndex::member — the connection surface, ports and parameters — so a declaration only a hierarchical path can name (a bind connection's expression half, a u_x.sig tail) was judged unable to leave its file and references fell to the single-file answer, while a rename already edited both files; from a use that did resolve cross-file, the declaring buffer's own uses could not re-identify themselves. Both now ask member_in(…, Surface::Hierarchical); the connection answer comes first and whole from that read, so every port/parameter/package/class/struct answer is byte-identical (nav harness controls and a 948-declaration opentitan census). A hierarchical-only member has no Local postings by the §49 ruling, so nav::declaring_file_uses parses exactly the closed declaring file once per request (0.4–1.5 ms on state_q into a shut entropy_src_main_sm.sv), hierarchical_only asking the index's own table rather than restating surface_of. Three QA rounds (Sonnet, Sonnet, then Fable per the escalation rule): the closed-file path read a cached FileView and rendered against a fresh text_of (a stale offset on a wrong line) — now one fresh read per closed file threaded to the rendering step; every index-time span about a closed file, and the open-buffer declaration fallback (nav::declaration_site), guarded by hover::spells_exactly (pub(crate), shared not copied): a stale index may omit a location, never mislocate one. Accepted: +25 % on a local-net references in a 40 267-line buffer (1.22 → 1.54 ms), the guard is textual (a different exact token at a deleted declaration's old bytes). opentitan: entropy_masking_req from aes.sv now lists aes_bind.sv; state_q lists entropy_src_core.sv; checkout untouched. Tests 4422 → 4459 (11 dev + 1 hover + 1 e2e wire test; 19 QA attacks incl. escaped identifiers, UTF-8 boundaries, a deleted declaring file, oracle equivalence with vlog_refactor::find_references); fmt, clippy, workspace suite green through tools/guard.sh. Feature README docs/features/references-hierarchical-surface; references-nav, hierarchical-tail and hover-declarations READMEs, record.rs's postings comment and the topo row amended; perf entry in docs/perf/README.md. Release 0.55.0 left to the owner.
2026-09-12 14:50:16 -07:00
2026-08-29 03:39:06 -07:00
2026-09-02 07:34:31 -07:00
2026-08-27 16:33:52 -07:00
2026-08-28 03:16:54 -07:00
2026-09-08 20:48:41 -05:00
2026-09-08 20:48:41 -05:00
2026-09-08 20:48:41 -05:00
2026-08-25 23:36:00 -07:00
2026-09-02 13:15:21 -07:00
2026-08-30 17:15:42 -07:00
2026-08-28 03:16:54 -07:00
2026-09-03 02:27:24 -07:00
2026-09-01 22:53:27 -07:00
2026-09-03 02:28:28 -07:00
2026-08-25 23:36:00 -07:00
2026-08-27 18:58:17 -07:00
2026-09-04 18:15:40 -05:00
2026-09-02 07:34:31 -07:00
2026-08-26 15:59:13 -07:00
2026-09-05 01:45:48 -05:00
2026-08-25 23:36:00 -07:00
2026-09-03 02:41:15 -07:00
2026-09-02 09:06:08 -07:00
2026-09-03 18:01:24 -07:00
2026-09-04 03:36:59 -05:00
2026-09-04 04:55:10 -05:00
2026-08-27 00:13:43 -07:00
2026-08-25 23:36:00 -07:00
2026-09-23 11:41:46 -07:00
2026-08-25 23:36:00 -07:00
2026-09-02 13:15:21 -07:00
2026-09-03 02:41:15 -07:00
2026-09-23 07:24:28 -07:00
2026-09-23 05:46:19 -07:00
2026-09-23 03:58:55 -07:00
2026-09-23 15:34:51 -07:00
2026-09-23 03:58:55 -07:00
2026-09-02 02:05:03 -07:00
2026-08-25 23:36:00 -07:00
2026-08-25 23:36:00 -07:00
2026-09-01 15:01:33 -07:00
2026-08-26 17:54:37 -07:00
2026-08-25 23:36:00 -07:00
2026-09-07 17:35:24 -05:00
2026-09-02 04:18:18 -07:00
2026-09-02 11:32:16 -07:00
2026-09-05 10:41:54 -05:00
2026-08-28 16:26:06 -07:00
2026-09-05 02:43:10 -05:00
2026-09-07 14:35:12 -05:00
2026-09-07 17:35:24 -05:00
2026-09-07 21:53:19 -05:00
2026-09-07 22:48:04 -05:00
2026-09-08 04:36:11 -05:00
2026-09-09 17:39:23 -05:00
2026-09-08 18:26:44 -05:00
2026-09-08 16:48:05 -05:00
2026-09-09 17:39:23 -05:00
2026-09-09 00:41:34 -05:00
2026-09-12 03:11:59 -07:00
2026-09-07 04:01:29 -05:00
2026-08-28 03:16:54 -07:00
2026-08-26 11:49:58 -07:00
2026-08-25 23:36:00 -07:00
2026-08-29 18:46:58 -07:00
2026-08-25 23:36:00 -07:00
2026-08-30 17:15:42 -07:00
2026-08-28 22:35:00 -07:00
2026-09-23 11:41:46 -07:00
Cross-file references reach a module's nets, variables and instances (§64.1, QA task_d8afe80f of §63.1): nav.rs's two index questions (leaves_this_file, indexed_def_in_file, the latter shared with hover's live_symbol) asked WorkspaceIndex::member — the connection surface, ports and parameters — so a declaration only a hierarchical path can name (a bind connection's expression half, a u_x.sig tail) was judged unable to leave its file and references fell to the single-file answer, while a rename already edited both files; from a use that did resolve cross-file, the declaring buffer's own uses could not re-identify themselves. Both now ask member_in(…, Surface::Hierarchical); the connection answer comes first and whole from that read, so every port/parameter/package/class/struct answer is byte-identical (nav harness controls and a 948-declaration opentitan census). A hierarchical-only member has no Local postings by the §49 ruling, so nav::declaring_file_uses parses exactly the closed declaring file once per request (0.4–1.5 ms on state_q into a shut entropy_src_main_sm.sv), hierarchical_only asking the index's own table rather than restating surface_of. Three QA rounds (Sonnet, Sonnet, then Fable per the escalation rule): the closed-file path read a cached FileView and rendered against a fresh text_of (a stale offset on a wrong line) — now one fresh read per closed file threaded to the rendering step; every index-time span about a closed file, and the open-buffer declaration fallback (nav::declaration_site), guarded by hover::spells_exactly (pub(crate), shared not copied): a stale index may omit a location, never mislocate one. Accepted: +25 % on a local-net references in a 40 267-line buffer (1.22 → 1.54 ms), the guard is textual (a different exact token at a deleted declaration's old bytes). opentitan: entropy_masking_req from aes.sv now lists aes_bind.sv; state_q lists entropy_src_core.sv; checkout untouched. Tests 4422 → 4459 (11 dev + 1 hover + 1 e2e wire test; 19 QA attacks incl. escaped identifiers, UTF-8 boundaries, a deleted declaring file, oracle equivalence with vlog_refactor::find_references); fmt, clippy, workspace suite green through tools/guard.sh. Feature README docs/features/references-hierarchical-surface; references-nav, hierarchical-tail and hover-declarations READMEs, record.rs's postings comment and the topo row amended; perf entry in docs/perf/README.md. Release 0.55.0 left to the owner.
2026-09-12 14:50:16 -07:00
Cross-file references reach a module's nets, variables and instances (§64.1, QA task_d8afe80f of §63.1): nav.rs's two index questions (leaves_this_file, indexed_def_in_file, the latter shared with hover's live_symbol) asked WorkspaceIndex::member — the connection surface, ports and parameters — so a declaration only a hierarchical path can name (a bind connection's expression half, a u_x.sig tail) was judged unable to leave its file and references fell to the single-file answer, while a rename already edited both files; from a use that did resolve cross-file, the declaring buffer's own uses could not re-identify themselves. Both now ask member_in(…, Surface::Hierarchical); the connection answer comes first and whole from that read, so every port/parameter/package/class/struct answer is byte-identical (nav harness controls and a 948-declaration opentitan census). A hierarchical-only member has no Local postings by the §49 ruling, so nav::declaring_file_uses parses exactly the closed declaring file once per request (0.4–1.5 ms on state_q into a shut entropy_src_main_sm.sv), hierarchical_only asking the index's own table rather than restating surface_of. Three QA rounds (Sonnet, Sonnet, then Fable per the escalation rule): the closed-file path read a cached FileView and rendered against a fresh text_of (a stale offset on a wrong line) — now one fresh read per closed file threaded to the rendering step; every index-time span about a closed file, and the open-buffer declaration fallback (nav::declaration_site), guarded by hover::spells_exactly (pub(crate), shared not copied): a stale index may omit a location, never mislocate one. Accepted: +25 % on a local-net references in a 40 267-line buffer (1.22 → 1.54 ms), the guard is textual (a different exact token at a deleted declaration's old bytes). opentitan: entropy_masking_req from aes.sv now lists aes_bind.sv; state_q lists entropy_src_core.sv; checkout untouched. Tests 4422 → 4459 (11 dev + 1 hover + 1 e2e wire test; 19 QA attacks incl. escaped identifiers, UTF-8 boundaries, a deleted declaring file, oracle equivalence with vlog_refactor::find_references); fmt, clippy, workspace suite green through tools/guard.sh. Feature README docs/features/references-hierarchical-surface; references-nav, hierarchical-tail and hover-declarations READMEs, record.rs's postings comment and the topo row amended; perf entry in docs/perf/README.md. Release 0.55.0 left to the owner.
2026-09-12 14:50:16 -07:00
2026-08-25 23:36:00 -07:00
2026-09-12 01:05:14 -07:00
2026-08-25 23:36:00 -07:00
2026-09-08 22:38:56 -05:00
2026-08-26 11:06:51 -07:00
2026-09-02 09:06:08 -07:00
2026-09-03 02:41:15 -07:00
2026-08-26 13:03:56 -07:00
2026-09-05 01:45:48 -05:00
2026-09-03 03:40:12 -07:00
2026-09-04 17:08:53 -05:00
2026-09-05 07:12:54 -05:00
2026-08-25 23:36:00 -07:00
2026-09-03 03:40:12 -07:00
2026-09-01 23:53:45 -07:00
2026-09-04 17:08:53 -05:00
2026-08-29 16:08:51 -07:00
2026-09-02 11:32:16 -07:00
2026-09-02 08:33:30 -07:00
2026-09-05 09:24:19 -05:00
2026-09-01 23:53:45 -07:00
2026-09-02 08:33:30 -07:00
2026-08-29 01:44:56 -07:00
2026-09-05 09:24:19 -05:00
2026-08-29 03:39:06 -07:00
2026-09-05 00:03:07 -05:00
2026-09-09 17:39:23 -05:00
2026-08-26 12:21:00 -07:00
2026-08-27 14:35:27 -07:00
2026-08-29 03:39:06 -07:00