From 4a654351e3c41baf8fe1190553b102b46d970a55 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Wed, 16 Sep 2026 12:53:57 +0200 Subject: [PATCH] Say what the per-run schema directory costs Soul G3: the comment asserted only the half that improved -- a passing run leaves nothing -- and was silent about the failing run, which is the only case that creates a directory at all and now leaks one permanently, one per failing run where the shared directory was overwritten however often it failed. The trade is still right; the comment now names its cost and says who cleans up. Comment only. No behaviour, so no mutation. Co-Authored-By: Claude Opus 5 --- epiphany-pipeline/src/lib.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/epiphany-pipeline/src/lib.rs b/epiphany-pipeline/src/lib.rs index 935b7ed7..1e19279b 100644 --- a/epiphany-pipeline/src/lib.rs +++ b/epiphany-pipeline/src/lib.rs @@ -1464,8 +1464,14 @@ mod tests { // produces -- are not this derivation, and copying one of those into // `schemas/cultnet` publishes a schema no Rust type produces. A shared // directory cleared first would have to defend that clear against a - // held handle; an unshared one has nothing to defend. The directory is - // only created when something is stale, so a passing run leaves none. + // held handle; an unshared one has nothing to defend. The cost is that + // nothing ever removes one. The directory is only created when + // something is stale, so a passing run leaves none -- but a failing run + // leaves its copies behind for good, one directory per failing run + // where the shared design left one however often it failed. That is the + // trade: the copies are the evidence the failure message names, and + // they outlive the run that wrote them. Whoever reads the failure is + // the one who deletes them. let derived_dir = std::env::temp_dir().join(format!( "epiphany-pipeline-schemas-{}-{}", std::process::id(),