5.0 KiB
ROADMAP — autonomous coverage loop
Running log of the coverage-improvement loop (started 2026-08-20). The metric
is scripts/score.sh: share of corpus .v/.sv files that the formatter
accepts (parse + runtime safety net) and the linter runs over without error.
Baseline (commit ae8a44c): 636/820 = 77.6%.
How the loop runs
- Each round: one dev agent per cluster (Opus 5), run one at a time (the
concurrency cap is 1 dev + 1 QA), each restricted to its cluster; then one
adversarial QA agent (Sonnet 5) over the round's whole diff, with a standing
mandate to attack macro re-indentation vs. multi-line string literals and to
hunt for swallowed errors in
verify.rs/ the safety net. Blocking QA findings → the cluster is re-dispatched with the findings attached. Thenscore.sh, fullcargo test, one commit per round with the delta. - Stop when
pctimproves ≤ 1% over two consecutive rounds, or on an architectural decision that is not mine to make.
Deviation from the brief, stated up front: "clusters with no overlapping
file ownership" cannot be honored at the Rust-file level — the parser is one
4.6k-line parser.rs and the formatter one 2.7k-line format.rs, and every
parser feature touches both. Ownership is therefore enforced on (a) the
cluster's corpus files, (b) its feature README under docs/features/, (c) its
.cases test file; shared sources are edited only in the region for the
cluster's construct, and because dev agents run sequentially there are no
concurrent edits to reconcile. Splitting parser.rs into modules first would
be the clean fix; I did not do it unasked (see Open questions).
Clusters (round 1 plan)
| # | cluster | score.sh categories | files blocked | construct |
|---|---|---|---|---|
| 1 | item-misc | macro-items, elab-tasks | 27 | `MACRO (args) with a space before (; bare `MACRO on its own line followed by a declaration (misparsed as a macro-typed declaration); `error "..." directive; $error/$fatal/$warning/$info(...) as module/generate items |
| 2 | dpi-export | dpi-export | 11 | import "DPI-C" [context] function/task ...;, export "DPI-C" function name;, export pkg::*; / export pkg::item, ...; |
| 3 | bind | bind | 28 | bind <target> <module> [#(...)] <inst> (...); incl. multi-line and .* |
| 4 | assertions | assertions | 13 | concurrent assertions assert/assume/cover/restrict property (...) [else ...];, [label:] prefix, sequence ... endsequence, property ... endproperty — verbatim pass-through like constraint |
| 5 | interface | interface | 31 | interface ... endinterface (params, ports, import pkg::*; before ports), modport, clocking ... endclocking, default clocking, virtual <iface>[#(...)] as a type |
| 6 | types-decls | types-decls | 11 | enum ... {..} a, b; without typedef; struct packed {...} as a parameter type default; user_t [N:0] x; typedef'd type with packed dims before the name; typedef enum user_t {...}; nested anonymous struct; localparam type; for (int i = 0, T t = ...; ...) |
| 7 | expressions | expressions | 18 | casts with parenthesized / keyword base (W)'(x), unsigned'(x); streaming {<<8{v}}; -> implication; assign (weak0, pull1) drive strengths; (* attr *) on a named connection; '{N{0}} replication in assignment patterns; x inside MACRO` |
| 8 | dv-statements | dv-statements | 24 | randomize() with {..}, .sum() with (..), .sort(x) with (..); foreach (pkg::arr[i]), foreach (a[i].b[j]); randcase; wait fork;; import pkg::x; inside function/generate bodies; let; empty call argument f(a, , b); labeled immediate assertion lbl: assert (...); endtask: name; |
Blocked / not attempted (23 files): directive-split (14: an `ifdef
whose arms each hold half a declaration — `ifdef DSIM T x[] = { `else const T x[] = { `endif; needs a preprocessing model, architectural), lex-macro-number (2: 32'hBOOT_ADDR), invalid-or-fragment(3: yosysmodule $DLATCH_P, an include fragment, a file missing begin), not-verilog(1:.tpl.svMako template),other` (1: trailing comma in a connection list — invalid Verilog).
Theoretical ceiling with every cluster done: ~797/820 (97.2%).
Done
- Round 0:
scripts/score.sh(ae8a44c), baseline 77.6%.
Blocked
(see the list above)
Open questions for you
- Should
parser.rs/format.rsbe split into per-construct modules so clusters can genuinely own files? Mechanical, test-verified, but a big diff you did not ask for — I left it alone. directive-split(14 files, 1.7%): supporting it means a preprocessor model (or Verible-style "balance the arms" token hackery). I will not start that without a decision from you.- Concurrent assertions / sequences / properties are being taken as
verbatim pass-through (the
constraint/covergroupprecedent). If you would rather have structural formatting for them, say so before cluster 4 lands.
Round log
(appended per round: score before → after, clusters landed, QA verdicts, what was rejected/re-dispatched)