Commit 4fdadd5
fix: address review feedback on PR-TRACE-1a
Must-fix issues:
- parent_edge_id now stores edge IDs (format: from_id:to_id:edge_type:hop)
instead of node IDs, enabling proper tree reconstruction
- Budget counting now only counts newly discovered nodes; moved increment
after visited check
Suggestions addressed:
- test_trace_direction_required: now validates pydantic ValidationError
- test_trace_inbound_callers_depth_2: removed vacuous >= 0 assertion
- test_trace_parent_edge_id_chain: now verifies parent_edge_id format
and validates it references an edge that reaches the current node
- Tautological hop check: simplified to assert 0 in hops and hops <= {0, 1}
- Removed hardcoded row_kind from _edge_attrs_for_row
- Documented include_unresolved as 1a no-op (like prune_roles)
Tests: 22 passed, 1 skipped
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent a9e6724 commit 4fdadd5
3 files changed
Lines changed: 2212 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
112 | 111 | | |
113 | 112 | | |
114 | 113 | | |
| |||
372 | 371 | | |
373 | 372 | | |
374 | 373 | | |
375 | | - | |
376 | | - | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
377 | 377 | | |
378 | 378 | | |
379 | 379 | | |
| |||
479 | 479 | | |
480 | 480 | | |
481 | 481 | | |
482 | | - | |
483 | | - | |
| 482 | + | |
| 483 | + | |
484 | 484 | | |
485 | 485 | | |
486 | 486 | | |
| |||
524 | 524 | | |
525 | 525 | | |
526 | 526 | | |
527 | | - | |
528 | | - | |
| 527 | + | |
529 | 528 | | |
530 | 529 | | |
531 | 530 | | |
532 | 531 | | |
533 | 532 | | |
534 | 533 | | |
535 | | - | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
536 | 538 | | |
537 | 539 | | |
538 | 540 | | |
539 | 541 | | |
540 | 542 | | |
541 | 543 | | |
542 | | - | |
543 | | - | |
544 | | - | |
545 | 544 | | |
546 | 545 | | |
547 | 546 | | |
| |||
561 | 560 | | |
562 | 561 | | |
563 | 562 | | |
| 563 | + | |
564 | 564 | | |
565 | 565 | | |
566 | 566 | | |
| |||
570 | 570 | | |
571 | 571 | | |
572 | 572 | | |
573 | | - | |
574 | 573 | | |
575 | 574 | | |
576 | 575 | | |
577 | | - | |
578 | | - | |
579 | | - | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
580 | 579 | | |
581 | 580 | | |
582 | 581 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
89 | 88 | | |
90 | 89 | | |
91 | 90 | | |
| |||
249 | 248 | | |
250 | 249 | | |
251 | 250 | | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
256 | 265 | | |
257 | 266 | | |
258 | 267 | | |
| |||
573 | 582 | | |
574 | 583 | | |
575 | 584 | | |
576 | | - | |
577 | | - | |
| 585 | + | |
578 | 586 | | |
579 | | - | |
580 | | - | |
581 | | - | |
582 | | - | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
0 commit comments