chore(memory): BDR-100, LRN-118, TODO and journal for the V1-2.6 ratification

This commit is contained in:
bchanot committed 2026-11-05 19:06:48 +01:00
1 parent bd444d6906
commit a505b24bfd
4 files changed
+30 -2

No files matched your search

+7
View File
@@ -800,3 +800,10 @@ Native modal `<dialog>` closing with exit animation leaves page inert until anim
## 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.
## LRN-118 — Wasm budget margin: measure with the gate's exact call (Node gzipSync level 9 on pkg), never system gzip, never raise silently (2026-11-05)
- **Context**: V1-2.6 UX prep, 2026-11-05. Earlier study measured wasm with GNU `gzip -9` (583 126 B) and claimed ~17 KB margin. Gate measures otherwise: real margin 7 857 B. Owner asked rule recorded.
- **Gate (verified in repo)**: `packages/core-wasm/tests/size.test.ts` runs Node `gzipSync(bytes, { level: 9 })` on shipped build `packages/core-wasm/pkg/faunosteo_wasm_bg.wasm` (`coreWasmPath('pkg')`), asserts `toBeLessThanOrEqual(COMPRESSED_BUDGET_BYTES)`, `COMPRESSED_BUDGET_BYTES = 600_000` (D-R13).
- **Reference**: 592 143 B of 600 000 B → margin 7 857 B (raw 1 569 864 B; pkg built 2026-11-04 after last core change `bbab0e6`; re-measured 2026-11-05 with same call, same figure).
- **Rule**: margin = same call, same params (`level: 9`), same `pkg` file as gate. No system gzip substitute: results differ. Measure after every core change (each new op). Never raise ceiling silently: raise = explicit owner decision (D-R13) on measured figure.
- **How**: after `pnpm wasm:build`, run size test (prints figure) or `node -e` with `zlib.gzipSync(buf, {level: 9})` on that file.