Repository navigation
fix(readme): refuse external hard-link aliases in preview and apply - #380
Conversation
drevendev
left a comment
There was a problem hiding this comment.
Later-run maintainer acceptance review on exact head 6370e2205a8f922314399bd3d9f4197e39eec29c: the change stays within the README preview/apply hard-link alias boundary; both root and standalone skill copies match, and failures are explicit before rendering or applying approved bytes. Current Quality CI 6/6, optional MCP CI 2/2 and standalone copied-skill CI 1/1 are successful. I inspected the actual Ubuntu and Windows unit-test logs: test_approved_hardlinked_readme_or_proposal_is_refused and test_hardlinked_target_or_proposal_refuses_external_document both ran and passed on each platform (not skipped). No unresolved inline threads or material blocker found. Limit: this does not guarantee protection against concurrent path swaps, and local full-suite testing was not repeated. COMMENT is same-account review evidence, not independent approval or a required provider gate.
What changes
README.mdor proposed README before displaying a diff or applying an explicitly approved edit. On POSIX and Windows, a hard link is a regular file withst_nlink > 1; a symlink-only preflight misses that alias.skills/improve-readme/tools/readme_preview.pybundle byte-identical to the root helper, so copied skill installations inherit the same guard.readme_preview.pyandreadme_apply.py, including no secret marker in stdout/stderr, unchanged external synthetic data, and no unapproved target mutation.Verification and limits
test_readme_bundle_and_copied_helpers, Python 3.11/3.14). Fixed on the same branch by synchronizing the bundled helper in commit6370e22; recheck fresh CI on the new head. Windows hard-link availability remains bounded by actual runner results.Related: #70 (README-improvement skill), #74 (evidence boundaries).