Repository navigation
Description
Related: evalops/platform#834, evalops/platform#831, evalops/platform#833, #85, #89
Problem
Platform can now return typed headless gateway errors for retryable attach failures and authenticated terminal runtime states, but it still cannot safely detect runtime_owned_elsewhere. The missing piece is a hosted Maestro runtime identity/readiness contract that lets Platform verify the runtime behind a Service is the generation recorded in the remote-runner session row.
Without this, a reconnect after runtime replacement can only see not-ready/proxy-failed/terminal state. Platform should not guess that an upstream runtime is stale unless Maestro can echo a generation/fence value minted at provision time.
Scope
Add a small hosted-runtime identity surface for the Maestro remote runner:
- read Platform-injected session id and owner generation from env or launch config
- expose a lightweight HTTP endpoint or response headers that report session id, owner generation, hosted protocol version, ready/draining state, and runtime build metadata
- keep the endpoint safe for the private ClusterIP path; no user secrets or account identifiers
- make readiness/drain state match the hosted headless lifecycle and conformance harness
- document how the Rust runtime and transitional Node/TypeScript path should provide rough parity
Acceptance Criteria
- Hosted runtime has a stable identity/readiness contract Platform can call before proxying a new attach request.
- Contract includes enough data for Platform to compare against
owner_instance_idor a future explicitowner_generation. - Tests cover matching identity, mismatched generation, draining runtime, and missing identity surface.
- The conformance harness in Add headless runtime conformance suite for Rust parity #85/Add hosted runner responsiveness mocks and latency harness #89 can validate this surface directly and through the Platform gateway.
- Docs explain which fields are safe to expose to Platform and which remain runtime-local.
Notes
This pairs with evalops/platform#834. Platform should only add runtime_owned_elsewhere once this runtime-side handshake exists.
Activity
haasonsaas commentedon Apr 23, 2026
Platform companion: evalops/platform#834.
Platform PR evalops/platform#833 intentionally stops short of
runtime_owned_elsewhereuntil Maestro exposes a runtime identity/readiness surface. Once this issue lands, Platform can validate the generation/fence before proxying a fresh attach and can returnruntime_owned_elsewherefor authenticated mismatches instead of a generic retryable proxy failure.