Skip to content

Commit 1f11431

Browse files
authored
Merge pull request #53 from devlux76/copilot/p0-e-end-to-end-integration
2 parents d516404 + bfa8db4 commit 1f11431

5 files changed

Lines changed: 575 additions & 5 deletions

File tree

PLAN.md

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

166-
**Testing Status:** 8/12 complete (67%)
166+
**Testing Status:** 9/12 complete (75%)
167167

168168
---
169169

TODO.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,13 +190,13 @@ These items **must** be completed to have a usable system. Without them, users c
190190

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

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

199-
- [ ] **P0-E2:** Run integration test in browser harness
199+
- [x] **P0-E2:** Run integration test in browser harness
200200
- Ensure real IndexedDB and OPFS work correctly
201201
- Verify WebGPU/WebGL/WASM backends function
202202

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"test:unit": "vitest run tests/*.test.ts tests/**/*.test.ts",
1212
"test:watch": "vitest tests/*.test.ts tests/**/*.test.ts",
1313
"dev:harness": "bun scripts/runtime-harness-server.mjs",
14-
"test:browser": "playwright test tests/runtime/browser-harness.spec.mjs",
14+
"test:browser": "playwright test",
1515
"test:electron": "bun scripts/run-electron-runtime-smoke.mjs",
1616
"test:electron:playwright": "bun scripts/run-electron-runtime-tests.mjs",
1717
"test:electron:desktop": "CORTEX_ELECTRON_HEADLESS=0 CORTEX_ELECTRON_SHOW=1 bun scripts/run-electron-runtime-smoke.mjs",

0 commit comments

Comments
 (0)