QA round 1: adversarial review logs and a with-block attack test

No blocking findings over the 8 round-1 clusters: whole-corpus idempotency
and comment-preservation sweep clean (796/820), 476-run mutation fuzz clean,
no swallowed errors in the diff. Adds
reindented_string_inside_a_with_block_is_rejected. Findings (non-blocking)
are in each feature README's QA log; the printer fits() / Doc::Inline gap
is fixed separately.

Co-Authored-By: Claude Fable 5 <[email protected]>
This commit is contained in:
lucioandClaude Fable 5 committed 2026-08-21 01:37:33 -07:00
1 parent f1db1e5746
commit 0557933994
9 files changed
+400 -8

No files matched your search

+33 -1
View File
@@ -180,4 +180,36 @@ both the before and after TSVs, so it was never in this bucket's count.
## QA log
## Review
### 2026-08-21 — round-1 adversarial QA
Verified: `cargo test --workspace`/clippy/fmt clean; corpus score 796/820;
whole-corpus idempotency + comment-preservation sweep clean; 476-case mutation
fuzz clean.
Targeted attacks: fed the statement-position `ident [..] ... ident` lookahead
every shape from the hit-list plus variants — `x[i] y;`, `a [b] = c;`,
`foo [1] ;`, `x [i] = y;`, `arr[3] = val;`, `x[i][j] y;`, `x [7:0] y, z;`,
`x[7:0] y = 1;`, `x[a+b] y;`, `x [1] y [2];`. Findings:
- `a [b] = c;`, `foo [1] ;`, `arr[3] = val;` correctly stay ordinary
statements (array-index assignment / index expression) — not reinterpreted
as declarations.
- `x[i] y;` and friends (a trailing bare identifier before `;` with no
assignment) *are* reinterpreted as declarations (space normalized to
`x [i] y;`). This is not a corruption risk: under real SV grammar, `ident
[expr] ident;` with no operator between the two identifiers has **no**
valid non-declaration reading (bare juxtaposition isn't a legal
expression/statement), so there is nothing else this string could have
meant — the old behavior was simply "reject it," the new behavior is
"accept the only grammatical reading." Confirmed idempotent
(`x[i] y;` case, `cmp` clean across two passes).
- No case found where the lookahead grabs something that was a genuinely
valid *other* statement before this change.
Also exercised `parse_opt_data_type`'s inline-aggregate acceptance with
`DataType::extra` via the corpus sweep and mutation fuzz (delete `;`/paren,
comment-in-every-gap, fenced) over 3 samples from `types_decls.cases` — no
panics, no idempotency breaks.
No BLOCKING findings for this cluster.