Sovereign host protection daemon, operations toolset, and multi-device supervisor in pure Rust
Andromeda is a sovereign suite of infrastructure protection tools and a resident operations daemon written 100% in native Rust. Designed to harden, supervise, and operate Linux VPS nodes first—with a modular architecture extensible to Windows and macOS targets—without Node.js, Python, or opaque agent dependencies, Andromeda communicates with Pulsar and sibling constellations strictly over decoupled network protocols (REST, WebSocket/WSS, gRPC) with zero direct Cargo crate coupling.
Andromeda implements a layered modular monolith layout (entity, dto, repository, service, controller, mod) atop a pure-Cargo workspace (crates/core and crates/xtask), governed by eight automated validation gates and a 3-day dependency publish-age cooldown.
Current scope: This release ships the native validation harness, the six-file modular reference domain (
modules/math), and the crate contracts. Transports, sandboxes, domain engines and protocol integrations described throughout this document are planned milestones, not shipped capabilities.
Conventional infrastructure daemons embed heavy interpreted runtimes, brittle ad-hoc scripts, and unverified packages directly into privileged hosts.
- Protection & operations in one daemon: Combines host hardening, firewall/intrusion defense, service supervision, and operational telemetry in a single native binary.
- Multi-device & VPS ready: Built to supervise Linux servers, edge appliances, and heterogeneous compute nodes cleanly.
- Strict layer isolation: Controllers, services, and repositories are decoupled by automated architecture boundary tests.
- Supply-chain hardening: Enforces a 3-day package publish cooldown (
resolver.min-publish-age="3 days"), SBOM inventory export, and CodeQL static checks.
- layered modular architecture: Clean domain separation (
entity,dto,repository,service,controller,mod). - Pure Cargo automation via
xtask: Nativecargo xtask validate,notices, andreleasesubcommands. - Eight standardized validation gates: Static linting, typechecking, unit tests, architecture tripwires, cooldown, hygiene, notices, and SemVer checks.
- Zero formatter drift: Formatters are excluded from hooks and CI so diffs remain focused on operational logic.
- Apache-2.0 licensed: Clear open-source governance with automated
ThirdPartyNotices.txtverification.
Ensure Rust 1.85+ (Rust 2024 edition / stable, matching rust-version = "1.85") is installed:
# Clone the repository
git clone https://github.com/natuleadan/andromeda.git
cd andromeda
# Activate local hooks
git config core.hooksPath .githooks
# Run the complete 8-gate native validation suite
cargo xtask validateOther native xtask operations:
cargo xtask notices # Regenerate ThirdPartyNotices.txt from cargo metadata
cargo xtask release --check # Verify Cargo.toml version and CHANGELOG parity
cargo test --workspace # Execute unit, integration, and architecture tests- Pulsar server-side operations: Interoperate over decoupled REST, WSS, or gRPC protocols with Orion-built services to protect and supervise the host infrastructure running Pulsar agent swarms.
- Sovereign VPS hardening: Enforce firewall rules, intrusion response, and self-healing process supervision with minimal RAM footprint.
- Multi-device telemetry & provisioning: Collect structured host metrics and execute audited provisioning routines deterministically.
sequenceDiagram
participant Server as Orion / Pulsar Server
participant Ctrl as Daemon Controller
participant Svc as Supervision Service
participant Repo as State Repository
participant Host as Host OS / Devices
Server->>Ctrl: dispatchOpsCommand(dto)
Ctrl->>Ctrl: validatePolicy(dto)
Ctrl->>Svc: enforceHostAction(dto)
Svc->>Repo: recordAuditState()
Svc->>Host: superviseAndHarden()
Host-->>Svc: healthTelemetry
Svc-->>Ctrl: operationReport
Ctrl-->>Server: verifiedStatus
Operational commands enter through the controller, validate contracts via dto, execute protection and supervision logic inside service, and persist host audit state through repository ports.
- Status: Initial foundation — validation harness and modular reference skeleton in place; domain implementation in progress.
- Milestone 1: Core daemon lifecycle, host protection rules, and process supervisor modules.
- Milestone 2: Hardened telemetry collectors and multi-device host adapters.
- Milestone 3: Decoupled wire-protocol interoperability (REST, WSS, gRPC) with Orion-patterned services for Pulsar orchestration and future multi-OS support.
.
├── .cargo/ # Cargo configuration and 3-day cooldown resolver
├── .githooks/ # Versioned commit-msg, pre-commit, and pre-push hooks
├── .github/ # Issue templates, dependabot config, and CI workflows
├── crates/
│ ├── core/ # Core daemon library (modules/math reference domain, lib.rs)
│ │ └── tests/ # integration.rs and immutable architecture.rs tripwires
│ └── xtask/ # Pure-Rust automation CLI (cargo xtask <cmd>)
├── .env.example # Environment contract template (copy to git-ignored .env)
├── Cargo.toml # Workspace manifest (rust-version = "1.85", [workspace.lints])
├── clippy.toml # Strict Clippy policy (max-fn-params-bools = 0)
├── ARCHITECTURE.md # Modular domain architecture specifications
├── AGENTS.md # Autonomous AI agent operating guidelines
├── CONTRIBUTING.md # Contribution workflow and commit grammar
├── SECURITY.md # Supply-chain policies and vulnerability reporting
├── LICENSE # Apache-2.0 License
├── NOTICE # Copyright (c) 2026 Natuleadan.
└── ThirdPartyNotices.txt # Automated third-party license inventory
| Gate | Command | Purpose |
|---|---|---|
lint |
cargo clippy --workspace --all-targets --all-features -- -D warnings + cargo doc -D warnings |
Strict zero-warning static analysis and rustdoc checks |
typecheck |
cargo check --workspace --all-targets |
Workspace type verification |
unit tests |
cargo test --workspace --lib + --doc |
Library unit tests and runnable doc examples |
integration and architecture tests |
cargo test --workspace --test '*' |
Integration flows and layer tripwires |
cooldown |
cargo --config 'resolver.min-publish-age="3 days"' |
3-day package release cooldown |
hygiene |
crates/xtask/src/hygiene.rs |
500-line limit, anti-leak, and syntax checks |
notices |
crates/xtask/src/notices.rs |
License inventory parity check |
release |
crates/xtask/src/release.rs |
SemVer and CHANGELOG consistency |
- ARCHITECTURE.md: Modular architecture, layer boundaries, and design invariants.
- CONTRIBUTING.md: Issue-first contribution policy, PR workflow, and commit grammar.
- SECURITY.md: Vulnerability disclosure procedures and supply-chain controls.
- AGENTS.md: Machine-facing instructions for autonomous engineering.
Andromeda secures and supervises infrastructure across the Natuleadan constellation—communicating strictly over decoupled wire protocols (REST, WSS, gRPC) with Orion, Aurora, Pleaides, Pulsar, Caelum, Lyra, and Skills.
Bug reports and feature proposals are tracked via structured GitHub Issues.
External pull requests are restricted to maintainers (collaborators_only). Please open an issue describing your bug or proposal. See CONTRIBUTING.md for details.
This project is licensed under the Apache License 2.0. Copyright (c) 2026 Natuleadan.
Terms are in LICENSE, attribution in NOTICE, and third-party dependency notices in ThirdPartyNotices.txt.