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 / CEREMONY-RUNBOOK-DRAKE.md

154 lines · 11338 bytes Raw Blame History Source

Key ceremony runbook for Drake (step by step)

This is the hands-on version of KEY_CEREMONY.md. It covers one evening of work, done once. It uses only what scripts/key-ceremony.sh already does; nothing here is a new tool. Related: sc#118 (your checklist), sc#385 (the design), arch#190 comment 6109731585 (your approval of the offline signing design).

The idea in one paragraph. You make a secret key on a computer that is not connected to anything. The key is like a rubber stamp that only you own. Every public release gets stamped with it. The matching "public half" (which cannot stamp, only check a stamp) is published so anyone can check a release is genuine. The secret half never goes near the internet, GitHub, the Spark or any AI.

Two kinds of files. Learn this first.

KindFilesMay leave the offline computer?
SECRETaien_release_ed25519 (the key file, no extension) in ~/aien-key/ and the same file on each backup stickNever. It stays on the offline computer and the two backup sticks.
Public~/aien-key/public/allowed_signers and ~/aien-key/public/ceremony-record.txt, and the key's .pub fileYes. These are safe to publish and are what gets committed to the repository.

The public folder is the only thing you carry out. If you ever see a file called aien_release_ed25519 (without .pub) in the folder you are about to carry out, stop.

The ceremony record contains your name, the witness's name, the date, the fingerprint (the key's short ID), and the test results. It does not contain the key. Because it will be committed to a public repository, check you are happy for both names to be public. If not, tell the engineering side before step 5; the record format is fixed by the script, so this would need a change.

What you need

Part A: Before the evening (on the Spark, or any normal connected computer)

Step 1. Get the script onto the PUBLIC CARRY stick.

Step 2 (optional but recommended). Practise on the Spark. This is safe: it makes a throwaway key labelled REHEARSAL.

Part B: The ceremony (on the OFFLINE computer, with the witness)

Step 3. Go offline and bring the script.

Step 4. Plug in the two backup sticks and start the script. Nothing is created before you confirm.

Step 5. Confirm and give names. The script asks "Is this machine offline ... and is the witness watching?" Type yes. Then it asks for your full name and the witness's full name; type them.

Step 6. Make the key. The script shows "Step 2 of 6: make the key" and ssh-keygen asks for a passphrase twice.

Step 7. Fingerprint check by the witness. The screen shows Fingerprint: SHA256:....

Step 8. The public-key test (automatic). Type the passphrase when asked.

Step 9. Backups, one stick at a time. For each stick the script says "Backup N goes to ... Is that medium plugged in?" Type yes. It copies the key, compares the copy to the original byte for byte, then makes the copy stamp a test file (passphrase again) and verifies it.

Step 10. The public record. The script prints the record and saves it in ~/aien-key/public/.

Step 11. Custody (who holds what).

Step 12. Prove a backup works later (any time, offline computer, backup plugged in). Safe, changes nothing:

Step 13. Carry the PUBLIC half out.

Part C: Handing the public record to the Spark (connected computer)

Step 14. Give the two public files to the engineering side.

Everything the engineering side does next is in the next section.

Post-ceremony integration (what the engineering side does after step 14)

One pull request, title "release: pin the public release key from the key ceremony (sc#118, sc#385)". It is made with scripts/apply-ceremony-public-record.sh ~/ceremony-public, which refuses a rehearsal record, extra files, private key material, or an inconsistent record, and ends by running scripts/check-release-trust-config.sh.

FileChange
docs/release/allowed_signersthe placeholder text is replaced by a short header plus one key line (aien-release ssh-ed25519 ...)
install.shone line: AIEN_RELEASE_SIGNER='<the same key line>' (was empty)
docs/release/ceremony-record.txtnew, the public record copied unchanged

Nothing else. You review the diff: the fingerprint in the record is checked against your paper, and CI runs scripts/check-release-trust-config.sh (the key line, the installer value and the record must all agree; a fingerprint that is not the key's, a rehearsal marker, a second key, the old internal test key, or private key material all fail).

What proves this will work, before and after: scripts/test-public-key-integration.sh (runs in CI with throwaway keys) performs this exact change from a rehearsal public folder and shows: the diff is only those three files; a release signed by the matching key installs as signature_check: release and the receipt's signer fingerprint equals the record's; a different key, a tampered archive and a tampered checksum list are refused; and nine kinds of wrong record are refused. After the real pull request merges, the only things the real key does are sign SHA256SUMS.txt at each release, offline (KEY_CEREMONY.md, "Signing a release").

Still required before any public release (this runbook does not change them): the physical rollback gate and the signing and model gates. Pinning the key alone does not make a public release; no tag is created by this work.