Agent Session Lifecycle Doctrine

•
1
•

Defines standardized lifecycle management rules and state machines for multi-layer agent supervision trees.

This skill serves as a centralized, doctrine-only reference for managing the lifecycles of child sessions across different supervision layers (L1 and L2). It establishes a generic state machine—spanning from spawned to retired—and defines strict teardown guards, context pressure handling, and idle-fleet management rules. By centralizing these protocols, it prevents doctrine drift across different supervision executors, ensuring consistent and safe behavior when launching, monitoring, and retiring subagents or teammates in complex, multi-layered agentic workflows.

주요 기능

01Comprehensive completion check guards including PR and git status verification
02Standardized agent state machine (spawned, working, pr-open, complete, retired)
03Objective-scoped lifetime management rules for task-specific agents
04Context pressure triggers and safe-break gates for session clearing
051 GitHub stars
06Recursive ownership principles for multi-layer (L2 to L0) supervision

사용 사례

01Implementing consistent subagent monitoring in autonomous multi-agent coding workflows
02Managing long-running agent trees that span multiple pull requests or sessions
03Preventing context overflow and drift in complex agent-to-agent hierarchical interactions