Skip to content

Publish a spored region manifest at release time; truffle reads it instead of hardcoding #20

Open

Description

@scttfrdmn

Problem

There are three independently-hardcoded lists of "regions where spored is available," and they drift:

  1. The actual spawn-binaries-* S3 buckets (AWS reality)
  2. spawn's release workflow BUCKETS=(...) array (.github/workflows/release.yaml)
  3. truffle's pkg/spawn/regions.go SpawnSupportedRegions map (drives the ✓ spawn-supported indicator in truffle output)

They were already out of sync: the workflow + truffle listed 11 regions, but only 8 buckets existed (eu-west-2, ap-southeast-1, ap-northeast-1 were missing — created while fixing #13). truffle was telling users spawn worked in regions that had no spored binary.

Design (agreed)

Make the region list a published artifact derived from the actual deploy, not a source file anyone has to remember to edit.

  • Authored by spawn's release workflow. After the spored S3-upload loop succeeds, write a manifest.json listing the regions actually uploaded to + the spored version + a timestamp. Because the same step that uploads also writes the manifest, it can't disagree with bucket reality.
  • Stored in S3 (infra), public-read like the binaries, at a canonical key — e.g. s3://spawn-binaries-us-east-1/spored/manifest.json (and/or mirrored per region). Not committed to any repo.
  • Consumed by truffle at runtime. truffle fetches the manifest (cached) to drive the spawn-supported indicator, with the current embedded regions.go map as an offline fallback so truffle still works with no network/creds (just possibly stale).

Example manifest:

{
  "spored_version": "0.36.4",
  "updated": "2026-05-31T00:00:00Z",
  "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"]
}

Tasks

  • spawn release workflow: emit manifest.json from the regions the upload loop actually succeeded on; upload it to the canonical S3 key.
  • truffle: fetch + cache the manifest to drive IsSpawnSupported; keep regions.go as the embedded fallback (and stop treating it as the source of truth).
  • Document the manifest location/schema.

Related

Ownership summary: spawn authors it, infra (S3) stores it, truffle consumes it.

Activity

  1. added
    enhancement
    on May 31, 2026
  2. added this to the Later milestone on Oct 19, 2026
  3. modified the milestones: Later, Hardening on Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions