pcbjam/docs/features/ysync-review
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Gergő Törcsvári 62ca571802
feat(ysync): lib_symbols travel + layout save-sync (miss 08), TS hot-path opts (12), diff-on-rebind adopt (13) — doc 18
Miss 08A: the binding stores wire-carried (lib_symbols …) definitions in
kdoc_libsymbols and prefixes them on apply wires — a joiner that never saw a
symbol adopts it WITH its definition (new e2e ysync-libsymbols.spec.ts).
Miss 08B: registerSaveHook gains onSavedText; WasmTool routes saved-file text
to syncLayoutToY (per sheet room via the manager's syncLayoutFromSave, or the
single-room doc) so title block / paper / setup edits converge instead of
drifting. Opt 12 (TS half): zod off the observer hot path (yToItemUnchecked),
children index built once per conversion. Opt 13: seed()'s adopt diffs the
editor snapshot against the doc view and applies only the doc-authoritative
difference — clean rebinds apply nothing, the adopt undo entry shrinks to the
real changed set. Opt 14 deliberately deferred (doc 18). All TS-side; no wasm
rebuild (the C++ blob/findLib sides already carried definitions).

Verified: shared 107, standalone 79 (+2 known pre-existing wasm-assets),
ysync e2e 21/21 chromium, collab regression 21/3-skip firefox.

Bumps: web/pcbjam-shared (lib_symbols channel + syncLayoutToY + opts).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JgThWXtdvrYLK47EDFoGdq
2026-07-06 08:57:58 +02:00
..
00-overview.md feat(ysync): lib_symbols travel + layout save-sync (miss 08), TS hot-path opts (12), diff-on-rebind adopt (13) — doc 18 2026-07-06 08:57:58 +02:00
01-bug-first-tab-listener-never-registered.md fix(ysync): review bugs 01–07 — listener registration, pad nets, child removals, dirty-set emit, targeted rebaseline, seed arbitration, stale hook (doc 17) 2026-07-06 08:57:57 +02:00
02-bug-footprint-blob-zeroes-pad-nets.md fix(ysync): review bugs 01–07 — listener registration, pad nets, child removals, dirty-set emit, targeted rebaseline, seed arbitration, stale hook (doc 17) 2026-07-06 08:57:57 +02:00
03-bug-child-removal-dangling-slot.md fix(ysync): review bugs 01–07 — listener registration, pad nets, child removals, dirty-set emit, targeted rebaseline, seed arbitration, stale hook (doc 17) 2026-07-06 08:57:57 +02:00
04-bug-lossy-change-detection.md fix(ysync): review bugs 01–07 — listener registration, pad nets, child removals, dirty-set emit, targeted rebaseline, seed arbitration, stale hook (doc 17) 2026-07-06 08:57:57 +02:00
05-bug-rebaseline-swallows-local-edits.md fix(ysync): review bugs 01–07 — listener registration, pad nets, child removals, dirty-set emit, targeted rebaseline, seed arbitration, stale hook (doc 17) 2026-07-06 08:57:57 +02:00
06-bug-concurrent-seed-duplicates-layout.md fix(ysync): review bugs 01–07 — listener registration, pad nets, child removals, dirty-set emit, targeted rebaseline, seed arbitration, stale hook (doc 17) 2026-07-06 08:57:57 +02:00
07-bug-sheet-switch-stale-down-hook.md fix(ysync): review bugs 01–07 — listener registration, pad nets, child removals, dirty-set emit, targeted rebaseline, seed arbitration, stale hook (doc 17) 2026-07-06 08:57:57 +02:00
08-miss-layout-state-never-syncs.md feat(ysync): lib_symbols travel + layout save-sync (miss 08), TS hot-path opts (12), diff-on-rebind adopt (13) — doc 18 2026-07-06 08:57:58 +02:00
09-miss-undo-not-collab-aware.md docs(ysync-review): repro suite results + empirical findings (doc 16); plan 15 executed 2026-07-06 08:56:11 +02:00
10-miss-no-repair-path.md docs(ysync-review): repro suite results + empirical findings (doc 16); plan 15 executed 2026-07-06 08:56:11 +02:00
11-miss-no-v2-e2e-coverage.md docs(ysync-review): repro suite results + empirical findings (doc 16); plan 15 executed 2026-07-06 08:56:11 +02:00
12-opt-hot-path-full-model-work.md feat(ysync): lib_symbols travel + layout save-sync (miss 08), TS hot-path opts (12), diff-on-rebind adopt (13) — doc 18 2026-07-06 08:57:58 +02:00
13-opt-parked-dirty-full-sheet-replace.md feat(ysync): lib_symbols travel + layout save-sync (miss 08), TS hot-path opts (12), diff-on-rebind adopt (13) — doc 18 2026-07-06 08:57:58 +02:00
14-opt-item-granularity-bandwidth.md feat(ysync): lib_symbols travel + layout save-sync (miss 08), TS hot-path opts (12), diff-on-rebind adopt (13) — doc 18 2026-07-06 08:57:58 +02:00
15-plan-repro-tests-and-v2-e2e.md docs(ysync-review): repro suite results + empirical findings (doc 16); plan 15 executed 2026-07-06 08:56:11 +02:00
16-repro-suite-results-and-empirical-findings.md docs(ysync-review): repro suite results + empirical findings (doc 16); plan 15 executed 2026-07-06 08:56:11 +02:00
17-fixes-bugs-01-07.md fix(ysync): review bugs 01–07 — listener registration, pad nets, child removals, dirty-set emit, targeted rebaseline, seed arbitration, stale hook (doc 17) 2026-07-06 08:57:57 +02:00
18-miss08-opts-12-13.md feat(ysync): lib_symbols travel + layout save-sync (miss 08), TS hot-path opts (12), diff-on-rebind adopt (13) — doc 18 2026-07-06 08:57:58 +02:00