docs(docs): RUST.md §10.10 R4.8 record (deleted, replaced, kept with reasons, census, non-regression table, risks, R5 prerequisites); CLAUDE.md, README, WORKSPACE, packages/README, TEST_STRATEGY, PDF-FORMAT, DEPLOY rollback R4 note and module size, hardening §5 pdf-lib closed, fixtures README, CHANGELOG R4 entry; TODO R4.8 closed; memory BDR-064, journal
This commit is contained in:
1 parent
e88769a707
commit
f36dbdd4ae
13 files changed
+238
-62
No files matched your search
@@ -15,7 +15,7 @@ Status: Step 0 deliverable, 2026-10-08. Current state: 32 files under
|
||||
| RLS | pgTAP, per table, per role | `supabase/tests/rls` | CI, release gate |
|
||||
| End-to-end | Playwright against `pnpm preview` + local Supabase | `apps/app/e2e` | CI nightly + release gate |
|
||||
| Migration | `supabase db reset` from zero + seed + regression fixtures | CI | every PR touching `supabase/` |
|
||||
| PDF regression | vitest golden tests: text extraction of generated PDFs, attachment roundtrip, raster hash on fixed inputs | `packages/pdf/tests` | CI |
|
||||
| PDF regression | cargo: the R4 oracles (O1 draw logs, O2 PDFs, O4 to O10) and the R4 digests of the writer's own bytes; vitest: the Step 6 goldens read back from the app export's file (`tests/helpers/pdfFile.ts`, no pdf-lib), the attachment roundtrip through the module's reader, the N-1 readers | `crates/core/tests/pdf_*.rs`, `apps/app/tests/unit/pdf.*.test.ts`, `packages/core-wasm/tests/pdf-*.test.ts` | CI |
|
||||
| SQL/TS contract | generated types diff check | CI | every PR touching `supabase/` |
|
||||
| Rust core and facade | `cargo test` (unit + fixture tests reading the repository JSON in place), `clippy -D warnings`, `cargo deny`; ts-rs types drift check | `crates/*`, `pnpm rust:check` (native, `scripts/rust-check.sh`; same file in the builder image), `pnpm check:all` | before every Rust commit and every merge; CI job `rust` prepared, no runner yet |
|
||||
| Rust/TS contract | vitest on the built module: byte equality with `JSON.stringify(…, null, 2)` on the real documents, ts-rs types against the Zod output types, the runtime (lazy load, trap → poison → offline re-instantiation, handle rebuild, cap, retry), panic and stack traps on `pkg-proofs`, served size budget and measurements | `packages/core-wasm/tests` (refused, never skipped, when `pkg/` or `pkg-proofs/` is missing or stale) | `pnpm check:all` (after the native `wasm:build`); CI `check` prepared |
|
||||
@@ -78,8 +78,10 @@ Target after Step 1: roughly 230–250 cases, all current ones untouched.
|
||||
- `supabase/seed/test/` provides two practitioners, one cabinet, two clients,
|
||||
three animals, the official sheet, one personal sheet, reports in each
|
||||
status. RLS tests reuse it.
|
||||
- Golden PDFs are compared by extracted text and attachment JSON, not by
|
||||
bytes (pdf-lib dates and ids vary); raster hash only on fixed-size inputs.
|
||||
- Golden PDFs are compared by the text, images and links read back from the
|
||||
file and by the attachment JSON; the writer's own bytes are pinned by the
|
||||
R4 digests at a fixed export time (`goldens/r4/pdf.*.sha256`), rewritten
|
||||
only for a declared structural change.
|
||||
|
||||
## 5. Gates before a merge, and the CI target
|
||||
|
||||
|
||||
Reference in new issue
Block a user