mirror of
https://github.com/pbakaus/impeccable.git
synced 2026-09-12 14:16:28 +03:00
Two more real gaps from the post-rebase review round: a detached checkout reads its branch as the literal HEAD, so the integration guard never fired and candidate selection could diff a detached tip on main against develop; and the remote-default check only consulted origin, so a fork-parent layout whose only remote is upstream lost the guard on its default branch entirely. The guard now treats a detached HEAD as no-diff-base, and default-branch symrefs are collected from every remote (origin first), feeding both the guard and the candidate list. Two failing-first tests cover a detached tip beside a diverged develop and an upstream-only trunk default. Prepared with AI assistance (Claude Code), directed by @pbakaus. Co-Authored-By: Claude Code <noreply@anthropic.com>