diff --git a/.crumb b/.crumb index 5db26dd1..175ed051 100644 --- a/.crumb +++ b/.crumb @@ -77,14 +77,14 @@ } ], "children_root": "sha256:6125449db449f5c3431e63c5bf8b20022665a7ea6c635c0f884c8f1e5c0e8ee2", - "compiled_at": "2026-10-10T02:09:11Z", + "compiled_at": "2026-10-10T02:34:18Z", "compiler": "crumb-compile/1", - "digest": "sha256:dfa985276ee617c9ead3ed3d4767042e33312f182a2f210b227df48e3153d7f8", + "digest": "sha256:9e412bc52dba7f2e280d8ca70eecbebb9ff690bb0b9040d1d84fe0786327c6cd", "evidence_files": 187, "evidence_root": "sha256:27ee0353cb4d4aae2b7dbce2bfe0d9f4ef2a94cd7a4555b84684d59372503280", "files": 1849, - "generated_at_commit": "7ab80249f34dc4a2b7087e46dc6d389961ccbb0b", - "source_tree": "sha256:8f1219de38d7fef89068d1517b84ae7bab87c64cf9b3a52ffaed599cef9dd1aa" + "generated_at_commit": "a10f5202f7847c950a54abb2739d5d263a2a9560", + "source_tree": "sha256:5e2da60d393ffbbb8d0b21deafab6aab16eb2570d4ec3cd4a7f97d9ee1286849" } }, "history": [], diff --git a/crates/spark-harvester/tests/rights_gating_tests.rs b/crates/spark-harvester/tests/rights_gating_tests.rs index 21a7c51e..63ed1199 100644 --- a/crates/spark-harvester/tests/rights_gating_tests.rs +++ b/crates/spark-harvester/tests/rights_gating_tests.rs @@ -246,7 +246,23 @@ fn test_evidence_bundle_quarantine_enforced() { ) .expect("Evidence grant must be accepted"); - let tmp = tempfile::tempdir().unwrap(); + // The quarantine gate scans every path component for train/sft/dpo/distill, + // so a random temp-dir name can trip it by accident. Draw until the name is clean. + let tmp = loop { + let t = tempfile::tempdir().unwrap(); + let name = t + .path() + .file_name() + .unwrap() + .to_string_lossy() + .to_lowercase(); + if !["train", "sft", "dpo", "distill"] + .iter() + .any(|b| name.contains(b)) + { + break t; + } + }; // 1. Attempting to export evidence bundle to training path fails closed let train_path = tmp.path().join("train_dataset.jsonl");