docs(docs): R3 in RUST.md §9, CLAUDE.md, CHANGELOG, PDF import gate note, packages README

This commit is contained in:
bchanot committed 2026-10-15 00:07:20 +02:00
1 parent 967c71c31e
commit d6b5edb626
5 files changed
+177 -12

No files matched your search

+7
View File
@@ -6,6 +6,13 @@ Versions follow [Semantic Versioning](https://semver.org/).
## [Unreleased]
### Changed (Rust R3, anatomy core, 2026-10-15)
- **The editor canvas draws what the Rust core composes** (`crates/core/src/anatomy`): one SVG reader for every drawing the product shows (bounds checked by a markup scanner before any XML parser, the engine's allowlist matched the same way, a reference graph refusing cycles and expansions over 50,000 elements, a serialiser that re-reads to the same tree), the annotation layer and the view composition, reached through the new `view.canvas` operation and memoised per view. The canvas keeps its in-place selection styling, click and tooltip delegation. The browser-side denylist and the app's dependency on the TypeScript renderer are gone; the PDF engine and the curation pipeline keep the TypeScript renderer until R4 and R5.
- **No visible change**, proven first with the TypeScript: canvas trees of both views and 28 selection states, layer trees with attribute order, 36 PDF highlight compositions, 36 hostile SVGs and 10 generated floods, the 4 product SVGs untouched; in Chromium 156 the live canvas trees equal the frozen ones and 30 screenshots (desktop and phone) are pixel-identical before and after. The Step 6 goldens are untouched.
- Declared differences, none on a product drawing: elements outside the SVG namespace removed, comments dropped, no `class`/`style` on the inline root, stricter ids, text only in `title`/`desc` (4 KiB each), floods and reference cycles refused, a product drawing the allowlist would alter refused at load instead of silently cut, a canvas that cannot be composed shows the existing degraded notice with a retry (`docs/development/RUST.md` §9.4).
- `docs/ANNOTATION-RENDERING.md` rewritten to describe the code exactly (no rendering change). Module 396 KB gzip (+56 KB, budget 600 KB).
### Security (maintenance after R2, 2026-10-14)
- **Worker TLS: rustls 0.23.45 → 0.23.46** (`Cargo.lock` only, through `ureq` 3.4.2): RUSTSEC-2026-0346 (session values' `Debug` printed TLS secrets), 0347 (ECH rejection), 0348 (Brotli certificate decompression), 0349 (unauthenticated ServerHello pinning the next key exchange group). None reached the worker as configured (ring provider without ML-KEM groups, no ECH, no `brotli` feature, sessions never printed); the bump removes them anyway. No API or feature change; the patch also fixes `StreamOwned` flushing and surfaces a connection's fatal error on the next write. `cargo deny check advisories` clean.