From 6b2473618b69b53db3c8d62b561684d38634f63e Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 12 Jul 2026 23:57:40 +0100 Subject: [PATCH] Contain supervisor smoke lifecycle state --- .../src/bin/epiphany-daemon-supervisor.rs | 14 ++++++++++++-- ...onceptual-substitution-audit-2026-07-12.md | 9 +++++++++ notes/fresh-workspace-handoff.md | 3 +++ state/ledgers.msgpack | Bin 447901 -> 448271 bytes state/map.yaml | 2 +- 5 files changed, 25 insertions(+), 3 deletions(-) diff --git a/epiphany-core/src/bin/epiphany-daemon-supervisor.rs b/epiphany-core/src/bin/epiphany-daemon-supervisor.rs index 1bc7eb7e..38bdcf92 100644 --- a/epiphany-core/src/bin/epiphany-daemon-supervisor.rs +++ b/epiphany-core/src/bin/epiphany-daemon-supervisor.rs @@ -155,11 +155,21 @@ fn require_supervisor_bootstrap(args: &Args) -> Result<()> { } fn seed_supervisor_smoke_fixture(args: &Args) -> Result<()> { - if !args + if args .store .components() - .any(|component| component.as_os_str() == ".epiphany-smoke") + .any(|component| matches!(component, std::path::Component::ParentDir)) { + anyhow::bail!("daemon-supervisor smoke store may not contain parent traversal"); + } + let workspace = env::current_dir()?.canonicalize()?; + let smoke_root = workspace.join(".epiphany-smoke"); + let store = if args.store.is_absolute() { + args.store.clone() + } else { + workspace.join(&args.store) + }; + if !store.starts_with(&smoke_root) { anyhow::bail!("daemon-supervisor smoke fixtures may write only beneath .epiphany-smoke"); } seed_epiphany_local_verse_context( diff --git a/notes/conceptual-substitution-audit-2026-07-12.md b/notes/conceptual-substitution-audit-2026-07-12.md index be89ef19..79a8e739 100644 --- a/notes/conceptual-substitution-audit-2026-07-12.md +++ b/notes/conceptual-substitution-audit-2026-07-12.md @@ -440,3 +440,12 @@ binary could contaminate live Verse state with its own Idunn fiction. The whole service-lifecycle fixture/readback segment and its now-dead helper functions are deleted. Lifecycle fixtures belong to focused daemon-supervisor smokes in quarantined stores; query smoke no longer authors service truth. + +## Lexical smoke quarantine escape + +Daemon-supervisor audit smokes checked only whether some store-path component +was named `.epiphany-smoke`. A path such as `.epiphany-smoke/../live.ccmp` +passed that check and escaped before synthetic lifecycle writes. Smoke seeding +now rejects parent traversal and requires the absolute store path to be beneath +the current workspace's `.epiphany-smoke` root. Negative execution proves both +traversal and an external absolute store are refused before file creation. diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index 56594619..a738b35f 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -112,6 +112,9 @@ The confirmed conceptual substitutions have been cut: - verse-query's mega-smoke no longer writes synthetic Idunn service runbooks or lifecycle receipts into its selected store and then verifies its own state. Focused daemon-supervisor smokes own quarantined lifecycle fixtures. +- daemon-supervisor smoke confinement is real containment, not component-name + matching: parent traversal and stores outside workspace `.epiphany-smoke` + are refused before fixture seeding. The presentation boundary is now plain: `swarm overview` is a generic compact read-only projection. Gjallar is a downstream TUI application on Nightwing and is not an Epiphany organ, provider, owner, runtime, or architectural dependency. Eve/CultUI graphs may be lowered or composited downstream without Epiphany caring which presentation client does it. diff --git a/state/ledgers.msgpack b/state/ledgers.msgpack index 6ff683024a6e4defca248bf9737601ac5068a281..430906908f917976a6a6cfb3644acdd417cfa447 100644 GIT binary patch delta 346 zcmY+8ze>bF5Qk0f62!{JLJna-1RH~ea-g06YHPbqGP$gYySdrTC1P=fg?0x*NaYiV zB3SqaTC4aL;xjn0yW+<%{FraP`-j2oY4E)2EDiT|w$I)c{O_Nab!Y52o7atd)3^?& zn>|jSbeqErd-0O(Y5o;6&E8Bm{#P zOEm(eDlF~3J#H3S7WX>#NBdOIsw0EEW#ve>VeiZ-! delta 56 zcmeBQCp~wy^ae>rE)y$b%cx@vY*(r_D>D`{GO9OEWon