fix(archive): report retirement cleanup failures accurately - #1792
Draft
Marzx13 wants to merge 2 commits into
Draft
fix(archive): report retirement cleanup failures accurately#1792Marzx13 wants to merge 2 commits into
Marzx13 wants to merge 2 commits into
Conversation
Contributor
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
When a retirement backup disappears or changes after a change is archived, the cleanup error can say that every backup was retained. JSON also reduces this recovery state to the generic
archive_error, making it difficult for callers to distinguish it from other failures.This PR reports
archive_retirement_cleanup_failedand corrects the message to state that archiving occurred but retirement cleanup did not complete. Recovery guidance covers all reported paths, including a staged source left by fallback-copy cleanup, without promising that those paths still exist or contain their original bytes. The agent contract documents the diagnostic and explains thatarchive: nulldoes not guarantee unchanged files.Exit 1, the failure envelope, underlying error details, and transaction behavior are preserved. Consumers matching only
archive_errorfor this failure should account for the more precise code. No automatic cleanup or retry is added. This is separate from the archive-claim lock release addressed by #1769.Validation
76a0e75passes the full test suite on Linux, macOS, and Windows, plus build, lint, type checks, and release tracking. Security checks also pass.EALLOWGIT(allow-git: none). That packaging test and npm restriction were not changed; the hosted Windows suite now passes.Generated and reviewed with Codex using
gpt-6-astrawithxhighreasoning.