diff --git a/.claude/tasks/TODO.md b/.claude/tasks/TODO.md index f1904e36..20b7de46 100644 --- a/.claude/tasks/TODO.md +++ b/.claude/tasks/TODO.md @@ -635,12 +635,12 @@ Order (BDR-071): P0 docs + decisions → V1-1 clients and animals → V1-2 sheet - [x] P4 sandbox e2e (`pnpm db:sandbox verify-e2e` 7/7, cases a-h, at caps 185 ms worker); rehearsals before M6 and before M4 (DEV path): pgTAP 1859, types equal; hostile corpus (42) through the child. NOT run: `pnpm e2e:avatar` (targets DEV: owner decision) - [x] P5 docs (RUST §13, STORAGE §3.6, contract §6.4/§6.5/§12.3/§16.4, SUPABASE, DEPLOY, CLAUDE.md); check:all + e2e:shell 86 on 6aa85fe; security PASS (LOWs: 2 fixed, 3 open); verifier ECARTS(2) → hostile corpus added, e2e:avatar to owner; checkpoint - [ ] Q owner reserves (brief « Décisions V1-2.3 / M6 et clôture des dernières réserves », on 96b19e5; contract `.claude/tasks/contracts/2026-11-01-v1-2-3-reserves.md`): M6 parameters + `brk` approved; CHANGES REQUIRED until proofs; sandbox only, no DEV, no merge, no V1-2.4 - - [ ] Q1 `pnpm db:sandbox avatar-e2e`: existing avatar suite, real worker default mode, sandbox only - - [ ] Q2 retry delay 2/5/10/20 s persisted in SQL (M6 amended in place, unapplied outside the sandbox), pgTAP + sandbox case - - [ ] Q3 input limits at and just beyond the caps (child + sandbox), tracked misclassifications asserted as current - - [ ] Q4 `brk` bounded: RLIMIT_AS and argument filters on the verify child - - [ ] Q5 throwaway sandbox account passwords generated per run - - [ ] Q6 LRN brk (owner wording) · Q7 docs · Q8 gates, security review, verifier, checkpoint + - [x] Q1 `pnpm db:sandbox avatar-e2e`: existing avatar suite, real worker default mode, sandbox only + - [x] Q2 retry delay 2/5/10/20 s persisted in SQL (M6 amended in place, unapplied outside the sandbox), pgTAP + sandbox case + - [x] Q3 input limits at and just beyond the caps (child + sandbox), tracked misclassifications asserted as current + - [x] Q4 `brk` bounded: RLIMIT_AS and argument filters on the verify child + - [x] Q5 throwaway sandbox account passwords generated per run + - [x] Q6 LRN-109 · Q7 docs · Q8 gates: check:all, sandbox fresh + 2 upgrades (pgTAP 1880, types, verify-e2e 10/10), avatar-e2e 5/5, test 87, e2e:shell 86; security PASS, MEDIUM null lease token fixed (3bfd6c8); verifier pending - [ ] residual risks, open, tracked: header > 64 KiB → `resource_limit` instead of `caps`; object over the policy → `drawing_missing` instead of `size_mismatch`; §16.11 queue inventory owed before any DEV activation - [ ] V1-2.4 wireframes (editor, review, admin entry) · V1-2.5 catalogue, admin space, rights, species, MFA · V1-2.6 editor level 1 · V1-2.7 preview, review, publication UI · V1-2.8 equine working copy and review preparation · V1-2.9 FR/EN acceptance and closure (owner checkpoints V1-2.3, V1-2.4, V1-2.6, V1-2.7, V1-2.8, V1-2.9 + each DEV operation of contract §16.11) diff --git a/docs/development/RUST.md b/docs/development/RUST.md index e9443fd7..5bc22f6a 100644 --- a/docs/development/RUST.md +++ b/docs/development/RUST.md @@ -4554,3 +4554,16 @@ unchanged (`brk exit_group getrandom mmap mremap munmap read write`), the allowl The two misclassifications stay tracked, not fixed (`tests/verify_loop.rs`): a frame header over 64 KiB is reported `resource_limit`; an object over the policy is passed without bytes and the verdict lists `caps` then `drawing_missing` (its declared size already exceeds the cap), never `size_mismatch`. + +Reserves Q1, Q2, Q5 and the gates (2026-11-01). The avatar suite runs on the throwaway stack through +`pnpm db:sandbox avatar-e2e` (the real worker in its default mode, 5 tests), never on DEV; the sandbox's throwaway +accounts get random passwords per run. M6 amended in place (applied nowhere but the sandbox): a technical failure is +claimable again after 2, 5, 10 then 20 s (`not_before`, hidden from `authenticated`), the worker never sleeps; sandbox +case `i` measured the real worker taking the round 10.8 s after a failure at attempt 3 while it opened another round +meanwhile; cases `j` and `k` take the caps through the real worker (document 2 097 152 bytes and a 2 MiB base with +6 291 456 bytes of drawings: passed, worker 156 ms and 191 ms; one byte beyond refused at save, registration and bucket; +over the total or the count: `caps`). Security review PASS; its MEDIUM (a null lease token matched an unleased round +through `is distinct from`, service role only) fixed in the three round RPCs, pgTAP 021 at 72. On the final M6: +sandbox `test-db` 1 880 PASS, `types --check` equal and `verify-e2e` 10/10 on a fresh stack and on the upgrades from +before M6 and from before M4 (the DEV path); `avatar-e2e` 5/5; `test` 87 and `e2e:shell` 86 on the M6 before that fix +(neither reaches the three round RPCs); DEV untouched.