diff --git a/epiphany-core/src/bin/epiphany-daemon-supervisor.rs b/epiphany-core/src/bin/epiphany-daemon-supervisor.rs index 4db4a7b6..3f244423 100644 --- a/epiphany-core/src/bin/epiphany-daemon-supervisor.rs +++ b/epiphany-core/src/bin/epiphany-daemon-supervisor.rs @@ -1003,7 +1003,7 @@ fn cluster_windows_service_install(args: Args) -> Result<()> { stderr = String::from_utf8_lossy(&output.stderr).to_string(); completed_at = Some(Utc::now()); status = if output.status.success() { - "installed".to_string() + "install-command-succeeded".to_string() } else { "failed".to_string() }; @@ -1364,7 +1364,7 @@ fn windows_service_install(args: Args) -> Result<()> { exit_code = output.status.code(); completed_at = Some(Utc::now()); status = if output.status.success() { - "installed".to_string() + "install-command-succeeded".to_string() } else { "failed".to_string() }; @@ -1659,7 +1659,7 @@ fn windows_service_execution_audit_smoke(args: Args) -> Result<()> { for (action, status) in [ ("windows-service-execution-runbook", "written"), ("windows-service-execution-readiness", "elevated-ready"), - ("windows-service-install", "installed"), + ("windows-service-install", "install-command-succeeded"), ("windows-service-start", "start-requested"), ("windows-service-status", "stopped"), ("windows-service-reconcile", "in-sync"), @@ -1902,9 +1902,12 @@ fn cluster_windows_service_execution_audit_smoke(args: Args) -> Result<()> { "cluster-windows-service-execution-readiness", "elevated-ready", ), - ("cluster-windows-service-install", "installed"), + ( + "cluster-windows-service-install", + "install-command-succeeded", + ), ("cluster-windows-service-start", "start-requested"), - ("cluster-windows-service-execution-audit", "complete"), + ("cluster-windows-service-audit", "complete"), ("cluster-windows-service-stop", "stop-requested"), ] { let receipt = service_lifecycle_receipt( @@ -1944,10 +1947,10 @@ fn cluster_windows_service_execution_audit_smoke(args: Args) -> Result<()> { } let incomplete = service_lifecycle_receipt( &args, - "cluster-windows-service-execution-audit", + "cluster-windows-service-audit", "incomplete", "smoke".to_string(), - vec!["cluster-windows-service-execution-audit".to_string()], + vec!["cluster-windows-service-audit".to_string()], None, Some(0), started_at, @@ -3133,7 +3136,7 @@ fn windows_service_install_script_content( "}}\n", "sc.exe create $serviceName binPath= $binaryPath start= $startType DisplayName= $displayName\n", "sc.exe description $serviceName $description\n", - "\"installed service=$serviceName start=$startType\"\n" + "\"install-command-succeeded service=$serviceName start=$startType\"\n" ), service_name = quote_powershell(service_name), display_name = quote_powershell(&display_name), diff --git a/epiphany-core/src/cultmesh_integration.rs b/epiphany-core/src/cultmesh_integration.rs index 21f9ba3d..96cb21b9 100644 --- a/epiphany-core/src/cultmesh_integration.rs +++ b/epiphany-core/src/cultmesh_integration.rs @@ -1566,7 +1566,10 @@ pub fn epiphany_service_execution_audit_report( "windows-service-execution-readiness", &["elevated-ready"][..], ), - ("windows-service-install", &["installed"][..]), + ( + "windows-service-install", + &["install-command-succeeded"][..], + ), ("windows-service-start", &["start-requested"][..]), ( "windows-service-status", @@ -1592,9 +1595,12 @@ pub fn epiphany_cluster_service_execution_audit_report( "cluster-windows-service-execution-readiness", &["elevated-ready"][..], ), - ("cluster-windows-service-install", &["installed"][..]), + ( + "cluster-windows-service-install", + &["install-command-succeeded"][..], + ), ("cluster-windows-service-start", &["start-requested"][..]), - ("cluster-windows-service-execution-audit", &["complete"][..]), + ("cluster-windows-service-audit", &["complete"][..]), ("cluster-windows-service-stop", &["stop-requested"][..]), ], ) diff --git a/notes/conceptual-substitution-audit-2026-07-12.md b/notes/conceptual-substitution-audit-2026-07-12.md index dc2b47b5..5a99f9f5 100644 --- a/notes/conceptual-substitution-audit-2026-07-12.md +++ b/notes/conceptual-substitution-audit-2026-07-12.md @@ -474,3 +474,19 @@ passes, and reports that verifier output from the verifier call itself. Idunn's receipt now owns only the process consequence it can observe. A future shared preflight chain must resolve an immutable typed verifier receipt rather than carry testimony across argv. + +## Install command success presented as installed state + +The Windows service install paths promoted a successful PowerShell exit into +the lifecycle status `installed`. That command result cannot prove the Service +Control Manager contains the intended service, start mode, or binary path. Both +single-service and cluster receipts now say `install-command-succeeded`. +Installation truth comes from the subsequent SCM status/reconcile or cluster +audit observations. + +The cluster execution audit also required a prior +`cluster-windows-service-execution-audit: complete` receipt—its own conclusion— +and its smoke manufactured that verdict. The requirement is now +`cluster-windows-service-audit: complete`, emitted by actual SCM enumeration. +The negative smoke corrupts that observed audit and proves the execution audit +becomes incomplete; a copied prior conclusion has no authority. diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index d8ec5c73..831f48bf 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -121,6 +121,10 @@ The confirmed conceptual substitutions have been cut: - Idunn lifecycle receipts no longer accept caller-transcribed executable/schema hashes, witness identity, required types, or a preflight-pass bit. Repo work consumes the runtime's real preflight directly; Idunn reports process facts. +- Windows service install exit zero is `install-command-succeeded`, not + `installed`. Single-service completion requires SCM status/reconcile; cluster + completion requires the observed cluster service audit and cannot cite an + earlier copy of its own execution-audit verdict. 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 22bcabda..d1e9084e 100644 Binary files a/state/ledgers.msgpack and b/state/ledgers.msgpack differ diff --git a/state/map.yaml b/state/map.yaml index f742fb78..c1b61b83 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -660,4 +660,4 @@ current_status: - Service lifecycle receipt history is now event-only: `load_epiphany_cultmesh_daemon_service_lifecycle_receipts` filters out the `epiphany-local/daemon-service-lifecycle-receipt/latest` mirror, while `load_latest_epiphany_cultmesh_daemon_service_lifecycle_receipt` remains the latest-state reader. Focused unit test `service_lifecycle_receipt_history_excludes_latest_mirror` proves two per-receipt writes return exactly two history records and latest points at the second. Fresh smoke `verse-query-lifecycle-history-filter-smoke` and live overview/triage `local-20260618-145632-497-efac6f0d` / `local-20260618-145632-321-867947af` prove compact swarm sights still expose service lifecycle attention plus the present elevated runbook artifact without daemon pokes or service mutation. Do not use a broad unscoped cargo test filter for this check on Windows; it fans out across bin harnesses and hit a broken pipe during this pass. - `epiphany-verse-query seed-compact` is the compact seed receipt for wrappers and read-only rites. The older `seed` command still prints the full local Verse context for explicit debugging, but compact wrapper modes now avoid full `seed`/final `query` readback after the combined overview proof exposed Windows debug stack overflow from full-context serialization pressure. last_completed_repo_swarm_cut: Huginn live-fire has crossed the first real repo Body from Persona pressure to branch-local Hands commit and Soul/Mind closure, and now has repeatable closure and redacted-public-proof mouths. On `E:\Projects\Huginn` branch `epiphany/huginn/first-awakening`, `tools/epiphany_local_run.ps1 -Mode repo-persona-intake` accepted item `huginn-inspection-readback-livefire`, Weksa/Persona intake remained sealed, and `epiphany-work derive-plan` lowered it to model-authored safe family `repo.status_section` for `README.md` only. `tools/epiphany_local_run.ps1 -Mode repo-swarm-run` advanced four bounded pulses: run-from-plan, adopt-from-plan, execute-from-plan, and close-from-execute. Huginn commit `e9b07c38fceabbdc89ea35c2156326c80c0393a2` updated only `README.md`; closure receipt `.epiphany\work\work-close-huginn-inspection-readback-livefire.json` records status `closed`, Soul verdict `passed`, Mind state commit `repo-work-close-huginn-inspection-readback-livefire-mind-commit`, safe family `repo.status_section`, path scope `README.md`, Bifrost publication gate, and `privateStateExposed=false`. Verification also ran Huginn's TypeScript compiler through concrete Node path: `C:\Program Files\nodejs\node.exe E:\Projects\Huginn\node_modules\typescript\bin\tsc -p tsconfig.json` passed. Native verifier `epiphany-repo-livefire-closure-smoke --workspace E:\Projects\Huginn --item huginn-inspection-readback-livefire --expected-path README.md --expected-family repo.status_section --expected-gate awaiting-publication --expected-blocker bifrost-publication-missing` checks closure receipt, Mind map entry, overview gate/blocker, authority seals, and `git show` changed paths, returning `status=ok`, `soulVerdict=passed`, `publicationGate=Bifrost`, and `privateStateExposed=false`. Wrapper `tools/epiphany_local_run.ps1 -Mode repo-livefire-closure -Workspace E:\Projects\Huginn -RepoWorkItem huginn-inspection-readback-livefire -SkipBuild` exposes the same read-only proof through the local operator mouth; artifact `local-20260621-190156-803-2f85ba15` printed commit, path, gate, blocker, Soul verdict, Mind commit receipt, and `privateStateExposed=False` without push, merge, publication, or target mutation. New wrapper `tools/epiphany_local_run.ps1 -Mode repo-work-public-proof -Workspace E:\Projects\Huginn -RepoWorkItem huginn-inspection-readback-livefire -SkipBuild` exports the redacted proof bundle and repo-local Verse index without publishing; artifact `local-20260621-190645-345-4555b1dc` wrote `.epiphany\public\proof-bundles\repo-work-public-proof-huginn-inspection-readback-livefire.json`, proof id `repo-work-public-proof-huginn-inspection-readback-livefire`, SHA-256 `857545b199f3e37eb06c2e757e5cfc201958e46667bb1f8403fd333a22620f63`, nine artifact rows, zero publication rows, and `privateStateExposed=False`. swarm overview readback `local-20260621-190701-140-b9519ec6` sees the `REPO-WORK-PUBLIC-PROOF` row and action row from Huginn's repo-local Verse with the same SHA-256 while Bifrost publication remains missing. Launcher compact modes are now named compact operator-context modes instead of read-only modes, and `bifrost-public-proof` summaries print item, target public Verse, room, proof SHA-256, review receipts, and credit receipts so publication receipts are auditable without claiming upstream sync. - next_action: Continue the conceptual-substitution modeling pass beyond receipt writers. Publication/closure/Hands authority is single-sourced; cluster heartbeat is derived; query smoke cannot author Idunn truth; smoke fixture stores and recursive deletion roots are derived beneath the canonical workspace `.epiphany-smoke`; Idunn lifecycle receipts no longer republish caller-transcribed schema preflight proof. Continue auditing daemon-supervisor lifecycle statuses and service configuration claims for observed consequence provenance, then inspect remaining projections/caches/adapters and destructive path consumers. + next_action: Continue the conceptual-substitution modeling pass beyond receipt writers. Publication/closure/Hands authority is single-sourced; cluster heartbeat is derived; query smoke cannot author Idunn truth; smoke roots are contained; Idunn no longer republishes caller preflight testimony; install command success is not installed state; cluster execution audit depends on SCM observation rather than its own prior verdict. Continue auditing service configuration claims and projection selection for requested-versus-observed substitution, then inspect remaining caches/adapters and destructive path consumers.