Skip to content

Commands gRPC server #2695

Closed
Closed

Description

@blkt

Run /bin/sh -c in /workspace, stream stdout/stderr, cancel when the call closes, and kill the process group and every descendant, reporting outcome unknown when cleanup cannot be confirmed. Built on today's subreaper cleanup (internal/executionexecutor/command_linux.go); environment/microvm/guestexec/server.go:55 is a reference for streaming, not imported. See commands and what withdrawal does not do.

Acceptance criteria

  • Tests: output streams before exit; closing the call kills a command that forked a background child; a process that survives the kill yields outcome unknown, not success.
  • Non-root execution and minimal environment preserved (existing confinement_test.go behaviors).
  • Command service adapter follows the same import rule as Files gRPC server #2694's; a command conformance suite (streaming, cancellation, exit status, outcome unknown) in a package importing only engine and Define the Files and Commands gRPC services #2689 runs against this server and In-memory implementation of Files and Commands #2691.
  • 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

L. Process supervision on Linux with confirmation semantics.

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

Activity

  1. changed the issue type fromtoon Nov 5, 2026
  2. self-assigned this
    on Nov 12, 2026
  3. blkt commented on Nov 18, 2026

    @blkt
    ContributorAuthor

    Closing: every acceptance criterion except the offline demo is met.

    The remaining criterion ("with the transport switch, the offline demo shows a tool call, a permission ask and approval, and the result") moves to #2718, which already lists it word for word and is where the transport switch happens.

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

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