You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ownership markers (managed-by / stack / env) are stamped onto synthesized resources so chant can recognize what it manages. The key naming differs per provider (k8s labels vs AWS tags vs Azure tags).
Finding
packages/core/src/ownership.ts centralizes the per-provider conventions:
The aws/azure serializers select their channel (ownershipEntries("aws-tag", …)), but the key convention for each provider is hard-coded in core. Adding a provider with a different tag/label convention means editing core.
Proposed approach
Have each lexicon declare its ownership key convention (the managedBy/stack/env key names) through the LexiconPlugin seam, rather than core enumerating label/aws-tag/azure-tag. Core keeps the generic ownership logic (stamp/detect); the key names come from the lexicon. The "label" (k8s) convention can be the default for lexicons that don't override.
Consideration
This is smaller than the others and the channel set is bounded — reasonable to defer if a fourth convention isn't imminent. Filing so the boundary is tracked.
Acceptance criteria
No per-provider key map in packages/core/src/ownership.ts; conventions come from the loaded lexicon.
aws/azure/k8s lexicons declare their own key names; ownership stamp/detect behavior unchanged; tests green.
Activity
ownership: lexicons declare their own key convention, drop core's aws…
fly: formalize ownership convention via the #686 seam (#743) (#755)