Commit 510d5f3
committed
fix(ogit_bridge): drop is_ancestor MAX_VISITS cap + rustfmt collapse (codex P2)
Two CI fixes on PR #193:
1) Codex P2 — Drop the MAX_VISITS=4096 hard cap in `is_ancestor`.
The previous cap could produce false-negatives on large
biomedical ontologies (FMA: 75k classes; ChEBI: 200k+ classes)
where a descendant has more than 4096 reachable superclass
nodes before the target ancestor is popped.
Termination is still guaranteed by the `visited: HashSet<&str>`:
every parent IRI enters at most once, frontier pushes are
gated on `visited.insert(...)`, so the total work bound is
O(unique IRIs reachable from descendant) — finite by the
schema's own finiteness. No explicit cap needed.
2) Rustfmt 1.95.0 collapse on the new
`make_probability_mask_at_half_is_bernoulli_half` test
assertion — same canonical-fmt collapse as prior hotfixes.
No behavioral change beyond removing the artificial cap.1 parent 6a6acdf commit 510d5f3
2 files changed
Lines changed: 18 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
580 | 580 | | |
581 | 581 | | |
582 | 582 | | |
583 | | - | |
584 | | - | |
585 | | - | |
586 | | - | |
| 583 | + | |
587 | 584 | | |
588 | 585 | | |
589 | 586 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
684 | 684 | | |
685 | 685 | | |
686 | 686 | | |
687 | | - | |
688 | | - | |
689 | | - | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
690 | 700 | | |
691 | 701 | | |
692 | 702 | | |
693 | | - | |
694 | 703 | | |
695 | | - | |
696 | | - | |
697 | | - | |
698 | | - | |
699 | 704 | | |
700 | 705 | | |
701 | | - | |
702 | | - | |
703 | | - | |
704 | | - | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
705 | 710 | | |
706 | 711 | | |
707 | 712 | | |
| |||
0 commit comments