From 65973ea45800d903407b7ce2195e4ada02988404 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 12 Jul 2026 20:41:46 +0100 Subject: [PATCH] Confine standalone receipt smokes --- ...any-repo-deployment-config-family-smoke.rs | 22 +++++-------- .../bin/epiphany-weksa-interlingua-smoke.rs | 31 ++++++++---------- notes/epiphany-current-algorithmic-map.md | 7 ++++ notes/fresh-workspace-handoff.md | 4 +++ ...eipt-writer-provenance-audit-2026-07-12.md | 10 ++++-- state/ledgers.msgpack | Bin 433145 -> 433549 bytes state/map.yaml | 2 +- 7 files changed, 42 insertions(+), 34 deletions(-) diff --git a/epiphany-core/src/bin/epiphany-repo-deployment-config-family-smoke.rs b/epiphany-core/src/bin/epiphany-repo-deployment-config-family-smoke.rs index fe4a8b01..288ce740 100644 --- a/epiphany-core/src/bin/epiphany-repo-deployment-config-family-smoke.rs +++ b/epiphany-core/src/bin/epiphany-repo-deployment-config-family-smoke.rs @@ -1,13 +1,13 @@ +use anyhow::anyhow; use anyhow::Context; use anyhow::Result; -use anyhow::anyhow; use chrono::Utc; -use epiphany_core::EpiphanyCultMeshIdunnAftercareAuditReceiptEntry; -use epiphany_core::EpiphanyCultMeshIdunnDeploymentReceiptEntry; use epiphany_core::write_epiphany_cultmesh_idunn_aftercare_audit_receipt; use epiphany_core::write_epiphany_cultmesh_idunn_deployment_receipt; -use serde_json::Value; +use epiphany_core::EpiphanyCultMeshIdunnAftercareAuditReceiptEntry; +use epiphany_core::EpiphanyCultMeshIdunnDeploymentReceiptEntry; use serde_json::json; +use serde_json::Value; use std::env; use std::fs; use std::path::Path; @@ -24,22 +24,19 @@ fn main() -> Result<()> { #[derive(Clone, Debug)] struct Args { root: PathBuf, - smoke_root: PathBuf, } impl Args { fn parse() -> Result { let mut root = env::current_dir().context("failed to resolve current directory")?; - let mut smoke_root = root.join(".epiphany-smoke"); let mut args = env::args().skip(1).peekable(); while let Some(arg) = args.next() { match arg.as_str() { "--root" => root = take_path(&mut args, "--root")?, - "--smoke-root" => smoke_root = take_path(&mut args, "--smoke-root")?, other => return Err(anyhow!("unexpected argument {other:?}")), } } - Ok(Self { root, smoke_root }) + Ok(Self { root }) } } @@ -55,12 +52,11 @@ fn run_smoke(args: Args) -> Result { manifest.display() )); } - fs::create_dir_all(&args.smoke_root) - .with_context(|| format!("failed to create {}", args.smoke_root.display()))?; + let smoke_root = root.join(".epiphany-smoke"); + fs::create_dir_all(&smoke_root) + .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 = args - .smoke_root - .join(format!("repo-deployment-config-family-{stamp}")); + let smoke_dir = smoke_root.join(format!("repo-deployment-config-family-{stamp}")); if smoke_dir.exists() { fs::remove_dir_all(&smoke_dir) .with_context(|| format!("failed to clear {}", smoke_dir.display()))?; diff --git a/epiphany-core/src/bin/epiphany-weksa-interlingua-smoke.rs b/epiphany-core/src/bin/epiphany-weksa-interlingua-smoke.rs index 1fc62a2a..1dd16e57 100644 --- a/epiphany-core/src/bin/epiphany-weksa-interlingua-smoke.rs +++ b/epiphany-core/src/bin/epiphany-weksa-interlingua-smoke.rs @@ -1,31 +1,28 @@ use anyhow::Result; use chrono::Utc; -use epiphany_core::EPIPHANY_CULTMESH_LOCAL_AREA_VERSE_ID; -use epiphany_core::EPIPHANY_CULTMESH_WEKSA_LOWERING_RECEIPT_SCHEMA_VERSION; -use epiphany_core::EpiphanyCultMeshWeksaLoweringReceiptEntry; -use epiphany_core::WEKSA_INTERLINGUA_PACKET_SCHEMA_VERSION; -use epiphany_core::WEKSA_TARGET_LOWERING_RECEIPT_SCHEMA_VERSION; -use epiphany_core::WEKSA_TARGET_LOWERING_REQUEST_SCHEMA_VERSION; -use epiphany_core::WeksaInterlinguaInput; -use epiphany_core::WeksaSpeakerContext; use epiphany_core::build_weksa_interlingua_packet; use epiphany_core::build_weksa_lowering_prompt; use epiphany_core::build_weksa_target_lowering_request; use epiphany_core::load_latest_epiphany_cultmesh_weksa_lowering_receipt; use epiphany_core::record_weksa_target_lowering_receipt; use epiphany_core::write_epiphany_cultmesh_weksa_lowering_receipt; -use std::env; +use epiphany_core::EpiphanyCultMeshWeksaLoweringReceiptEntry; +use epiphany_core::WeksaInterlinguaInput; +use epiphany_core::WeksaSpeakerContext; +use epiphany_core::EPIPHANY_CULTMESH_LOCAL_AREA_VERSE_ID; +use epiphany_core::EPIPHANY_CULTMESH_WEKSA_LOWERING_RECEIPT_SCHEMA_VERSION; +use epiphany_core::WEKSA_INTERLINGUA_PACKET_SCHEMA_VERSION; +use epiphany_core::WEKSA_TARGET_LOWERING_RECEIPT_SCHEMA_VERSION; +use epiphany_core::WEKSA_TARGET_LOWERING_REQUEST_SCHEMA_VERSION; use std::path::PathBuf; fn main() -> Result<()> { - let cultmesh_store = env::args() - .skip(1) - .find_map(|arg| arg.strip_prefix("--cultmesh-store=").map(PathBuf::from)) - .unwrap_or_else(|| { - PathBuf::from(".epiphany-smoke") - .join("weksa-interlingua") - .join("local-verse.ccmp") - }); + if let Some(arg) = std::env::args().nth(1) { + anyhow::bail!("Weksa smoke accepts no arguments; unexpected {arg:?}"); + } + let cultmesh_store = PathBuf::from(".epiphany-smoke") + .join("weksa-interlingua") + .join("local-verse.ccmp"); let runtime_id = "weksa-interlingua-smoke"; let packet = build_weksa_interlingua_packet(WeksaInterlinguaInput { packet_id: "weksa-packet-persona-smoke".to_string(), diff --git a/notes/epiphany-current-algorithmic-map.md b/notes/epiphany-current-algorithmic-map.md index c2967cf3..58ff5d40 100644 --- a/notes/epiphany-current-algorithmic-map.md +++ b/notes/epiphany-current-algorithmic-map.md @@ -101,6 +101,13 @@ - Ambiguous install aliases are not accepted. - Negative proof: hostile plan flag cannot mutate; execute without elevation produces an explicit refusal receipt. +## Standalone receipt fixture boundaries (2026-07-12) + +- Deployment-family fixture receipts live only in a disposable repo under `/.epiphany-smoke`. +- Weksa fixture receipts live only at `.epiphany-smoke/weksa-interlingua/local-verse.ccmp`. +- Neither smoke accepts a caller-selected receipt store. +- Redirect arguments fail before synthetic receipt construction. + This is the source-grounded map of the live machine. Historical route and bridge anatomy belongs in git history and evidence ledgers, not here. diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index 337a34e3..e3895435 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -48,6 +48,10 @@ The monolithic `epiphany-verse-query smoke` fixture writer can no longer accept Install command names now determine execution authority. `service-install-plan` and `cluster-service-install-plan` force `execute_install=false` even if a hostile flag is supplied. `service-install-execute` and `cluster-service-install-execute` force `execute_install=true` without a separate flag. Ambiguous aliases were deleted, and the wrapper invokes exact command names instead of always invoking plan plus `--execute-install`. Proof in the non-elevated shell: hostile plan remained `planned` / `executed=false`; execute without a flag returned `execution-refused-not-elevated` / `executed=false`. Receipt status now follows an inspectable command boundary rather than hidden argument combination. +## 2026-07-12 standalone receipt-smoke quarantine + +The production writer inventory found only two standalone `*-smoke` binaries that directly write canonical receipt schemas. `epiphany-repo-deployment-config-family-smoke` no longer accepts `--smoke-root`; it accepts only a repository `--root` and derives disposable state under `/.epiphany-smoke`. `epiphany-weksa-interlingua-smoke` now accepts no arguments and writes only `.epiphany-smoke/weksa-interlingua/local-verse.ccmp`. Redirect attempts toward live state are rejected before writes. Remaining smoke audit scope is filesystem destruction/escape, not canonical receipt authority. + This is the re-entry rite for `E:\Projects\EpiphanyAgent`: the waking chant for the local machine-spirit before it touches the forge. diff --git a/notes/receipt-writer-provenance-audit-2026-07-12.md b/notes/receipt-writer-provenance-audit-2026-07-12.md index 4856d2c1..235c1655 100644 --- a/notes/receipt-writer-provenance-audit-2026-07-12.md +++ b/notes/receipt-writer-provenance-audit-2026-07-12.md @@ -19,9 +19,9 @@ A forged operator-status artifact containing `intentId=forged-intent`, `receiptI ## Remaining scrutiny -1. Extend the same store quarantine invariant to standalone smoke binaries that accept output paths. -2. Distill or remove dead public receipt constructors once every named provider executable exists. -3. Distill obsolete historical authority claims in `state/map.yaml`. +1. Distill or remove dead public receipt constructors once every named provider executable exists. +2. Distill obsolete historical authority claims in `state/map.yaml`. +3. Audit non-receipt smoke binaries for destructive path escape even when they do not touch canonical schemas. ## Smoke quarantine update @@ -36,3 +36,7 @@ The standalone `receipt` command previously accepted caller status and path stri Lifecycle receipt status values already distinguished planned, refused, observed, and executed outcomes, but install command aliases allowed command names and the `--execute-install` flag to disagree. Dispatch now makes command identity authoritative: `service-install-plan` and `cluster-service-install-plan` forcibly disable execution; `service-install-execute` and `cluster-service-install-execute` force execution intent and reach the elevation gate without a side-channel flag. Ambiguous `install-service`, `windows-service-install`, `service-install-windows`, and `cluster-windows-service-install` aliases are removed. The wrapper invokes the exact plan/execute command and no longer appends `--execute-install`. Negative proof passed both directions: a plan command given hostile `--execute-install` remained `planned` with `executed=false`; an execute command without the flag reached `execution-refused-not-elevated` with `executed=false` in the non-elevated shell. + +## Standalone receipt-smoke quarantine update + +The two standalone smoke binaries found writing canonical receipt schemas no longer accept receipt-store destinations. `epiphany-repo-deployment-config-family-smoke` accepts only `--root` and derives its entire disposable repo/Verse body under `/.epiphany-smoke`; `--smoke-root` is rejected. `epiphany-weksa-interlingua-smoke` accepts no arguments and writes only `.epiphany-smoke/weksa-interlingua/local-verse.ccmp`. Attempts to redirect either at live state fail before fixture construction. diff --git a/state/ledgers.msgpack b/state/ledgers.msgpack index 0414c3e6d3d82cbbb3548e4f8334d4f44013d3a7..b33f5b1a6893040f50b74070a526e16e82e8ebd6 100644 GIT binary patch delta 398 zcmYk1KT88a5XHS1ud%UFBsK$f;zf*q3bhGX*hWFYZrq*ZHo4n9clXqQkix>sAV>&; zA40H5VefacbCv{2G3+wD`MvjkC$*RF+UI(-yuW+2*SP*!h(Eeto6&6)Ri8$c=TRl% z3GX6Lm1k)(s>Jer{5XtPs^RFZ;mjXeBTMOM+D4!HJY|bagnTA~XG*v28$jD}5Uxtc=(c*`0yFAA)Olm64(B8lhvhqO xAmb>ZDOa&{5)4Uh&$YTF>j*B+nn~l}kRyu}btg!s7ISIF&0)MY-g=E!{{Zq