Skip to content

Phase 8: Implement coverage scorer on /query and MCP inject #62

Description

@cursor

Background

Architecture and UI already expect a per-query coverage_score. Schema indices exist (V005__coverage_indices.cypher). No scorer implementation yet.

Problem Statement

Agents and the dashboard cannot tell when organizational memory is thin for a domain.

Proposed Solution

  • Implement coverage scorer (domain completeness estimate)
  • Return coverage_score on every /query (and inject) response
  • Surface via MCP if/when inject/query tools are used
  • Wire existing frontend fields in Ask/Home views

Acceptance Criteria

  • Coverage scorer module with unit tests
  • /query (and inject path) returns real coverage_score (0–1)
  • Dashboard displays coverage without placeholder/undefined
  • Documented in README API table / docs

Files / Modules Affected

scoring/ or intelligence/, api/memory.py, api/schemas.py, mcp/server.js, frontend/src/views/AskView.tsx, frontend/src/views/HomeView.tsx, graph migrations as needed

Phase: 8 — Outcome tracking + coverage scoring

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions