Skip to content

release: 0.12.3 — One bad byte - #278

Merged
fdaviddpt merged 1 commit into
mainfrom
release/0.12.3
Jul 31, 2026
Merged

fdaviddpt merged 1 commit into
mainfrom
release/0.12.3

Conversation

@fdaviddpt

Copy link
Copy Markdown
Contributor

Patch release. Manifest 0.12.2 → 0.12.3, CHANGELOG Unreleased closed into a 0.12.3 heading. Five entries: #251, #257, #258, #260, #261.

Why this one is worth reading

It inverts an issue we filed ourselves. #258 reported that a corrupt cooldown marker bypasses the throttle — the backup would run too often. Backwards, and the truth is worse: 50-git-backup.sh sets set -u, with the comment "not -e — we never want to fail loudly here", and then evaluates the marker's contents as an arithmetic expression with the variable bare inside $(( )). One letter is an unbound variable reference, so the hook dies on that line — above the lock, the staging and the commit. The marker was only rewritten after a successful commit, so it stayed corrupt: one bad byte stopped the backup permanently.

The file reasons explicitly about not failing loudly and picks the exact option that makes it fatal.

And one finding nobody reported, surfaced while fixing the others: a store whose push target is not named origin backed up nowhere, forever — the push follows the branch's upstream while the validation asked git remote get-url origin. The poisoned-remote guard had the same split, recording and checking a URL that was not the one the push used, so it was sidestep-able via branch.<name>.remote.

Not destructive, but permanent

None of these five deletes anything — the memory stays on the machine in every case. What they share is that the backup stopped while reporting that it had run, and #258's case never resumes on its own. That is the distinction between fails to preserve and destroys: recoverable in principle, indefinitely unrecovered in practice.

Verification

main at 243ddb9; its post-squash run must be verified green before this merges — that gate is checked, not assumed. Release content is manifest + CHANGELOG only, no code paths touched. test_version_manifest.py: 4 passed. Section placement verified by listing issue numbers per heading: [Unreleased] empty, [0.12.3] holds all five, [0.12.2] untouched.

Awaiting your go

Release flow stays on the never-auto list, so this sits open. Merge + tag + gh release is one call each whenever you want it.

Five fixes in the backup path (#251, #257, #258, #260, #261).

The lead item inverts an issue we filed ourselves. We reported that a
corrupt cooldown marker would bypass the throttle; the direction was
backwards and the truth is worse. 50-git-backup.sh sets `set -u` — with
the comment "not -e — we never want to fail loudly here" — and then does
arithmetic on the marker's contents with the variable bare inside $(( )).
A single letter is an unbound variable reference, so the hook dies on
that line, above the lock and the commit. The marker was only rewritten
after a successful commit, so it stayed corrupt: one bad byte stopped
the backup permanently.

Also, found while fixing the others and reported by nobody: a store
whose push target is not named origin backed up nowhere forever, and the
poisoned-remote guard validated a URL that was not the one the push used.

Manifest bumped per #133 — the updater compares manifest versions and
nothing else, so a release that forgets it ships nothing.

Co-Authored-By: Max <noreply>
@fdaviddpt
fdaviddpt merged commit 647130f into main Jul 31, 2026
12 checks passed
@fdaviddpt
fdaviddpt deleted the release/0.12.3 branch July 31, 2026 18:15
Sign up for free to 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