Skip to content

Phase 1: Stop New Label Prefix Violations (2-3 hrs)Β #2283

Closed

Description

@ashleyshaw

Overview

This is Phase 1 of the label-prefix-enforcement-2026-08-05 project. This phase MUST be completed TODAY to prevent new label violations.

Status: πŸ”΄ CRITICAL β€” Blocks Phase 2–5
Priority: Highest
Duration: 2–3 hours
Related Project: label-prefix-enforcement-2026-08-05


What This Phase Does

Stops new label prefix violations by:

  1. Delete defective code in scripts/agents/includes/labeling-agent.js
  2. Update governance documents to reflect fix
  3. Verify that no further bare labels can be created

Root Cause

The labeling agent script applies bare labels (e.g., bug, feature) without required family prefixes (e.g., type:bug, type:feature). This must be removed immediately.

File: scripts/agents/includes/labeling-agent.js


Deliverables

  • Delete defective labeling code from scripts/agents/includes/labeling-agent.js
  • Update .github/labels.yml governance document with fix notes
  • Update CLAUDE.md label creation rules section
  • Test: Verify labeling agent now enforces prefixes only
  • Create PR for Phase 1 completion
  • Merge PR and verify CI green

Timeline

  • Start: 2026-08-21 (after approval)
  • Target Completion: 2026-08-21 (same day, 2–3 hours)
  • Next Phase Unblocks: Phase 2 (fix existing ~100 issues)

Acceptance Criteria

βœ… Defective code removed from labeling agent
βœ… No bare labels can be created by any script
βœ… Governance documents updated
βœ… PR created and merged
βœ… CI green on main branch


Related Issues

  • Phase 2: #1604 β€” Fix Existing Label Prefix Violations (24-48 hrs)
  • Phase 3: #1605 β€” Enforce Label Validation (3-5 days)
  • Audit Report: #1592 β€” Label Prefix Governance Enforcement

Notes

This is the blocking first step. Do not proceed to Phase 2 until this issue is closed.

Activity

  1. added theissue type on Aug 21, 2026
  2. linear-code commented on Aug 21, 2026

    @linear-code
  3. github-actions commented on Aug 21, 2026

    @github-actions
    Contributor

    ⚠️ This issue was closed but does not meet our completion requirements.

    Issues preventing closure:

    • Missing required section(s): Definition of Ready (DoR), Definition of Done (DoD)
    • Issue is flagged status:needs-more-info β€” resolve outstanding feedback first

    What you can do:

    1. Fix the issue: Edit this issue and update the body with the correct template sections (DoR and DoD sections)
    2. Reopen it: Click the "Reopen issue" button on this page to reopen after fixing
    3. Force close: Add the meta:force-close label to this issue if closure is necessary despite incomplete requirements

    After fixing: The issue will no longer show this warning and can be closed normally.
    Need help? See the issue template guide: https://github.com/lightspeedwp/.github/issues/new/choose

  4. self-assigned this
    on Aug 29, 2026
  5. added this to the v1.1 milestone on Aug 29, 2026
  6. github-actions commented on Aug 30, 2026

    @github-actions
    Contributor

    Milestone Allocation

    
    
  7. github-actions commented on Sep 8, 2026

    @github-actions
    Contributor

    ⚠️ Bare Labels Detected

    This issue has labels that are not in the canonical taxonomy:

    • migrate:priority:critical
    • migrate:status:needs-more-info
    • migrate:type:task
    • area:labels
    • status:needs-template-fix

    Valid Canonical Labels

    Please use labels with a prefix from the canonical taxonomy:

    • Type: type:bug, type:feature, type:task, type:documentation, etc.
    • Status: status:needs-triage, status:in-progress, status:done, etc.
    • Priority: priority:critical, priority:high, priority:normal, priority:low
    • Area: area:ci, area:docs, area:labels, area:security, etc.
    • Meta: meta:needs-changelog, meta:duplicate, meta:blocked, etc.

    For the complete list, see .github/labels.yml.

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

Metadata

Metadata

Assignees

Type

Fields

Priority

None yet

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions