Skip to content

Client for Files and Commands #2710

Closed

Description

@blkt

Replace the workspace and runner adapters in internal/adapter/executionclient/client.go with a client of the new services that implements tool.Workspace and tool.CommandRunner (engine/tool/tool.go:145,465), usable against the trusted service or a local executor. Keep today's rules: full request context per call, no gRPC retries, no retry of a command with unknown outcome. See one interface, several implementations.

Acceptance criteria

  • Client against In-memory implementation of Files and Commands #2691 passes fsconformance, and files_conformance_test.go runs it as a target alongside the current transport.
  • Test: a dropped connection during a command reports unknown and is not retried.
  • Request context encoded in the opaque context; no new methods on Workspace, CommandRunner, or CommandStreamer.
  • The gRPC client package imports only engine and the Define the Files and Commands gRPC services #2689 generated code (depguard rule); outcome unknown is a host-side error value.
  • task lint && task test:race pass, and nothing under engine/ changes.
  • executionclient can use the client behind an opt-in, off by default; making it the only transport and dropping the old files_conformance_test.go target belong to Switch file and command operations to the executor server #2718.
  • The offline demo (go run ./cmd/mecademo) still shows a tool call, a permission ask and approval, and the result.

Depends on

#2689, #2691.

Ships

As part of the transport switch (#2718).

Size

M. Adapter rewrite against an existing interface.

Part of the Kubernetes execution design; see its work breakdown.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions