Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Feb 1, 2026

Discussion categories in workflows used inconsistent naming (capitalized "Audits"/"General" vs lowercase "audits"/"general", singular "audit" vs plural "audits"), breaking search and filtering across 21 of 59 discussion-creating workflows.

Changes

Workflow Updates

  • Normalized 21 workflows to lowercase plural: "Audits"→"audits" (6), "audit"→"audits" (1), "General"→"general" (14)
  • Recompiled affected lock files

Compiler Validation

  • Added validateDiscussionCategory() in create_discussion.go
  • Warns on capitalized categories with suggested corrections
  • Allows GitHub category IDs (DIC_* prefix)
  • Returns validation failure to prevent invalid config propagation

Documentation

  • Added naming standard to safe-outputs reference: lowercase plural recommended

Example

safe-outputs:
  create-discussion:
    category: "audits"  # ✓ lowercase plural (was "Audits")

Compiler now warns:

warning: Discussion category "Audits" should use lowercase: "audits"
Original prompt

This section details on the original issue you should resolve

<issue_title>[Code Quality] Standardize discussion category naming in workflows</issue_title>
<issue_description>### Description

Workflow lock files create discussions with inconsistent category naming (capitalization and singular/plural forms), making it harder to search and organize automated reports.

Current State

Category naming inconsistencies found:

Inconsistent Count Should Be
Audits 6 audits
audit 1 audits
General 14 general
reports 3 reports
research 2 research

Total workflows creating discussions: 59 (40% of all workflows)

Issues

  1. Search Problems: Can't reliably search for all audit reports (need to check "audits", "Audits", "audit")
  2. Filtering Issues: GitHub Discussions filters treat these as separate categories
  3. Organization: Harder to group related reports together

Recommended Standard

Use lowercase, plural forms consistently:

  • audits - Security audits, workflow audits, analysis reports
  • general - General discussions and findings
  • reports - Various agent analysis reports (already consistent)
  • research - Research findings (already consistent)

Files Affected

Need to update workflows that create discussions with these categories:

  • "Audits" (6 workflows) - Change to audits
  • "audit" (1 workflow) - Change to audits
  • "General" (14 workflows) - Change to general

Likely location: Workflow frontmatter (.md files) in safe-outputs configuration or discussion category field.

Success Criteria

  • All 59 discussion-creating workflows use lowercase category names
  • Categories use plural form (audits not audit)
  • Documentation updated with category naming standard
  • Existing discussions optionally re-categorized (manual admin task)
  • Add validation to compiler to enforce lowercase categories

Implementation Plan

  1. Search workflow .md files for category: or create-discussion configurations
  2. Update category names to lowercase, plural forms
  3. Recompile affected workflows
  4. Add compiler validation to prevent future inconsistencies
  5. Document category naming standard in workflow authoring guide

Impact

  • Severity: Low (organizational issue, not functional)
  • Scope: 21 workflows with inconsistent categories
  • Benefit: Better searchability, cleaner organization, professional consistency

Source

Extracted from:

Priority: Low - Organizational improvement, no functional impact

AI generated by Discussion Task Miner - Code Quality Improvement Agent

  • expires on Feb 15, 2026, 5:09 PM UTC

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 3 commits February 1, 2026 19:13
- Updated 6 workflows from "Audits" to "audits"
- Updated 1 workflow from "audit" to "audits"
- Updated 14 workflows from "General" to "general"
- Recompiled all affected workflow lock files

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
- Validate that discussion categories use lowercase names
- Warn users when capitalized categories are used (e.g., "Audits" → "audits")
- Allow GitHub Discussion category IDs (starting with "DIC_")
- Add validation tests
- Update all test files to use lowercase categories
- Fix test expectations to match new validation

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Add category naming guideline to safe-outputs documentation

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Standardize discussion category naming in workflows Standardize discussion category naming to lowercase plural forms Feb 1, 2026
Copilot AI requested a review from pelikhan February 1, 2026 19:35
@pelikhan pelikhan marked this pull request as ready for review February 1, 2026 22:39
@pelikhan pelikhan merged commit 5f5f0e9 into main Feb 1, 2026
126 checks passed
@pelikhan pelikhan deleted the copilot/standardize-discussion-category-naming branch February 1, 2026 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Code Quality] Standardize discussion category naming in workflows

2 participants