You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DESIGN.md
+8-11Lines changed: 8 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,5 @@
1
1
# CORTEX Design Specification
2
2
3
-
**Version:** 1.3
4
-
**Last Updated:** 2026-03-14
5
-
6
3
## Executive Summary
7
4
8
5
CORTEX (**C**lustered **O**ntic **R**outing **T**hrough **E**ntangled e**X**changes) is a neurobiologically inspired, fully on-device episodic memory engine for autonomous agents. It runs 100% in the browser with no servers, no cloud, and no telemetry. All memory stays local and private.
@@ -699,7 +696,7 @@ Ingest must remain fast and lightweight. At ingest time only two classes of edge
699
696
Full cross-edge reconnection is intentionally deferred: Daydreamer walks the graph during idle passes to build additional edges — connections we never noticed at ingest time — and strengthens or prunes them via LTP/LTD. This keeps ingest cost sublinear while converging to a well-connected graph over time.
700
697
701
698
**IndexedDB Schema Upgrade Strategy:**
702
-
During early development (pre-v1.0) the schema upgrade path intentionally drops and recreates object stores rather than migrating data. This keeps upgrade code minimal and avoids cruft until the data model stabilises. The neighbor graph is rebuilt from scratch after any ingest replay.
699
+
The schema upgrade path intentionally drops and recreates object stores rather than migrating data. This keeps upgrade code minimal and avoids cruft until the data model stabilises. The neighbor graph is rebuilt from scratch after any ingest replay.
703
700
704
701
## Consolidation Design
705
702
@@ -778,7 +775,7 @@ Keep cryptographic service separate from routing/storage concerns. All hashing/s
778
775
- Benchmark race (small batch inference)
779
776
- Telemetry-informed hint (cached winner from previous session)
780
777
781
-
### Performance Budgets (v1 Targets)
778
+
### Performance Budgets
782
779
783
780
| Operation | Target | Hardware Assumption |
784
781
|-----------|--------|---------------------|
@@ -802,22 +799,22 @@ All operations must complete on WASM fallback, albeit slower. The resident hotpa
|`nomic-ai/nomic-embed-text-v1.5`| 64 | To be added when nomic provider is wired |
886
883
887
-
**Enforcement:**`npm run guard:model-derived` scans for violations before CI merge. The guard now checks for `matryoshkaProtectedDim` in addition to the standard embedding dimension and context length fields.
884
+
**Enforcement:**`npm run guard:model-derived` scans for violations before CI merge. The guard checks for `matryoshkaProtectedDim` in addition to the standard embedding dimension and context length fields.
888
885
889
886
## Policy-Derived Constants
890
887
@@ -905,7 +902,7 @@ A parallel class of constants governs the Williams Bound hotpath architecture. T
905
902
906
903
**Enforcement:** Policy constants must not be hardcoded outside `core/HotpathPolicy.ts`. A companion guard or ESLint rule prevents silent duplication.
907
904
908
-
## Future Directions (Post-v1)
905
+
## Future Directions
909
906
910
907
-**Federated Sharing Optimization** — Better peer-ranking, deduplication, and prioritization for high-signal interest updates
911
908
-**Advanced Consolidation** — More sophisticated LTP/LTD policies
0 commit comments