docs(docs): R5.4 synthetic coverage and URL query rule stated exactly

This commit is contained in:
bchanot committed 2026-10-23 17:39:33 +02:00
1 parent 88e42749ec
commit eb667ada57
4 files changed
+12 -9

No files matched your search

@@ -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). - 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). - 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.
+2 -2
View File
@@ -50,8 +50,8 @@ pub fn cell(value: &Cell) -> String {
/// Refuses tables whose alignment would pass `MAX_TABLE_COLUMNS_TOTAL` together (`spent` carries /// 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 /// 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, /// joined: a cell's UTF-8 bytes bound its display width (a wide glyph takes three or four bytes
/// is refused by the width table), so the projection never under-counts. /// for two columns), so the projection never under-counts.
pub fn assert_table_bound( pub fn assert_table_bound(
head: &[&str], head: &[&str],
rows: &[Vec<Cell>], rows: &[Vec<Cell>],
+5 -3
View File
@@ -3132,7 +3132,9 @@ Parity, every expectation written by the TypeScript (`tests/curation_review.rs`,
(`oracles/r5/review-synthetic.json`, generator (`oracles/r5/review-synthetic.json`, generator
`packages/anatomy/tests/r5.review-synthetic-oracles.test.ts`): pipes and line breaks in `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 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, 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 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; 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 `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, 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 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 `&` before a space or as a URL's query separator (`&name=` in a bare URL, the name starting with
with one of HTML's 106 legacy references, which Prettier decodes without a `;`), an underscore 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 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 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, between spaces or line edges (the import report's form), and no inline construct (an inline link,
+2 -2
View File
@@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# `pnpm r5:import-equine --check | --out <dir>`: the anatomical pipeline on the core (R5.2, # `pnpm r5:import-equine --check | --out <dir>`: the anatomical pipeline on the core (R5.2 to
# R5.3), the `import-equine` binary of crates/core behind its `curation` feature, on the native # 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 # 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 # (release profile); the next ones start at once. `--check` compares the produced folders with
# the committed seed and writes nothing; `--out <dir>` writes `<dir>/legacy-import` and # the committed seed and writes nothing; `--out <dir>` writes `<dir>/legacy-import` and