Synchronize pending completions to spec-task-manager task file
Synchronizes completed tasks from execution state to the spec-task-manager task file.
/plugin marketplace add sequenzia/claude-plugins/plugin install ralph-task-executor@sequenzia-claude-plugins--all | --task-id TASK-XXXinheritSynchronize completed tasks from execution state to the spec-task-manager task file. Used when running in manual sync mode (without --auto-sync).
--all: Sync all pending completions (default behavior)--task-id TASK-XXX: Sync only a specific taskRead .claude/ralph-task-executor.state.json:
pending_completions arrayIf no pending completions and no specific task:
Report: "No pending completions to sync."
Report: "All completed tasks are already synced to task file."
Read the task file from execution_state.task_file.
For each task to sync:
For task_id in tasks_to_sync:
task = find_task(task_id, task_file)
# Update task status
task.status = "complete"
# Add completion note with timestamp
completion_note = "[COMPLETED via ralph-task-executor {timestamp}]"
task.notes = (task.notes or "") + "\n" + completion_note
# Update blocked_by arrays for dependent tasks
for other_task in task_file.tasks:
if task_id in other_task.blocked_by:
other_task.blocked_by.remove(task_id)
# Track synced
synced_tasks.append(task_id)
{
"metadata": {
"last_updated": "<current-ISO-timestamp>",
"completion_percentage": "<recalculated>",
"version": "<minor-bump>"
}
}
Remove synced tasks from pending_completions:
execution_state.pending_completions =
execution_state.pending_completions.filter(t => !synced_tasks.includes(t))
execution_state.last_activity = now()
Save both files.
## Sync Complete
**Synced:** {count} task(s) to {task_file}
### Synced Tasks
| Task ID | Title | Status |
|---------|-------|--------|
| {TASK-ID} | {title} | ✓ Synced |
| {TASK-ID} | {title} | ✓ Synced |
### Updated Metrics
- **Completion:** {percentage}% ({completed}/{total})
- **Remaining:** {remaining} tasks
### Remaining Pending
{If more pending:}
{N} task(s) still pending sync:
- {TASK-ID}
- {TASK-ID}
{If none pending:}
All completions synced.
### Unblocked Tasks
The following tasks are now unblocked and ready to execute:
- {TASK-ID}: {title}
- {TASK-ID}: {title}
# Sync all pending completions
/ralph-task-executor:sync
# Sync a specific task
/ralph-task-executor:sync --task-id TASK-007
# Explicit all flag
/ralph-task-executor:sync --all