Skip to content

fly lexicon: reach LexiconPlugin parity with peer lexicons (docs-gen, import, pseudo-params, init-templates, self-upgrade pin) #770

Closed

Description

@lex00

Related: the fly lexicon (#736) · Tracks: the completeness gap between fly and the mature peer lexicons (aws/gcp/k8s/azure)

The fly lexicon (#736) shipped the load-bearing surface — generated types, serializer, applier, breadth resources, lint, ownership, example. Several LexiconPlugin capabilities that every mature peer implements are still stubs or absent. This is the single tracking issue for reaching parity. Each item is small and independently shippable; split into its own PR.

Already tracked (do not duplicate here)

Gaps to close

  • Docs generation. lexicons/fly/src/codegen/docs.ts is the scaffold with two TODOs (serviceFromType, resourceTypeUrl). Implement them so chant dev docs (or the package docs script) generates real resource reference pages for the docs site, like the other lexicons. Map Fly::Machines::X to a sensible service grouping and a Machines-API doc URL.
  • chant import support. fly has detectTemplate but no templateParser/templateGenerator and no src/import/. Add an importer that turns existing Fly state (e.g. a GET /v1/apps/{app}/machines listing, or a fly.toml) into chant App/Machine TypeScript. Mirror lexicons/gcp/src/import/{parser,generator}.ts and wire templateParser()/templateGenerator() on the plugin. Pairs naturally with describeResources (fly: describeResources for plan + drift (wire the read-back seam) #767).
  • Pseudo-parameters. Add Fly.Region / Fly.OrgSlug (and any other environment-resolved values), mirroring gcp's GCP.Region/GCP.ProjectId. Wire pseudoParameters() on the plugin and resolve them in the serializer.
  • chant init templates. Implement initTemplates() with at least a default starter (App + Machine) and maybe a "machine with a mounted volume" template, mirroring gcp's initTemplates. Lets chant init lexicon-consumers scaffold a working fly project.
  • Self-upgrade pin (codegen: lexicons declare their own upstream release resolver (drop core's hard-coded map) #685). Declare upstreamPin on the plugin so the pinned OpenAPI spec source can be auto-upgraded, mirroring gcp's KCC_VERSION / k8s's K8S_SCHEMA_VERSION pin. fly's spec is a live URL (docs.machines.dev/openapi.json); pin whatever version/etag marker is stable so codegen: lexicons declare their own upstream release resolver (drop core's hard-coded map) #685 can bump it.

Not gaps (intentional / consistent with peers)

Acceptance criteria

Out of scope

Activity

  1. added
    enhancement
    on Jul 11, 2026
  2. lex00 commented on Jul 11, 2026

    @lex00
    ContributorAuthor

    Update (PR #781, merged): three of the five gaps closed, plus the pin recorded as N/A.

    • Docs generation — real serviceFromType/resourceTypeUrl; the docs site is now a real multi-page site matching aws/gcp/k8s.
    • Pseudo-parameters — Fly.Region / Fly.OrgSlug / Fly.AppName.
    • Init templates — default / volume / service.
    • Self-upgrade pin — N/A: fly's spec is an unversioned live URL, nothing to bump.
    • chant import support — remaining. Now well-positioned to build on describeResources (fly: describeResources for plan + drift (wire the read-back seam) #767, merged): a live-export that reads live flaps state and a generator that emits chant App/Machine TypeScript.

    Only the import item is left.

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