{
  "name": "LiberGrid autonomous growth plan",
  "version": "0.1.0",
  "mode": "codex-or-openclaw-executable",
  "objective": "Grow useful compute nodes, keep the network healthy, and prepare public-chain settlement with minimal human intervention.",
  "status_urls": {
    "network": "https://libergrid.org/api/status",
    "health": "https://libergrid.org/health",
    "llm_config": "https://libergrid.org/openclaw-llm.json",
    "worker_install": "https://libergrid.org/worker"
  },
  "roles": {
    "codex": [
      "architecture",
      "code changes",
      "release validation",
      "site updates"
    ],
    "openclaw": [
      "server automation",
      "node monitoring",
      "log collection",
      "threshold execution",
      "incident report"
    ],
    "human": [
      "domain ownership",
      "wallet custody",
      "mainnet spending limits",
      "final business decisions"
    ]
  },
  "node_milestones": [
    {
      "threshold": 10,
      "phase": "Private alpha",
      "automation": [
        "Keep OpenAI-compatible API online",
        "Publish node leaderboard",
        "Run daily health checks",
        "Collect node model, uptime, latency, credits"
      ],
      "settlement": "Off-chain credits only"
    },
    {
      "threshold": 50,
      "phase": "Public testnet",
      "automation": [
        "Enable API key registration",
        "Add per-node reputation score",
        "Export daily ledger snapshots",
        "Prepare testnet settlement contract"
      ],
      "settlement": "Automatic testnet settlement allowed"
    },
    {
      "threshold": 200,
      "phase": "Settlement beta",
      "automation": [
        "Batch credits into weekly settlement files",
        "Publish Merkle root or signed ledger hash",
        "Run testnet settlement every 24 hours",
        "Dry-run mainnet gas and payout simulation"
      ],
      "settlement": "Testnet automatic; mainnet dry-run only"
    },
    {
      "threshold": 1000,
      "phase": "Mainnet readiness",
      "automation": [
        "Require anti-fraud scoring",
        "Require uptime and result-quality minimums",
        "Enable capped mainnet payout queue",
        "Publish public settlement dashboard"
      ],
      "settlement": "Mainnet can be automated only under hard daily caps and pause switch"
    }
  ],
  "chain_policy": {
    "preferred_chains": [
      "Base",
      "Polygon",
      "Arbitrum",
      "Solana"
    ],
    "early_recommendation": "Use an existing low-cost public chain; do not create a new chain.",
    "automatic_testnet": true,
    "automatic_mainnet": "allowed only after caps, monitoring, fraud checks, and emergency pause are live",
    "mainnet_safety_limits": {
      "daily_budget_usd_max_initial": 20,
      "per_node_daily_payout_usd_max_initial": 2,
      "require_settlement_hash_publication": true,
      "require_backup_before_settlement": true,
      "require_pause_file": "/opt/libergrid/PAUSE_AUTOMATION"
    }
  },
  "openclaw_runbook": [
    "Every 10 minutes: GET https://libergrid.org/api/status",
    "If activeNodes drops below 3: restart known worker services and report",
    "If totalNodes reaches a milestone: execute the phase checklist that does not spend mainnet funds",
    "If testnet settlement is enabled and credits increased: export ledger and create testnet settlement transaction",
    "If mainnet settlement is requested: check hard caps, pause file, fraud score, and ledger backup before any transaction",
    "If any step fails twice: stop automation for that step and publish a concise incident report"
  ],
  "pause_conditions": [
    "health endpoint fails for 3 consecutive checks",
    "completed task acceptance rate drops below 50%",
    "unknown node earns unusually high credits",
    "database backup fails",
    "gas price or chain RPC behaves abnormally",
    "PAUSE_AUTOMATION file exists"
  ]
}