1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//! Shared UAG inspection — pure extractors over the Unified Application
//! Graph consumed by both `arc inspect` (the human-facing CLI) and `arc mcp`
//! (the machine-facing JSON-RPC tools).
//!
//! This is the **single** implementation of the read-side projections over
//! the UAG (master Reservation #6): `arc inspect` and `arc mcp` must not
//! fork two parallel inspection implementations. Every function here takes
//! a borrowed [`Uag`] (already loaded via [`crate::metadata::load_uag`]) and
//! returns a borrowed or owned projection. None of them read the
//! filesystem, walk the source tree, or grep the project — the cardinal
//! rule (PROGRAM.md AP2.1-9): the UAG is the single source of truth.
//!
//! The projections are deliberately small, pure functions over `&Uag` so the
//! MCP tools can compose them into JSON-RPC responses without duplicating
//! the "find the route by name" / "summarize the app" logic.
pub use find_routes_by_name;
// `summarize` is the live projection consumed by the `application_info` MCP
// tool and `arc inspect app`. `AppSummary` (the return type) is named only
// inside `summary.rs` and its tests, so it is not re-exported here — a
// smaller internal surface (AGENTS.md §22).
pub use summarize;
pub