Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line numberDiff line numberDiff line change
Expand Up@@ -28,6 +28,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- **PR Creation Agent — Phase 3 Skill 3: validate-and-apply-labels implementation** — Complete implementation of label validation and application skill for PR Creation Agent Phase 3. Skill 3 deliverables include: (1) Core skill implementation (`validate-and-apply-labels.js`, ~220 LOC) validating and applying GitHub labels based on branch type and template context, supporting 30+ branch types with configurable label mappings, validating labels against canonical set, and detecting invalid labels with helpful warnings; (2) Comprehensive test suite (33 tests, 100% passing, 97.5% code coverage) covering input validation, branch-to-label mapping for all 30+ types, template metadata context labels (meta:needs-more-info when sections missing, meta:ready-for-review when complete), label validation against canonical set, custom configuration support, WordPress-specific labels, error handling, and integration scenarios; (3) Full JSDoc documentation with clear parameter descriptions and error scenarios; (4) Integration pipeline: accepts branchType from Skill 1, templateFile and templateMetadata from Skill 2, applies contextual labels based on template completeness; (5) Metadata context labels: automatically adds meta:needs-more-info when template missing required sections, adds meta:ready-for-review when all sections present; (6) Canonical label validation: 30+ built-in labels (type:*, status:*, priority:*, area:*, meta:*, wp:*) with extensibility via custom config; (7) Error handling with descriptive messages for missing inputs, invalid labels, and processing failures. All 95 PR Creation Agent tests passing (Skill 1: 39, Skill 2: 23, Skill 3: 33). Phase 3 Skills: 3/6 complete (50%). ([PR #XXXX](https://github.com/lightspeedwp/.github/pull/XXXX), [#1870](https://github.com/lightspeedwp/.github/issues/1870))

- **PR Creation Agent — Phase 3 Skill 2: route-pr-template implementation** — Complete implementation of the PR template routing skill for the PR Creation Agent Phase 3. Skill 2 deliverables include: (1) Core skill implementation (`route-pr-template.js`, ~190 LOC) routing pull requests to correct templates based on branch type, reading YAML routing config from `.github/PULL_REQUEST_TEMPLATE/config.yml`, and extracting template metadata (sections, required fields, frontmatter); (2) Comprehensive test suite (23 tests, 100% passing, 97% code coverage) covering input validation, config loading, template routing for all 25+ branch types (feat, fix, docs, hotfix, refactor, chore, ci, test, security, design, a11y, ux, release, research, revert, i18n, ops, proto, ds, api, schema, telemetry, content, seo, config, migrate, qa, uat, audit), template file reading, metadata extraction (sections, frontmatter, required vs found sections), config overrides, error handling, and edge cases; (3) Full JSDoc documentation with clear parameter descriptions, return value structures, and error scenarios; (4) Secure YAML parsing using `DEFAULT_SAFE_SCHEMA` to prevent arbitrary code execution; (5) Integration with Skill 1 (validate-branch-name output) and Skill 3 (template metadata for label context). Metadata extraction identifies three required sections per PR template: "Linked issues", "Changelog", "Checklist (Global DoD / PR)", marking templates as complete only when all required sections present. Error handling provides descriptive messages for missing templates, config load failures, and file read errors. Phase 3 Skills: 2/6 complete (33%). ([PR #1979](https://github.com/lightspeedwp/.github/pull/1979), [#1870](https://github.com/lightspeedwp/.github/issues/1870))

- **ADR Agent Portability — Phase 1A Configuration System foundation** — Portable, configuration-driven architectural decision record (ADR) generation agent with comprehensive configuration schema and examples. Phase 1A deliverables include: (1) Complete JSON schema (`adr-config.schema.json`) supporting all configuration options for templates, numbering schemes, approval workflows, metadata customization, WordPress-specific fields, and validation rules; (2) Four example configurations demonstrating control-plane, organization, WordPress plugin, and WordPress theme contexts; (3) Skill documentation (`SKILL.md`) with project overview, quick-start guide, configuration inheritance model, and Phase 1–3 roadmap; (4) Portable agent architecture (`agents/adr-generator/`) ready for multi-phase implementation. Configuration system features: configuration-first design (all behavior driven by `.adr-config.json`), flexible numbering (sequential/date-based/custom), optional approval workflows (CODEOWNERS/custom), WordPress support, inheritance model (org defaults + repo overrides), and composable validation rules. Phase 1A establishes foundation for Phases 1B (template variants & validators) and 1C (complete agent implementation & testing). Master epic issue (#1828) created to track implementation across Phases 1–3. Planning documentation in `.github/projects/active/adr-agent-portability-org/`. ([PR #1915](https://github.com/lightspeedwp/.github/pull/1915), [#1828](https://github.com/lightspeedwp/.github/issues/1828), [#1829](https://github.com/lightspeedwp/.github/issues/1829))

- **Metrics Agent Phase 1 — Core Implementation & Testing** — Complete implementation of universal metrics collection and analysis agent supporting GitHub control plane and WordPress repositories. Phase 1 deliverables include: (1) Core implementation (~1,150 LOC) with 6 modular components: ConfigurationLoader (config loading/validation), GitHubAPIClient (API queries with exponential backoff and caching), MetricsCollector (issue/PR/contributor metrics extraction), MetricsAggregator (multi-repo aggregation and trend analysis), InsightsAnalyzer (pattern detection and health scoring), MetricsReporter (output packaging and handoff); (2) Three configuration profiles (github-control-plane, wordpress-plugin, wordpress-theme) with context-aware metric filtering; (3) Comprehensive test suite with 75+ tests achieving >82% code coverage (100% for critical ConfigurationLoader module); (4) Complete documentation including README with API reference, PROGRESS.md tracking, and inline code comments; (5) Universal configuration-driven design supporting single codebase across 3 repository contexts. Performance targets: <30s single repo, <2m 5 repos. Built-in exponential backoff (3 retries, max 60s) handles GitHub API rate limiting. Production-ready error handling and validation on all inputs. Phase 2 (Aug 26-Sep 16) will add real API integration, historical data storage, and Reporting Agent integration. ([PR #1886](https://github.com/lightspeedwp/.github/pull/1886), [Spec #1831](https://github.com/lightspeedwp/.github/issues/1831))
Expand Down
Loading
Loading