Repository navigation
fly: formalize ownership convention via the #686 seam (#743) - #755
Merged
Merged
Conversation
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>
15 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
isChantOwnedreads 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'shasOwnershipMarker, 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).src/ownership.ts): primary marker on machineconfig.metadata; secondary boundary = the app for metadata-less types (volumes/secrets/certs/IPs), like a CloudFormation stack.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,
validategreen.🤖 Generated with Claude Code