{
  "manifest_version": "1.0.0",
  "template": {
    "id": "8548d0f8-f80b-4526-b3d7-e2103edff237",
    "slug": "tasuku",
    "name": "Tasuku",
    "description": "Self-hosted AI agent control plane for GitHub and Slack",
    "url": "https://railway.com/deploy/tasuku",
    "upstream": {
      "repo_url": "https://github.com/amalshaji/tasuku"
    }
  },
  "services": [
    {
      "name": "Tasuku",
      "source": {
        "repo": "https://github.com/amalshaji/tasuku"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "tcp_ports": [
        5432
      ],
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "TASUKU_ENV",
      "service": "Tasuku",
      "description": "Runtime environment. Use production for Railway deployments.",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "DATABASE_URL",
      "service": "Tasuku",
      "description": "Internal PostgreSQL connection string wired from the bundled database.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "TASUKU_WEB_ROOT",
      "service": "Tasuku",
      "description": "Directory containing the built dashboard served by Tasuku.",
      "secret": false,
      "strategy": "default",
      "default": "/app/web"
    },
    {
      "key": "TASUKU_LOG_LEVEL",
      "service": "Tasuku",
      "description": "Structured application log level. Use info for normal operation.",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "TASUKU_MASTER_KEY",
      "service": "Tasuku",
      "description": "Generated base64 32-byte key that encrypts stored credentials and secrets. Back it up with the database.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "TASUKU_PUBLIC_URL",
      "service": "Tasuku",
      "description": "Public HTTPS origin used for the dashboard, GitHub webhooks, setup, and OAuth callbacks.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "TASUKU_LISTEN_ADDRESS",
      "service": "Tasuku",
      "description": "Network address and port used by the Tasuku HTTP server.",
      "secret": false,
      "strategy": "default",
      "default": ":8080"
    },
    {
      "key": "TASUKU_BOOTSTRAP_TOKEN",
      "service": "Tasuku",
      "description": "Generated token authorizing first-run organization setup and GitHub App registration.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "TASUKU_ARTIFACT_S3_BUCKET",
      "service": "Tasuku",
      "description": "Private bucket for generated HTML artifacts, wired automatically from Railway storage.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "TASUKU_ARTIFACT_S3_REGION",
      "service": "Tasuku",
      "description": "Signing region for the artifact bucket, wired automatically from Railway storage.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "TASUKU_MASTER_KEY_VERSION",
      "service": "Tasuku",
      "description": "Positive active version recorded with values encrypted by the master key.",
      "secret": true,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "TASUKU_ALLOW_INSECURE_HTTP",
      "service": "Tasuku",
      "description": "Allows local non-production HTTP origins. Keep false for Railway HTTPS deployments.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "TASUKU_WORKFLOW_MAX_EVENTS",
      "service": "Tasuku",
      "description": "Maximum number of persisted events retained for one agent workflow.",
      "secret": false,
      "strategy": "default",
      "default": "10000"
    },
    {
      "key": "TASUKU_ARTIFACT_S3_ENDPOINT",
      "service": "Tasuku",
      "description": "Server-side S3-compatible endpoint wired automatically from Railway storage.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "TASUKU_PREVIOUS_MASTER_KEYS",
      "service": "Tasuku",
      "description": "JSON map of prior key versions retained temporarily during master-key rotation.",
      "secret": true,
      "strategy": "default",
      "default": "{}"
    },
    {
      "key": "TASUKU_MAX_CONCURRENT_AGENTS",
      "service": "Tasuku",
      "description": "Global concurrent agent-job limit across workers sharing this database.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "TASUKU_WORKER_SHUTDOWN_GRACE",
      "service": "Tasuku",
      "description": "Time allowed for active agent jobs to finish after worker shutdown begins.",
      "secret": false,
      "strategy": "default",
      "default": "2m"
    },
    {
      "key": "TASUKU_AGENT_EXECUTION_TIMEOUT",
      "service": "Tasuku",
      "description": "Maximum duration allowed for a single agent execution attempt.",
      "secret": false,
      "strategy": "default",
      "default": "30m"
    },
    {
      "key": "TASUKU_WORKER_FINALIZE_TIMEOUT",
      "service": "Tasuku",
      "description": "Deadline for persisting final workflow state after an execution ends.",
      "secret": false,
      "strategy": "default",
      "default": "15s"
    },
    {
      "key": "TASUKU_WORKFLOW_MAX_EVENT_BYTES",
      "service": "Tasuku",
      "description": "Maximum serialized size in bytes of one persisted workflow event.",
      "secret": false,
      "strategy": "default",
      "default": "1048576"
    },
    {
      "key": "TASUKU_ARTIFACT_S3_ACCESS_KEY_ID",
      "service": "Tasuku",
      "description": "Artifact bucket access-key ID wired automatically from Railway storage.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "TASUKU_ARTIFACT_S3_PUBLIC_ENDPOINT",
      "service": "Tasuku",
      "description": "HTTPS storage origin used for short-lived signed artifact preview URLs.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "TASUKU_ARTIFACT_S3_FORCE_PATH_STYLE",
      "service": "Tasuku",
      "description": "Uses path-style S3 URLs required by the Railway bucket endpoint.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "TASUKU_ARTIFACT_S3_SECRET_ACCESS_KEY",
      "service": "Tasuku",
      "description": "Artifact bucket secret key wired automatically from Railway storage.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "TASUKU_WORKFLOW_MAX_TOTAL_EVENT_BYTES",
      "service": "Tasuku",
      "description": "Maximum total persisted event bytes retained for one workflow.",
      "secret": false,
      "strategy": "default",
      "default": "33554432"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "PostgreSQL data directory persisted by the attached Railway volume.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Private hostname for PostgreSQL inside the Railway project.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "PostgreSQL server port used by internal clients.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Client username derived from the configured PostgreSQL user.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Default client database derived from the configured database name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Client password derived from the generated PostgreSQL password.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Database created when PostgreSQL initializes for the first time.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Private PostgreSQL connection string used by Tasuku.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "PostgreSQL superuser created during first initialization.",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "Validity period in days for the generated PostgreSQL TLS certificate.",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Random database password generated independently for each deployment.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PUBLIC_URL",
      "service": "Postgres",
      "description": "Public TCP-proxy connection string for administrative access.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Seconds Railway allows PostgreSQL to drain before stopping a deployment.",
      "secret": false,
      "strategy": "default",
      "default": "60"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "tasuku"
      }
    },
    "cli": "railway deploy --template tasuku",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "8548d0f8-f80b-4526-b3d7-e2103edff237",
            "serializedConfig": {
              "buckets": {
                "3b237d1a-4d41-41bc-a41a-7dd5ed5caddd": {
                  "name": "Artifacts"
                }
              },
              "services": {
                "bf7cbec7-f343-4f72-9a95-fcbae0499b5b": {
                  "icon": "https://raw.githubusercontent.com/amalshaji/tasuku/main/assets/branding/tasuku-icon-transparent.png",
                  "name": "Tasuku",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/readyz",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/amalshaji/tasuku",
                    "rootDirectory": null
                  },
                  "variables": {
                    "TASUKU_ENV": {
                      "isOptional": false,
                      "description": "Runtime environment. Use production for Railway deployments.",
                      "defaultValue": "production"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Internal PostgreSQL connection string wired from the bundled database.",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "TASUKU_WEB_ROOT": {
                      "isOptional": false,
                      "description": "Directory containing the built dashboard served by Tasuku.",
                      "defaultValue": "/app/web"
                    },
                    "TASUKU_LOG_LEVEL": {
                      "isOptional": false,
                      "description": "Structured application log level. Use info for normal operation.",
                      "defaultValue": "info"
                    },
                    "TASUKU_MASTER_KEY": {
                      "isOptional": false,
                      "description": "Generated base64 32-byte key that encrypts stored credentials and secrets. Back it up with the database.",
                      "defaultValue": "{{TASUKU_MASTER_KEY}}"
                    },
                    "TASUKU_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Public HTTPS origin used for the dashboard, GitHub webhooks, setup, and OAuth callbacks.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "TASUKU_LISTEN_ADDRESS": {
                      "isOptional": false,
                      "description": "Network address and port used by the Tasuku HTTP server.",
                      "defaultValue": ":8080"
                    },
                    "TASUKU_BOOTSTRAP_TOKEN": {
                      "isOptional": false,
                      "description": "Generated token authorizing first-run organization setup and GitHub App registration.",
                      "defaultValue": "{{TASUKU_BOOTSTRAP_TOKEN}}"
                    },
                    "TASUKU_ARTIFACT_S3_BUCKET": {
                      "isOptional": false,
                      "description": "Private bucket for generated HTML artifacts, wired automatically from Railway storage.",
                      "defaultValue": "${{Artifacts.BUCKET}}"
                    },
                    "TASUKU_ARTIFACT_S3_REGION": {
                      "isOptional": false,
                      "description": "Signing region for the artifact bucket, wired automatically from Railway storage.",
                      "defaultValue": "${{Artifacts.REGION}}"
                    },
                    "TASUKU_MASTER_KEY_VERSION": {
                      "isOptional": false,
                      "description": "Positive active version recorded with values encrypted by the master key.",
                      "defaultValue": "1"
                    },
                    "TASUKU_ALLOW_INSECURE_HTTP": {
                      "isOptional": false,
                      "description": "Allows local non-production HTTP origins. Keep false for Railway HTTPS deployments.",
                      "defaultValue": "false"
                    },
                    "TASUKU_WORKFLOW_MAX_EVENTS": {
                      "isOptional": false,
                      "description": "Maximum number of persisted events retained for one agent workflow.",
                      "defaultValue": "10000"
                    },
                    "TASUKU_ARTIFACT_S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "Server-side S3-compatible endpoint wired automatically from Railway storage.",
                      "defaultValue": "${{Artifacts.ENDPOINT}}"
                    },
                    "TASUKU_PREVIOUS_MASTER_KEYS": {
                      "isOptional": false,
                      "description": "JSON map of prior key versions retained temporarily during master-key rotation.",
                      "defaultValue": "{}"
                    },
                    "TASUKU_MAX_CONCURRENT_AGENTS": {
                      "isOptional": false,
                      "description": "Global concurrent agent-job limit across workers sharing this database.",
                      "defaultValue": "1"
                    },
                    "TASUKU_WORKER_SHUTDOWN_GRACE": {
                      "isOptional": false,
                      "description": "Time allowed for active agent jobs to finish after worker shutdown begins.",
                      "defaultValue": "2m"
                    },
                    "TASUKU_AGENT_EXECUTION_TIMEOUT": {
                      "isOptional": false,
                      "description": "Maximum duration allowed for a single agent execution attempt.",
                      "defaultValue": "30m"
                    },
                    "TASUKU_WORKER_FINALIZE_TIMEOUT": {
                      "isOptional": false,
                      "description": "Deadline for persisting final workflow state after an execution ends.",
                      "defaultValue": "15s"
                    },
                    "TASUKU_WORKFLOW_MAX_EVENT_BYTES": {
                      "isOptional": false,
                      "description": "Maximum serialized size in bytes of one persisted workflow event.",
                      "defaultValue": "1048576"
                    },
                    "TASUKU_ARTIFACT_S3_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Artifact bucket access-key ID wired automatically from Railway storage.",
                      "defaultValue": "${{Artifacts.ACCESS_KEY_ID}}"
                    },
                    "TASUKU_ARTIFACT_S3_PUBLIC_ENDPOINT": {
                      "isOptional": false,
                      "description": "HTTPS storage origin used for short-lived signed artifact preview URLs.",
                      "defaultValue": "${{Artifacts.ENDPOINT}}"
                    },
                    "TASUKU_ARTIFACT_S3_FORCE_PATH_STYLE": {
                      "isOptional": false,
                      "description": "Uses path-style S3 URLs required by the Railway bucket endpoint.",
                      "defaultValue": "true"
                    },
                    "TASUKU_ARTIFACT_S3_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Artifact bucket secret key wired automatically from Railway storage.",
                      "defaultValue": "${{Artifacts.SECRET_ACCESS_KEY}}"
                    },
                    "TASUKU_WORKFLOW_MAX_TOTAL_EVENT_BYTES": {
                      "isOptional": false,
                      "description": "Maximum total persisted event bytes retained for one workflow.",
                      "defaultValue": "33554432"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                },
                "c0c44bfb-41d6-438d-912f-e72f5a2256ec": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "PostgreSQL data directory persisted by the attached Railway volume.",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Private hostname for PostgreSQL inside the Railway project.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "PostgreSQL server port used by internal clients.",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Client username derived from the configured PostgreSQL user.",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Default client database derived from the configured database name.",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Client password derived from the generated PostgreSQL password.",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database created when PostgreSQL initializes for the first time.",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Private PostgreSQL connection string used by Tasuku.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "PostgreSQL superuser created during first initialization.",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": false,
                      "description": "Validity period in days for the generated PostgreSQL TLS certificate.",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Random database password generated independently for each deployment.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Public TCP-proxy connection string for administrative access.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{PGDATABASE}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Seconds Railway allows PostgreSQL to drain before stopping a deployment.",
                      "defaultValue": "60"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "5432": {}
                    }
                  },
                  "volumeMounts": {
                    "c0c44bfb-41d6-438d-912f-e72f5a2256ec": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Tasuku",
      "method": "GET",
      "path": "/readyz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-10T17:31:27.920Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_2572c0b6169b4c26b962",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": false,
        "detail": "Your workspace has been restricted. Please contact support to resolve this."
      }
    ]
  }
}
