Skip to content

Files gRPC server #2694

Closed

Description

@blkt

Serve Files on /workspace from cmd/mecatl-executor, built on today's executor operations (internal/executionexecutor/executor.go, on osfs), which already cover every operation. The work is the gRPC wrapper and per-path serialization of create-only writes and conditional replacements that outlives one operation. It does not import environment/microvm; its workspace service is a reference only. See the server and concurrency and visibility.

Acceptance criteria

  • Passes fsconformance.Run, RunMutationAffinity, and RunExternalMutationConflict over gRPC (the pattern in environment/microvm/workspace/workspace_test.go:23-32).
  • File size bounded by the template's MaxFileBytes.
  • Concurrent calls accepted; per-path serialization covered by a race test.
  • The gRPC server adapter is a separate package that imports only engine and the Define the Files and Commands gRPC services #2689 generated code; osfs is plugged in by cmd/mecatl-executor. A depguard rule enforces it, so Move the contract and adapters into standalone modules #2716 stays a move.
  • cmd/mecatl-executor keeps its one-shot Pod exec mode (cmd/mecatl-executor/main.go) working until Switch file and command operations to the executor server #2718; the server is a separate mode.
  • task lint && task test:race pass, and nothing under engine/ changes.
  • With the transport switch, the offline demo (go run ./cmd/mecademo) shows a tool call, a permission ask and approval, and the result.

Depends on

#2689.

Ships

As part of the transport switch (#2718).

Size

M. Operations exist; the server wrapper and lock lifetime are new.

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