fix(mcp): keep PR body draft taxonomy public-safe - #909
Conversation
|
Note Gittensory Gate skippedPR closed before full evaluation. No late first comment was created.
💰 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. |
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
gittensory · advisory review Reviewed 4 changed file(s) — two independent AI reviewers. Changed files: Suggested action: ✅ Safe to merge — both reviewers found no blocking issues. Reviewer A · Suggestions
Worth double-checking
Reviewer B · Suggestions
Worth double-checking
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #909 +/- ##
=======================================
Coverage 96.72% 96.72%
=======================================
Files 109 109
Lines 14750 14750
Branches 5340 5340
=======================================
Hits 14267 14267
Misses 95 95
Partials 388 388 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…-pr-draft-vulnerability # Conflicts: # test/unit/pr-body-draft.test.ts
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
gittensory-ui | 6ed716b | Commit Preview URL Branch Preview URL |
Jun 19 2026, 05:55 AM |
Motivation
gittensory_draft_pr_bodytool exposed internal/private scoring taxonomy in its structured output and human-visible summary, which can be serialized into client-visible text and accidentally pasted into public PRs.Description
EXCLUDED_PRIVATE_PR_BODY_FIELDSwith generic, public-safe omitted-category labels insrc/services/pr-body-draft.tsso the structured draft can be safely surfaced by MCP clients.src/mcp/server.tsto avoid the phrase "private scoreability" and instead state that internal analysis context is omitted.test/unit/mcp-output-schemas.test.tsasserting that the MCP visible text and structured result do not expose private scoring taxonomy, and updatetest/unit/pr-body-draft.test.tsexpectations to reflect the new public-safe labels.Testing
npm test -- test/unit/pr-body-draft.test.ts --reporter=dotand thepr-body-draftunit suite passed.npm test -- test/unit/mcp-output-schemas.test.ts --reporter=dot -t "keeps draft PR body"and it passed, verifying both visible text and structured content are free of private taxonomy terms.npm run typecheckand it succeeded with no type errors.git diff --check(repository hygiene) which reported no whitespace/format issues.Codex Task