Fail closed on branch eligibility for linked-issue scoring - #891
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. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #891 +/- ##
==========================================
- Coverage 96.71% 96.68% -0.04%
==========================================
Files 108 108
Lines 14641 14653 +12
Branches 5298 5304 +6
==========================================
+ Hits 14160 14167 +7
- Misses 102 106 +4
- Partials 379 380 +1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
gittensory · advisory review Reviewed 7 changed file(s) — two independent AI reviewers. Changed files: Suggested action: 🛠️ Request changes. (reviewers split: merge / request changes) Address the suggestions below before merging. Reviewer A · Suggestions
Worth double-checking
Reviewer B · Suggestions
Worth double-checking
|
Motivation
eligibleprovenance cannot be mistaken for server-verified GitHub/local metadata.Description
isConfirmedBranchEligibleand usingbranchEligibilityFailureReasonto produce fail-closed reasons. (changes insrc/scoring/preview.ts).status: "eligible"tostatus: "unknown"and forcingsource: "user_supplied"for incoming claims insrc/api/routes.tsandsrc/mcp/server.tsso unverified input cannot be treated as authoritative.user_suppliedand surface a conservative message otherwise (changes insrc/signals/local-branch.ts).test/unitandtest/integration).Testing
npm run typecheckand it succeeded.npm test -- --run test/unit/scoring.test.ts test/unit/local-branch.test.tsand they passed.npm test -- --run test/integration/api.test.tsand they passed.npm test -- --run test/unit/scoring.test.ts test/unit/local-branch.test.ts test/integration/api.test.ts test/unit/mcp-cli.test.tswith all tests passing (all updated suites green).Codex Task