Skip to content

chore: sync core lib and CLAUDE.md from agent-core#22

Merged
avifenesh merged 1 commit into
mainfrom
chore/sync-core-debate-20260426-152015
Apr 26, 2026
Merged

chore: sync core lib and CLAUDE.md from agent-core#22
avifenesh merged 1 commit into
mainfrom
chore/sync-core-debate-20260426-152015

Conversation

@avifenesh
Copy link
Copy Markdown
Contributor

@avifenesh avifenesh commented Apr 26, 2026

Automated sync of lib/ and CLAUDE.md from agent-core.


Note

Medium Risk
Changes file read/write behavior in fixer.js to reject symlink targets (including .backup files), which could alter or block existing workflows and affects filesystem-side effects.

Overview
Hardens lib/enhance/fixer.js by introducing assertNotSymlink() and using it to refuse following symlinks for any file the fixer reads/writes, including .backup siblings.

applyFixes() now checks the target path before reading and again immediately before writing (narrowing TOCTOU), validates the backup path before creating backups, and restoreFromBackup() similarly refuses symlinks for both backup and restore targets; assertNotSymlink is exported.

Reviewed by Cursor Bugbot for commit 76c2bb6. Configure here.

@gemini-code-assist
Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@avifenesh avifenesh merged commit 0ad5c75 into main Apr 26, 2026
5 checks passed
@avifenesh avifenesh deleted the chore/sync-core-debate-20260426-152015 branch April 26, 2026 15:24
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