diff --git a/.claude/memory/evals.md b/.claude/memory/evals.md index ecab2742..b91f212c 100644 --- a/.claude/memory/evals.md +++ b/.claude/memory/evals.md @@ -296,3 +296,6 @@ Method: access layer by fork (unit 35, real PostgREST sandbox 7); screens unit t Result: security PASS (MEDIUM pre-existing sandbox literal pw; LOW trace override by argv). Verifier 1 ECARTS: client journey failed after passing (late replay of the animal-section reload added by V1-1.6) → dropLateReplays for every shell spec. Verifier 2 ECARTS: pgTAP 014 #237 regex `20[0-9]{2}-` matched a workspace uuid on long-lived sandbox (latent V1-1.4 false positive; would stop DEV db:test) → metadata minus workspace_id. Verifier 3 CONFORME 12/12. Anomalies: Card dropped aria-labelledby since Step 7 (TS ignores hyphenated props; LRN-087); useT unstable in deps (LRN-088); en substring matches (Male/Female, Save/saved) → exact; safety check refused rm inside sh -c (not bypassed; dump left for owner). Action: run the whole shell suite (not just the new spec) before the verifier; scope pgTAP regexes away from uuids; never chain rm into sh -c. + +## EVAL-042 — Gate chain substituted test:run for db:sandbox test (2026-11-04) +V1-2.6 Lot M gate chain ran `pnpm test:run` as third step instead of contract's `pnpm db:sandbox test` (sandbox suites on same fresh stack after e2e:shell, LRN-113). Two chains reported green with wrong step; §16.7 doc carried wrong order. Method: fresh verifier against contract C22 read packages/supabase/vitest.sandbox.config.ts and caught it. Anomaly: orchestrator's own gate script, not a subagent. Action: re-ran exact order on 697cefa and 7a4ce9e (sandbox test 105 passed / 10 skipped); doc fixed. Lesson: copy gate commands verbatim from contract/LRN, never paraphrase a step name. diff --git a/.claude/memory/learnings.md b/.claude/memory/learnings.md index 21026e86..b2bdce1f 100644 --- a/.claude/memory/learnings.md +++ b/.claude/memory/learnings.md @@ -791,3 +791,12 @@ Supersedes [[LRN-102]]. - **Lost**: uncommitted lot H work, uncommitted lot G review fix, git-ignored SDD workspace (briefs, reports, rulings ledger). **Kept**: every commit — pushed by gitflow hooks (origin at 8343528). - **Pattern**: long-running worktree → durable path outside `/tmp` and outside session dirs (now `/home/bchanot/Documents/faunosteo-v1-2`). Rulings, contract changes, findings and resume checkpoints → git-tracked file, committed + pushed after each validated lot. Scratch (SDD briefs/reports) may stay ignored; nothing needed to resume lives only there or in an agent's context. - **Recovery recipe**: `git worktree list --porcelain` → `git worktree prune --dry-run --verbose` (only entries whose dir is gone; check their commits reachable from a branch) → `git worktree prune` → `git worktree add ` → HEAD = origin, tree clean → `pnpm install --offline`, `pnpm wasm:build` (ignored build outputs). + +## LRN-115 — Playwright label locator hits outgoing page during navigation (2026-11-04) +Playwright `getByLabel` resolved on OUTGOING page during navigation: sheets list filter « Espèce » (#filter-species) and create form field « Espèce » share label; selectOption hit list filter before create route mounted, choice lost, looked like product remount (V1-2.6 Lot K, 3/3 repro, refuted by capture-phase change listener). Rule: after a navigation, wait for destination landmark (page h1 « Nouvelle fiche ») before any label-based locator. Instrument native events before blaming a remount. + +## LRN-116 — Native dialog exit animation drops keystrokes (page inert) (2026-11-04) +Native modal `` closing with exit animation leaves page inert until animation ends; keystrokes sent then are dropped (no React onChange). V1-2.6 journey: fields filled right after « Nettoyer et utiliser cette version » emptied, later fields kept, looked like form reset. Rule: after closing a modal, wait for dialog count 0 (getByRole('dialog', {name}) toHaveCount(0)) before typing; never retry fills (masks real resets). Users cannot type during inert phase either, so no data loss. + +## LRN-117 — Index-only staging past format noise: observation, strict control only (2026-11-04) +Observation, not a routine: worktree held uncommitted format-only Prettier changes (owner pending) on files a fix had to touch. Staging logic hunks onto HEAD text via `git hash-object -w` + `git update-index --cacheinfo` kept format noise out of commits. Risky: index content bypasses working-tree review. Only with strict control: apply hunks by exact-match script on `git show HEAD:`, prove equivalence (prettier(staged) == prettier(worktree)), run checks, inspect `git diff --cached`. Prefer resolving the noise first (owner decision) over routine index surgery.