Skip to content

REST + CLI mirror for loopover_evaluate_escalation #6754

Description

@JSONbored

Context

The MCP tool loopover_evaluate_escalation (src/mcp/server.ts:2089, via evalEscalation) is gated only by enforceToolRateLimit, calling the pure evaluateEscalation function on caller-supplied data. Same auth/purity tier as loopover_check_slop_risk (full REST/CLI parity already). No REST route or CLI mirror exists for this one.

Requirements

  • Add POST /v1/loop/evaluate-escalation delegating to the existing pure evaluateEscalation function.
  • Add a matching CLI subcommand/stdio tool.

Deliverables

  • POST /v1/loop/evaluate-escalation route
  • CLI subcommand/stdio tool
  • Unit test

Test Coverage Requirements

99%+ Codecov patch coverage on every changed line and branch in the new route/tool/CLI code, plus a test asserting output parity between the mirrored surfaces for identical input.

Expected Outcome

The escalation evaluator is available over REST/CLI, matching its same-tier sibling check_slop_risk's existing parity.

Links & Resources

Precedent: POST /v1/lint/slop-risk (src/api/routes.ts:3164) + slopRiskCli (loopover-mcp.js:3098).

Metadata

Metadata

Assignees

No one assigned

    Labels

    gittensor:featureGittensor-scored feature linked to a feature issue — scores a 0.25x multiplier.help wantedExtra attention is needed

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions