Repository navigation
Description
Summary
spawn status <id> prints two mutually contradictory statements about the same instance in one screen — TTL: none — instance will not auto-terminate and Termination deadline: <t> — because the two lines come from different sources (on-instance config vs. EC2 tags) and nothing reconciles them. In the same output, Started: and Elapsed: describe the CLI's own agent invocation, not the instance: a 7h39m-old instance reports Elapsed: 0s.
Distinct from #502 (the IAM cause of the failed config load) and #505 (reload reporting success when the refresh failed). This is about how status renders a config it could not read, and where it sources uptime.
Evidence
spawn status i-03a29c216d46c3b86 at 2026-08-18T06:05:30Z, on an instance launched 2026-08-17T22:25:58Z and running a saturated 192-core DFT job:
Looking up instance i-03a29c216d46c3b86...
2026/08/18 06:05:30 Warning: Could not load config from tags: operation error EC2: DescribeTags,
https response error StatusCode: 403 ... UnauthorizedOperation: You are not authorized to
perform this operation. User: arn:aws:sts::942542972736:assumed-role/spawn-instance-d1029e0a/
i-03a29c216d46c3b86 is not authorized to perform: ec2:DescribeTags ...
2026/08/18 06:05:30 Config: TTL=0s, IdleTimeout=0s, Hibernate=false
2026/08/18 06:05:30 Not idle: CPU usage 76.45% >= 5.00%
(i-03a29c216d46c3b86)
──────────────────────────────────────────────
spored: v0.100.0
Started: 2026-08-18 06:05 UTC
Elapsed: 0s
TTL: none — instance will not auto-terminate
CPU: 100.0%
Network: 976.6 KB/min
Lifecycle protection:
In-instance (spored): enforces TTL + idle rules on the instance itself
Out-of-band reaper: backstop in the spore.host-infra account, if deployed for your account
Termination deadline: 2026-08-18 15:25 PDT (in 16h20m)
Max compute cost: ~$183.76 by deadline (on-demand rate, compute only; idle-stop usually ends it sooner)
Three separate problems in that block:
TTL: none — instance will not auto-terminateis a definite claim derived from an unreadable config. The DescribeTags call 403'd, soTTL=0smeans unknown, not unset.nonerenders absence as a value. (Here it happened to be true — nothing was enforcing anything — but it is true by luck, not by measurement. The same rendering would appear on an instance with a livespawn:ttl-deadline5 minutes out.)- It sits directly above
Termination deadline: 2026-08-18 15:25 PDT, read from thespawn:ttl-deadlinetag with the caller's own credentials. One screen asserts both "will not auto-terminate" and a specific termination time, with no indication that they come from different sources or that one of them failed to load. An operator has to guess which to act on. Started: 2026-08-18 06:05 UTC/Elapsed: 0s— that is 32 seconds before I ran the command, on an instance whoseLaunchTimeis2026-08-17T22:25:58Z(7h39m earlier) and whosespored.servicehas been up since 22:26:38. Under a heading that readsspored:next to a version,Started/Elapsedread as the instance's or the agent's lifetime; they appear to be the ephemeral status-agent invocation's.Elapsed: 0sis also what makes theTTL: noneline hard to sanity-check — an operator has no visible age to compare a deadline against.
Started and Elapsed are also worth checking against the idle logic, since Not idle: CPU usage 76.45% vs the panel's CPU: 100.0% and a fixed-looking Network: 976.6 KB/min (byte-identical across all seven instances, including one at 0.49% CPU) suggest the panel numbers may not come from the same sampling as the decision.
Why it bit
Same incident as #507. I was trying to establish, by observable effect, whether a TTL extension on a $54/h 7-node fleet had taken. status gave me both answers at once, and the one printed in the instance panel (will not auto-terminate) was the opposite of the one printed in the lifecycle panel (a deadline). I resolved it by reading tags and CloudTrail directly, and by checking on-instance for a scheduled shutdown, an at job, a systemd timer, and journalctl -u spored — which is what status exists to save the user from.
Suggested fix
- When the config load fails, say so where the value would go:
TTL: UNKNOWN — could not read config (ec2:DescribeTags denied)rather thannone, and make the exit status or a visible marker reflect it. An unresolved value should not be presentable as a resolved one. - Label the source of each lifecycle line (on-instance config vs. EC2 tags) and reconcile them explicitly — if the on-instance view is unavailable while a tag deadline exists, that combination is itself the headline: tags say 22:25Z, the instance cannot see it, so nothing on the instance will enforce it. That sentence is what I needed and had to assemble by hand.
- Source
Started/Elapsedfrom the instance'sLaunchTime(or spored's own service start), not from the status agent's invocation, and label which one it is.
Environment
- spawn: v0.100.1 (Homebrew, macOS arm64); spored on the instances: v0.100.0
- Region us-east-1, account 942542972736,
c8g.48xlarge× 7, launched with--ttl 8h --iam-policy-file …(so the CRITICAL:launch --iam-policy-fileomits the spored baseline policy — TTL, --on-complete and --pre-stop all silently dead (the #406 fix covers 2 of 3 role paths) #502 role was in play; the rendering problem is independent of it) - Instances:
i-03a29c216d46c3b86,i-08efa17ed1bb2f099,i-08b9ad516db6dd2fe,i-03c73299d8b91b416,i-0d79af36b80961170,i-05c34d471ee84e2db,i-03ebed621d8799f31— all seven reproduce it identically.
Activity
fix: status no longer presents an unread TTL as a resolved "none"
fix: status no longer presents an unread TTL as a resolved "none"
fix: status no longer presents an unread TTL as a resolved "none"