Repository navigation
Open
Security
1 / 21 of 2 issues completed
Copy link
Labels
migrate:priority:normalDefault priorityDefault prioritymigrate:type:auditAuditAuditmigrate:type:testTesting/coverageTesting/coveragepriority:normaltype:audittype:test
Milestone
Description
Problem
Tests disabled in .jest-skip/ directory; critical gaps in coverage; error branches untested.
Acceptance Criteria
- Test files moved from
.jest-skip/toscripts/agents/__tests__/ - All tests pass in CI (
npm test) - Test coverage ≥ 80% for both agents
- All error branches tested (missing token, API failure, etc.)
- Blocker detection tested thoroughly
-
.jest-skip/directory removed (once tests moved)
Implementation Plan
Move & Structure
- Move
.jest-skip/planner.agent.test.js→scripts/agents/__tests__/planner.agent.test.js - Move
.jest-skip/reviewer.agent.test.js→scripts/agents/__tests__/reviewer.agent.test.js
Planner Tests
Add tests for:
- Missing GITHUB_TOKEN → should fail with clear error
- Invalid context (no PR payload) → should exit gracefully
- Dry-run mode → should log but not write
- Successful plan generation (once [Merge pull request #1 from lightspeedwp/copilot/fix-e67c9b25-708b-464… #2.1] implemented)
Reviewer Tests
Add tests for:
- Missing GITHUB_TOKEN → should fail with clear error
- CI failure state (state !== "success") → should flag as blocker
- No changed files → should handle gracefully
- Changelog detection edge cases:
- Case-insensitive (CHANGELOG.md, changelog.md, Changelog.MD)
- Multiple names (CHANGELOG.md, HISTORY.md, NEWS.md)
- In root and /docs directory
- Blocker detection:
- Both CI + changelog blockers
- No blockers (ready to proceed)
- Dry-run mode → should not post comment
- Comment posting success → verify octokit called
- Comment posting failure → should fail gracefully
Test Execution Plan
# Run all tests
npm test
# Run with coverage
npm test -- --coverage scripts/agents
# Check coverage report
# Should show ≥ 80% for:
# - scripts/agents/planner.agent.js
# - scripts/agents/reviewer.agent.jsEffort Estimate
Medium (2-3 hours)
Priority
🔴 CRITICAL - Blocks CI validation
Dependencies
- Requires: [Add GitHub Copilot MCP configuration with Playwright and GitHub remote servers #1.1] Module consistency, [Add GitHub Copilot MCP configuration with Playwright and GitHub remote servers #1.2] Dry-run, [Add GitHub Copilot MCP configuration with Playwright and GitHub remote servers #1.3] Error handling
Blocks
- Enables all Phase 2 issues
Related Issues
- Blocked by: Issue 1.1, 1.2, 1.3
- Reference: ai/improvement-plan-planner-reviewer.md (Issue 1.4)
- Test patterns:
instructions/quality-assurance.instructions.md
References
.jest-skip/planner.agent.test.js.jest-skip/reviewer.agent.test.jstests/test-helpers.js(verify mock functions exist)ai/audit-planner-reviewer-agents.md(Section 4)
Definition of Ready (DoR)
- Clear problem statement and expected outcome
- Acceptance criteria defined
- Related issues/dependencies identified
- Required resources/approvals listed
Definition of Done (DoD)
- All acceptance criteria met
- Changes tested and validated
- Documentation updated
- Changes merged and deployed
- Stakeholders notified
Metadata
Metadata
Assignees
Labels
migrate:priority:normalDefault priorityDefault prioritymigrate:type:auditAuditAuditmigrate:type:testTesting/coverageTesting/coveragepriority:normaltype:audittype:test
Type
Fields
Priority
None yet
Activity
linear-code commentedon May 31, 2026
LS-792
LS-1124
feat: audit and improve planner & reviewer agents (#610)
ashleyshaw commentedon May 31, 2026
Related Work: PR #694 includes updates to planner and reviewer agent files as part of project archival status updates. Test coverage improvements from this issue will apply to the updated agent implementations once merged.
Generated by Claude Code
Wave 5 Issue #670 Phase 3: Standardize plugin and .github subdirector…
ashleyshaw commentedon Jun 1, 2026
Completed in this pass after child and dependency chain execution (
#746,#599,#600,#601).What was completed:
scripts/agents/__tests__/planner.agent.test.jsscripts/agents/__tests__/reviewer.agent.test.jsscripts/agents/__tests__/module-system-consistency.test.js.jest-skip/planner.agent.test.js.jest-skip/reviewer.agent.test.jsworkflow_dispatch+workflow_callinput +DRY_RUNenv).Validation evidence:
planner.agent.js: 82.20% statementsreviewer.agent.js: 91.34% statementsvalidate:frontmatter,validate:workflows,validate:agents,validate:skill-manifests,validate:plugins, andnpm testall passing.Parent issue acceptance criteria for this phase are satisfied; closing.
github-actions commentedon Jun 19, 2026
Missing required section(s): Definition of Ready (DoR), Definition of Done (DoD)
The issue will remain open and flagged until the body is corrected.
Please update the issue with one of the official templates:
If this was opened by automation, update the automation to preserve the template sections before creating the issue.
2 remaining items
github-actions commentedon Sep 8, 2026
This issue has labels that are not in the canonical taxonomy:
migrate:priority:normalmigrate:type:testmigrate:type:auditValid Canonical Labels
Please use labels with a prefix from the canonical taxonomy:
type:bug,type:feature,type:task,type:documentation, etc.status:needs-triage,status:in-progress,status:done, etc.priority:critical,priority:high,priority:normal,priority:lowarea:ci,area:docs,area:labels,area:security, etc.meta:needs-changelog,meta:duplicate,meta:blocked, etc.For the complete list, see .github/labels.yml.