Skip to content

Define the Files and Commands gRPC services #2689

Description

@blkt

New proto package with a Files service covering today's FileRequest operations (contracts/proto/mecatl/execution/v1/execution.proto:226) and a Commands service with streamed output, each request carrying an opaque context. See one interface, several implementations and commands. Lives in the root module next to execution/v1, so the Kubernetes path does not wait on the module move; #2716 moves it into its own module.

Acceptance criteria

  • Proto and generated code produced by task generate; buf lint/breaking checks configured for the new package.
  • Every operation of the Workspace contract (engine/tool/tool.go:465) has a request/response mapping, including the version and create-only preconditions.
  • Resolve-authority (FILE_OPERATION_RESOLVE_AUTHORITY, execution.proto:215), which backs AuthorityResourceResolver (engine/tool/tool.go:423) and remote permission checks, has a request/response mapping.
  • Command stream ends with a terminal status that can express succeeded, failed, cancelled, and outcome unknown.
  • Opaque context is bytes (or equivalent) and documented as ignored by executors.
  • task lint && task test:race pass, and nothing under engine/ changes.

Depends on

None.

Ships

Independently (unused until #2718).

Size

M. Two services, mostly mapping existing messages.

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