rewrite-dependents-updates-both-antecedents-and-outlists
IN premise
`_rewrite_dependents(net, old, new)` in `api.py` rewrites justification references and dependent sets for both antecedent and outlist occurrences of the old node ID, not just one or the other
Summary
When a node is renamed or replaced, the rewrite function updates every place the old ID appears — both where it serves as a supporting reason for other beliefs and where it appears in outgoing dependency lists. This ensures the rename is complete and no stale references to the old ID survive in the network.
Details
| Source | entries/2026/04/29/tests-test_dependents_integrity.md |