chore(memory): V1-2.2 finalisation, A6 scope, BDR-088, LRN-101, floor wording
This commit is contained in:
1 parent
7d9ab8cf2f
commit
f976f33307
5 files changed
+47
-1
No files matched your search
@@ -651,3 +651,11 @@ Also kept by owner: per-document-instance prefix required on top of per-view pre
|
||||
**Rationale**: validated bytes = stored bytes = rendered bytes; no gap between what check saw and what browser reads.
|
||||
|
||||
**Alternatives**: store original bytes after validation (rejected: validation and storage could diverge); re-serialise historical drawings (rejected: breaks approved fingerprints, archive reproduction).
|
||||
|
||||
## BDR-088 — V1-2.2 A6 scope (Figma + real Illustrator, Affinity optional) and mask/clip units allowed (2026-10-30)
|
||||
- **Status**: accepted
|
||||
**Decision** (owner, 2026-10-30, contract §17.5): A6 = Inkscape (met) + Figma (required; owner's two raw exports `owner/figma-web-20261030-{default,ids}.svg`, permanent fixtures) + real Adobe Illustrator (required; VectorCraft not equivalent). Affinity optional. V1-2.2 not VERIFIED until Illustrator exports committed and pass. Allowlist gains `maskUnits`, `maskContentUnits`, `clipPathUnits`, values `userSpaceOnUse`/`objectBoundingBox` only, else removed.
|
||||
|
||||
**Rationale**: Figma writes `<mask maskUnits="userSpaceOnUse">` for frame clipping. Removal re-reads mask x/y/width/height in bounding-box units: Chromium 156 cut half stroke at (10,100), 208 px diff at ×8; mask off origin could hide content (deduced, untested). With keywords allowed: stored forms pixel-identical to raw files. Enumerated keywords carry no function, no reference.
|
||||
|
||||
**Alternatives**: keep removal, document 1 px loss (rejected: silent fidelity loss, worse off-origin); allow `maskUnits` only (rejected: same risk class for the two siblings); allow any value (rejected: free text where keyword suffices).
|
||||
@@ -691,3 +691,14 @@ Also: the tree drops processing instructions and comments, so "read with no remo
|
||||
|
||||
**Future application**: new SVG/CSS consumer reuses grammar. Hostile tests written apart from reader, asserting browser behaviour; every fail-closed branch gets a test reaching it.
|
||||
Supersedes [[LRN-099]].
|
||||
- **Status (2026-10-30)**: superseded by LRN-101
|
||||
|
||||
## LRN-101 — SVG local references: one strict grammar, reader and composer agree by construction (2026-10-30)
|
||||
**Context**: V1-2.2 security round 17d9199: `url(#%61)`, Chromium `url('#<TAB>a')` passed dangling check, per-view scoping, expansion budget; browsers resolved them. Fixed a678faa (`sanitize::local_url_target`), f1ef6a4 (entity spellings, composer coarse `url(` count). Final review 2026-10-30: composer count also saw glued `xurl(#a)` reader kept in `class`/`result`/`values` → verdict passed, canvas refused `unscoped_reference`, PDF drew. Fixed by `sanitize::urls_unglued` (reader removes any attribute holding a `url(` `url_openings` does not read). Supersedes LRN-100.
|
||||
|
||||
**Pattern**: one strict grammar for local references (`href`, `xlink:href`, `url(#id)`), same reading in cleaning, validation (reader, verdict, preview, PDF snapshot gate), composition, browsers. Non-strict `url(` (`%XX`, entity, tab/space/unbalanced quote inside, empty or non-ASCII id, backslash) = active content, file refused. `url(` glued to longer name = attribute removed, any attribute. Reader keeps only values whose every `url(` is a strict reference → composer check true by construction.
|
||||
|
||||
**Trap**: independent defence-in-depth check must agree with reader on what reader keeps; else fail-closed check becomes availability bug. Every fail-closed branch needs a test reaching it (tree built outside reader).
|
||||
|
||||
**Future application**: new SVG/CSS consumer reuses `url_openings`/`local_url_target`, never own parser. Hostile tests written apart from reader, assert browser behaviour.
|
||||
Supersedes [[LRN-100]].
|
||||
Reference in new issue
Block a user