resolve_context_bundle
Compile a token-pruned Markdown context bundle from topological dependency distances around a target file to supply relevant multi-module context before code edits.
Instructions
Calculate topological dependency graph distances (D0 full target_file, D1 interface stubs, D2 nominal symbols) within project_root and compile a token-pruned Markdown context bundle, with optional reactive degradation via breaker_state and session_id. Use this as your primary context builder before editing a file in a multi-module project. For inspecting isolated files, use prune_file instead. Read-only operation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | No | Session identifier (SES-...) to connect with TokenCast budget tracking | |
| target_file | Yes | Path to the active target file in editing (D0) | |
| project_root | No | Root directory of the project. Defaults to target file's directory. | |
| breaker_state | No | Optional circuit breaker state (CLOSED, TRIPPED, HALTED) or decision kind |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | Compiled topological Markdown prompt context bundle | |
| isError | Yes | True if dependency resolution or file traversal failed |