Files
kandev/docs/specs/executors/README.md
T
2026-09-24 07:37:17 +01:00

93 lines
4.4 KiB
Markdown

---
status: draft
system: executors
specification_version: 1
migration: in_progress
owners:
- kandev
---
# Executor system
## Purpose
The executor system owns the runtime environments that execute agent work,
including local, container, and SSH execution boundaries.
## Ownership
This system owns executor profiles, environment construction, SSH lifecycle,
runtime resource admission, process and port safety, agent process lifetime
across a backend restart, and executor-specific failure and recovery contracts.
## Exclusions
- Agent identity and provider capabilities belong to the [agent
system](../agents/README.md).
- Task ownership of worktrees belongs to the [task system](../tasks/README.md).
- Desktop process supervision belongs to the [desktop system](../desktop/README.md).
## Specification map
### Requirements
- [Agent survival across a backend restart](requirements/agent-survival-across-restart.md)
- [Survived session state and capability gating](requirements/agent-survival-session-state.md)
- [Standalone control-server ownership](requirements/standalone-control-server-ownership.md)
- [Standalone control-server single driver and unowned lifetime](requirements/standalone-control-server-single-driver.md)
- [Executor-Profile Environment Precedence](requirements/executor-profile-env-precedence.md)
- [Port collision and backend ownership safety](requirements/port-collision-safety.md)
- [SSH Executor](requirements/ssh-executor.md)
- [Remote SSH task-directory reclamation](requirements/remote-task-directory-reclamation.md)
- [Kubernetes worker presets](requirements/kubernetes-worker-presets.md)
- [Kubernetes startup timing](requirements/kubernetes-startup-timing.md)
- [Kubernetes retained compute visibility](requirements/kubernetes-retained-compute.md)
- [SSH Session Transport Liveness](requirements/ssh-transport-liveness.md)
- [SSH Host Reachability](requirements/ssh-reachability.md)
### System design
- [Agent survival across a backend restart Part 1](system-design/agent-survival-across-restart-01.md)
- [Agent survival across a backend restart Part 2](system-design/agent-survival-across-restart-02.md)
- [Agent survival across a backend restart Part 3](system-design/agent-survival-across-restart-03.md)
- [Executor-Profile Environment Precedence System Design Part 1](system-design/executor-profile-env-precedence-01.md)
- [Executor-Profile Environment Precedence System Design Part 2](system-design/executor-profile-env-precedence-02.md)
- [Executor-Profile Environment Precedence System Design Part 3](system-design/executor-profile-env-precedence-03.md)
- [Executor-Profile Environment Precedence System Design Part 4](system-design/executor-profile-env-precedence-04.md)
- [Executor-Profile Environment Precedence System Design Part 5](system-design/executor-profile-env-precedence-05.md)
- [SSH Executor](system-design/ssh-executor.md)
- [Remote SSH task-directory reclamation](system-design/remote-task-directory-reclamation.md)
- [Kubernetes worker presets](system-design/kubernetes-worker-presets.md)
- [Kubernetes startup timing](system-design/kubernetes-startup-timing.md)
- [Kubernetes retained compute visibility](system-design/kubernetes-retained-compute.md)
- [SSH Session Transport Liveness](system-design/ssh-transport-liveness.md)
- [SSH Host Reachability](system-design/ssh-reachability.md)
- [SSH Host Reachability Surfaces](system-design/ssh-reachability-surfaces.md)
## Migration record
Migration remains in progress while legacy source detail is extracted from the
canonical requirement and system-design documents. Use the catalog command to
find current sources.
The [Kubernetes executor foundation](../kubernetes-executor/spec.md) remains
the shipped lifecycle contract. Kubernetes capability pairs extend it. The
[task-pod requirements](requirements/kubernetes-task-pod.md) and
[design](system-design/kubernetes-task-pod.md) define task-owned compute and
replace session ownership. Other foundation
security, admission, and recovery guarantees remain applicable.
## Related systems
- [Agents](../agents/README.md): supplies the agent command and profile.
- [Tasks](../tasks/README.md): owns task-scoped execution lifecycle.
The compact task indicator contract is extracted into
[requirements](requirements/task-status-indicators.md) and
[design](system-design/task-status-indicators.md), including automatic freshness
and desktop/touch disclosure. The foundation retains task-page controls.