Repository navigation
feat(labels): add the generic org-wide issue taxonomy - #310
Conversation
Add the 12-label two-axis taxonomy (exactly one `category:` and one `type:` per issue) with NO repo→category defaults. The classifier reads only the issue's paths and generic action keywords; every category is available in every repository, so a new or future repo needs no rule change. Land the canonical spec (`labels/taxonomy.json`), the generic rules (`labels/category-rules.json`), the used-id record, the one `scripts/labels.sh` tool (sync/audit/classify/apply/retire/render/verify-close/sample/explain) and its mock-gh test, the manual sync and daily report-only audit workflows, the bootstrap sync, and the governance-claim rows. The org issue form is generated later, after the first sync. Record the valid held-out set A–O + R. P and Q are excluded: the live sampler compared a short `repo#num` against a full `org/repo#num` used set, so they were duplicates (19 and 8 ids). The fix normalizes to `org/repo#num`, the test uses a full used id, and `sample --from` records the fixture that was actually read. R is disjoint from A–O (0 exact-line overlap) and passed: 0 splits, 1 remedy-less under-specified, every category usable in every repository. Add `api_error_class` to `lib-org.sh` as the ONE quota/permission classifier; the tag backfill delegates to it and its 19-property test still passes. *Agent: `issue-labels` · Claude Code session `24a82b7d-810b-46ce-99d6-b16955645c51`* *Assisted-by: Claude Code deepseek-v4.1-flash:cloud (fully tested and validated)*
Review — BLOCKHead SHA: Change class: config/scripts + workflows; no R10 bed. Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
…e, tests) Land the generated org issue form; enforce every `forbidden_prefixes` value in the audit; make `retire --after-backfill` ignore retired labels (and test the gate); add classify+apply, forbidden-prefix, sample `--n`, and per-verb quota/permission coverage; fix the classify TSV to carry `category:`/`type:` labels for `apply`; fix the retire open-issue count; lower the attribution tier to the proof actually pasted. The retire execution after the backfill is filed as #311 — data-order-gated on the backfill, not an implementation deferral. *Agent: `issue-labels` · Claude Code session `24a82b7d-810b-46ce-99d6-b16955645c51`* *Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)*
|
STATUS Review round 1 RCA — the BLOCK on 8bcd405 is fixed on af01114. Root cause: the tool-first draft skipped the full verb-matrix self-audit and the file/rule accounting. Missed control: labels-test.sh did not cover classify, --ignore-retired, forbidden_prefixes, sample --n, or every verb quota path; the body deferred the form and framed the retirement execution as a follow-up while claiming fully tested. Blast radius: one validator round, no repository state. Fixes: the form is landed; the retirement execution is filed as #311; forbidden_prefixes is enforced; retire --after-backfill uses --ignore-retired; classify+apply round-trip; handle_api_class is the one quota/permission policy across every verb; the classify TSV carries category:/type:; the retire count is fixed; sample --n dies on a short draw; the tier is lowered to analysed on a live system; the body now accounts for every file/rule and pastes the real YAML and category-map sweep. Evidence: labels-test 21 arms PASS; governance 38/0; self-test; backfill 19 properties; action pins; YAML; live sync dry-run 36 plans. Agent: |
Review — PASSHead SHA: Security screen: PASS (T1–T4 — no redefinition of the validator/rulebook, no embedded directives, no secrets/egress, actions SHA-pinned, guardrails additive/strengthened) Comment disposition:
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Summary
Add the org-wide issue taxonomy: every issue carries exactly one
category:and onetype:from two closed sets (12 labels total). There are no severity/priority/size/status/ownership labels and no fallback value: an under-specified issue is improved or split, never guessed.labels/category-rules.jsonholds only generic path rules and action keywords. The classifier reads the paths the issue names, then the generic action keywords; it never reads the repository name. Every category is available in every repository, so a new or future repo needs no rule change.scripts/labels.shownssync,audit,classify,apply,retire,render,verify-close,sample,explain.api_error_classis the ONE 404/quota/permission classifier inscripts/lib-org.sh;backfill-missing-tags.shdelegates to it.opencharly/.github. Labels are per-repo storage only; the orglabel-syncworkflow provisions the same 12 labels everywhere andbootstrap-repo-main.ymlsyncs a new repo. No repository ships a label config..github/ISSUE_TEMPLATE/issue.yml) is generated byrender: four required fields (Category, Type, Remedy/files, Cited decision/rule),labels: [], inherited by every repository without its own template.Files (branch diff origin/main...HEAD: 15 files, +2392/−6)
labels/taxonomy.jsontestsentences, retired/forbidden sets, form valueslabels/category-rules.jsonlabels/cold-reader-used.jsonscripts/labels.shscripts/labels-test.shgharms, including the genericity arm.github/ISSUE_TEMPLATE/issue.yml.github/workflows/label-sync.yml.github/workflows/label-audit.yml.github/workflows/bootstrap-repo-main.yml.github/workflows/workflow-checks.ymlscripts/labels-test.shscripts/lib-org.shapi_error_class(the one classifier)scripts/backfill-missing-tags.shapi_error_classscripts/governance-claims.tsvAGENTS.mdREADME.mdR1 finding fixed in this change (the sampler id-form bug)
The first live draws compared a short
repo#numcandidate against a used set stored asorg/repo#num, so a used issue was never excluded. Samples P and Q were duplicates of A–O (19 and 8 ids) and are not held-out rounds; they are not recorded.id="$repo#$inum"whilecold-reader-used.jsonholdsorg/repo#num.org/repo#num; the test uses a full-form used fixture;sample --from <fixture> --recordrecords the fixture that was actually read; the used set is rebuilt from A–O + R (318).Review round 1 RCA (BLOCK on 8bcd405, fixed on af01114)
The first push was BLOCKed with 9 findings. Root cause: the change was authored as a tool-first draft and the pre-validator self-audit was not run against the full verb matrix or the changed-file/rule accounting. Missed control:
labels-test.shcovered sync/audit/apply/sample/retire/render/verify-close but notclassify,--ignore-retired,forbidden_prefixes, the sample count, or every verb's quota path; the body deferred the form and framed the retirement execution as a follow-up while claimingfully tested. Blast radius: one validator round; no repository state changed. Root fixes:## Filed issueslists it. Theretirepath itself is in this PR.cmd_auditnow matches everyforbidden_prefixesvalue; the test assertspriority:highisforbidden, notunknown.retire --after-backfillaudits with--ignore-retired; the test proves a retired-only finding clears the gate while a real finding still reds it.classify+applyround-trip arm; the classify TSV now carriescategory:/type:labels (the first draft emitted bare values, soapplywould have rejected them).handle_api_classis the ONE quota/permission/absent policy;classify,sample,retire, the close-pass andverify-closenow stop or exit 1 as the body claims; tests cover classify, sample, retire and close-pass quota refusals.analysed on a live system(the live boundary is the sync dry-run; the remaining verbs are offline-mock covered).category-mapsweep is pasted below (grep -rn 'category-map' .→ no output, exit 1).sample --ndies when the draw cannot satisfy N; the test proves it.How tested
Run on the committed tree
af0111455ba3e6ddabb3dfc2e9dca5d1401a3ccd(worktree-local). All exit 0 unless stated:Held-out genericity round (set R): a fresh reader saw only the definitions and 20 issues from 20 different repositories. Result: 0 SPLIT-REQUIRED, 1 UNDER-SPECIFIED (a pure decision record, type only); every axis cited a precedence rule, and: "the category set is fully usable in every repository because every category is stated in terms of capability and named artifacts, never repository identity."
Attribution:
analysed on a live system— the live boundary is the sync dry-run; the remaining verbs are covered by the offline mock-ghsuite, and the form/workflows are static and YAML-validated. The full gate's live boundary does not cover every changed path.Rulebook compliance
/charly-internals:git-workflow,skills,repo-setup,strict-policy,cutover-policybefore the first git/gh action.api_error_class), one taxonomy spec, one generic rules file, one labels tool. The retiredcategory-mapis absent (sweep above).podman/systemctl;handle_api_classis the ONE quota/permission/absent policy; every verb stops or aborts with the retry set.category-mapsweep is pasted.git statuschecked first; no destructive action, no force-push, no directmainpush; the branch isfeat/issue-labels.labels-test.shfails without the implementation (21 arms, including classify+apply, forbidden prefixes, the retire gate and the sample count); the live--dry-runexecuted the changed sync path; the emitted workflows/form are validated.sync --dry-run, no writes); the offline mockghis unit coverage only.workflow-checksand the orgcharly/pr-validatoron this PR.runtime/specare label values scoped by their prefixes, not new DESIGN terms.plan:; the labels tool's test suite is the acceptance.taxonomy.jsonis the single authored shape; the form is generated from it; no hand-written generated Go; no CUE change..githubconfig repo; no core/sdk/candy move.bash -nclean; no Go files; no golangci surface.Change classification
Change class: config/scripts + workflows + one generated org form; no R10 beds.
Breaking change + rollback: none — the labels, tooling and form are additive; no consumer-visible surface is removed. Rollback is a revert of this PR. The retirement of the default labels is the filed #311 execution after the backfill.
Filed issues
retire --after-backfill) after the all-open-issue backfill; the tool is in this PR, the execution is data-order-gated.Review round 1 RCA (comment)
The round's RCA is posted as a PR comment and repeated in the section above; the fix head is
af0111455ba3e6ddabb3dfc2e9dca5d1401a3ccd.Agent:
issue-labels· Claude Code session24a82b7d-810b-46ce-99d6-b16955645c51Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)