pg-antecedent-refs-have-no-fk-constraints

IN premise

Antecedent and outlist references in `rms_justifications` are JSONB arrays without foreign key constraints; nonexistent referenced nodes default to truth value OUT via `truth_cache.get(a, "OUT")`.

Summary

The justification table stores references to other nodes as plain JSON arrays rather than enforcing referential integrity at the database level. This means the system silently treats any referenced node that doesn't actually exist as if it were false (OUT), which could mask bugs where a node ID is misspelled or a node is deleted without cleaning up references to it.

Dependents

These beliefs depend on this one:

Details

Sourceentries/2026/04/29/reasons_lib-pg.md