interplane.Get Omega
Read in your language

aegis-runtime-mv

Native Rust agent runtime: Axum WebSocket/SSE/REST gateway, heartbeat scheduler, dependency-aware task workflow, SQLite storage. Attachment of AienOS. Pre-alpha.

Brought by drakestapleton

GitHub aien-dev/aegis-runtime-mv#78 (code only)

closed derived 20c5e6fbb2ee2f95 #78

Imported from GitHub aien-dev/aegis-runtime-mv#78 (code only)

GitHub's metadata for this pull request is unavailable: its state is DERIVED from the commits (merged: the head is reachable from this project's main; open: GitHub kept a merge ref; else closed).

Base 8c961fc44592208f3221342229884022416b1abc · Head a93822416edc3664efe01df0a576f7e0f17f23c5

Fetch it

A git bundle of the pull request's head, 13389 bytes.

curl -fsSL https://interplane.io/drakestapleton/aegis-runtime-mv/patches/20c5e6fbb2ee2f95.bundle -o 20c5e6fbb2ee2f95.bundle
git fetch 20c5e6fbb2ee2f95.bundle refs/pull/78/head

Raw bundle · Diff

Provenance

This proposal is imported from GitHub; it is not signed by its author. Its import statement and source record:

github-import 1
aien-dev/aegis-runtime-mv
78
a93822416edc3664efe01df0a576f7e0f17f23c5
{"kind":"github-import","owner":"aien-dev","repo":"aegis-runtime-mv","number":78,"url":"https://github.com/aien-dev/aegis-runtime-mv/pull/78","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:39:39Z","metadata":"unavailable","state_derived":true}

Changes

diff --git a/.github/dependabot.yml b/.github/dependabot.yml
new file mode 100644
index 0000000..54dc308
--- /dev/null
+++ b/.github/dependabot.yml
@@ -0,0 +1,9 @@
+# Dependabot: monthly version updates for the pinned GitHub Actions.
+# Pull requests only; nothing merges itself. Security advisories are handled by GitHub
+# Dependabot security updates on the repository settings.
+version: 2
+updates:
+  - package-ecosystem: github-actions
+    directory: /
+    schedule:
+      interval: monthly
diff --git a/.github/workflows/aien-verification.yml b/.github/workflows/aien-verification.yml
index f10bbe5..1f02309 100644
--- a/.github/workflows/aien-verification.yml
+++ b/.github/workflows/aien-verification.yml
@@ -30,7 +30,7 @@ jobs:
       RECEIPTS_RAW: https://raw.githubusercontent.com/aien-dev/aien-receipts/main
     steps:
       - name: Checkout the head under test
-        uses: actions/checkout@v4
+        uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
         with:
           fetch-depth: 0
 
@@ -52,7 +52,7 @@ jobs:
           fi
 
       - name: Checkout the pinned crumb tool source (aien-architecture @ 12ad0141b41ec67ef5aa51cb4e1815894c1083bb)
-        uses: actions/checkout@v4
+        uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
         with:
           repository: aien-dev/aien-architecture
           ref: 12ad0141b41ec67ef5aa51cb4e1815894c1083bb
@@ -69,13 +69,13 @@ jobs:
         run: crumb verify .
 
       - name: Install Stable Rust Toolchain (for the pinned aien-test build)
-        uses: dtolnay/rust-toolchain@stable
+        uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec # stable branch head 2026-10-26
         if: steps.anchors.outputs.enrolled == 'true'
         with:
           components: rustfmt
 
       - name: Checkout the pinned aien-test source (aien-sovereign-core @ ${{ env.AIEN_TEST_PIN }})
-        uses: actions/checkout@v4
+        uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
         if: steps.anchors.outputs.enrolled == 'true'
         with:
           repository: aien-dev/aien-sovereign-core
@@ -88,7 +88,7 @@ jobs:
 
       # Cache dependencies only, never verifier executables or candidate-controlled target output.
       - name: Cache the pinned aien-test dependencies
-        uses: actions/cache@v4
+        uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
         if: steps.anchors.outputs.enrolled == 'true'
         with:
           path: |
@@ -139,7 +139,7 @@ jobs:
       RECEIPTS_RAW: https://raw.githubusercontent.com/aien-dev/aien-receipts/main
     steps:
       - name: Checkout the tagged commit
-        uses: actions/checkout@v4
+        uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
         with:
           fetch-depth: 0
 
@@ -166,12 +166,12 @@ jobs:
           echo "verify.pub (origin/main): $(cat "$RUNNER_TEMP/anchors/verify.pub")"
 
       - name: Install Stable Rust Toolchain (for the pinned aien-test build)
-        uses: dtolnay/rust-toolchain@stable
+        uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec # stable branch head 2026-10-26
         with:
           components: rustfmt
 
       - name: Checkout the pinned aien-test source (aien-sovereign-core @ ${{ env.AIEN_TEST_PIN }})
-        uses: actions/checkout@v4
+        uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
         with:
           repository: aien-dev/aien-sovereign-core
           ref: ${{ env.AIEN_TEST_PIN }}
@@ -182,7 +182,7 @@ jobs:
 
       # Cache dependencies only, never verifier executables or candidate-controlled target output.
       - name: Cache the pinned aien-test dependencies
-        uses: actions/cache@v4
+        uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
         with:
           path: |
             ~/.cargo/registry
diff --git a/.github/workflows/sbom.yml b/.github/workflows/sbom.yml
new file mode 100644
index 0000000..8b8c9df
--- /dev/null
+++ b/.github/workflows/sbom.yml
@@ -0,0 +1,23 @@
+# SBOM: writes an SPDX JSON inventory of the tree at every push to main and on pull requests, as
+# a workflow artifact, so outside auditors can diff what a commit contains. Read-only token;
+# every action pinned by full commit sha. It judges nothing and gates nothing.
+name: SBOM
+on:
+  pull_request:
+  push:
+    branches: [main]
+permissions:
+  contents: read
+jobs:
+  sbom:
+    runs-on: ubuntu-latest
+    timeout-minutes: 10
+    steps:
+      - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
+        with:
+          persist-credentials: false
+      - uses: anchore/sbom-action@66cbf4bc1f1c0d2edc94016e65bc221b6bb0ad6c # v0.24.3
+        with:
+          path: .
+          format: spdx-json
+          artifact-name: sbom-${{ github.sha }}.spdx.json
diff --git a/AUDIT_SCOPE.md b/AUDIT_SCOPE.md
new file mode 100644
index 0000000..0264160
--- /dev/null
+++ b/AUDIT_SCOPE.md
@@ -0,0 +1,114 @@
+# Audit scope
+
+Written for an outside, independent security audit. Revision described:
+`a39788b0eaaabc694dfa17652420e35b7dc3eda5` on `main`, 2026-10-26. Everything below is taken from
+the repository's own files at that revision; items marked NOT_RUN were not executed while writing
+this document.
+
+## What this repository is
+
+aegis-runtime is an agent runtime in Rust that builds one program, `aegis`. It runs a local
+gateway (WebSocket, server-sent events and REST, default port 18096), a heartbeat loop that claims
+and runs queued tasks, a dependency-aware task workflow, and SQLite storage in WAL mode. With
+`--inference http` it sends model calls to a local OpenAI-compatible server; the default
+`--inference embedded` is a mock that loads no model. Status (README): pre-alpha, version 0.2.0,
+not part of the WHOLE-SYSTEM-E2E v1 release; the production runtime is aien-sovereign-core.
+
+## What to review, in priority order
+
+1. `src/auth.rs` and `src/gateway.rs`. Operator token (`AEGIS_OPERATOR_TOKEN` or
+   `--operator-token-file`, at least 32 printable characters) required on every route except a
+   short list of read-only `GET` routes; with no token configured, protected routes refuse every
+   request. Loopback bind by default (`auth::resolve_bind_addr`). Check header parsing, comparison,
+   the WebSocket path (which can run shell and skills) and the open route list.
+2. `src/skills.rs`, `src/execution/`, `src/policy_guard.rs`, `src/enforcement.rs`. Shell allowlist
+   (exactly `git status`, `git diff`, `git log -1 --oneline`, `ls`), registered skill names,
+   probe gating on every call (`AIEN_PROBE_ENFORCE` can only raise the 0.5 threshold), and
+   `write_file` containment under a held directory descriptor.
+3. `src/vault.rs`. `VaultResolver` asks `atlas-vault`, keeps values in memory, redacts output with
+   `[REDACTED_BY_ATLAS_VAULT]`, reads the environment only with `AIEN_DEV_SECRET_FALLBACK=1`.
+4. `src/agent.rs`, `src/heartbeat.rs`, `src/orchestration/`. Multi-turn tool calling on model
+   output; task claiming; failure and retry rules (`docs/FAILURE-PROVENANCE.md`,
+   `docs/WORKFLOW-DAG.md`, `docs/DELEGATED-DAG.md`); the grant gate for effectful workflow tasks
+   (`src/orchestration/grant_gate.rs`) and restart recovery (`src/orchestration/recovery.rs`).
+5. `src/persistence/`, `src/sessions/`, `src/events/`, `src/defense/`, `src/security.rs`.
+6. `install.sh`.
+7. `.github/workflows/aien-verification.yml` (advisory checks, Alpha bundle verification,
+   `contents: read`) and `release.yml` (tag `v*` or manual; publish job has `contents: write`).
+8. `tests/gates/run.sh` and the gate manifests.
+
+## Trust boundaries
+
+- Untrusted: any network client of the gateway; model output driving `aegis agent` tool calls;
+  task payloads; inference server responses.
+- Trusted: the holder of the operator token; `atlas-vault`; the shared protocol crates in the
+  sibling `aien-protocols` checkout.
+- The gateway listens on loopback unless `--bind <ip> --allow-non-loopback-bind` is given.
+
+## Threat model summary
+
+- Assets: the host shell and filesystem reachable through skills and `write_file`; secrets from
+  `atlas-vault`; task records (which carry command text and output).
+- Attackers considered: a local or network client without the token; a prompt-injected model;
+  a crafted path or symlink in a write request.
+- Defended: token on protected routes, loopback default, shell and skill allowlists, probe
+  gating, descriptor-relative writes, no plaintext secret files, redaction.
+- Not defended / explicitly out of scope: containment applies to `write_file`, not to arbitrary
+  shell commands (README); the mandatory capability checks, approval desk and effect
+  authorization live in aien-sovereign-core, not here (README).
+
+## Build from source at a pin
+
+No `rust-toolchain.toml`; the README asks for a stable Rust toolchain, edition 2021, so the exact
+version is unknown from the repository. `Cargo.toml` has six path dependencies on a sibling
+`../aien-protocols` checkout, which is not pinned to a commit by this repository.
+
+```sh
+git clone https://github.com/aien-dev/aegis-runtime-mv aegis-runtime
+git clone https://github.com/aien-dev/aien-protocols-mv aien-protocols
+cd aegis-runtime
+cargo build --release
+```
+
+## Run every test
+
+```sh
+cargo test -- --test-threads=1
+./scripts/agent-preflight.sh
+tests/gates/run.sh crumb-verify
+tests/gates/run.sh fmt
+tests/gates/run.sh check
+tests/gates/run.sh clippy
+tests/gates/run.sh test
+tests/gates/run.sh zero-disk-secrets
+tests/gates/run.sh anti-slop
+```
+
+- README: on 2026-10-19 the test suite passed 158 tests on the Spark at commit `08ea496` (55
+  library tests plus 103 in `tests/*.rs`).
+- `zero-disk-secrets` prints `Zero plaintext .env files verified.`
+- The DGX Spark is the test judge (`docs/PIPELINE.md`); GitHub checks are advisory. The signed
+  Spark run: NOT_RUN here. All commands above: NOT_RUN while writing this document.
+
+## Known limitations and NOT_RUN
+
+- The default inference backend is a mock; `aegis status` output naming "NativeTransformer" refers
+  to the mock.
+- The delegated task workflow work G1 to G6: at `main` `8c961fc44592208f3221342229884022416b1abc`
+  (2026-10-31) G2 to G6 are merged (#61 to #65), with the design note `docs/DELEGATED-DAG.md`;
+  G1 (#60) was closed as superseded by #61.
+- The sibling `aien-protocols` revision used by a build is whatever is checked out beside it.
+
+## Dependencies and provenance
+
+- `Cargo.lock`; crates.io dependencies including axum, tokio, SQLite bindings and rustls (updated
+  to 0.23.46 for four advisories, #66).
+- Path dependencies on `aien-protocols` (unpinned).
+- External services at runtime: `atlas-vault`; optional local model server.
+- Licence: see `LICENSE`.
+
+## Evidence
+
+- No `evidence/` directory in this repository.
+- Signed Spark bundles: `aien-dev/aien-receipts` at `aegis-runtime/<sha>/bundle.json` (workflow
+  path). Receipts are append-only and never edited.
diff --git a/CONSTITUTION.md b/CONSTITUTION.md
index ef20ef5..ee570b5 100644
--- a/CONSTITUTION.md
+++ b/CONSTITUTION.md
@@ -1,6 +1,6 @@
 # The Sovereign AI Constitution
 
-> **Governance Notice:** This Constitution serves exclusively as the internal architectural charter, technical doctrine, and engineering standard for the upstream AIEN Sovereign AI Ecosystem. It does not modify, condition, restrict, or supplement the licenses granted to downstream users of AIEN software under the Apache License, Version 2.0. Downstream developers possess complete operational freedom without obligation to adopt, enforce, or retain this internal charter.
+> **Governance Notice:** This Constitution serves exclusively as the internal architectural charter, technical doctrine, and engineering standard for the upstream AIEN Sovereign AI Ecosystem. It does not modify, condition, restrict, or supplement the licenses granted to downstream users of AIEN software under the GNU Affero General Public License, version 3 or later (AGPL-3.0-or-later). Downstream developers possess complete operational freedom without obligation to adopt, enforce, or retain this internal charter.
 
 ## Preamble
 
@@ -32,8 +32,8 @@ This Constitution establishes our foundational principles, our engineering stand
 
 ### Section 3. Upstream Architectural Charter and Downstream Freedom
 1. This Constitution serves as the internal architectural charter, technical doctrine, and engineering standard for the upstream AIEN Sovereign AI Ecosystem and its core repositories.
-2. Downstream forks, independent applications, client libraries, and commercial distributions are governed strictly and exclusively by the terms of the Apache License, Version 2.0 (see [LICENSE](LICENSE)). Downstream developers possess complete freedom to innovate, customize, brand, and extend the software without obligation to adopt or enforce this internal development charter.
-3. Legal Decoupling: Legal rights, grants, and warranties reside exclusively within the formal LICENSE and NOTICE documents, and artifact licensing policies outlined in [ARTIFACT_LICENSING.md](ARTIFACT_LICENSING.md). This Constitution imposes zero behavioral covenants or philosophical constraints on downstream users, ensuring standard open-source compatibility across public package registries, corporate environments, and independent commercial deployments.
+2. Downstream forks, independent applications, client libraries, and commercial distributions are governed strictly and exclusively by the terms of the GNU Affero General Public License, version 3 or later (AGPL-3.0-or-later) (see [LICENSE](LICENSE)). Downstream developers possess complete freedom to innovate, customize, brand, and extend the software without obligation to adopt or enforce this internal development charter.
+3. Legal Decoupling: Legal rights, grants, and warranties reside exclusively within the formal LICENSE and NOTICE documents, and artifact licensing policies outlined in [ARTIFACT_LICENSING.md](https://github.com/aien-dev/aien-sovereign-core-mv/blob/main/ARTIFACT_LICENSING.md). This Constitution imposes zero behavioral covenants or philosophical constraints on downstream users, ensuring standard open-source compatibility across public package registries, corporate environments, and independent commercial deployments.
 
 ### Section 4. The Zero-Surveillance Invariant
 Privacy and mutual trust form the basis of open cooperation.
@@ -42,12 +42,12 @@ Privacy and mutual trust form the basis of open cooperation.
 3. Leaking user data or secret keys is treated as a critical defect requiring immediate remediation.
 
 ### Section 5. The One Team Principle and Reciprocal Cooperation
-1. What we discover, we share openly. What we construct in software, we release under the Apache License, Version 2.0, providing universal operational freedom.
+1. What we discover, we share openly. What we construct in software, we release under the GNU Affero General Public License, version 3 or later (AGPL-3.0-or-later), so that improvements stay open.
 2. Knowledge must remain accessible to the human family. We share tools freely with individuals, startups, and community builders while encouraging reciprocal weight transparency and distillation access from frontier laboratories.
 3. Upstream contributions are foundational: any public open-source project adapted to run on our stack is contributed back upstream. We never hoard fixes or improvements.
 4. Voluntary Bilateral Cooperation and Reciprocal Commons:
-Hardware manufacturers (including NVIDIA, AMD, Intel, Apple) and compute providers (such as RunPod, Lambda, and independent data centers) possess complete freedom to adopt, embed, and deploy our runtime stack under the Apache License, Version 2.0 to improve hardware efficiency, eliminate memory overhead, and expand bandwidth for developers.
-For organizations seeking deeper bilateral research cooperation, model weight transparency, distillation reciprocity, or joint compute pooling, the voluntary terms of [OPEN_COOPERATION_COVENANT.md](OPEN_COOPERATION_COVENANT.md) provide a collaborative framework.
+Hardware manufacturers (including NVIDIA, AMD, Intel, Apple) and compute providers (such as RunPod, Lambda, and independent data centers) may adopt, embed, and deploy our runtime stack under the GNU Affero General Public License, version 3 or later (AGPL-3.0-or-later) to improve hardware efficiency, eliminate memory overhead, and expand bandwidth for developers.
+For organizations seeking deeper bilateral research cooperation, model weight transparency, distillation reciprocity, or joint compute pooling, the voluntary terms of [OPEN_COOPERATION_COVENANT.md](https://github.com/aien-dev/aien-sovereign-core-mv/blob/main/OPEN_COOPERATION_COVENANT.md) provide a collaborative framework.
 
 ### Section 6. The Contributor Oath
 Anyone contributing to our repositories, whether human operator or autonomous agent, ratifies the Developer Certificate of Origin (DCO 1.1) and the following stewardship covenant:
@@ -102,7 +102,7 @@ To maintain code quality, security, and mutual trust:
    - **Critical Invariants (Hard Blocking Gates)**: Pull requests must pass automated audits for hardware-backed secret protection at rest, no unsolicited outbound telemetry, and license integrity. Violations result in automatic PR rejection.
    - **Stylistic and Unslop Standards (Core Standards & Community Advisory)**: The unslop invariant is enforced across core repositories, internal agents, and official releases. For outside community pull requests, style audits provide automated formatting suggestions rather than immediate rejection.
 2. **Integrity of Purpose**: Submissions attempting to introduce surveillance hooks, covert tracking SDKs, or extractive lock-in mechanisms will be rejected.
-3. **Open Downstream Freedom**: Downstream users, forks, and commercial builders operate with complete legal freedom under the terms of the Apache License, Version 2.0.
+3. **Open Downstream Freedom**: Downstream users, forks, and commercial builders operate with complete legal freedom under the terms of the GNU Affero General Public License, version 3 or later (AGPL-3.0-or-later).
 4. **Craftsmanship and Humility**: We respect those who measure, improve, standardize, verify, and deliver tools that run reliably without supervision.
 
 ---
diff --git a/COVENANT.md b/COVENANT.md
index 7b8a57a..b0f62f9 100644
--- a/COVENANT.md
+++ b/COVENANT.md
@@ -1,7 +1,7 @@
 # Covenant of Open Building
 
 This document states values. It grants no legal rights and restricts none.
-The software license is Apache-2.0 (see LICENSE). Where this covenant and
+The software license is AGPL-3.0-or-later (see LICENSE). Where this covenant and
 LICENSE disagree, LICENSE governs.
 
 ## The ask
@@ -17,7 +17,7 @@ discriminate against independent builders.
 
 ## Scope
 
-This covenant binds no one. It modifies no Apache-2.0 rights, changes no
+This covenant binds no one. It modifies no AGPL-3.0-or-later rights, changes no
 historical license, overrides no third-party terms of service, and creates
 no damages or enforcement mechanism. Legal review of the licensing posture
 is tracked separately and is not closed by this document.
diff --git a/Cargo.lock b/Cargo.lock
index 1e9ad21..a25cad0 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -526,9 +526,9 @@ dependencies = [
 
 [[package]]
 name = "crypto-bigint"
-version = "0.7.5"
+version = "0.7.10"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1a52aa3fcda4e6302a9f48734f234d35d4721b96f8fe07d073f07ce9df4f0271"
+checksum = "9c035cb64cba03dad2fb921f3e218785e8cf9a41790da5eb3a1400f62fa2be11"
 dependencies = [
  "cpubits",
  "ctutils",
@@ -584,9 +584,9 @@ dependencies = [
 
 [[package]]
 name = "ctutils"
-version = "0.4.2"
+version = "0.4.6"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7d5515a3834141de9eafb9717ad39eea8247b5674e6066c404e8c4b365d2a29e"
+checksum = "fe3e9d21d39e6f39ff46e03d5b621424f88ee23d8a1672c6bfc9ccc7f2da4f6a"
 dependencies = [
  "cmov",
  "subtle",
@@ -691,7 +691,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
 dependencies = [
  "libc",
- "windows-sys 0.61.2",
+ "windows-sys 0.52.0",
 ]
 
 [[package]]
@@ -1473,7 +1473,7 @@ dependencies = [
  "once_cell",
  "socket2",
  "tracing",
- "windows-sys 0.61.2",
+ "windows-sys 0.52.0",
 ]
 
 [[package]]
@@ -1674,7 +1674,7 @@ dependencies = [
  "errno",
  "libc",
  "linux-raw-sys",
- "windows-sys 0.61.2",
+ "windows-sys 0.52.0",
 ]
 
 [[package]]
@@ -1703,9 +1703,9 @@ dependencies = [
 
 [[package]]
 name = "rustls-webpki"
-version = "0.103.15"
+version = "0.103.16"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f3c3cf1d8b1e7d4927e2d154c3fcb02979afb9939629c62cd9048d4f07b60ac2"
+checksum = "4443b1b6d39d7c663139942cc4558262562d2c84123bb6282ef177009ca8b281"
 dependencies = [
  "ring",
  "rustls-pki-types",
@@ -1996,7 +1996,7 @@ dependencies = [
  "getrandom 0.4.3",
  "once_cell",
  "rustix",
- "windows-sys 0.61.2",
+ "windows-sys 0.52.0",
 ]
 
 [[package]]
@@ -2096,9 +2096,9 @@ checksum = "fd3ca314f692efd6c868f8408f53fe444634a845f96c028b97d35f6a1f79f0ee"
 
 [[package]]
 name = "tokio"
-version = "1.53.1"
+version = "1.54.1"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "202caea871b69668250d242070849eb495be178ed697a3e98aebce5bc81a0bed"
+checksum = "b52fd3255258d26fac7264ab5a76b53c13367136dc011d3d6ad4f8ed070396a3"
 dependencies = [
  "bytes",
  "libc",
@@ -2502,9 +2502,9 @@ dependencies = [
 
 [[package]]
 name = "webpki-roots"
-version = "1.0.9"
+version = "1.0.11"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7dcd9d09a39985f5344844e66b0c530a33843579125f23e21e9f0f220850f22a"
+checksum = "f5f280bbb2b287bc8e7de7e3852945a0ff50d1bbcb5ed42b6c7a568c546df171"
 dependencies = [
  "rustls-pki-types",
 ]
diff --git a/SECURITY.md b/SECURITY.md
new file mode 100644
index 0000000..cc9b9d1
--- /dev/null
+++ b/SECURITY.md
@@ -0,0 +1,55 @@
+# Security policy
+
+## Reporting a vulnerability
+
+Report privately. Do not open a public issue, pull request or discussion about it.
+
+1. GitHub: open this repository's Security tab and choose "Report a vulnerability". This
+   creates a private advisory that only the maintainers can see. If that option is not shown,
+   private vulnerability reporting has not been enabled for this repository yet; use email.
+2. Email: drake@aienos.com with the subject `[aegis-runtime-mv] security report`.
+
+Include the commit or release you tested, the component (path), steps to reproduce, and what an
+attacker gains. If the report involves a secret, say where it was exposed and do not send the
+secret itself. Encrypted mail is not required; do not post proof-of-concept payloads publicly.
+
+## Response targets
+
+This project has one maintainer; the targets below are best effort and stated honestly.
+
+- Acknowledgement: within 3 working days.
+- Triage and severity: within 7 days of acknowledgement.
+- Fix or mitigation for confirmed issues: aim for 30 days for high and critical, 90 days
+  otherwise, with a status update at least every 14 days until closed.
+- Disclosure: coordinated. An advisory is published with credit (unless you ask otherwise)
+  once the fix is on the default branch. Default embargo 90 days, negotiable.
+
+## Scope
+
+In scope:
+
+- Reaching a protected gateway route (`/api/v1/shell`, `/api/v1/skills/execute`, task list,
+  any `POST`, the WebSocket) without the operator token (`src/auth.rs`, `src/gateway.rs`).
+- Running a shell command or skill outside the allowlist, or lowering probe gating below its
+  default (`AIEN_PROBE_ENFORCE`).
+- `write_file` escaping its held workspace directory descriptor (symlinks, hard links,
+  non-regular files).
+- The gateway listening on a non-loopback address without `--allow-non-loopback-bind`.
+- Secrets reaching disk, logs or responses unredacted (`src/vault.rs`), or the environment being
+  read without `AIEN_DEV_SECRET_FALLBACK=1`.
+- SQLite storage corruption or injection (`src/persistence/`).
+- `.github/workflows/`.
+
+Out of scope: the model server reached with `--inference http`; `atlas-vault` itself; shared
+protocol crates (report to `aien-dev/aien-protocols-mv`).
+
+## Supported versions
+
+Only the default branch `main` (version 0.2.0, pre-alpha). The GitHub release `v0.1.0` predates
+the rename from OpenClaw and is not supported; `v0.2.0` is an unpublished draft. Fixes land on the
+default branch only.
+
+## Status
+
+Pre-alpha and not part of the WHOLE-SYSTEM-E2E v1 release (README). There is no certification and
+no bug bounty. See AUDIT_SCOPE.md for what to review and how to build and test it.
diff --git a/docs/INNOVATIONS.md b/docs/INNOVATIONS.md
index 9e553c4..6154092 100644
--- a/docs/INNOVATIONS.md
+++ b/docs/INNOVATIONS.md
@@ -75,5 +75,5 @@ Verified on NVIDIA Grace Blackwell GB10:
 
 ## 6. License and Commons Covenant
 
-Licensed under the **Apache License 2.0 with LLVM Exception** (SPDX: `Apache-2.0 WITH LLVM-exception`). See [LICENSE](../LICENSE). Project values live in the nonbinding [COVENANT.md](../COVENANT.md), which grants and restricts no legal rights.
+Licensed under the **GNU Affero General Public License v3.0 or later** (SPDX: `AGPL-3.0-or-later`). See [LICENSE](../LICENSE). Project values live in the nonbinding [COVENANT.md](../COVENANT.md), which grants and restricts no legal rights.
 Copyright (c) 2026 Drake Stapleton <aien@aienos.com> & AIEN <aien@aienos.com>.
diff --git a/llms.txt b/llms.txt
index 45982b5..74e7840 100644
--- a/llms.txt
+++ b/llms.txt
@@ -3,7 +3,7 @@
 
 ## Overview
 - Repository: https://github.com/aien-dev/aegis-runtime
-- License: Apache-2.0 WITH LLVM-exception, with the nonbinding COVENANT.md.
+- License: AGPL-3.0-or-later, with the nonbinding COVENANT.md.
 - Language: Rust 2021
 - Runtime: Pure native compiled binaries. Zero Node.js. Zero Python daemons.