actor-lifecycle-triage
GitHub用于排查 Agent Substrate 中 Actor 状态异常(如卡住、崩溃或无响应)的诊断技能。通过读取 Actor 及 Worker 状态,匹配症状参考表,定位根因并提供证据。
Trigger Scenarios
Install
npx skills add agent-substrate/substrate --skill actor-lifecycle-triage -g -y
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.messageandstatus.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-serverdoes not retry failed lifecycle calls. After a retriable error, the actor stays in its transition state until the caller retries.- During an
ateletrollout, a resume or suspend hitting that node fails withUnavailable(orInternalwithno atelet pod found on nodewhile no pod exists). Running actors are not affected. kubectl ate logs actorstreams 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


