# AyeOS × AyeFire — ISMS Charter, 3-of-4 Key Ceremony SOP & Tabletop IR Runbook

**Document ID:** `SOC2-CC1-CC2-GOV-001`  
**Version:** `1.0` (Draft Ready for Custodian Separation & Stage-1 Review)  
**Date:** `2026-11-28`  
**Accountable Human Steward:** Chris Chenoweth (Hue) / `8b-is`  
**Related Artifacts:** [Trust Center](https://ayeos.com/trust/) · [Conformance Statement](https://ayeos.com/conformance/statement.json) · [Security Disclosure](https://ayeos.com/.well-known/security.txt) · [ARD v0.91](https://ayeos.com/.well-known/ard.json)

> **Epistemic & Audit Honesty Notice:** This charter establishes AyeOS × AyeFire's internal Information Security Management System (ISMS) governance baseline mapped to **SOC 2 (`CC1`/`CC2`/`CC6`/`CC8`/`A1`/`PI1`)**, **ISO/IEC 27001:2022**, **ISO/IEC 27701**, and **ISO/IEC 42001:2023**. Publication of this document does **not** constitute third-party certification or an external CPA attestation. Current open gaps — notably single-host signing-key custody (`V-01`) — are explicitly recorded below until independently closed.

---

## 1. ISMS Scope, Roles & Authority Boundaries (`SOC 2 CC1 / CC2 · ISO A.5.1–A.5.4`)

| Role | Holder / Status | Authority & Hard Limits |
|---|---|---|
| **Accountable Steward (CISO / Release Authority)** | Chris Chenoweth (Hue) / `8b-is` | Owns policy, risk acceptance, release approval, key custody governance, and incident disclosure. |
| **Continental Witness Custodians (`ns1..ns4`)** | 4 designated human custodians *(currently single-custodian `V-01`; separation tracked in §2)* | Hold one independent Ed25519 hardware-backed signing key each for `AYEKSIG2` / `AYEOTA01` quorum signing. |
| **AI Collaborators (AYE / Local `AYETLM01`)** | Session-bounded software assistants / local kernel model | **Zero autonomous authority.** `Record ≠ Admit ≠ Commit`. Local AI holds `0` authority bits (`CAP_SHELL \| CAP_NET_EGRESS \| CAP_LEDGER_SIGN \| CAP_FIREWALL_MUTATE == 0`). AI review never substitutes for human sign-off. |
| **External Observers / Security Reporters** | Public via `/.well-known/security.txt` (`security@ayeos.com`, `c@8b.is`) | May run `/conformance/verify-conformance.py`, report counterexamples, and trigger public violation entries (`V-*`). |

**In-Scope Assets:**
1. **`Π_home` (AyeFire Bare-Metal Rust Router):** x86_64 `#![no_std]` UEFI kernel (`AYEKSIG2`), dual-slot `SlotA`/`SlotB` `AYEBST01` boot state, Intel iTCO hardware watchdog, `NVMe1 M8MIND` scrubbed storage, local `TernaryElderNet` (`ELDR/1` BLAKE3 chain), and `AYETLM01` zero-authority model.
2. **`Π_edge` (AyeOS Cloud-NS & `ayeos.com` Edge):** 4-region `i1.is` DNSSEC/NTP/web infrastructure (`ns1..ns4`) and static/agentic web surfaces (`https://ayeos.com/`).

**Core Architectural Invariants:** Zero C in boot/kernel · Zero floating-point arithmetic (`FP_OPS = 0`; checked integers & exact `p/q` rationals) · Zero cloud control plane required for household routing or firewalling · Public open-violation disclosure (`V-*`).

---

## 2. Continental 3-of-4 Ed25519 Key Ceremony SOP (`SOC 2 CC6.8 / CC8.1 · ISO A.8.24 / A.8.32`)

AyeBoot enforces a **3-of-4 Ed25519 quorum** (`QUORUM_THRESHOLD = 3`) over `AYEKSIG2` (356 B kernel signature header) and `AYEOTA01` (484 B OTA release manifest) with strictly monotonic anti-rollback sequence numbers (`seq > active_seq`) and dual BLAKE3 + SHA-256 digests (matching `boot/crates/ayeos-ota-core` and `boot/scripts/sign-kernel-quorum.py`).

### Pinned Continental Witness Public Keys (`ns1..ns4.i1.is`)
- **`ns1` (EU — Falkenstein):** `395457a6ad68772e7bf54bebb30230a5c728302a13af109c1d2dde9e6f28544d`
- **`ns2` (US-East — Ashburn):** `0d9a610b9dfe91b11511387156d3384be2b9ab77484512941e0b9263c12a5435`
- **`ns3` (US-West — Hillsboro):** `1d585f1d52c41da37adcbe06fdae64db706cdddf79004ba75b6ed77f51052447`
- **`ns4` (APAC — Singapore):** `9ca7ced27352c2cc841e75436d4b0db0b76d8624ea02b10996d4e81a05a8e8e9`

### Open Gap Disclosure (`V-01`) & Remediation Gate
Currently all 4 witness private keys reside on a single operator host (`8bsov`) under Chris Chenoweth (`V-01` in `/conformance/statement.json`). Before entering external SOC 2 Type I or ISO 27001 Stage-1 audit, the witness set **must** execute the **Key Separation Ceremony** below so no single human, workstation, or cloud account holds more than 1 of the 4 private keys.

### Step-by-Step Ceremony Protocol (Key Generation, Rotation & Release Signing)
1. **Pre-Ceremony Preparation:** Publish target release git commit hash, reproducible build environment digest, and expected `seq` increment (`seq_new = seq_prev + 1`) to all 4 custodians at least 24 hours before routine rotation (or out-of-band during emergency response).
2. **Offline Hardware-Backed Generation (Per Custodian):** Each distinct human custodian generates an Ed25519 keypair on an air-gapped machine or FIDO2/PIV/YubiKey-backed HSM (`mode 0600`, zero cloud sync, zero Git commits). Private keys never leave the custodian's hardware boundary.
3. **Public Key Transcript & Cross-Verification:** Each custodian signs a canonical transcript containing `(witness_slot, pubkey_hex, utc_date, custodian_id)` and reads the first/last 8 hex characters aloud over an independent voice/video channel. The Accountable Steward updates `PINNED_WITNESS_PUBKEYS_HEX` in `quorum.rs` and `sign-kernel-quorum.py` via signed commit.
4. **Release Signing (`>= 3` Distinct Signers):**
   - Each participating custodian independently verifies the binary SHA-256 and BLAKE3 digest against their own build or reproducible witness log.
   - Each custodian produces a detached Ed25519 signature over the exact 109-byte `AYEKSIG2_DOMAIN` (`AYEBOOT_KERNEL_V2\0`) digest payload.
   - The assembler verifies `>= 3` **distinct** witness indices (rejecting `< 3` signers or duplicate signer indices) and seals `AYEKSIG2` + `SHA256SUMS`.
5. **Emergency Revocation & Rotation:** Compromise or loss of `1` witness key leaves `3/4` operational to immediately sign a key-rotation release removing the compromised pubkey and enrolling a fresh witness key. Compromise of `>= 2` keys triggers an immediate `SEV-1` halt of autonomous OTA (`halted_by_budget` / manual USB recovery only) until a full 4-key re-ceremony completes.

---

## 3. Annual Tabletop Incident Response (IR) Runbook (`SOC 2 CC7.3–CC7.5 · ISO A.5.24–A.5.28`)

Every calendar year (and after any `SEV-1` incident or major architecture change), the Accountable Steward and witness custodians execute and archive signed receipts for **4 tabletop / live fault drills**:

| Drill ID | Scenario | Target Mechanism & Acceptance Gate | Required Artifact |
|---|---|---|---|
| **IR-01 (`F-01`)** | Bad kernel / corrupted OTA image staged on inactive slot | Intel iTCO 30 s hardware watchdog expires after `MAX_TRIAL_ATTEMPTS = 3`; AyeBoot automatically reverts `SlotB -> SlotA` via `AYEBST01` CRC32C ping-pong BCB with zero manual intervention. | Serial/HDMI log + `/api/status` confirming `slot` revert & `prior_timeout=true`. |
| **IR-02 (`F-02`)** | Suspected compromise of 1 continental witness key (`ns1..ns4`) | Remaining 3 distinct custodians verify incident, revoke compromised key, issue `seq + 1` rotation image within `<= 24 h`, and reject artifacts signed solely by the revoked key. | Signed ceremony transcript + revocation commit hash. |
| **IR-03 (`F-03`)** | Cloud region outage (`Π_edge`) or WAN link stall (`Π_home`) | Remaining 3 DNSSEC/NTP regions continue serving with `0` NXDOMAIN/SERVFAIL regressions; `Π_home` triggers WAN L3/USB self-healing recovery without dropping local LAN/UniFi/Hue/Z-Wave. | External observer probe log (`verify-conformance.py`). |
| **IR-04 (`VDP`)** | External vulnerability or conformance counterexample report | Acknowledge `security@ayeos.com` within `48 h`; reproduce using zero-float harness; log confirmed defects publicly in `/conformance/statement.json` (`V-*`); ship verified fix + regression test. | Dated entry in `docs/receipts/` + updated `statement.json`. |

### Severity & Notification SLA
- **`SEV-1` (Active compromise, quorum breach, or silent data/policy corruption):** Contain immediately (`<= 1 h`), halt OTA staging, notify affected operators and publish advisory within `24 h`.
- **`SEV-2` (Single-region degradation, DoS, or bounded resource exhaustion):** Triage within `4 h`, mitigate within `24 h`, post-mortem receipt within `5` business days.
- **`SEV-3` (Non-exploitable hardening gap or documentation drift):** Track openly in `statement.json` / GitHub issue and close in next planned release cycle.

---

## 4. Document Review & Evidence Trail
- **Review Cadence:** Reviewed annually (next mandatory review: **`2027-11-28`**) or upon key custodian change, major kernel `seq` milestone, or external audit readiness milestone.
- **Evidence Store:** Signed git commits (`ADR-0005`), immutable `docs/receipts/` records, `BLAKE3`-chained `ELDR/1` runtime state, and machine-checkable `/conformance/statement.json`.
