import-beliefs-nogood-id-uses-high-water-mark

IN premise

`_next_nogood_id` is set to `max(current, parsed_id + 1)` during import, preventing future auto-generated nogood IDs from colliding with imported ones.

Summary

When nogoods are imported from an external file, the system tracks the highest ID it has seen and ensures any new automatically generated nogood IDs start above that number. This prevents a situation where a freshly created nogood accidentally reuses an ID that was already assigned to an imported one, which would corrupt the contradiction records.

Details

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