Skip to content

Latest commit

 

History

History

example-project

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

README.md

Error in user YAML: (<unknown>): did not find expected key while parsing a block mapping at line 1 column 1
---
file_type: readme
title: ""Label Management System — Project Overview""
description: ""Quick-start guide and status overview for the automated label management system project""
created_date: 2026-08-10
last_updated: "2026-08-25"
status: active
tags:- project
  - overview
  - automation
  - labels
---

Label Management System

Status: 🟡 Active | Owner: Ash Shaw | Last Updated: 2026-08-12

Comprehensive system for automated GitHub issue label management, including PR sync, stale issue marking, audit trails, and label orchestration.


Quick Facts

Fact Value
Status 🟡 Active — Phase 5 Integration Testing
Phase Phase 5.3 of 5 (Production Readiness)
Owner Ash Shaw
Duration ~8 weeks total
Start Date 2026-06-15
Target Completion 2026-08-31
Team Size 3 people
Master Epic #1680

What is This Project?

Automated system for managing GitHub issue labels at scale, including:

  • PR Label Sync — Automatically sync labels from pull requests to linked issues
  • Stale Issue Detection — Identify and mark issues as stale based on activity
  • Label Auditing — Comprehensive audit trail of all label changes
  • Label Orchestration — Unified CLI for label management operations

Problem Being Solved

Manual label management is error-prone and doesn't scale. Issues lose label accuracy over time, making it impossible to find and prioritize work effectively.

Solution Overview

Automated workflows and CLI tools that:

  1. Sync labels from PRs to linked issues daily
  2. Detect and mark stale issues weekly
  3. Maintain complete audit trail of changes
  4. Provide CLI for manual label operations

Expected Outcomes

  1. 100% Label Accuracy — All linked PRs/issues keep synchronized labels
  2. Proactive Stale Detection — Stale issues identified automatically
  3. Complete Audit Trail — Every label change tracked and logged
  4. Operator CLI — Manual operations available via simple commands

Getting Started

For Project Owners

  1. Read the Planning Document: PLANNING.md

    • Full objectives, 5 phases, timeline
    • Team structure and responsibilities
    • GitHub issue references (#1680 and children)
  2. Review Technical Spec: OPENSPEC.md

    • Architecture and design decisions
    • Component specifications
    • Testing requirements and strategies
  3. Check Current Status:

    • Currently in: Phase 5.3 — Production Readiness Checklist
    • Deliverable: Security, monitoring, operations documentation
    • Latest updates: See "Recent Updates" below
  4. Track Issues: Master Epic #1680

    • All project work tracked here
    • Child issues per phase
    • Real-time status updates

For Developers

  1. Understand the Scope: Read PLANNING.md — Scope & Objectives

  2. Get Your Task: Find your assigned issue in Master Epic #1680

  3. Follow the Spec: Reference OPENSPEC.md for technical requirements

    • Phase 5.3 is security hardening and monitoring setup
    • Phase 5.1-5.2 already complete (integration testing, staging)
  4. Execute Production Readiness:

    • Complete security audit (token scopes, secrets)
    • Set up monitoring (metrics, dashboards, alerts)
    • Document operational procedures (runbook, incident response)
  5. Run Tests: See OPENSPEC.md — Testing Requirements

    • 51+ unit tests currently passing
    • 10+ integration tests currently passing

Project Status

Current Phase

Phase 5.3: Production Readiness Checklist — Security hardening, monitoring setup, operational documentation

  • Status: 🟡 In Progress
  • Duration: 1 day (short intensive phase)
  • Week: Week 8 of 8
  • Owner: LightSpeed Team
  • Progress: 40% complete (2 of 5 deliverables submitted)

Phase Progress

Phase 1    ██████████████████░░░░░░░░░░░░  (100% complete — July 15)
Phase 2    ██████████████████░░░░░░░░░░░░  (100% complete — July 22)
Phase 3    ██████████████████░░░░░░░░░░░░  (100% complete — Aug 5)
Phase 4    ██████████████████░░░░░░░░░░░░  (100% complete — Aug 10)
Phase 5    ████████░░░░░░░░░░░░░░░░░░░░░░  (60% complete — Aug 12)

Key Milestones

Milestone Date Status
Phase 1 (Planning) Complete 2026-07-15 ✅ Done
Phase 2 (Scripts) Complete 2026-07-22 ✅ Done
Phase 3 (Workflows) Complete 2026-08-05 ✅ Done
Phase 4 (Documentation) Complete 2026-08-10 ✅ Done
Phase 5.3 (Production Ready) 2026-08-12 ⏳ On Track
Production Deployment 2026-08-15 ⏳ Scheduled

Recent Updates

Last 7 Days (Aug 5-12):

  • ✅ Phase 3 merged (PR #1761) — Workflows + orchestrator live in develop
  • ✅ Phase 4 merged (PR #1773) — 1,500+ lines of comprehensive documentation
  • 🟡 Phase 5.1 passed review (PR #1780) — Integration testing framework
  • 🟡 Phase 5.3 in progress — Security, monitoring, runbooks
  • ⚠️ CI infrastructure issue: npm ci failing on package-lock.json dependencies (being investigated)

Next Steps (This Week):

  • Complete security assessment (token scopes, secrets, permissions)
  • Set up monitoring dashboards and alerts
  • Create operational runbooks and incident response plan
  • Submit Phase 5.3 for review (target: Aug 13)
  • Finalize production deployment plan

Project Structure

Directory Layout

.github/projects/active/issue-maintenance-scripts-2026-08-10/
├── README.md                           # This file
├── PLANNING.md                         # Planning & timeline
├── OPENSPEC.md                         # Technical specification
├── PHASE_5_DETAILS.md                  # Phase 5 execution guide
├── deliverables/
│   ├── PHASE_1_DELIVERABLES.md         # Planning + schemas
│   ├── PHASE_2_DELIVERABLES.md         # Scripts + CLI
│   ├── PHASE_3_DELIVERABLES.md         # Workflows + orchestrator
│   ├── PHASE_4_DELIVERABLES.md         # Documentation
│   └── PHASE_5_INTEGRATION_TEST.md     # Integration test framework
├── reports/
│   ├── audit-findings-2026-08-10.json  # Code audit results
│   ├── progress-report-2026-08-12.md   # Weekly status
│   └── ci-infrastructure-issue-2026-08-12.md
└── [other documentation]

Key Documents

Document Purpose Read When
README.md Overview & quick start Getting oriented
PLANNING.md Objectives, phases, timeline Planning/managing
OPENSPEC.md Technical specification Implementing/designing
PHASE_5_DETAILS.md Phase 5 execution guide Working on Phase 5

GitHub Issues & Tracking

Master Epic

All project work is tracked under the master epic:

#1680 — Issue Metadata Triage Expansion — Master Epic

Issue Hierarchy

Epic #1680 — Issue Metadata Triage Expansion (parent)
├── Phase 1 #1690 — Planning & Specification
│   ├── Task #1691 — Schema design
│   ├── Task #1692 — Workflow planning
│   └── Task #1693 — Team coordination
├── Phase 2 #1705 — Scripts & CLI Development
│   ├── Task #1706 — label-orchestrator.js
│   ├── Task #1707 — label-sync.js
│   └── Task #1708 — label-audit.js
├── Phase 3 #1761 — GitHub Workflows
│   ├── Task #1762 — meta-labels-sync.yml
│   ├── Task #1763 — label-audit-report.yml
│   └── Task #1764 — Integration testing
├── Phase 4 #1773 — Documentation
│   ├── Task #1775 — ISSUE_MAINTENANCE_SCRIPTS.md
│   ├── Task #1776 — LABEL_MANAGEMENT_CLI.md
│   └── Task #1777 — CHANGELOG.md updates
└── Phase 5 #1778 — Integration & Deployment
    ├── Phase 5.1 #1780 — Integration Testing
    ├── Phase 5.2 #1784 — Staging Validation
    └── Phase 5.3 #[TBD] — Production Readiness

Issue Reference

Phase Issue Type Status Notes
Phase 1 #1690 epic ✅ Closed Complete
Phase 2 #1705 epic ✅ Closed Complete
Phase 3 #1761 epic 🟢 Open Merged, under review
Phase 4 #1773 epic 🟢 Open Merged, final review
Phase 5 #1778 epic 🟢 Open Integration testing in progress
— #1780 task 🟢 Open Phase 5.1 submitted for review

Contributing

To contribute to this project:

  1. Pick an Issue: Find an unassigned task in Master Epic #1680
  2. Assign Yourself: Add yourself as assignee
  3. Read the Spec: Reference PLANNING.md and OPENSPEC.md
  4. Execute: Follow PHASE_5_DETAILS.md for Phase 5 tasks
  5. Test: Run tests per OPENSPEC.md — Testing
  6. Submit PR: Link to issue with "Resolves #XXXX"
  7. Get Review: Wait for approval before merge

Team & Contacts

Project Team

Role Name Contact Hours/Week
Project Owner Ash Shaw @ash (Slack) 15
Technical Lead Claude Code @code-agent 20
Developer LightSpeed Team #github-automation 40
QA/Reviewer Automation Team @automation 20

How to Reach Us

  • Questions about Project: Comment on Master Epic #1680
  • Technical Questions: @code-agent in Slack #github-automation
  • Blockers/Escalation: @ash in Slack #deployments
  • Bug Reports: Create issue with type:bug label

Related Documentation

Project Documents

Key Scripts & Workflows

  • scripts/automation/label-orchestrator.js — Unified label management CLI
  • .github/workflows/meta-labels-sync.yml — Daily PR-to-issue label sync
  • .github/workflows/label-audit-report.yml — Weekly audit trail generation

Repository References

External Links


FAQ

General Questions

Q: What is the goal of this project?

A: Build an automated label management system that keeps GitHub issue labels accurate and current with minimal manual intervention.

See PLANNING.md — Objectives for full details.

Q: When will this be done?

A: Target production deployment: 2026-08-15 (end of week 8).

See PLANNING.md — Timeline for detailed schedule.

Q: Who is working on this?

A: Ash Shaw (owner), LightSpeed team, with Claude Code agent support.

See Team & Contacts section above.

Technical Questions

Q: What are the main components?

A: Five main components:

  1. label-orchestrator.js — Unified CLI for all operations
  2. label-sync.js — PR-to-issue label synchronization
  3. label-audit.js — Audit trail and reporting
  4. GitHub Workflows — Scheduled automation (daily + weekly)
  5. Configuration System — Flexible, extensible design

See OPENSPEC.md — Phase 2 for technical details.

Q: What are the testing requirements?

A: > 85% code coverage across:

  • Unit Tests: 50+ tests for individual components
  • Integration Tests: 10+ tests for component interaction
  • Acceptance Tests: Workflow execution validation

See OPENSPEC.md — Testing.

Q: How do I run the label management CLI?

A:

# Review what labels would be changed
node scripts/automation/label-orchestrator.js audit --dry-run

# Apply labels to all issues
node scripts/automation/label-orchestrator.js apply

# Get help
node scripts/automation/label-orchestrator.js --help

See LABEL_MANAGEMENT_CLI.md for full reference.

Contribution Questions

Q: How do I contribute?

A: See Contributing section above.

Q: Can I pick my own task?

A: Yes! Find unassigned issues in Master Epic #1680.

Q: Who reviews my code?

A: The Automation Team (see Team & Contacts).

Known Issues

Q: Why is CI infrastructure failing?

A: npm ci is failing on package-lock.json dependency resolution.

Status: Under investigation (created branch package-lock-deps-review-c9ad55)

Impact: CI validation delayed, doesn't block merging

Workaround: Manual testing before merge


Troubleshooting

Common Issues

Issue: npm ci fails with dependency errors

Issue: Label changes not syncing

  • Check 1: Verify workflow is enabled: gh workflow list -w meta-labels-sync.yml
  • Check 2: Review audit trail: .github/reports/audit-trail-latest.json
  • Check 3: Comment on Master Epic #1680 asking for help

Issue: I'm blocked on a task

  • Post blocker comment on your issue
  • @mention @ash in Slack #deployments
  • If critical, create new issue with blocker label

Success Criteria

This project is successful when:

✅ All deliverables completed per PLANNING.md
✅ All tests passing (> 85% coverage)
✅ Security audit passed
✅ Monitoring and dashboards operational
✅ Operational runbooks documented
✅ Staged production deployment completed
✅ Team sign-off obtained
✅ Zero critical issues reported post-deployment


Archive & Completion

When Complete (expected Aug 31):

  1. Mark all Phase 5 issues as closed
  2. Create completion summary in Master Epic #1680
  3. Move project to .github/projects/completed/
  4. Document lessons learned and metrics
  5. Archive this project folder

Project Status: 🟡 Active — Phase 5.3 in progress
Owner: Ash Shaw
Last Updated: 2026-08-12
Next Review: 2026-08-13

Visual Workflow

flowchart TD
  accTitle: flowchart diagram
  accDescr: flowchart flowchart
  A[Start Here] --> B[Read Scope and Prerequisites]
  B --> C[Run the Documented Workflow]
  C --> D[Validate with Repo Tooling]
  D --> E[Open PR or Hand-off]

  classDef start fill:#E8F5E9,stroke:#2E7D32,stroke-width:2px,color:#1B5E20;
  classDef prep fill:#E3F2FD,stroke:#1565C0,stroke-width:2px,color:#0D47A1;
  classDef run fill:#fef3c7,stroke:#b45309,stroke-width:2px,color:#4a2c00;
  classDef gate fill:#f3e8ff,stroke:#7e22ce,stroke-width:2px,color:#3b0764;
  classDef done fill:#E0F2F1,stroke:#00695C,stroke-width:2px,color:#004D40;

  class A start;
  class B prep;
  class C run;
  class D gate;
  class E done;
Loading