Skip to content

Add hosted runner responsiveness mocks and latency harness #89

Closed

Description

@haasonsaas

Related: #85, #86, #88, #81, #84, evalops/platform#783, evalops/platform#790, evalops/platform#795

Problem

The remote-runner work needs two separate test surfaces:

  1. conformance: does a hosted runner satisfy the protocol contract?
  2. responsiveness: how does it behave under attach, ready, prompt, event-stream, and drain traffic?

A scratch Go/Rust mock runner helped compare implementation boundaries, but that harness should become a reproducible repo-owned fixture instead of a one-off local experiment.

Scope

Add a small hosted-runner mock/benchmark harness that can exercise the same observable behavior against:

  • current TypeScript/Node headless or hosted runner path
  • future Rust-hosted runner path
  • Platform gateway adapter once evalops/platform#783 exists
  • experimental substrates from evalops/platform#790 when they are available

Suggested fixture endpoints/messages:

  • health/ready
  • headless hello/session metadata
  • prompt request/response with configurable synthetic delay
  • event stream with cursor support
  • drain/shutdown request and snapshot manifest response
  • startup failure and structured protocol error cases

Metrics To Capture

  • startup-to-ready latency
  • attach/hello latency
  • prompt request p50/p95/p99 under configurable concurrency
  • event stream first-byte latency and reconnect behavior
  • drain latency and timeout behavior
  • resident memory where easy to collect
  • structured error behavior under missing provider credentials or workspace violations

Acceptance Criteria

  • A documented local command runs the harness against a mock runner and the real built Maestro headless entrypoint.
  • The harness emits machine-readable JSON results suitable for attaching to ADRs and issue comments.
  • Add headless runtime conformance suite for Rust parity #85 remains the correctness gate; this issue adds performance/responsiveness signals without making fragile microbenchmarks block normal development.
  • The harness includes a regression check for Fix headless stdio purity and add startup handshake smoke #88: no non-protocol stdout before the first headless response.
  • Platform can later point the harness at the gateway route from evalops/platform#783 to compare direct-runner and gateway-mediated behavior.

Activity

  1. haasonsaas commented on Apr 22, 2026

    @haasonsaas
    ContributorAuthor

    Implemented in #90. The PR adds scripts/headless-responsiveness-harness.js, which exercises an in-process mock runner plus the real built headless CLI and emits JSON metrics for health/ready/hello/prompt/events/drain and stdout framing.

  2. haasonsaas commented on Apr 23, 2026

    @haasonsaas
    ContributorAuthor

    Adding Platform gateway context for the responsiveness harness: evalops/platform#833 gives the harness stable retry/terminal attach outcomes to measure through the gateway (runtime_not_ready, runtime_proxy_failed, runtime_lost, runtime_failed, runtime_exited).

    The next runtime parity axis is owner-generation identity: #95 plus evalops/platform#834 should let the harness compare direct-runtime vs gateway-mediated behavior for runtime_owned_elsewhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions