Skip to content

fly lexicon: Fly deploy Op + local-fly starter example (App+Machine end-to-end) #744

Closed

Description

@lex00

Epic: #736 · Phase: 3 (integration proof) · Depends on: #739, #740 · Blocks: nothing

Reviewed 2026-07-11. The local target is live: the example boots the real
mudflaps image (ghcr.io/intentius/mudflaps:0.3.0, :4280) via the #740
flapsUp wrapper, so this end-to-end proof is runnable today.

Context

The integration proof: a Fly deploy Op composing build → flyApply → wait, and a local-fly
example that runs the whole loop offline against mudflaps and, unchanged, against a real org.
Mirrors the GCP starter (#711) and examples/local-cloud-trio. See #736 for the decisions log.

What to build

  1. Fly deploy Op (mirror the aws/gcp deploy Ops): build → flyApply → wait on the local
    executor. Lives in lexicons/fly/src/composites/.
  2. examples/local-fly/ (mirror examples/local-cloud-trio/): declare one App + one Machine;
    the op boots mudflaps via the fly lexicon: chant-side flaps wrapper (boot the mudflaps image for local tests) #740 flapsUp wrapper (pinned tag, e.g. 0.3.0), builds,
    applies, verifies the machine reached started (via /wait), tears the emulator down
    (flapsDown).
  3. Prove the endpoint story (D3): the same op targets real Fly by dropping the
    endpoint/FLY_FLAPS_BASE_URL override (with a token).

Where it lives

lexicons/fly/src/composites/ (the Op); examples/local-fly/{chant.config.ts,ops/,src/,README.md}.

References

Acceptance criteria

  • chant run fly in examples/local-fly boots mudflaps, applies App+Machine, verifies
    started, tears down — no Fly account.
  • Re-apply is a no-op; image change updates to a new version; removing the machine prunes it.
  • The same op, minus the endpoint override, applies to a real Fly org (smoke, with a token).
  • README.md walks the loop (mirrors the local-testing docs pages).

Out of scope

Drift/reconcile Ops (WatchOp/ReconcileOp for Fly) — a natural follow-up once the spine lands.

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

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions