Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This hotfix removes the hard-link transaction primitive that prevented pi-telegram 0.22.0 from starting on Android/Termux filesystems.
It replaces that primitive with atomically published non-empty guard directories, generation-bound owner metadata, exact stale recovery, and fail-soft diagnostics without weakening exactly-one cross-process ownership.
Why
Issue #131 reports
EACCESfromlinkSyncimmediately after upgrading from 0.21.1 to 0.22.0. A direct file-rename fallback would overwrite an existing guard and permit split-brain transaction ownership, so this release uses generation-specific directory guards and exact recovery fencing instead.User-visible behavior
Changed areas
lib/locks.ts: staged directory publication, generation-specific owner paths, recoverable claimant markers, exact rollback/release, and legacy 0.22.0 file-guard migration.lib/logs.ts: synchronous and queued diagnostics failure containment.Risk Notes
linkSyncand cross-process correctness on the available platform.Validation
npm run validate— 1,243 passed, 1 platform-only skip; typecheck passed; audit found 0 vulnerabilities; package dry-run produced@llblab/pi-telegram@0.22.1.git diff --check— passed.