Skip to content

Commit 5f3b22c

Browse files
committed
update: v0.6.2 - Restored Clustering, Fixed Build, and Refactored SCE Core
1 parent e46a019 commit 5f3b22c

14 files changed

Lines changed: 559 additions & 227 deletions

File tree

App.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
ChatMessage, SystemPrompt, SecurityRuleResult, ApiCall, ExtractionRule, EngineConfig, Dataset, GlobalConfig, Identity
66
} from './types';
77
import { INITIAL_GRAPH, INITIAL_SECURITY_RULES, INITIAL_SYSTEM_PROMPTS, INITIAL_EXTRACTION_RULES, INITIAL_IDENTITIES } from './constants';
8-
import { SCEEngine } from './lib/sceCore';
8+
import { SCEEngine } from './lib/sce/engine/SCEEngine';
99
import { extractEntities, queryJointly } from './services/llmService';
1010
import { ShieldAlert, X } from 'lucide-react';
1111
import ReactMarkdown from 'react-markdown';
@@ -58,7 +58,10 @@ const DEFAULT_CONFIG: EngineConfig = {
5858
enableMemoryExpansion: true,
5959
enablePruning: true,
6060
enableSpreadingActivation: true,
61+
enableHyperedges: true,
6162
safeMode: true,
63+
enableFirewall: true, // v0.6.3 default
64+
globalEnergyBudget: 10.0, // v0.6.3 default
6265
repulsionStrength: -1200,
6366
hybridRules: true,
6467
extractionProvider: 'groq',
@@ -182,7 +185,7 @@ const App: React.FC = () => {
182185
const config: EngineConfig = {
183186
...DEFAULT_CONFIG,
184187
...(globalConfig.engineConfig || {}), // Merge preserved logic/tuning
185-
memoryWindow: globalConfig.engineConfig?.memoryWindow || 6 // Ensure explicit override matches
188+
memoryWindow: globalConfig.engineConfig?.memoryWindow ?? 6 // Ensure explicit override matches
186189
};
187190
const securityRules = globalConfig.securityRules;
188191
const extractionRules = globalConfig.extractionRules;
@@ -956,6 +959,7 @@ const App: React.FC = () => {
956959
addAuditLog('system', `User Updated Node: ${id}`, 'success');
957960
}}
958961
graph={graph}
962+
onSelectNode={setSelectedNodeId}
959963
/>
960964
</div>
961965
</div>

README.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,12 @@ The result is memory that is:
5050
| Algorithmic Mesh Wiring | ✅ Implemented |
5151
| Data Hygiene (Strict Garbage Collection) | ✅ Implemented |
5252
| Accurate Telemetry (Performance metrics) | ✅ Implemented |
53-
| Node Connections (Natural Expansion) | ⚠️ In progress |
53+
| Node Connections (Natural Expansion) | ⚠️ Partly Implemented |
5454
| Hierarchical Auto-Clustering | ⚠️ In progress |
5555
| Prompt Optimization | ⚠️ In progress |
56-
| Production Ready | ⚠️ Research system |
57-
| Benchmarks | ❌ Community-needed |
56+
| Production Ready | ⚠️ Architecture Preview / Research system |
57+
| Optimization | ❌ Community-driven (once core is solidified) |
58+
| Benchmarks | ❌ Community-driven (once core is solidified) |
5859

5960
**License:** Apache 2.0 • **Maintainer:** [Sasu](https://www.sasus.dev)**Updates:** [docs/updates/](docs/updates/)
6061

@@ -197,10 +198,6 @@ Failure modes become visible instead of implicit.
197198

198199
## 🖥️ The Core Engine (UI & Orchestration)
199200

200-
The engine consists of two main components:
201-
- **[`lib/sce/`](lib/sce/)** - Modular Cognitive Engine (Orchestrator, Physics, Learning, Structure)
202-
- **[`components/CoreEngine.tsx`](components/CoreEngine.tsx)** - UI orchestration and visualization
203-
204201
### Engine Layout (v0.6+)
205202
- **Orchestrator**: [`lib/sce/engine/SCEEngine.ts`](lib/sce/engine/SCEEngine.ts) (Thin wrapper, manages subsystems)
206203
- **Graph**: `lib/sce/graph/` (Adjacency Index)
@@ -231,7 +228,7 @@ Think of it as **mission control for context assembly**—designed for debugging
231228
<p><sub><em>Security rules block harmful queries before LLM inference</em></sub></p>
232229
</div>
233230

234-
SCE is **not** a silver bulletbut it reshapes the threat landscape:
231+
SCE is **not** a silver bullet for all security concerns— but it reshapes the threat landscape:
235232

236233
| Attack Vector | RAG Systems | SCE |
237234
|--------------|-------------|-----|
@@ -395,7 +392,7 @@ This project is developed by a single independent dev, not a software company, n
395392

396393
**Project Status:** The core architecture is functional, but it needs more testing, tweaking and optimization. The current challenge is how the system creates connections / evolves / flows naturally (how the graph expands naturally and learns along the way). This require a deep dive / experimentations on hypergraphs, graph theory and cognitive architecture research.
397394

398-
**Why Open-Sourced:** While SCE was built to solve memory architecture challenges in games and digital twin systems, it was open-sourced specifically because of its potential to address many security concerns in current AI systems and perhaps even enable safer alignment. If this were purely about better memory optimization, it would have remained proprietary.
395+
**Why Open-Sourced:** While SCE was built to solve memory architecture challenges in games and digital twin systems, it was open-sourced specifically because of its potential to address many security concerns in current AI systems and perhaps enable safer alignment. If this were purely about better memory optimization, it would have remained proprietary.
399396

400397
**What's Needed from the Community:**
401398

0 commit comments

Comments
 (0)