[#64] Add GrantFox issue batch quality validator - #81
Merged
El-swaggerito merged 1 commit intoJul 28, 2026
Conversation
Adds scripts/validate-issue-batch.mts, a standalone dependency-free script (matching check-package-boundaries.mts's convention) that validates a GrantFox issue batch JSON file against docs/ISSUE_STANDARD.md and .github/LABELS.yml before any issues are created via gh issue create. Checks: - Required fields (title, labels, body) present and non-empty - Every label exists in .github/LABELS.yml (the Axionvera#1 failure mode AUTOMATION_RUNBOOK.md's troubleshooting table already names) - Campaign-labelled issues have a scope label, a type label, and at most one difficulty label per ISSUE_STANDARD.md - Campaign-labelled issues include all 8 required ISSUE_STANDARD.md sections as markdown headings - Acceptance-criteria checkboxes aren't vague/unverifiable phrasing Usage: pnpm validate:issues path/to/batch.json (exit 0/1). Adds examples/issue-batches/{valid,invalid}-batch.json. The invalid fixture is modeled on this issue's own real labels (monorepo, feature, developer-experience), none of which exist in .github/LABELS.yml -- confirmed by running the validator against it. Adds scripts/validate-issue-batch.test.ts (6 tests: compliant batch, unsupported labels, missing fields, missing sections, weak acceptance criteria, non-campaign issues exempt from section checks). Adds docs/ISSUE_BATCH_VALIDATOR.md. Closes Axionvera#64
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a local validator for GrantFox-style advanced issue JSON batches, catching missing fields, unsupported labels, missing ISSUE_STANDARD.md sections, and weak acceptance criteria before any issue is created on GitHub.
Closes #64
Acceptance criteria
Design notes
Verification