tmf_fragment
Traverse indexed code relationships from a claim ID to inspect cross-file effects before changes. Returns verified hops, gaps, and stop reasons.
Instructions
Explore indexed code relationships around a known claim before a cross-file change. Get entry from tmf_context or tmf_retrieve; it is a claim ID, not a path or symbol name. Returns verified_hops, boundaries, gaps, stale_or_unknown, stop_reason and coverage. Start with relations=["calls"], hop_limit=1, boundary_types=["function"], semantic_boundaries=false. Inspect gaps and stop_reason before expanding: missing or stale entries return no verified hops; unsupported relations or invalid bounds raise an error. Re-read source for stale/unknown evidence and use tmf_stale_slice for a stale claim. This does not return a complete dependency graph, modify source, or refresh source-derived claims. For full claim details use tmf_explain(full=true). Source is authoritative; fresh does not mean correct.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entry | Yes | Stored claim ID from tmf_context or tmf_retrieve. Paths and qualified symbol names are not accepted as IDs. | |
| hop_limit | Yes | Required traversal depth, 0–4. Use 1 initially; 0 returns the entry without traversing edges. | |
| max_edges | No | Maximum returned edges, 1–128; default 128. Reaching the cap is reported in stop_reason. | |
| max_nodes | No | Maximum visited nodes including entry, 1–64; default 64. Reaching the cap is reported in stop_reason; this is not a character/token budget. | |
| relations | Yes | Nonempty relationship kinds to traverse in either endpoint direction: calls, reads, writes, inherits, overrides, uses_type, reads_env, reads_config_key, injects, publishes_to, subscribes_to, publishes_type, listens_type. Start with only the kinds needed for the task. | |
| boundary_types | Yes | Nonempty list of claim scopes at which to stop expanding when semantic_boundaries=false, e.g. function, declaration, class or topic. Ignored when semantic_boundaries=true. | |
| semantic_boundaries | No | Default true: stop expansion at indexed side-effect boundaries such as writes or publishes_to. Set false to use boundary_types instead. This is not complete runtime or annotation analysis. |