Repository navigation
feat(status): show a Lifecycle protection summary - #431
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
Fourth external-review polish: surface the safety model in the CLI, not just
the docs. `spawn status` on a running managed instance now appends:
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
Termination deadline: 2026-07-22 18:00 PDT (in 2h 55m)
Max compute cost: ~$4.82 by deadline (on-demand rate, compute only; ...)
Idle timeout: 30m (stops the instance when idle; never terminates)
Computed controller-side from tags: deadline from the launch-anchored
spawn:ttl-deadline tag (falls back to launch+TTL), max cost from
LookupEC2OnDemandPrice x hours-to-deadline. Honest about the reaper — it is
NOT authoritatively visible from the launch account (pkg/doctor ReaperConfigured
says the same), so it is described as a backstop 'if deployed' rather than
claiming dual enforcement. Shown for both the SSH and SSM status paths; only for
running/pending managed instances. Unit-tested (block presence, gating,
deadline resolution).
scttfrdmn
force-pushed
the
feat/status-lifecycle-protection
branch
from
July 22, 2026 03:06
fb81969 to
000b160
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fourth external-review polish ("make protection status more visibly operational").
spawn statuson a running managed instance now appends a compact protection summary:Data source (controller-side, from tags): deadline from the launch-anchored
spawn:ttl-deadlinetag (the same tag the reaper reads), falling back toLaunchTime + TTLfor older instances; max compute cost fromLookupEC2OnDemandPrice × hours-to-deadline(a ceiling — idle-stop usually ends it sooner; excludes EBS/network, labelled as such).Honesty about the reaper: it runs in the infra account and is not authoritatively visible from the launch account (matching
pkg/doctorReaperConfiguredanddocs/safety.md), so it's described as a backstop "if deployed" rather than asserting dual enforcement we can't confirm from here.Shown for both the SSH and SSM status paths; gated to running/pending managed instances (empty otherwise). Unit-tested: block presence, gating (unmanaged/stopped → nothing), TTL fallback, and deadline resolution.
go build/go vetclean.