docs(docs): V1-2.2 reserved ids in RUST.md 12.9, contract, Illustrator steps

This commit is contained in:
bchanot committed 2026-10-30 17:31:00 +01:00
1 parent 08efd9a792
commit 6ed4d21eb3
4 files changed
+87 -16

No files matched your search

+10 -3
View File
@@ -1322,7 +1322,7 @@ The page reads the file with the core SVG reader before anything is stored.
| Reader outcome | Treatment |
|---|---|
| Hard rejection (`too_large`, `doctype`, `malformed`, `not_svg`, `too_many_elements`, `too_deep`, `too_many_uses`, `too_complex`, `reference_cycle`, `dangling_reference`) | refused, with the reason in FR or EN; no cleaning offered |
| Hard rejection (`too_large`, `doctype`, `malformed`, `not_svg`, `too_many_elements`, `too_deep`, `too_many_uses`, `too_complex`, `reference_cycle`, `dangling_reference`, `reserved_id`) | refused, with the reason in FR or EN; no cleaning offered |
| Any removal of active or external content: `script`, `foreignObject`, event-handler attributes, `image`, animation elements, a reference that does not point inside the document (`href` or `url(…)` not starting with `#`), `@import` or `javascript:` values | refused (`svg_active_content`): such a file is hostile or incompatible; no cleaning offered |
| Any other removal (editor metadata and namespaces, `data-*` attributes, `<style>` elements, `class` or `style` on the root, ids outside the grammar, unsupported elements such as `symbol`, oversized `title` or `desc`) | cleaning offered: « Nettoyer et utiliser cette version », after the composed preview of the cleaned drawing and one confirmation; a removed `<style>` element is named, since the `class` attributes it styled then render unstyled |
| No removal | used, in the stored form (below) |
@@ -1375,6 +1375,12 @@ The page reads the file with the core SVG reader before anything is stored.
(`dangling_reference`) for the reader of stored drawings, the cleaning
(after active content is classified, so a hostile file is still named as
such), the verdict and the preview. Valid internal references keep working.
- Reserved ids (owner brief 2026-10-30): the PDF view keeps the drawing's ids
and the engine writes its halo filter `osteo-halo` next to them, so a drawing
holding that id, on any element and in any letter case, is a hard rejection
(`reserved_id`) for the same readers and for the PDF snapshot gate; both
composers refuse such a tree. Exact names only: the historical drawings keep
`osteo-overlays` (RUST.md §12.9).
- Colours (owner decision 2026-10-29): presentation attributes and `style`
keep the strict colour functions cairo writes, lowercase `rgb(` with three
and `rgba(` with four components, all bare numbers up to 255 or all
@@ -1413,7 +1419,8 @@ The page reads the file with the core SVG reader before anything is stored.
bytes do not hash to its key, writes an audit row, and lets the editor
upload again. It is the one Storage deletion of V1-2.
6. Closed codes shown to the editor: `size_mismatch`, `hash_mismatch`,
`svg_rejected` (with the reader's reason, `dangling_reference` included),
`svg_rejected` (with the reader's reason, `dangling_reference` and
`reserved_id` included),
`svg_active_content`, `svg_not_canonical`, `too_large`, `upload_missing`,
`object_conflict`.
@@ -2378,7 +2385,7 @@ Asked before the code of V1-2.2, on the brief « Autorisation de démarrer V1-2.
| Vector-tool exports | The owner supplies the editors' exports (Inkscape, Illustrator, Figma, Affinity) under `crates/core/tests/fixtures/svg/exports/owner/`; the cairo and ImageMagick exports of the development machine are committed meanwhile, tool and version in the file name | §9.2, §15 |
| Strict-parse code | `verification.integrity.document` (and `.base` for the base), as §6.5 files it; the 19 rule errors are `verification.validation.rules` | §6.5, §6.7 |
| Draft load | caps excess and missing drawings reported for a draft, refused for a published or deprecated version | §10 |
| SVG references | a local reference to an id the drawing does not define is refused (`dangling_reference`); the composed canvas scopes every id and reference to its view (`fv.<view>.`), at composition only, stored bytes and fingerprints untouched; implemented in V1-2.2, not deferred to V1-2.6 | §9.2, §10 |
| SVG references | a local reference to an id the drawing does not define is refused (`dangling_reference`); the composed canvas scopes every id and reference to its view (`fv.<view>.`), at composition only, stored bytes and fingerprints untouched; implemented in V1-2.2, not deferred to V1-2.6; the PDF halo's id `osteo-halo` is reserved (`reserved_id`, owner brief 2026-10-30) | §9.2, §10 |
| SVG serialisation | one stored form for every uploaded drawing (declaration + core serialisation), « clean = original bytes » withdrawn; verdict and preview refuse another form (`verification.integrity.svg_not_canonical`); no stored object rewritten, the equine object already in that form | §6.5, §6.7, §9.2, §9.3 |
| cairo colours | strict numeric `rgb()` / `rgba()` kept in presentation attributes and `style`; every other function, external `url(`, `expression(`, scripts and active CSS still removed or refused | §9.2 |
| Edit commands | strict command validation confirmed; `remove` refused atomically (`has_dependents`) while another element names the element; descendants of a finding go with it; no cascade in level 1 | §8.1 |