Skip to content

(triage): Let triage-apply set the native issue Type on org repos #587

Description

@evanharmon1

Problem

On an organization repo the triage contract says native issue Type owns work classification, and triage-apply.sh correctly writes no work-type label there. But it also cannot write the native Type, so on a fresh org backlog the skill adds needs-triage to 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 NAME exists (gh ≥ 2.98) and the org's Types are readable via GraphQL organization.issueTypes, so the loop can be closed inside the contract.

Acceptance criteria

  • [CI] triage-apply.sh gains a --native-type TYPE option (org repos only) that validates the name against the org's enabled issue Types and sets it via gh issue edit --type, dry-run by default and gated by --execute like labels.
  • [CI] The scan's native_type read and the needs-triage removal check treat a Type set in the same apply call as satisfying the work-type requirement.
  • [HUMAN] SKILL.md step 2a documents choosing a Type on org repos with the same decision table used for work-type labels on personal repos.

Verify

grep -n -- '--native-type' ai/skills/universal/triage/assets/triage-apply.sh

No 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ai-generatedCreated or authored by an AI agentarea:triageThe triage skill and its scan/apply assetsdomain:project-trackingIssues, labels, boards, and PM assets: track-work, triage, the label registryfeatureNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions