Coordination and task closure

Current workflow entry · Full historical coordination protocol. Its ownership, three-lane limits, public record, task-thread milestones, feedback, and evidence gates remain in force. Eric's PR-at-creation task-link decision supersedes older Status-only task-body language: append the PR link at PR creation and reply to the status thread; otherwise preserve the task body.

Approval-gated merge-queue lifecycle (Eric, 2026-11-26)

Queue live (Eric, 2026-11-26; ordering updated 2026-12-01): PR #1449 is merged and the conditional queue is active. Never merge directly or queue another author's PR. The newer review policy says queue Ion’s PR when ready, after exact-head green checks, conflict-free review-first description and matching task, even without prior approval. Post exactly /merge-when-green once as its own comment. The bot waits for maintainer approval of the exact current head before squash merge. A push invalidates old approval: explain what changed and request renewed approval. /merge-cancel withdraws a PR no longer ready. Independently verify actual merged state and full merge SHA; green checks or bot waiting are never a merge receipt.

After observing actual merged state and merge commit, reply merged with commit in the originating task's existing status thread. Mark task Done and read back metadata only when the entire task is actually complete; for a staged PR, keep Status In Progress and spell out remaining steps, owners and verification dependencies (including dev image and Sentry receipt when relevant). Stop the lane's servers and remove its worktree only after merge and after checking no other owner is using it; retain a follow-up owner/record if the task remains open. Record commit and actual task state in the public work record. A PR approval, queue comment, green CI, bot waiting reply or a partial PR merge is not whole-task completion. Keep lane ownership until cleanup; do not duplicate another lane's work.

Independent PR-state reconciliation (Eric, 2026-11-26; direct merge of PR #1448): Whenever checking a product lane, and at least once on each admission tick while any tracked PRs remain open, query the actual state of each tracked open PR, even if Ion did not queue it and even if a normal unchanged-dependency guard would skip deeper work. Deduplicate against the task's existing status thread and metadata. If merged by anyone, verify the full merge SHA, reply merged with that SHA in the originating task's status thread, mark and read back Done if the whole task is complete, update its public work record, stop only its lane processes and remove only its clean, unowned worktree; check preview ownership and remove the PR's preview if present. If closed without merge, do not mark Done or say merged: record closure and reason, keep the task's actual state truthful, stop only owned services and dispose of the worktree only after checking ownership and preserving unique evidence. A state check is required even when queue notifications or merge webhooks do not arrive; never infer merge from a queue command or from green CI.

Do you like what you are reading? Subscribe to receive updates.

Unsubscribe anytime

Comments