Skip to content

feat(mcp): add gittensory_check_test_evidence tool (deterministic coverage-gap self-check) #2235

Description

@JSONbored

The engine already has a deterministic changed-path→test-evidence classifier (src/signals/test-evidence.ts) and slop uses it to flag missing test coverage (src/signals/slop.ts:263-277), but there is no dedicated MCP tool an agent can call to ask 'do my changed files carry enough test evidence?' before opening a PR. Surface the classifier as a standalone metadata-only MCP tool (paths + optional test-file paths in; coverage-gap band + guidance out).

Deliverables

  • Define an inputSchema (changed paths, optional added/modified test paths) as a zod shape in src/mcp/server.ts
  • Handler calls the test-evidence classifier and returns the coverage-gap classification + actionable guidance strings (no source content required)
  • zod outputSchema for the classification result
  • Tests: code-only-no-tests path, code+tests path, docs-only path, and the classifier's threshold branches

References

  • src/signals/test-evidence.ts:18
  • src/signals/slop.ts:263
  • src/mcp/server.ts:1197

size: S · held for later release (gittensor:feature once activated)

Metadata

Metadata

Assignees

No one assigned

    Labels

    gittensor:featureGittensor-scored feature linked to a feature issue — scores a 0.25x multiplier.visualUI/web visual work — owner-led, NOT for Gittensor contributors (extensions excepted)

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions