You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
engine: validating a patch recompiles the whole model #292
Validating a patch compiled the patched project in a brand-new salsa database, so editing one equation recompiled every variable in the model.
Validation should reuse the project's long-lived database so unchanged variables come from cache, and roll the database back if the patch is rejected.
Why it matters
Every editor edit runs this validation, so on a large model each keystroke paid for a full compile.
Current state
apply_project_patch_internal in src/libsimlin/src/patch.rs now stages the patch into the project's own database with SimlinDb::sync_staged and undoes it with SimlinDb::restore on failure (src/simlin-engine/src/db.rs).
The old entry point that built a throwaway database (Project::from_with_model_cb in project.rs) was deleted in #375.
changed the title [-]Thread persistent salsa DB through Project compilation for incremental patch validation[/-][+]engine: validating a patch recompiles the whole model[/+]on Oct 12, 2026
apply_project_patch_internal stages the patched datamodel into the project's own persistent db with db.sync_staged (src/libsimlin/src/patch.rs:460), validates there, and rolls back a rejected or dry-run patch with db.restore (patch.rs:543); Project::from_with_model_cb and src/simlin-engine/src/project.rs no longer exist (#375). Pinned by src/libsimlin/tests/integration/incremental.rs (dry-run and rejected-patch staging tests) and tests/integration/wasm/incremental.rs.
Activity
docs: add finish-salsa-migration design plan
engine: gate with_ltm and with_ltm_all_links behind cfg(test/testing)
[-]Thread persistent salsa DB through Project compilation for incremental patch validation[/-][+]engine: validating a patch recompiles the whole model[/+]bpowers commentedon Oct 12, 2026
Closing: already fixed on main.
apply_project_patch_internalstages the patched datamodel into the project's own persistent db withdb.sync_staged(src/libsimlin/src/patch.rs:460), validates there, and rolls back a rejected or dry-run patch withdb.restore(patch.rs:543);Project::from_with_model_cband src/simlin-engine/src/project.rs no longer exist (#375). Pinned by src/libsimlin/tests/integration/incremental.rs (dry-run and rejected-patch staging tests) and tests/integration/wasm/incremental.rs.