Repository navigation
fix: repair archive scoping, cache recovery, and validation - #266
Conversation
Validate live Git index ownership, type, and permissions before publication. Keep its recovery copy private and prove that a shared-group umask fails before any publication rename, preserving the live generation and the existing recovery safety boundary.
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Merged as ff12a9b after exact-head CI passed every required job: https://github.com/steipete/birdclaw/actions/runs/43572085145. Reproduction: the 30 contributor test files produced 378 failures on v0.17.0 before source changes. The fixed code passed independent P0–P2 review, format/lint/type checks, production/CLI builds, and the affected regressions on AWS Crabbox. The subsequent compatible-dependency verification ran the complete suite: 2,563 passed, 0 failed. Backup validation/recovery also passed all 108 tests, including rejection of unsafe Git index permissions before publication. No paid X requests were made. Contributor credit is preserved in the changelog and squash commit. #257–#265 are closed as specifically superseded by this consolidation; #138 remains open under the existing maintainer backlog decision. |
This consolidates the verified fixes in #257–#265 and removes their overlapping cache-ingestion changes. It restores existing archive contracts: account aliases resolve consistently, cached reads can repair missing local rows without replacing newer data, and invalid inputs fail before sync or writes.
The changes cover:
During verification, backup recovery also failed under a shared-group umask: the live Git index was rejected only after publication had started. Export now rejects unsafe index permissions before publication; its recovery snapshot uses mode 0600. The regression proves that rejection leaves the live generation untouched. The recovery safety checks remain enforced.
Credit: @saariuslystoned, including the original contributions by sm0ky. The changelog also records the separately landed #256 fix from @rymalia. No release, tag, package-version change, or paid X request is part of this work.
Validation: 378 failures reproduced against unchanged v0.17.0 across the 30 contributor test files; format/lint/type checks and the build passed on an AWS Crabbox. All affected regression files passed after the changes; the seven backup-recovery failures from the full run were diagnosed and covered by the additional umask regression. Independent P0–P2 reviews are clean. GitHub CI supplies dual-runtime coverage, installed-package smoke, and Playwright proof at this PR's exact head.