release: v1.12.0 Nexus Consolidation#27
Open
sairam0424 wants to merge 85 commits into
Open
Conversation
…preferences, skills, anti-patterns, decisions, changelog)
… AGENTS_LEARNING.md
Feat/time series memory
docs: add session notes and project isolation insights to AGENTS_LEAR…
…monorepo packages
Migrated from runtime O(N^2) graph computation to a persistent SQLite-backed adjacency mesh for near-instant retrieval.
Added Ollama as a local embedding provider and transitioned to Chokidar for more stable, cross-platform file watching.
Initialized a modern Vite+React workspace for the dashboard. Implemented a 3D Knowledge Graph with Three.js and a glassmorphic HUD design.
Updated the dashboard command to serve the production build of the React HUD. Implemented SPA routing and CORS support for local development.
…rd to tailwind v4 - Updated federated-intelligence.test.ts to seed graph edges in mock database - Upgraded workspace-dashboard to Tailwind v4 (CSS-first architecture) - Removed legacy tailwind.config.js and updated vite/css configs - Updated package-lock.json with required dependencies
Replace 6 separate DatabaseService instances with a single lazy getSharedDatabase() factory. Fixes embedding isolation bug where intelligence queue writes were invisible to the search pipeline. Adds schema migration for existing databases missing columns added after initial table creation (status, is_private, intelligence_status, hash). Also fixes lock acquisition always returning true by verifying ownership post-upsert instead of trusting SQLite change count.
- Replace exec() with execFile() for grep fallback (CWE-78 fix) - Switch grep from -E (regex) to -F (fixed string) with 10s timeout to prevent ReDoS via user-controlled patterns (CWE-1333) - Sanitize FTS5 MATCH queries by quoting input to prevent operator injection (CWE-89 variant) - Remove MiniSearch in-memory index — FTS5 is the sole keyword engine - Generate real query embeddings instead of passing empty Float32Array - Add dimension guard: skip semantic search when embedding is empty - Wire Spatial RAG anchor parameter through MCP workspace_search tool - Unify SearchResult type to 'hybrid' | 'deep'
- Fix tag extraction: return combined body+frontmatter tags instead of frontmatter-only (indexer.ts) - Fix removeFile: clean up orphaned edges and symbols before deleting the document record - Add access_log pruning (24h TTL) on Sentinel startup and hourly - Implement 2nd-degree graph affinity with 0.3x decay weighting - Add getDocumentById() to avoid O(N) scan in intelligence queue - Harden repair service against prompt injection: truncate content, strip path to basename, add explicit ignore instruction, validate LLM output body-similarity before writing to disk - Add repair debounce in WatchService to prevent re-entry loop
Dashboard server: - Fix path traversal in static file serving (CWE-22) — resolve and verify all paths stay within dashboardDist before serving - Restrict CORS from wildcard to localhost:port origin (CWE-942) - Add POST body size limit (4KB) with overflow detection - Add WebSocket message size limit (8KB) and payload type validation - Switch browser launch from exec() to execFile() - Stream static files via createReadStream().pipe() instead of blocking readFileSync() Dashboard frontend: - Fix WebSocket reconnection leak — cancelled flag prevents zombie connections on unmount, clearTimeout on cleanup - Fix stale closure via graphDataRef in onmessage handler - Fix progress bar operator precedence (Math.max instead of ||) - Add ErrorBoundary around AetherGraph for Three.js crash recovery
New suites: - locking.test.ts: acquire, contention, refresh, release, expiry - knowledge-graph.test.ts: document/symbol/tag nodes, edge construction - intelligence-queue.test.ts: enqueue, dequeue, status transitions - repair.test.ts: rule-based frontmatter injection, API-less fallback - capability.test.ts: defaults, wildcard matching, reload Updated existing tests to use 'hybrid'|'deep' result types after MiniSearch removal and SearchResult type unification.
Strict version parity across all 5 manifests. Source code directories (packages/, workspace-*) now read-only for AI agents to prevent self-modification via MCP. MCP server reads version from package.json instead of hardcoding. CHANGELOG and AGENTS.md updated for v1.12.0 release.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ContextOS v1.12.0 "Nexus Consolidation" — zero new features, 15 security fixes, 7 architectural corrections, 5 new test suites. Published to npm.
What changed
getSharedDatabase(), fixing embedding isolation bugexec→execFile), path traversal in dashboard static serving blocked, CORS restricted to localhost, prompt injection defense in repair service, source code directories marked read-only for agentsSecurity fixes (15 total)
npm packages published
@context-os/core@1.12.0@context-os/cli@1.12.0@context-os/mcp@1.12.0Test plan
npm run build— 4/4 workspaces cleannpm run validate— all hooks pass