import-topo-sort-tolerates-cycles
IN premise
`_topo_sort_claims` attempts topological ordering but appends remaining nodes when progress stalls, gracefully handling dependency cycles instead of erroring
Summary
When the wiki builder sorts claims to figure out what order to process them in, it tries to respect dependency relationships but does not crash if those dependencies form a loop. Instead, it just tacks any stuck nodes onto the end, which means circular reasoning chains will still get processed rather than blocking the entire build.
Dependents
These beliefs depend on this one:
- import-handles-heterogeneous-truth-states — The import pipeline handles mixed truth states: OUT/STALE beliefs arrive without justifications, topological sort tolerates cycles, and two-phase truth maintenance reconciles everything post-import
Details
| Source | entries/2026/04/23/reasons_lib-import_agent.md |