Skip to content

refactor(launch): remove --require-spored footgun; verify spored unconditionally - #283

Merged
scttfrdmn merged 1 commit into
mainfrom
refactor/remove-require-spored-flag
Jul 9, 2026
Merged

scttfrdmn merged 1 commit into
mainfrom
refactor/remove-require-spored-flag

Conversation

@scttfrdmn

Copy link
Copy Markdown
Contributor

Why

--require-spored (default true) only ever skipped the launch-time spored-readiness check. It never controlled whether spored runs — the bootstrap unconditionally installs and systemctl enable --now spored regardless. But the name implied "launch without the lifecycle agent," and that misled the #277 reporter into blaming --require-spored=false for an unrelated ~100s termination (spored was still running the whole time).

A spurious-looking off-switch on the TTL/idle safety net is exactly the footgun spore.host exists to eliminate — no forgotten bills, no zombie instances. So: remove it.

What changes

  • Flag deleted (var + registration + the error-message hint).
  • The spored-readiness check is now unconditional whenever spawn launch waits for SSH.
  • Honest escape hatches remain:
    • --wait-for-ssh=false already skips the entire readiness path (the legitimate SSM-genuinely-unreachable case).
    • --terminate-on-error still governs whether a failed check auto-terminates.

Notes

…ally

--require-spored (default true) only ever skipped the launch-time spored-readiness
CHECK — it never controlled whether spored runs (bootstrap always installs +
systemctl enable --now spored). But the name implied 'launch without the
lifecycle agent', which misled a field user into blaming it for an unrelated
early termination (#277). A spurious off-switch on the TTL/idle safety net is
exactly the kind of footgun spore.host exists to eliminate.

Remove the flag; the readiness check is now unconditional whenever launch waits
for SSH. Honest escape hatches remain: --wait-for-ssh=false skips the whole
readiness path (for genuinely SSM-unreachable envs), and --terminate-on-error
still governs auto-terminate on a failed check. Pairs with the #277-A fix (wait
for SSM agent registration), which removed the main reason to reach for it.
@codecov

codecov Bot commented Jul 9, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
cmd/launch.go 0.00% 2 Missing ⚠️

📢 Thoughts on this report? Let us know!

@scttfrdmn
scttfrdmn merged commit d9a9698 into main Jul 9, 2026
6 of 7 checks passed
@scttfrdmn
scttfrdmn deleted the refactor/remove-require-spored-flag branch July 9, 2026 02:26
scttfrdmn added a commit that referenced this pull request Jul 9, 2026
Promote CHANGELOG [Unreleased] -> [0.70.0]. Since v0.69.0:
- Removed --require-spored (footgun: never controlled whether spored runs, only
  the launch-time check; readiness verification is now unconditional) (#283, #277)
- CI: spored S3 upload no longer skipped when the Homebrew/Scoop tap push fails
  (#281, #280)
- Docs: release-tap-token runbook for the fine-grained PAT (#282, #280)

MINOR: a launch flag was removed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant