Skip to content

Phase 2: Planner Agent GitHub API Integration #632

Closed as not planned
Closed as not planned

Description

@ashleyshaw

Summary\n\nThe planner agent is now enabled and generates execution plans for issues and PRs. Phase 2 is to integrate GitHub API calls to:\n1. Post generated plans as comments on issues/PRs\n2. Assign issues to projects based on labels/metadata\n3. Add linking and metadata to generated plan comments\n\n## Problem\n\n- Planner agent generates plans but doesn't post them\n- Issues/PRs not automatically assigned to projects\n- No GitHub API integration to interact with repository\n\n## Solution\n\nImplement GitHub API integration in scripts/agents/planner.agent.js to:\n1. Authenticate with GITHUB_TOKEN\n2. Post generated plan as comment on issue/PR via GitHub API\n3. Add issue to appropriate project based on labels\n4. Add plan comment as hidden metadata for future reference\n5. Handle rate limiting and error cases gracefully\n\n## Implementation Details\n\n- Effort: 3–4 hours\n- Complexity: High\n- Risk: Medium (depends on GitHub API stability)\n- Dependencies: GitHub API (Octokit), label-to-project mapping\n\n## Acceptance Criteria\n\n- [ ] GitHub API integration working with GITHUB_TOKEN\n- [ ] Generated plans posted as comments on issues/PRs\n- [ ] Issues automatically assigned to projects (80%+ accuracy)\n- [ ] Error handling for API rate limits and failures\n- [ ] Fallback queue for ambiguous cases\n- [ ] All tests pass; no regressions\n- [ ] Workflow runs successfully on issue/PR creation\n\n## Related Issues\n\n- #620 (Phase 1: Planner agent implementation - COMPLETED)\n- #618-#623 (Workflow standards audit - COMPLETED)\n\n## Reference\n\nPlanner agent: scripts/agents/planner.agent.js \nPlanner workflow: .github/workflows/planner.yml \nAudit report: .github/reports/audits/workflow-standards-audit-2026-05-31.md",

["area:workflows", "type:enhancement", "priority:high", "meta:needs-changelog"]

Activity

  1. linear-code commented on May 31, 2026

    @linear-code
  2. ashleyshaw commented on May 31, 2026

    @ashleyshaw
    MemberAuthor

    Progress Update: PR #694 (docs: Update execution plan with current project archival status) has merged execution planning updates and includes Planner Agent infrastructure changes. Phase 2 GitHub API integration work for posting generated plans as comments is ready to begin. All merge conflicts resolved and changes are queued for merge to develop.


    Generated by Claude Code

  3. added this to the milestone on Jun 1, 2026
  4. ashleyshaw commented on Jun 1, 2026

    @ashleyshaw
    MemberAuthor

    Release-scope evaluation completed for v0.5.0 readiness.

    Rationale for closing as not planned in this milestone:

    • Planner GitHub API integration is a capability expansion, not a hard requirement for release gating.
    • v0.5.0 blocker and launch chains are complete without this integration.

    Recommendation: re-open in a future milestone focused on planner automation maturity.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions