Plan, apply and roll back changes to a production ontology, with a blast radius report and a proof an auditor can re-check.
Rust ai-nativedescription-logicsformal-verificationinfrastructure-as-codeisabelle-languageknowledge-graphleanlean4mcpmcp-serverontologyowlowl2reasoningrustshaclsparqltheorem-proving
test(cli): run the batch repro from its own directory
FABIOTESSd177a0c1a4cf
diff --git a/tests/cli_test.rs b/tests/cli_test.rsindex f7a89754..c7d71dc5 100644--- a/tests/cli_test.rs+++ b/tests/cli_test.rs@@ -324,16 +324,20 @@ fn write_plan_fixtures(dir: &tempfile::TempDir) -> (String, String) {#[test]fn test_cli_batch_plan_then_apply() {let dir = tempfile::tempdir().unwrap();- let (base, proposed) = write_plan_fixtures(&dir);- let batch = dir.path().join("batch.txt");+ let _ = write_plan_fixtures(&dir);std::fs::write(- &batch,- format!("load {base}\nplan {proposed}\napply safe\nstats\n"),+ dir.path().join("batch.txt"),+ "load base.ttl\nplan proposed.ttl\napply safe\nstats\n",).unwrap();+ // Relative paths, run from the fixture directory — the reporter's repro+ // verbatim. Batch lines go through `shell_words::split`, which applies+ // POSIX escaping, so an absolute Windows path would have its separators+ // eaten before the file is ever opened.let out = oo_isolated(&dir)- .args(["batch", batch.to_str().unwrap()])+ .current_dir(dir.path())+ .args(["batch", "batch.txt"]).output().unwrap();let stdout = String::from_utf8_lossy(&out.stdout);