Repository navigation
Description
Chat Closure Agent Implementation — Epic
Overview
Build a reusable Tier 1 portable agent that automates chat session closure workflows across control-plane and WordPress repositories.
Problem
Long-running Claude Code sessions hit context limits, requiring manual closure:
- Gather scattered context (projects, issues, PRs, branches, memory)
- Create continuation prompts from scratch
- Update memory and clean up worktrees
- Archive chats manually
Solution
Chat Closure Agent automates all steps:
- ✅ Analyze git state (branch, commits, issues, projects)
- ✅ Extract metadata (repo type, scope, decisions)
- ✅ Update memory (10-family YAML structure)
- ✅ Generate handoff prompt (Markdown)
- ✅ Clean worktree (with user confirmation)
Scope
- Repo types: Control-plane, WordPress plugins, WordPress themes
- Agent framework: Tier 1 portable (multi-file, reusable)
- Test target: ≥85% coverage
- Timeline: 4 weeks (40-50 hours)
Design Decisions (Finalized)
- Memory depth: Moderate (summary + links)
- Worktree delete: Ask before deleting
- Memory linking: One-way (memory→issue)
- WordPress support: Both plugins & themes equally
- Chat archival: Manual step (future API ready)
Implementation Phases
| Phase | Focus | Duration | Status |
|---|---|---|---|
| 1 | Core Analysis (git metadata, 90%+ tests) | Week 1 | ⏳ To Do |
| 2 | Memory & Handoff (10-family YAML, skills) | Week 2 | ⏳ To Do |
| 3 | Cleanup & Agent (orchestration, integration tests) | Week 3 | ⏳ To Do |
| 4 | Documentation & Coverage (Mermaid, guides, audit) | Week 4 | ⏳ To Do |
Success Criteria
✅ 85%+ test coverage (Jest)
✅ All 3 repo types working
✅ Full workflow end-to-end
✅ Comprehensive docs with Mermaid diagrams
✅ Real-world example workflow
Related Resources
- Project Documentation
- PR #1801 — Planning & Project Setup
Status: Epic in planning → Phase 1 implementation
Effort: 40-50 hours
Definition of Ready (DoR)
- Epic vision and scope clearly defined
- Success criteria and measurable outcomes documented
- High-level tasks/stories identified
- Dependencies and risks mapped
- Timeline and resource estimates provided
- Stakeholder alignment confirmed
Epic Owner / Sponsor
Sponsor/Owner: [Who is driving this epic]
Success Owner: [Who validates completion]
Success Criteria
- All Phase milestones achieved
- Stakeholder sign-off obtained
- Team capacity and velocity met targets
Definition of Done (DoD)
- All child issues/stories completed
- Epic acceptance criteria met
- Epic documentation and summary updated
- Release notes and announcement prepared
- Post-launch monitoring and support plan in place
- Retrospective completed (if applicable)
Spec 020 programme alignment — Tier 8
Reconcile this implementation epic with GIT-79 before creating children or selecting a canonical parent. Preserve both records’ history; overlapping descriptions alone do not establish a safe duplicate marking.
Separate read-only session analysis and handoff drafting from memory writes and worktree cleanup. Preview exact changes and obtain approval before mutation or deletion; preserve uncommitted work and unrelated worktrees. Keep archival manual unless an available, authorised capability is verified.
Historical durations, coverage targets and completion symbols are planning claims, not current delivery evidence.
Programme Tier 8 describes delivery sequencing, not native priority or historical portability classifications. Each delivery slice must record its exact branch and base, PR title, live template, verified labels, assignee, changed-file scope, tests and closure criteria before implementation. Reuse matching existing work. Stack PRs only for a demonstrated dependency, with merge and retargeting order documented.
Metadata
Metadata
Assignees
Type
Fields
Priority
Activity
linear-code commentedon Aug 12, 2026
LS-2515
github-actions commentedon Aug 12, 2026
✅ Template check passed after update. Thanks for fixing the issue body.
github-actions commentedon Aug 12, 2026
⏱️ Aging and SLA annotation
Maintained by project-meta-sync workflow.
ashleyshaw commentedon Aug 12, 2026
✅ IMPLEMENTATION COMPLETE
This issue has been completed by PR #1922: feat: Chat Closure Agent v1.0.0 — Complete Implementation (Phases 1-4)
Deliverables
Results
See PR #1922 for complete implementation details.
4 remaining items
eleshar commentedon Sep 23, 2026
Closing as stale: no linked open PR and no activity since 2026-08-12, and it belongs to a plan that predates the current agents and skills consolidation (#3464). Reopen if it is still needed.
eleshar commentedon Sep 23, 2026
Reopening: this is planned work that has not started, not work that is superseded. It should not have been closed in the #3464 sweep. Sorry for the noise.
[-]Chat Closure Agent Implementation[/-][+]epic: chat-closure-agent - Deliver portable session closure[/+]