Skip to content

QEP-2 v2: automations state their source; a family colour for the labels they manage - #49

Merged
mmcky merged 8 commits into
mainfrom
qep-2-v2-automation-registry
Nov 20, 2026
Merged

mmcky merged 8 commits into
mainfrom
qep-2-v2-automation-registry

Conversation

@quantecon-services

@quantecon-services quantecon-services commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

A substantive amendment to QEP-2 (version 1 to 2). It replaces the QEP-4 draft (#8).

The problem

QEP-2 defines the standard label set, and a migration removes labels outside it. Automations use labels outside the set for two different jobs:

  • Marking origin: status-report and action-translation let an automation, or a report, find that automation's output.
  • Triggering work: action-translation also starts the review workflow in each translation repository, and other workflows are started by labels such as triage-ready and submit.

An earlier draft of this PR listed such labels in a register inside QEP-2. That put instances in the standard: every new automation, rename or change of maintainer would have been an amendment.

What changes

Origin is stated in text, not by a label. Everything an automation opens carries automated and one line in its description, Automated-by: owner/repo. A reader knows which automation to go to, and the automation finds its own output without a label of its own.

Labels an automation manages (new subsection). A label an automation creates and reads for its own operation, such as a trigger, is outside the standard set and belongs to that automation, which names and documents it. So that people and tooling can recognise one:

  • it takes the one family colour, #e5e5e5, a grey no standard label uses;
  • its description names the automation that owns it;
  • conforming tooling never creates, renames, recolours or removes a label in that colour.

The third-party boundary. These rules bind the automations the organisation operates. A third-party bot that labels its own output, as Dependabot does with dependencies, is outside them.

The Adoption section is removed, as QEP-1 v4 requires, and the rules it carried are folded into Scope: a label the standard does not cover is removed if unused and kept if it carries tags, with closed items counting; a kept label is a quarantine until resolved; tooling never removes a label that carries tags; the same label left uncovered in several repositories is a gap closed by amendment.

qep-0002-labels.yml gains one top-level key, managed-label-color: e5e5e5. The labels: list is unchanged.

Readability

A pass over the passages this PR touches, with no further rule changes:

  • The automation bullet in the labelling policy is split into three: what an automation's output carries, how it states its source, and which automations the rules bind.
  • Three run-on paragraphs are broken up: the colour rules that open The label set, the note on the grey band, and the opening of Labels an automation manages.
  • What we deliberately don't label becomes a two-column table with the same entries.
  • In Scope, the exception for automation-managed labels gets its own bullet.
  • The appendix no longer names the implementing tool.

Removed on purpose

  • From Alternatives considered, which goes from nine entries to six under QEP-1 v4's rule: a closed bot vocabulary (the labelling policy already gives the reason), keeping the status labels (its reason now sits beside the rule that retires them), and recolouring documentation (a settled colour choice).
  • From Adoption: the migration report and its row format, the pilot-first order, the named tool, and the manual step for the organisation default. These are for the implementing tool and the rollout tracker to state.
  • From the earlier draft of this PR: the register table, the automations: list in the yml, and the changes to check-labels.mjs. That script is now identical to main.

For review

  • Existing labels keep their names. action-translation, triage-ready and submit need only the family colour and a description naming their owner.
  • status-report and the origin use of action-translation can be retired once the code that reads them switches to Automated-by: or the title. Until then the Scope rule protects them, since tooling never removes a label that carries tags.
  • QEP-5's register of the organisation's automation is no longer provided by QEP-2 and needs a home in QEP-5's rollout.
  • Tooling should read managed-label-color and skip labels in that colour.

Checks

check.mjs and check-labels.mjs pass.

Assisted-by: Claude Code (Claude Fable 5.2)

🤖 Generated with Claude Code

Adds an Automation register to QEP-2 and to qep-0002-labels.yml: each
automation, its maintainer, and the label it owns. A registered label is
outside the standard set and conforming tooling never creates, renames,
recolours or removes it, because losing a routing key fails silently. The
register doubles as the public register of automation QEP-5 requires.
Founding entries: action-translation and status-report.

check-labels.mjs keeps the register's table and yml in lockstep.

Replaces the QEP-4 draft (#8). Label prefixes are left out for now.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_01HvzxXkdgHcp56CAjt3hy1Q
…bots are outside the automation rules

Both carried over from the closed QEP-4 draft in #8: a registered label exists
before it is first applied, and the automation rules bind only automations the
organisation operates (the 2026-08-08 Dependabot boundary).

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@mmcky

mmcky commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Added in c470cad, carried over from the closed draft in #8: a registered label is provisioned before it is first applied, and the automation rules bind only automations the organisation operates, so a third-party bot labelling its own output (Dependabot and dependencies) is outside them. #50 has this branch merged in.

mmcky and others added 2 commits November 20, 2026 12:06
Kept, in Scope: an uncovered label is removed if unused and kept if it carries
tags (closed items count); a kept label is a quarantine; tooling never removes
a tagged label; recurrence across repositories is a gap closed by amendment.
Removed: the migration report format, the pilot-first order and the named
tool, which are the implementing tool's and the rollout tracker's to state.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@mmcky

mmcky commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Added in 01ce271: QEP-2's Adoption section is removed, following the rule QEP-1 v4 (#45) introduces, and the rules it carried are folded into Scope.

Kept, in Scope: a label the standard does not cover is removed if unused and kept if it carries tags, with closed items counting; a kept label is a quarantine until resolved; tooling never removes a label that carries tags; the same label left uncovered in several repositories is a gap closed by amendment.

Removed: the migration report and its row format, the pilot-first order, the named tool, and the manual step for the organisation default. These are for the implementing tool and the rollout tracker to state. This removal is covered by the v2 bump this PR already makes. #50 has this branch merged in.

mmcky and others added 2 commits November 20, 2026 13:27
…amily colour

An automation states its source in one line, Automated-by: owner/repo, and
finds its own output by that, not by a label of its own. A label an automation
manages for its own operation, such as a trigger, is outside the standard set:
it takes the one family grey #e5e5e5, its description names its owner, and
tooling leaves it alone. The register table, the yml automations list and the
CI changes that kept them in step are removed.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@mmcky mmcky changed the title QEP-2 v2: register the labels an automation owns QEP-2 v2: automations state their source; a family colour for the labels they manage Nov 20, 2026
mmcky and others added 2 commits November 20, 2026 14:00
Splits the automation policy bullet into three, breaks up three run-on
paragraphs, turns the list of things we do not label into a table, and drops
the name of the implementing tool from the appendix. No rule changes beyond
those already in this PR.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@mmcky
mmcky merged commit f15c519 into main Nov 20, 2026
1 check passed
@mmcky
mmcky deleted the qep-2-v2-automation-registry branch November 20, 2026 03:06
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.

3 participants