You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Guardrail: TTL must always terminate — never add a TTL→stop mode #72
TTL expiry must always TERMINATE. There must be no TTL→stop (or TTL→hibernate) mode.
Current state (verified): correct. TTL expiry's only action is a.terminate("TTL expired") (pkg/agent/agent.go:299). There is no ttl-action config anywhere in the codebase. Only --on-complete offers stop/hibernate/terminate; idle offers stop/hibernate. TTL is the single unconditional executioner. Good.
Why this needs to be written down
"Stop" is not a terminal state — it's an indefinite, EBS-billing pause. A TTL→stop mode would mean the hard deadline resolves to "pause forever," which:
idle→stop is defensible (a pause with TTL still ticking toward eventual termination). A TTL→stop is a footgun and should be impossible, not merely undocumented.
Implemented in PR #74 (v0.37.0, tracked in #75). Added the invariant comment at the TTL-expiry site in pkg/agent/agent.go and a regression test (TestCheckAndAct_ExpiredTTL_AlwaysTerminates) asserting an expired TTL calls Terminate and never Stop/Hibernate — even with HibernateOnIdle set.
Activity
scttfrdmn commentedon Jun 8, 2026
Implemented in PR #74 (v0.37.0, tracked in #75). Added the invariant comment at the TTL-expiry site in pkg/agent/agent.go and a regression test (TestCheckAndAct_ExpiredTTL_AlwaysTerminates) asserting an expired TTL calls Terminate and never Stop/Hibernate — even with HibernateOnIdle set.
feat(reaper): server-side TTL reaper backstop + TTL-always-terminate …
feat(ttl-reaper): graceful pre-stop flush via SSM before terminate (#187
fix: ttl-reaper deletes DNS on reap (#247) + deploy-script build (#248)…
fix(reaper): grant ssm: on the cross-account role so REAPER_GRACEFUL …
fix(reaper): grant ssm: on the cross-account role so REAPER_GRACEFUL …
fix(sweep-orchestrator): make detached sweep rows reapable (#725)
fix(sweep-orchestrator): make detached sweep rows reapable (#725) (#726)
Stop the reaper running instance-writable tags as root (#832)