Repository navigation
Refresh script: the references inventory refuses symlinks; reclaim deletes only the writer's files; safer restore and lock; malformed boards refused - #672
Merged
Conversation
…counts every file name
…through a staged copy and keeps before images on failure, compares the whole stale-lock record, removes an interrupted run's before images, import leaves the snapshot alone, refuses malformed board rows and a repeated key in a fetched board, states the planted total once
There was a problem hiding this comment.
Bompus AI Review (Gemini 4 Neon): 0 finding(s).
Review 2: findings below high are posted only within 3 lines of a change since 3c41943.
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.
Follow-up to #671, from an independent review of its final head and the nine points of a second review of the same files. Each point was reproduced with a test that fails on the previous code before the fix.
Deletion and leak first:
.refresh*name, so a private input there passed--checkand would be copied to hosts. It now refuses any symlink, counts every file name at every depth, and leaves out only the script's own lock and work files at the top level.new-0/notes.txtlost the notes. It now lstat-checks every entry (marker and plainnew-<n>files only), unlinks them one by one and removes the folder with a plainrmdir; a folder holding anything else is left alone, and anew-<n>link is never followed.Reliability:
--from-filerewrote a valid snapshot that was not in canonical form. An import now leaves the snapshot's bytes alone; a plain run or--fetchwrites it.Board data:
{plantedTotal}, so the task text and the metric always name the total the snapshot holds. The generated catalog is unchanged for today's 105.bun run checkandbun test skills/hr-code-review(399 tests) pass, as doestest/doc-rules.test.mjs. A fetch of the live board in a scratch copy builds and passes--check.