Skip to content

fly: formalize ownership convention via the #686 seam (#743) - #755

Merged
lex00 merged 2 commits into
mainfrom
fly-ownership-743
Jul 11, 2026
Merged

lex00 merged 2 commits into
mainfrom
fly-ownership-743

Conversation

@lex00

@lex00 lex00 commented Jul 11, 2026 •

Copy link
Copy Markdown
Contributor

Closes #743. The convention was already realized across #738 (serializer stamps managed-by: chant) and #741 (metadata-filter machine prune + app-scoped prune for metadata-less types). This makes it explicit and single-sourced.

Changes

  • isChantOwned reads the declared convention — FLY_METADATA_OWNERSHIP_KEYS (the ownership: lexicons declare their ownership key convention (drop core's aws-tag/azure-tag map) #686 seam) via core's hasOwnershipMarker, replacing a hard-coded "managed-by" string in the applier. The serializer's stamp and the prune filter now share one key definition; core carries no fly-specific branch (mirrors aws/azure declaring their own *_OWNERSHIP_KEYS).
  • Documented the two-tier convention (src/ownership.ts): primary marker on machine config.metadata; secondary boundary = the app for metadata-less types (volumes/secrets/certs/IPs), like a CloudFormation stack.
  • Documented the limitation (fly-apply.ts): app-scoped prune can't distinguish an out-of-band resource inside a chant-managed app from a chant one — so never widen it beyond a single chant-declared app.

Acceptance criteria

Behavior-preserving: 55 fly tests pass, validate green.

🤖 Generated with Claude Code

lex00 and others added 2 commits July 11, 2026 11:50
The fly ownership convention was already realized across #738 (serializer
stamps managed-by: chant) and #741 (metadata-filter machine prune, app-scoped
prune for metadata-less types). This closes #743 by making it explicit and
single-sourced:

- isChantOwned now reads the declared key convention (FLY_METADATA_OWNERSHIP_KEYS,
  the #686 seam) through core's hasOwnershipMarker, instead of a hard-coded
  "managed-by" string in the applier. The serializer's stamp and the prune
  filter can no longer drift apart — the marker key lives in one place, and core
  carries no fly-specific branch (mirrors aws/azure declaring their own keys).
- Document the two-tier convention in src/ownership.ts (primary marker on
  machine metadata; secondary boundary = the app for metadata-less types) and
  the honest gap of app-scoped prune in fly-apply.ts, so a metadata-less orphan
  isn't silently missed.

Behavior-preserving: 55 fly tests pass (incl. the live-mudflaps prune tests
proving an unmarked machine survives), validate green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@lex00
lex00 merged commit 1bd764d into main Jul 11, 2026
5 checks passed
@lex00
lex00 deleted the fly-ownership-743 branch July 11, 2026 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fly lexicon: ownership convention — machine metadata + app boundary (ties #686)

1 participant