Files
Synapse/LESSONS.md
T
dasemuandClaude Opus 5.5 f9137c9896 fix(core): harden merge rules and validation found in review
- page_tree shows orphans and parent cycles (from concurrent moves) as roots;
  descendants CTE and move_block ancestor walk are cycle-safe
- title conflicts compare titles only (not aliases), journals keep their title,
  and loser suffixes use the random id tail so they cannot collide
- aliases get an HLC and tombstones (last-writer-wins)
- remote page deletes cascade to blocks; LastChildOf validates the parent
- reject empty and date-shaped titles on create/rename; ensure_page redirects
  dates to journals; rename rewrites refs inside block properties
- single-row writes run inside savepoints; invalid remote asset hashes are
  ignored and never reach blob paths; HLC counter cannot overflow its width
- busy_timeout for multi-connection use; schema v2 migration

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-21 14:33:22 +02:00

808 B

Lessons

Recurring mistakes and how to avoid them. Add an entry when a mistake repeats.

  • flutter analyze crashes ("FormatException: Unexpected end of input" from the analysis server) when the project path has non-ASCII characters (~/Hacking/Darío/...). Use dart analyze locally; CI paths are ASCII so flutter analyze is fine there.
  • Generated FFI types share a namespace with Flutter widgets in Dart: avoid DTO names such as PageView, Page, Route in synapse-ffi.
  • Fedora's packaged cargo/rust (in /usr/bin) shadows rustup's toolchain in some shells; mixing them breaks target/ with E0514 ("compiled by an incompatible version of rustc"). Prefix commands with PATH="$HOME/.cargo/bin:$PATH" (the Stop hook already does) and check cargo --version before building.