{
  "manifest_version": "1.0.0",
  "template": {
    "id": "36d0fe7d-2836-4ae1-88f3-6da30091474f",
    "slug": "zero-paper-runtime",
    "name": "ZERO Paper Runtime",
    "description": "Paper-first ZERO runtime for self-custodial onchain operations.",
    "url": "https://railway.com/deploy/zero-paper-runtime",
    "upstream": {
      "repo_url": "https://github.com/zero-intel/zero"
    }
  },
  "services": [
    {
      "name": "zero",
      "source": {
        "repo": "https://github.com/zero-intel/zero"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "ZERO_MODE",
      "service": "zero",
      "description": "Runtime mode. Keep paper for hosted public deployments.",
      "secret": false,
      "strategy": "default",
      "default": "paper"
    },
    {
      "key": "ZERO_JOURNAL_PATH",
      "service": "zero",
      "description": "Durable journal path mounted on the Railway volume.",
      "secret": false,
      "strategy": "default",
      "default": "/data/decisions.jsonl"
    },
    {
      "key": "ZERO_DEPLOYMENT_ID",
      "service": "zero",
      "description": "Public-safe deployment identifier for diagnostics and evidence.",
      "secret": false,
      "strategy": "default",
      "default": "zero-railway-public-paper"
    },
    {
      "key": "ZERO_HYPERLIQUID_LIVE_PRICES",
      "service": "zero",
      "description": "Use live Hyperliquid public market data while orders remain paper.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "ZERO_INTELLIGENCE_API_ACCOUNT_ID",
      "service": "zero",
      "description": "Public-safe account id for delayed Intelligence API demo packets.",
      "secret": false,
      "strategy": "default",
      "default": "acct_railway"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "zero-paper-runtime"
      }
    },
    "cli": "railway deploy --template zero-paper-runtime",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "36d0fe7d-2836-4ae1-88f3-6da30091474f",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "9cff9d13-e9a5-454d-893b-9d57907bfede": {
                  "icon": null,
                  "name": "zero",
                  "deploy": {
                    "startCommand": "/app/scripts/railway_start.sh",
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/zero-intel/zero",
                    "rootDirectory": null
                  },
                  "variables": {
                    "ZERO_MODE": {
                      "isOptional": true,
                      "description": "Runtime mode. Keep paper for hosted public deployments.",
                      "defaultValue": "paper"
                    },
                    "ZERO_JOURNAL_PATH": {
                      "isOptional": true,
                      "description": "Durable journal path mounted on the Railway volume.",
                      "defaultValue": "/data/decisions.jsonl"
                    },
                    "ZERO_DEPLOYMENT_ID": {
                      "isOptional": true,
                      "description": "Public-safe deployment identifier for diagnostics and evidence.",
                      "defaultValue": "zero-railway-public-paper"
                    },
                    "ZERO_HYPERLIQUID_LIVE_PRICES": {
                      "isOptional": true,
                      "description": "Use live Hyperliquid public market data while orders remain paper.",
                      "defaultValue": "1"
                    },
                    "ZERO_INTELLIGENCE_API_ACCOUNT_ID": {
                      "isOptional": true,
                      "description": "Public-safe account id for delayed Intelligence API demo packets.",
                      "defaultValue": "acct_railway"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "9cff9d13-e9a5-454d-893b-9d57907bfede": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "zero",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-20T12:27:44.052Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_0cbdb3dccdbe4608a3a8",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": false,
        "detail": "Repository \"zero-intel/zero\" not found or is not accessible"
      }
    ]
  }
}
