duplicate-node-id-raises-valueerror
IN premise
`api.add_node()` raises `ValueError` when given a node ID that already exists in the network — node IDs are unique.
Summary
Adding a node with an ID that's already in use will throw a ValueError, enforcing that every node in the network has a unique identifier. This means callers need to check for existing nodes before adding, or handle the error, and it guarantees the system won't silently overwrite or duplicate entries.
Dependents
These beliefs depend on this one:
- api-enforces-typed-preconditions — API functions enforce preconditions at the system boundary with typed exceptions: duplicate node IDs raise ValueError, missing justification arguments raise ValueError, and unauthorized single-node access raises PermissionError — establishing a consistent error contract at every entry point.
Details
| Source | entries/2026/04/24/tests-test_api.md |