How nv5466/deltahyperion works
Purpose and Entry Points
DeltaHyperion DH2 is a Windows-oriented, local research runtime for a persistent artificial subject (“Delta”), emphasizing continuity, bounded agency, local privacy, and controlled external actuation. Primary lifecycle entry point is delta.ps1; desktop interaction enters through delta_desktop_launcher.py, which uses the direct launcher rather than OpenClaw’s generic UI. Legacy stack scripts remain separate compatibility paths.
Paths: delta.ps1, delta_desktop_launcher.py, delta_launcher.py
Runtime Orchestration and Agency
The runtime is composed of supervised loops and decision subsystems rather than a single web service. Startup resolves project/state roots, reads local bridge/launcher configuration, and starts missing services. Agency combines goals, endogenous state, decision logic, autonomy supervision, and preservation constraints before an action is authorized.
Paths: delta_autonomy_supervisor.py, delta_agency_engine.py, delta_decision.py
State, Continuity, and Persistence Boundary
Mutable runtime state belongs outside the checkout under DELTA_STATE_ROOT; new code should resolve this through configuration and persist through the storage layer. The repository retains many tracked JSON/JSONL files as legacy/migration artifacts. DeltaDB/MuDB provides canonical continuity indexing, migrations, repository access, and workers; snapshots, backup, lifecycle, and retention support recovery and bounded history.
Paths: delta_config.py, delta_storage.py, deltadb/database.py
Context Assembly and Retrieval
Conversation and decision inputs are assembled from explicitly scoped sources: files, memories, conversations, command outputs, live state, and optionally DCode evidence. The retrieval package routes requests, gathers evidence, fuses/reranks it, emits prompt packets, and records receipts. Prompt-boundary and redaction layers constrain what reaches model calls.
Paths: delta_retrieval/router.py, delta_retrieval/fusion.py, delta_prompt_boundary.py
Models and Execution Interfaces
Local model execution is centered on Ollama, with profiles, scheduling, queues, workers, and topology support. Modelfiles and the training subtree support local fine-tuning/export workflows, but training is a separate pipeline from the operational runtime. The direct launcher bridges user messages to runtime/model execution; the desktop client exposes Chat, Runtime, Dashboard, Logs, and Settings.
Paths: delta_ollama_client.py, delta_model_scheduler.py, delta_launcher_bridge.py
Safety, Governance, and External Boundaries
The core boundary is that persistent identity, memory, private context, and continuity data remain local. Containment, runtime security, egress validation, secret redaction, contact/message safety, and self-modification gating regulate effects and disclosures. Policies and causal receipts make decisions and external results auditable.
Paths: delta_containment.py, delta_egress.py, delta_self_modification_gate.py
Integrations and Host Observation
DeltaScope is a typed, host-scoped inventory/telemetry subsystem supporting Windows, Linux, macOS, and Raspberry Pi through platform adapters and a CLI. OpenClaw is an optional bridge/plugin boundary, not the primary chat route. DCode is a separately configured executable integration: a single bridge invokes it without a shell, limits mappings/payloads, validates identity, redacts returned evidence, and preserves the existing path as authoritative until explicit cutover.
Paths: delta_scope/manager.py, openclaw-plugin-delta-core/index.ts, delta_dcode_bridge.py
Main entry points: router.py Retrieval router · delta_decision.py Decision logic · delta_storage.py Storage layer · delta_launcher_bridge.py Launcher bridge
Components 21
Entry Points
- Lifecycle launcher · Resolves roots and starts missing local services.
delta.ps1 - Desktop client · Exposes Chat, Runtime, Dashboard, Logs, and Settings.
delta_desktop_launcher.py - Direct launcher
delta_launcher.py
Runtime & Agency
- Autonomy supervisor · Supervises bounded autonomous operation.
delta_autonomy_supervisor.py - Agency engine
delta_agency_engine.py - Decision logic
delta_decision.py
Continuity & Context
- State configuration · Resolves DELTA_STATE_ROOT outside the checkout.
delta_config.py - Storage layer
delta_storage.py - DeltaDB / MuDB · Provides canonical indexing, migrations, repository access, and workers.
deltadb/database.py - Retrieval router · Scopes and gathers context sources.
delta_retrieval/router.py - Evidence fusion · Fuses evidence and emits prompt packets with receipts.
delta_retrieval/fusion.py - Prompt boundary · Constrains model-bound context.
delta_prompt_boundary.py
Model Execution
- Launcher bridge · Bridges user messages into runtime and model execution.
delta_launcher_bridge.py - Model scheduler · Manages local queues, workers, profiles, and topology.
delta_model_scheduler.py - Ollama client
delta_ollama_client.py
Safety & Integrations
- Containment · Protects local identity, memory, and continuity boundaries.
delta_containment.py - Egress control · Validates disclosures and external effects.
delta_egress.py - Self-modification gate
delta_self_modification_gate.py - DeltaScope · Uses typed platform adapters across supported hosts.
delta_scope/manager.py - DCode bridge · Invokes the configured executable without a shell and redacts evidence.
delta_dcode_bridge.py - OpenClaw plugin · Optional bridge, not the primary chat route.
openclaw-plugin-delta-core/index.ts
Connections 20
- Lifecycle launcher → State configuration: resolves roots
- Lifecycle launcher → Autonomy supervisor: starts
- Desktop client → Direct launcher: uses directly
- Direct launcher → Launcher bridge: submits messages
- Launcher bridge → Model scheduler: requests execution
- Autonomy supervisor → Agency engine: supervises
- Agency engine → Decision logic: proposes actions
- Decision logic → Self-modification gate: gates self changes
- Decision logic → Egress control: authorizes effects
- State configuration → Storage layer: locates state root
- Storage layer → DeltaDB / MuDB: persists continuity
- Retrieval router → DeltaDB / MuDB: retrieves memories
- Retrieval router → DCode bridge: optional evidence
- Retrieval router → Evidence fusion: gathers evidence
- Evidence fusion → Prompt boundary: builds prompt packet
- Prompt boundary → Model scheduler: permits context
- Model scheduler → Ollama client: dispatches local jobs
- Containment → Storage layer: protects local data
- DeltaScope → Retrieval router: supplies live state
- OpenClaw plugin → Launcher bridge: optional bridge