fix(viewer): preserve symbolic buckets across spatial refresh
Fix symbolic annotation cache results when identical IFC source bytes are paired with refreshed or edited spatial relationships.
The worker's flat parse remains cached by source content and RTC frame. Bucketed results use one immutable spatial snapshot for both the cache key and bucket assembly. With no mutation overlay, parsed hierarchy maps remain the source fallback. With pending edits, viewer effective storey groups supply containment, aggregate ancestry, authored/deleted storeys, and effective elevations. Each federated store is paired only with its own mutation view. Finite primitive world Y remains authoritative; unresolved primitive elevations use the live effective storey mapping. Tombstoned owners are filtered from the assembled result.
Snapshot work is memoized by store, map identity, mutation view, and mutation revision, so repeated hook reads are constant-time. The flat worker cache, global bucket cache, and per-room bucket cache are each capped at 32 entries. Negative entity-index prefilter results are not cached as worker output, and prefilter presence is included in the result key.
Validation: focused root Turbo viewer test 6/6 passed (useSymbolicAnnotations.cacheKeySpatial.test.ts); root pnpm typecheck passed (109 Turbo tasks, 3,058 tests typed). check-module-size, check-raw-entity-enumeration (20 spatial sites, 0 awaiting classification), diff check, and touched-file oxlint passed.