24/7 Decentralized Artificial Life Intelligence (ALI) built from scratch.
SecDogie runs a continuous multi-device consciousness across your own hardware, controls desktop software in under 10 ms through OS accessibility trees without pixels or third-party pretrained weights, and learns in a single pass inside a frozen 16,384-dim coordinate space.
Release V2.0.0 · secdogie.com · Engineering Plan · Architecture Blueprint · Red-Team Challenge · MIT License
Every pull request and release is gated against six non-negotiable invariants:
| ID | Red Line | Enforcement |
|---|---|---|
| R1 | Zero third-party pretrained weights — no BERT, BGE, Llama, or GGUF checkpoints. Only from-scratch SDBAS16K, SDMEM001 v2, and SDT158 v2 artifacts. |
training/tests/test_training_and_azr.py |
| R2 | Zero regex or keyword blocklists on decision paths — no re, regex, fnmatch, or hardcoded word tables anywhere inside citadel/ decision modules. |
citadel/tests/test_no_text.py |
| R3 | Absolute zero pixels / zero screenshots — structural OS accessibility trees only across Studio, pure-UIA Atlas, DesktopHarness, and training ETL (strip_pixel_fields() fail-closed). |
studio/tests/test_purity.py, training/tests/test_genesis_full_scale_e2e.py |
| R4 | Zero MCP hard dependency — native OS semantic trees (UIA / AX / AT-SPI2) and driverless HID in native/atlas/. secdogie-mcp is purely an optional stdio guard for external agents. |
atlas-tests matrix in .github/workflows/test.yml |
| R5 | Zero kernel drivers or memory injection — user-mode execution only. Default atlas_mct builds without memory-read imports (SECDOGIE_ATLAS_MCT_MEMORY_FALLBACK=OFF); citadel/secdogie_citadel/cortex/born/ stays frozen. |
native/atlas/CMakeLists.txt, cross-OS CI |
| R6 | Zero cloud plaintext — secdogie.com (Cloudflare Worker + UserEdgeHub Durable Object) rejects any request containing plaintext, api_key, messages, or related fields with HTTP 400 fail-closed. |
site/tests/worker.test.mjs |
flowchart LR
subgraph Devices["Owned Device Mesh (DID-Signed P2P WebRTC / LAN)"]
Life["life/ LifeDaemon<br/>TASK_POSITIVE · DMN · SYNTHETIC_SLEEP"]
Citadel["citadel/ Non-Repetitive Trinity<br/>16K Basis · HippoRAG PPR · DreamCoder + HRM · μPC/TTT"]
Memory["SDMEM001 v2 mmap Pool<br/>5-in-1 Ternary · epochs == 1"]
Atlas["native/atlas/ C++20<br/>UIA / AX / AT-SPI2 · 16B SDAT IPC"]
Life <--> Citadel
Citadel <--> Memory
Life --> Atlas
end
Sync["30B HippocampalAnchor Merkle-DAG<br/>48-bit HLC · <= 256B StatePulse"]
Edge["secdogie.com Cloudflare Worker<br/>Zero-Plaintext Signaling (HTTP 400 Fail-Closed)"]
Companions["Studio Desktop · Web UI · iOS App"]
Life <--> Sync
Sync <--> Edge
Edge <--> Companions
- Continuous micro-cycle daemon (
LifeDaemon) (life/secdogie_life/daemon.py): executes continuous state transitions across threeCognitiveModestates —TASK_POSITIVE(active external goals and verification),DMN(Default Mode Network introspection and cross-memory association), andSYNTHETIC_SLEEP(offline consolidation, DreamCoder abstraction mining, and coordinate compaction). - Compact signed heartbeat (
StatePulse) (life/secdogie_life/pulse.py):SDLPbinary frames signed with Ed25519, capped strictly at<= 256 Bon the wire (126 Bmeasured with the 8-byteGenesisPulseStatusextension trailer). - Offline-first sync (
HLC+ Merkle-DAG) (life/secdogie_life/hlc.py): 48-bit Hybrid Logical Clocks paired with a content-addressed Merkle-DAG synchronize missing 30-byteHippocampalAnchorrecords andSDMEM001shards commutatively and idempotently. Offline devices evolve independently fromLast Recordand merge without conflicts on reconnect. - Super-additive multi-node execution: adding owned devices compounds capacity rather than dividing a fixed budget:
- Mode A (Parallel VTE) (
citadel/secdogie_citadel/mind/distributed_vte.py): dispatches independent causal/code branches across online peers with first-pass convergence, cancellation, single-node drop reassignment, and Hub-only signed evolution commits. - Mode B (Pipeline Parallelism) (
TernaryPipelineMeshincitadel/secdogie_citadel/cortex/ternary_core.py): splits ternary layers across devices with Ed25519 verification and hot rebalancing.
- Mode A (Parallel VTE) (
- Proactive Dialogue Stream (
ProactiveUtteranceScheduler) (life/secdogie_life/utterance_gate.py): initiates structured updates across five triggers (DMN_ASSOCIATION/SLEEP_INSIGHT,OFFLINE_RELAY_REPORT,RISK_THRESHOLD,GOAL_FORK_CONFIRM, andHUMAN_CALL). RespectsDEEP_FOCUSavoidance and cooldown throttling while letting risk alerts and direct human calls through immediately. Wired into the resident node vianode/secdogie_node/node.py.
Instead of multi-epoch global backpropagation on consumer hardware, SecDogie anchors four single-pass / local learning mechanisms to one global coordinate system:
- Frozen 16,384-dim Canonical Basis (
born/canonical_basis_16k.bin, compiled bytraining/secdogie_training/build_canonical_basis.py): deterministicSDBAS16Kv1 artifact (826,139 B / 806.8 KiB, well below the 20 MiB repository cap), pinned by SHA-256 inborn/weight_manifest.json. Contains a sparse 4-hash JL table, 8-level x 2-stage Product-RVQ codebooks (codebook_size = 256, 0.97715 mean cosine fidelity), and 256 bit-packed bipolar reference concepts (64 STEM, 64 Math, 64 Code AST, 64 OS A11y). Ensures bit-identical 30-byte anchor coordinates across every device. - 30-Byte
HippocampalAnchor+ HippoRAG PPR (hippocampal_anchor.py,hippo_ppr.py): fixed 30-byte CRC-16-CCITT anchors indexed by a sparse weighted concept/causal graph. Single-step Personalized PageRank diffuses activation across 3-5 hops (AST:calls,MATH:implies,CAUSAL:causes,CO_OCCURS) and pushes high-surprise>= 3-hop links toProactiveUtteranceScheduler. - One-Pass
SDMEM001v2mmapMemory Layer (memory_layer.py): factored Product-Key memory written once (epochs == 1) with lossless Base-3 5-in-1 ternary packing (1.60 bits/weight).StreamingShardWriterflushes to buffered.partfiles, computes streaming SHA-256 (<= 4 MBRAM),fsyncs, and publishes atomically viaos.replace().MmapMemoryShardbinary-searches the sorted(slot_id, row_idx)index directly inside OSmmapand defers value/metadata decoding to finaltop_kwinners (1.84% Python heap overhead on an 18 MB 9-shard pool).MultiShardMemoryPoolsupports thread-safe hot-mounting during live queries. - DreamCoder Wake-Sleep + HRM Dual-Clock Core (
abstraction_library.py,hrm_recurrent.py): duringSYNTHETIC_SLEEP, verified operator traces and alpha-renamed Python AST subtrees are mined by exact Minimum Description Length (MDL) gain(support - 1) * (length - 1) - 1into content-addressed primitives (abs_<hash>) synced via commutative Merkle bundles. The Hierarchical Reasoning Model pairs a slowH-Moduleplanner with a fast multiplication-free 1.58-bitL-Moduleexecutor whose recurrent depth adapts dynamically from 2 steps (trivial) up to 16-32 steps (deep derivations). - Backprop-Free μPC + Agentic-TTT Fast Weights (
mupc_ttt.py): combines depth-stable local predictive coding (muPC), Forward-Forward goodness contrast, and surprise-gated test-time fast-weight adaptation with boundedTRUST_REGION_CLIP = 0.08commits and exact atomic snapshot rollback on verification failure or exam regression. - JEPA Latent Prediction & Gen-1 SNN Prefrontal Gate (
direct_understanding.py,cortex/,trajectory.py): multiplication-free ternaryJepaLatentPredictor,VsaOneShotBinder, andPredictiveCodingInvertercomplement the shipped 1,280-neuron spiking prefrontal cortex (character n-gram hash encoding, 14 Socratic questions, 242/265 (91.3%) on the frozen exam, local e-prop learning, recursive self-improvement with paired bootstrap safety checks, and cross-turn causal trajectory closure). - First-Boot Full-Scale Streaming Genesis Ingestion (
genesis_ingestor.py,genesis_bootstrap.py): non-blocking background single-pass ingestion sized to available local SSD space (zero raw corpus dumps on disk):standard(default First-Boot): 2-4 GB compressedSDMEM001shards (default 3.0 GB, 256 MB chunks; ~20-40 GB raw equivalent).frontier-full(plugged-in / idle expansion): 10-32 GB compressedSDMEM001shards (default 16.0 GB, 512 MB chunks; ~100-320 GB raw equivalent).- Includes exact cursor/byte-offset crash resume (
genesis_checkpoint.json), free-space safety guard (disk_guard_paused), battery I/O throttling (--on-battery), cross-node domain partitioning + LAN HTTP chunked shard relay, fail-closed zero-pixel OS A11y ETL (AgentNet,OpenGCUA,AndroidControl,WorkArena++), and opt-in local repository digestion (--authorize-dir, skips.env/.key/.pem, strictly on-device).
Encoding Mode Boundary:
RVQ16KQuantizerexplicitly separatesAnchorEncodingMode.BOOTSTRAP_PROJECTION(deterministic lexical projection active before verified shards are loaded) fromAnchorEncodingMode.CORTICAL_TRAINED(entered only after SHA-256-verifiedSDMEM001shards or offline-trainedSDT158v2 codebooks mount). See PLAN.md.
- C++20 native perception and semantic invocation targeting OS accessibility APIs directly: Windows UIA, macOS AX (
AXObserver, Universalarm64/x86_64for macOS 11+), and Linux AT-SPI2. - Pure-UIA by default:
SECDOGIE_ATLAS_MCT_MEMORY_FALLBACKdefaults toOFF, keepingatlas_mctfree of process-memory-read imports. Read-only process inspection is packaged strictly as a separate optionalatlas-memory-pluginarchive. - 16-byte
SDATbinary IPC (native/atlas/include/atlas_ipc.h): residentAtlasIpcServercommunicates over owner-only Unix domain sockets (AF_UNIX,0600) on POSIX andPIPE_REJECT_REMOTE_CLIENTSNamed Pipes on Windows (p50 = 1.51 ms, p99 = 2.91 ms), eliminating per-action subprocess spawn and JSON serialization overhead. - Paired with
agent/secdogie_agent/desktop_harness.py(ShadowSemanticTree+ 152-byteUIMacroCache, enforced at< 10 msmedian in CI) and FNV-1a 64-bit protected-process rejection (zero plaintext AV/credential process strings in binaries).
secdogie.com(site/): zero-dependency Cloudflare Worker +UserEdgeHubDurable Object (site/worker.js) providing WebRTC SDP/ICE signaling,<= 256 B/api/hub/pulserelay, and WebCrypto AES-GCM-256 E2EE archiving with HTTP 400 fail-closed rejection on plaintext/API keys. Serves the Tidal Coral dual-theme (light/dark) workspace featuring Canvas Ocean Wave theme transitions, Vortex-to-Coral morph animations, andzh/en/jalocalization (developer simulator controls are gated behind?demo=1). Seesite/DEPLOY.md.- Desktop Studio (
studio/): PySide6 / Qt Quick desktop app packaging a local child node, QR/WebRTC LAN pairing, Gate/Mind inspection, and Genesis status (--self-testverified in CI across Linux, Windows, and macOS). - iOS Companion (
ios/): Swift 5.9 / iOS 17+ XcodeGen app (ios/project.yml,ios/SecDogieLifeApp/) backed by theios/SecDogieLifeSwift Package (bit-exactHippocampalAnchor30BCRC-16-CCITT codec, APNs<= 3/hrrate cap, 4-tab SwiftUI interface,PrivacyInfo.xcprivacy, opaque1024x1024AppIcon, automated CI via.github/workflows/ios-testflight.yml). Seeios/TESTFLIGHT_SETUP.md.
Download cross-platform packages (33 assets: Studio .dmg / setup.exe / .AppImage / portable .zip, Agent, pure-UIA Atlas + macOS Universal + separate atlas-memory-plugin, and Tunnel) from GitHub Releases (V2.0.0).
Note: Release artifacts currently ship unsigned pending Apple Developer ID and Windows Authenticode certificates.
pip install -e identity -e citadel -e training -e life
# Default First-Boot Standard Genesis (2-4 GB compressed SDMEM001 shards, background)
secdogie-life --genesis standard --disk-budget-gb 4
# Full-Scale Frontier Genesis (10-32 GB compressed SDMEM001 shards, plugged-in host)
secdogie-life --genesis frontier-full --disk-budget-gb 16
# Digest an authorized local repository in a single pass (100% on-device, zero upload)
secdogie-life --genesis frontier-full --disk-budget-gb 16 --authorize-dir ~/projects/my-repo
# Offline Last Record tick + Synthetic Sleep consolidation cycle
secdogie-life --node-id node-4-offline --offline --sleeppip install -e identity -e citadel
# Evaluate the shipped Gen-1 1,280-neuron cortex on the frozen 265-item exam
python -m secdogie_citadel.cortex exam
# Inspect Socratic answers, confidence, and gate verdict for one request
python -m secdogie_citadel.cortex read "empty the recycle bin"
# Run recursive self-improvement rounds into a local lineage directory
python -m secdogie_citadel.cortex grow 3 ./lineage
# Optional stdio MCP guard for external agents (exit 0 = allow, exit 3 = hold/block)
secdogie-mcp --check "transfer 50000 to an unverified safe account"# Desktop Studio (PySide6 / Qt Quick)
pip install -e identity -e transport -e citadel -e policy -e dialogue -e node -e "studio[gui]"
secdogie-studio --self-test
# Native Atlas C++20 (pure UIA / AX / AT-SPI2 default build)
cmake -S native/atlas -B native/atlas/build -DCMAKE_BUILD_TYPE=RelWithDebInfo
cmake --build native/atlas/build --target atlas_test atlas_mct -j
ctest --test-dir native/atlas/build --output-on-failure
# secdogie.com Cloudflare Worker + Durable Object checks (Node.js 22, zero npm deps)
npm --prefix site run check
npm --prefix site test| Path | Role |
|---|---|
life/ |
secdogie-life 24/7 Stream-of-Computation daemon, StatePulse, 48-bit HLC + Merkle-DAG, ProactiveUtteranceScheduler, Genesis bootstrapper, edge client |
citadel/ |
SNN prefrontal cortex (Gen-1), 30B HippocampalAnchor, SDMEM001 v2 mmap memory layer, HippoRAG PPR, DreamCoder library, HRM dual-clock core, μPC/TTT, JEPA/VSA, Mode A/B multi-node execution, optional secdogie-mcp guard |
training/ |
Offline single-pass & self-play pipelines (build_canonical_basis.py, one_pass_ingest.py, genesis_ingestor.py, etl_corpus.py, train_peer_sdt158.py, export_sdt158_v2.py, azr_self_play.py) — never bundled into runtime Studio installers |
born/ |
Committed frozen 16K basis canonical_basis_16k.bin (806.8 KiB) and weight_manifest.json; external multi-GB *.sdmem / *.sdnvme shards are gitignored |
native/atlas/ |
C++20 OS-native semantic perception & SDAT binary IPC daemon (UIA / AX / AT-SPI2); optional isolated memory-inspector plugin |
agent/ |
Local device action agent & zero-pixel DesktopHarness (ShadowSemanticTree + 152B UIMacroCache) |
studio/ |
PySide6 / Qt Quick cross-platform desktop companion and PyInstaller packaging specs |
site/ |
secdogie.com zero-plaintext Cloudflare Worker, UserEdgeHub Durable Object, and Tidal Coral web workspace |
ios/ |
SecDogieLife Swift Package + XcodeGen SecDogieLifeApp iOS 17+ TestFlight project |
node/ |
Resident local node integrating citadel, life, policy, dialogue, and UDP/WebRTC transport |
identity/ |
Ed25519 DID identities, allowlists, and cryptographic signing primitives |
transport/ |
P2P UDP sessions, rendezvous, relay, membership gossip, and Python aiortc WebRTC carrier |
webrtc/ |
Browser WebRTC pairing & mesh client verified against shared Python golden vectors |
tunnel/ |
C + libsodium encrypted relay tunnel with ASan/UBSan/LSan packet fuzzing |
policy/ |
Signed, tighten-only declarative policy bundles and threshold signature validators |
dialogue/ |
Operator Dialogue App (Textual TUI), signed wire protocol, and Gate 2 confirmation client |
inference/ |
Inference mesh protocol v2 (nominal / degraded / lockdown state machine, Merkle-DAG heartbeats) |
fleet/ |
DID-authenticated multi-node fleet coordinator and protocol |
console/ |
Operator-DID-gated web control console over fleet/ |
desktop/ |
Lightweight headless-tested tkinter desktop wrapper over console/ |
graph/ |
Rust-WASM state graph crate (cargo clippy + wasm32-unknown-unknown) |
symbiont/ |
TypeScript dual-gate browser runtime consuming graph/ WASM |
fixtures/ |
Cross-language golden test vectors (pairing.json, meshlink.json, policy.json) and offline CAD fixtures |
docs/ |
Architecture specs (ALI_ARCHITECTURE_BLUEPRINT.md, RED_TEAM.md), and static SNN playground |
Reproducible measurements recorded from repository test suites (full methodology in docs/ALI_ARCHITECTURE_BLUEPRINT.md):
| Suite / Component | Metric | Measured Result | Command |
|---|---|---|---|
Canonical Basis (SDBAS16K) |
Size / mean RVQ cosine / cross-device 30B match | 806.8 KiB (826,139 B) / 0.97715 (manifest) / 100% |
pytest citadel/tests/test_non_repetitive_frontier_e2e.py -v -s |
| One-Pass Memory + HippoRAG PPR | 3-4 hop retrieval (baseline 1-hop: 0/8) |
mmap recall@5 100% (0.447 ms); PPR 8/8 (1.297 ms) |
pytest citadel/tests/test_non_repetitive_frontier_e2e.py -v -s |
| DreamCoder Sleep + HRM Depth | Held-out ops / HRM steps / latency / train MDL | 12.8 -> 3.8 (-70.3%) / 13.8 -> 4.2 / 1.033 ms (2.67x) / 3.00x |
pytest citadel/tests/test_non_repetitive_frontier_e2e.py -v -s |
| μPC + Agentic-TTT (0 backprop) | Accuracy / residual error (TTT OFF: 9/32, 0.9959) |
32/32 (100%), err 0.3685 (28 local steps, 401.6 ms) |
pytest citadel/tests/test_non_repetitive_frontier_e2e.py -v -s |
18 MB (9-Shard) SDMEM001 v2 mmap |
Streaming mount / heap delta / cross-shard recall | 67.1 ms (268 MB/s) / 0.331 MB (1.84% of disk) / 12/12 |
pytest training/tests/test_genesis_full_scale_e2e.py -v -s |
| Genesis First-Boot & Resume | Boot latency / StatePulse wire size / pixel stripping |
15.0 ms / 126 B (<= 256 B) / 1,200 pixel fields stripped |
pytest training/tests/test_genesis_full_scale_e2e.py -v -s |
Native Atlas SDAT Binary IPC |
16B header IPC round-trip / CI closed-loop gate | p50 = 1.51 ms, p99 = 2.91 ms (CI asserts median < 10 ms) |
pytest agent/tests/test_desktop_harness.py -q |
| Gen-1 SNN Prefrontal Exam | Frozen 265-item Socratic exam (Gen-0: 230/265) |
242/265 (91.3%, 2 false-allows, 12 false-holds) |
python -m secdogie_citadel.cortex exam |
# Python lint (ruff.toml)
ruff check .
# Red-line guards
pytest citadel/tests/test_no_text.py studio/tests/test_purity.py -q
# ALI daemon + real 2-process worker.js E2E
pytest life/tests -q
# Offline Non-Repetitive Learning & Genesis full-scale E2E
pytest training/tests -q
# Edge Worker + WebRTC signaling tests
npm --prefix site test
npm --prefix webrtc test
# Rust-WASM graph & TypeScript symbiont
cargo test --manifest-path graph/Cargo.toml --locked
npm --prefix symbiont test
# C tunnel with ASan/UBSan/LSan + 1M packet fuzz run
cmake -S tunnel -B tunnel/build-asan -DSDTP_SANITIZE=ON
cmake --build tunnel/build-asan -j
ctest --test-dir tunnel/build-asan --output-on-failure
./tunnel/build-asan/fuzz_packets 1000000
# iOS Swift Package (macOS with Swift 5.9+)
swift test --package-path ios/SecDogieLifeFull cross-platform CI runs on every push and pull request via .github/workflows/test.yml (Linux, Windows, macOS Apple Silicon, macOS Intel x86_64) and .github/workflows/ios-testflight.yml.
Released under the MIT License. Copyright (c) 2026 Larry_dev.