Skip to content

Redeployed sweep orchestrator refuses every sweep and schedule from a v0.146.0-or-older CLI (#1323/#1330 checks) #1368

Closed

Description

@scttfrdmn

Found while making #1367 (#1353) backward compatible. The coordinator's requirement: the redeployed spawn-sweep-orchestrator, which is shared and hosted, must keep launching sweeps from older CLIs and existing schedules.

On main today it does not, and #1367 does not change that. Two unreleased PRs (neither is in the v0.146.0 tag) made the orchestrator refuse a member whose params lack keys that a v0.146.0 CLI never writes:

The v0.146.0 orchestrator (git show v0.146.0:lambda/sweep-orchestrator/main.go) has no spored.go. It launched with no UserData and wrote its own tags (sweepRowLifecycleTags). The v0.146.0 CLI's detachedParamKeys is ami, iam_role, instance_type, key_name, spot, ttl. So once main's orchestrator is deployed:

  • every detached sweep started by a v0.146.0-or-older CLI fails every member at the user-data check;
  • every existing spawn schedule entry fails every member at its next firing. scheduler-handler replays the params the creating CLI uploaded (downloadParams, then prepareSweep), so such a schedule never gains the keys.

Evidence is a code trace on 5eb2d72, not run on AWS. The refusal is deliberate: such a member boots no spored, so it has no in-instance TTL, idle or cost enforcement, and #1313 would terminate it after 5 minutes anyway. That still needs an owner decision before the orchestrator is redeployed. The options are:

  1. Accept the break and announce it: old CLIs must upgrade, and schedules must be re-created.
  2. Launch legacy members as v0.146.0 did (no spored, the orchestrator's own tags), with the TTL reaper as the only bound.
  3. Have the orchestrator render a minimal bootstrap for legacy members.

#1367 handles only its own key. Params with no spawn_launch_settings take the pre-#1353 path, bare spot included, and the existing user-data and tags checks stay in force.

Activity

  1. added this to the v0.147.0 milestone on Oct 27, 2026
  2. scttfrdmn commented on Oct 27, 2026

    @scttfrdmn
    ContributorAuthor

    Decision (owner, 2026-10-27): option 3. For legacy params, the ones with no spawn_user_data / spawn_tags that a v0.146.0-or-older CLI or an existing schedule produces, the orchestrator renders a standard spored bootstrap and the member tags itself from the legacy keys through the shared pkg/launcher. Old CLIs and existing schedules then keep working, with in-instance TTL, idle and cost enforcement. The orchestrator redeploy for v0.147.0 is held until this lands.

  3. scttfrdmn commented on Oct 28, 2026

    @scttfrdmn
    ContributorAuthor

    Live-verified on v0.147.0 (2026-10-28), in the dev account.

    • Setup. spawn-sweep-orchestrator-smoke was built and deployed from the v0.147.0 tag with scripts/deploy-sweep-orchestrator.sh's published-body check intact. It used the existing orchestrator role. Production spawn-sweep-orchestrator was untouched.
    • The sweep. A v0.146.0 CLI, built from its tag with only the invoked function name changed, ran a two-member --detach --max-concurrent 2 --ttl 20m sweep.
    • Orchestrator. It logged the legacy path (no spawn_user_data/spawn_tags, no spawn_launch_settings) and launched both members in us-east-1.
    • Members.
      • Both reported spored 0.147.0 with spawn:last-heartbeat within about 75 s, on spored-instance-profile.
      • Both carried the full functional tag set: spawn:managed=true, root, account and owner tags, ttl=20m with ttl-deadline, spawn:version=0.147.0, and the sweep id, name, index and size.
    • Prerequisite. The member account's SpawnSweepCrossAccountRole had to be updated first, by re-running scripts/setup-sweep-cross-account-role.sh from the tag. Its old policy allowed PassRole on spawnd-role only.
    • Cleanup. Members terminated, smoke function and log group deleted, sweep record and params deleted. Independent leak check: nothing live in any enabled region.
    • Not covered live. The schedule-replay path was not exercised live: scheduler-handler invokes the production function by name. It is covered by TestScheduleReplayedV0146ParamsMemberLaunchesWithSpored.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions