Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix: fail open when the attribution reachability count is unresolvable (#3703)
Adam Eivyd1a0b649b07b
diff --git a/server/lib/primaryCheckoutGuard.js b/server/lib/primaryCheckoutGuard.jsindex 6ff789987f..c184f03489 100644--- a/server/lib/primaryCheckoutGuard.js+++ b/server/lib/primaryCheckoutGuard.js@@ -220,6 +220,9 @@ async function isDriftAttributableToAgent(checkoutPath, { runBase, upstream, dri// so detect them by reachability: if excluding the agent's branch drops the count,// some candidate commit is the agent's.const strandedNotOnAgent = await countCommitsAhead(checkoutPath, runBase, driftedHead, { noMerges: true, excludes: [...strandedExcludes, agentSha] });+ // A failed count is null; `null < n` coerces to `0 < n` and would falsely attribute+ // (a false failure), so treat an unresolvable count as "cannot determine" and fail open.+ if (strandedNotOnAgent === null) return false;if (strandedNotOnAgent < strandedTotal) return true;// Patch-equivalent branch-jack: a cherry-picked / rebased copy (different SHA, missed// by the reachability check). `git cherry <upstream> <head> <limit>` marks such a