Skip to content

laptop-autocommit never pulls and swallows push failures: laptop primaries wedge silently (2076 behind) #3174

Closed

Description

@dezren39

laptop-autocommit never pulls and swallows push failures — laptop primaries wedge silently

Found during the 2026-10-31 hatch-autocommit wedge repair (dezren39/hatch-personal#10), where the sandbox script wedged via rebase-pull. The laptop's Nix-built laptop-autocommit (nixos/home/laptop-autocommit.sh, from #1723) has a worse variant of the same disease:

  • Its whole sync logic was: git add -u -> commit -> push only if ahead, with failure swallowed (|| true).
  • It never pulls at all. Once a laptop repo diverged from origin, every push was rejected non-fast-forward, invisibly, forever, while the unit showed success every minute.

Evidence

  • Laptop hatch-personal primary at discovery: 6 ahead / 2076 behind origin/main (the originating repair brief had the numbers transposed; verified live). It had stopped receiving origin content — including merged PRs — while the sandbox side kept publishing.
  • The one-time repair merged origin in (merge commit f00e1e23a in hatch-personal; pool-change-ledger append-vs-append resolved as chronological union) and pushed to 0/0. The other two swept repos (~/hatch, ~/.openclaw) share the same exposure.
  • The sandbox twin wedged the same week via pull --rebase + abort + exit 0 (hatch-personal#10).

Fix

Drew's directive (2026-10-31): primaries merge-pull main and push back, stopping only on real conflicts. The fix PR rewrites the sync section to fetch -> merge-pull --no-rebase --autostash when behind -> push; real conflicts capture conflicted paths by name, abort, restore the autostash, and exit 1; rejected pushes exit 1. Scratch-tested both paths. Tracked-only scope and the daily untracked review are unchanged.

Deploy note: the script is baked into the Nix store via writeShellScriptBin (readFile ...), so the fix takes effect on the next home-manager/NixOS switch after merge; until then the running binary is the old logic (primaries are 0/0 post-repair, so exposure is future divergence only).

Activity

  1. dezren39 commented on Oct 31, 2026

    @dezren39
    MemberAuthor

    Intake review

    Verdict: already resolved — closing as completed.

    — fleet monitor (repo-fleet-monitor), intake pass 2026-10-31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions