[ 2026 ] Active 0.1.4 on PyPI dev docs synced 22 min read

Ether

A headless reactive process supervisor and deterministic graph telemetry engine that turns unstructured security tool output into a deduplicated SQLite entity graph for AI agents, operators, and pipelines.

Package runtime targets ether-core 0.1.4 on PyPI while architectural notes, adapter manifests, and the claim audit track the active dev branch.

Method 01: Host CLI (PyPI / Pipx) Python 3.11+
pip install ether-core
Preflight & adapter audit:
ether doctor
Method 02: Native MCP & Container stdio / sse
ether mcp
Containerized stdio fallback:
docker run -i --rm ether:latest mcp
Adapter arsenal 36 26 subprocess, 10 coroutine
MCP surface 18 tools, 2 resources, 2 prompts
Hostile fuzz matrix 0.00% 0 crashes / 648 inputs (36 x 18)
Log buffer RSS delta 0.366 MB 15 MB flood (< 10 MB ceiling)

Supervisory architecture for security tools

Ether isolates tool drivers, policy checks, bounded stream buffering, and SQLite graph state behind a strict unidirectional dependency DAG with zero TUI or presentation code in src/ether.

Headless Engine Invariant Tier 0 AST Gate

Automated AST checks verify zero Textual, curses, or UI imports across the core substrate. Downstream UIs such as CyGuide consume Ether strictly through public contracts.

01 Request & policy gate

ActionGateway

Evaluates GatePolicy (SAFE or UNRESTRICTED), validates target types against manifest.toml, checks CIDR boundaries via Radix Trie, and applies FlagFirewall before launch.

02 Isolated execution

ExecutionSession

Scrubs host API and VCS tokens via sanitize_subprocess_env, spawns subprocesses strictly with asyncio.create_subprocess_exec (never shell=True), or runs native Tier A coroutines in process.

03 Bounded buffering

LogSpooler & RingBuffer

Streams raw console bytes to disk in 64 KB chunks while capping per-job RAM inside ByteBoundedRingBuffer (2 MiB / 5,000 chunks). Truncated scanner streams pass through StreamRecoveryEngine.

04 Normalized ingestion

GraphStore & VectorIndex

Adapters emit typed BaseFinding models hashed by SHA-256 Primary Identity Keys, queued through WriteQueueWorker into SQLite WAL, and indexed into 384-dim sqlite-vec embeddings.

Unidirectional Layer DAG

Top-down calls only
1. Headless Interfaces CLI Router, MCP Server, Async Python SDK (ether.Ether)
2. Gateways & Policy ActionGateway, ScopeValidator, FlagFirewall, PreflightVerifier
3. Supervision & Execution ExecutionSession, PipelineEngine, LogSpooler, ForensicLogManager
4. State & Graph Engine GraphStore, WriteQueueWorker, VectorIndex, TelemetryCompiler, Analytics
5. Adapter Registry ToolRegistry, PluginLoader (bundle_lock / Ed25519), AssetResolver, tools/*
6. Schemas & Primitives BaseFinding, PIK canonicalization, AuditRecord, CryptoEngine

Repeat Observation State

Deterministic merge

Running nmap, naabu, and http_probe on the same host and port converges onto one node ID rather than creating duplicate rows.

First observation observation_count: 1 · confirmed
Second scan match observation_count: 2 · merged
Expired TTL window confirmed → flapping → stale
IP migration match anchored_identity edge (tls/ssh/favicon)

Adding new security tools stays isolated to tools/<name>/manifest.toml and adapter.py — scaffolded via ether-devkit.

Six core runtime subsystems

Adapter authoring contract

01 Process & Ring Governor

Runs create_subprocess_exec, manages SIGTERM → SIGKILL escalations, and supports optional container fallback for absent binaries.

02 Deterministic GraphStore

SQLite 3.45+ WAL storage with single-writer WriteQueueWorker batching and dedicated PRAGMA query_only = ON read connections.

03 Identity & Temporal Decay

Links volatile cloud IPs via persistent TLS, SSH, and favicon hashes while transitioning aging records across confidence windows.

04 Offline Vector RAG

Generates local 384-dimensional unit vectors in vec_findings (sqlite-vec) without model weight downloads or external API calls.

05 Dual GatePolicy & Drift

Combines ScopeValidator / PinnedTransport SSRF defenses with ether.drift Jaccard topology compliance checks.

06 Prompt Bounds & Forensic Log

Escapes adversarial closing tags in <untrusted_scan_output> (max 100k chars) and maintains SHA-256 hash-chained audit logs.