Skip to content

feat(mcp): gittensory_validate_linked_issue #546

Description

@JSONbored

Parent roadmap: #525
Parent phase: #544

Background

Miners chase the linked-issue scoring multiplier blind — they often link an issue that won't actually qualify (closed, multi-owner, not solved-by-this-PR), wasting the bonus.

Goal

New MCP tool gittensory_validate_linked_issue that reports whether the linked-issue multiplier will actually apply.

Current Behavior

The multiplier decision is computed only inside buildScorePreview; there's no standalone validator.

Desired Behavior

Input { owner, repo, issueNumber, plannedChange }. Returns whether the issue is a valid, open, single-owner, solvable-by-this-PR target and whether the multiplier would apply, with the blocking reason if not. Reuses the linked-issue logic in buildScorePreview (scoring/preview.ts:181) + buildIssueDiscoveryLifecycleReport.

Implementation Requirements

  • Register in src/mcp/server.ts + package bin; outputSchema; metadata only.

Public/Private Output Boundaries

  • Public-safe; the raw multiplier value stays private (return applies/does-not-apply + reason).

Acceptance Criteria

  • Correctly flags valid vs invalid linked issues with the precise blocking reason.

Testing Requirements

  • npm run test:ci, 97%+ coverage. Fixtures for valid/closed/multi-owner/unsolved cases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    gittensor:featureGittensor-scored feature linked to a feature issue — scores a 0.25x multiplier.gittensor:priorityMaintainer-selected Gittensor priority — scores a 1.5x multiplier.

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions