Skip to content

Latest commit

 

History

History
115 lines (82 loc) · 8.93 KB

README.md

File metadata and controls

115 lines (82 loc) · 8.93 KB

Soveraign

Sovereign by design.

Your agents. Your infrastructure. Your rules.

Soveraign is a sovereign, self-hosted, identity-first foundation for persistent digital colleagues. It provides a disciplined, portable, containerized Linux development environment in which existing and future AI coding agents operate autonomously inside explicit infrastructure boundaries under human operator sovereignty.

Foundational Principles

  1. Maximum autonomy. Absolute sovereignty. Constrain the environment, not the agent. Inside its container, an agent can perform ordinary engineering work, install software, modify its environment, and solve unforeseen problems without unnecessary interactive prompts. The operator retains authority over infrastructure, external resource grants, credentials, lifecycle controls, and emergency intervention.
  2. Persistent identity. Ephemeral execution. An agent is a persistent identity, not a continuously running AI process. Its identity, configuration, memory, credentials, workspaces, and task history survive container replacement while individual AI processes are invoked on demand with zero idle token consumption. An agent is never done. A task is done.
  3. File first. Infrastructure on merit. Default to ordinary files, directories, and persistent volumes. Introduce databases, message brokers, distributed caches, or object storage only when demonstrated requirements justify them. Optional remote backups never become operational dependencies.
  4. Deterministic where possible. Agentic where necessary. Prefer deterministic engineering — primarily PowerShell 7 and modern .NET/C# — for automation, provisioning, validation, and future orchestration. Invoke AI agents only when reasoning is genuinely required.
  5. Attribute the identity, not the intelligence. Distinguish independently identifiable contributors — humans and persistent digital colleagues (synths) — from the AI models, providers, tools, and execution harnesses they use. A synth retains its configured identity regardless of whether it works through Claude Code, Codex, Antigravity, OpenCode, Copilot CLI, Freebuff, or another runtime, suppressing automatic vendor trailers, promotional footers, and AI session URLs while preserving legitimate human/synth attribution and mandatory repository requirements.

What Soveraign Is — and Is Not

Soveraign provides the operating environment for persistent digital colleagues:

  • Infrastructure ownership: Self-hosted execution, declarative configuration, instance-scoped persistent volumes, and external host-controlled lifecycle controls.
  • Independent operational identity: Agents operate with their own OS identity, Git identity, mailboxes, workspaces, and explicitly granted external resources — distinct from AI subscription ownership.
  • Separated official runtime provisioning: One generic engineering image paired with explicit post-deployment installation of official, unmodified AI agent CLIs into persistent user-controlled directories.
  • Engineering discipline: Native linux/amd64 and linux/arm64 execution on Ubuntu 26.04 LTS, standalone MinVer semantic versioning, build-once OCI promotion to Docker Hub with signed attestations, and reproducible verification.

Soveraign is not another AI coding agent, custom harness, inference gateway, authentication broker, IDE, identity provider, database-backed memory engine, web dashboard, scheduler, or distributed orchestration platform.

Initial Release Capabilities

  • Linux foundation: Single curated Ubuntu 26.04 LTS (ubuntu:26.04) image supporting native linux/amd64 and linux/arm64, running as dedicated non-root user agent (1000:1000) with passwordless in-container sudo, privileged: false, tini signal handling, and en_US.UTF-8 locale.
  • Primary development stack: .NET 10 LTS SDK, .NET 11 STS SDK, and PowerShell 7.
  • Complementary stacks: Node.js LTS & npm, Python 3, uv, Go, and C/C++ build tooling (build-essential, cmake, ninja).
  • Developer & infrastructure CLI tooling: git, gh, ssh, tmux, curl, wget, jq, yq, rg, fd, fzf, bat, eza, nvim, lazygit, btop, starship, docker CLI + buildx + compose, kubectl, and helm.
  • Official agent runtime provisioning (soveraign-install-runtime): Explicit post-deployment installation, updates, and safe idempotent identity-first attribution configuration from official upstream channels into persistent /home/agent for:
    • codex (OpenAI Codex CLI)
    • claude (Anthropic Claude Code)
    • antigravity (Google Antigravity CLI, agy)
    • opencode (OpenCode)
    • copilot (GitHub Copilot CLI)
    • freebuff (Freebuff)
  • Instance-scoped persistence & simple remote operations: Independently scoped Compose project and volumes per instance, ordinary SSH to the execution host, docker exec, persistent tmux sessions, and host-controlled pause/stop/kill/backup workflows — with no publicly exposed container ports and no vendor downloads on container startup.

Quick Start

Released images are published on Docker Hub as a multi-architecture (linux/amd64, linux/arm64) image, with no GitHub account required:

docker pull codebeltnet/soveraign:0.1.0
gh attestation verify oci://docker.io/codebeltnet/soveraign:0.1.0 --repo codebeltnet/soveraign   # optional provenance check

Every stable release publishes MAJOR, MAJOR.MINOR, and MAJOR.MINOR.PATCH tags (for example 0, 0.1, 0.1.0). There is never a latest tag. Pin an exact version or digest, and upgrade deliberately (see docs/release.md).

1. Configure an Instance (Outside Version Control)

Copy examples/agent.env.example to a private .env file on your host and set a unique lowercase SOVERAIGN_INSTANCE_NAME along with the agent's identity:

cp examples/agent.env.example .env
# Edit .env with a unique SOVERAIGN_INSTANCE_NAME, agent name, and Git identity

SOVERAIGN_INSTANCE_NAME scopes the Compose project name, container name, hostname, and named volumes so independent instances never share writable state.

2. Start the Container with Instance-Scoped Persistent Volumes

docker compose -f docker/compose.yaml --env-file .env up -d

3. Connect, Provision Chosen Runtime(s), and Start a tmux Session

docker exec -it <instance-name> bash
soveraign-install-runtime list
soveraign-install-runtime codex   # or claude, antigravity, opencode, copilot, freebuff
tmux new-session -A -s work

Inside tmux, authenticate your chosen official runtime natively and start working. Detach with Ctrl+b d; work continues independently of your workstation while idle containers consume zero inference tokens.

4. Local Build and Automated Verification

# Calculate semantic version via standalone minver-cli
pwsh -NoProfile -File ./scripts/Get-SoveraignVersion.ps1

# Run unit and contract tests (enforces 100% release-tooling coverage)
pwsh -NoProfile -File ./tests/Invoke-UnitTests.ps1

# Build natively for the current host architecture and load into Docker
pwsh -NoProfile -File ./scripts/Build-SoveraignImage.ps1 -Load -PassThru

# Run native container smoke tests
pwsh -NoProfile -File ./scripts/Test-SoveraignContainer.ps1 -ImageTag docker.io/codebeltnet/soveraign:<version>

Documentation

Document Scope
Architecture & Principles Governing principles, ubiquitous language, identity vs. subscription ownership, lifecycles, and ADRs
Public Compatibility Contract SemVer compatibility surface, environment variables, instance-scoped layout, and upgrade policy
Release Engineering & Distribution Docker Hub distribution, semantic version tags, build-once release lifecycle, attestations, and operator prerequisites
Agent Runtimes Official post-deployment runtimes, provider terms & delegation analysis, authentication boundaries, and standards
Operations & Persistence Lifecycles, instance isolation, external kill switch, SSH/tmux access, file-first backup/restore, and upgrades
Security Model Administrative autonomy vs. host authority, container vs. VM isolation, Docker daemon boundaries, and residual risks
Manual Acceptance Tests Interactive authentication, runtime provisioning, administrative autonomy, kill switch, and external Docker checks
Roadmap & Non-Goals Staged evolution, native Windows VM strategy, future integrations, and explicit v0.1.0 non-goals
Security Policy Vulnerability reporting and security boundaries
Changelog Keep a Changelog release history

License

MIT License — see LICENSE. Third-party software and post-deployment agent runtimes remain governed by their respective upstream licenses and provider terms; see docs/runtimes.md.