Skip to content

feat(mcp): add gittensory_explain_gate_disposition tool (deterministic dry-run gate reasons) #2234

Description

@JSONbored

gittensory_predict_gate (src/mcp/server.ts:1186) returns a pass/fail verdict from the public .gittensory.yml, but there is no MCP tool that returns the STRUCTURED, per-rule disposition reasons behind that verdict (which specific gate rules would pass/block and why). Add a read-only companion tool that reuses the same deterministic predict-gate computation and returns the itemized rule list — pure reasoning surface, no merge/close DECISION logic (that stays maintainer-only).

Deliverables

  • Register gittensory_explain_gate_disposition in src/mcp/server.ts reusing the same predictGate input shape (predictGateShape)
  • Return the structured per-rule breakdown already computed inside predictGate rather than only the top-line verdict (refactor to expose it if needed, no behavior change to predict_gate)
  • zod outputSchema for the itemized rule list (rule id, status, reason)
  • Tests covering pass-all, one-blocking-rule, and multiple-blocking-rules branches to 97% patch coverage

References

  • src/mcp/server.ts:1186
  • src/scoring/preview.ts:670
  • src/scoring/preview.ts:876

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

    Status
    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions