Agent Orchestration & Task Management Strategy
Should we implement task management/orchestration now or later?
Date: January 8, 2026
Current State Analysis
Juniro's Current Task Management
| Tool | Purpose | Status |
|---|---|---|
| Linear | Primary task management | ✅ Active (JUN-XXX references) |
| product-status.md | High-level status tracking | ✅ Active |
| product-roadmap-matrix.md | Feature matrix | ✅ Active |
| work-log/ (juniro-infra) | Basic work tracking | ✅ Active (minimal) |
| @roadmap-updater | Updates roadmap docs | ✅ Active |
Finding: Juniro uses Linear as primary task management, with docs for status tracking.
Empeers' Task Management System
| Component | Purpose |
|---|---|
| ORCHESTRATION.md | Collaboration protocol |
| docs/tasks/BACKLOG.md | Prioritized task queue |
| docs/tasks/ACTIVE.md | Active tasks with status |
| docs/tasks/active/TASK-XXX.md | Detailed task specs |
| Product Lead Agent | Orchestrator role |
| Task states | backlog → assigned → in_progress → review → verified → done |
Finding: Empeers uses markdown-based task management with agent orchestration.
Key Differences
| Aspect | Juniro | Empeers |
|---|---|---|
| Task Tool | Linear (external) | Markdown files (internal) |
| Orchestration | Manual | Automated (Product Lead Agent) |
| Task States | Linear states | Custom states (backlog → done) |
| Agent Handoffs | Ad-hoc | Formal protocol |
| Verification | Manual | Automated (Verifier agent) |
| Roadmap Sync | Manual | Automated (@roadmap-updater) |
Recommendation: Phase 2 (After Agent Consolidation)
Why Phase 2?
Arguments FOR doing it now:
- ✅ Part of complete agent system
- ✅ Creates full orchestration capability
- ✅ Better agent collaboration
- ✅ Reduces manual coordination
Arguments FOR doing it later:
- ✅ Agent consolidation is already a big task
- ✅ Juniro uses Linear (different from empeers)
- ✅ Need to adapt pattern to Linear integration
- ✅ Can validate agent consolidation first
- ✅ Less overwhelming to do incrementally
Decision: ✅ Do it in Phase 2 - After agent consolidation is complete
Rationale
- Agent consolidation is foundational - Need stable agent definitions before orchestration
- Different tooling - Juniro uses Linear, needs adaptation
- Incremental approach - Better to validate one change at a time
- Clear separation - Consolidation vs. Orchestration are distinct concerns
Proposed Approach: Hybrid Model
Adapt Empeers Pattern to Juniro's Context
Key Insight: Don't replace Linear, enhance it with agent orchestration.
Structure
juniro-docs/docs/
├── agents/ (Phase 1 - Agent consolidation)
│ ├── agent-overview.md
│ ├── shared-agents/
│ └── domain-agents/
│
└── tasks/ (Phase 2 - Task management)
├── ORCHESTRATION.md (collaboration protocol)
├── BACKLOG.md (prioritized queue)
├── ACTIVE.md (active tasks)
├── active/
│ └── TASK-XXX.md (detailed specs)
└── completed/
└── YYYY-MM/
Integration with Linear
Hybrid Approach:
- Linear remains source of truth for task tracking
- Agent tasks (docs/tasks/) are agent-specific work items
- Linear issues can reference agent tasks
- Agents can create/update Linear issues via API
Workflow:
Linear Issue (JUN-XXX)
↓
Agent Task (TASK-XXX) - Detailed spec for agent
↓
Agent executes
↓
Updates Linear issue status
↓
Updates roadmap docs
Phase 2 Implementation Plan
Step 1: Document Orchestration Protocol
Create: juniro-docs/docs/agents/ORCHESTRATION.md
Content:
- Agent roles (Orchestrator/Worker/Verifier)
- Task lifecycle (backlog → done)
- Handoff protocols
- Verification requirements
- Adapted for Linear integration
Step 2: Create Task Management Structure
Create:
docs/tasks/BACKLOG.md- Prioritized agent tasksdocs/tasks/ACTIVE.md- Active agent workdocs/tasks/active/_TASK_TEMPLATE.md- Task spec templatedocs/tasks/active/TASK-XXX.md- Individual task specs
Step 3: Create Orchestrator Agent
Create: domain-agents/orchestrator.md (or product-lead.md)
Responsibilities:
- Manage agent task queue
- Assign tasks to worker agents
- Track task status
- Coordinate with Linear (create/update issues)
- Update roadmap docs
Step 4: Enhance Existing Agents
Update agents to support orchestration:
- Add task acceptance/reporting protocols
- Add Linear integration (optional)
- Add status update capabilities
Step 5: Linear Integration
Options:
- Manual sync - Agents reference Linear issues, update manually
- Linear API - Agents create/update Linear issues automatically
- Hybrid - Manual for now, API later
Recommendation: Start with manual sync, add API later if needed
What to Document Now (Phase 1)
Even though we're doing orchestration in Phase 2, we should document the plan now:
Add to Agent Consolidation Plan
- ORCHESTRATION.md - Mark as "Phase 2"
- Task management structure - Document in plan
- Orchestrator agent - Add to agent list (Phase 2)
- Linear integration strategy - Document approach
Benefits of Documenting Now
- ✅ Captures the pattern while fresh
- ✅ Shows complete vision
- ✅ Makes Phase 2 easier (plan already exists)
- ✅ Can reference in Phase 1 work
Recommended Structure
Phase 1: Agent Consolidation (Current)
juniro-docs/docs/agents/
├── agent-overview.md
├── _TEMPLATE.md
├── shared-agents/
└── domain-agents/
Focus: Consolidate agent definitions, reduce duplication
Phase 2: Task Management & Orchestration (Next)
juniro-docs/docs/
├── agents/ (from Phase 1)
│ ├── ORCHESTRATION.md ← NEW (Phase 2)
│ └── domain-agents/
│ └── orchestrator.md ← NEW (Phase 2)
│
└── tasks/ ← NEW (Phase 2)
├── BACKLOG.md
├── ACTIVE.md
├── active/
└── completed/
Focus: Add task management, orchestration protocol, Linear integration
Decision Matrix
| Approach | Pros | Cons | Recommendation |
|---|---|---|---|
| Do Now (Phase 1) | Complete system, better coordination | Overwhelming, blocks consolidation | ❌ Not recommended |
| Do Later (Phase 2) | Incremental, validates consolidation first | Delays orchestration benefits | ✅ Recommended |
| Document Now, Implement Later | Best of both worlds | None | ✅ Best approach |
Action Items
Phase 1 (Now)
- Complete agent consolidation audit
- Create agent consolidation plan
- Document orchestration strategy (this doc)
- Add ORCHESTRATION.md to plan (marked Phase 2)
- Add orchestrator agent to agent list (Phase 2)
Phase 2 (After Consolidation)
- Create
docs/tasks/structure - Create
ORCHESTRATION.mdwith protocol - Create
orchestrator.mdagent definition - Create task templates
- Set up Linear integration (manual or API)
- Test orchestration workflow
Summary
Recommendation: ✅ Document now, implement in Phase 2
Rationale:
- Agent consolidation is already a significant task
- Need stable agent definitions before orchestration
- Juniro uses Linear (needs adaptation)
- Incremental approach reduces risk
- Documenting now captures the pattern
Next Steps:
- Add orchestration docs to agent consolidation plan (marked Phase 2)
- Complete Phase 1 (agent consolidation)
- Then proceed with Phase 2 (task management & orchestration)
This approach gives us:
- ✅ Complete vision (documented now)
- ✅ Manageable scope (one phase at a time)
- ✅ Better foundation (consolidated agents first)
- ✅ Clear path forward (Phase 2 plan ready)