chore(memory): LRN-115 to LRN-117, EVAL-042 from the V1-2.6 checkpoint

This commit is contained in:
bchanot committed 2026-11-04 19:14:56 +01:00
1 parent 283e459077
commit 67480b2fc2
2 files changed
+12

No files matched your search

+9
View File
@@ -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 <durable path> <existing branch>` → 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 `<dialog>` 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:<file>`, prove equivalence (prettier(staged) == prettier(worktree)), run checks, inspect `git diff --cached`. Prefer resolving the noise first (owner decision) over routine index surgery.