Skip to content

Launch-fixed spored settings move to a per-launch config object; freeze the latest spored (#1359, #1419) - #1420

Merged
scttfrdmn merged 13 commits into
mainfrom
feat/1359-launch-config-object
Oct 29, 2026
Merged

scttfrdmn merged 13 commits into
mainfrom
feat/1359-launch-config-object

Conversation

@scttfrdmn

@scttfrdmn scttfrdmn commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #1359
Fixes #1419

#1419 is folded in (option 1, decided): the unversioned latest spored is frozen at v0.149.0. spawn ≤ v0.148.x, older pkg/launcher consumers and spawn-ts install spawn/spored-*, so they keep a spored that reads the tags they write. Dev builds install spawn/current/. See "Frozen latest" below. Before v0.150.0 is tagged, the hand-managed release role needs the IAM change listed there.

Design

Object. pkg/launchconfig (new, free of pkg/aws). Schema 1, {"schema":1,"settings":{"<name>":"<value>"}}. The values are the strings the tags carried, so spored parses them the same way. The encoding is canonical (sorted keys, no HTML escaping, no trailing newline) and content-addressed at launch-config/config-<sha256>.json in spawn-staging-<account>-<region>. The instance carries one tag, spawn:config=<sha256>. A launch that sets none of the 21 settings has no object, no tag and no S3 call.

Launcher. buildTags no longer writes the 21 keys and writes spawn:config instead. Client.Launch computes the object from the same config, checks that its sha equals the tag, and stores it before RunInstances: EnsureStagingBucket, then a PutObject with ExpectedBucketOwner. If the object can't be stored, the launch is refused. A caller that may write the object but not set up the bucket (a --nested-spawn head node) writes it directly and gets a warning. An --instance-profile spawn didn't create gets a warning that its role needs the GET.

Detached sweeps and schedules. The sweep-orchestrator Lambda launches these members later, sometimes much later: a schedule replays the same params for as long as it runs. The Lambda can't write to the member's staging bucket. So the CLI seeds the object into spored's cache from the member's user data (echo <base64> | base64 -d > /etc/spawn/launch-config.json; chmod 600). spored verifies it against the member's tag like any other cache. A Windows member with any of these settings is refused, because its bootstrap has no seed. The legacy-params path checks that it renders no object.

spored. configFromTags has no case for any of the 21 keys. launchConfigLoader reads the cache first. A cache that doesn't hash to this instance's own spawn:config is treated as tampered, inherited or corrupt: it is deleted and never read. spored then fetches from S3, verifies, and caches at /etc/spawn/launch-config.json (0600, atomic). On Windows the cache is %PROGRAMDATA%\spored\launch-config.json. A refresh or spored reload reuses the copy in memory, and a reboot or stop/start reads the cache. The cache path is in instancestate.Paths, so an image of the instance doesn't carry it.

No object and no tag config: safe defaults, not a refusal. This case covers:

  • a launch that set none of the settings;
  • a persistent-Spot replacement, which EC2 launches with none of the original's tags. spored must keep running there to retire it;
  • an instance some other tool launched.

Refusing would stop spored's heartbeat, its tag-based TTL and cost enforcement, and the replacement check, which is strictly worse. The one case where defaults are wrong is a tags-only instance (an older spawn) running this spored. spored logs a WARNING naming the ignored tags, and upgrade-spored refuses to create that situation.

Object named but not loadable. spored status says UNAVAILABLE with the reason. spored takes no idle action until the object loads, because an unread --active-ports must not let an instance in use look idle. Every refresh retries. TTL, cost limit and completion are tags and are enforced as before.

Spot replacement. The replacement reads its original's notification settings from the object named by the request's spawn:config. It fetches without caching, using its role.

upgrade-spored: refuse. It refuses to cross v0.150.0 (launchconfig.FirstSporedVersion) when the instance keeps its settings where the target spored doesn't read them:

  • going up: tags and no spawn:config. The error points at --version <spawn:version>;
  • going down: an object on a spored that predates it.

Reading the tags after all would be the tag fallback the decision rules out. Silently dropping them can stop a busy instance.

Dev builds install from spawn/current/ (#1419), the newest release's spored, which reads the object a dev CLI writes. See below for the window before the first release that writes spawn/current/.

Frozen latest (#1419, option 1)

  • release.yaml: the step is renamed "Update the current spored". It writes only spawn/current/spored-{linux-amd64,linux-arm64,windows-amd64.exe} with .sha256 and .sig, from the bytes signed and verified before GoReleaser. It runs under the same gates as before: the dist-match step succeeded and the GitHub release is published (not a draft). It no longer writes spawn/spored-* or the bucket-root spored-*. Those stay at v0.149.0 for good.

  • pkg/sporedinstall: a release build is unchanged and installs only spawn/versions/<v>/ (Pin spored to the launching CLI's version (install from spawn/versions/<ver>/), not the unversioned latest #1412). Its script is byte-identical whether or not the launch has an object. A dev build installs spawn/current/, regional then us-east-1.

  • Before spawn/current/ exists (until v0.150.0 is released), a dev build falls back to the frozen spawn/ copy, but only when its launch has no launch config object. Without an object that fallback is safe: v0.149.0 spored reads every setting such a launch has, from tags. With an object, v0.149.0 spored would silently ignore notifications, webhooks and --active-ports/--active-processes, and a busy instance could be stopped as idle. So the install is refused and the instance retires with "no spawn/current/ spored; 0.149.0 ignores launch configs (spawn ≤ v0.148.x installs the latest spored, so v0.150.0's spored ignores the launch settings those CLIs write as tags (#1359) #1419)". This closes the window I noted earlier: a dev CLI's object never reaches a spored that ignores it.

  • How the flag gets there: every user-data builder passes "this launch has an object" through sporedinstall.PinScriptFor / WindowsInstallScriptFor, which set SPAWN_SPORED_READS_LAUNCH_CONFIG=1, and only for a dev build. The builders are the cmd launch path (Linux and Windows), launcher.BuildUserData (headless), and the web-app user data (true). DCV apps pass false, since their settings are tags.

  • Other consumers:

    • scripts/install-spored.ps1 (regenerated) installs spawn/current/, then the frozen copy.
    • upgrade-spored dev mode already resolves the latest release from GitHub and installs spawn/versions/<v>/, so it is unchanged.
    • The pipeline-orchestrator dev-build test now expects spawn/current/ first.
    • docs/infra-account.md is updated.
    • No deploy script writes or reads the unversioned path (TestOnlyTheReleaseWorkflowPublishesSpored still passes).
  • User-data budget: the bare bootstrap went from 8102 to 8182 gzip bytes, inside its 8192 budget.

  • Release-role IAM (hand-managed GitHubActions-spore-host-release / SpawnBinariesS3Upload): add s3:PutObject on

    • arn:aws:s3:::spawn-binaries-*/spawn/current/spored-*

    That one pattern covers all three binaries and their .sha256/.sig. If the policy lists regions explicitly rather than with spawn-binaries-*, add arn:aws:s3:::spawn-binaries-<region>/spawn/current/spored-* for each of the 11 regions: us-east-1, us-east-2, us-west-1, us-west-2, ca-central-1, eu-west-1, eu-west-2, eu-central-1, ap-southeast-1, ap-southeast-2, ap-northeast-1. The spawn-binaries-*/spored-* and spawn/spored-* grants are no longer used; they can be removed after v0.150.0 is out. Public GetObject on spawn/* already covers spawn/current/.

  • verify-spored.sh (the parent's ~/.xtmp/verify-spored.sh, not edited here):

    1. In the per-key LastModified loop, replace spawn/$name ... $name with spawn/current/$name spawn/versions/$VER/$name.
    2. Add a check that spawn/$name and $name (+.sha256/.sig) are NOT newer than $TAG_AT and still carry 0.149.0.
    3. Download s3://$b/spawn/current/$name$suf instead of spawn/$name$suf for the hash, signature and cross-region checks.
    4. Rename "VERSIONED != LATEST" to "VERSIONED != CURRENT".

Lifecycle. The bucket used to have one rule, expiring every object after a day. S3 can't exclude a prefix, and the shorter of two overlapping expirations wins, so the config objects can't be carved out of a bucket-wide 1-day rule. The task bootstrap objects therefore move to bootstrap/<task_id>/bootstrap-<sha>.sh. The rules are now:

  • spawn-staging-expire-1d, scoped to bootstrap/ (1 day);
  • spawn-staging-expire-backstop, the whole bucket at 30 days (launchconfig.ObjectMaxDays), well past the reaper's 7-day max-age ceiling and any persistent request's ValidUntil.

Bootstrap objects staged at the root by an older spawn now expire in at most 30 days instead of 1. A spawn ≤ v0.149.0 re-applies its single 1-day rule when it next runs spawn task run in that bucket. While that rule is in force, only a persistent-Spot replacement (fresh root volume) misses an object more than a day old, and the next launch by this spawn restores both rules. The instance role's bootstrap GET pattern bucket/*/bootstrap-<64?>.sh still matches the new keys.

Deleter. The reaper's REAPER_LAUNCH_CONFIGS sweep (pkg/launchconfig Referenced + Sweep, lambda/ttl-reaper/launchconfigs.go) runs per scanned region, after the instance reaps. An object is deleted only when all of these hold:

  • no instance (pending through stopped) and no open, active or disabled Spot request carries its sha;
  • it was last written more than 24h ago, re-checked for that key just before the delete. A launch with the same settings re-uploads the same key.

If the describe fails, nothing in that region is deleted. Modes are off|report|reap, and unset means report.

Classification (every key a launch writes; discovered by TestEveryLaunchTagIsClassified, recorded in pkg/launchconfig)

Moves into the object (21): read only by spored, only at boot, and edited after launch by neither spawn extend nor spored config set. Each key's off-instance readers were audited in spawn (CLI, spored, every lambda), the umbrella's web/js, lagotto, spore-host-mcp, python-sdk and spawn-ts. Matches in comments were excluded.

key only reader
spawn:notify-url, notify-command, notify-platform, slack-workspace-id spored notifier (pkg/agent); the Spot replacement notifier read them off the request's tags, and now reads them from the object
spawn:active-ports, active-processes spored idle detector
spawn:app-mode, ready-port, ready-path, web-auth spored web-app proxy and readiness probe (#590)
spawn:spot-webhook-url, completion-webhook-url, webhook-correlation, webhook-timeout spored webhooks (#228, #497)
spawn:idle-cpu spored idle detector (#1308)
spawn:metrics-port, metrics-bind, metrics-path spored metrics server; the documented Prometheus job scrapes a fixed port
spawn:tracing-enabled, tracing-exporter, tracing-sampling spored tracer

Stays a tag:

key why (readers)
spawn:managed reaper (every sweep), IAM conditions on spored/reaper/sweep roles, list, cleanup, footprint, dashboard-api, orchestrators
spawn:root, spawn:created-by descriptive (#1245); created-by also umbrella web/js
spawn:account-id connect; spawn-ts
spawn:account-base36 reaper DNS teardown, connect, Spot replacement notifier (request tags)
spawn:account-name dns-updater, reaper
spawn:iam-user dashboard-api, cost-history-collector, cleanup, orphans
spawn:version reaper skew report, AMI listing/provenance, upgrade-spored
spawn:launch-time reaper, extend, status, burst, orchestrators (anchoring), spored
spawn:os connect, ssh target, plugin, create-ami
spawn:ttl, spawn:ttl-deadline edited by spawn extend / spored config set; reaper, list, dashboard, web/js, spore-host-mcp
spawn:cost-limit edited by spawn extend --cost-limit; status
spawn:idle-timeout, on-complete, completion-file, completion-delay, hibernate-on-idle edited by spored config set; list/dashboard (idle-timeout), create-ami-clean, status idle
spawn:terminate-on-idle status idle
spawn:dns-name dashboard-api, web/js, reaper, dns-updater, connect, dcv, pipeline peers, spore-host-mcp
spawn:dns-domain, spawn:dns-endpoint reaper, connect, spawn dns
spawn:command sweep, arrayrec, the boot script's describe-tags, sweep-orchestrator, lagotto
spawn:dcv-session-id, spawn:app-name connect
spawn:fsx-id, fsx-pending, fsx-mount-point, fsx-s3-import-path, fsx-s3-export-path reaper FSx refcount, status, fsx lease, spawn fsx; written after launch
spawn:fsx-mount-name CLI launch path
spawn:efs-id status billable
spawn:efs-mount-point user instance scripts (#314)
spawn:session-timeout the boot script (describe-tags), umbrella dashboard
spawn:spot-request-type dashboard-api, stop/status, reaper
spawn:spot-valid-until extend, start
spawn:pre-stop, spawn:pre-stop-timeout the reaper runs the pre-stop hook before an external terminate
spawn:local-username connect, ssh, queue, plugin, service tunnel, reaper
spawn:price-per-hour, spawn:price-source cost, status, sweep-orchestrator, provenance, spored
spawn:metrics-enabled Prometheus EC2 service discovery filter (deployment/prometheus/prometheus.yaml)
spawn:job-array-* (5), spawn:sweep-* (4), spawn:param:* job-array/sweep/MPI machinery, list, boot script, orchestrators, Prometheus relabel, web/js
spawn:config names the object; spored, the reaper's deleter

spawn:tracing-endpoint is still read from a tag. No launch writes it; it's an out-of-band key (#1335).

Tag count

launch before after
the #1336 maximal config + every #1308 setting (the issue's 54+1) 55, refused 41
true maximal: every lifecycle, storage, DNS and spored setting, job-array and sweep tags, Spot price 66, refused 46

TestMaximalLaunchTagCount locks in 46 as a ratchet. The #1355 reserve is left for that issue.

IAM changes (all provisioned by spore.host code or templates)

  • Every spored role (shared spored-instance-role and the baseline on every spawn-instance-* role): s3:GetObject on arn:aws:s3:::spawn-staging-<account>-*/launch-config/config-<64 x ?>.json. A per-key grant doesn't fit: the shared role serves every launch, and the per-task roles are shared by policy hash, so a per-launch Resource would be overwritten by the next launch. Scoping comes from three things: the prefix plus the 64-character name, which keeps the grant off the bootstrap keys; no spored role can list the bucket; and the sha check. What this does and doesn't protect: the URLs can no longer be read by every principal with ec2:DescribeTags, but code on a spawn instance in the same account can still read another instance's object, after reading its spawn:config tag.
  • --nested-spawn role: s3:PutObject on the same keys, so a child's object can be stored. No bucket-setup grants.
  • Reaper (pkg/reaperiam, SAM ScanSelf branch, ttl-reaper-cross-account-role.yaml): s3:ListBucket on spawn-staging-* conditioned on s3:prefix launch-config/*, and s3:DeleteObject on spawn-staging-*/launch-config/config-*.json. It reads no object.
  • CLI user (make cli-iam-actions): a launch that sets one of the 21 settings now runs EnsureStagingBucket + PutObject, as spawn task run already did. New actions: spawn launch gains s3:PutBucketOwnershipControls and s3:PutEncryptionConfiguration. app launch, array retry, burst, resume and sweep resume gain s3:CreateBucket, GetBucketTagging, GetLifecycleConfiguration, ListBucket, PutBucketOwnershipControls, PutBucketPublicAccessBlock, PutBucketTagging, PutEncryptionConfiguration, PutLifecycleConfiguration and PutObject. pool create, service and image import gain the bucket-setup subset (plus PutObject for the first two). Every one is on the staging bucket, and only for a launch that has an object.
  • iamcoverage: the spored principal's new s3:GetObject call is discovered and covered. Because both spored policies already grant s3:GetObject elsewhere, the action-level gate can't see this grant disappear, so TestSporedRolesReadTheirLaunchConfigObjectAndNothingElse adds a resource-level check.

Deploy steps (none done; no AWS calls were made)

  1. Add the release-role grant above (spawn-binaries-*/spawn/current/spored-*), then release.
  2. Member accounts: redeploy deployment/cloudformation/ttl-reaper-cross-account-role.yaml for the list and delete grants. Until then the reaper counts the account-region in launch_configs_accounts_denied and deletes nothing.
  3. Reaper: make deploy (or spawn reaper deploy) with LaunchConfigs left at its default report. A deploy that doesn't name it keeps the deployed value. Check the WOULD delete launch config object lines, then arm with LAUNCH_CONFIGS=reap / --launch-configs reap.
  4. Instance roles need nothing done by hand: the next launch refreshes spored-policy and the baseline (PutRolePolicy). One real PutRolePolicy on a throwaway role before release would rule out a Every spawn launch fails on v0.129.0/v0.130.0: spored role policy rejected (MalformedPolicyDocument) #1069-style surprise; the new Resource uses the bound account literal, not a policy variable.

Gates, each watched failing against a revert that compiles

gate revert result
discovery: TestEveryLaunchTagIsClassified new unclassified spawn:metrics-scheme tag in buildTags FAIL ✓
spawn:notify-url written as a tag again FAIL ✓
no tag-read: TestNoReaderReadsAMovedKeyFromATag (tag-contract scan now resolves tagprefix.Tag(<const>); plus non-comment shell/template/script lines) case tagprefix.Tag("notify-url") back in configFromTags FAIL ✓
case tagprefix.Tag(launchconfig.WebAuth) (read through a constant) FAIL ✓
describe-tags ... Values=spawn:web-auth in the bootstrap shell FAIL ✓
spored half: TestATagOnlySettingIsReportedNotRead configFromTags reads notify-url FAIL ✓
round trip, launcher: TestLaunchConfigObjectHoldsWhatTheTagsHeld (tags + object == v0.149.0's captured tags, value for value) notify-platform dropped from the object FAIL ✓
round trip, spored: TestLaunchConfigObjectIsEquivalentToTheTagPath (oracle: v0.149.0's configFromTags, kept verbatim) web-auth case dropped FAIL ✓
metrics-port parsed off by one FAIL ✓
tag count: TestMaximalLaunchTagCount one more tag on a maximal launch FAIL ✓
content addressing: TestATamperedLaunchConfigIsRefused Decode skips the hash check FAIL ✓
tag == object hash (objectSettings in the launcher tests) tag set to the hash of the hash FAIL ✓
fetched once: TestTheLaunchConfigIsFetchedOnceAndCached (counted through the S3 seam) cache never written FAIL ✓
in-memory copy not reused on refresh FAIL ✓
deleter: TestSweepDeletesOnlyUnreferencedObjects references ignored FAIL ✓
no re-check for a re-write FAIL ✓
fails closed: TestSweepFailsClosedOnAnUnreadableDescribe describe error returns an empty set FAIL ✓
Sweep runs with a nil set FAIL ✓
report default: TestLaunchConfigSweepModes unset parses as reap FAIL ✓
reaper fails closed: TestLaunchConfigSweepFailsClosed bucket swept after a failed describe FAIL ✓
user-data budget: TestDetachedMemberCarriesItsLaunchConfigObject, …SeedFitsTheUserDataBudget member not seeded FAIL ✓ (budget: 8154 → 8423 gzip bytes, +269, of 16384; foreground launches: +0, since the object is in S3 and the seed block renders only for detached members)
old-CLI compat: TestUpgradeSporedRefusesToStrandLaunchSettings guard disabled FAIL ✓
lifecycle: assertStagingExpiry in TestEnsureStagingBucketCreatesItConfigured v0.149.0's single 1-day rule FAIL ✓
idle held: TestNoIdleActionWhileTheLaunchConfigIsUnavailable hold removed FAIL ✓
replacement notifier: TestNotifyConfigFromRequestTags reads notify-url off the request's tags FAIL ✓
frozen latest: TestReleaseNeverWritesTheFrozenLatest (runs every spored release step in the sandbox, then checks the mirror, plus a static check of the workflow text) spawn/$f destination restored FAIL ✓
bucket-root $f destination restored FAIL ✓
current only after the gates: TestReleaseUpdatesLatestOnlyOnceTheReleaseIsPublished draft check removed FAIL ✓
TestReleasePublishesTheVersionedSporedBeforeTheCLI dist-match if: removed FAIL ✓
dev build installs current: TestADevBuildInstallsTheCurrentSpored (executes the installer) dev branch reads spawn/ instead FAIL ✓
TestAReleaseBootstrapInstallsItsOwnSpored (full boot) same FAIL ✓
Windows dev build: TestWindowsPinnedInstallFetchesOnlyItsOwnVersion (pwsh) frozen sources first FAIL ✓
guarded fallback: TestADevBuildFallsBackToTheFrozenSporedOnlyWithoutAnObject refusal disabled FAIL ✓
flag threaded: TestForegroundSweepCarriesOrRefusesEveryLaunchSetting cmd stops passing it FAIL ✓
release build unchanged: TestAReleaseBuildsScriptIsUnchanged flag emitted for release builds too FAIL ✓
TestAPinnedInstallNeverFallsBackToLatest (#1412) spawn/ added to the pinned branch FAIL ✓
spored IAM: TestSporedRolesReadTheirLaunchConfigObjectAndNothingElse shared role's statement removed FAIL ✓
grant widened to the whole bucket FAIL ✓
(iamcoverage TestEveryPrincipalCallIsGranted catches the baseline's removal) FAIL ✓
nested IAM: TestNestedSpawnPolicyCoversTheChildLaunchCalls PutObject swapped for GetObject FAIL ✓
reaper IAM: TestS3GrantsAreScopedToSpawnsTwoBucketFamilies list unconditioned / delete grant removed FAIL ✓
templates: TestCrossAccountRolePolicyMatchesReaperIAM, TestSAMTemplateScanSelfPolicyMatchesReaperIAM prefix condition or Resource changed in the YAML FAIL ✓

Old-CLI compatibility (why it holds). An instance launched by spawn ≥ v0.149.0 installs exactly its own spored (#1412). A launch by spawn ≤ v0.148.x installs the unversioned latest, now frozen at v0.149.0 (#1419). Either way a tags-only instance never runs this code unless upgrade-spored puts it there, and that now refuses (tested). TestATagOnlySettingIsReportedNotRead covers what spored would do on such an instance anyway: it reports the ignored tags, reads none of them, and still reads every key that stays a tag.

Also filed

Checks

make check, make lint, semgrep scan --config=auto --error ., make api-snapshot (adds aws.LaunchConfigObject, aws.StagingBootstrapPrefix, aws.StagingBackstopRuleID, launcher.BootstrapConfig.LaunchConfig, launcher.BootstrapConfig.ReadsLaunchConfig, all in CHANGELOG), make gen-docs + make check-docs, make cli-iam-actions. All were run from /private/tmp/spawn-1359; results are in the agent report.

…y launch-fixed setting (#1359)

The before half of the equivalence gate: the tags v0.149.0's buildTags writes
for a launch setting every spored setting that is fixed at launch, and
v0.149.0's configFromTags verbatim, as the oracle for the agent config spored
derived from them.
…a per-launch config object (#1359)

pkg/launchconfig: the object (schema 1, canonical JSON, content-addressed
launch-config/config-<sha256>.json in the staging bucket), the classification
of every key a launch writes, the verified cache-first loader and the deleter.

Launcher: buildTags no longer writes the 21 launch-fixed settings; it writes
spawn:config=<sha256>, and Client.Launch stores the object before RunInstances
(refusing the launch if it cannot). The staging bucket's one-day rule is now
scoped to bootstrap/, where task bootstrap objects are staged, beside a 30-day
backstop for everything else.

spored: reads those settings only from the object (cached at
/etc/spawn/launch-config.json, 0600, verified against the tag), never from
tags; refreshes reuse it; an unavailable object is reported, retried, and
holds idle actions. A Spot replacement reads its original's notification
settings from the request's spawn:config.
…e new launch S3 calls (#1359)

Every spored role (the shared spored-instance-role and the baseline on every
spawn-instance-* role) gets s3:GetObject on
spawn-staging-<account>-*/launch-config/config-<64 hex>.json, and nothing else
in those buckets. A --nested-spawn role gets s3:PutObject on the same keys so
its children's objects can be stored. A launch that sets a launch-fixed
setting now sets up the staging bucket, as spawn task run does; the CLI action
inventory and the API snapshot are regenerated.
…er data (#1359)

The sweep-orchestrator Lambda launches a detached member, possibly days after
the CLI rendered it (a schedule replays the same params), and cannot store an
object in the member's account. So the CLI seeds the object into spored's
cache (/etc/spawn/launch-config.json, 0600) from the member's user data, as the
exact bytes the member's spawn:config tag hashes; spored verifies it like any
cache. +269 gzip bytes for a typical object. A Windows member with
launch-fixed settings is refused (its bootstrap has no seed). The legacy-params
path checks it renders no object.
…hing references (#1359)

The named deleter of launch-config/config-<sha256>.json in the staging
buckets: per scanned region, after the instance reaps, an object is deleted
only when no instance (pending..stopped) and no open/active/disabled Spot
request in the region carries its spawn:config, and it was last written over
24h ago, re-checked for that key just before the delete. An unreadable
describe deletes nothing. off|report|reap, unset = report; threaded through the
SAM template (LaunchConfigs), the Makefile (LAUNCH_CONFIGS) and spawn reaper
deploy --launch-configs, with the preservation gate.

IAM (pkg/reaperiam, both templates): s3:ListBucket on spawn-staging-*
conditioned on s3:prefix launch-config/*, and s3:DeleteObject on
spawn-staging-*/launch-config/config-*.json. Nothing is read.
…efuses to strand launch settings (#1359)

TestEveryLaunchTagIsClassified: every key a launch writes, discovered from
buildTags' source and output, is classified in pkg/launchconfig, and no object
setting is written as a tag. TestNoReaderReadsAMovedKeyFromATag: no Go reader
(the tag-contract scan, which now resolves tagprefix.Tag(<constant>)) and no
non-comment shell/template/script line reads a moved key from a tag.

spawn upgrade-spored refuses to cross v0.150.0 on an instance whose launch
settings are in the place the target spored does not read: tags with no
spawn:config, or spawn:config on an older spored.
…lse in the staging bucket (#1359)

Resource-level: both spored policies also grant s3:GetObject elsewhere, so the
action-level iamcoverage gate cannot tell the grant is gone.
@codecov

codecov Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

…builds install spawn/current/ (#1419)

The release workflow's "Update the current spored" step writes
spawn/current/spored-* (+.sha256, .sig), under the same gates (dist match,
GitHub release published), and never spawn/spored-* or the bucket-root
spored-* again: those stay at v0.149.0, the last spored that reads the
launch-fixed settings from tags, which spawn releases before v0.149.0
install.

A dev build installs from spawn/current/, regional then us-east-1, falling
back to the frozen spawn/ only when its launch has no launch config object
(which that spored would ignore); with one, the install is refused and the
instance retires. A release build's script is byte-identical either way.
install-spored.ps1 regenerated.
@scttfrdmn scttfrdmn changed the title Launch-fixed spored settings move from tags to a per-launch config object (#1359) Launch-fixed spored settings move to a per-launch config object; freeze the latest spored (#1359, #1419) Oct 29, 2026
… tags (#1359)

The launch now stores its object in the staging bucket, which Substrate cannot
configure (PutBucketOwnershipControls is 501, scttfrdmn/substrate#1445), so
the launch failed closed. The test pre-creates the bucket with the staging
lifecycle rules, as every launch after the first finds it, and asserts the
new contract: spawn:config present, no webhook tags, and the object at the
key it names holding the three values.
scttfrdmn added a commit to spore-host/spawn-ts that referenced this pull request Oct 29, 2026
…50.0 (#110)

DEPENDS ON spawn v0.150.0 (spore-host/spawn#1420, unmerged). The body sha and
fixtures were rendered from PR #1420's head (2a47def) with
SPAWN_SRC=... scripts/gen-go-fixtures.sh 0.150.0; re-run without SPAWN_SRC
against the v0.150.0 tag before merging.
@scttfrdmn
scttfrdmn merged commit 9a46f30 into main Oct 29, 2026
9 checks passed
@scttfrdmn
scttfrdmn deleted the feat/1359-launch-config-object branch October 29, 2026 18:45
scttfrdmn added a commit to spore-host/spawn-ts that referenced this pull request Oct 30, 2026
…tag reserve (#112)

* feat(launch-config): write the spawn:config object and pin spored 0.150.0 (#110)

DEPENDS ON spawn v0.150.0 (spore-host/spawn#1420, unmerged). The body sha and
fixtures were rendered from PR #1420's head (2a47def) with
SPAWN_SRC=... scripts/gen-go-fixtures.sh 0.150.0; re-run without SPAWN_SRC
against the v0.150.0 tag before merging.

* fix(fixtures): regenerate from the published spawn v0.150.0; pin body sha 925521a3

Rendered with scripts/gen-go-fixtures.sh 0.150.0 from the module proxy (no
SPAWN_SRC). The body moved since #1420's head 2a47def by spawn #1422 (heredoc
comments moved out of the data). launchconfig-setting-keys and gojson vectors
did not move. The generator now also writes post-launch-tags.go.json (spawn
#1355's postLaunchInstanceTags). created-by comment updated for spawn #1423.

* fix(tags): keep a slot free for each tag spored writes once running (Go spawn#1355)

checkTagLimit counted only the RunInstances set. spored writes its heartbeat,
spored-version, logged-in-count, cost footprint (one tag since #1428) and, with
DNS, dns-status/dns-error after launch, and a write past 50 fails whole. Port
Go's postLaunchInstanceTags/tagReserve (v0.150.0), pinned by a generated
fixture; reserve spored's entries only (spawn-ts writes none of Go spawn's own
post-launch tags). The sweep parameter budget leaves the reserve free and now
counts the launch config object as one tag, as Go's buildTags does. The flag
map is Go's (--metrics); --idle-cpu is in the object and adds no tag.
Docs moved to the 0.150.0 pin.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant