bchanot
64a43840ce
feat(domain): V1-2.2 document measure, review groups, verdict, preview, edits
...
The core's authoring surface of contract §16.3: the server's document
measure, review groups with digests and removal groups, the change list,
the pure server verdict in the shape M5 reads, PreviewSheet with draft
and published modes, and the editor's commands with the §6.6 markings.
2026-10-29 13:14:21 +01:00
bchanot
a21866e25c
docs(docs): drop stale references to the removed SQL mirror and client gate
2026-10-28 18:14:10 +01:00
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
475a41d705
fix(tests): R5.7 gate findings, digest typo, census needs #[test] fns
...
RUST.md and FILES.tsv carry ba79698c...fde7; ledger cargo targets must name a #[test]
function. Verifier and security reports recorded, journal entry.
2026-10-25 04:18:52 +01:00
bchanot
1b359598ab
chore(workspace): R5.7 delete packages/anatomy and packages/domain
...
The TS pipeline, domain, upload script and legacy scripts leave; xmldom out of the
lockfile, Dockerfile copies trimmed. LEDGER.tsv (407 cases) and FILES.tsv (112 files)
record each disposition; r4 and r5 census tests guard the tree, lockfile and
production imports.
2026-10-25 04:00:07 +01:00
bchanot
0da7d3ab9f
test(domain): R5.7 port the contracts only the TS suites checked
...
612 leaves and 26 legacy ids (curation_leaves), region inference, R5.1 ledger rows,
generated folder lists, migration-map oracle entry by entry, overlay removal, halo
filter, CHG-000 and dollar-tag refusals; report-v2 fixtures moved to crates/core/tests
(sha256 unchanged).
2026-10-25 03:59: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
943a25a98f
fix(domain): R5.6 prep gates, strict declared block, patch builds, docs corrected
...
v1 refuses a non-hex or historical value (NotCanonical); the switch patch now builds
report-compare and refuses unknown block keys; RUST.md 11.19 states the measured
rehearsal (4 + 3 expected failures) instead of a green claim.
2026-10-24 14:57:44 +02:00
bchanot
3b9a395d43
feat(domain): R5.6 prepared, fingerprint convention and registry inert, switch patch
...
canonical_json (RFC 8785), sheet_fingerprint behind feature fingerprint,
TRUSTED_ALIASES (one equine pair), equivalence and check_declared; tests against
the RFC vectors, the V8 numbers, an independent Node reference and the archives.
No consumer wired: the switch is a rehearsed patch under .claude/tasks/plans.
2026-10-24 14:36:01 +02: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
a481af52c7
docs(docs): R5.5 upload tool runbook, caps, serde tolerance characterisation, contract
2026-10-23 21:16:59 +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
eb667ada57
docs(docs): R5.4 synthetic coverage and URL query rule stated exactly
2026-10-23 17:39:33 +02:00
bchanot
c4e717da86
fix(anatomy): R5.4 drawings projection charges each drawing's fixed parts
2026-10-23 16:38:06 +02:00
bchanot
411e1058c0
fix(anatomy): R5.4 review drawings bounded per annotation, report tables summed, docs counts
2026-10-23 15:59:19 +02:00
bchanot
29eb499539
fix(anatomy): R5.4 records weigh every cloned string with its header
2026-10-23 15:34:38 +02:00
bchanot
8bdb079f70
fix(anatomy): R5.4 records charged at each record, review drawings bounded before rendering
2026-10-23 15:21:31 +02:00
bchanot
5880dfa959
fix(anatomy): R5.4 records bounded in total, CHANGELOG tables projected before they are joined
2026-10-23 14:58:40 +02:00
bchanot
777c8000b8
fix(anatomy): R5.4 aligned report tables bounded before they are built, declared case fully held, docs
2026-10-23 14:39:51 +02:00
bchanot
aeb5050502
fix(anatomy): R5.4 field segments and code spans on the generator alphabet, wiki and liquid brackets refused in list items, linear guard
2026-10-23 13:58:14 +02:00
bchanot
bc5d0ad038
fix(anatomy): R5.4 authored backticks refused, underscores paired across code spans refused; sweep cites probe_ref and probe_ref_
2026-10-23 13:21:28 +02:00
bchanot
dcef2eb79c
fix(anatomy): R5.4 guard rules & (legacy references), image references, nested padded wiki links; linear URL checks
2026-10-23 13:02:21 +02:00
bchanot
124d954a0d
fix(anatomy): R5.4 report guard as an allowlist (report_guard.rs), sweep of 762 probes incl. seeded random strings, NUL refused in field segments
2026-10-23 12:39:17 +02:00
bchanot
df82424107
fix(anatomy): R5.4 guard covers links, autolinks, references, CJK underscores; ids validated at the op; prescan before the drawing comparison
2026-10-23 12:10:35 +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
9901106a62
test(anatomy): R5.3 characterisation: Object.prototype member as a plain key, migration-map cascade debt, refusal reasons compared by stage
2026-10-23 00:50:22 +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
6afc1e0a37
fix(anatomy): import report reads the id map with get instead of panicking Map indexes (security gate LOW)
2026-10-22 21:24:04 +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
aed6b1e300
fix(domain): js_number rounds exact decimal ties to even as ECMAScript (zmij digits); V8 oracle of 44,322 values, Zod oracle bytes checked against the core's printing
2026-10-22 20:50:32 +02:00
bchanot
60cc0f5fa8
test(anatomy): R5.1 freeze of the TypeScript pipeline (oracles r5: intermediates, ids, fingerprint matrix) and the D-R5 study scripts; RUST.md §11
2026-10-22 20:18:12 +02:00
bchanot
49b1849a2a
chore(worker): runtime image on distroless static-debian13:nonroot (debian12 tags no longer updated)
2026-10-21 18:51:57 +02:00
bchanot
a604c07f50
test(worker): the HTTPS client refuses a self-signed server certificate (in-process rustls server, rcgen dev-dependency)
2026-10-21 17:23:38 +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
a17ae45ed1
fix(domain): the core builds with no feature again: restore_copy (worker import path) behind pdf-read, the layout test sink behind pdf-write; rust-check lints and builds the core alone (the workspace run unified the wasm crate's features and hid it)
2026-10-20 21:27:04 +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
e88769a707
test(tests): R4.8 ledger reads its 301 frozen cases from the committed TSV, re-derives the dispositions of the deleted suites, checks every cargo and vitest target; browser scripts cite the frozen N-1 inflate copy
2026-10-19 12:17:01 +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
bchanot
264c5fa3fc
docs(docs): RUST.md §10.8 R4.6 record (buffers, memory, parity, E3/E4 three engines, release series, W1, risks); ledger targets filled; compare-exports script; roundtrip raster-failure case; TODO R4.6 closed; memory BDR-062, LRN-063/064, journal
2026-10-19 02:49:42 +02:00