Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
177 commits
Select commit Hold shift + click to select a range
7b00417
benchmarking: write the turnover window with the whole-run keys (#3789)
chw120 Nov 11, 2026
905e2a6
benchmarking: add --burst-size to pace ResumePaused cold resumes in w…
sairajp-rewind Nov 11, 2026
e472ffb
benchmarking/evaluate: run evaluations, with a run_results source (#3…
roycaihw Nov 12, 2026
5809059
Logo cleanup (#3791)
thockin Nov 12, 2026
cf5768a
benchmarking only: move the shared Nighthawk adaptive-load helpers in…
ygao-g Nov 13, 2026
a464646
Update klauspost/compress to v1.20.4 to fix govulncheck (#3850)
HavenXia Nov 14, 2026
8be213f
Upgrade Go to 1.27.4 (#3857)
juli4n Nov 16, 2026
9b6e926
Run `govulncheck` with the Go version from go.mod (#3856)
juli4n Nov 16, 2026
5148368
docs: retain NFS controller privileges in the CSI example (#3521)
cloudonly Nov 16, 2026
0d6a5fd
Document that ActorTemplate volumes need not be mounted (#3096)
cloudonly Nov 16, 2026
d283af4
benchmarking/evaluate: a cel source that evaluates CEL over data read…
roycaihw Nov 17, 2026
3d57449
ci: retry github api calls in draft release scripts (#3704)
annapendleton Nov 17, 2026
03502e4
benchmarking/nighthawk-egress: size the rig so atenet-egress is the b…
ygao-g Nov 18, 2026
aa326f0
benchmarking(Declarative Workload Install): add a shared workers help…
pmandewalkar Nov 18, 2026
abf55fe
atenet-router: add safe actor assignments caching and retry logic (#2…
panchoruy Nov 18, 2026
0b6e6f1
ateworker: let in-flight run and restores finish on shutdown (#3658)
sfunkenhauser Nov 18, 2026
b2258bc
k8s credential provider: add cache of secret values and labels (#3635)
yufan-su Nov 18, 2026
abe8af0
atenet: make the router's xds_cluster STATIC (#3717)
botengyao Nov 18, 2026
9b368a6
Add dataplane timeouts doc (#3418)
yanavlasov Nov 18, 2026
fa032ed
Requests that outlast a slow actor resume get a retryable 503 instead…
yufan-su Nov 18, 2026
9647361
Count actor DNS queries by egress policy decision (#3395)
LiorLieberman Nov 18, 2026
aae29a8
egress: refuse to dial loopback, link-local and metadata addresses (#…
LiorLieberman Nov 18, 2026
f7686a4
Add volume snapshot support to volume plugins (#1849)
Sneha-at Nov 18, 2026
ae3f8b5
Remove the Trendshift badge from the README (#3964)
juli4n Nov 18, 2026
342aca8
[performance] objectstorage: split 64-128 MiB sparse uploads into two…
chw120 Nov 18, 2026
def1649
atelet: a detach whose upload attempt times out is Unavailable (#3532)
dims Nov 18, 2026
7be78c4
csi: wait for the node plugin to come back after a restart (#3212)
anishgang Nov 18, 2026
dfae565
atelet: move snapshot-state.json back from the snapshot directory at …
anishgang Nov 18, 2026
dbd20df
atelet: clean up actor files when pruning snapshots from before a reb…
anishgang Nov 18, 2026
34094b7
atelet: end a detach's op under one lock (#3085)
igooch Nov 18, 2026
a4cc1a5
ci: don't create a second draft release on rerun (#3928)
annapendleton Nov 18, 2026
357ebea
Resuming a microVM actor no longer reads its snapshot back from disk …
BenTheElder Nov 18, 2026
0a68712
k8s-credential-provider: send metrics to the cluster collector (#3962)
git286 Nov 18, 2026
a6ac398
atelet: fix TestTrackerDetachTimer flake (#3879)
msau42 Nov 18, 2026
1d15491
atecontroller: time out each worker syncer RPC after a minute (#3413)
HavenXia Nov 18, 2026
4b57dfc
Detect dead ate-api-server connections with gRPC keepalive (#3372)
HavenXia Nov 18, 2026
f2c1993
microvm: Run virtiofsd without a thread pool to fix flakes (#3380)
dims Nov 18, 2026
9a4a877
Register CRD types with apimachinery's SchemeBuilder (#3920)
juli4n Nov 18, 2026
08ad1d1
microVM: close the container's stdin before start (#3265)
ziyue-101 Nov 18, 2026
40af7d0
Show secretSelector matchLabels on k8s-credential-provider /statusz (…
aalzo Nov 18, 2026
d544501
e2e: test async-suspended local checkpoints for restorable and disabl…
shrutiyam-glitch Nov 19, 2026
1117cae
benchmarking(agentsession): spread requests per second over a second …
EtiennePerot Nov 19, 2026
d7dd187
ateapi: rename store.DeletePreconditions to OptionalPrecondition (#3989)
haiyanmeng Nov 19, 2026
a7b437d
controlapi: remove unused RPCService.persistence (#3705)
haiyanmeng Nov 19, 2026
b0fab6b
benchmarking: add the nighthawk-egress test type (#3841)
ygao-g Nov 19, 2026
320fb44
ateapi: drop unknown fields when reading worker assignments (#3636)
HavenXia Nov 19, 2026
57f360a
e2e: test WorkerPool configRef changes and bad SandboxConfig asset SH…
shrutiyam-glitch Nov 19, 2026
bbf941b
atunnel, atenet-router and the egress gateway limit kernel send queue…
chuangw6 Nov 19, 2026
15f4a9f
ateworker-gvisor: wait for the sandbox to be reaped after `fscheckpoi…
EtiennePerot Nov 20, 2026
a014f27
ateworker-gvisor: Start `runsc` faster on large-core-count hosts (#3982)
EtiennePerot Nov 20, 2026
9b7201a
benchmarking: add the nighthawk-egress adaptive capacity runner (#3878)
ygao-g Nov 20, 2026
b909b18
ateworker-gvisor: Grant `IPC_LOCK` to enable fast sandbox teardown (#…
EtiennePerot Nov 20, 2026
dc747ef
ateworker-gvisor: delete containers in one command rather than three …
EtiennePerot Nov 20, 2026
e8a6a66
Begin to remove validation from DB layer (#3860)
thockin Nov 20, 2026
5a7ebf0
ateworker: report ready only after sandbox runtimes are registered (#…
shrutiyam-glitch Nov 20, 2026
bf66367
atelet: stage default sandbox runtime into worker directory and remov…
shrutiyam-glitch Nov 20, 2026
66e3bf9
ResumeActor returns FAILED_PRECONDITION when an actor is larger than …
laoj2 Nov 20, 2026
76f18c0
ateapi: merge store.OptionalPrecondition into store.Precondition (#4004)
haiyanmeng Nov 20, 2026
1ecbf08
ateworker-gvisor: skip redundant stop commands after checkpoint (#4035)
cloudonly Nov 20, 2026
0752916
Worker pods and other pods that don't call the Kubernetes API no long…
destijl Nov 20, 2026
0084e51
ateworker-gvisor: Wait for sandbox exit, not sandbox reap (#4036)
EtiennePerot Nov 20, 2026
fc5cbac
ci: run each e2e sandbox class in its own job (#3723)
EItanya Nov 20, 2026
29457da
actornet: create the sandbox veth with one queue per direction (#4038)
EtiennePerot Nov 20, 2026
d10010b
ci: run verify-all.sh in its own job (#3722)
EItanya Nov 20, 2026
37913f5
ateworker-gvisor: wait for sandbox exit without holding a thread (#4052)
BenTheElder Nov 20, 2026
60a3d1a
ci: only save caches from main (#4051)
BenTheElder Nov 20, 2026
cf0663c
build(deps): bump github.com/go-jose/go-jose/v4 from 4.1.4 to 4.1.6 i…
dependabot[bot] Nov 21, 2026
f438db1
build(deps): bump github.com/go-jose/go-jose/v4 from 4.1.4 to 4.1.6 (…
dependabot[bot] Nov 21, 2026
b807420
ci: speed up dynamic module tests by using the image's clang (#4058)
asbarron Nov 21, 2026
8f6b511
build(deps): bump source-map-js from 1.2.1 to 1.2.4 in /site (#4062)
dependabot[bot] Nov 21, 2026
2c1d750
build(deps): bump go.opentelemetry.io/otel/trace from 1.44.0 to 1.47.…
dependabot[bot] Nov 21, 2026
3be9cee
build(deps): bump go.opentelemetry.io/otel/trace from 1.44.0 to 1.47.…
dependabot[bot] Nov 21, 2026
6a57479
Update OpenTelemetry Go to v1.47.0 (#4067)
BenTheElder Nov 21, 2026
f542804
atepg: Simplify metadata updates (#4082)
thockin Nov 21, 2026
8368e76
apierror: preserve error cause and expose it via DebugInfo (#4043)
itzPranshul Nov 22, 2026
62e6b67
ate-setup: validate release transitions (#3493)
tryambak2019 Nov 23, 2026
aa6441e
fix dataplane comments (#4100)
ramaraochavali Nov 23, 2026
1b5bb3a
Assign execution identities in the API server (#3735)
lilong555 Nov 23, 2026
19a7268
ateapi: remove WorkerPool informer (#2925)
shrutiyam-glitch Nov 23, 2026
251606a
A gVisor actor whose sandbox dies gets a final usage record with its …
baizhenyu Nov 23, 2026
ad9e5ba
benchmarking: in-place orchestrator invocations (#1956)
maxsmythe Nov 23, 2026
a071f26
scheduling, workercache: add placement benchmarks (#4000)
shrutiyam-glitch Nov 23, 2026
0efa9e7
docs: add identity overview (#3831)
destijl Nov 24, 2026
e54c359
clarify that an in-tree implementation is required for API changes (#…
LiorLieberman Nov 24, 2026
17fbd12
Upgrade Kubernetes libraries to v0.38.0-beta.0 (#4053)
yongruilin Nov 24, 2026
5e026c7
docs: document egress policy cache side effect and warn against reusi…
yufan-su Nov 24, 2026
ad2a515
skill: add troubleshoot and actor-lifecycle-triage (#3974)
HavenXia Nov 24, 2026
4bb8a6a
ateapi: Validate Actor, Worker mark-for-deletion (#4083)
thockin Nov 24, 2026
c56d067
ateapi: attach underlying cause to remaining apierror call sites (#4104)
itzPranshul Nov 24, 2026
6b8a4b1
fix(benchmarking): announce golden snapshot readiness (#1890)
roycaihw Nov 24, 2026
3506f25
feat(benchmarking): forward --user-class through deploy_locust.sh (#1…
roycaihw Nov 24, 2026
77b866e
fix(benchmarking): honor NO_DEV_ENV in the benchmarking scripts (#1893)
roycaihw Nov 24, 2026
e562b34
Update API validation to use new DV capabilities (#4137)
thockin Nov 24, 2026
caac645
kubectl-ate: match actor UID when filtering logs (#4114)
git286 Nov 24, 2026
d4c749d
Drop the alpha and beta prefixes from declarative validation tags (#4…
yongruilin Nov 25, 2026
435d9b2
benchmarking: run the test entry's evaluations with each run (#3552)
roycaihw Nov 25, 2026
d45828b
benchmarking: add node disk throughput to server telemetry (#2807)
roycaihw Nov 25, 2026
57e59ec
egress: carry WebSocket over HTTP/1.1 through atenet-egress (#3985)
yufan-su Nov 25, 2026
d61984a
Tear down a gVisor sandbox whose runsc containers fail to delete (#3845)
sfunkenhauser Nov 25, 2026
1062dc5
atelet: fix worker connection leak on concurrent dials (#3861)
vincent0426 Nov 25, 2026
edcd1a9
[security tests] add actor isolation tests (#2546)
siyanshen Nov 25, 2026
7319f1a
atenet-egress: /runtime_modify can turn full access logging back on (…
yufan-su Nov 25, 2026
081ef6d
Rework ate-apiserver functional tests (#3508)
juli4n Nov 28, 2026
8207d24
The Kubernetes credential provider reloads its namespace policy witho…
QuentinBisson Nov 30, 2026
1901b2d
Support namespace-scoped workload watches (#2188)
cloudonly Nov 30, 2026
5939b39
Support for feature gates on RPC methods (#4127)
juli4n Nov 30, 2026
96007ec
skill: update troubleshoot and actor-lifecycle-triage for crash handl…
HavenXia Nov 30, 2026
8e5cb84
[security tests] add concurrent 2-replica space isolation tests (#2816)
siyanshen Nov 30, 2026
f63cf42
benchmarking: record CPU cores used in the run summary (#4224)
aditya-shantanu Nov 30, 2026
25d441a
ate-api-server spreads CSI controller calls across every address the …
anishgang Nov 30, 2026
c0cfd4f
objectstore-plugin: reload the exchange CA bundle on each handshake (…
KR-Ravindra Nov 30, 2026
bf601b9
Pass preview gates explicitly instead of holding them in package stat…
haiyanmeng Dec 1, 2026
15538f0
Pull optimization: use klauspost compress/gzip instead of stdlib comp…
amyxu-08 Dec 1, 2026
dee4d2c
Add bookmark links to API elements (#4246)
juli4n Dec 1, 2026
b81164f
ate-setup: check prebuilt upgrades before deploy (#4113)
tryambak2019 Dec 1, 2026
9fd7957
[security tests] add actor network and worker tunnel isolation tests…
siyanshen Dec 1, 2026
3bab097
Remove unused actorRef parameter from prepareOCIBundles (#4215)
xigang Dec 1, 2026
0c882d7
Share GCS HTTP/2 connections across actor snapshot transfers in objec…
moficodes Dec 1, 2026
51e1b61
dataplane: upgrade to v1.40.0 and fix policy store leak (#4252)
panchoruy Dec 1, 2026
dba0c36
(ateapi): report cpu, memory and actor capacity and allocation per wo…
krisztianfekete Dec 1, 2026
a98a4d4
atenet-egress: the Envoy admin API serves only the paths the gateway …
yufan-su Dec 1, 2026
b78a7ee
atenet-egress: raise circuit breaker limits for gRPC and passthrough …
yufan-su Dec 1, 2026
558138b
Pull optimization: reduce per-file path lookups and buffer allocation…
amyxu-08 Dec 1, 2026
005fd74
Pull optimization: unpack largest layers first in pullWith (#3749)
amyxu-08 Dec 2, 2026
559c8c8
DeleteTag refuses the golden tag of a live ActorTemplate (#4234)
sunnylovestiramisu Dec 2, 2026
ec994c9
benchmarking(Declarative Workload Install): install workloads through…
pmandewalkar Dec 2, 2026
8f528ab
ateworker-gvisor logs a WARN line when an actor container exits while…
baizhenyu Dec 2, 2026
0dfdc6c
docs: document preview gates and annotate gated API fields (#4056)
panchoruy Dec 2, 2026
48224c4
GCS snapshot tokens are minted locally, so large clusters no longer h…
ILLUM1N0X Dec 2, 2026
cc0aad4
e2e: add more coverage on websocket (ws:// and wss://) in egress (#4235)
yufan-su Dec 2, 2026
6b60b19
e2e: fix the TestIngressCache_GRPCBypassesCache flake (#4264)
HavenXia Dec 2, 2026
561177e
Add IPv6 actor networking (#3867)
keithmattix Dec 2, 2026
f625e1d
ateapi: add --template-reconciler-workers flag (#3837)
diamondburned Dec 2, 2026
31ae0d7
Accept optional version and uid preconditions on SuspendActor, Resume…
haiyanmeng Dec 2, 2026
29e2705
ci: run pr-workflow on push to release branches (#4291)
MushuEE Dec 2, 2026
59775e2
imagecache: validate image volume names before constructing mount poi…
abhisheksharma2411 Dec 2, 2026
35eec40
benchmarking: add two nighthawk-egress suites (#4044)
ygao-g Dec 2, 2026
6a3e880
Add CsiDriver resource and CLI (#3808)
lekhoavu2909 Dec 2, 2026
aadd5ea
hack: check proto compares against the newest release tag (#4166)
sfunkenhauser Dec 2, 2026
1d6f8df
ate-api-server gateway roles take zero or more IDs (#4254)
ygao-g Dec 2, 2026
1f0b284
document ready-for-pr issue requirement for pull requests (#4055)
BenTheElder Dec 2, 2026
8c77043
egress policy: add an RFC 8693 token exchange source to CredentialHea…
thompsonmax Dec 2, 2026
8c0f20c
e2e: cover gRPC egress to a TLS origin (#4240)
yufan-su Dec 2, 2026
5641b74
[Bug Bash] microVM: show container logs from before the wakeup probe …
Nishanth29 Dec 3, 2026
2b2a0ab
egress: tighten credential URI validation (#4210)
LiorLieberman Dec 3, 2026
38934f7
Validate volume types as DNS subdomains like CsiDriver (#4296)
Sneha-at Dec 3, 2026
4895f69
atenet: add an RFC 8693 token exchange client to the egress gateway (…
thompsonmax Dec 3, 2026
797ca5b
Update stale paths in AGENTS.md files and the site README (#3863)
ameukam Dec 3, 2026
52790ee
imagecache: skip /proc/self/mountinfo scan via STATX_ATTR_MOUNT_ROOT …
besher-massri Dec 3, 2026
220fee0
ateworker-microvm logs a WARN line when an actor container exits whil…
baizhenyu Dec 3, 2026
e7ca613
actorlog: cap the bytes buffered per line (#3613)
cloudonly Dec 3, 2026
eb64ee9
Rename public API field actor execution_uid to activation_uid (#4162)
sfunkenhauser Dec 3, 2026
75f4e5c
apitool: parse legacy +ate:preview directives for older releases docs…
panchoruy Dec 3, 2026
88aa432
csi: name staging directories by a hash of the volume ID (#4054)
asivanadi0 Dec 3, 2026
b2922ca
Sidecars in ate-api-server, atelet and atenet-router no longer get a …
igooch Dec 3, 2026
ccd262c
Non-root containers can write to external volumes (#4226)
ILLUM1N0X Dec 3, 2026
586a950
Rename ExternalVolumeStatus to ActorExternalVolumeStatus (#4021)
hajiler Dec 3, 2026
cb541f8
ate-setup: deploy steps can skip a gateway (#4276)
ygao-g Dec 3, 2026
4137547
ateapi: select highest-fidelity worker in a single Schedule pass (#3777)
shrutiyam-glitch Dec 3, 2026
d28ada0
atunnel: finish the actor copy before a canceled CONNECT returns (#2953)
dims Dec 3, 2026
2af5b3a
ateapi: add atespaced ExternalVolume resource (#3744)
hajiler Dec 3, 2026
f1cb251
Update gVisor to nightly 2026-12-02 (#4325)
fvoznika Dec 3, 2026
23a9107
ate-setup: add --default-egress-gateway-address (#4265)
ygao-g Dec 3, 2026
5fb2403
ate-setup: deploy deletes a skipped gateway (#4333)
ygao-g Dec 3, 2026
09501b6
workercache: jitter periodic relist (#4212)
vicentefb Dec 3, 2026
e886132
Avoid forcing snapshot writeback when the worker pod has free memory …
annapendleton Dec 4, 2026
cf2bd71
atenet-egress: support using a custom CA bundle from a ConfigMap for …
yufan-su Dec 4, 2026
2deddc1
atenet: cache RFC 8693 token exchanges in a broker (#3344)
thompsonmax Dec 4, 2026
55232a9
benchmarking/evaluate: evaluate stored runs from the command line (#3…
roycaihw Dec 4, 2026
4e5a6b0
MicroVM actors survive checkpoint and restore stalls that are safe to…
Nishanth29 Dec 4, 2026
3f57f2a
benchmarking: compute actor limits before deploy.sh deletes the pool …
pmandewalkar Dec 4, 2026
c4550b8
serverboot: add opt-in Go runtime pprof server across binaries (#4131)
sairajp-rewind Dec 4, 2026
2828a86
ate-setup: add opt-in --pprof setting and Kustomize components (#4132)
sairajp-rewind Dec 4, 2026
91062ac
ateworker-gvisor: Cap max procs to avoid O(cores) kernel bottlenecks …
EtiennePerot Dec 4, 2026
bc72e3d
e2e: test the container exit record on both runtimes (#4322)
baizhenyu Dec 4, 2026
b440f1e
Export oidcjwt to pkg/ for out-of-tree sandbox drivers (#3846) (#3865)
NaniToka Dec 4, 2026
463481a
Merge upstream main into the fork
codyhartsook Dec 4, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
117 changes: 117 additions & 0 deletions .agents/skills/actor-lifecycle-triage/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
---
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](../troubleshoot/SKILL.md) 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

```bash
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 (cleared
when the actor is CRASHED).
- `status.assignedNode` (kept even when CRASHED).

## 2. Check the worker and atelet

A resume, suspend, or revert calls `atelet` on the assigned node, which calls
the worker. Check `atelet` on `status.assignedNode`, and check the worker pod
if `status.workerAssignment` is set:

```bash
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
```

When the actor is CRASHED, `status.workerAssignment` is empty, while
`status.assignedNode` still names the node for the `atelet` lookup.

For worker-caused crashes (pod gone, worker restarted, or a sandbox crash
reported by the worker), find the former worker in `ate-api-server` logs near
`status.crash.crashTime` under `Releasing actor from a worker whose pod is
gone`, `Releasing actor from a restarted worker`, or `Worker reported an actor
crash`. Each line carries a `worker` attribute (the Worker name, which is also
the worker pod's UID):

```bash
# If the Worker still exists, this gives its pod name and namespace:
kubectl ate get worker <worker> -o yaml
# If the worker pod was deleted, look up its events by UID.
# Kubernetes keeps events for about an hour by default, so an empty result for
# an older crash does not rule out eviction or deletion:
kubectl get events -A --field-selector involvedObject.uid=<worker>
```

For other crashes (`atelet` errors, draining or ineligible workers, snapshot
state conflicts), those three lines do not appear. Use `status.assignedNode` to
check `atelet` logs and inspect `ate-api-server` logs for the actor near
`status.crash.crashTime`.

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](references/states.md) that matches
the actor:

| Symptom | Section |
|---|---|
| Stuck in RESUMING, SUSPENDING, REVERTING, or DELETING | [Stuck in a transition](references/states.md#stuck-in-a-transition) |
| CRASHED | [CRASHED](references/states.md#crashed), by `status.crash.message` |
| Call refused with `FailedPrecondition` | [Call refused](references/states.md#call-refused) |
| RUNNING, but requests or logs show it is not working | [RUNNING but not working](references/states.md#running-but-not-working) |

Run the Confirm check before calling a root cause. Treat state-changing steps
like `revert` and `resume` as recommendations and confirm with the user before
running them. These logs are useful across all cases:

```bash
# 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

- If an application process exits while its sandbox stays up (#2972), or a
process inside the sandbox or guest is OOM-killed without killing the sandbox
(#3615), the actor stays RUNNING (see #2211).
- A dead sandbox or microVM, or one killed for exceeding its memory limit, is
usually reported as CRASHED, but the actor stays RUNNING when reporting
fails: on gVisor if the worker could not watch the sandbox (`Cannot watch the
sandbox, a crash will go unreported`), or on either runtime if reporting
fails for 5 minutes (`Failed to report the actor 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](../troubleshoot/SKILL.md#4-report),
with Area: actor lifecycle.
71 changes: 71 additions & 0 deletions .agents/skills/actor-lifecycle-triage/references/states.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# Actor states

Each table starts from what the user sees. Run the Confirm check before you
name the root cause. Ask the user to confirm before running any command that
changes actor state.

In the commands, `<worker-namespace>`, `<worker-pod>`, and `<node>` come from
the actor's `status.workerAssignment` and `status.assignedNode`. A crash clears
`status.workerAssignment` while keeping `status.assignedNode`; see
[step 2](../SKILL.md#2-check-the-worker-and-atelet) for how to find `<worker>`
or fall back to `atelet` logs when the actor is CRASHED. The atelet pod is from
`kubectl -n ate-system get pods -l app=atelet -o wide --field-selector
spec.nodeName=<node>`.

## Stuck in a transition

Lifecycle calls move an actor into RESUMING, SUSPENDING, REVERTING, or DELETING
while in progress. If a step fails with a retriable error, the actor stays in
that state and retrying the same call resumes from where it stopped.

| Symptom | Root cause | Confirm | Fix |
|---|---|---|---|
| RESUMING or SUSPENDING, and the call returned `Unavailable` or `Internal` | A call to atelet failed with a retriable error, for example while atelet or the worker restarted | The `Handle RPC` line for the call in ate-api-server's log has `while calling atelet` or `no atelet pod found on node` in its error; the atelet pod on the node isn't Ready, or is new | Once atelet is Ready, retry the call |
| RESUMING, SUSPENDING or REVERTING, and the worker pod is gone | The worker pod was deleted. ate-controller then deletes its Worker, which moves the actor to CRASHED | `kubectl -n <worker-namespace> get pod <worker-pod>` returns NotFound | Wait for CRASHED with `worker pod went away while hosting the actor`, then follow that row |
| DELETING for minutes | A delete step failed, such as stopping the sandbox on atelet or detaching volumes | ate-api-server log for the actor; the delete call returned an error | Retry delete |

## CRASHED

`status.crash.message` gives the reason. When a crash happens during a
lifecycle operation, `ate-api-server` prefixes the message with `<operation>
failed: ` (for example `resume failed: assigned worker is draining` or `suspend
failed: atelet Checkpoint: ...`). Crashes while RUNNING have no prefix. Match
the table below on the text after any `<operation> failed: ` prefix.

Mitigation is `kubectl ate revert actor <actor> -a <atespace>` followed by
resume. Revert resets the actor to SUSPENDED at its last uploaded snapshot,
discarding any work after that snapshot, and can disrupt the actor's expected
behavior.

| Symptom (`status.crash.message`, after any `<op> failed: ` prefix) | Root cause | Confirm | Mitigation |
|---|---|---|---|
| `worker pod went away while hosting the actor` | The worker pod was deleted or evicted while it hosted the actor: a WorkerPool rollout, node upgrade, scale-down or Spot preemption | `ate-api-server` log `Releasing actor from a worker whose pod is gone` near `crashTime` for `<worker>`; `kubectl get events -A --field-selector involvedObject.uid=<worker>` (events expire after about 1h, so empty output on an older crash does not rule out eviction) | Revert, then resume. To keep state through an eviction, the actor needs a SIGTERM handler that gets it suspended within 30 minutes; see [Eviction](../../../../docs/reference/api-guide.md#eviction) |
| `worker restarted while hosting the actor` | The worker process restarted, so its sandboxes are gone | `ate-api-server` log `Releasing actor from a restarted worker` for `<worker>`, `kubectl ate get worker <worker> -o yaml` for its pod, then RESTARTS and `kubectl -n <worker-namespace> logs <worker-pod> --previous` | Revert, then resume. Use the previous log to find why the worker exited |
| `killed for exceeding its memory limit` (on gVisor, also `atelet Run:` / `atelet Restore:` containing that text) | The actor's gVisor sandbox or microVM exceeded its memory limit and the worker killed it | `ate-api-server` log `Worker reported an actor crash` near `crashTime` (while RUNNING), or `Setting Actor to crashed due to Atelet error` if killed during gVisor `Run` or `Restore` | Raise the actor's memory limit or investigate memory growth, then revert and resume |
| `gVisor sandbox exited`, or starts with `cloud-hypervisor exited:` or `virtiofsd exited:` | The sandbox or microVM process exited while the actor was RUNNING | `ate-api-server` log `Worker reported an actor crash` for `<worker>`; worker pod logs (`Sandbox died` on gVisor, `Micro-VM died` on microVM) | Inspect the worker logs for why the sandbox exited, then revert and resume |
| `assigned worker is draining` | A resume was retried after its worker started draining | `ate-api-server` log `Assigned worker is draining; crashing actor` near `crashTime` (its `worker` attribute is `<namespace>/<pod>`); match that pod in `kubectl ate get workers` to confirm DRAINING | Revert, then resume. It will be assigned to another worker |
| `assigned worker no longer satisfies the actor's placement constraints` | The actor's worker selector changed between a failed resume and its retry | Compare the actor's worker selector with the eligible WorkerPools | Revert, then resume |
| Starts with `node holding the actor's latest snapshot no longer exists` | The last suspend was async, and the node holding its snapshot went away before the upload finished | `kubectl get node <node>` returns NotFound | Revert, then resume. The async snapshot is lost. Use `kubectl ate suspend actor --mode=sync` when a snapshot has to survive its node |
| `node holding the actor's local snapshot is unknown`, `actor has no local snapshot`, `actor has no durable snapshot`, or `atelet's snapshot state conflicts with the actor's record` | The actor's snapshot record is in an inconsistent state that retries cannot fix | ate-api-server log for the actor near `crashTime` | Revert, then resume. File an issue with the log, as this should not happen in normal operation |
| Starts with `atelet <RPC>:`, such as `atelet Restore:` | atelet or the worker returned a non-retriable error for that call (on gVisor, if it includes `killed for exceeding its memory limit`, see the memory-limit row above) | ate-api-server log `Setting Actor to crashed due to Atelet error`; `kubectl -n ate-system logs <atelet-pod> -c atelet --since=1h \| grep '<actor>'` | Check the atelet error, then revert and resume. If it crashes the same way again, file an issue with the atelet log |

## Call refused

`ate-api-server` checks the current state before running a call. Resuming a
RUNNING actor or suspending a SUSPENDED one is a no-op.

| Symptom | Root cause | Confirm | Fix |
|---|---|---|---|
| Resume fails with `AssignWorker prerequisite not met ... want ACTOR_STATE_SUSPENDED` | Actor must be SUSPENDED to resume (it is CRASHED or in a transition) | `status.state` | CRASHED: revert first. In a transition: wait, or see [Stuck in a transition](#stuck-in-a-transition) |
| Resume fails with `the actor is larger than every eligible worker` | The actor's resource limits exceed the capacity of every worker matching its selector | Compare the actor's resource limits with eligible WorkerPools | Lower the actor's resource limits, or add a WorkerPool with larger workers |
| Suspend fails with `MarkSuspending prerequisite not met ... want ACTOR_STATE_RUNNING` | Actor must be RUNNING to suspend | `status.state` | RESUMING: wait for RUNNING. CRASHED: revert, which already leaves it SUSPENDED |
| Revert fails with `is not in a revertable state` | Revert accepts RUNNING, CRASHED, or SUSPENDED with a snapshot that is still only on the node | `status.state` | If the actor is SUSPENDED and its snapshot is already uploaded, there is nothing to revert |
| Tag fails with `must be ACTOR_STATE_SUSPENDED to be tagged` | Actor must be SUSPENDED to tag | `status.state` | Suspend the actor first |

## RUNNING but not working

| Symptom | Root cause | Confirm | Fix |
|---|---|---|---|
| Requests fail or hang, and the actor's processes are gone | An app process exited while the sandbox stayed up (#2972), a process inside the sandbox or guest was OOM-killed (#3615), or a dead sandbox failed to report CRASHED (#2211) | `kubectl ate logs actor <actor> -a <atespace>` for app exit or errors; `kubectl -n <worker-namespace> logs <worker-pod>` for `Sandbox has no processes left while the actor is hosted`, `Cannot watch the sandbox, a crash will go unreported`, or `Failed to report the actor crashed` | Share the logs with the actor's owner, or revert and resume |
| Requests reach the actor, and it returns errors | Error in the actor's application | `kubectl ate logs actor <actor> -a <atespace>` shows the errors | Give the logs to the actor's owner |
| Requests fail before they reach the actor | Networking | The router's response or the client error | Go back to [troubleshoot](../../troubleshoot/SKILL.md) step 2 |
10 changes: 5 additions & 5 deletions .agents/skills/triage-issues/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ Do not guess.

### Status labels

Apply only when clearly appropriate. Never add `wontfix`, `duplicate`, or `invalid`
yourself — those are maintainer decisions.
Apply only when clearly appropriate. Never add `ready-for-pr`, `wontfix`, `duplicate`,
or `invalid` yourself, as those are maintainer decisions.

| Label | When |
|---|---|
Expand Down Expand Up @@ -108,10 +108,10 @@ Keywords: "Design discussion", "Investigate", "Explore options", "Identify what"
"Measure", "Research".

The clearest way to distinguish `kind/design` from `kind/feature`:
- **`kind/feature`**: you could open a PR today — the *what* and *how* are known.
- **`kind/design`**: a decision or investigation must happen first; a PR cannot be written yet.
- **`kind/feature`**: the *what* and *how* are already clear enough to implement once a maintainer adds `ready-for-pr`.
- **`kind/design`**: a decision or investigation must happen first before implementation can be scoped.

When in doubt, ask: *"Could someone reasonably start coding this issue right now?"*
When in doubt, ask: *"Is the design settled well enough that someone could implement this once approved?"*
If yes → `kind/feature`. If no → `kind/design`.

**4. Is it a code quality improvement with no behavior change?**
Expand Down
100 changes: 100 additions & 0 deletions .agents/skills/troubleshoot/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
---
name: troubleshoot
description: Starting point for troubleshooting an Agent Substrate installation. Use when an operator or support engineer reports a problem with Substrate, such as an actor that is stuck or CRASHED, failing requests, or a failed install or upgrade. Collects the facts every area needs, picks the area skill to follow, checks the repo's issues for a known match, and writes the report. Read-only.
---

# Troubleshoot

Find the area the problem is in, follow that area's skill, and report the root
cause with evidence.

Rules:

1. **Read-only.** For cluster and cloud commands, run only read-only queries
(`kubectl` `get`/`describe`/`logs`/`top`, `kubectl ate` `get`/`logs`, and
`gcloud` `describe`/`list`). Ask before anything that changes cluster or
actor state, including restarts and `kubectl ate` lifecycle commands
(`resume`, `suspend`, `revert`, `delete`).
2. **No `kubectl ate` access.** `ate-api-server` enforces the installation's
access policy on every call. If `kubectl ate` fails with `permission denied`,
give the user the commands to hand to someone with access and keep going
with what `kubectl` can read.
3. **Cite evidence.** Back each conclusion with the user's error, a log line,
or an object field. Say when you are guessing.
4. **Protect customer data.** The upstream repo is public. Replace atespace and
actor names, IPs, and hostnames before drafting a GitHub issue.

## 1. Collect facts

Ask the user for what's missing:

- The exact error text, or the state that looks wrong.
- Atespace and actor (if one is involved) and the time window.
- Scope: one actor, one WorkerPool, or every actor.
- What changed right before it started (install, upgrade, node pool change, or
new policy).

Then check the cluster:

```bash
# Substrate version, from the image tags. A from-source install has
# digest-only images and no tag.
kubectl -n ate-system get deploy,ds \
-o 'custom-columns=NAME:.metadata.name,IMAGE:.spec.template.spec.containers[*].image'
kubectl version
kubectl get nodes -o wide
kubectl -n ate-system get pods -o wide
kubectl -n podcertificate-controller-system get pods
kubectl get workerpool -A
kubectl ate get workers
```

## 2. Pick the area

| What the user sees | Skill |
|---|---|
| An actor is stuck in a state, CRASHED, refuses a lifecycle call, or is RUNNING but not answering | [actor-lifecycle-triage](../actor-lifecycle-triage/SKILL.md) |

There is no dedicated skill yet for other areas (install, upgrade, networking,
auth, storage, runtimes, or observability). For those, check that the pods in
`ate-system` are Running and Ready, read their logs for the time window, and
continue to step 3.

## 3. Check known issues

Search the repo's issues and merged PRs with the exact error text or log line,
then with the symptom in plain words:

```bash
gh issue list --repo agent-substrate/substrate --state all --search '"<error text>"'
gh pr list --repo agent-substrate/substrate --state merged --search '"<error text>"' \
--json number,title,mergeCommit
gh issue view <number> --repo agent-substrate/substrate --comments
```

Classify what you find:

- **Match:** same symptom and root cause. If a merged PR fixes it, fetch
upstream tags, run
`git tag --list 'v*' --contains <merge-sha> --sort=v:refname | head -1`
to find the first release containing the fix, and compare it to the installed
version.
- **Similar:** same symptom, but a different trigger, version, or root cause.
Note what differs.
- **None:** if nothing matches, list the searches you ran.

Don't comment on or open issues without approval.

## 4. Report

```
Area: <the area skill you followed, or none>
Root cause: <one sentence>
User saw: <error text, or the state that looked wrong>
Cluster: <platform and Kubernetes version, nodes, WorkerPools>, Substrate <tag>
Evidence: log lines and object fields, with their source
Ruled out: what you checked and cleared
Known issue: #<number> match | similar | none found; fixed in <tag>, installed <tag>
Confidence: high | medium | low
Next steps: commands or a workaround, and who has to run them
```
Loading
Loading