Repository navigation
Closed
Description
Current Implementation Status
- 2026-04-23: Document hosted runner provider contract #101 merged in 308b010 with the provider-neutral hosted runner contract in docs/protocols/hosted-runner-contract.md. It defines identity/configuration, readiness, attach, workspace, lifecycle, drain, error vocabulary, conformance expectations, and provider notes for GKE, GKE Sandbox, Daytona, Modal, and future Firecracker.
- The contract intentionally keeps substrate details behind Platform profiles and points Add Rust-hosted runner adapter for headless conformance suite #99 at the missing Rust-hosted server adapter surface.
Related: #77, #79, #81, #83, #84, #85, evalops/platform#781, evalops/platform#784, evalops/platform#786, evalops/platform#787, evalops/deploy#1024, evalops/deploy#1028, evalops/deploy#1030
Problem
Platform may eventually provision Maestro hosted sessions on several substrates: GKE pods, GKE Sandbox/gVisor, Daytona, Modal, or a future microVM fleet. Maestro should not learn provider-specific details. It needs a small provider-neutral hosted runner contract that every substrate can satisfy and the conformance suite can verify.
Scope
Define and document the hosted runner contract from Maestro's point of view:
- required environment variables and correlation ids: runner session id, workspace id, account id where appropriate, AgentRun id, profile id
- explicit workspace root and outside-root rejection behavior
- headless/listen port and protocol expectations for gateway attachment
- health and readiness endpoints or control messages
- heartbeat/event surface expected by Platform
- drain/shutdown control message and graceful timeout behavior
- artifact/export directory and snapshot manifest path
- import/resume inputs, even if resume is initially disabled
- file permissions, user, non-root assumptions, and local/offline no-op behavior
- provider-neutral error vocabulary for attach, stale owner, drain timeout, workspace violation, and unsupported capability
Acceptance Criteria
- Contract doc or spec lives in Maestro and is linked from the hosted runner issues.
- The contract has no GKE-, Daytona-, Modal-, or Firecracker-specific fields in the public runtime surface.
- Add headless runtime conformance suite for Rust parity #85 conformance coverage can validate the contract against the current TypeScript/headless bridge and the target Rust runtime.
- Platform provisioner work can consume the contract without inspecting Maestro internals.
- Drain/snapshot behavior stays compatible with Add runner workspace snapshot, drain, and resume hooks #83.
Metadata
Metadata
Assignees
Labels
No labels
Activity
haasonsaas commentedon Apr 22, 2026
Review context: this contract should be reviewed alongside evalops/platform#788 (substrate/profile ADR), evalops/platform#789 (security threat model), evalops/platform#786 (profile contract), and evalops/platform#790/#791 (Daytona/Modal prototypes). It is the Maestro-side guardrail that keeps provider choices from leaking into runtime behavior.
haasonsaas commentedon Apr 22, 2026
Review context: this contract should be reviewed alongside evalops/platform#790 (substrate/profile ADR), evalops/platform#791 (security threat model), evalops/platform#786 (profile contract), and evalops/platform#788/#789 (Daytona/Modal prototypes). It is the Maestro-side guardrail that keeps provider choices from leaking into runtime behavior.
haasonsaas commentedon Apr 22, 2026
Local scratch contract test passed in
/tmp/evalops-runner-substrate-scratch-20260422091311/mock_runner_contract.py.The mock runner exposed:
GET /healthzGET /readyzPOST /heartbeatGET /events?cursor=NGET /read?path=...with workspace-root enforcementPOST /drainwritingsnapshot-manifest.jsonObserved behavior:
../outside.txtread returned 403workspace_violationrunner_session_id,agent_run_id,workspace_root, event count, stop reason, and timestampThis is obviously tiny, but it is a good shape for the provider-neutral Maestro hosted runner contract: local health/readiness + event cursor + workspace guard + drain/export manifest, independent of GKE, Daytona, Modal, or future microVM placement.
haasonsaas commentedon Apr 22, 2026
Cross-linking evalops/platform#795 and #88 from the Go-vs-Rust/mock pass.
Please make the provider-neutral hosted runner contract explicit about transport purity:
This keeps Platform in Go while letting Maestro move the runtime kernel/headless path to Rust without changing runner-session/gateway APIs.
haasonsaas commentedon Apr 22, 2026
Created #89 for the responsiveness harness. Useful contract implication here: the hosted runner spec should define enough observable behavior for #89 to test all implementations uniformly, without knowing whether the implementation is current Node/TypeScript, Rust-native, direct, or routed through Platform gateway.
haasonsaas commentedon Apr 23, 2026
#98 now documents and tests the first provider-neutral hosted runtime conformance slice.
Relevant doc:
docs/protocols/headless-conformance.md. It keeps provider/substrate details out of the runtime surface and focuses on protocol behavior: durable session identity, controller/viewer roles, replay/reset, heartbeat, approval response, workspace-root enforcement, and disconnect cleanup.This should feed the hosted runner contract here: GKE, gVisor, Daytona, Modal, and future microVM profiles should all satisfy the same conformance behavior without leaking substrate-specific fields into Maestro clients.
haasonsaas commentedon Apr 23, 2026
#98 merged in
8431e97fb57fd4b4042bef2a471c804d0113a8f5. The provider-neutral contract now has an initial repo-owned conformance doc and executable suite on main.Next provider/substrate work should point at
docs/protocols/headless-conformance.mdwhen deciding what every profile-backed runtime must satisfy.haasonsaas commentedon Apr 23, 2026
#101 is open with the provider-neutral hosted runner contract.
It pins the Maestro-side surface to one runner session, one workspace root, one headless attach protocol, identity/readiness, drain manifest, workspace enforcement, and normalized error vocabulary. Provider specifics stay behind Platform profiles: GKE/GKE Sandbox, Daytona, Modal, and future Firecracker all implement the same Maestro contract.
haasonsaas commentedon Apr 23, 2026
#101 merged in
308b01065ab7bfa9be066391fd3191104a8306de.The hosted runner provider-neutral contract now lives at
docs/protocols/hosted-runner-contract.mdand is linked from the headless protocol reference, conformance doc, and docs index.