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
| Storage contracts and persistence schema | Implemented |`core/types.ts`, `storage/OPFSVectorStore.ts`, `storage/IndexedDbMetadataStore.ts`, `tests/Persistence.test.ts`| Current tests are Node-lane with mocked browser APIs. |
95
95
| Model-derived numeric governance | Implemented |`core/ModelProfile.ts`, `core/ModelDefaults.ts`, `core/ModelProfileResolver.ts`, `Policy.ts`, `scripts/guard-model-derived.mjs`| Guard command enforced by `npm run guard:model-derived`. |
96
96
| Adaptive provider resolver infrastructure | Partial |`embeddings/ProviderResolver.ts`, `embeddings/EmbeddingRunner.ts`| Real providers not yet wired; dummy provider baseline exists. |
97
-
| Browser/Electron runtime-realism lanes | Partial |`playwright.config.mjs`, `runtime/harness/index.html`, `tests/runtime/browser-harness.spec.mjs`, `tests/runtime/electron-harness.spec.mjs`, `.vscode/launch.json`, `.vscode/tasks.json`, `docker/electron-debug/Dockerfile`, `docker-compose.electron-debug.yml`| Browser lane passes; Electron host-shell runs can `SIGSEGV` in constrained contexts. Dockerized attach flow is now available, but CI/runtime-context policy is still pending. |
97
+
| Browser/Electron runtime-realism lanes | Partial |`playwright.config.mjs`, `runtime/harness/index.html`, `tests/runtime/browser-harness.spec.mjs`, `tests/runtime/electron-harness.spec.mjs`, `.vscode/launch.json`, `.vscode/tasks.json`, `docker/electron-debug/Dockerfile`, `docker-compose.electron-debug.yml`| Browser lane passes; Electron host-shell runs can `SIGSEGV` in constrained contexts. Dockerized attach flow is validated for sandbox-isolated debugging, while CI/runtime-context policy is still pending. |
- no `SIGSEGV` observed inside container during smoke window
93
+
23. Host-side VS Code attach behavior is now validated for the Docker lane:
94
+
- user desktop debug run showed both endpoints active
95
+
-`Debugger attached.` observed for attach sessions during `Electron: Docker Main + Renderer`
96
+
24. Hardened Docker startup sequencing to avoid attach races:
97
+
-`docker/electron-debug/entrypoint.sh` now waits for live debugger endpoints before emitting ready markers
98
+
-`docker/electron-debug/Dockerfile` now includes `curl` for readiness probes
93
99
94
100
Open items carried to next pass:
95
101
1. Wire resolved `ModelProfile` into first concrete ingest/query orchestrator path.
96
102
2. Add real embedding providers (ONNX/Transformers/WebNN/WebGPU/WebGL/WASM) as candidates for the resolver.
97
-
3.Validate full VS Code host attach cycle against the Docker lane (`Electron: Docker Main + Renderer`) and codify it as the runtime-electron context contract when host-shell runs are unstable.
103
+
3.Codify Docker lane as the default sandbox-isolated Electron debugging contract and document when host-shell Electron is still required.
98
104
4. Define CI prerequisites for the chosen runtime-electron context (binary + graphics/runtime assumptions) and enforce one canonical gate.
99
105
5. Implement first Hippocampus/Cortex vertical slice on top of runtime harness lanes.
100
106
107
+
### Night Handoff Note (2026-03-12)
108
+
109
+
Where we are now:
110
+
1. Docker Electron debug lane is stable for sandbox-isolated debugging and VS Code attach.
111
+
2. Host-shell Electron remains environment-sensitive and can still fail with `SIGSEGV` in constrained contexts.
112
+
3. Browser runtime lane is validated and should remain part of the merge confidence path.
113
+
4. Docker lane runs software rendering, so it is a debugger-stability lane rather than final GPU-realism proof.
114
+
115
+
Tomorrow's first coding steps:
116
+
1. Add failing tests for real-provider registration + capability-driven selection in embeddings runtime.
117
+
2. Implement `embeddings/TransformersEmbeddingBackend.ts` and wire it into resolver candidates.
118
+
3. Implement `embeddings/OrtWebglEmbeddingBackend.ts` and wire explicit `webgl` fallback path.
119
+
4. Implement first `Hippocampus` ingest entry point with profile-derived defaults.
120
+
5. Implement first `Cortex` retrieval entry point with deterministic baseline ordering.
121
+
122
+
Tomorrow startup commands:
123
+
1.`npm run test:unit`
124
+
2.`npm run test:browser`
125
+
3.`npm run docker:electron:up`
126
+
4. VS Code debug: `Electron: Docker Main + Renderer`
At the end of every implementation pass, update docs in this order:
@@ -265,10 +292,10 @@ Planned commands to add in later passes:
265
292
266
293
1. Blocker A - File path: `scripts/electron-harness-main.mjs`, `.vscode/launch.json`, `scripts/run-electron-runtime-smoke.mjs`
267
294
2. Blocker A - Failure symptom: Electron exits with `SIGSEGV` (`139`) in this tool-executed terminal context for both desktop-style and headless/software-style launches, despite Electron being installed and harness server reachability.
268
-
3. Blocker A - Next action: run the containerized attach flow (`npm run docker:electron:up` + `Electron: Docker Main + Renderer`) and treat host-shell crashes as environment-limited unless reproducible in the Docker lane.
269
-
4. Blocker B - File path: `.vscode/launch.json`, `.vscode/tasks.json`, `docker-compose.electron-debug.yml`
270
-
5. Blocker B - Failure symptom: Docker lane now builds and starts cleanly, but host-side VS Code attach/breakpoint workflow against that lane has not yet been validated in-session.
271
-
6. Blocker B - Next action: run `Electron: Docker Main + Renderer` from VS Code, verify main + renderer breakpoint binding, then lock CI/runtime-electron contract to that validated context.
295
+
3. Blocker A - Next action: use the Docker attach flow (`Electron: Docker Main + Renderer`) as the default debugging lane and treat host-shell crashes as environment-limited unless reproducible in Docker.
296
+
4. Blocker B - File path: `docker/electron-debug/Dockerfile`, `docker/electron-debug/entrypoint.sh`, runtime lane policy docs
297
+
5. Blocker B - Failure symptom: Docker lane runs under software rendering (`webgpu`/`webgl` unavailable or blocklisted), so it is strong for debugger stability but not a full GPU-realism proxy.
298
+
6. Blocker B - Next action: keep Docker as debug isolation lane and define a separate GPU-capable runtime-electron gate context for realism-sensitive verification.
Copy file name to clipboardExpand all lines: README.md
+15-1Lines changed: 15 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ Current implementation snapshot:
18
18
2. Model-profile-driven numeric ownership is implemented and guarded by `npm run guard:model-derived`.
19
19
3. Adaptive embedding resolver infrastructure exists, but real providers are still being wired.
20
20
4. Runtime harness and browser lane are implemented (`npm run dev:harness`, `npm run test:browser`).
21
-
5. Electron lane is wired but runtime-context-sensitive on host shells; a containerized debug lane is now available to isolate from editor/runtime sandbox effects (`npm run docker:electron:up`, then attach with `Electron: Docker Main + Renderer`).
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
22
6. Hippocampus/Cortex/Daydreamer orchestration layers remain the primary vertical-slice gap.
23
23
24
24
Current delivery priorities (P0):
@@ -50,6 +50,20 @@ Docker debug quick start:
50
50
1. In VS Code Run and Debug, launch `Electron: Docker Main + Renderer` (this auto-runs `docker:electron:up`).
51
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
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
+
53
67
Docs note:
54
68
1. Numeric examples in design docs are illustrative unless explicitly sourced from model metadata.
55
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`.
0 commit comments