fix: address issue #1266 follow-ups from git-native transport review#1277
Merged
dyoshikawa merged 15 commits intodyoshikawa:mainfrom Mar 9, 2026
Merged
fix: address issue #1266 follow-ups from git-native transport review#1277dyoshikawa merged 15 commits intodyoshikawa:mainfrom
dyoshikawa merged 15 commits intodyoshikawa:mainfrom
Conversation
…y-one in walk limits
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Co-authored-by: dyoshikawa-claw <dyoshikawa-claw@users.noreply.github.com>
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Contributor
PR #1277 Review SummaryOverall Mergeability Verdict: MERGEABLE ✅ Code Review FindingsNo critical or high-severity issues found. All findings are low severity or informational:
Code Review Verdict: APPROVED with minor suggestions Security Review Findings1 medium and 4 low severity issues found (none exploitable):
Positive Security Observations:
Security Review Verdict: APPROVED - medium issue is defense-in-depth, not exploitable ConclusionPR #1277 is ready to merge. All issues are low severity or defense-in-depth recommendations. The refactoring is well-executed, security hardening is thorough, and test coverage is comprehensive. |
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.
Summary
Addresses all 11 items from #1266 (follow-up improvements from the git-native transport PR #1249), plus fixes from code and security review.
Refactoring:
fetchSourceandfetchSourceViaGitto eliminate ~150 lines of duplication (cleanPreviousCuratedSkills,shouldSkipSkill,writeSkillAndComputeIntegrity,buildLockUpdate)findControlCharacter/hasControlCharactersintosrc/utils/validation.tspath.relative()instead of manual substring inwalkDirectoryconstfor non-reassigned lock destructuringSecurity hardening:
skillsPathinfetchSkillFiles(path traversal, absolute paths, control characters)resolveDefaultRefto prevent argument injectionwalkDirectoryresolvedRefin lockfile schema as 40-character hex SHAObservability:
GitClientErrorhints in error handler for troubleshootingTests:
sources.test.ts(frozen mode, SHA cache-hit, skill filter, local precedence, duplicate detection, integrity mismatch, GitClientError handling)skillsPathvalidation tests ingit-client.test.tssrc/utils/validation.tsTest plan
pnpm cicheckpasses (4262 tests, format, lint, types, spelling, secrets)Closes #1266