chore(memory): V1-2.2 checkpoint, evidence, BDR-086, LRN-097/098, TODO

This commit is contained in:
bchanot committed 2026-10-29 14:05:28 +01:00
1 parent ca31b787b6
commit 17d919971e
8 files changed
+213 -4

No files matched your search

+8
View File
@@ -633,3 +633,11 @@ Owner brief « V1-2.1 : décisions finales du propriétaire » on checkpoint 2af
- M6 option A: `grant.self_review` dropped from `grant_catalog_right` + `SHEET_FAILURE_KINDS`. Owner at aal2 + verified factor may self-grant `sheet_reviewer`. Separation stays per round: author refused at ack + approve (`review.separation`), author approval refused again at publish (`publish.approval.invalid`). pgTAP 015 flipped, 017 owner-reviewer block (7 cases). Residual: owner reviewing others' drafts is now a normal path, audited like any grant.
- M7: Git fixture accepted for V1-2.1 upgrade rehearsal (horse.svg, sha256 = DEV asset row). Bytes/metadata/relations compared before/after. No DEV Storage read -> live DEV object integrity NOT shown; checked when owner applies M4-M6 on DEV. Contract §12.3, §16.2, §17.3.
- Size: one measure = UTF-8 bytes of jsonb text form `octet_length(content::text)` (`": "`, `", "` separators, jsonb key order, numeric without exponent). Base table CHECK `pg_column_size` (binary jsonb, uncompressed at write, bigger than text for dense docs) replaced in M5 by the text measure; `check_document_structure` drops pg_column_size. TS/Rust: no check today; core must compute same form in V1-2.2 (compact JSON.stringify shorter -> necessary not sufficient). Alternative rejected: compact JSON measure (SQL cannot compute it exactly: numeric prints no exponent).
## BDR-086 — V1-2.2 core authoring surface: verdict, PreviewSheet, edits, cleaning (2026-10-29)
- **Status**: implemented + tested; READY FOR REVIEW; DEV untouched
V1-2.2 core built (contract §16.3), no SQL/screen/DEV. Owner answers 2026-10-29 before code: editor exports (Inkscape/Illustrator/Figma/Affinity) supplied by owner under tests/fixtures/svg/exports/owner, cairo 1.18.4 + ImageMagick 7.1.2-18 exports committed meanwhile; strict-parse fail = `verification.integrity.document` (+ `.base`), 19 rule errors = `verification.validation.rules` (§6.7 aligned on §6.5); PreviewSheet draft = caps excess + missing drawings reported, published/deprecated = refused.
Design choices: verdict snake_case in the shape M5 SQL reads (groups[{key,digest,coverable}], drawings[{asset_id,sha256}], fingerprint), pure `compute_verdict`, NOT exported to wasm (O15). Digest = sha256(JCS({"group": key, ...content})) from typed doc (omitted status written inherited); general = doc minus views/annotations/finding_zones; view:<id> = views of id + annotations drawn in it; zone:<id> = zones of id; removal = {removed:true}; coverable = no to_confirm/inherited. Size = PG jsonb text measure (`size.rs`), oracle by PGlite 17.5. Edit: free op `sheet.edit` doc in → doc out; refuses ambiguous keys (duplicate id among siblings), unknown keys, id change, bad position, finding depth > 8; no cascade beyond tree descendants (dependents lists the rest); views whose drawing/crop changed → annotations to_confirm. Cleaning: sanitiser walk classes removals `active` (script, embeds, image, animation, a, on*, external refs, @import, javascript:, expression(, image-set(, behavior:, backslash); cleaning-only reading drops oversized title/desc (stored reader still refuses, too_complex).
Alt: verdict in wasm (rejected, O15); handle-applied edits (kept free op, page holds text for undo); serde tagged derive for commands (rejected: +100 KB wasm).
Reviews: verifier ECARTS(6) then ECARTS(3) (owner exports, helper); security PASS x2, MEDIUMs fixed (PIs, HTML fetchers, long-title bypass, quadratic groups, cubic view walk, bounds). Open owner: dangling #id across inlined drawings, clean upload = original bytes, stricter-than-table refusals, edit reading (contract 8.1/9.2), cairo rgb() colours. Module 596 671 B of 600 000.