Skip to content

Label sync will delete the hive's labels on the next settings.yml change #446

Done

Description

@nate-double-u

cc @clubanderson

Problem

.github/settings.yml is declarative. The Settings app deletes any live label
the file does not declare; #365 records it removing meta on 2026-08-14, the
last time the file changed and the last time it synced.

Since then the hive bound to this repo has created about 40 labels: the
stage/* family (21), role/* (4), author/* (3), hive/* (3),
agent/quality, hold, decision-needed, ready-for-review,
merge-method/merge, dco, no-dco, quality, testing, and one
environment-specific hive-pause/... label. None are in settings.yml. Live
is 76 labels; the file declares 36.

The next edit to settings.yml, for any reason, deletes all of them, and with
them every stage, role and author marker on open assessment items (#395, #424
among them). Whether the hive re-creates them afterwards is an open question
on the hive side (hivecommons/hive#19608, question 3); its design doc says it
provisions on bind and never deletes, which suggests it would not notice.

Proposed fix

Two parts. The first is urgent and independent of anything the hive decides.

1. Declare the hive's labels in settings.yml now

Add a clearly marked section to the labels: block:

  # Hive-managed labels. Mirror of what the hive creates on bind; the hive is
  # the source of truth for this section. Declared here only so the Settings
  # app sync does not delete them. Update when the hive adds or renames one.

followed by the live hive labels with their live colors and descriptions
(snapshot the API at PR time; verify with the same live-equals-file assertion
#367 used). Decide on hive-pause/hosted-available-lke648397-260827-boq9:
it is per-environment and the hive likely re-creates it on pause; leaving it
out means one deletion, declaring it means a stale entry when the environment
changes. Leaning: leave it out.

This keeps the guarantee #367 repaired (live equals file after every sync) and
makes the hive's labels reviewable in a PR like everything else.

2. Add the whose-turn labels once the hive settles names

Proposed on hivecommons/hive#19609:
ready-for-techdocs-review, ready-for-stakeholder-review,
ready-for-approver. When names are agreed, add them to the
"Assessment workflow labels" section. Follow-up on the spec branch: add them to
§13 Labels and §16 step 1.

Alternative

Replace the labels: block with an additive-only sync (for example a label
sync Action with delete disabled). Hive's labels are then safe without being
mirrored, at the cost of the live-equals-file guarantee and of letting stray
labels accumulate again, which is what #367 cleaned up. Not recommended, noted
for completeness.

Not in scope

References


Issue copy written with assistance from GitHub Copilot CLI (Claude Fable 5.1).

Metadata

Metadata

Labels

CI/infraadmin

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions