Repository navigation
Description
From the Maestro remote/runtime review on 2026-04-22.
Reviewed heads:
evalops/maestro@ae6e88a22d3a36d34d07c5c507375cfd7fdcd372evalops/platform@7b003938349939052f90ae41241599993a7c06c9
Parent tracker: #76
Problem
The Maestro Helm chart and container image are enough to start dist/web-server.js, but they do not yet encode the production contract needed for hosted remote/headless servers: API auth, Redis/Postgres/session storage, SSE/WS ingress behavior, graceful draining, secret wiring, security context, autoscaling/PDB, and runtime workspace persistence/isolation.
Evidence:
deploy/helm/maestro/values.yaml:1-24hasreplicaCount, image, service, resources, and only four platform URL env values.deploy/helm/maestro/templates/deployment.yaml:1-48has a simple Deployment with basic probes but no service account controls, security context, PDB/HPA, preStop/drain, ingress/SSE timeout annotations, session storage, Redis, database, or existing-secret conventions.src/web-server.ts:795-805can requireMAESTRO_WEB_API_KEYandMAESTRO_REDIS_URL, but the chart does not surface these production profile settings.src/server/handlers/health.ts:31-63readiness only checks database state and reports database-down as degraded/HTTP 200; it does not validate Redis, migrations, auth config, model/provider readiness, runtime owner backing store, or remote-session dependencies.Dockerfile:1-73builds with Bun and shipsdist,node_modules, and packages into a Node runner; the hosted remote image needs a clearer runtime dependency and workspace/persistence story.
Scope
- Add chart values for API auth/JWT/JWKS/CSRF/origin, Redis, Postgres/session storage, trusted proxy, session scope, remote/headless limits, and provider/platform URLs.
- Add hosted-mode guards: fail multi-replica headless mode unless Make headless runtime fleet-safe across Maestro web replicas #78's routing/sticky contract is configured.
- Add production Kubernetes shape: serviceAccount annotations, pod security context, container security context, PDB/HPA, startup probe, preStop/drain, termination grace period, ServiceMonitor, NetworkPolicy hooks, and existingSecret/external-secret compatible values.
- Add ingress guidance/values for SSE and WebSocket timeouts, body sizes, and sticky routing if used.
- Extend readiness to report hard failures for required hosted dependencies in production profile: Redis when required, database/session store when required, migrations if known, auth config, and remote runtime routing store.
- Add a small remote-server smoke path for container/chart: start web server, create headless session, subscribe SSE, send heartbeat/message, and shut down cleanly.
Acceptance Criteria
- The chart can be configured for local single-node and hosted production modes without hidden env vars.
- Hosted production mode fails fast when required auth/Redis/session/routing settings are missing.
- Helm template output includes security context, graceful shutdown, PDB/HPA or explicit disabled values, and documented ingress/SSE/WS behavior.
- Readiness returns 503 for missing required hosted dependencies rather than
degraded/200 when the deployment cannot actually serve remote sessions. - CI or a smoke script verifies container startup and headless create/subscribe/heartbeat flow.
Related: #76, #78, #79, #77, evalops/platform#671, evalops/platform#780.
Runtime Parity / Conformance Links
- Define Rust core runtime parity contract for hosted Maestro #84 — Rust core runtime parity decision for hosted Maestro.
- Add headless runtime conformance suite for Rust parity #85 — headless runtime conformance suite that should gate Rust-hosted runner parity.
Use #85 as the protocol-level acceptance bar: lifecycle, subscribe/events/messages/heartbeat/disconnect, viewer/controller roles, permission request/response, utility operations, workspace-root enforcement, cursor replay/reset, and drain/resume behavior should match across the current TypeScript web/headless bridge and the target Rust runtime.
Activity
haasonsaas commentedon Apr 23, 2026
PR is up at #138.
This slice hardens the Helm/runtime deployment shape: restricted pod defaults, service account controls, writable
/tmp, startup/graceful shutdown probes, PDB/HPA templates, and a guard that rejects multi-replica hosted-runtime deployments unless an explicit routing mode is configured. Local Helm renders, lint, Biome, and the Helm chart test file are green.