Skip to content

Routines: execution fails silently when sandbox/Docker unavailable #697

@sergeiest

Description

@sergeiest

Component: src/agent/routine_engine.rs, src/sandbox/, src/agent/scheduler.rs

When routines dispatch full_job execution but the required infrastructure is unavailable (Docker not installed, sandbox misconfigured, container runtime inaccessible), the job fails with zero feedback:

  • started_at: NULL
  • completed_at: NULL
  • status: failed
  • No error message in routine_runs, agent_jobs, or any log

This is not limited to Docker specifically -- any environment where the execution backend is unavailable (managed infra without Docker, containers without required runtimes, misconfigured sandbox policies) results in silent failure. The user must inspect the database manually to discover failures.

Impact: full_job is the only routine action type that can execute tools, but it silently fails whenever execution infrastructure is missing. On managed infrastructure without Docker, ALL routine types are broken -- lightweight can't use tools (#1), full_job silently fails (#2).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions