Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions PLAN.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,13 +157,13 @@ This document tracks the implementation status of each major module in CORTEX. I
| Embedding Tests | ✅ Complete | `tests/embeddings/*.test.ts` | Provider resolver, runner, real/dummy backends |
| Backend Smoke Tests | ✅ Complete | `tests/BackendSmoke.test.ts` | All vector backends instantiate cleanly |
| Runtime Tests | ✅ Complete | `tests/runtime/*.spec.mjs` | Browser harness validated; Electron context-sensitive |
| Integration Tests | ❌ Missing | `tests/integration/*.test.ts` (planned) | End-to-end: ingest → persist → query → coherent result |
| Integration Tests | ✅ Complete | `tests/integration/IngestQuery.test.ts` | End-to-end: ingest → persist → query → verify results; persistence across sessions |
| Hotpath Policy Tests | ✅ Complete | `tests/HotpathPolicy.test.ts` | H(t) sublinearity and monotonicity; tier quota sums; community quota minimums; salience determinism |
| Salience Engine Tests | ✅ Complete | `tests/SalienceEngine.test.ts` | Bootstrap fills to H(t); steady-state eviction; community/tier quota enforcement; determinism |
| Scaling Benchmarks | ❌ Missing | `tests/benchmarks/HotpathScaling.bench.ts` (planned) | Synthetic graphs at 1K/10K/100K/1M; assert resident count ≤ H(t); query cost sublinear |
| Benchmarks | 🟡 Partial | `tests/benchmarks/DummyEmbedderHotpath.bench.ts` | Baseline dummy embedder benchmark; real-provider and hotpath scaling benchmarks needed |

**Testing Status:** 8/12 complete (67%)
**Testing Status:** 9/12 complete (75%)

---

Expand Down
4 changes: 2 additions & 2 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,13 +190,13 @@ These items **must** be completed to have a usable system. Without them, users c

**Why:** Prove the system works soup-to-nuts.

- [ ] **P0-E1:** Implement `tests/integration/IngestQuery.test.ts`
- [x] **P0-E1:** Implement `tests/integration/IngestQuery.test.ts`
- Ingest sample text corpus (e.g., Wikipedia articles)
- Query for specific topics
- Verify expected pages returned
- Verify persistence (restart session, query again)

- [ ] **P0-E2:** Run integration test in browser harness
- [x] **P0-E2:** Run integration test in browser harness
- Ensure real IndexedDB and OPFS work correctly
- Verify WebGPU/WebGL/WASM backends function
Comment on lines +193 to 201

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"test:unit": "vitest run tests/*.test.ts tests/**/*.test.ts",
"test:watch": "vitest tests/*.test.ts tests/**/*.test.ts",
"dev:harness": "bun scripts/runtime-harness-server.mjs",
"test:browser": "playwright test tests/runtime/browser-harness.spec.mjs",
"test:browser": "playwright test",
"test:electron": "bun scripts/run-electron-runtime-smoke.mjs",
"test:electron:playwright": "bun scripts/run-electron-runtime-tests.mjs",
"test:electron:desktop": "CORTEX_ELECTRON_HEADLESS=0 CORTEX_ELECTRON_SHOW=1 bun scripts/run-electron-runtime-smoke.mjs",
Expand Down
Loading
Loading