Zenith Sapience Planetary Operating System – Operator Runbook
This runbook walks a non-technical steward through running the Zenith Sapience Planetary Operating System demo either locally or in CI. Every command delegates to shipping AGI Jobs v0 (v2) tooling; the operator never needs to modify code.
1. Pre-flight Checklist
- Workstation requirements
- Node.js version from
.nvmrc - npm 9+
- Git
- (Optional) Foundry toolchain for local rehearsals
- Node.js version from
- Repository sync
git fetch origingit checkout <branch>containing the demonpm ci
- Environment
- For deterministic runs no extra environment variables are required.
- For local rehearsals ensure Hardhat is available; the script spawns it automatically.
- Owner credentials (only for mainnet activation)
- Multisig keys (executed via Safe or hardware wallets)
- Timelock administration rights
✅ Confirm every checklist item before proceeding. The
command-center.mdoutput documents this attestation.
2. Deterministic Governance Kit (Audit Mode)
npm run demo:zenith-sapience-planetary-os- Observe the prefixed logs in the terminal (
[plan],[missionControl],[thermostat], etc.). - When the run completes, review artefacts in
reports/zenith-planetary-os:summary.md– executive digestmission-control.md– operational dashboardparameter-matrix.md– editable owner parametersthermodynamics.json– incentive thermostat telemetrycommand-center.md– chronological command log
- Archive the generated kit (
zenith-planetary-os-governance-kit.json) for auditors.
The deterministic kit runs without network access and is therefore safe on air-gapped machines.
3. Local Rehearsal (Hardhat / Anvil)
npm run demo:zenith-sapience-planetary-os:local- The script boots an ephemeral Hardhat chain and deploys all v2 contracts.
- Default keys (Hardhat mnemonic) are provided via environment variables; replace them to test custom roles.
- Inspect artefacts in
reports/localhost/zenith-planetary-osto verify parity with deterministic outputs. - Optional: point dashboards to a browser or monitoring stack for live rehearsals.
4. Owner Control Drills
- Thermostat adjustment
- Run
npm run owner:parameters -- --network hardhat --format markdown --out reports/zenith-planetary-os/parameter-matrix.md - Execute
npx hardhat run scripts/v2/updateThermodynamics.ts --network hardhat - Confirm the thermostat delta in
thermodynamics.json
- Run
- Pause / Resume
- Trigger pause:
npm run owner:system-pause -- --network hardhat --action pause - Resume:
npm run owner:system-pause -- --network hardhat --action unpause - Verify status inside
mission-control.md
- Trigger pause:
- Identity updates
- Use
npm run owner:identity-registry -- --network hardhat --listto review registered agents - Apply updates according to
OWNER-CONTROL.md
- Use
Record each drill completion inside command-center.md (the deterministic harness appends entries automatically when scripts execute).
5. Mainnet Activation (Optional)
Follow only after rehearsals are green.
- Prepare deployment wallets and RPC endpoints according to
docs/deployment/mainnet.md. - Execute the deterministic kit in dry-run to freeze artefacts for sign-off.
- Use
npm run deploy:checklistfor the interactive deployment checklist. - Run
npm run demo:zenith-sapience-planetary-os -- --network mainnetwith environment variables pointing to production RPC and keys. - Capture resulting artefacts and distribute them to stakeholders.
- Update ENS subdomains for orchestrator, agents, council, and validators.
6. CI Integration
The workflow .github/workflows/demo-zenith-sapience-planetary-os.yml mirrors this runbook. On every PR or push to main, GitHub Actions:
- Installs dependencies via
npm ci - Runs the deterministic kit (
npm run demo:zenith-sapience-planetary-os) - Performs the local rehearsal (
npm run demo:zenith-sapience-planetary-os:local) - Uploads artefacts for reviewer download
Merge is blocked unless the workflow and the global ci (v2) workflow are green.
7. Incident Handling
- Immediately execute the SystemPause action described above.
- Notify the multisig council; obtain signatures for emergency measures.
- Export
reports/zenith-planetary-os/mission-control.mdandcommand-center.mdto the incident channel. - Run
npm run owner:command-centerto regenerate the command timeline post-incident. - Resume operations only after sign-off from the owner council.
8. Post-Run Archival
- Store the
reports/folder in immutable storage (IPFS, S3 with versioning, etc.). - Commit hashes of artefacts to the audit ledger (
npm run audit:hash -- reports/zenith-planetary-os). - Update governance dashboards or external monitoring tools as required.
By following this runbook, non-technical custodians can demonstrate, rehearse, and operate the Zenith Sapience Planetary Operating System while keeping complete control over the AGI Jobs v0 (v2) stack.