-
Notifications
You must be signed in to change notification settings - Fork 0
(triage): Let triage-apply set the native issue Type on org repos #587
Copy link
Copy link
Open
Labels
ai-generatedCreated or authored by an AI agentCreated or authored by an AI agentarea:triageThe triage skill and its scan/apply assetsThe triage skill and its scan/apply assetsdomain:project-trackingIssues, labels, boards, and PM assets: track-work, triage, the label registryIssues, labels, boards, and PM assets: track-work, triage, the label registryfeatureNew feature or requestNew feature or request
Description
Activity
Metadata
Metadata
Assignees
Labels
ai-generatedCreated or authored by an AI agentCreated or authored by an AI agentarea:triageThe triage skill and its scan/apply assetsThe triage skill and its scan/apply assetsdomain:project-trackingIssues, labels, boards, and PM assets: track-work, triage, the label registryIssues, labels, boards, and PM assets: track-work, triage, the label registryfeatureNew feature or requestNew feature or request
Problem
On an organization repo the triage contract says native issue Type owns work classification, and
triage-apply.shcorrectly writes no work-type label there. But it also cannot write the native Type, so on a fresh org backlog the skill addsneeds-triageto every issue (native Type unset) and can never remove it — 41 of 41 issues on harmonops/harmon-infra ended that way on 2026-08-22 until Types were set by hand.gh issue edit --type NAMEexists (gh ≥ 2.98) and the org's Types are readable via GraphQLorganization.issueTypes, so the loop can be closed inside the contract.Acceptance criteria
triage-apply.shgains a--native-type TYPEoption (org repos only) that validates the name against the org's enabled issue Types and sets it viagh issue edit --type, dry-run by default and gated by--executelike labels.native_typeread and theneeds-triageremoval check treat a Type set in the same apply call as satisfying the work-type requirement.Verify
grep -n -- '--native-type' ai/skills/universal/triage/assets/triage-apply.shNo match means the option does not exist yet; the observation (41/41 issues stuck in needs-triage) is reproducible on any org repo whose issues have no Type.
Out of scope
Writing Types on personal-account repos (GitHub does not offer them there).
Provenance
Follow-on to #485 (axes and native Type derived from the taxonomy). Observed on harmonops/harmon-infra during the 2026-08-22 triage pass.