Astral Citadel Operations Runbook
A production-sane walkthrough that keeps CI, governance, execution, and monitoring in lockstep. All commands are available today inside AGI Jobs v0 (v2).
Phase 0 — Toolchain + Environment Integrity
make -C demo/astral-citadel bootstrap- Installs npm dependencies aligned with
.nvmrcand ensures the TypeScript + Hardhat toolchain is present.
- Installs npm dependencies aligned with
npm run ci:verify-toolchain- Validates Node, npm, Foundry, and Docker lockfiles to guarantee reproducible CI.
npm run ci:verify-signers- Confirms signer inventories match the hardcoded governance policies.
npm run docs:verify- Dead link detection for all Markdown, including this runbook.
✅ Gate: if any of the commands above fail, halt and remediate before moving forward.
Phase 1 — Governance Posture
View original Mermaid source
flowchart LR
Safe[Owner Safe] -->|`npm run owner:atlas`| Atlas[Owner Control Atlas]
Atlas -->|export bundles| PlanSafe[`npm run owner:plan:safe`]
Atlas -->|interactive diff| Dashboard[`npm run owner:dashboard`]
Atlas -->|live telemetry| Pulse[`npm run owner:pulse`]
Pulse -->|alerts| Emergency[`npm run owner:emergency`]npm run owner:atlas- Snapshot every governance surface (Safe, Timelock, owner EOA) into a Markdown dossier.
npm run owner:plan:safe -- --network <net>- Emits a ready-to-upload transaction bundle using the same plan consumed during automation.
npm run owner:dashboard -- --network <net>- Visual diff of current configuration vs. the Astral Citadel desired state; ensure all deltas are intentional.
npm run owner:emergency -- --network <net>- Export the emergency pause playbook in case of thermodynamic runaway.
✅ Gate: Governance operators sign off on the diff & pause checklist before execution begins.
Phase 2 — Mission Staging (Local)
make -C demo/astral-citadel dry-run- Wraps
npm run demo:asi-takeoff:localto execute the orchestrator narrative against Anvil usingproject-plan.jsoninputs.
- Wraps
AURORA_REPORT_SCOPE=astral-citadel AURORA_REPORT_TITLE='Astral Citadel — Dry Run' ts-node --transpile-only demo/aurora/bin/aurora-report.ts- Summarizes dry-run receipts. Inspect risk codes emitted by
orchestrator/simulator.py.
- Summarizes dry-run receipts. Inspect risk codes emitted by
npm run monitoring:validate- Ensures sentinel definitions consumed by Mission Control remain valid.
✅ Gate: No blocking risk codes and sentinel validation passes.
Phase 3 — Mainnet-Grade Execution
- Export required secrets:
cp demo/aurora/env.example .envand fill RPC URLs, deployer keys, Safe service endpoints. NETWORK=<net> make -C demo/astral-citadel mission- Wraps
npm run demo:asi-globalwith environment aware network selection (uses.envfor credentials).
- Wraps
npm run reward-engine:update -- --network <net>- Applies RewardEngineMB adjustments triggered by the mission outputs.
npm run thermostat:update -- --network <net>- Re-tunes PID coefficients if entropy thresholds from the run were crossed.
npm run platform:registry:update -- --network <net>- Syncs platform-level job caps and treasury routing with the new plan.
✅ Gate: Governance signs the Safe bundle produced during execution. Receipts stored under
reports/<net>/astral-citadel/.
Phase 4 — Observability + Economic Feedback
npm run owner:mission-control -- --network <net>- Generates the Mission Control dashboard capturing every transaction, pause state, and module config.
npm run hamiltonian:report -- --network <net>- Samples Hamiltonian energy drift to confirm the energy budget remains within the defined corridor.
npm run thermodynamics:report -- --network <net>- Exports thermostat KPIs, temperature history, and entropy deltas.
make -C demo/astral-citadel report- Calls the shared mission reporter with Astral-specific metadata and publishes the consolidated Markdown dossier.
npm run observability:smoke- Validates Prometheus exporters, sentinel endpoints, and job metrics.
✅ Gate: Observability green across the board. Archive the generated reports with release artifacts.
Contingencies
- Thermal runaway — Trigger
npm run owner:emergencyto pause viaSystemPauseand slash high-entropy actors. - Validator outage — Increase quorum weights using
scripts/v2/asiGlobalKit.tsgenerated payloads; validators can stake vianpm run validator:cli. - Economic shock — Run
npm run reward-engine:update -- --kpi emergency-liquidityand adjust burn percentages throughconfig/thermodynamics.jsonfollowed bynpm run thermostat:update.
Deliverables & Storage
- Mission receipts:
reports/<network>/astral-citadel/receipts/*.json - CI artifacts:
reports/<network>/astral-citadel/astral-citadel-report.md - Governance dossier:
reports/<network>/astral-citadel/governance.md - Thermodynamic snapshots:
reports/<network>/astral-citadel/thermodynamics.json
All outputs leverage directories already produced by the Aurora/A.S.I. demos so downstream tooling (dashboards, release packager) can ingest them without modifications.