Passive Cognitive Telemetry & Operational Reasoning Memory
Continuum is a personal cognitive observability platform built for high-context development workflows, specifically optimized for ADHD/AuDHD minds. It eliminates the "executive function tax" of manual note-taking by passively observing your work and automatically reconstructing the state of your thinking.
Continuum is a fork of Open Brain.
The core reason for the fork: active submission and manual annotation are valuable, but for neurodivergent workflows they can be hard to sustain consistently. If remembering to take notes is itself a burden, critical context gets lost.
Continuum keeps the active submission model from Open Brain and adds a passive capture system on top of it. The goal is to enhance the original model while adding additional functionality and insight through continuous background observation.
Most "Second Brain" systems fail because they assume executive function is intact. Continuum reverses the model:
- Observation → Passive capture from terminals, files, git, and AI chats.
- Normalization → Deterministic Source Integration Layer (Dedupe, Redaction, Project Mapping).
- Inference → Periodic synthesis of raw telemetry into semantic work threads.
- Governance → A formal State Machine (Active, Dormant, Resolved) and Authority weighting.
- Reconstruction → On-demand operational state recovery ("Where was I?").
Continuum organizes cognitive state using five primary object types:
- Events (Evidence Layer): Immutable records of what actually happened (terminal commands, file edits, git commits, AI prompts/responses, connector messages).
- Threads (Problem Spaces): Clusters of related events representing active work problems, including attempts, blockers, pivots, decisions, and outcomes.
- Authority Objects (Governed Truth): Explicit decisions/constraints (plus validated blockers/dead ends/actions) that shape future reasoning and support supersession/contradiction.
- Artifacts (Derived Interpretations): Replay timelines, loop labels, guardrail triggers, and summaries. Artifacts are derivative and must reference evidence.
- Graph Edges (Relationship Index): Secondary relationship projection for traversal and multi-hop reasoning; never the source of truth.
Continuum is designed for native Linux environments (no Docker), operating as a network-wide control plane.
Edge Sensors (Laptops/Workstations) Cloud Connectors (Slack/GitHub)
↘ ↙
Source Integration Layer (Ingest)
↓
Event Substrate (PostgreSQL + pgvector)
↓
Thread Formation Layer
↓
Governance Engine (State Machine)
↓
Synthesis Workers (Compression)
↓
Reconstruction Engine (4-Stage RAG)
↓
CLI / API / Web
Every piece of information moves through a governed lifecycle:
captured → normalized → linked → interpreted → governed → reviewed → decayed or reaffirmed
Meaning:
- Captured from passive telemetry or explicit user input.
- Normalized into canonical events.
- Linked to threads/entities/evidence sets.
- Interpreted by synthesis and retrieval processes.
- Governed through state machines and authority/supersession rules.
- Reviewed via trust metrics and operator intervention.
- Decayed or reaffirmed over time to prevent stagnation/drift.
- Substrate: A PostgreSQL-backed immutable record of "What Happened."
- Thread Formation: Clusters raw events into semantic work threads using temporal proximity, entity overlap, project identity, and conversational context. Threads represent problem spaces, not conversations.
- Governance Layer: Manages "What it Means Now" via Thread lifecycles and Authority Objects.
- Temporal Layer: Segments thread history into episodes/phases and stores temporal artifacts for change-over-time reasoning.
- Retrieval Pipeline: A governed 4-stage process:
- Candidate Generation: hybrid lexical + vector recall.
- Reranking: authority weight, thread membership, recency decay, source credibility.
- Reconstruction: builds operational state (goals, blockers, decisions, next actions).
- Assembly: produces final response with evidence references.
- Edge Agents: Lightweight sensors with local regex redaction to ensure secrets never leave your workstation.
Continuum maintains a lightweight graph projection derived from governed state. Typical projected edges:
thread -> contains -> eventthread -> has_decision -> authority_objectauthority_object -> supersedes -> authority_objectattempt -> led_to -> outcomeentity -> participates_in -> thread
The graph is a traversal index for reasoning assistance, not primary truth. Edges are projected from governed state rather than minted from weak embedding similarity.
Continuum operates with three interacting lifecycle machines:
- Thread lifecycle:
active -> dormant -> resolved -> archived - Authority lifecycle:
active -> superseded -> contradicted -> withdrawn - Artifact lifecycle:
active -> stale -> superseded -> expired
Governance applies these transitions deterministically so retrieval never treats stale or superseded artifacts as current truth.
Continuum enforces a strict epistemic boundary:
Derived artifacts may accelerate reasoning, but they may never become primary truth.
All higher-order outputs (summaries, replay timelines, loop detections, guardrails) must reference underlying evidence and may not justify state transitions on their own.
Truth flows upward:
events → threads → authority_objects → derived_artifacts
It must never flow sideways or downward.
continuum/
├── apps/ # Entrypoints: API (Control Plane), CLI (Operator), Edge (Sensor)
├── services/ # Workers: Ingest (Resolution), Synthesis, Governance, Connectors
├── packages/ # Domain Logic: Substrate (Models/DB), Retrieval, Health, Core
├── db/migrations/ # Ordered Schema: 001_Initial_Schema -> 091_evidence_governance_substrate
├── infra/systemd/ # Native Linux service units
├── scripts/ # Operations: Bootstrap, Deploy, Migrate, Refactor
└── tests/redteam/ # Adversarial validation suite (Drift, Fossilization, Spam)
Continuum treats your host like a Proper Linux Service Box.
./scripts/bootstrap_host.sh # Initializes /opt/continuum and 'continuum' user
./scripts/db_init.sh # Creates DB (if needed) + applies ordered SQL migrations
./scripts/deploy.sh # Sychronizes code and restarts systemd units# Load stable local DB env vars (host/port/user/url) for dev shells
source ./scripts/dev-env.sh
# Initialize database and run migrations
./scripts/db_init.sh
# Bootstrap local role/password/db and run migrations
# (useful when you hit password auth failures)
CONTINUUM_DB_USER=continuum CONTINUUM_DB_NAME=continuum ./scripts/db_setup_local.sh
# Reset local/dev DB (destructive)
./scripts/db_reset.sh --yesIf you see errors like:
asyncpg.exceptions.InvalidPasswordError: password authentication failed for user "...",
your role exists but credentials do not match your local Postgres config. Re-bootstrap the app role:
CONTINUUM_DB_USER=continuum \
CONTINUUM_DB_PASSWORD='change-me' \
CONTINUUM_DB_NAME=continuum \
./scripts/db_setup_local.shIf your local Postgres requires admin password auth, provide:
CONTINUUM_PGADMIN_USER=postgres \
CONTINUUM_PGADMIN_PASSWORD='your-admin-password' \
./scripts/db_setup_local.shIf you switch terminals often, run this once per shell session first:
source ./scripts/dev-env.sh./scripts/bootstrap_edge.sh "$USER"
# Review ~/.config/continuum/edge.toml for machine_id, server_url, and watch_paths
bash ./scripts/install_shell_hooks.sh
sudo systemctl enable --now "continuum-edge@$USER"Shell hook defaults after install:
- agent wrappers (
codex,claude,gemini,kimi) still emit session start/end events - per-command shell capture is off by default; enable it with
export CONTINUUM_CAPTURE_COMMANDS=1 - transcript capture is off by default to reduce launch lag; enable it with
export CONTINUUM_CAPTURE_TRANSCRIPTS=1 - reload with
source ~/.config/continuum/shell_hook.shor open a new terminal after reinstalling - bypass the wrapper for troubleshooting with
command gemini/command codex
Use one command per task:
source ./scripts/dev-env.sh # once per shell session
make dev # start local API/ingest/governance/synthesis workers
make test # run full test suite
make bench # run medium benchmark profile with strict thresholds
make bench-large # run large benchmark profile
make logs # tail local dev logs (or systemd fallback)
continuum status # local runtime status: config, shell hooks, spool, ollama
continuum doctor # diagnose missing shell hooks, clipboard tools, native host setup
make reset-db # destructive local DB reset + re-init
make deploy # deployment scriptEquivalent script entrypoints are available in scripts/:
./scripts/dev.sh./scripts/test.sh./scripts/bench.sh [small|medium|large|all]./scripts/logs.sh./scripts/reset-db.sh./scripts/deploy.sh
Use baseline comparison to catch slow regressions:
continuum benchmark --profile medium \
--strict-threshold 0.85 \
--compare-baseline /path/to/previous_benchmark.json \
--max-score-regression 0.03 \
--max-metric-regression 0.05Exit behavior:
0: pass1: threshold failure or baseline regression failure2: critical auto-fail condition
continuum where: Reconstructs your current working context across all machines.continuum replay: Shows operational replay (goal → attempts → failures/pivots → current state).continuum timeline [thread_id] --days N: Shows temporal evolution (episode-like day buckets + turning points).continuum thread <id>: Inspects thread state, decisions, blockers, and lineage.continuum ask "Question": Queries your history using the 4-stage retrieval pipeline.
continuum decision "Text": Records a high-authority design choice.continuum supersede <old_id> "New Text": Updates a decision while preserving lineage.continuum resolve <id>: Marks a thread as completed.continuum reopen <id>: Reactivates a thread with an explicit audit trail.
continuum health: Monitors system trust metrics and operational component status.continuum import-recallrelay --inbox-dir ~/.recallrelay/exports: One-shot import of RecallRelay JSON exports.
Continuum can ingest RecallRelay conversation exports directly.
From /home/bamn/RecallRelay (or wherever RecallRelay is installed):
mkdir -p ~/.recallrelay/exports
recallrelay extract "https://chatgpt.com/share/..." --format json > ~/.recallrelay/exports/chatgpt_001.json
recallrelay extract "https://claude.ai/share/..." --format json > ~/.recallrelay/exports/claude_001.jsonOne-shot:
continuum import-recallrelay --inbox-dir ~/.recallrelay/exportsContinuous connector worker:
python -m services.connectors.recallrelay.worker --inbox-dir ~/.recallrelay/exportsThe connector creates a recallrelay project (if missing), maps each conversation to a stable thread, and ingests messages as events (chat_prompt / chat_response) with dedupe keys.
RecallRelay import is treated as a bootstrap bridge, not live passive telemetry.
Imported events are tagged with:
capture_mode: imported_historicaltruth_profile.requires_corroboration: truetruth_profile.authority_bias: below_live_telemetry
The connector emits both raw imported messages and structured recovered units:
historical_conversation_importeddecision_candidate_recoveredactive_thread_candidate_recoveredblocker_candidate_recoveredartifact_reference_recoveredproject_mapping_suspected(notably from GitHubowner/repoidentity)
GitHub historical exports are supported as bootstrap input when RecallRelay provides platform: "github" plus either metadata.repo (for example owner/repo) or a GitHub source_url.
Use continuum-connector-recallrelay.service as the deployment unit template.
- Substrate Integrity: Summaries assist retrieval but never replace raw evidence.
- Policy Gating: Retrieval is constrained by governed state; superseded objects are filtered before scoring.
- Drift Protection: Tracks the
summary_dependency_ratioto ensure the system thinks with evidence, not abstractions. - Local Redaction: Secrets are filtered at the edge before transmission to the central brain.
Continuum continuously measures its own reconstruction reliability.
Key indicators include:
reconstruction_success_ratecorrection_ratestale_resurfacing_ratesummary_dependency_ratio
If trust metrics degrade, the system should reduce automation and increase transparency. If trust metrics degrade, Continuum automatically:
- reduces inference aggressiveness
- surfaces more raw evidence in responses
- suppresses weak artifacts
- lowers confidence levels
Continuum is not a note-taking app. It is an operational memory system that observes your work and reconstructs the state of your thinking.