Confine standalone receipt smokes
This commit is contained in:
parent
b03ab6265f
commit
65973ea458
7 changed files with 42 additions and 34 deletions
|
|
@ -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<Self> {
|
||||
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<Value> {
|
|||
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()))?;
|
||||
|
|
|
|||
|
|
@ -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(),
|
||||
|
|
|
|||
|
|
@ -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 `<root>/.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.
|
||||
|
||||
|
|
|
|||
|
|
@ -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 `<root>/.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.
|
||||
|
||||
|
|
|
|||
|
|
@ -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 `<root>/.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.
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -70,7 +70,7 @@ data_flow:
|
|||
- move historical proof to git, commits, smoke artifacts, or distilled evidence rather than plan prose
|
||||
|
||||
active_subgoals:
|
||||
- Use `notes/conceptual-substitution-audit-2026-07-12.md` plus `notes/receipt-writer-provenance-audit-2026-07-12.md` as the current authority-corrosion maps. Snapshot promotion, synthetic smoke escape, and unbound operator completion are cut. Daemon-supervisor install command identity now owns plan versus execute intent; plan forcibly cannot mutate, execute always reaches the elevation gate, ambiguous aliases and side-channel wrapper flags are removed. Next quarantine standalone smoke binaries, remove dead public receipt constructors where providers are missing, and distill obsolete historical authority claims.
|
||||
- Use `notes/conceptual-substitution-audit-2026-07-12.md` plus `notes/receipt-writer-provenance-audit-2026-07-12.md` as the current authority-corrosion maps. Snapshot promotion, synthetic smoke escape, unbound operator completion, and hidden service execution flags are cut. Standalone deployment/Idunn and Weksa receipt smokes cannot accept output destinations and derive their stores under `.epiphany-smoke`. Next remove or test-gate dead public receipt constructors where provider binaries are absent, distill obsolete historical authority claims, and audit non-receipt smokes for destructive path escape.
|
||||
- `swarm-overview` is an Epiphany-local, renderer-neutral diagnostic projection over provider-owned typed state. It owns no lifecycle, discovery, composition, or mutation authority. Epiphany publishes clean provider-owned Eve surfaces; Odin may discover them; downstream lowerers and compositors remain outside Epiphany's concern.
|
||||
- Idunn owns daemon survival and service lifecycle physiology. Codex/operator sessions may inspect, generate runbooks, and route explicit operator authority, but keeping daemons alive belongs to Idunn-owned service lifecycle receipts, scheduler policy, audits, and aftercare. Do not let Self, diagnostic projections, or ad hoc wrapper summaries become a second daemon-keeper. Global tool readbacks for Self `service-health`, `service-policy-directory`, and `swarm-online-runbook` state `lifecycleOwner=Idunn` and `hostedBody=Epiphany` without service mutation or private-state exposure.
|
||||
- Use `notes/epiphany-cultmesh-dreaming-roadmap.md` as the design authority for distributed Epiphany dreaming. Public dreams are separately authored typed documents distributed through CultMesh/CultNet; private state remains local and cannot be shared by flipping a visibility flag. Foreign dreams are external thought weather until a reviewed local adoption receipt digests them into memory, planning, doctrine, or governance.
|
||||
|
|
|
|||
Reference in a new issue