feat(mcp): expose index freshness and relationship provenance#559
feat(mcp): expose index freshness and relationship provenance#559vvenegasv wants to merge 3 commits into
Conversation
|
Thanks @vvenegasv — this is the version we'll take for the index-freshness / relationship-provenance feature (the tested superset of #544, which I've now closed in its favor). The core is read-only, additive MCP output and reviewed clean. One ask before merge: please split out the changes bundled in here that are unrelated to this feature —
They're benign (and arguably correct), but they're out of scope for this PR — as a separate focused PR they're trivial to review and land. With those split out and CI green, this is good to go. 🙏 |
2c914e9 to
5cc74fb
Compare
Signed-off-by: Vladimir Venegas Velásquez <vvenegasv@gmail.com>
5cc74fb to
9afb300
Compare
|
Hi @DeusData, the requested changes have been applied and CI is now green. Please let me know if there’s anything else you’d like me to adjust. Best regards. |
|
Thanks for the freshness/provenance work. Because this adds MCP response fields and shells out through |
Signed-off-by: Vladimir Venegas Velásquez <vvenegasv@gmail.com>
What does this PR do?
This PR adds machine-readable freshness and provenance evidence to MCP responses, helping clients determine whether results come from a current index, a stale or partial index, direct source resolution, or heuristic inference.
Changes include:
index_statuswith additive evidence about indexed/current revisions, working tree state, freshness, coverage, and known limitations.edge_evidencefromtrace_pathandtrace_call_pathwhen relationship provenance is available.Why is this needed?
Consumers of the MCP need factual and inspectable signals to decide whether a result can be trusted as-is, whether the repository should be re-indexed, or whether the result should be verified directly against source code.
Rather than exposing an opaque reliability score, this change provides the underlying evidence needed for clients to make that decision.
Checklist
git commit -s)make -f Makefile.cbm test)make -f Makefile.cbm lint-ci)Tracking
Closes #786