Skip to content

git-workflow — issue-labels

Detail page of the git-workflow recipe card.

Issue labels — the org-wide category: and type: taxonomy

Section titled “Issue labels — the org-wide category: and type: taxonomy”

Every issue in the opencharly org carries exactly one category: and exactly one type:. The two sets are closed, identical in every repository, and defined once — machine-canonically — in opencharly/.github:

Surface Path Role
Axis values, colors, GitHub descriptions, full tests, retired map, forbidden list opencharly/.github/labels/taxonomy.json the sole machine authority
Generic path/action rules (no repo names) opencharly/.github/labels/category-rules.json the classifier’s reproducible evidence
Held-out round record opencharly/.github/labels/cold-reader-used.json proves no sample is reused
The one tool opencharly/.github/scripts/labels.sh sync, audit, classify, apply, retire, render, verify-close, sample, explain
Offline coverage opencharly/.github/scripts/labels-test.sh mock-gh arms; run it after any change
The org issue form opencharly/.github/.github/ISSUE_TEMPLATE/issue.yml default community-health form
Sweep workflows label-sync.yml, label-audit.yml provision and audit every repo

The AGENTS.md gist is the mandate; this file is the full “when to use which label”.

  • Facts only. Every value is decided by a yes/no test a reviewer can reproduce from the issue text. There are no severity, priority, size, effort, status or ownership labels — urgency and state are the issue text, the native open/closed state, the assignee and the coordination verbs. A value that cannot be measured does not exist.
  • One value per axis. Never two categories, never two types, never zero. The audit reds both directions.
  • No fallback value. There is no unclassified, no other, no misc. An issue that cannot be decided is under-specified (fix it) or spans two categories (split it).
  • No session, owner, author or assignee label. The filer cannot know which session will pick the issue up. category: and type: describe the work. Ownership is the assignee plus the latest CLAIM/OWNING comment on the issue.
  • The repository name is never a signal. Every category is available in every repository. A docs fix in charly is experience; a runtime defect in docs is runtime. A new or future repository needs no mapping.

2. category: — the capability the remedy changes or exercises

Section titled “2. category: — the capability the remedy changes or exercises”
Value The test
category:runtime Changes a host or framework, a loader/provider registration, an org-owned binary/service/library that is neither a build/deploy/check capability nor org control-plane tooling, or a cross-cutting normative contract (DESIGN.md, DESIGN.cue, shared wire types/IR) that no single capability owns. A host capability that is neither build/deploy nor check (cleanup, host secret administration, schema migration, pipeline execution) is runtime.
category:delivery Changes or exercises a build/compose/install/deploy capability: its code and provider implementations, definitions, own wire schema/generated constants, CI/lint; containerfiles, image/layer/pod/VM/Kubernetes manifests, deploy-plan IR, build/release CI, a runner or build image. The run:/build/composition steps of a plan are delivery. A docs-site build/CI or a publishing pin bump is delivery.
category:verification Changes or exercises a check/probe/grading or validation/verdict capability: its code/providers, own wire schema, beds/plans, roster/ordering, ADE grading, CI/lint; a pin bump whose primary action is a proof; a gate over a product build/deploy/check artifact or a product authored-prose artifact. The check:/probe/bed steps of a plan are verification.
category:experience Edits only authored/static prose or rendered text: Markdown, skills, a published corpus, READMEs, docs-site, authored/static UI strings/layout, a prose-only field in a config/YAML, a documentation comment inside a source file. A directly edited checked-in Markdown artifact is experience; editing its generator takes the generator’s capability. The org rulebook is governance; the normative design contract is runtime; every other Markdown surface is experience.
category:governance Changes org policy/config/tooling: rulesets, workflows, the landing gate/validator, org pin-currency/coordination tooling, agent control-plane tooling, repo-class policy, org label tooling. A gate over org policy/config/pins or a PR-body/landing check; a pin-currency report; an in-place org workflow/CI or pin declaration edit; the org rulebook itself.
category:hygiene A cross-repo upkeep wave with no primary component: a dependency/pin version wave, a cross-repo cleanup, a release chore, or a pin wave whose proof is explicitly deferred. A component’s own source, lint finding, dependency manifest and CI config take that component’s category + type:chore. Hygiene changes no org config/tooling.
  • Primary action wins; named files are evidence. A remedy that “touches charly.yml” to add a build step is delivery, not runtime.
  • A capability’s own wire schema / generated constants take that capability. Shared schema compilation or import resolution is runtime.
  • Loader/registration resolution is runtime even when the symptom shows up in a capability verb (the loader is what the verb consumes).
  • A provider implementation for a capability takes the capability, never runtime.
  • Computed output, reports and fields whose correctness is semantic belong to the owning capability — not to experience, which is for authored text.
  • Lowering secret values into deploy plans is delivery; host secret administration is runtime.
  • An agent control-plane harness is governance; a check bed it drives is verification.
  • Regenerating a checked-in Markdown/skill projection is experience/docs; the generator’s own code is its capability.
  • A plan is split by step kind: check:/probe/bed → verification; run:/build → delivery.
  • A pin/ref bump: proof is the work → verification; proof explicitly deferred → a cross-repo wave is hygiene, a single component is that component’s category + chore; a bump that changes behavior → that component’s category + fix/chore.
  • A gate’s subject decides: org policy/config/pins or a PR-body/landing check → governance; a product build/deploy/check artifact or product prose artifact → verification. A CI/workflow file’s subject, not its location, decides.
  • An in-place org workflow/CI or pin declaration edit is governance; a dependency/pin version wave or cross-repo cleanup that changes no org config/tooling is hygiene.
  • An atomic multi-category cutover is classified by the file/action that changes the contract or semantics (the primary); the others are dependents.
  • Two co-equal deliverables with no primary → SPLIT.
  • No named file and no failing/exercised artifact — including an issue naming two conflicting artifacts or two disagreeing controls without choosing the primary — is under-specified on category: improve it, do not guess.
Value The test
type:fix A named defect in existing behavior whose remedy corrects it — reproducible, latent, or non-deterministic; a silent omission of a declared behavior; a stated requirement in the org rulebook or the normative design contract that the implementation (code, config, or skill) violates. The remedy need not be known at filing.
type:feat The remedy adds behavior, coverage, or a mechanism not yet implemented, whether or not the design contract already states the intent; a capability the tree entirely lacks (unless declaration-only → spec). No defect is named. A gap in an existing gate’s tests/arms where production output is already correct is feat (coverage).
type:design The remedy edits the normative design contract (DESIGN.md/DESIGN.cue) to add or amend an architecture decision as the primary deliverable. A producer-first design edit made only to enable a capability is a dependent: the type is the capability’s fix/feat.
type:spec Every changed file is declaration-only within the machine-checked contract (schema/CUE/generated constants) while the design contract already states the intent. A component’s own schema is not spec.
type:docs Every changed file is prose/Markdown/skill/site, or the only semantic change is a prose-only field inside a config/YAML, or a documentation comment inside a source file — except a design-contract amendment, which is design. Prose that contradicts a stated rule is fix, not docs.
type:chore No behavior/schema/prose change: deps, pins, CI/format config, non-prose generated output (code/constants), pure refactor, a naming/class cleanup with no behavior change.

Precedence: declaration-only in the machine-checked contract → spec; design amendment as the primary deliverable → design; prose-only and non-contradicting → docs; pure refactor → chore; deps/pins/CI/non-prose generated output/naming cleanup with no named defect → chore; a named defect with concrete wrong output, a stated requirement the tree violates, a machine-contract shape contradicted by prose, or an org-rulebook rule contradicted by code/config/prose → fix; no defect and a new capability/coverage/mechanism → feat; neither → under-specified; two types still apply → primary file/action, else split.

Both creation paths are mandatory-label:

  1. The org issue form (opencharly/.github/.github/ISSUE_TEMPLATE/issue.yml) — the default community-health file, inherited by every repository that ships no template of its own. Four required fields:

    • Category (dropdown, the six values);
    • Type (dropdown, the six values);
    • Remedy / files the remedy will touch (text — the reproducibility evidence);
    • Cited design decision or org-rulebook rule (or none) (text). The label-sync/audit workflow parser applies the two labels from the answers. GitHub cannot map a dropdown to a label, so the form’s answers are the source of truth and the audit maps exactly those answers — never a guess.
  2. node scripts/gh/cli.ts issue — the sanctioned agent path in the umbrella. It refuses to create without category, type, remedy/files and the cited rule (default none). It also refuses without the RCA that R1 requires before any issue exists (--mechanism, --missed-control, --blast-radius, --root-fix, --evidence or --evidence-file, and --spike — the spike’s result or none), and without exactly one classification: --blocking assigns the filer and posts the CLAIM (the filer fixes it), while --non-blocking leaves the issue unclaimed for a later session. It appends the session footer with the one footer builder. The RCA sections are extra ### <heading> answers, so the audit’s form parser (which reads only ### Category and ### Type by exact heading) reads a wrapper-filed issue exactly like a form-filed one.

    Terminal window
    node scripts/gh/cli.ts issue --repo opencharly/<repo> --title "<specific defect>" \
    --category category:<v> --type type:<v> --remedy "<files the fix touches>" \
    --non-blocking --mechanism "…" --missed-control "…" --blast-radius "…" \
    --root-fix "…" --evidence-file <pasted-commands-and-output.md> --spike none

A repository that ships its own template overrides the org default (a GitHub limitation); it must therefore carry the same four fields. The audit reports the drift. File through the form or the wrapper; a bare gh issue create is not a creation path.

Every classification update is tested — see §7. Do not edit taxonomy.json without a fresh cold-reader round.

Under-specified — the issue names no file, no failing artifact and no requested addition, or it presents two conflicting controls without choosing the authoritative one: it gets ? on the undecided axis and is not labelled. Improve it (add the reproducing step, the artifact, the file) and label it then. A pure “Decide:” issue is under-specified on type until the session that takes it decides and records the decision.

Split — two categories are genuinely co-equal with no primary:

  1. File two new issues, one per category; each carries exactly one category: and one type: and quotes the evidence for its half.
  2. Each names the other (Sibling: #N) and the original (Split from #N).
  3. Close the original with a comment naming both successors. Never label it with either category.
  4. The halves must not overlap in scope; if they do, the split is wrong.
  5. The audit verifies every split: two open successors, distinct categories, mutual references.

A type-only split (two co-equal types in one category) follows the same protocol.

  • labels.sh audit --org --state open reports missing axes, two values on one axis, unknown labels (retired names and unknown prefixes), and prints the exact issue list. Report-only by default; --apply maps form answers only; --ignore-retired is for the retirement gate; --close-pass runs the 7-day consistency pass over merged PRs.
  • Org variables (not per-repo settings): LABELS_AUDIT_APPLY, LABELS_AUDIT_STRICT, LABELS_AUDIT_CLOSE_PASS.
  • labels.sh verify-close <pr> <issue> compares the merged PR’s primary changed paths (via the generic path rules) and its subject to the issue’s labels; a mismatch is a finding, not an auto-fix. Dependents named in the issue are allowed.
  • labels.sh explain <issue> prints the classified category/type and the deciding rule for one issue — use it before arguing about a label.
  • Every verb is rate-limit-aware: a quota or permission refusal names its class and prints the unevaluated set; it exits non-zero.

The definitions are not accepted because they read well.

  • Every revision is tested by a fresh reader that sees only the definitions and a new, disjoint set of 20 real issues — never the expected answers, never the plan.
  • labels.sh sample --n 20 draws only ids absent from labels/cold-reader-used.json, so a set is never reused. The set is stratified to exercise every precedence rule (an edited generated Markdown artifact, a plan check:/run: pair, a prose-only field, a pin wave).
  • Acceptance: every axis cites a precedence rule; zero under-specified except issues that state neither a defect nor a requested addition (or that present two conflicting artifacts/controls without selecting the primary); a split only for two genuinely co-equal deliverables with no primary. Genericity is part of acceptance: the same issue body under a different repository name must get the same answer.
  • Record the round in cold-reader-used.json (sample --from <fixture> --record) and attach the table to the tracking issue.

8. Retired labels and what is never a label

Section titled “8. Retired labels and what is never a label”
Retired Replaced by
bug type:fix
enhancement type:feat
documentation type:docs
GitHub defaults duplicate, good first issue, help wanted, invalid, question, wontfix, plus auto-merge, rerun nothing — they are states or judgments, not facts about the work

labels.sh retire --after-backfill snapshots, lists the open usage, then deletes them; it runs only after the backfill, because deletion drops associations. bootstrap-repo-main.yml runs labels.sh sync --repo <name> for a new repository, because GitHub recreates the defaults on every new repo.

Forbidden prefixes the audit reds on sight: session:, owner:, author:, assignee:, priority:, severity:, sev:, size:, status:. A repository-specific label is a defect: the taxonomy is org-wide and generic.

A violation is a property of the violating code/config/skill, never of the document it violates.

Situation Category Type Cite
Code/config contradicts an existing DESIGN decision the violating component’s capability (runtime/delivery/verification) fix the decision + design-check output
Same, but the only remedy is declaration-only in the machine-checked contract the capability owning that contract spec the decision + clean generation output
A DESIGN requirement describes a capability the tree entirely lacks that capability’s category feat — never design the decision
The design contract itself is wrong/incomplete and must change runtime design (primary deliverable) design-check output, decision diff, operator sign-off
The design contract is amended producer-first to enable a capability the capability’s category the capability’s fix/feat; the design edit is a dependent the decision
Code/config violates a stated org-rulebook rule the violating component’s capability fix the rule (R-number/section)
An authored prose surface (skill, docs, README, documentation comment) contradicts the org rulebook, the design contract, or the machine contract experience fix — never docs or design the rule/decision/shape + check output
A skill’s executable plan:/check: step violates a rule the step’s capability (delivery/verification) fix the rule/decision
A skill/docs prose needs a non-violation update or improvement experience docs —
Repo/org policy violation (class naming, ownership) governance chore, or fix when stated behavior is violated the rule/section
The org rulebook itself is wrong or needs a policy change governance docs the rule/section

Design debt (non-conforming code not touched by the current change) carries the component’s category and type:fix when a design decision is contradicted; a cleanup with no decision is type:chore. A change that touches non-conforming code conforms it or files the debt (R11); it never re-labels the debt as design.

A new repository inherits everything and configures nothing:

  • opencharly/.github owns the taxonomy, the generic rules, the form, the label sync/audit workflows and the tests. No repository ships a label config.
  • The bootstrap workflow runs labels.sh sync --repo <name>; gh label list then shows the 12 labels. Verify it in the repo-setup checklist.
  • Do not ship a repository-specific issue template unless it carries the same four required fields — otherwise rely on the org default.
  • File through the org form or scripts/gh/cli.ts issue, with both axes.
  • The org label-audit reports the new repository’s missing/multi/unknown labels.