Agent Skills › agent-substrate/substrate › actor-lifecycle-triage

actor-lifecycle-triage

GitHub

诊断 Actor 状态异常,如卡住、崩溃或拒绝调用。通过读取 Actor、Worker 和 Atelet 状态,匹配症状参考表,定位根因并提供证据。只读操作,用于故障排查。

.agents/skills/actor-lifecycle-triage/SKILL.md agent-substrate/substrate

Trigger Scenarios

Actor 卡在非终态(如 RESUMING, SUSPENDING) Actor 状态为 CRASHED Lifecycle 调用被拒绝 (FailedPrecondition) Actor RUNNING 但无响应或日志异常

Install

npx skills add agent-substrate/substrate --skill actor-lifecycle-triage -g -y
More Options

Non-standard path

npx skills add https://github.com/agent-substrate/substrate/tree/main/.agents/skills/actor-lifecycle-triage -g -y

Use without installing

npx skills use agent-substrate/substrate@actor-lifecycle-triage

指定 Agent (Claude Code)

npx skills add agent-substrate/substrate --skill actor-lifecycle-triage -a claude-code -g -y

安装 repo 全部 skill

npx skills add agent-substrate/substrate --all -g -y

预览 repo 内 skill

npx skills add agent-substrate/substrate --list

SKILL.md

Frontmatter
{
    "name": "actor-lifecycle-triage",
    "description": "Finds why an Agent Substrate actor is stuck in a state, CRASHED, refuses a lifecycle call, or is RUNNING but not answering. Use after the troubleshoot skill picks the actor lifecycle area, or directly when one actor's state looks wrong. Reads the actor, its worker and atelet, matches the symptom against the reference tables, and reports the root cause with evidence. Read-only."
}

Actor lifecycle triage

Follow the rules, fact collection, and report format in the troubleshoot skill. This skill covers one actor.

Actor states are RESUMING, RUNNING, SUSPENDING, SUSPENDED, CRASHED, DELETING, and REVERTING. New actors start SUSPENDED. A resume call (or an incoming request through atenet-router) moves an actor to RUNNING, and it stays RUNNING until explicitly suspended. The only way out of CRASHED is kubectl ate revert actor, which resets the actor to SUSPENDED at its last uploaded snapshot.

1. Read the actor

kubectl ate get actor <actor> -a <atespace> -o yaml

Note:

  • status.state, and how long it has stayed there.
  • status.crash.message and status.crash.crashTime, if CRASHED.
  • status.workerAssignment: the worker pod, its namespace and pool.
  • status.assignedNode.

2. Check the worker and atelet

A resume, suspend, or revert calls atelet on the assigned node, which calls the worker. Check both:

kubectl -n <worker-namespace> get pod <worker-pod> -o wide
kubectl -n ate-system get pods -l app=atelet -o wide --field-selector spec.nodeName=<node>
kubectl ate get workers

A missing worker pod or an unready atelet on the node causes most stuck and crashed actors. Note what you find for step 3.

3. Match the symptom

Pick the section of references/states.md that matches the actor:

Symptom Section
Stuck in RESUMING, SUSPENDING, REVERTING, or DELETING Stuck in a transition
CRASHED CRASHED, by status.crash.message
Call refused with FailedPrecondition Call refused
RUNNING, but requests or logs show it is not working RUNNING but not working

Run the Confirm check before calling a root cause. These logs are useful across all cases:

# ate-api-server runs every lifecycle call and logs each one as `Handle RPC`,
# with the request and the error. It runs more than one replica.
kubectl -n ate-system logs -l app=ate-api-server -c ate-api-server \
  --since=1h --tail=-1 --prefix | grep '<actor>'
# The actor's lifecycle events on its current worker. Works only while RUNNING.
kubectl ate logs actor <actor> -a <atespace> --source=lifecycle

4. Known gaps

  • On gVisor, an actor stays RUNNING even after its sandbox dies (such as from OOM, see #2211). Nothing marks it CRASHED.
  • ate-api-server does not retry failed lifecycle calls. After a retriable error, the actor stays in its transition state until the caller retries.
  • During an atelet rollout, a resume or suspend hitting that node fails with Unavailable (or Internal with no atelet pod found on node while no pod exists). Running actors are not affected.
  • kubectl ate logs actor streams only while the actor is RUNNING. For earlier logs, use the cluster's log backend.

5. Report

Use the report format in troubleshoot, with Area: actor lifecycle.

Version History

  • 7319f1a Current 2026-11-27 19:01

Same Skill Collection

.agents/skills/detect-flaky-tests/SKILL.md
.agents/skills/post-draft-review/SKILL.md
.agents/skills/review-crds/SKILL.md
.agents/skills/security-status-report/SKILL.md
.agents/skills/triage-issues/SKILL.md
.agents/skills/troubleshoot/SKILL.md
.agents/skills/agents-md/SKILL.md

Metadata

Files
0
Version
7319f1a
Hash
0d971794
Indexed
2026-11-27 19:01

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.156.0. UTC+08:00, 2026-11-27 19:18
浙ICP备14020137号-1