Skip to content

Commit 619374d

Browse files
authored
Merge pull request #75 from devlux76/copilot/p0-x1-rename-metroidneighbor
2 parents 5d5a91f + e0601d6 commit 619374d

7 files changed

Lines changed: 31 additions & 315 deletions

File tree

ARCHITECTURE-REVIEW.md

Lines changed: 0 additions & 277 deletions
This file was deleted.

DESIGN.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -495,8 +495,6 @@ interface Edge {
495495
#### Semantic Neighbor (Proximity Edge)
496496
Sparse radius-graph edge connecting pages with high cosine similarity. Used for subgraph expansion during retrieval.
497497

498-
> **Note:** The current codebase names this type `MetroidNeighbor` — this is an architectural naming error introduced by early conceptual drift. The correct term is `SemanticNeighbor` (or equivalent). A code-level rename is tracked in the TODO. The edge is a proximity concept, not a Metroid concept.
499-
500498
**Critical distinction — two edge types, two roles:**
501499

502500
| Edge type | Storage | Role |
@@ -525,8 +523,6 @@ interface SemanticNeighbor {
525523
#### Semantic Neighbor Subgraph
526524
Induced subgraph for BFS-based coherence path expansion.
527525

528-
> **Note:** Currently named `MetroidSubgraph` in the codebase — same renaming correction applies.
529-
530526
```typescript
531527
interface SemanticNeighborSubgraph {
532528
nodes: Hash[];
@@ -587,7 +583,7 @@ Structured entity storage with automatic reverse indexes.
587583
**Object Stores:**
588584
- `pages`, `books`, `volumes`, `shelves`
589585
- `edges_hebbian` (Hebbian weights)
590-
- `neighbor_graph` (sparse semantic neighbor graph — currently named `metroid_neighbors` in code; rename tracked in TODO)
586+
- `neighbor_graph` (sparse semantic neighbor graph)
591587
- `flags` (dirty-volume recalc markers)
592588
- `page_to_book`, `book_to_volume`, `volume_to_shelf` (reverse indexes)
593589
- `hotpath_index` (periodic HOT-membership checkpoint, keyed by `entityId`; loaded on startup to reconstruct the RAM resident index; written by Daydreamer each maintenance cycle)
@@ -789,7 +785,7 @@ Matryoshka dimensional unwinding. Runs the thesis→freeze→antithesis→synthe
789785
search; m2 via cosine-opposite medoid; c computed once and frozen; subsequent candidates evaluated
790786
relative to frozen c. Planned module: `cortex/MetroidBuilder.ts`.
791787

792-
**Semantic neighbor graph** (also: proximity graph, neighbor graph): The sparse radius-graph of cosine-similarity edges between pages, used for subgraph expansion during retrieval. This is **not** the same as a Metroid. The edges connect pages with high cosine similarity and are used for BFS expansion. Currently named `MetroidNeighbor` / `metroid_neighbors` in the codebase — this is a naming error that must be corrected (tracked in TODO as P0-X).
788+
**Semantic neighbor graph** (also: proximity graph, neighbor graph): The sparse radius-graph of cosine-similarity edges between pages, used for subgraph expansion during retrieval. This is **not** the same as a Metroid. The edges connect pages with high cosine similarity and are used for BFS expansion.
793789

794790
**Hotpath**: The in-memory resident index of H(t) entries spanning all four hierarchy tiers. The hotpath is the first lookup target for every query; misses spill to WARM/COLD storage. HOT membership and salience are checkpointed to the `hotpath_index` IndexedDB store by Daydreamer each maintenance cycle, allowing the RAM index to be restored after a page reload or machine reboot without full corpus replay.
795791

0 commit comments

Comments
 (0)