Skip to content
SprecherEast
Issue 969

process: Check every new issue when it is filed and flag what is missing

Back to our plan
Done
ciprocesstoolingpriority: high

Type

process

Summary

When someone files an issue, a free automatic check should say straight away what is missing, so no issue sits on the board half-groomed.

Details

Today: .github/workflows/issue-labels.yml only turns the form's answers into labels. Nothing checks the rest of the issue when it is filed. The PR check reads an issue's labels only after a pull request links it.

Native first, then plugins, then our code:

  1. Native: issue forms can mark a field required, but they cannot require a milestone, and repository rules do not apply to issues. Not enough alone.
  2. Official or established plugins: none found that checks a milestone against this repository's own rules. To confirm in review.
  3. Our code: one small script that reads facts GitHub already holds, in the same workflow family, reusing .github/label-policy.json.

Mechanical, no AI. The script answers yes or no per rule. Each rule has a stable ID that appears in the message, so firings can be counted later with a search:

  • ISSUE-TYPE: exactly one type label.
  • ISSUE-AREA: at least one area label.
  • ISSUE-PRIORITY: one priority label.
  • ISSUE-SUMMARY: a plain-language summary section.
  • ISSUE-CRITERIA: acceptance criteria with at least one checkbox.
  • ISSUE-FILES: "Files likely touched" and "Must not touch" filled in, or None.
  • ISSUE-MILESTONE: a milestone (Backlog until planned). An epic is optional, for multi-part work, so there is no parent check (AGENTS.md "One issue, one pull request").

Behavior: an issue cannot be blocked, so the check warns. On a failure it posts or updates one comment (never a new one per run) that lists each failed rule ID with a one-line fix, and adds the label needs grooming. When everything passes it removes the label and marks the comment clear. An issue with needs grooming does not meet the Definition of Ready.

When it runs: on opened, edited, reopened, labeled, milestoned and demilestoned.

Skips: pull requests, bot-filed dependency updates.

Feeds: the gate feedback log (#882) and the daily board audit (#890), using the same rule IDs.

Tests first: the rules are one pure function with its own test file, in the style of the existing PR helpers.

Process note: a policy change (new label, a rule on how issues are filed); the owner asked for it in a voice session on 2026-11-09 (summarized), so it follows the normal path with the reviewer checking it stays within that. Size: M (the board field cannot be read from a cloud session). Groomed in a session that could not switch models; a review by a stronger model is welcome before work starts. Shares process-file hot spots with the other gate issues, so they are worked one at a time.

Acceptance criteria

  • Not done: Each rule above has a test that fails without it, written first.
  • Not done: A new issue missing any item gets one comment naming each rule ID, and the needs grooming label.
  • Not done: Fixing the issue clears the label and updates the same comment.
  • Not done: No pull request and no bot-filed update is checked.
  • Not done: needs grooming is added to .github/label-policy.json with its meaning, and the Definition of Ready in docs/process/project-management.md mentions it.
  • Not done: A test issue filed with nothing but a title shows every failing rule; a fully groomed one shows none.
  • Not done: The behavior is described in docs/process/, and the rule IDs are listed once.

Files likely touched

.github/workflows/issue-labels.yml, .github/workflows/issue-policy.yml, .github/scripts/issue-policy.mjs, .github/scripts/issue-policy.test.mjs, .github/label-policy.json, docs/process/project-management.md, docs/process/grooming-playbook.md

Must not touch

src/, .github/workflows/pr-policy.yml

Open questions

None for the owner.

Area

ci, tooling

Priority

high


Generated by Claude Code, opens in a new tab

See it on GitHub, opens in a new tab