pg-api-what-if-never-mutates
IN premise
`PgApi.what_if_retract()` and `what_if_assert()` are read-only operations — they return cascade analysis (changed/went_in/went_out) without modifying database state, verified by checking `get_status()` before and after
Summary
The what-if analysis functions let you preview the consequences of retracting or asserting a belief without actually doing it. This means you can safely explore hypothetical changes to the belief network — seeing what would cascade — without any risk of corrupting the current state.
Dependents
These beliefs depend on this one:
- pg-what-if-is-safely-simulated — PgApi's what-if operations achieve safe simulation: mutations are performed against real PostgreSQL data for accurate cascade analysis, then rolled back within a transaction to guarantee zero persistent side effects — combining fidelity with safety.
Details
| Source | entries/2026/04/29/tests-test_pg.md |