bchanot
77e5fa4cf5
feat(supabase): V1-2.1 M4/M5 secure sheet access and review workflow
...
M4 20261028100000_sheet_access_hardening + M5 20261028110000_sheet_review_workflow
(applied together; no unprotected window). Implements contract §5-§14.
- Catalogue rights table + owner RPCs; has_mfa / has_aal2_session (live
auth.sessions check); grant_active vs caller_has split; catalogue reader
predicate; can_edit_sheet on the sheet_editor capability (F14).
- AR-1 B: aal2 required on every platform role change, target verified factor,
race-free last-owner guard (F18/F19); service_role loses table privileges on
the catalogue + profiles/profile_roles and EXECUTE on the role RPCs (F12/F17).
- Reviewed lifecycle: version provenance + review columns, content/freeze/
author triggers, rounds/comments/acknowledgments, save/submit/withdraw/
comment/acknowledge/decide, atomic publish_sheet_version(review_id) on the
stored verdict, deprecate/archive/restore, species RPCs, equine working copy,
uploads with the storage check (F7) + editor INSERT policy + 2 MiB bucket.
F1-F3,F5,F6,F8,F9,F13,F15,F16 closed. Verdict is a fixture until M6 (V1-2.3).
- O22: SQL business mirror removed, declared status check kept; pgTAP 011 and
the Rust generator's SQL parts deleted, ledger retargeted.
- Access layer sheets.ts (closed SheetFailure kinds); old client publish gate
deleted; types regenerated; upload tool reads via get_sheet_asset_state.
Tested on the throwaway sandbox only; DEV untouched. pgTAP 850 (real stack) /
122 (PGlite) green; real-GoTrue AR-1 B + F18 race green; fresh install and
M3->M5 upgrade green; V1-1 regression green; rust:check, typecheck, lint,
build, types drift clean. BDR-084, LRN-095.
2026-10-28 15:52:49 +01:00
bchanot
9e87016399
feat(domain): R5.6 fingerprint switch to sha256-rfc8785-validated-v1
...
The Rust pipeline is the official seed writer (pnpm import:equine); sheet-ref.json
and report-migration-map.json carry 12d78872...74e2 and the v1 block, the only two
seed files changed. 27c7383c...2660 stays a registered alias, honoured only through
LoadedSheet::recognises_historical_stamp (verified v1, recomputed document). M1: the
snapshot of an old report keeps its stamp; export, archive reader strict. Historical
oracles run in their pre-switch context; equivalence is crate-private.
2026-10-25 02:02:42 +01:00
bchanot
1ec9e1bea6
fix(domain): shape check sees positional parents, multicast never an own address
2026-10-24 03:47:07 +02:00
bchanot
d502dfa923
fix(domain): refuse three non-canonical v3 shapes, R5.5 LOW fixes, R5.6 plan
...
check_v3_shape at read_report_document v3 and parse_envelope (sheet, practitioner
as non-objects, severity as non-string); Protocol errors final; DEV address must be
an own unicast address. SQL confirm function and DEV keys characterised, no change.
2026-10-24 03:34:38 +02:00
bchanot
fad85c0f92
fix(supabase): R5.5 round 2 nits, e2e INIT_CWD, final error wording
2026-10-23 21:43:30 +02:00
bchanot
56593af25c
fix(supabase): R5.5 gate round 1, final errors, four attempts, keys off argv, runbook
2026-10-23 21:34:24 +02:00
bchanot
2c445063a4
feat(supabase): R5.5 upload-sheet-assets in Rust, R5.4 caps and FLOOR clarification
...
Core rules curation::upload (manifest, local destination, bytes through the SVG reader,
plan from observed state); binary upload-sheet-assets over ureq (handshake, no overwrite,
confirm after verify, bounded retries, key never printed); pnpm assets:upload repointed,
e2e:sheet-assets for the local stack. 4 MiB cap on changes.json and references.json.
FLOOR clarification for audit prose with its negative proof.
2026-10-23 21:15:22 +02:00
bchanot
94f8b35105
fix(anatomy): R5.4 Markdown guard from a TypeScript sweep, strict drawing comparison, unwritable characters refused, indexed renderers
2026-10-23 11:51:41 +02:00
bchanot
fef21d67ef
feat(anatomy): R5.4 review files in Rust (CHANGELOG, REVIEW-REPORT, review overlays, app drawings) and the whole-draft --check
2026-10-23 11:21:49 +02:00
bchanot
f245b3ec25
fix(anatomy): R5.3 __proto__ field segments refused, seed identity guard over the whole seed tree, hashed id comparisons
2026-10-23 10:51:39 +02:00
bchanot
07d63076d3
fix(anatomy): R5.3 authored values read as JSON.parse does (key order, big integers), non-list children refused, document value bound, --check and seed guard by identity
2026-10-23 10:32:44 +02:00
bchanot
86273b6206
fix(anatomy): R5.3 non-object children refused at add, reads confined to the seed, array length in the shape check, only run-created folders, seed guard tested in place
2026-10-23 10:11:51 +02:00
bchanot
776c7095b3
fix(anatomy): R5.3 shapes refused as Zod did (struct as array, enum as map), reads bounded to regular files, --check never follows links, plain names in --out
2026-10-23 01:33:01 +02:00
bchanot
9f11499f2c
fix(anatomy): R5.3 final gates: NUL field segments refused, field path and document depth bounded, --out writes exclusive, .. / missing parent / seed destination refused
2026-10-23 01:08:07 +02:00
bchanot
e0f149b28a
feat(anatomy): R5.3 curated draft in Rust (changeset applier, migration map, stats, seed SQL) and pnpm r5:import-equine
...
crates/core/src/curation/draft behind the curation feature: strict changeset and references parsing as JSON.parse + Zod, the six ops, rename cascades, the B/C review rule, the R2 shape and integrity gate, migration map, document stats, seed SQL. import-equine writes both folders; --check reproduces legacy-import/ and the R5.3 draft files byte for byte (12 files, 0 differences), --out claims an absent or empty, non-symlink destination and never deletes. Parity: 825 records, 46 changes, stats, 612 leaves 442/141/29, 58 synthetic TypeScript cases (oracle r5/curation-synthetic.json).
2026-10-23 00:10:55 +02:00
bchanot
03bdb5eaa0
feat(anatomy): R5.2 legacy importer in Rust (curation feature, import-equine --check/--out), Prettier JSON and table layout, JS semantics; parity oracles frozen from the TypeScript
2026-10-22 21:14:45 +02:00
bchanot
49b812b9b4
docs(docs): R4.9 verifier and security follow-ups: §6 rows 19 (J2 device run, blocking before merge) and 20 (WebKit worker error trace); port 4173 in the exposure table as an owner-opened recette rule; serve.mjs post-bind check typed from the address; report-compare comment names the residual race
2026-10-20 22:05:04 +02:00
bchanot
854d988c07
fix(tests): serve.mjs post-bind wildcard check reads the 'IPv6' family of server.address(); report-compare checks the type before opening (a FIFO or device is never opened) and again on the handle
2026-10-20 21:56:03 +02:00
bchanot
9965d7f0a0
fix(tests): serve.mjs resolves --host before listening and refuses any wildcard result (every spelling: 0, 0::, ::ffff:0.0.0.0, scoped ::), listens on the resolved address and checks the bound one; report-compare opens once and checks size and type on the handle
2026-10-20 21:22:22 +02:00
bchanot
80cc261c24
fix(tests): R4.9 security gate findings: serve.mjs refuses an empty or unspecified --host (an unset FAUNOSTEO_DEV_HOST bound every interface); report-compare reads at most the 50 MiB cap + 1 byte after its size check; recettes source dev-env.sh first
2026-10-20 21:16:48 +02:00
bchanot
02ebf05195
feat(domain): R4.7 report-compare on the core: pdf::compare (feature cli, pure lines, runner over a Files trait), report-compare binary on the seed sheet, pnpm report:compare switched to it; O10 230 rows (158 exact, 72 declared A.3 closed lines), 11 cases as ledger targets, binary spawned; rust-check on cli
2026-10-19 11:13:35 +02:00