fix(anatomy): V1-2.2 review LOWs, owner export procedure, evidence

Composer check counts url( openings apart from the reader; tab and
newline character references tested; RUST.md sizes and counts of the
final build; owner procedure for Illustrator, Figma and Affinity.
This commit is contained in:
bchanot committed 2026-10-29 17:15:02 +01:00
1 parent a678faaa23
commit f1ef6a466f
9 files changed
+300 -55

No files matched your search

+9 -8
View File
@@ -3885,7 +3885,7 @@ trapping test stub (`apps/app/tests/helpers/core.ts`) lists the two new glue mem
### 12.3 Behaviour (declared)
1. The sanitiser keeps, removes and refuses exactly as before (R3 oracles O4/O5 green); its walk also lists, in
1. The sanitiser keeps, removes and refuses exactly as before (R3 oracles O4/O5 green; the declared changes of §12.7 apart); its walk also lists, in
`active`, each removal that carried a script, an embedded document or image (`image`, `feImage`, `foreignObject`,
`iframe`, `object`, `embed`, media, and the HTML fetchers `img`, `input`, `source`, `frame`, `form`, `meta`, `link`,
`base`…), any element of the XHTML namespace, animation, a link (`a`), an event handler (`on*`), a fetching attribute
@@ -3950,7 +3950,7 @@ trapping test stub (`apps/app/tests/helpers/core.ts`) lists the two new glue mem
| Measure | Value |
|---|---|
| shipped module | 1 511 410 B raw, 558 651 B gzip -9 (script), 568 416 B by Node's gzip in `size.test.ts` (final, after §12.7: the debug `name` section dropped); budget 600 000 (D-R13); 596 671 B at ca31b78, 531 715 B before V1-2.2 (RUST.md §11.22) |
| shipped module | 1 512 071 B raw, 558 793 B gzip -9 (script), 568 625 B by Node's gzip in `size.test.ts` (final, a678faa and after: the debug `name` section dropped, §12.7); budget 600 000 (D-R13); 596 671 B at ca31b78, 531 715 B before V1-2.2 (RUST.md §11.22) |
| verdict at every cap, native | 107 ms release, 493 ms debug (document 1 165 850 bytes) |
| `clean_svg`, shipped module | 45 hostile inputs and floods, slowest 0.4 ms |
@@ -3969,7 +3969,7 @@ with a PI shown `rejected` by the preview as the verdict refuses it.
### 12.6 Residual risks and points for V1-2.3
- The module's margin under its budget is about 31.6 KB by the test's measure since §12.7 (3.3 KB before): the V1-2.5 and V1-2.6 pages must not grow the
- The module's margin under its budget is about 31.4 KB by the test's measure since §12.7 (3.3 KB before): the V1-2.5 and V1-2.6 pages must not grow the
core's browser surface without measuring.
- cairo colours: closed at the checkpoint (§12.7), strict numeric `rgb()` / `rgba()` kept.
- Editor exports: Inkscape 1.4.3 covered at the checkpoint (§12.7); Illustrator, Figma and Affinity pending from the
@@ -4004,9 +4004,9 @@ canvas goldens (`canvas.{main,head}.json`) get their ids scoped (`with_ids_scope
`withIdsScopedPerView` in the app's `canvas.trees.test.tsx`). The equine drawing is already in the stored form: its
sha256 `0ea5202f…`, the fingerprint and every R4 digest are unchanged.
Tests: `svg_scope` (6: valid reference, absent reference refused by reader, cleaning, preview and verdict, two views with
Tests: `svg_scope` (7: valid reference, absent reference refused by reader, cleaning, preview and verdict, two views with
the same ids resolving each in its own view when both canvases are inlined, a cross-view attempt, three references to
one id, deterministic and repeated composition); `svg_clean` (13: cairo export clean with its five colours, shapes and
one id, deterministic and repeated composition, a browser model over composed canvases); `svg_clean` (14: cairo export clean with its five colours, shapes and
references; seven dangerous constructs next to a colour refused as active, five other functions removed; the three
Inkscape exports; clean files uploaded in the stored form; generated drawings now also refused for dangling references);
`sheet_verdict` and `sheet_preview` (a drawing outside the stored form fails / shows rejected); `sheet_edit` (removal
@@ -4026,15 +4026,16 @@ the expansion budget was walked around the same way (pre-existing since R3). Now
reading of a `url(`: CSS whitespace, an optional quote, `#`, an id in the reference grammar, the same quote, CSS
whitespace, `)`; any other spelling is active content and refuses the file. A `url(` or `rgb(` glued to a longer name
(`xurl(`, `érgb(`, a non-ASCII letter included) is another function; a colour must end its value or list item. The
composer checks, fail-closed, that every reference of a canvas carries its view's scope (`unscoped_reference`). Tests
composer checks, fail-closed, that every reference of a canvas carries its view's scope and that each value holds
no more `url(` than local references (`unscoped_reference`), a coarse count that shares no parser with the reader. Tests
written apart from the reader: 14 refused spellings, 5 removed glued names, a 25 000-reference flood in `%61`, and a
browser model (percent-decoding, tab and newline stripping) over composed canvases (`svg_scope`). The R3 sanitiser
oracles needed no new declared change.
Residual (MEDIUM, security review): the scope is the view id, unique in one document only. A page that inlines canvases
of two documents at once (two versions side by side, two sheets) would share `fv.main.` and resolve in the first one in
tree order; such a page (V1-2.7 or later; the side-by-side diff is level 2, contract §8.3) must add a per-document
prefix before it ships. The detail modal of the report editor draws another view of the same document, so its scope
tree order; any such page (a V1-2.5 catalogue grid, a V1-2.6 preview beside the editor, a V1-2.7 comparison; the
side-by-side diff itself is level 2, contract §8.3) must add a per-document prefix before it ships. The detail modal of the report editor draws another view of the same document, so its scope
differs.
Size (V1-2.2 final, by Node's gzip in `size.test.ts`): see §12.5. Contributors measured on a build keeping the name