Skip to content

feat: implement additional shutdown strategies #202

@Aureliolo

Description

@Aureliolo

Summary

Only Cooperative with Timeout (Strategy 1) is implemented. The spec defines three additional strategies.

Design Spec Reference

  • §6.7 Graceful Shutdown Protocol — Strategies 2, 3, 4

Scope

  • Immediate Cancel (Strategy 2): Force-cancel all agent tasks immediately
  • Finish Current Tool (Strategy 3): Wait for current tool invocation to complete even past grace period (needs per-tool timeout backstop)
  • Checkpoint and Stop (Strategy 4): Persist full AgentContext snapshot, transition to SUSPENDED, resume on restart
  • All must implement ShutdownStrategy protocol

Metadata

Metadata

Assignees

No one assigned

    Labels

    prio:lowNice to have, can deferscope:medium1-3 days of workspec:agent-systemDESIGN_SPEC Section 3 - Agent Systemspec:task-workflowDESIGN_SPEC Section 6 - Task & Workflow Enginetype:featureNew feature implementationv0.8Minor version v0.8v0.8.0Patch release v0.8.0

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions