bchanot
3114d67959
test(tests): R2 freeze — archive envelopes of the three golden reports and the frozen N-1 reader
...
Envelopes exported by the TypeScript domain before the Rust switch (FR, no
logos, fixed export time) are the semantic oracle of the switch (D-R11:
key order may change, values may not). The shipped Zod schemas are copied
verbatim under packages/core-wasm/tests/n-1 (develop 1a7ee7d ) so a rollback
reader stays testable after packages/domain is deleted at R5.
2026-10-13 23:53:12 +02:00
bchanot
cd2dbb3b79
fix(supabase): security pass on the files foundation — ceiling counts live bytes only, confirm checks the account, null sha256 refused, browser RPCs one role; worker: cleartext only on loopback or a service name, no env proxy, key ownership cross-check, no library text in logs
...
Security audit (PASS, 2 MEDIUM + LOW): the global ceiling summed every
non-deleted row, so rejected uploads ratcheted it toward storage_full with no
disk used → in-flight rows by declared size, clean rows by byte_size, nothing
else (pgTAP: rejected rows do not count, in-flight rows do); confirm refuses a
deactivated account like begin; complete_avatar_job refuses a null sha256;
begin / confirm / remove granted to authenticated only. Worker: SUPABASE_URL
over http:// accepted only for loopback or a single-label Docker service
name; ureq proxy(None); the job's keys must embed its owner and asset ids;
backend_failure / claim_failed / sweep_failure lines carry the closed kind and
the HTTP status, never the library's error text. e2e: uuid shape checked
before the psql query. Contract revision 2 (oracle fixes).
2026-10-13 19:49:58 +02:00
bchanot
0c6053c174
feat(workspace): real-stack avatar e2e, compose worker service, STORAGE.md contract
...
packages/supabase/tests/e2e/avatar-flow.e2e.ts (pnpm e2e:avatar through
scripts/avatar-e2e.sh: worker container on the Supabase network, 5 s sweep,
no quarantine grace; a fresh account per run): clean upload and owner-only
download (Bob, anon, quarantine key, direct final-key write refused),
replacement purged after the grace (queue clock shifted through psql), late
bytes through a still-valid signed upload URL swept, hostile and corrupted
uploads rejected with closed codes, removal with the purge queue drained.
Worker: the Storage API answers a missing object with HTTP 400 and
statusCode 404; normalised to 404 so a purge of a never-written key is acked.
docker-compose.yml: service worker under the worker profile (read-only,
cap_drop ALL, no-new-privileges, 512m, 1 cpu, 64 pids, .env.worker, external
Supabase network). docs/development/STORAGE.md: the implementation contract.
2026-10-13 19:39:51 +02:00
bchanot
926dd7df8c
feat(app): profile photo — avatar upload in Mon compte, photo in the sidebar, drawer and top bar
...
packages/supabase assets module: closed AssetFailure kinds, begin / quarantine
upload (upsert off) / confirm / remove, own-row state read with an explicit
column list, download under the SELECT policy. App: client transport (magic
byte sniff, never SVG, createImageBitmap, canvas 1024 px, JPEG 0.9, 5 MiB
cap), AvatarSection (preview, save, 1 s polling up to 30 s, rejection and
failure messages per closed code, removal with confirmation, in-flight row
resumed at mount), auth store blob URL revoked on change and sign-out,
AvatarCircle in UserBadge and the top bar link to Mon compte (D3), FR/EN
strings, fake client extended, 27 new tests (app 300).
2026-10-13 19:32:37 +02:00
bchanot
614887470c
feat(supabase): files foundation — assets table, private buckets, avatar policies through assets, purge queue, browser and worker RPCs
...
Migration 20261013100000: asset_status enum, public.assets (server-built keys,
lease token, closed rejection reasons), seven private buckets (avatars open with
cap and MIME list, six closed), storage.objects SELECT/INSERT policies for
avatars evaluated through assets, private.object_purge_queue fed by status and
delete triggers (48 h / 1 h grace), storage ceiling, RPCs begin_avatar_upload /
confirm_asset_upload / remove_avatar (authenticated) and claim_avatar_jobs /
complete_avatar_job / reject_avatar_job / mark_quarantine_purged / claim_purges /
ack_purge / claim_quarantine_leftovers / expire_pending_uploads (service_role),
explicit revokes and column grants. pgTAP 010 (125 checks: allowed and denied
twins, policy census, stale lease, supersede, removal, leftovers, cascade,
ceiling), 001 census extended, database.types.ts regenerated from the real
stack, schema-types test counts input arguments only.
2026-10-13 19:32:15 +02:00
bchanot
9d3e0294e2
docs(docs): RUST.md with the R0 proofs, DEPLOY image deploy by digest + CSP note, workspace/test strategy/packages/CLAUDE.md, CHANGELOG; chore(memory): TODO R0
2026-10-13 00:01:27 +02:00
bchanot
2a38fa37b5
chore(workspace): Rust workspace R0 — builder image, core crate (JS-compatible JSON, report contracts, facade), wasm facade, core-wasm package with proofs
2026-10-13 00:01:25 +02:00
bchanot
9771d997f4
fix(app): failed sign-out reported (local session still cleared); reauthentication_needed phrased; docs(docs): exact production redirect allowlist
2026-10-11 23:45:14 +02:00
bchanot
aa1985eead
test(app): identity step — auth store, locale sync, login/signup, guards, shell, dashboard, account
...
- tests/helpers/fakeSupabase: in-memory auth events + profiles/profile_roles builder
- validation schemas and safeNextPath; classifyAuthError mapping (packages/supabase)
- LoginRoute (unavailable, validation, next path, phrased failure, OAuth buttons, show password)
- SignupRoute (policy, mismatch, metadata + redirect, user exists)
- RequireAuth / RedirectIfSignedIn, AppLayout (nav, active, drawer, sign out), Dashboard, Account forms
2026-10-11 23:33:25 +02:00
bchanot
c517ea267b
feat(app): identity screens and /app shell — auth store, login/signup/reset flows, dashboard, account
...
- state/authStore: session subscription (initialize + onAuthStateChange), profile + roles load, recovery flag, URL failure; services/localeSync: profiles.locale <-> localeStore
- routes: /login, /signup, /forgot-password, /reset-password, /auth/callback; guards RequireAuth (next=) and RedirectIfSignedIn; /app (dashboard), /app/account behind the guard
- shell: AppLayout (desktop sidebar, light top bar, mobile drawer), SidebarNav, UserBadge, SignOutButton
- account: personal / professional / preferences / security sections, one save each, Zod validation with i18n keys
- ui: Icon, FormField, Notice, ButtonLink (buttonClassName shared), PasswordField, OAuthButtons (config-driven)
- Home header: Mon espace / Se connecter when Supabase is configured; local tool routes untouched
- i18n: auth.*, shell.*, dashboard.*, account.*, home.space.* in fr + en
2026-10-11 23:29:13 +02:00
bchanot
b10b227ee9
feat(supabase): auth, profile and roles services; professional columns on profiles; OAuth + TOTP config
...
- packages/supabase: signIn/signUp/OAuth/reset/updatePassword/signOut wrappers with a closed AuthFailure kind, fetch/update own profile, own platform roles
- migration 20261011100000: practice_name, professional_title, siret (format-checked, column grants); pgTAP 009; database.types regenerated
- config.toml: TOTP enroll/verify on, [auth.external.google|apple] via env(), wildcard redirect URLs
- app config: authProviders (APP_AUTH_PROVIDERS / VITE_AUTH_PROVIDERS), entrypoint env.js, DEPLOY table
- TODO: Step 7 plan
2026-10-11 23:16:13 +02:00
bchanot
62b2b9d86a
fix(pdf): candidates sorted by data offset, JSON depth pre-scan before parse, budget wording; chore(memory): BLK-009 mitigated with gate, EVAL-014, journal, TODO, CLAUDE.md import notes
2026-10-11 17:31:07 +02:00
bchanot
3a6e92625a
fix(pdf): inflater fed in 16 KiB slices (browser memory bound), shared 16 MiB candidate budget, monotonic bounded endstream search, JSON object pre-check
2026-10-11 17:08:56 +02:00
bchanot
60ee71208f
fix(pdf): bounded attachment extraction by byte scan — no pdf-lib parse on import, export without object streams (BLK-009)
2026-10-11 16:42:45 +02:00
bchanot
293a6e0b36
fix(pdf): bundle the branding assets into the app (no fetch at export), export returns its warnings and the editor reports missing elements
2026-10-11 16:09:39 +02:00
bchanot
cb95627a11
fix(pdf): PNG gate inflates IDAT natively against the exact raw size, validates IHDR fields, refuses zero dimensions and interlace (UPNG inflateRaw spin)
2026-10-11 14:52:03 +02:00
bchanot
0ceb357b18
fix(pdf): PNG chunk allowlist and mandatory empty IEND — text and profile chunks refused (UPNG nextZero spin)
2026-10-11 14:29:56 +02:00
bchanot
3a26c61119
fix(pdf): link URIs as ASCII hex (readable by poppler), PNG budget walks the chunk list (second IHDR and APNG refused)
2026-10-11 14:14:10 +02:00
bchanot
1f417b21fd
fix(pdf): security hardening — hex-encoded link URIs, strict branding URL schema, branding and labels re-validated at export, PNG dimension budget, CSS escape and parenthesis rules in the sanitiser, finite raster size, file size checked before read
2026-10-11 13:54:18 +02:00
bchanot
9bd5173a9c
feat(app): export and import through @faunosteo/pdf — snapshot, archived branding and labels, browser rasterizer, imported archive kept in session, explicit rebase with messages; legacy PDF modules removed
2026-10-11 13:32:14 +02:00
bchanot
c17956031d
feat(pdf): @faunosteo/pdf engine — explicit inputs, envelope v1 attachment, layered reader, xmldom composition, allowlist SVG sanitiser, WinAnsi guard, rasterizer adapter; goldens reproduced
2026-10-11 13:09:17 +02:00
bchanot
cdc0943f35
feat(domain): archive contracts — sheet snapshot (lean document, caps, integrity), envelope v1 layered reader, branding and label schemas, report rebase, sheet index moved from the app; bundle carries asset hashes
2026-10-11 12:30:57 +02:00
bchanot
694092610d
feat(anatomy): composeViewSvg with tree-level highlight and halo, review drawing on the shared composer
2026-10-11 12:05:56 +02:00
bchanot
b1b3e4927e
fix(pdf,tests): report:compare escapes control characters, prints names and free text only with --full, stats before read, missing file as a per-file failure; inferRegionCode regression test; import.ts JSDoc reattached
2026-10-10 15:53:07 +02:00
bchanot
1e0491f3bc
test(anatomy,app): every legacy catalog leaf (612) and annotation (27) through the v2 to v3 migration against the draft document, the sheet index and a PDF roundtrip
2026-10-10 15:44:20 +02:00
bchanot
e7f4167ada
fix(domain,app): own-key lookups for untrusted ids in the v2 migration, attachment and PDF size caps; EVAL-011, journal, TODO
2026-10-10 12:23:03 +02:00
bchanot
17a6d9b323
test(app): former PDF, observation card, route and schema assertions restored on v3; foreign JSON attachment reported as no_attachment; doc counts
2026-10-10 12:21:19 +02:00
bchanot
06a2e86f3c
test: replacement coverage for the deleted legacy suites (v3 schema rejections, appointment kinds, i18n keys and placeholders, pickLocaleLabel, region mapping, new report route); importer comment
2026-10-10 12:06:59 +02:00
bchanot
09d8b01a54
fix(app): editor route split into dialogs and pickers components, canvas without lint suppression, findings picker coverage restored; golden test pins every generated draft file; stale doc lines
2026-10-10 11:55:57 +02:00
bchanot
0476276a8f
docs(chore): step 5 — annotation rendering contract, CLAUDE.md map and conventions, README, DEPLOY SHEET_BUNDLE, PDF format v3, spec §6 migration map, plan/changelog/strategy notes; BDR-038, LRN-043, TODO
2026-10-10 11:41:55 +02:00
bchanot
ce2ec26112
feat(app): application on the canonical sheet — report v3 store with v2 draft migration, bundled SheetProvider (SHEET_BUNDLE), annotation layer rendered from the document, zone interaction service, pickers and cards on the sheet index, PDF v3 export with v2 archive import; legacy registry, matchers, editors and assets removed
2026-10-10 11:36:14 +02:00
bchanot
0a17e390cf
feat(anatomy): report migration map and sheet reference generated by the pipeline, pure annotation-layer renderer (legacy marker look) shared with the app, app review drawings, marker colours as document data
2026-10-10 11:17:34 +02:00
bchanot
70bf992017
feat(domain): report document v3 (annotation ids, sheet ref, severity codes, unresolved findings), v2 schema as input, v2→v3 migration with map; annotation colour override
2026-10-10 11:11:25 +02:00
bchanot
6034909674
fix(anatomy): B/C changes leave every touched finding and annotation at to_confirm (applier rule, reviewed refused), typed test reads, docs numbers
2026-10-10 09:03:00 +02:00
bchanot
1a96a1555c
feat(anatomy): before/after review drawings per view, questions of every level in the report, tests on the real changeset
2026-10-10 01:53:10 +02:00
bchanot
6870d87910
feat(anatomy): curation pipeline — changeset schema, applier with before/after records, cleaned single asset, draft seed, changelog + review report generators; seed layout legacy-import/curation/draft
2026-10-09 16:50:08 +02:00
bchanot
3dbbfdf1df
feat(domain): sheet document schema v2 — references registry, review_status, vertebral count_range; SQL gate + pgTAP 008
2026-10-09 16:30:58 +02:00
bchanot
dee4ce43d9
fix(supabase): confirmed uploads gate asset reads (hash claim), seeds-listed test, Dockerfile workspace manifests; importer declares every authored label, real in=out control
2026-10-09 00:50:36 +02:00
bchanot
e5a0445b19
test(supabase): equine seed + storage pgTAP on both engines; docs for Step 4b; upload script resolves from caller dir
2026-10-09 00:38:49 +02:00
bchanot
52bfc11553
feat(domain): equine legacy importer (packages/anatomy) + generated official equine sheet seed as draft
2026-10-09 00:38:48 +02:00
bchanot
f4682cdba5
feat(supabase): sheet asset Storage bucket + read policy through the sheet, shim storage tables, seeds in the PGlite harness, upload script
2026-10-09 00:28:34 +02:00
bchanot
12f0b21fdf
feat(domain): finding kind observation → consultation_reason; Step 4 business decisions in spec + memory (BDR-033)
2026-10-09 00:24:22 +02:00
bchanot
d3fa65af29
fix(supabase): revoke PUBLIC EXECUTE on private helpers, audited visibility RPC, input caps, authz-first RPCs, +32 pgTAP checks
2026-10-08 23:59:39 +02:00
bchanot
6966c54a2e
docs(docs): Step 4 sheet model in CLAUDE.md, SUPABASE.md, WORKSPACE, README, plan note, changelog
2026-10-08 23:45:01 +02:00
bchanot
8cac8b1a68
feat(supabase): regenerated types, row aliases, publishSheetVersion gate, schema test
2026-10-08 23:42:44 +02:00
bchanot
36812f4625
feat(domain): canonical anatomical sheet document, integrity rules, tests
2026-10-08 23:42:42 +02:00
bchanot
8b233e5cf0
chore(supabase): adopt CLI-generated database.types.ts; db:types scripts pipe through prettier
2026-10-08 23:04:21 +02:00
bchanot
1dd45a3109
docs(docs): SUPABASE.md runbook + CLAUDE/README/DEPLOY/WORKSPACE updated for the Supabase foundation
2026-10-08 22:46:38 +02:00
bchanot
ab04b2e43d
style(supabase): prettier pass on the new TypeScript files
2026-10-08 22:46:37 +02:00
bchanot
ce76c6597a
feat(supabase): @faunosteo/supabase package with PGlite harness and typed client
...
- tests/db: PGlite (PostgreSQL 17 WASM) applies the Supabase shim + migrations and
runs supabase/tests/*.sql through pgTAP without Docker
- schema-types test pins tables, columns, enums, RPC args, RLS-on, no using(true)
- database.types.ts in supabase gen types format; createBrowserClient (PKCE)
- Supabase CLI pinned as root devDependency; db:* root scripts
2026-10-08 22:20:54 +02:00