Implement orbit-graph trace query (command handler call tree)#459
Merged
Conversation
…ORB-00317] Planned-By: codex
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Task
ORB-00317 — Implement orbit-graph trace query (command handler call tree)
Description
Problem
GRAPH_SPEC.md §9.6 defines trace: structural feature expansion. Resolves a command name to its handler symbol via commands.handler_symbol, then BFS over callees with depth 5. Returns the call tree as nested JSON. Capped at 200 visited nodes per spec §9.6 ('depth 5 with branching factor 5 is otherwise about 3k nodes worst-case').
Why It Matters
trace is the 'show me everything this command does' query — useful for code review, onboarding, and refactor planning when an agent needs to understand a feature's surface area without reading every file. The cap means even sprawling commands return bounded results; agents re-trace from a sub-handler if more depth is needed.
Constraints / Notes
Plan ID: P4.5. Depends on ORB-00314 (P4.3, callees). Runs in parallel with P4.4. Last task of Phase 4.
Acceptance Criteria
Execution Summary
Click to expand
Outcome: success
Changes:
Assessment: The implementation is scoped to orbit-graph trace behavior and validated against the required targeted test and clippy commands plus ci-fast guardrails.
Validation:
Validation
Branch Freshness
origin/agent-mainorbit/ORB-00317-6a13d33a