fix(mcp): keep boundary suggestions source-free - #3955
Conversation
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3955 +/- ##
==========================================
- Coverage 93.66% 93.66% -0.01%
==========================================
Files 372 372
Lines 34856 34856
Branches 12743 12744 +1
==========================================
- Hits 32649 32648 -1
Misses 1588 1588
- Partials 619 620 +1
🚀 New features to boost your workflow:
|
|
Caution 🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥 🛑 Gittensory review result - fixes requiredReview updated: 2026-07-07 09:14:17 UTC
🛑 Suggested Action - Manual Review
Review summary Nits — 5 non-blocking
Why this is blocked
CI checks failing
Review context
Contributor next steps
Signal definitions
🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
Motivation
gittensory_suggest_boundary_teststool no longer accepts raw unified-diffpatchtext at the remote boundary.Description
gittensory_suggest_boundary_teststo removepatchpayloads and accept onlychangedFiles(paths) plus an optional, strictboundaryTouchesarray containing onlypathandkind(no source snippets), and cap touches tomax(20). (src/mcp/server.ts)boundaryTouchesto the declaredchangedFiles. (src/mcp/server.ts)BoundaryTouchand updatedetectBoundaryTouchesto return onlypath+kind; makebuildBoundaryTestGenerationFindingaccept either precomputedtouchesor legacyfilesinput so local callers can still scan and then submit safe metadata. (src/signals/boundary-test-generation.ts)patchinput, accepts precomputed touches, ignores touches for files not declared inchangedFiles, and verifies that returned touches contain no source snippets. (test/unit/mcp-suggest-boundary-tests.test.ts,test/unit/boundary-test-generation.test.ts)Testing
npm run typecheckand it passed.npx vitest run test/unit/boundary-test-generation.test.ts test/unit/mcp-suggest-boundary-tests.test.tsand all tests passed.git diff --checkwhich passed.npm run test:ci; execution reachedtest:coveragebut the run was interrupted due to an unrelated recursiveRangeError: Maximum call stack size exceededobserved in an existingtest/unit/queue.test.tstest, so the full CI gate was not completed here.npm audit --audit-level=moderatewas attempted but the registry audit endpoint returned403 Forbiddenin this environment, so the dependency-review step could not be validated here.Codex Task