Skip to content

Commit e0ffc38

Browse files
committed
feat(review): surface graph freshness metadata
1 parent b185b78 commit e0ffc38

File tree

4 files changed

+522
-3
lines changed

4 files changed

+522
-3
lines changed

TODO.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ This roadmap is derived from deep research into Greptile's public docs, blog, MC
6666
33. [ ] Add contract edges between interfaces, implementations, and API endpoints.
6767
34. [ ] Add "similar implementation" lookup so repeated patterns and divergences are explicit.
6868
35. [x] Add cross-file blast-radius summaries to findings when a change affects many callers.
69-
36. [ ] Add graph freshness/version metadata so reviews know whether they are using stale repository intelligence.
69+
36. [x] Add graph freshness/version metadata so reviews know whether they are using stale repository intelligence.
7070
37. [x] Add graph-backed ranking of related files before semantic RAG retrieval.
7171
38. [x] Add graph query traces to `dag_traces` or review artifacts for explainability and debugging.
7272
39. [x] Add graph-aware eval fixtures that require multi-hop code understanding to pass.

src/core/context_provenance.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ pub enum ContextProvenance {
1212
CustomContextNotes,
1313
DependencyGraphNeighborhood,
1414
PathSpecificFocusAreas,
15+
RepositoryGraphMetadata,
1516
PatternRepositoryContext {
1617
source: String,
1718
},
@@ -89,6 +90,7 @@ impl ContextProvenance {
8990
| Self::CustomContextNotes
9091
| Self::DependencyGraphNeighborhood
9192
| Self::PathSpecificFocusAreas
93+
| Self::RepositoryGraphMetadata
9294
| Self::RelatedTestFile
9395
| Self::ReverseDependencySummary => 0,
9496
}
@@ -109,6 +111,7 @@ impl ContextProvenance {
109111
Self::CustomContextNotes => "custom context notes".to_string(),
110112
Self::DependencyGraphNeighborhood => "dependency graph neighborhood".to_string(),
111113
Self::PathSpecificFocusAreas => "path-specific focus areas".to_string(),
114+
Self::RepositoryGraphMetadata => "repository graph metadata".to_string(),
112115
Self::PatternRepositoryContext { source } => {
113116
format!("pattern repository: {source}")
114117
}
@@ -179,5 +182,9 @@ mod tests {
179182
ContextProvenance::pattern_repository_context("org/repo").to_string(),
180183
"pattern repository: org/repo"
181184
);
185+
assert_eq!(
186+
ContextProvenance::RepositoryGraphMetadata.to_string(),
187+
"repository graph metadata"
188+
);
182189
}
183190
}

0 commit comments

Comments
 (0)