Skip to content

fix(orch): commit .DONE and task artifacts after task completion - #14

Merged
HenryLach merged 2 commits into
mainfrom
feat/polyrepo-support
Mar 15, 2026
Merged

fix(orch): commit .DONE and task artifacts after task completion#14
HenryLach merged 2 commits into
mainfrom
feat/polyrepo-support

Conversation

@HenryLach

Copy link
Copy Markdown
Owner

Problem

The task-runner creates .DONE via writeFileSync but never commits it to git. When the orchestrator merges the lane branch into the base branch, .DONE and final STATUS.md updates are lost — they only exist as uncommitted filesystem changes in the worktree.

This means completed tasks lose their completion markers after merge, requiring manual recreation of .DONE files to restart a failed batch.

Fix

Add commitTaskArtifacts() in executeLane() — after each task succeeds, stage all uncommitted changes (git add -A) and commit them with the task ID. Best-effort: failures are logged but don't fail the task.

Testing

  • 5/5 passing test suites (139 assertions), 4 pre-existing failures unchanged

The task-runner creates .DONE via writeFileSync but never commits it
to git. When the orchestrator merges the lane branch, .DONE and final
STATUS.md updates are lost because they only exist as uncommitted
filesystem changes in the worktree.

Add commitTaskArtifacts() which runs after each successful task in
executeLane(). It stages all uncommitted changes (git add -A) and
commits them with the task ID. Best-effort: failures are logged but
don't fail the task since the actual work is already committed.
@HenryLach
HenryLach merged commit 94ff50f into main Mar 15, 2026
1 check passed
@HenryLach
HenryLach deleted the feat/polyrepo-support branch March 15, 2026 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant