{
  "manifest_version": "1.0.0",
  "template": {
    "id": "28cc41bf-6849-4630-b3f7-f82bb92834a5",
    "slug": "agentfield-engineering-team",
    "name": "AgentField Engineering Team",
    "description": "AI Powered Engineering Team",
    "url": "https://railway.com/deploy/agentfield-engineering-team",
    "upstream": {
      "image": "agentfield/control-plane:latest"
    }
  },
  "services": [
    {
      "name": "SWE-AF",
      "source": {
        "repo": "https://github.com/Agent-Field/SWE-AF"
      },
      "needs_volume": true,
      "volume_mount_path": "/workspaces",
      "http": false
    },
    {
      "name": "Postgres",
      "source": {
        "image": "pgvector/pgvector:pg17"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "control-plane",
      "source": {
        "image": "agentfield/control-plane:latest"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "SWE-AF",
      "description": "-",
      "secret": false,
      "strategy": "default",
      "default": "8003"
    },
    {
      "key": "NODE_ID",
      "service": "SWE-AF",
      "description": "-",
      "secret": false,
      "strategy": "default",
      "default": "swe-planner"
    },
    {
      "key": "GH_TOKEN",
      "service": "SWE-AF",
      "description": "-",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "AGENTFIELD_URL",
      "service": "SWE-AF",
      "description": "-",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "AGENTFIELD_SERVER",
      "service": "SWE-AF",
      "description": "-",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "AGENTFIELD_API_KEY",
      "service": "SWE-AF",
      "description": "-",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AGENT_CALLBACK_URL",
      "service": "SWE-AF",
      "description": "-",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "OPENROUTER_API_KEY",
      "service": "SWE-AF",
      "description": "-",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "-",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "-",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "-",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "-",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "-",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "-",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "-",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "-",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "-",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "-",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "-",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PUBLIC_URL",
      "service": "Postgres",
      "description": "-",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "-",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "AGENTFIELD_PORT",
      "service": "control-plane",
      "description": "-",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "AGENTFIELD_API_KEY",
      "service": "control-plane",
      "description": "-",
      "secret": true,
      "strategy": "default",
      "default": "this-is-a-secret"
    },
    {
      "key": "AGENTFIELD_STORAGE_MODE",
      "service": "control-plane",
      "description": "-",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "AGENTFIELD_STORAGE_POSTGRES_URL",
      "service": "control-plane",
      "description": "-",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "agentfield-engineering-team"
      }
    },
    "cli": "railway deploy --template agentfield-engineering-team",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "28cc41bf-6849-4630-b3f7-f82bb92834a5",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "1fee5b66-3df7-4904-8fe7-2b0dbe7bc6cf": {
                  "icon": null,
                  "name": "SWE-AF",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/Agent-Field/SWE-AF",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "-",
                      "defaultValue": "8003"
                    },
                    "NODE_ID": {
                      "isOptional": false,
                      "description": "-",
                      "defaultValue": "swe-planner"
                    },
                    "GH_TOKEN": {
                      "isOptional": false,
                      "description": "-",
                      "defaultValue": "{{GH_TOKEN}}"
                    },
                    "AGENTFIELD_URL": {
                      "isOptional": false,
                      "description": "-",
                      "defaultValue": "http://${{control-plane.RAILWAY_PRIVATE_DOMAIN}}:8080"
                    },
                    "AGENTFIELD_SERVER": {
                      "isOptional": false,
                      "description": "-",
                      "defaultValue": "http://${{control-plane.RAILWAY_PRIVATE_DOMAIN}}:8080"
                    },
                    "AGENTFIELD_API_KEY": {
                      "isOptional": false,
                      "description": "-",
                      "defaultValue": "${{control-plane.AGENTFIELD_API_KEY}}"
                    },
                    "AGENT_CALLBACK_URL": {
                      "isOptional": false,
                      "description": "-",
                      "defaultValue": "http://${{RAILWAY_PRIVATE_DOMAIN}}:8003"
                    },
                    "OPENROUTER_API_KEY": {
                      "description": "-",
                      "defaultValue": "{{OPENROUTER_API_KEY}}"
                    }
                  },
                  "volumeMounts": {
                    "1fee5b66-3df7-4904-8fe7-2b0dbe7bc6cf": {
                      "mountPath": "/workspaces"
                    }
                  }
                },
                "9c8c8b77-1253-48b0-b9d6-59d124aa4d21": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "pgvector/pgvector:pg17"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "-",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "-",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "-",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "-",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "-",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "-",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "-",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "-",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "-",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": false,
                      "description": "-",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "-",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "-",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{PGDATABASE}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "-",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "9c8c8b77-1253-48b0-b9d6-59d124aa4d21": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "d23b5d13-e034-4ec2-937b-ef2a65a2ddcb": {
                  "icon": null,
                  "name": "control-plane",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "agentfield/control-plane:latest"
                  },
                  "variables": {
                    "AGENTFIELD_PORT": {
                      "isOptional": false,
                      "description": "-",
                      "defaultValue": "8080"
                    },
                    "AGENTFIELD_API_KEY": {
                      "isOptional": false,
                      "description": "-",
                      "defaultValue": "this-is-a-secret"
                    },
                    "AGENTFIELD_STORAGE_MODE": {
                      "isOptional": false,
                      "description": "-",
                      "defaultValue": "postgres"
                    },
                    "AGENTFIELD_STORAGE_POSTGRES_URL": {
                      "isOptional": false,
                      "description": "-",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-14T22:14:43.073Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-13T20:42:32.252Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_4eb23795aa474b3ea542",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 193,
    "typical_build_seconds": 102,
    "typical_start_seconds": 20,
    "slowest_service": "SWE-AF"
  }
}
