From 22a37e0bb4bff00a404281622b20ffe06090f00b Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Mon, 13 Jul 2026 02:28:58 +0100 Subject: [PATCH] Remove timestamped smoke deletion authority --- ...piphany-daemon-survival-rehearsal-smoke.rs | 8 ++------ ...hany-repo-adoption-request-family-smoke.rs | 8 ++------ ...ny-repo-close-mind-adoption-guard-smoke.rs | 8 ++------ ...any-repo-closure-source-grounding-smoke.rs | 8 ++------ ...-repo-collaboration-policy-family-smoke.rs | 8 ++------ ...y-repo-collaboration-topic-family-smoke.rs | 8 ++------ ...phany-repo-consensus-brief-family-smoke.rs | 8 ++------ ...iphany-repo-credit-request-family-smoke.rs | 8 ++------ ...any-repo-dependency-policy-family-smoke.rs | 8 ++------ ...ny-repo-deployment-request-family-smoke.rs | 8 ++------ ...phany-repo-doctrine-review-family-smoke.rs | 8 ++------ .../epiphany-repo-eve-surface-family-smoke.rs | 8 ++------ ...any-repo-interpreter-brief-family-smoke.rs | 8 ++------ ...-maintainer-review-request-family-smoke.rs | 8 ++------ .../epiphany-repo-manifest-family-smoke.rs | 8 ++------ ...epiphany-repo-mind-evidence-guard-smoke.rs | 8 ++------ .../epiphany-repo-mind-path-guard-smoke.rs | 8 ++------ ...phany-repo-mind-safe-family-guard-smoke.rs | 8 ++------ ...phany-repo-objective-draft-family-smoke.rs | 8 ++------ ...iphany-repo-planning-brief-family-smoke.rs | 8 ++------ .../epiphany-repo-planning-facets-smoke.rs | 8 ++------ .../epiphany-repo-pr-request-family-smoke.rs | 8 ++------ ...y-repo-publication-request-family-smoke.rs | 8 ++------ ...o-readiness-review-request-family-smoke.rs | 8 ++------ ...ny-repo-scheduling-request-family-smoke.rs | 8 ++------ ...piphany-repo-secret-policy-family-smoke.rs | 8 ++------ ...epiphany-repo-sync-request-family-smoke.rs | 8 ++------ ...any-repo-tool-capabilities-family-smoke.rs | 8 ++------ ...epiphany-repo-tool-request-family-smoke.rs | 8 ++------ ...-repo-verification-request-family-smoke.rs | 8 ++------ .../epiphany-repo-work-order-family-smoke.rs | 8 ++------ ...phany-repo-work-service-lifecycle-smoke.rs | 8 ++------ ...onceptual-substitution-audit-2026-07-12.md | 9 +++++++++ notes/fresh-workspace-handoff.md | 4 ++++ state/ledgers.msgpack | Bin 461984 -> 462359 bytes state/map.yaml | 2 +- 36 files changed, 78 insertions(+), 193 deletions(-) diff --git a/epiphany-core/src/bin/epiphany-daemon-survival-rehearsal-smoke.rs b/epiphany-core/src/bin/epiphany-daemon-survival-rehearsal-smoke.rs index 356480a8..6b38c64f 100644 --- a/epiphany-core/src/bin/epiphany-daemon-survival-rehearsal-smoke.rs +++ b/epiphany-core/src/bin/epiphany-daemon-survival-rehearsal-smoke.rs @@ -53,12 +53,8 @@ fn run_smoke(args: Args) -> Result { .with_context(|| format!("failed to create {}", smoke_root.display()))?; let stamp = Utc::now().format("%Y%m%d-%H%M%S").to_string(); let smoke_dir = smoke_root.join(format!("daemon-survival-rehearsal-{stamp}")); - if smoke_dir.exists() { - fs::remove_dir_all(&smoke_dir) - .with_context(|| format!("failed to clear {}", smoke_dir.display()))?; - } - fs::create_dir_all(&smoke_dir) - .with_context(|| format!("failed to create {}", smoke_dir.display()))?; + fs::create_dir(&smoke_dir) + .with_context(|| format!("failed to claim fresh smoke dir {}", smoke_dir.display()))?; let local_verse = smoke_dir.join("local-verse.ccmp"); let runtime_id = "epiphany-local"; diff --git a/epiphany-core/src/bin/epiphany-repo-adoption-request-family-smoke.rs b/epiphany-core/src/bin/epiphany-repo-adoption-request-family-smoke.rs index 79ce7e98..5ce04239 100644 --- a/epiphany-core/src/bin/epiphany-repo-adoption-request-family-smoke.rs +++ b/epiphany-core/src/bin/epiphany-repo-adoption-request-family-smoke.rs @@ -53,12 +53,8 @@ fn run_smoke(args: Args) -> Result { .with_context(|| format!("failed to create {}", smoke_root.display()))?; let stamp = Utc::now().format("%Y%m%d-%H%M%S").to_string(); let smoke_dir = smoke_root.join(format!("repo-adoption-request-family-{stamp}")); - if smoke_dir.exists() { - fs::remove_dir_all(&smoke_dir) - .with_context(|| format!("failed to clear {}", smoke_dir.display()))?; - } - fs::create_dir_all(&smoke_dir) - .with_context(|| format!("failed to create {}", smoke_dir.display()))?; + fs::create_dir(&smoke_dir) + .with_context(|| format!("failed to claim fresh smoke dir {}", smoke_dir.display()))?; let repo = smoke_dir.join("repo-body"); fs::create_dir_all(&repo).with_context(|| format!("failed to create {}", repo.display()))?; diff --git a/epiphany-core/src/bin/epiphany-repo-close-mind-adoption-guard-smoke.rs b/epiphany-core/src/bin/epiphany-repo-close-mind-adoption-guard-smoke.rs index 83450551..b37e326d 100644 --- a/epiphany-core/src/bin/epiphany-repo-close-mind-adoption-guard-smoke.rs +++ b/epiphany-core/src/bin/epiphany-repo-close-mind-adoption-guard-smoke.rs @@ -78,12 +78,8 @@ fn run_smoke(args: Args) -> Result { .with_context(|| format!("failed to create {}", smoke_root.display()))?; let stamp = Utc::now().format("%Y%m%d-%H%M%S").to_string(); let smoke_dir = smoke_root.join(format!("repo-close-mind-adoption-guard-{stamp}")); - if smoke_dir.exists() { - fs::remove_dir_all(&smoke_dir) - .with_context(|| format!("failed to clear {}", smoke_dir.display()))?; - } - fs::create_dir_all(&smoke_dir) - .with_context(|| format!("failed to create {}", smoke_dir.display()))?; + fs::create_dir(&smoke_dir) + .with_context(|| format!("failed to claim fresh smoke dir {}", smoke_dir.display()))?; let repo = smoke_dir.join("repo-body"); fs::create_dir_all(&repo).with_context(|| format!("failed to create {}", repo.display()))?; diff --git a/epiphany-core/src/bin/epiphany-repo-closure-source-grounding-smoke.rs b/epiphany-core/src/bin/epiphany-repo-closure-source-grounding-smoke.rs index f9948d27..19798f62 100644 --- a/epiphany-core/src/bin/epiphany-repo-closure-source-grounding-smoke.rs +++ b/epiphany-core/src/bin/epiphany-repo-closure-source-grounding-smoke.rs @@ -53,12 +53,8 @@ fn run_smoke(args: Args) -> Result { .with_context(|| format!("failed to create {}", smoke_root.display()))?; let stamp = Utc::now().format("%Y%m%d-%H%M%S").to_string(); let smoke_dir = smoke_root.join(format!("repo-closure-source-grounding-{stamp}")); - if smoke_dir.exists() { - fs::remove_dir_all(&smoke_dir) - .with_context(|| format!("failed to clear {}", smoke_dir.display()))?; - } - fs::create_dir_all(&smoke_dir) - .with_context(|| format!("failed to create {}", smoke_dir.display()))?; + fs::create_dir(&smoke_dir) + .with_context(|| format!("failed to claim fresh smoke dir {}", smoke_dir.display()))?; let repo = smoke_dir.join("repo-body"); fs::create_dir_all(&repo).with_context(|| format!("failed to create {}", repo.display()))?; diff --git a/epiphany-core/src/bin/epiphany-repo-collaboration-policy-family-smoke.rs b/epiphany-core/src/bin/epiphany-repo-collaboration-policy-family-smoke.rs index eb91ba82..3b4716c7 100644 --- a/epiphany-core/src/bin/epiphany-repo-collaboration-policy-family-smoke.rs +++ b/epiphany-core/src/bin/epiphany-repo-collaboration-policy-family-smoke.rs @@ -53,12 +53,8 @@ fn run_smoke(args: Args) -> Result { .with_context(|| format!("failed to create {}", smoke_root.display()))?; let stamp = Utc::now().format("%Y%m%d-%H%M%S").to_string(); let smoke_dir = smoke_root.join(format!("repo-collaboration-policy-family-{stamp}")); - if smoke_dir.exists() { - fs::remove_dir_all(&smoke_dir) - .with_context(|| format!("failed to clear {}", smoke_dir.display()))?; - } - fs::create_dir_all(&smoke_dir) - .with_context(|| format!("failed to create {}", smoke_dir.display()))?; + fs::create_dir(&smoke_dir) + .with_context(|| format!("failed to claim fresh smoke dir {}", smoke_dir.display()))?; let repo = smoke_dir.join("repo-body"); fs::create_dir_all(&repo).with_context(|| format!("failed to create {}", repo.display()))?; diff --git a/epiphany-core/src/bin/epiphany-repo-collaboration-topic-family-smoke.rs b/epiphany-core/src/bin/epiphany-repo-collaboration-topic-family-smoke.rs index c0d20714..94aa4447 100644 --- a/epiphany-core/src/bin/epiphany-repo-collaboration-topic-family-smoke.rs +++ b/epiphany-core/src/bin/epiphany-repo-collaboration-topic-family-smoke.rs @@ -53,12 +53,8 @@ fn run_smoke(args: Args) -> Result { .with_context(|| format!("failed to create {}", smoke_root.display()))?; let stamp = Utc::now().format("%Y%m%d-%H%M%S").to_string(); let smoke_dir = smoke_root.join(format!("repo-collaboration-topic-family-{stamp}")); - if smoke_dir.exists() { - fs::remove_dir_all(&smoke_dir) - .with_context(|| format!("failed to clear {}", smoke_dir.display()))?; - } - fs::create_dir_all(&smoke_dir) - .with_context(|| format!("failed to create {}", smoke_dir.display()))?; + fs::create_dir(&smoke_dir) + .with_context(|| format!("failed to claim fresh smoke dir {}", smoke_dir.display()))?; let repo = smoke_dir.join("repo-body"); fs::create_dir_all(&repo).with_context(|| format!("failed to create {}", repo.display()))?; diff --git a/epiphany-core/src/bin/epiphany-repo-consensus-brief-family-smoke.rs b/epiphany-core/src/bin/epiphany-repo-consensus-brief-family-smoke.rs index 13d6e63b..3e6ef991 100644 --- a/epiphany-core/src/bin/epiphany-repo-consensus-brief-family-smoke.rs +++ b/epiphany-core/src/bin/epiphany-repo-consensus-brief-family-smoke.rs @@ -53,12 +53,8 @@ fn run_smoke(args: Args) -> Result { .with_context(|| format!("failed to create {}", smoke_root.display()))?; let stamp = Utc::now().format("%Y%m%d-%H%M%S").to_string(); let smoke_dir = smoke_root.join(format!("repo-consensus-brief-family-{stamp}")); - if smoke_dir.exists() { - fs::remove_dir_all(&smoke_dir) - .with_context(|| format!("failed to clear {}", smoke_dir.display()))?; - } - fs::create_dir_all(&smoke_dir) - .with_context(|| format!("failed to create {}", smoke_dir.display()))?; + fs::create_dir(&smoke_dir) + .with_context(|| format!("failed to claim fresh smoke dir {}", smoke_dir.display()))?; let repo = smoke_dir.join("repo-body"); fs::create_dir_all(&repo).with_context(|| format!("failed to create {}", repo.display()))?; diff --git a/epiphany-core/src/bin/epiphany-repo-credit-request-family-smoke.rs b/epiphany-core/src/bin/epiphany-repo-credit-request-family-smoke.rs index e4b55e82..b64a043a 100644 --- a/epiphany-core/src/bin/epiphany-repo-credit-request-family-smoke.rs +++ b/epiphany-core/src/bin/epiphany-repo-credit-request-family-smoke.rs @@ -53,12 +53,8 @@ fn run_smoke(args: Args) -> Result { .with_context(|| format!("failed to create {}", smoke_root.display()))?; let stamp = Utc::now().format("%Y%m%d-%H%M%S").to_string(); let smoke_dir = smoke_root.join(format!("repo-credit-request-family-{stamp}")); - if smoke_dir.exists() { - fs::remove_dir_all(&smoke_dir) - .with_context(|| format!("failed to clear {}", smoke_dir.display()))?; - } - fs::create_dir_all(&smoke_dir) - .with_context(|| format!("failed to create {}", smoke_dir.display()))?; + fs::create_dir(&smoke_dir) + .with_context(|| format!("failed to claim fresh smoke dir {}", smoke_dir.display()))?; let repo = smoke_dir.join("repo-body"); fs::create_dir_all(&repo).with_context(|| format!("failed to create {}", repo.display()))?; diff --git a/epiphany-core/src/bin/epiphany-repo-dependency-policy-family-smoke.rs b/epiphany-core/src/bin/epiphany-repo-dependency-policy-family-smoke.rs index b4262e1e..c01174a6 100644 --- a/epiphany-core/src/bin/epiphany-repo-dependency-policy-family-smoke.rs +++ b/epiphany-core/src/bin/epiphany-repo-dependency-policy-family-smoke.rs @@ -53,12 +53,8 @@ fn run_smoke(args: Args) -> Result { .with_context(|| format!("failed to create {}", smoke_root.display()))?; let stamp = Utc::now().format("%Y%m%d-%H%M%S").to_string(); let smoke_dir = smoke_root.join(format!("repo-dependency-policy-request-family-{stamp}")); - if smoke_dir.exists() { - fs::remove_dir_all(&smoke_dir) - .with_context(|| format!("failed to clear {}", smoke_dir.display()))?; - } - fs::create_dir_all(&smoke_dir) - .with_context(|| format!("failed to create {}", smoke_dir.display()))?; + fs::create_dir(&smoke_dir) + .with_context(|| format!("failed to claim fresh smoke dir {}", smoke_dir.display()))?; let repo = smoke_dir.join("repo-body"); fs::create_dir_all(&repo).with_context(|| format!("failed to create {}", repo.display()))?; diff --git a/epiphany-core/src/bin/epiphany-repo-deployment-request-family-smoke.rs b/epiphany-core/src/bin/epiphany-repo-deployment-request-family-smoke.rs index 956df369..e165b0ba 100644 --- a/epiphany-core/src/bin/epiphany-repo-deployment-request-family-smoke.rs +++ b/epiphany-core/src/bin/epiphany-repo-deployment-request-family-smoke.rs @@ -53,12 +53,8 @@ fn run_smoke(args: Args) -> Result { .with_context(|| format!("failed to create {}", smoke_root.display()))?; let stamp = Utc::now().format("%Y%m%d-%H%M%S").to_string(); let smoke_dir = smoke_root.join(format!("repo-deployment-request-family-{stamp}")); - if smoke_dir.exists() { - fs::remove_dir_all(&smoke_dir) - .with_context(|| format!("failed to clear {}", smoke_dir.display()))?; - } - fs::create_dir_all(&smoke_dir) - .with_context(|| format!("failed to create {}", smoke_dir.display()))?; + fs::create_dir(&smoke_dir) + .with_context(|| format!("failed to claim fresh smoke dir {}", smoke_dir.display()))?; let repo = smoke_dir.join("repo-body"); fs::create_dir_all(&repo).with_context(|| format!("failed to create {}", repo.display()))?; diff --git a/epiphany-core/src/bin/epiphany-repo-doctrine-review-family-smoke.rs b/epiphany-core/src/bin/epiphany-repo-doctrine-review-family-smoke.rs index 4b4f8e64..8e9653d8 100644 --- a/epiphany-core/src/bin/epiphany-repo-doctrine-review-family-smoke.rs +++ b/epiphany-core/src/bin/epiphany-repo-doctrine-review-family-smoke.rs @@ -53,12 +53,8 @@ fn run_smoke(args: Args) -> Result { .with_context(|| format!("failed to create {}", smoke_root.display()))?; let stamp = Utc::now().format("%Y%m%d-%H%M%S").to_string(); let smoke_dir = smoke_root.join(format!("repo-doctrine-update-request-family-{stamp}")); - if smoke_dir.exists() { - fs::remove_dir_all(&smoke_dir) - .with_context(|| format!("failed to clear {}", smoke_dir.display()))?; - } - fs::create_dir_all(&smoke_dir) - .with_context(|| format!("failed to create {}", smoke_dir.display()))?; + fs::create_dir(&smoke_dir) + .with_context(|| format!("failed to claim fresh smoke dir {}", smoke_dir.display()))?; let repo = smoke_dir.join("repo-body"); fs::create_dir_all(&repo).with_context(|| format!("failed to create {}", repo.display()))?; diff --git a/epiphany-core/src/bin/epiphany-repo-eve-surface-family-smoke.rs b/epiphany-core/src/bin/epiphany-repo-eve-surface-family-smoke.rs index 4f495dc3..904ebf45 100644 --- a/epiphany-core/src/bin/epiphany-repo-eve-surface-family-smoke.rs +++ b/epiphany-core/src/bin/epiphany-repo-eve-surface-family-smoke.rs @@ -53,12 +53,8 @@ fn run_smoke(args: Args) -> Result { .with_context(|| format!("failed to create {}", smoke_root.display()))?; let stamp = Utc::now().format("%Y%m%d-%H%M%S").to_string(); let smoke_dir = smoke_root.join(format!("repo-eve-surface-family-{stamp}")); - if smoke_dir.exists() { - fs::remove_dir_all(&smoke_dir) - .with_context(|| format!("failed to clear {}", smoke_dir.display()))?; - } - fs::create_dir_all(&smoke_dir) - .with_context(|| format!("failed to create {}", smoke_dir.display()))?; + fs::create_dir(&smoke_dir) + .with_context(|| format!("failed to claim fresh smoke dir {}", smoke_dir.display()))?; let repo = smoke_dir.join("repo-body"); fs::create_dir_all(&repo).with_context(|| format!("failed to create {}", repo.display()))?; diff --git a/epiphany-core/src/bin/epiphany-repo-interpreter-brief-family-smoke.rs b/epiphany-core/src/bin/epiphany-repo-interpreter-brief-family-smoke.rs index bf91dbf0..5cd557b9 100644 --- a/epiphany-core/src/bin/epiphany-repo-interpreter-brief-family-smoke.rs +++ b/epiphany-core/src/bin/epiphany-repo-interpreter-brief-family-smoke.rs @@ -53,12 +53,8 @@ fn run_smoke(args: Args) -> Result { .with_context(|| format!("failed to create {}", smoke_root.display()))?; let stamp = Utc::now().format("%Y%m%d-%H%M%S").to_string(); let smoke_dir = smoke_root.join(format!("repo-interpreter-brief-family-{stamp}")); - if smoke_dir.exists() { - fs::remove_dir_all(&smoke_dir) - .with_context(|| format!("failed to clear {}", smoke_dir.display()))?; - } - fs::create_dir_all(&smoke_dir) - .with_context(|| format!("failed to create {}", smoke_dir.display()))?; + fs::create_dir(&smoke_dir) + .with_context(|| format!("failed to claim fresh smoke dir {}", smoke_dir.display()))?; let repo = smoke_dir.join("repo-body"); fs::create_dir_all(&repo).with_context(|| format!("failed to create {}", repo.display()))?; diff --git a/epiphany-core/src/bin/epiphany-repo-maintainer-review-request-family-smoke.rs b/epiphany-core/src/bin/epiphany-repo-maintainer-review-request-family-smoke.rs index 6354272e..79015ba3 100644 --- a/epiphany-core/src/bin/epiphany-repo-maintainer-review-request-family-smoke.rs +++ b/epiphany-core/src/bin/epiphany-repo-maintainer-review-request-family-smoke.rs @@ -53,12 +53,8 @@ fn run_smoke(args: Args) -> Result { .with_context(|| format!("failed to create {}", smoke_root.display()))?; let stamp = Utc::now().format("%Y%m%d-%H%M%S").to_string(); let smoke_dir = smoke_root.join(format!("repo-maintainer-review-request-family-{stamp}")); - if smoke_dir.exists() { - fs::remove_dir_all(&smoke_dir) - .with_context(|| format!("failed to clear {}", smoke_dir.display()))?; - } - fs::create_dir_all(&smoke_dir) - .with_context(|| format!("failed to create {}", smoke_dir.display()))?; + fs::create_dir(&smoke_dir) + .with_context(|| format!("failed to claim fresh smoke dir {}", smoke_dir.display()))?; let repo = smoke_dir.join("repo-body"); fs::create_dir_all(&repo).with_context(|| format!("failed to create {}", repo.display()))?; diff --git a/epiphany-core/src/bin/epiphany-repo-manifest-family-smoke.rs b/epiphany-core/src/bin/epiphany-repo-manifest-family-smoke.rs index 8c8278e6..c1a19f09 100644 --- a/epiphany-core/src/bin/epiphany-repo-manifest-family-smoke.rs +++ b/epiphany-core/src/bin/epiphany-repo-manifest-family-smoke.rs @@ -53,12 +53,8 @@ fn run_smoke(args: Args) -> Result { .with_context(|| format!("failed to create {}", smoke_root.display()))?; let stamp = Utc::now().format("%Y%m%d-%H%M%S").to_string(); let smoke_dir = smoke_root.join(format!("repo-manifest-family-{stamp}")); - if smoke_dir.exists() { - fs::remove_dir_all(&smoke_dir) - .with_context(|| format!("failed to clear {}", smoke_dir.display()))?; - } - fs::create_dir_all(&smoke_dir) - .with_context(|| format!("failed to create {}", smoke_dir.display()))?; + fs::create_dir(&smoke_dir) + .with_context(|| format!("failed to claim fresh smoke dir {}", smoke_dir.display()))?; let repo = smoke_dir.join("repo-body"); fs::create_dir_all(&repo).with_context(|| format!("failed to create {}", repo.display()))?; diff --git a/epiphany-core/src/bin/epiphany-repo-mind-evidence-guard-smoke.rs b/epiphany-core/src/bin/epiphany-repo-mind-evidence-guard-smoke.rs index 8380446c..a840d218 100644 --- a/epiphany-core/src/bin/epiphany-repo-mind-evidence-guard-smoke.rs +++ b/epiphany-core/src/bin/epiphany-repo-mind-evidence-guard-smoke.rs @@ -53,12 +53,8 @@ fn run_smoke(args: Args) -> Result { .with_context(|| format!("failed to create {}", smoke_root.display()))?; let stamp = Utc::now().format("%Y%m%d-%H%M%S").to_string(); let smoke_dir = smoke_root.join(format!("repo-mind-evidence-guard-{stamp}")); - if smoke_dir.exists() { - fs::remove_dir_all(&smoke_dir) - .with_context(|| format!("failed to clear {}", smoke_dir.display()))?; - } - fs::create_dir_all(&smoke_dir) - .with_context(|| format!("failed to create {}", smoke_dir.display()))?; + fs::create_dir(&smoke_dir) + .with_context(|| format!("failed to claim fresh smoke dir {}", smoke_dir.display()))?; let repo = smoke_dir.join("repo-body"); fs::create_dir_all(&repo).with_context(|| format!("failed to create {}", repo.display()))?; diff --git a/epiphany-core/src/bin/epiphany-repo-mind-path-guard-smoke.rs b/epiphany-core/src/bin/epiphany-repo-mind-path-guard-smoke.rs index 0869dd0a..c6d9e1f0 100644 --- a/epiphany-core/src/bin/epiphany-repo-mind-path-guard-smoke.rs +++ b/epiphany-core/src/bin/epiphany-repo-mind-path-guard-smoke.rs @@ -53,12 +53,8 @@ fn run_smoke(args: Args) -> Result { .with_context(|| format!("failed to create {}", smoke_root.display()))?; let stamp = Utc::now().format("%Y%m%d-%H%M%S").to_string(); let smoke_dir = smoke_root.join(format!("repo-mind-path-guard-{stamp}")); - if smoke_dir.exists() { - fs::remove_dir_all(&smoke_dir) - .with_context(|| format!("failed to clear {}", smoke_dir.display()))?; - } - fs::create_dir_all(&smoke_dir) - .with_context(|| format!("failed to create {}", smoke_dir.display()))?; + fs::create_dir(&smoke_dir) + .with_context(|| format!("failed to claim fresh smoke dir {}", smoke_dir.display()))?; let repo = smoke_dir.join("repo-body"); fs::create_dir_all(&repo).with_context(|| format!("failed to create {}", repo.display()))?; diff --git a/epiphany-core/src/bin/epiphany-repo-mind-safe-family-guard-smoke.rs b/epiphany-core/src/bin/epiphany-repo-mind-safe-family-guard-smoke.rs index 337dd8d1..78b86ff0 100644 --- a/epiphany-core/src/bin/epiphany-repo-mind-safe-family-guard-smoke.rs +++ b/epiphany-core/src/bin/epiphany-repo-mind-safe-family-guard-smoke.rs @@ -53,12 +53,8 @@ fn run_smoke(args: Args) -> Result { .with_context(|| format!("failed to create {}", smoke_root.display()))?; let stamp = Utc::now().format("%Y%m%d-%H%M%S").to_string(); let smoke_dir = smoke_root.join(format!("repo-mind-safe-family-guard-{stamp}")); - if smoke_dir.exists() { - fs::remove_dir_all(&smoke_dir) - .with_context(|| format!("failed to clear {}", smoke_dir.display()))?; - } - fs::create_dir_all(&smoke_dir) - .with_context(|| format!("failed to create {}", smoke_dir.display()))?; + fs::create_dir(&smoke_dir) + .with_context(|| format!("failed to claim fresh smoke dir {}", smoke_dir.display()))?; let repo = smoke_dir.join("repo-body"); fs::create_dir_all(&repo).with_context(|| format!("failed to create {}", repo.display()))?; diff --git a/epiphany-core/src/bin/epiphany-repo-objective-draft-family-smoke.rs b/epiphany-core/src/bin/epiphany-repo-objective-draft-family-smoke.rs index 20a0f9b2..4a563d55 100644 --- a/epiphany-core/src/bin/epiphany-repo-objective-draft-family-smoke.rs +++ b/epiphany-core/src/bin/epiphany-repo-objective-draft-family-smoke.rs @@ -53,12 +53,8 @@ fn run_smoke(args: Args) -> Result { .with_context(|| format!("failed to create {}", smoke_root.display()))?; let stamp = Utc::now().format("%Y%m%d-%H%M%S").to_string(); let smoke_dir = smoke_root.join(format!("repo-objective-draft-family-{stamp}")); - if smoke_dir.exists() { - fs::remove_dir_all(&smoke_dir) - .with_context(|| format!("failed to clear {}", smoke_dir.display()))?; - } - fs::create_dir_all(&smoke_dir) - .with_context(|| format!("failed to create {}", smoke_dir.display()))?; + fs::create_dir(&smoke_dir) + .with_context(|| format!("failed to claim fresh smoke dir {}", smoke_dir.display()))?; let repo = smoke_dir.join("repo-body"); fs::create_dir_all(&repo).with_context(|| format!("failed to create {}", repo.display()))?; diff --git a/epiphany-core/src/bin/epiphany-repo-planning-brief-family-smoke.rs b/epiphany-core/src/bin/epiphany-repo-planning-brief-family-smoke.rs index cd8014df..027e0677 100644 --- a/epiphany-core/src/bin/epiphany-repo-planning-brief-family-smoke.rs +++ b/epiphany-core/src/bin/epiphany-repo-planning-brief-family-smoke.rs @@ -53,12 +53,8 @@ fn run_smoke(args: Args) -> Result { .with_context(|| format!("failed to create {}", smoke_root.display()))?; let stamp = Utc::now().format("%Y%m%d-%H%M%S").to_string(); let smoke_dir = smoke_root.join(format!("repo-planning-brief-family-{stamp}")); - if smoke_dir.exists() { - fs::remove_dir_all(&smoke_dir) - .with_context(|| format!("failed to clear {}", smoke_dir.display()))?; - } - fs::create_dir_all(&smoke_dir) - .with_context(|| format!("failed to create {}", smoke_dir.display()))?; + fs::create_dir(&smoke_dir) + .with_context(|| format!("failed to claim fresh smoke dir {}", smoke_dir.display()))?; let repo = smoke_dir.join("repo-body"); fs::create_dir_all(&repo).with_context(|| format!("failed to create {}", repo.display()))?; diff --git a/epiphany-core/src/bin/epiphany-repo-planning-facets-smoke.rs b/epiphany-core/src/bin/epiphany-repo-planning-facets-smoke.rs index 863890f4..b37ebe8a 100644 --- a/epiphany-core/src/bin/epiphany-repo-planning-facets-smoke.rs +++ b/epiphany-core/src/bin/epiphany-repo-planning-facets-smoke.rs @@ -53,12 +53,8 @@ fn run_smoke(args: Args) -> Result { .with_context(|| format!("failed to create {}", smoke_root.display()))?; let stamp = Utc::now().format("%Y%m%d-%H%M%S").to_string(); let smoke_dir = smoke_root.join(format!("repo-planning-facets-{stamp}")); - if smoke_dir.exists() { - fs::remove_dir_all(&smoke_dir) - .with_context(|| format!("failed to clear {}", smoke_dir.display()))?; - } - fs::create_dir_all(&smoke_dir) - .with_context(|| format!("failed to create {}", smoke_dir.display()))?; + fs::create_dir(&smoke_dir) + .with_context(|| format!("failed to claim fresh smoke dir {}", smoke_dir.display()))?; let repo = smoke_dir.join("repo-body"); fs::create_dir_all(&repo).with_context(|| format!("failed to create {}", repo.display()))?; diff --git a/epiphany-core/src/bin/epiphany-repo-pr-request-family-smoke.rs b/epiphany-core/src/bin/epiphany-repo-pr-request-family-smoke.rs index b15d4c8e..953aae58 100644 --- a/epiphany-core/src/bin/epiphany-repo-pr-request-family-smoke.rs +++ b/epiphany-core/src/bin/epiphany-repo-pr-request-family-smoke.rs @@ -53,12 +53,8 @@ fn run_smoke(args: Args) -> Result { .with_context(|| format!("failed to create {}", smoke_root.display()))?; let stamp = Utc::now().format("%Y%m%d-%H%M%S").to_string(); let smoke_dir = smoke_root.join(format!("repo-pr-request-family-{stamp}")); - if smoke_dir.exists() { - fs::remove_dir_all(&smoke_dir) - .with_context(|| format!("failed to clear {}", smoke_dir.display()))?; - } - fs::create_dir_all(&smoke_dir) - .with_context(|| format!("failed to create {}", smoke_dir.display()))?; + fs::create_dir(&smoke_dir) + .with_context(|| format!("failed to claim fresh smoke dir {}", smoke_dir.display()))?; let repo = smoke_dir.join("repo-body"); fs::create_dir_all(&repo).with_context(|| format!("failed to create {}", repo.display()))?; diff --git a/epiphany-core/src/bin/epiphany-repo-publication-request-family-smoke.rs b/epiphany-core/src/bin/epiphany-repo-publication-request-family-smoke.rs index 109957c9..0906822e 100644 --- a/epiphany-core/src/bin/epiphany-repo-publication-request-family-smoke.rs +++ b/epiphany-core/src/bin/epiphany-repo-publication-request-family-smoke.rs @@ -53,12 +53,8 @@ fn run_smoke(args: Args) -> Result { .with_context(|| format!("failed to create {}", smoke_root.display()))?; let stamp = Utc::now().format("%Y%m%d-%H%M%S").to_string(); let smoke_dir = smoke_root.join(format!("repo-publication-request-family-{stamp}")); - if smoke_dir.exists() { - fs::remove_dir_all(&smoke_dir) - .with_context(|| format!("failed to clear {}", smoke_dir.display()))?; - } - fs::create_dir_all(&smoke_dir) - .with_context(|| format!("failed to create {}", smoke_dir.display()))?; + fs::create_dir(&smoke_dir) + .with_context(|| format!("failed to claim fresh smoke dir {}", smoke_dir.display()))?; let repo = smoke_dir.join("repo-body"); fs::create_dir_all(&repo).with_context(|| format!("failed to create {}", repo.display()))?; diff --git a/epiphany-core/src/bin/epiphany-repo-readiness-review-request-family-smoke.rs b/epiphany-core/src/bin/epiphany-repo-readiness-review-request-family-smoke.rs index 0bc1ce34..a1edbed6 100644 --- a/epiphany-core/src/bin/epiphany-repo-readiness-review-request-family-smoke.rs +++ b/epiphany-core/src/bin/epiphany-repo-readiness-review-request-family-smoke.rs @@ -53,12 +53,8 @@ fn run_smoke(args: Args) -> Result { .with_context(|| format!("failed to create {}", smoke_root.display()))?; let stamp = Utc::now().format("%Y%m%d-%H%M%S").to_string(); let smoke_dir = smoke_root.join(format!("repo-readiness-review-request-family-{stamp}")); - if smoke_dir.exists() { - fs::remove_dir_all(&smoke_dir) - .with_context(|| format!("failed to clear {}", smoke_dir.display()))?; - } - fs::create_dir_all(&smoke_dir) - .with_context(|| format!("failed to create {}", smoke_dir.display()))?; + fs::create_dir(&smoke_dir) + .with_context(|| format!("failed to claim fresh smoke dir {}", smoke_dir.display()))?; let repo = smoke_dir.join("repo-body"); fs::create_dir_all(&repo).with_context(|| format!("failed to create {}", repo.display()))?; diff --git a/epiphany-core/src/bin/epiphany-repo-scheduling-request-family-smoke.rs b/epiphany-core/src/bin/epiphany-repo-scheduling-request-family-smoke.rs index 1cc78818..ed393973 100644 --- a/epiphany-core/src/bin/epiphany-repo-scheduling-request-family-smoke.rs +++ b/epiphany-core/src/bin/epiphany-repo-scheduling-request-family-smoke.rs @@ -53,12 +53,8 @@ fn run_smoke(args: Args) -> Result { .with_context(|| format!("failed to create {}", smoke_root.display()))?; let stamp = Utc::now().format("%Y%m%d-%H%M%S").to_string(); let smoke_dir = smoke_root.join(format!("repo-scheduling-request-family-{stamp}")); - if smoke_dir.exists() { - fs::remove_dir_all(&smoke_dir) - .with_context(|| format!("failed to clear {}", smoke_dir.display()))?; - } - fs::create_dir_all(&smoke_dir) - .with_context(|| format!("failed to create {}", smoke_dir.display()))?; + fs::create_dir(&smoke_dir) + .with_context(|| format!("failed to claim fresh smoke dir {}", smoke_dir.display()))?; let repo = smoke_dir.join("repo-body"); fs::create_dir_all(&repo).with_context(|| format!("failed to create {}", repo.display()))?; diff --git a/epiphany-core/src/bin/epiphany-repo-secret-policy-family-smoke.rs b/epiphany-core/src/bin/epiphany-repo-secret-policy-family-smoke.rs index 0b1c6139..8a296e66 100644 --- a/epiphany-core/src/bin/epiphany-repo-secret-policy-family-smoke.rs +++ b/epiphany-core/src/bin/epiphany-repo-secret-policy-family-smoke.rs @@ -53,12 +53,8 @@ fn run_smoke(args: Args) -> Result { .with_context(|| format!("failed to create {}", smoke_root.display()))?; let stamp = Utc::now().format("%Y%m%d-%H%M%S").to_string(); let smoke_dir = smoke_root.join(format!("repo-secret-policy-request-family-{stamp}")); - if smoke_dir.exists() { - fs::remove_dir_all(&smoke_dir) - .with_context(|| format!("failed to clear {}", smoke_dir.display()))?; - } - fs::create_dir_all(&smoke_dir) - .with_context(|| format!("failed to create {}", smoke_dir.display()))?; + fs::create_dir(&smoke_dir) + .with_context(|| format!("failed to claim fresh smoke dir {}", smoke_dir.display()))?; let repo = smoke_dir.join("repo-body"); fs::create_dir_all(&repo).with_context(|| format!("failed to create {}", repo.display()))?; diff --git a/epiphany-core/src/bin/epiphany-repo-sync-request-family-smoke.rs b/epiphany-core/src/bin/epiphany-repo-sync-request-family-smoke.rs index 52fcd2ea..bf84e44f 100644 --- a/epiphany-core/src/bin/epiphany-repo-sync-request-family-smoke.rs +++ b/epiphany-core/src/bin/epiphany-repo-sync-request-family-smoke.rs @@ -53,12 +53,8 @@ fn run_smoke(args: Args) -> Result { .with_context(|| format!("failed to create {}", smoke_root.display()))?; let stamp = Utc::now().format("%Y%m%d-%H%M%S").to_string(); let smoke_dir = smoke_root.join(format!("repo-sync-request-family-{stamp}")); - if smoke_dir.exists() { - fs::remove_dir_all(&smoke_dir) - .with_context(|| format!("failed to clear {}", smoke_dir.display()))?; - } - fs::create_dir_all(&smoke_dir) - .with_context(|| format!("failed to create {}", smoke_dir.display()))?; + fs::create_dir(&smoke_dir) + .with_context(|| format!("failed to claim fresh smoke dir {}", smoke_dir.display()))?; let repo = smoke_dir.join("repo-body"); fs::create_dir_all(&repo).with_context(|| format!("failed to create {}", repo.display()))?; diff --git a/epiphany-core/src/bin/epiphany-repo-tool-capabilities-family-smoke.rs b/epiphany-core/src/bin/epiphany-repo-tool-capabilities-family-smoke.rs index 1d09281d..864397c8 100644 --- a/epiphany-core/src/bin/epiphany-repo-tool-capabilities-family-smoke.rs +++ b/epiphany-core/src/bin/epiphany-repo-tool-capabilities-family-smoke.rs @@ -53,12 +53,8 @@ fn run_smoke(args: Args) -> Result { .with_context(|| format!("failed to create {}", smoke_root.display()))?; let stamp = Utc::now().format("%Y%m%d-%H%M%S").to_string(); let smoke_dir = smoke_root.join(format!("repo-tool-capabilities-family-{stamp}")); - if smoke_dir.exists() { - fs::remove_dir_all(&smoke_dir) - .with_context(|| format!("failed to clear {}", smoke_dir.display()))?; - } - fs::create_dir_all(&smoke_dir) - .with_context(|| format!("failed to create {}", smoke_dir.display()))?; + fs::create_dir(&smoke_dir) + .with_context(|| format!("failed to claim fresh smoke dir {}", smoke_dir.display()))?; let repo = smoke_dir.join("repo-body"); fs::create_dir_all(&repo).with_context(|| format!("failed to create {}", repo.display()))?; diff --git a/epiphany-core/src/bin/epiphany-repo-tool-request-family-smoke.rs b/epiphany-core/src/bin/epiphany-repo-tool-request-family-smoke.rs index 1b588634..53c9b51a 100644 --- a/epiphany-core/src/bin/epiphany-repo-tool-request-family-smoke.rs +++ b/epiphany-core/src/bin/epiphany-repo-tool-request-family-smoke.rs @@ -53,12 +53,8 @@ fn run_smoke(args: Args) -> Result { .with_context(|| format!("failed to create {}", smoke_root.display()))?; let stamp = Utc::now().format("%Y%m%d-%H%M%S").to_string(); let smoke_dir = smoke_root.join(format!("repo-tool-request-family-{stamp}")); - if smoke_dir.exists() { - fs::remove_dir_all(&smoke_dir) - .with_context(|| format!("failed to clear {}", smoke_dir.display()))?; - } - fs::create_dir_all(&smoke_dir) - .with_context(|| format!("failed to create {}", smoke_dir.display()))?; + fs::create_dir(&smoke_dir) + .with_context(|| format!("failed to claim fresh smoke dir {}", smoke_dir.display()))?; let repo = smoke_dir.join("repo-body"); fs::create_dir_all(&repo).with_context(|| format!("failed to create {}", repo.display()))?; diff --git a/epiphany-core/src/bin/epiphany-repo-verification-request-family-smoke.rs b/epiphany-core/src/bin/epiphany-repo-verification-request-family-smoke.rs index 6b48dc75..213e9b3d 100644 --- a/epiphany-core/src/bin/epiphany-repo-verification-request-family-smoke.rs +++ b/epiphany-core/src/bin/epiphany-repo-verification-request-family-smoke.rs @@ -53,12 +53,8 @@ fn run_smoke(args: Args) -> Result { .with_context(|| format!("failed to create {}", smoke_root.display()))?; let stamp = Utc::now().format("%Y%m%d-%H%M%S").to_string(); let smoke_dir = smoke_root.join(format!("repo-verification-request-family-{stamp}")); - if smoke_dir.exists() { - fs::remove_dir_all(&smoke_dir) - .with_context(|| format!("failed to clear {}", smoke_dir.display()))?; - } - fs::create_dir_all(&smoke_dir) - .with_context(|| format!("failed to create {}", smoke_dir.display()))?; + fs::create_dir(&smoke_dir) + .with_context(|| format!("failed to claim fresh smoke dir {}", smoke_dir.display()))?; let repo = smoke_dir.join("repo-body"); fs::create_dir_all(&repo).with_context(|| format!("failed to create {}", repo.display()))?; diff --git a/epiphany-core/src/bin/epiphany-repo-work-order-family-smoke.rs b/epiphany-core/src/bin/epiphany-repo-work-order-family-smoke.rs index 1da20e2f..4cf01a72 100644 --- a/epiphany-core/src/bin/epiphany-repo-work-order-family-smoke.rs +++ b/epiphany-core/src/bin/epiphany-repo-work-order-family-smoke.rs @@ -53,12 +53,8 @@ fn run_smoke(args: Args) -> Result { .with_context(|| format!("failed to create {}", smoke_root.display()))?; let stamp = Utc::now().format("%Y%m%d-%H%M%S").to_string(); let smoke_dir = smoke_root.join(format!("repo-work-order-family-{stamp}")); - if smoke_dir.exists() { - fs::remove_dir_all(&smoke_dir) - .with_context(|| format!("failed to clear {}", smoke_dir.display()))?; - } - fs::create_dir_all(&smoke_dir) - .with_context(|| format!("failed to create {}", smoke_dir.display()))?; + fs::create_dir(&smoke_dir) + .with_context(|| format!("failed to claim fresh smoke dir {}", smoke_dir.display()))?; let repo = smoke_dir.join("repo-body"); fs::create_dir_all(&repo).with_context(|| format!("failed to create {}", repo.display()))?; diff --git a/epiphany-core/src/bin/epiphany-repo-work-service-lifecycle-smoke.rs b/epiphany-core/src/bin/epiphany-repo-work-service-lifecycle-smoke.rs index e690fcad..731f55d8 100644 --- a/epiphany-core/src/bin/epiphany-repo-work-service-lifecycle-smoke.rs +++ b/epiphany-core/src/bin/epiphany-repo-work-service-lifecycle-smoke.rs @@ -55,12 +55,8 @@ fn run_smoke(args: Args) -> Result { .with_context(|| format!("failed to create {}", smoke_root.display()))?; let stamp = Utc::now().format("%Y%m%d-%H%M%S").to_string(); let smoke_dir = smoke_root.join(format!("repo-work-service-lifecycle-{stamp}")); - if smoke_dir.exists() { - fs::remove_dir_all(&smoke_dir) - .with_context(|| format!("failed to clear {}", smoke_dir.display()))?; - } - fs::create_dir_all(&smoke_dir) - .with_context(|| format!("failed to create {}", smoke_dir.display()))?; + fs::create_dir(&smoke_dir) + .with_context(|| format!("failed to claim fresh smoke dir {}", smoke_dir.display()))?; let repo = smoke_dir.join("repo-body"); fs::create_dir_all(&repo).with_context(|| format!("failed to create {}", repo.display()))?; diff --git a/notes/conceptual-substitution-audit-2026-07-12.md b/notes/conceptual-substitution-audit-2026-07-12.md index 959cd5f8..bde96580 100644 --- a/notes/conceptual-substitution-audit-2026-07-12.md +++ b/notes/conceptual-substitution-audit-2026-07-12.md @@ -851,6 +851,15 @@ the quarantine. Reset now canonicalizes the quarantine and target immediately before actuation and requires a strict descendant. A traversal-negative test proves path spelling cannot grant deletion authority. +## Timestamp freshness substituted for reset authority + +Thirty-two family/lifecycle smoke binaries created second-stamped directories, +then recursively deleted the leaf if it already existed. A timestamp is a name, +not deletion authority; an occupied leaf could be an attacker-controlled +junction. These smokes now claim the fresh leaf with `create_dir` and fail +closed on collision. They have no reset path and therefore no recursive-delete +authority to redirect. + ## Unresolved: provider receipts without chronology Bifrost body-change/GitHub publication receipts are externally owned and their diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index ced914b8..ee8263e1 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -250,6 +250,10 @@ destructive scope. deletion. Continue the same resolved-containment audit across remaining smoke reset helpers. +The 32 repeated timestamped family/lifecycle smokes no longer reset occupied +leaves. They atomically claim a fresh directory with `create_dir` and fail on +collision, removing their recursive-delete authority entirely. + The latest structural count is 32 closure family branches, 744 remaining substring assertions in the closure region, and 1,284 lines in `closure_contracts.rs`. Do not blindly generate a struct forest for every diff --git a/state/ledgers.msgpack b/state/ledgers.msgpack index d732e5514a5668cd4c1329a392239ace608aa696..f445c965a8211c3cbcaf86d6922f8b1a91d8279c 100644 GIT binary patch delta 379 zcmYL^u}T9$5Qg2TcaVq(R>Bbm1X0ik5g}-=r9nHJuKeng5?XCjKdT*uPjfZK2 z1?svOSPCo$qPJ-yZZ&;Bj@MY%&k~kQKH2Fx7J7s!7!;+kG{U_UB{~FNx?CG_6=X&i zaL@%u1zN|8VUTCMAX)88%1~57BG^LTAY75+hR}B4#GuXprV{xGEpUUN^cc9)1qm+Y zqyiy%xSGP4Tn@q@cQ{DN09PppEhSmf%7%9&gH~Hicfo2HO0Ha3yDpV*bA{kaX$Pco z45mXIi|#)|2QGAJM6ik6h#WFfsfD)EL0IRne-479?X7u^y4^YUAK%fsZ{J6;|9Xxh Jf7Xgue*v4>hA;pC delta 60 zcmbO}M`poHnGKSRTxM3LCQ-*2*tu&rD>D`{GWs`9Won