Skip to content

Epic: Task Management — Canonical PatternStack Implementation #118

@dugshub

Description

@dugshub

Vision

Build a canonical, best-in-class Task Management system using PatternStack patterns. This will serve as the reference implementation for project management semantics across Stack Bench and any future CRM/PM tool PatternStack builds.

Architecture

Protocols (already exist in agentic-patterns):

  • TaskProtocol — Issues/tasks with two-phase workflow (Planning → Implementation)
  • ProjectProtocol — Project/milestone grouping
  • SprintProtocol — Time-boxed iterations (cycles)
  • CommentProtocol — Threaded discussion with reactions
  • TagProtocol — Labels with semantic groups
  • UserProtocol — Users and teams (read-only)
  • DocumentProtocol — PRDs, specs, notes

Adapters (provider implementations):

  • LinearAdapter — Reference implementation in agentic-patterns (complete)
  • GitHubIssuesAdapter — NEW: Implements all protocols via GitHub REST/GraphQL API
  • MockAdapter — NEW: In-memory implementation for e2e testing

Stack Bench layers:

  • Features: Local DB models (EventPattern) + services for each domain
  • Molecules: SyncEngine (bi-directional), TaskManagementEntity (aggregate), TaskManagementAPI (facade)
  • Organisms: REST API endpoints, webhook handlers

Epics

  1. Foundation — Feature-layer models, services, schemas, migrations (#EP-TM-1)
  2. Provider Adapters — GitHub Issues + Mock adapters (#EP-TM-2)
  3. Business Logic — Sync engine, entity aggregate, API facade (#EP-TM-3)
  4. API & Integration — REST endpoints, webhooks, seeds, e2e tests (#EP-TM-4)

Semantic Model (Agile-informed)

The canonical model captures universal PM concepts:

  • WorkPhase: Planning → Implementation (two-phase workflow, à la Linear)
  • StatusCategory: Todo → In Progress → In Review → Done / Cancelled
  • IssueType: Epic, Story, Task, Bug, Subtask
  • Priority: Urgent, High, Medium, Low, None
  • Relations: Parent/child, blocks/blocked-by, relates-to, duplicates
  • Sprints: Time-boxed iterations with velocity tracking
  • Tags: Semantic groups (issue_type, stack, work_type, state, custom)

Success Criteria

  • All 7 protocols implemented for GitHub Issues
  • Mock adapter passes identical test suite
  • Bi-directional sync between local DB and providers
  • Full REST API with CRUD for all domains
  • pts quality passes (format, lint, typecheck, test)
  • 80%+ test coverage on new code

Metadata

Metadata

Assignees

No one assigned

    Labels

    epicEpic-level tracking issuetask-managementTask Management canonical implementation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions