Skip to content

Fix orchestrator ship order: record completion before open-pr - #82

Merged
suprie merged 1 commit into
mainfrom
claude/workflow-order-issue-fb8413
Aug 6, 2026
Merged

Fix orchestrator ship order: record completion before open-pr#82
suprie merged 1 commit into
mainfrom
claude/workflow-order-issue-fb8413

Conversation

@suprie

Copy link
Copy Markdown
Owner

Summary

  • Orchestrator's Phase 7 called loopdeck:open-pr (commit + push) before the .loopdeck/ completion writes (loops.md move-to-History, PRD checkbox, decisions.md), leaving those edits stranded and uncommitted after push.
  • Reordered so completion is recorded first, then open-pr is invoked — its commit step sweeps up whatever is uncommitted at that moment, so the memory writes ride the same shipped commit as the code.

What changed

  • .agents/skills/loopdeck-orchestrator/SKILL.md — Phase 7 verdict table, the "Open PR" section (renamed "Record completion, then open PR"), the Memory Convention paragraph, and a new Important Rules bullet, all reordered/clarified to record-before-ship.
  • templates/skills/loopdeck-orchestrator/SKILL.md — mirrored identically (this is the distributed copy for other projects; it was byte-identical to the source before this change).

Why

User reported the working directory ends up dirty after a shipped loop: PRD/loops.md/execution.yaml completion marks were happening after commit+push, with no further commit to carry them.

Test plan

  • Manual: run an orchestrated loop to PASS verdict and confirm .loopdeck/loops.md/decisions.md/PRD checkbox updates land in the same commit open-pr pushes, leaving a clean tree after ship.

Phase 7 of the orchestrator skill called open-pr (commit + push) before
updating loops.md/PRD checkbox/decisions.md. open-pr only commits work
that's uncommitted when it runs, so those completion writes landed after
the push with no commit left to carry them — a dirty working tree post-ship.
Reorder: record completion in .loopdeck/ first, then invoke open-pr so its
commit step sweeps the memory writes in along with the code.
@suprie
suprie merged commit 452bc2b into mainAug 6, 2026
2 checks passed
Sign up for freeto 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

@suprie