agent_lifecycle

A requirements document describing how a multi-agent system registers agents, tracks their states, assigns resources, receives heartbeats, and stops agents safely.

In plain words
What is it for?
Use it when designing or implementing worker-agent roles, state transitions, monitoring, resource allocation, and graceful shutdown.
Why use it?
It gives developers a detailed reference for managing agents through their full lifecycle in an orchestration system.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/kivo360/omoios/agent_lifecycle
Clone the repo
git clone --depth 1 https://github.com/kivo360/OmoiOS
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,333 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.04333
Opus 5 $0.00000 $0.02167
Sonnet 5 $0.00000 $0.00867
Haiku 4.5 $0.00000 $0.00433

Measured 2d ago against content hash 63371e9bcb89, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

agent_lifecycle scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

docs/requirements/agents/agent_lifecycle.md · 544 lines

How it starts

The opening of the file, as written. The whole thing — 544 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Agent Lifecycle Management Requirements

Created: 2025-11-20 Status: Draft Purpose: Specify detailed requirements for the full lifecycle management of agents in the multi-agent orchestration system Related: docs/requirements/agents/multi_agent_orchestration.md


Document Overview

This document specifies detailed requirements for managing the complete lifecycle of agents within the multi-agent orchestration system. It covers agent registration, state transitions, heartbeat protocols, resource allocation, and graceful termination procedures.

Parent Document: Multi-Agent Orchestration Requirements


1. Agent Types and Classifications

1.1 Worker Agents

Worker agents are the primary executors of domain-specific tasks within the workflow pipeline.

REQ-AGENT-WORKER-001: Worker Agent Specialization

WHEN a worker agent is instantiated, THE SYSTEM SHALL assign exactly ONE phase specialization from the following set:

  • PHASE_REQUIREMENTS: Requirements analysis and decomposition
  • PHASE_IMPLEMENTATION: Code generation and modification
  • PHASE_VALIDATION: Output verification and acceptance testing
  • PHASE_ANALYSIS: Investigation and root cause analysis
  • PHASE_TESTING: Comprehensive test execution

Rationale: Specialization ensures agents develop deep expertise in their domain, leading to higher quality outputs and more predictable behavior patterns.

Acceptance Criteria:

  • Agent cannot be assigned tasks from phases outside its specialization
  • Agent metadata includes phase_id as immutable property
  • System rejects attempts to reassign agent specialization after instantiation
REQ-AGENT-WORKER-002: Worker Capability Declaration

WHEN a worker agent registers with the system, THE SYSTEM SHALL require the agent to declare its capabilities as a structured list including:

  • Supported programming languages
  • Framework expertise
  • Tool proficiencies (e.g., specific MCP tools)
  • Domain knowledge areas
  • Maximum concurrent task capacity

Read the full file on GitHub · 544 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 544 lines · 0 tokens per session scan A 63371e9bcb89

Subscribe to this mod's changes

agent_lifecycle is an agent published in the GitHub repository kivo360/OmoiOS (75 stars, last pushed 2mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 4,333 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.