Skip to content

Commit bf0a940

Browse files
committed
feat(roadmap): Update roadmap tiers with detailed context packaging and remote task submission protocols
1 parent 36b5efd commit bf0a940

1 file changed

Lines changed: 37 additions & 19 deletions

File tree

β€Žroadmap.mdβ€Ž

Lines changed: 37 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -305,39 +305,45 @@ Consolidates: Former "Async Task Context Delivery Architecture" + "Multi-Tracker
305305

306306
**Purpose**: Enable remote async agents (async-copilot, async-codex, jules) to receive complete spec contexts and support multi-tracker issue creation for enhanced traceability.
307307

308-
**Tier 1.1 - Artifact Context Packaging**
308+
##### Tier 1.1 - Artifact Context Packaging
309+
309310
- ❌ **Spec Context Bundling**: Create `scripts/bash/package-spec-context.sh` to bundle spec.md + plan.md + research.md + context.md as unified delivery unit
310311
- ❌ **Payload Strategy Selection**: Support embedded payload for specs < 150K tokens; URL references for larger repos
311312
- ❌ **Git Metadata Inclusion**: Include repo URL, branch, commit SHA in package for remote context
312313
- ❌ **PowerShell Equivalent**: Implement `scripts/powershell/Package-SpecContext.ps1` with cross-platform parity
313314

314-
**Tier 1.2 - Remote MCP Task Submission Protocol**
315+
##### Tier 1.2 - Remote MCP Task Submission Protocol
316+
315317
- ❌ **Standard MCP Tools**: Define `submit_async_task`, `check_task_status`, `get_task_result` tools in MCP schema
316318
- ❌ **Agent Type Support**: Implement endpoints for async-copilot, async-codex, jules, and custom agents
317319
- ❌ **Endpoint Registration**: Extend `.mcp.json` configuration to register remote agent endpoints per type
318320
- ❌ **Model Parameter Passthrough**: Allow `--model` parameter to flow through to remote agent execution (e.g., `--model opus` on `/implement` passes to async agent)
319321
- ❌ **Agent Selection Logic**: Route tasks to appropriate agent based on `/tasks` metadata (ASYNC tag + agent type)
320322

321-
**Tier 1.3 - Repository Context Provision**
323+
##### Tier 1.3 - Repository Context Provision
324+
322325
- ❌ **Git Credential Handling**: Support SSH keys, personal tokens, git-credential-helper for remote auth
323326
- ❌ **Branch Context**: Pass feature branch reference so remote agents work with correct isolated specs
324327
- ❌ **Commit History**: Include recent commit history and related issue references in context metadata
325328
- ❌ **Authentication Testing**: Validate credentials before submitting tasks to prevent failures
326329

327-
**Tier 1.4 - Webhook/Callback Integration**
330+
##### Tier 1.4 - Webhook/Callback Integration
331+
328332
- ❌ **Webhook Listener**: Implement listener for async agent completion events (status, output, error info)
329333
- ❌ **Result Storage**: Store completion status + output path in `tasks_meta.json` (keyed by job_id from remote agent)
330334
- ❌ **Integration Checking**: During `/implement` execution, check for completed async tasks and retrieve results
331335
- ❌ **Error Handling**: Detect failures and escalate ASYNC tasks to SYNC with user notification
332336

333-
**Tier 1.5 - Multi-Tracker Issue Creation** *(Consolidated from Multi-Tracker Task-to-Issues)*
337+
##### Tier 1.5 - Multi-Tracker Issue Creation (Consolidated from Multi-Tracker Task-to-Issues)
338+
334339
- ❌ **Extended `/taskstoissues`**: Update command to support GitHub, Jira, Linear, GitLab (not just GitHub)
335340
- ❌ **Dynamic Tracker Detection**: Auto-detect configured issue tracker from `.mcp.json` configuration
336341
- ❌ **Tracker-Specific MCP Tools**: Invoke correct platform-specific MCP tool per tracker type
337342
- ❌ **URL Validation**: Handle different URL formats (GitHub SSH/HTTPS, Jira REST, Linear API, GitLab REST)
338343
- ❌ **Task-to-Issue Linking**: Establish bidirectional links between tasks.md and created issues for traceability
339344

340-
**Tier 1.6 - Context Purity Enforcement** *(From Claude Code article insights)*
345+
##### Tier 1.6 - Context Purity Enforcement (From Claude Code article insights)
346+
341347
- ❌ **Full Artifact Delivery**: Remote agents receive complete spec.md/plan.md/research.md (not summaries)
342348
- ❌ **Compression Thresholds**: Only compress when artifacts exceed 150K tokens (configurable in config.json)
343349
- ❌ **Attention Mechanism Preservation**: Ensure agents can perform pair-wise reasoning across context via full document loading
@@ -351,7 +357,8 @@ Consolidates: Sub-agent spawning logic from dual execution loop + background obs
351357

352358
**Purpose**: Unified framework for spawning, coordinating, and monitoring local sub-agents (Explore, Plan, general-purpose) and remote async agents with context-aware selection.
353359

354-
**Tier 2.1 - Sub-Agent Type Selection Matrix**
360+
##### Tier 2.1 - Sub-Agent Type Selection Matrix
361+
355362
- ❌ **Explore Agent Documentation**: Create decision guidance for read-only codebase search (Glob, Grep, Read, bash read-only only)
356363
- βœ“ When: Finding files, searching keywords, understanding architecture
357364
- βœ— Don't: Use for modification tasks, complex reasoning
@@ -370,38 +377,43 @@ Consolidates: Sub-agent spawning logic from dual execution loop + background obs
370377
- ❌ **Integration with Task Tool**: Embed selection guidance in Task tool schema (system prompt injection)
371378
- ❌ **Model Parameter Support**: Document model override capability for each agent type
372379

373-
**Tier 2.2 - Context Inheritance Rules**
380+
##### Tier 2.2 - Context Inheritance Rules
381+
374382
- ❌ **Context Inheritance Matrix**: Document which agents inherit vs start fresh
375383
- Explore: Fresh slate (enables fast codebase search without prior context bloat)
376384
- Plan/General-purpose: Full context inheritance (enables pair-wise attention relationships)
377385
- ❌ **Main Agent Reading Pattern**: Document guidance that main agent should read relevant files itself (not rely on agent summaries) for better reasoning (from Claude Code article)
378386
- ❌ **Team Directive Integration**: Store preferred context inheritance per organization in `team-ai-directives`
379387
- ❌ **Configuration Option**: Allow per-project override of inheritance rules
380388

381-
**Tier 2.3 - "When NOT to Spawn" Guidelines** *(Reduces context bloat)*
382-
- ❌ **Anti-Pattern Documentation**:
389+
##### Tier 2.3 - "When NOT to Spawn" Guidelines (Reduces context bloat)
390+
391+
- ❌ **Anti-Pattern Documentation**:
383392
- ❌ Don't spawn Explore if file paths already known β†’ use Read tool directly
384393
- ❌ Don't spawn if task < 3 steps β†’ execute directly with tools
385394
- ❌ Don't spawn for simple CRUD β†’ handle inline
386395
- ❌ Don't spawn multiple agents serially β†’ coordinate with parallel spawning
387396
- ❌ **Negative Guidance in Task Tool**: Inject anti-patterns into system prompt to prevent unnecessary spawns
388397
- ❌ **Token Cost Awareness**: Log when direct execution used instead of spawn (context saved)
389398

390-
**Tier 2.4 - Background Agent Observability**
399+
##### Tier 2.4 - Background Agent Observability
400+
391401
- ❌ **Background Task Spawning**: Support `run_in_background: true` in Task tool for long-running processes
392402
- ❌ **Monitoring Hooks**: Log output from background tasks (process execution, test runs, compilations)
393403
- ❌ **Result Retrieval**: Implement `TaskOutput` tool for retrieving background task results
394404
- ❌ **Error Tracking**: Surface background task failures with clear error context
395405
- ❌ **Use Case Documentation**: Guide when background spawning is appropriate (e.g., watching test output)
396406

397-
**Tier 2.5 - Parallel Sub-Agent Coordination** *(Enhances existing [P] markers)*
407+
##### Tier 2.5 - Parallel Sub-Agent Coordination (Enhances existing [P] markers)
408+
398409
- ❌ **[P] Marker Enhancement**: Ensure [P] markers in tasks.md are recognized for parallel spawning
399410
- ❌ **File-Based Sequencing**: Maintain rule that tasks touching same files run sequentially despite [P]
400411
- ❌ **Phase-Based Execution**: Ensure phases (setup β†’ tests β†’ core β†’ integration β†’ polish) complete in order
401412
- ❌ **Parallel Spawn Coordination**: Manage multiple simultaneous sub-agents without context window flooding
402413
- ❌ **Integration Testing**: Verify [P] parallelization works with both Tier 1 remote tasks and local Explore agents
403414

404-
**Tier 2.6 - Sub-Agent Failure Escalation**
415+
##### Tier 2.6 - Sub-Agent Failure Escalation
416+
405417
- ❌ **Async Escalation Logic**: When remote ASYNC sub-agent fails, promote parent task to SYNC with user notification
406418
- ❌ **Model Retry Strategy**: Support escalation with model upgrade (Haiku β†’ Sonnet β†’ Opus) for failed tasks
407419
- ❌ **Rollback Mechanism**: Option to rollback failed agent's changes and retry with different approach
@@ -416,7 +428,8 @@ Consolidates: Command-level model selection + context budgeting + two-model revi
416428

417429
**Purpose**: Systematic approach to model selection per core command, enabling cost optimization while maintaining quality gates.
418430

419-
**Tier 3.1 - Core & Admin Command Model Selection Matrix**
431+
##### Tier 3.1 - Core & Admin Command Model Selection Matrix
432+
420433
- ❌ **Core Workflow Commands**:
421434
- `/specify`: Default Opus β†’ Options: Sonnet (faster but less conversational quality)
422435
- `/clarify`: Default Opus β†’ Options: Sonnet (validation still works well)
@@ -432,21 +445,24 @@ Consolidates: Command-level model selection + context budgeting + two-model revi
432445
- `/checklist`: Haiku (validation is formulaic)
433446
- ❌ **Integration**: Add `--model [opus|sonnet|haiku|gpt-5-codex]` parameter to all commands above
434447

435-
**Tier 3.2 - Model-Aware Context Budgeting** *(Inform users of token costs)*
448+
##### Tier 3.2 - Model-Aware Context Budgeting (Inform users of token costs)
449+
436450
- ❌ **Context Window Limits**: Document effective context windows per model (Opus: ~120K effective of 200K, Sonnet: ~100K of 200K, Haiku: ~80K of 200K)
437451
- ❌ **Token Cost Calculator**: Implement utility to estimate tokens for spec.md + plan.md + tasks.md
438452
- ❌ **Recommendation Engine**: Show "context utilization: 58% - OK" or "context: 72% - consider compaction" during execution
439453
- ❌ **Model Downgrade Suggestions**: Auto-suggest Haiku when context > 70% for non-critical tasks
440454
- ❌ **Transparency in Prompts**: Log context size in delegation prompts (e.g., "using Sonnet to preserve 22K tokens")
441455

442-
**Tier 3.3 - Two-Model Review Strategy** *(From Claude Code article)*
456+
##### Tier 3.3 - Two-Model Review Strategy (From Claude Code article)
457+
443458
- ❌ **Review Model Configuration**: Store preferred review model in config.json (configurable: gpt-5-codex, Sonnet, etc.)
444459
- ❌ **Quality Gate Integration**: Invoke review model for ASYNC task validation (bug-finding, style checking)
445460
- ❌ **SYNC vs ASYNC Review**: Apply two-model review only to critical SYNC tasks (cost optimization)
446461
- ❌ **User Override**: Support `--review-model` parameter to force specific reviewer (cross-vendor validation)
447462
- ❌ **Review Quality Thresholds**: Document when review model is invoked (P1/P2 risk level, SYNC tasks, security code)
448463

449-
**Tier 3.4 - Cost Optimization Guidance**
464+
##### Tier 3.4 - Cost Optimization Guidance
465+
450466
- ❌ **Usage Documentation**: Create guide on when to use each tier:
451467
- Haiku: Trace generation, exploration, formatting, config updates
452468
- Sonnet: Execution, general-purpose tasks, balanced cost/quality
@@ -455,12 +471,14 @@ Consolidates: Command-level model selection + context budgeting + two-model revi
455471
- ❌ **Budget Tracking**: Optional logging of model usage per project/team
456472
- ❌ **Org Policy Templates**: Provide templates for enforcing model choices per team
457473

458-
**Tier 3.5 - Model Preference in Team Directives**
474+
##### Tier 3.5 - Model Preference in Team Directives
475+
459476
- ❌ **Directive Format**: Define structure in `team-ai-directives` for model preferences per command
460477
- ❌ **Fallback Hierarchy**: Implement precedence: user CLI override β†’ project config β†’ team directive β†’ hardcoded default
461478
- ❌ **Org-Wide Defaults**: Enable shared model policies across projects via team directives
462479

463-
**Tier 3.6 - Command-Level --model Parameter Implementation**
480+
##### Tier 3.6 - Command-Level --model Parameter Implementation
481+
464482
- ❌ **CLI Parameter Addition**: Add `--model` to all command templates (specify.md, clarify.md, plan.md, implement.md, analyze.md, architect.md, constitution.md, trace.md, levelup.md)
465483
- ❌ **Config Validation**: Validate model choice against available models
466484
- ❌ **Preference Persistence**: Store user's recent model choice per command for convenience

0 commit comments

Comments
Β (0)