gograph_stale
Check if the graph index is outdated by comparing source file and graph timestamps; returns stale flag and list of newer files. Run before structural analysis to prevent missed symbols.
Instructions
Check whether .gograph/graph.json is outdated relative to the current Go source files — stale:true if any .go file in the working tree is newer than the graph index. Requires .gograph/graph.json to exist. Read-only; no side effects. WHEN TO USE: As a pre-flight check before any structural analysis — a stale graph may cause missed symbols or stale call edges. If stale, run gograph build . before proceeding. NOT TO USE: For Go module dependency freshness (go list -m all covers that); for finding which symbols changed (use gograph_changes). RETURNS: JSON with stale bool, graph_mtime, newest_source_mtime, and a list of source files newer than the graph; {"stale":false} when the graph is current.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||