Repository navigation
Description
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, andRunExternalMutationConflictover gRPC (the pattern inenvironment/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
engineand the Define the Files and Commands gRPC services #2689 generated code;osfsis plugged in bycmd/mecatl-executor. A depguard rule enforces it, so Move the contract and adapters into standalone modules #2716 stays a move. cmd/mecatl-executorkeeps 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:racepass, and nothing underengine/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
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.
Activity
/workspacereadiness #2698feat(executorrpc): serve `FileService` from `mecatl-executor serve` (#…