Commit 2ae31ec
implement trace tool v2: tree output, bidirectional traversal (#260)
* implement trace tool v2: tree output, configurable collapse, bidirectional traversal
Replace flat edges/paths output with nested tree format. Add configurable
collapse_roles, collapse_min_chain_length, direction="both" for bidirectional
traversal with shared visited set, min_result_nodes retry, and source-relative
fan-out ranking. Breaking API change: TraceEdge/TracePath replaced by
TreeNode/RankedLeaf.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* fix: address PR review feedback for trace tool v2
- Remove duplicate id() call in collapse logic
- Remove dead bidirectional advisory blocks
- Consolidate triple tree walk to single pass in mcp_hints.py
- Make REPOSITORY source-relative priority distinct from SERVICE
- Add test for seed with zero matching edges
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* fix: emit min_result_nodes advisory even when retry improves results
The retry acceptance check used `or` which silently accepted improved-
but-still-below-target results without emitting the advisory. Split into
separate checks so the advisory fires whenever below target.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
* chore: move trace tool v2 proposal and plan to completed
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>1 parent 9657e7b commit 2ae31ec
9 files changed
Lines changed: 1405 additions & 650 deletions
File tree
- docs
- plans/completed
- propose/completed
- skills/explore-codebase
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | | - | |
| 181 | + | |
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
| 193 | + | |
194 | 194 | | |
195 | | - | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
196 | 198 | | |
197 | 199 | | |
198 | 200 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
517 | 517 | | |
518 | 518 | | |
519 | 519 | | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
520 | 532 | | |
521 | | - | |
| 533 | + | |
522 | 534 | | |
523 | 535 | | |
524 | 536 | | |
525 | 537 | | |
526 | | - | |
| 538 | + | |
527 | 539 | | |
528 | 540 | | |
529 | 541 | | |
| |||
554 | 566 | | |
555 | 567 | | |
556 | 568 | | |
557 | | - | |
| 569 | + | |
| 570 | + | |
558 | 571 | | |
559 | 572 | | |
560 | 573 | | |
| |||
568 | 581 | | |
569 | 582 | | |
570 | 583 | | |
571 | | - | |
572 | | - | |
573 | | - | |
574 | | - | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
575 | 599 | | |
576 | 600 | | |
577 | 601 | | |
578 | 602 | | |
579 | | - | |
| 603 | + | |
580 | 604 | | |
581 | 605 | | |
582 | | - | |
583 | | - | |
584 | | - | |
585 | | - | |
| 606 | + | |
586 | 607 | | |
587 | 608 | | |
588 | 609 | | |
| |||
0 commit comments