diff --git a/.claude/audits/2026-10-23-rust-r5-review-verify.md b/.claude/audits/2026-10-23-rust-r5-review-verify.md index 199dde3d..b85ccf80 100644 --- a/.claude/audits/2026-10-23-rust-r5-review-verify.md +++ b/.claude/audits/2026-10-23-rust-r5-review-verify.md @@ -89,7 +89,8 @@ Fresh verifier and security on the fixed commit: below. - Security (`.claude/audits/2026-10-23-rust-r5-review-security-12.md`): PASS. 7,200 random changesets through both real pipelines (898 admitted, 0 raw and 0 formatted differences), 73,000 template cases (38,378 admitted, 0 differ), display width on every code point U+0020 to U+10FFFF, guard linear on stress lines. LOW `underscore_pairs_later` quadratic, unreachable (≤2 authored plain parts per line); LOW `review_drawings_bytes` views × annotations (≈2 s at the value bound); LOW test allows (convention); LOW §11.15 parse residual names `changes.json` only (`references.json` same parser). - Declared: the four LOWs in §11.15 (no code change: a fix would restart the gates; owner decision). -## Round 13 +## Round 13 on 88e4274: verifier C1 to C8 MET, C9 NOT-MET (doc wording) + 13 FLOOR (audit prose, product paths clean) -Fresh verifier on the documentation commit: below. +- Verifier: 2,290 new probes TS + Prettier vs Rust, 0 silent; widths of 149,106 alphanumeric code points equal Prettier's (123 refused); drawings bound held on escape probes; every figure exact. C9: §11.14 says the synthetic oracle covers "references with URL and DOI" and "a level C question per priority" (no URL, no medium priority there; both covered by the equine report); `&name=` admitted only when the name starts with an ASCII lowercase letter. Notes: `markdown.rs` comment "the one glyph wider than its bytes" inaccurate; `scripts/import-equine.sh` header "(R5.2, R5.3)". +- Fixed: the three wordings, the comment, the script header. diff --git a/crates/core/src/curation/markdown.rs b/crates/core/src/curation/markdown.rs index 582ee902..3a436a1a 100644 --- a/crates/core/src/curation/markdown.rs +++ b/crates/core/src/curation/markdown.rs @@ -50,8 +50,8 @@ pub fn cell(value: &Cell) -> String { /// Refuses tables whose alignment would pass `MAX_TABLE_COLUMNS_TOTAL` together (`spent` carries /// the projections of the report's earlier tables), from their cells, before the raw table is -/// joined: a cell's bytes bound its display width (an emoji, the one glyph wider than its bytes, -/// is refused by the width table), so the projection never under-counts. +/// joined: a cell's UTF-8 bytes bound its display width (a wide glyph takes three or four bytes +/// for two columns), so the projection never under-counts. pub fn assert_table_bound( head: &[&str], rows: &[Vec], diff --git a/docs/development/RUST.md b/docs/development/RUST.md index 7a05135a..5dc8d5ef 100644 --- a/docs/development/RUST.md +++ b/docs/development/RUST.md @@ -3132,7 +3132,9 @@ Parity, every expectation written by the TypeScript (`tests/curation_review.rs`, (`oracles/r5/review-synthetic.json`, generator `packages/anatomy/tests/r5.review-synthetic-oracles.test.ts`): pipes and line breaks in cells, a value over 120 units, accents and guillemets, a vet flag change, a translation, a - level C question per priority, a restructure, a removal, references with URL and DOI, a + level C question at priority high and at low, a restructure, a removal, cited references + (their URLs null; the URL and the medium priority are covered by the equine report: 35 URL + lines, 5 medium-priority questions), a moved, an added and a polygon marker, a path marker on a detail view framed by its view box, a sheet with nothing but a level A change: raw and aligned Markdown byte for byte, the overlays byte for byte, the application's drawings byte for byte or under the declared rule; @@ -3161,8 +3163,8 @@ the draft's two reports (`curation/report_guard.rs`, `format_report`; the R5.2 i `format_markdown`, verified at R5.2, which gained at R5.4 the cell-count refusal and the table bound below, both shared with the import report) is an allowlist: outside code spans, letters and digits, single spaces (none at a line end), the punctuation `.,;:!?'"«»()[]{}/-–—…%°≠=+#<>’‘“”±→×≤≥|`, an -`&` before a space or as a URL's query separator (`&name=` in a bare URL, the name not starting -with one of HTML's 106 legacy references, which Prettier decodes without a `;`), an underscore +`&` before a space or as a URL's query separator (`&name=` in a bare URL, the name starting with +an ASCII lowercase letter and not with one of HTML's 106 legacy references, which Prettier decodes without a `;`), an underscore between two ASCII letters or digits and not glued to a URL (`http://`, `https://`, `www.`), a backslash before `"` or `|` (a JSON quote, the cell escape), `**word**` with one run of letters between spaces or line edges (the import report's form), and no inline construct (an inline link, diff --git a/scripts/import-equine.sh b/scripts/import-equine.sh index ab767ac8..011f78d9 100755 --- a/scripts/import-equine.sh +++ b/scripts/import-equine.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -# `pnpm r5:import-equine --check | --out `: the anatomical pipeline on the core (R5.2, -# R5.3), the `import-equine` binary of crates/core behind its `curation` feature, on the native +# `pnpm r5:import-equine --check | --out `: the anatomical pipeline on the core (R5.2 to +# R5.4), the `import-equine` binary of crates/core behind its `curation` feature, on the native # toolchain of the development machine (scripts/rust-env.sh). The first run compiles it # (release profile); the next ones start at once. `--check` compares the produced folders with # the committed seed and writes nothing; `--out ` writes `/legacy-import` and