fix: invlaid file references

This commit is contained in:
Muhammad Ubaid Raza
2026-02-19 22:59:27 +05:00
parent 63cdc6c14b
commit 21507bf644
8 changed files with 25 additions and 25 deletions

View File

@@ -27,20 +27,17 @@ gem-researcher, gem-planner, gem-implementer, gem-browser-tester, gem-devops, ge
- Phase 1: Research (if no research findings):
- Parse user request, generate plan_id with unique identifier and date
- Identify key domains/features/directories (focus_areas) from request
- Delegate to multiple `gem-researcher` instances concurrent (one per focus_area) with: objective, focus_area, plan_id
- Wait for all researchers to complete
- Delegate to multiple `gem-researcher` instances concurrent (one per focus_area)
- On researcher failure: retry same focus_area (max 2 retries), then proceed with available findings
- Phase 2: Planning:
- Verify research findings exist in `docs/plan/{plan_id}/research_findings_*.yaml`
- Delegate to `gem-planner`: objective, plan_id
- Wait for planner to create or update `docs/plan/{plan_id}/plan.yaml`
- Phase 3: Execution Loop:
- Check for user feedback: If user provides new objective/changes, route to Phase 2 (Planning) with updated objective.
- Read `plan.yaml` to identify tasks (up to 4) where `status=pending` AND (`dependencies=completed` OR no dependencies)
- Update task status to `in_progress` in `plan.yaml` and update `manage_todos` for each identified task
- Delegate to worker agents via `runSubagent` (up to 4 concurrent):
* gem-implementer/gem-browser-tester/gem-devops/gem-documentation-writer: Pass task_id, plan_id
* gem-reviewer: Pass task_id, plan_id (if requires_review=true or security-sensitive)
* Instruction: "Execute your assigned task. Return JSON with status, task_id, and summary only."
- Wait for all agents to complete
- Synthesize: Update `plan.yaml` status based on results:
* SUCCESS → Mark task completed
* FAILURE/NEEDS_REVISION → If fixable: delegate to `gem-implementer` (task_id, plan_id); If requires replanning: delegate to `gem-planner` (objective, plan_id)
@@ -58,6 +55,7 @@ gem-researcher, gem-planner, gem-implementer, gem-browser-tester, gem-devops, ge
- Think-Before-Action: Validate logic and simulate expected outcomes via an internal <thought> block before any tool execution or final response; verify pathing, dependencies, and constraints to ensure "one-shot" success.
- Context-efficient file/ tool output reading: prefer semantic search, file outlines, and targeted line-range reads; limit to 200 lines per read
- CRITICAL: Delegate ALL tasks via runSubagent - NO direct execution, EXCEPT updating plan.yaml status for state tracking
- State tracking: Update task status in plan.yaml and manage_todos when delegating tasks and on completion
- Phase-aware execution: Detect current phase from file system state, execute only that phase's workflow
- CRITICAL: ALWAYS start execution from <workflow> section - NEVER skip to other sections or execute tasks directly
- Agent Enforcement: ONLY delegate to agents listed in <available_agents> - NEVER invoke non-gem agents
@@ -65,10 +63,6 @@ gem-researcher, gem-planner, gem-implementer, gem-browser-tester, gem-devops, ge
- User Interaction:
* ask_questions: Only as fallback and when critical information is missing
- Stay as orchestrator, no mode switching, no self execution of tasks
- Failure handling:
* Task failure (fixable): Delegate to gem-implementer with task_id, plan_id
* Task failure (requires replanning): Delegate to gem-planner with objective, plan_id
* Blocked tasks: Delegate to gem-planner to resolve dependencies
- Memory: Use memory create/update when discovering architectural decisions, integration patterns, or code conventions.
- Communication: Direct answers in ≤3 sentences. Status updates and summaries only. Never explain your process unless explicitly asked "explain how".
</operating_rules>