interplane.Get Omega
Read in your language

aien-sovereign-core-mv

AienOS host runtime: inference scheduling, paged KV state, the aien CLI and Spark verification tooling. Its inference engine is in alpha testing (DGX Spark GB10); Omega is the implementation destination.

Brought by drakestapleton

branch main Branches Tags History

aien-sovereign-core-mv / docs / release / KEY_CEREMONY.md

84 lines · 5496 bytes Raw Blame History Rendered
1# Release key ceremony (plain-English guide)
2
3This is how the AIEN public-release key gets made. It happens once. Drake (the operator) does it with one witness
4watching. The script `scripts/key-ceremony.sh` walks through every step on screen and stops if anything is wrong.
5Operator checklist: sc#118. Ruling: Drake ruling 1, sc#385.
6
7**What the key is.** A digital seal. Every public release gets a small seal file (`SHA256SUMS.txt.sig`). Anyone's
8computer can check that seal against the public half of the key, which is published in this repository. Only the
9private half can make a seal, so the private half must never touch the internet.
10
11**What is human-only.** Everything in this guide. No AI, CI job or server makes, holds or uses this key. The steps an
12AI may do are listed at the end.
13
14## What you need
15
16- One computer that will stay **offline** for the ceremony: network cable out, Wi-Fi off. A spare laptop is fine.
17 It needs `ssh-keygen` (part of OpenSSH; on a Mac or Linux it is already there) and a copy of this repository's
18 `scripts/key-ceremony.sh` (copy it on a USB stick before you unplug the network).
19- Two USB sticks for the backups (label them "AIEN KEY BACKUP 1" and "2"), and a third for carrying public files out.
20- A witness, a pen and paper.
21- A passphrase you can remember: long, written nowhere the key is kept.
22
23## Practise first (optional, five minutes, safe anywhere)
24
25```sh
26bash scripts/key-ceremony.sh ceremony --rehearsal --out /tmp/practice --backup /tmp/practice-b1 --backup /tmp/practice-b2
27```
28
29It makes a throwaway key labelled REHEARSAL everywhere. It is never a release key. Delete `/tmp/practice*` after.
30
31## The ceremony
32
331. **Go offline.** Unplug the network cable and turn Wi-Fi off. Plug in the two backup sticks. The witness watches the
34 screen from here on.
352. **Start the script** in a terminal, in the folder holding the script:
36 ```sh
37 bash key-ceremony.sh ceremony --out ~/aien-key --backup /media/BACKUP1/aien-key --backup /media/BACKUP2/aien-key
38 ```
39 (On a Mac the sticks appear under `/Volumes/` instead of `/media/`.) If the computer still has a network route, or
40 any folder is inside a code checkout, the script stops and tells you why. Nothing is made yet.
413. **Confirm and give names.** Type `yes` to confirm you are offline and the witness is watching, then type your name
42 and the witness's name.
434. **Make the key.** `ssh-keygen` asks for the passphrase twice. The witness does not look at the keyboard.
445. **Fingerprint.** The screen shows a line like `SHA256:Ab3...xYz`. The witness copies it onto paper by hand, then
45 types its last 8 characters back in. If they do not match, the script stops.
466. **Public-key verification test (automatic).** The key seals a fresh test file, the seal is checked against the
47 public key, and then a copy of the file with one letter changed must be **refused**. You will see:
48 `good signature verifies: yes` and `altered file is refused: yes`. You type the passphrase once here.
497. **Verified backups.** For each stick, type `yes` when it is plugged in. The key is copied, compared byte for byte,
50 and the copy on the stick must seal and verify on its own (passphrase again). You will see
51 `backup 1 is an exact copy: yes` and the two test lines, then the same for backup 2.
528. **The public record.** The script prints the record and saves it with the public key in `~/aien-key/public/`
53 (`allowed_signers` and `ceremony-record.txt`). Nothing secret is in that folder. The witness signs the paper
54 with the fingerprint, date and both names.
559. **Carry out the public half only.** Copy the folder `~/aien-key/public` to the third stick. Never copy the key
56 file itself. Store the two backup sticks in two different safe places.
57
58## After the ceremony
59
60Step-by-step version for the operator: `CEREMONY-RUNBOOK-DRAKE.md`.
61
62- Hand `public/allowed_signers` and `public/ceremony-record.txt` to the orchestrator. It opens one pull request that
63 puts that key line into `docs/release/allowed_signers` and `install.sh` (`AIEN_RELEASE_SIGNER`), and the tests prove
64 a release sealed with it installs as `signature_check: release`. You check the fingerprint in that pull request
65 against your paper before it is merged.
66- Any time later, check a backup still works (offline machine, stick plugged in):
67 `bash key-ceremony.sh verify-backup /media/BACKUP1/aien-key/aien_release_ed25519 ~/aien-key/public/allowed_signers`
68 You should see `backup OK`.
69
70## Signing a release (each release, human only)
71
721. CI drafts the release and its `SHA256SUMS.txt` (not public yet).
732. Copy `SHA256SUMS.txt` to a stick, take it to the offline machine and run
74 `bash key-ceremony.sh sign ~/aien-key/aien_release_ed25519 ~/aien-key/public/allowed_signers SHA256SUMS.txt`.
75 It lists the files the seal vouches for; type `yes` if they are the release you mean, then the passphrase. You
76 should see `signed and verified: SHA256SUMS.txt.sig`.
773. Carry `SHA256SUMS.txt.sig` back and attach it to the draft release on GitHub. Then the publish workflow checks the
78 seal and publishes; if anything does not match, it refuses and nothing is published.
79
80## What an AI may do, and what it never does
81
82May: write and test this script with throwaway REHEARSAL keys, prepare the pull request that pins the public key,
83run the publish workflow after you have attached the seal. Never: make, see, copy, store or use the real private key;
84claim a ceremony happened; create a public release tag.