Skip to content

[Feature]: path: report path-level confidence (weakest hop) so one uncertain hop marks the whole path #4885

Closed

Description

@SyedFahad7

Repro for all (graphify 0.9.97, v8 @ 0a8cd4e), Report.cs:

public interface IReport { string Build(); }
public class PdfReport : IReport { public string Build() { return "pdf"; } }
public class CsvReport : IReport { public string Build() { return "csv"; } }
public class Exporter {
  private readonly IReport _report;
  public Exporter(IReport report) { _report = report; }
  public string Run() { return _report.Build(); }
}

graphify update .

Repro: graphify path report_exporter_run report_pdfreport_build

Shortest path (2 hops):
  .Run() --calls [INFERRED]--> .Build() --dispatches_to [INFERRED]--> .Build()

Today: each hop is labelled, but the path has no overall confidence. A path with one AMBIGUOUS/INFERRED hop among EXTRACTED hops reads as a list of independent labels.
Expected: a summary line, e.g. Path confidence: INFERRED (weakest hop 2: dispatches_to, score 0.75), computed as the minimum by _CONFIDENCE_RANK and min confidence_score. Same field in MCP shortest_path.
Refs: graphify/serve.py:2072 (_shortest_path_text), ~2144–2150 (hop formatting); graphify/build.py:191 (_CONFIDENCE_RANK); CLI path in graphify/cli.py (~2040–2100).

Activity

  1. github-actions commented on Oct 30, 2026

    @github-actions

    Thanks for opening this issue, @SyedFahad7. A maintainer will take a look soon.

    If you would like to discuss it in real time, come say hi on our Discord server. For longer-form questions and ideas there is also GitHub Discussions.

    To help us triage, please make sure the report includes what you expected, what actually happened, and the steps (and a small sample) to reproduce it.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions