Repository navigation
labels.json: drop the unread ensure field and its validator rule - #302
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review (haiku, claude-review.yml)No significant issues found. The I could not run |
terraform plan (success) |
Review triageThe review reported no findings, so there's nothing to triage. Terraform plan on this PR: Arming auto-merge. |
Closes #300
Summary
Removes the
ensureboolean from every entry infleet-ops/labels.json, and removes theci/validate.pyrule that required it. The field encoded "create the label where missing" (true) and "align only where it already exists" (false). Those were the semantics offleet-apply.sh --apply-labels, which #301 removed. Nothing has read the field since, but the validator still made every label carry a value with no effect.Confirmed unread before deleting
terraform/:locals.tfbuildsrepo_labelsfrom each label'sname,coloranddescriptiononly. It picks themodel:*routing labels by name prefix (startswith(label.name, "model:")) and the repo'smodel_labelslist, never byensure.labels.tf's only mention was a comment saying the module doesn't read it.ci/: the one reader wascheck_label_palette's explicit-boolean assertion, removed here.ensureacross*.tf,*.py,*.sh,*.ymland*.json(excluding history underfleet-reports/and the gitignoredarchive/) found no other consumer.Changes
fleet-ops/labels.json:ensuredropped from all 15 labels, so each is now exactlyname,color,description. The_commentparagraph describingensureis replaced by one sentence on how routing labels are opted in.ci/validate.py: theensureassertion is removed. Thecheck_label_palettedocstring now namesterraform/labels.tfas the consumer (it still saidgh label edit).fleet-ops/README.md: the labels section no longer describesensure, and the validator-shape sentence lists what it actually checks.terraform/labels.tf: the header comment is now in the past tense ("once carried … dropped in labels.json: drop the unread ensure field and its validator rule #300").Testing
python3 ci/validate.pypasses.#bb4a33color onbugproducedconfigs: fleet-ops/labels.json[0] ('bug'): color must be 6 hex digits without '#', and the file was then restored.jqparseslabels.json, every label has exactlycolor,description,name, andterraform fmt -checkis clean.🤖 Generated with Claude Code