-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
P2: mediumMedium priority — targets v1.0Medium priority — targets v1.0layer: daydreamerBackground consolidation (LTP/LTD, recalc)Background consolidation (LTP/LTD, recalc)
Milestone
Description
Why: Incremental fast semantic neighbor insert is approximate; need periodic full recalc. Recalc batch size must be bounded by H(t)-derived maintenance budget to avoid blocking the idle loop.
-
P2-C1: Implement
daydreamer/FullNeighborRecalc.ts- Query
MetadataStore.needsNeighborRecalc(volumeId)for dirty volumes; prioritise dirtiest first - Load all pages in volume; compute pairwise similarities
- Bound batch: process at most
HotpathPolicy.computeCapacity(graphMass)pairwise comparisons per idle cycle (O(√(t log t))) - Select policy-derived max neighbors for each page; update
MetadataStore.putSemanticNeighbors - Clear dirty flag via
MetadataStore.clearNeighborRecalcFlag - Recompute σ(v) for affected nodes via
SalienceEngine.batchComputeSalience; run promotion sweep
- Query
-
P2-C2: Add neighbor graph recalc test coverage
tests/daydreamer/FullNeighborRecalc.test.ts- Test dirty flag cleared after recalc
- Test neighbor quality improved vs fast insert
- Test batch size respects O(√(t log t)) limit per cycle
- Test salience recomputed and promotion sweep runs after recalc
Exit Criteria: Dirty volumes are recalculated in background within bounded compute budget; salience updated.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P2: mediumMedium priority — targets v1.0Medium priority — targets v1.0layer: daydreamerBackground consolidation (LTP/LTD, recalc)Background consolidation (LTP/LTD, recalc)