Skip to content

Commit 9156b26

Browse files
Copilotdevlux76
andcommitted
Refactor README.md and add docs/api.md + docs/development.md
Co-authored-by: devlux76 <86517969+devlux76@users.noreply.github.com>
1 parent 394dd67 commit 9156b26

3 files changed

Lines changed: 672 additions & 63 deletions

File tree

README.md

Lines changed: 19 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -6,68 +6,6 @@ A neurobiologically inspired, fully on-device epistemic memory engine for autono
66

77
> "The library of dreams is not a collection of words but of things that words have touched — and how those things feel from the inside."
88
9-
## Execution Update (2026-03-11)
10-
11-
Canonical documentation contract:
12-
1. Product vision and non-negotiables: `README.md`
13-
2. Architecture contracts and capability backlog: `CORTEX-DESIGN-PLAN-TODO.md`
14-
3. Execution sequencing, command contract, and test gates: `PROJECT-EXECUTION-PLAN.md`
15-
16-
Current implementation snapshot:
17-
1. Foundation, storage schema, and vector backend abstractions are implemented.
18-
2. Model-profile-driven numeric ownership is implemented and guarded by `npm run guard:model-derived`.
19-
3. Adaptive embedding resolver infrastructure exists, but real providers are still being wired.
20-
4. Runtime harness and browser lane are implemented (`npm run dev:harness`, `npm run test:browser`).
21-
5. Electron lane is runtime-context-sensitive on host shells; the containerized debug lane is now validated as the preferred sandbox-isolated debugging path (`Electron: Docker Main + Renderer`).
22-
6. Hippocampus/Cortex/Daydreamer orchestration layers remain the primary vertical-slice gap.
23-
24-
Current delivery priorities (P0):
25-
1. Keep docs synchronized to real code state on every implementation pass.
26-
2. Stabilize Electron provisioning in CI so `runtime-electron` can run as a hard gate.
27-
3. Wire first real embedding providers into runtime selection path.
28-
4. Implement Hippocampus ingest and Cortex retrieval vertical slices with strict TDD.
29-
5. Preserve model-derived defaults and avoid hardcoded model-dependent numerics.
30-
31-
Session-close update checklist (required):
32-
1. Update `PROJECT-EXECUTION-PLAN.md` pass status with completed work and exact commands run.
33-
2. Update `CORTEX-DESIGN-PLAN-TODO.md` status matrix when implementation state changes.
34-
3. Record blockers with file path, failure symptom, and next action.
35-
4. Confirm README priorities still match the real top blocker.
36-
37-
VS Code debugging setup (Electron docs aligned):
38-
1. Launch config file: `.vscode/launch.json`
39-
2. Task file: `.vscode/tasks.json`
40-
3. Main-process debug entry: `Electron: Debug Main (Harness)`
41-
4. Renderer attach entry: `Electron: Attach Renderer`
42-
5. Combined session: `Electron: Main + Renderer`
43-
6. Docker combined attach session: `Electron: Docker Main + Renderer`
44-
7. Docker startup task (auto from launch): `docker:electron:up`
45-
8. Docker stop task (auto from launch): `docker:electron:down`
46-
9. Shell fallback launcher: `./scripts/launch-electron-harness.sh`
47-
10. If Electron exits with `SIGSEGV` in host shell contexts, use the Docker attach flow before treating it as an app-level failure.
48-
49-
Docker debug quick start:
50-
1. In VS Code Run and Debug, launch `Electron: Docker Main + Renderer` (this auto-runs `docker:electron:up`).
51-
2. If you need manual control, start the lane with `npm run docker:electron:up` and stop it with `npm run docker:electron:down`.
52-
53-
Expected container log noise (non-fatal):
54-
1. `dbus/bus.cc` connection warnings are expected in slim container environments without a system DBus daemon.
55-
2. `WebGL2 blocklisted` is expected with software rendering in Xvfb; this does not imply Electron main-process crash.
56-
57-
Night handoff note (2026-03-12):
58-
1. Runtime debugging status: `Electron: Docker Main + Renderer` is the validated sandbox-isolated debug path.
59-
2. Host-shell context status: local host-shell Electron runs can still fail with `SIGSEGV`; treat Docker attach as source of truth for debugger stability.
60-
3. Runtime realism status: Docker lane is software-rendered and is not the final GPU-realism gate.
61-
4. Tomorrow kickoff step 1: add real provider adapters in embeddings runtime (`Transformers` path for `webnn/webgpu/wasm`, explicit ORT path for `webgl`).
62-
5. Tomorrow kickoff step 2: add failing-first tests for provider registration and selection behavior, then implement to green.
63-
6. Tomorrow kickoff step 3: build first `Hippocampus` ingest slice with resolved model profile values.
64-
7. Tomorrow kickoff step 4: build first `Cortex` retrieval slice with deterministic baseline ordering.
65-
8. First commands for tomorrow: `npm run test:unit`, `npm run test:browser`, then `npm run docker:electron:up` with VS Code debug `Electron: Docker Main + Renderer`.
66-
67-
Docs note:
68-
1. Numeric examples in design docs are illustrative unless explicitly sourced from model metadata.
69-
2. Legacy sketch docs were retired; canonical architecture lives in `CORTEX-DESIGN-PLAN-TODO.md` and execution sequencing lives in `PROJECT-EXECUTION-PLAN.md`.
70-
719
## What is CORTEX?
7210

7311
Modern agents are great at *retrieving* facts.
@@ -89,7 +27,7 @@ When new observations arrive, Hippocampus immediately:
8927
- Performs lightning-fast WebGPU multi-prototype lookups
9028
- Builds hierarchical prototypes (Pages → Books → Volumes → Shelves)
9129
- Creates probabilistic Hebbian edges
92-
- Stores raw vectors in an append-only OPFS file (`vortex_vectors.bin`)
30+
- Stores raw vectors in an append-only OPFS file (e.g. `vortex_vectors.bin`)
9331

9432
This is the rapid, multi-path "write" system that turns raw experience into structured memory scaffolding.
9533

@@ -120,3 +58,21 @@ This is the "dreaming" phase that prevents catastrophic forgetting and forces ab
12058
- **Hierarchical & Sparse** — Progressive dimensionality reduction + medoid clustering keeps memory efficient at any scale.
12159
- **Hebbian & Dynamic** — Connections strengthen and weaken naturally.
12260
- **Zero-Copy & Persistent** — OPFS + IndexedDB with cryptographic signing.
61+
62+
## Quick Start
63+
64+
```sh
65+
npm install
66+
npm run build # type-check
67+
npm run test:unit # unit tests
68+
npm run dev:harness # start the browser runtime harness at http://127.0.0.1:4173
69+
```
70+
71+
## Documentation
72+
73+
| Document | Purpose |
74+
|---|---|
75+
| [`docs/api.md`](docs/api.md) | API reference for developers integrating with CORTEX |
76+
| [`docs/development.md`](docs/development.md) | Build, test, debug, and Docker workflow |
77+
| [`CORTEX-DESIGN-PLAN-TODO.md`](CORTEX-DESIGN-PLAN-TODO.md) | Architecture contracts and capability backlog |
78+
| [`PROJECT-EXECUTION-PLAN.md`](PROJECT-EXECUTION-PLAN.md) | Execution sequencing and test gates |

0 commit comments

Comments
 (0)