From d023a919d8db99dbe896109ef260bb8c34d93386 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Wed, 15 Jul 2026 18:37:21 +0100 Subject: [PATCH] Delete the Bifrost readiness oracle --- .../epiphany-bifrost-bridge-status-smoke.rs | 177 ----------- epiphany-core/src/bin/epiphany-mvp-status.rs | 138 -------- .../src/bin/epiphany-persona-bridge-smoke.rs | 297 ------------------ ...onceptual-substitution-audit-2026-07-12.md | 28 +- notes/epiphany-current-algorithmic-map.md | 31 +- notes/fresh-workspace-handoff.md | 41 ++- state/ledgers.msgpack | Bin 505313 -> 505992 bytes state/map.yaml | 7 +- tools/epiphany_local_run.ps1 | 37 +-- 9 files changed, 88 insertions(+), 668 deletions(-) delete mode 100644 epiphany-core/src/bin/epiphany-bifrost-bridge-status-smoke.rs delete mode 100644 epiphany-core/src/bin/epiphany-persona-bridge-smoke.rs diff --git a/epiphany-core/src/bin/epiphany-bifrost-bridge-status-smoke.rs b/epiphany-core/src/bin/epiphany-bifrost-bridge-status-smoke.rs deleted file mode 100644 index e5e3a27a..00000000 --- a/epiphany-core/src/bin/epiphany-bifrost-bridge-status-smoke.rs +++ /dev/null @@ -1,177 +0,0 @@ -use anyhow::Context; -use anyhow::Result; -use anyhow::anyhow; -use serde_json::Value; -use serde_json::json; -use std::env; -use std::fs; -use std::path::{Path, PathBuf}; -use std::process::Command; - -fn main() -> Result<()> { - let args = Args::parse()?; - let result = run_smoke(&args)?; - println!("{}", serde_json::to_string_pretty(&result)?); - Ok(()) -} - -#[derive(Debug)] -struct Args { - status_exe: Option, - result: PathBuf, -} - -impl Args { - fn parse() -> Result { - let root = env::current_dir().context("failed to resolve current dir")?; - let mut parsed = Self { - status_exe: None, - result: root - .join(".epiphany-smoke") - .join("bifrost-bridge-status-smoke.json"), - }; - let mut args = env::args().skip(1); - while let Some(arg) = args.next() { - match arg.as_str() { - "--status-exe" => parsed.status_exe = Some(take_path(&mut args, "--status-exe")?), - "--result" => parsed.result = take_path(&mut args, "--result")?, - other => return Err(anyhow!("unknown argument: {other}")), - } - } - Ok(parsed) - } -} - -fn run_smoke(args: &Args) -> Result { - let root = env::current_dir().context("failed to resolve current dir")?; - let status_exe = match &args.status_exe { - Some(path) => absolute_path(path)?, - None => sibling_exe("epiphany-mvp-status")?, - }; - ensure_status_built(&root, &status_exe)?; - let status = run_native_status(&root, &status_exe)?; - let bridge = status - .get("bifrostBridge") - .ok_or_else(|| anyhow!("native status did not include bifrostBridge"))?; - validate_bridge(bridge)?; - - let result = json!({ - "status": "ok", - "statusExe": status_exe, - "bifrostBridge": bridge, - "privateStateExposed": bridge["privateStateExposed"], - "providerReadySurfaceCount": bridge["providerReadySurfaceCount"], - "preparedSurfaceCount": bridge["preparedSurfaceCount"], - "surfaceCount": bridge["surfaceCount"], - "surfaces": bridge["surfaces"], - }); - write_json(&absolute_path(&args.result)?, &result)?; - Ok(result) -} - -fn run_native_status(root: &Path, status_exe: &Path) -> Result { - let output = Command::new(status_exe) - .current_dir(root) - .arg("--json") - .arg("--cwd") - .arg(root) - .output() - .context("failed to run native status JSON command")?; - if !output.status.success() { - return Err(anyhow!( - "native status JSON command failed: {}{}", - String::from_utf8_lossy(&output.stderr), - String::from_utf8_lossy(&output.stdout) - )); - } - serde_json::from_slice(&output.stdout).context("failed to decode native status JSON") -} - -fn validate_bridge(bridge: &Value) -> Result<()> { - require( - bridge.get("owner").and_then(Value::as_str) == Some("Bifrost"), - "Bifrost bridge sight should be owned by Bifrost", - )?; - require( - bridge.get("privateStateExposed").and_then(Value::as_bool) == Some(false), - "Bifrost bridge sight should not expose private state", - )?; - require( - bridge - .get("surfaceCount") - .and_then(Value::as_u64) - .is_some_and(|count| count >= 5), - "Bifrost bridge sight should expose at least five governed surfaces", - )?; - let surfaces = bridge - .get("surfaces") - .and_then(Value::as_array) - .ok_or_else(|| anyhow!("Bifrost bridge sight has no surface rows"))?; - require( - surfaces.iter().all(|surface| { - matches!( - surface.get("status").and_then(Value::as_str), - Some("provider-ready" | "prepared" | "missing") - ) - }), - "Bifrost bridge rows must report evidence state without claiming live transport", - ) -} - -fn ensure_status_built(root: &Path, status_exe: &Path) -> Result<()> { - if status_exe.exists() { - return Ok(()); - } - let status = Command::new("cargo") - .current_dir(root) - .arg("build") - .arg("--manifest-path") - .arg(root.join("epiphany-core").join("Cargo.toml")) - .arg("--bin") - .arg("epiphany-mvp-status") - .status() - .context("failed to build epiphany-mvp-status")?; - require( - status.success() && status_exe.exists(), - &format!( - "native status binary was not built: {}", - status_exe.display() - ), - ) -} - -fn sibling_exe(name: &str) -> Result { - let mut exe = env::current_exe().context("failed to resolve current executable")?; - exe.set_file_name(format!("{name}{}", env::consts::EXE_SUFFIX)); - Ok(exe) -} - -fn absolute_path(path: &Path) -> Result { - if path.is_absolute() { - Ok(path.to_path_buf()) - } else { - Ok(env::current_dir()?.join(path)) - } -} - -fn write_json(path: &Path, value: &Value) -> Result<()> { - if let Some(parent) = path.parent() { - fs::create_dir_all(parent)?; - } - fs::write(path, format!("{}\n", serde_json::to_string_pretty(value)?))?; - Ok(()) -} - -fn require(condition: bool, message: &str) -> Result<()> { - if condition { - Ok(()) - } else { - Err(anyhow!("{message}")) - } -} - -fn take_path(args: &mut impl Iterator, name: &str) -> Result { - args.next() - .map(PathBuf::from) - .ok_or_else(|| anyhow!("{name} requires a value")) -} diff --git a/epiphany-core/src/bin/epiphany-mvp-status.rs b/epiphany-core/src/bin/epiphany-mvp-status.rs index 00697509..16dc3049 100644 --- a/epiphany-core/src/bin/epiphany-mvp-status.rs +++ b/epiphany-core/src/bin/epiphany-mvp-status.rs @@ -527,7 +527,6 @@ fn run_native_status(args: &Args) -> Result { "tools": tool_invocations, "heartbeat": native_aux.heartbeat, "persona": native_aux.persona, - "bifrostBridge": native_aux.bifrost_bridge, "voidMemory": native_aux.void_memory, }); Ok(sanitize_for_operator(status)) @@ -536,7 +535,6 @@ fn run_native_status(args: &Args) -> Result { struct NativeAuxiliaryStatus { heartbeat: Value, persona: Value, - bifrost_bridge: Value, void_memory: Value, } @@ -658,7 +656,6 @@ fn native_auxiliary_status(root: &Path) -> Result { ], private_state_exposed: false, })?; - let bifrost_bridge = bifrost_bridge_readiness(root); let void_memory = native_json( "epiphany-void-memory", &["status", "--config", "state/void-memory.toml"], @@ -668,7 +665,6 @@ fn native_auxiliary_status(root: &Path) -> Result { Ok(NativeAuxiliaryStatus { heartbeat, persona, - bifrost_bridge, void_memory, }) } @@ -731,109 +727,6 @@ fn persona_artifact_ref(source: &str, artifact: &Value) -> Option Value { - let bifrost_root = root - .parent() - .map(|parent| parent.join("Bifrost")) - .unwrap_or_else(|| root.join("../Bifrost")); - let advertisement_tool = bifrost_root - .join("tools") - .join("provider-advertisement.mjs"); - if !advertisement_tool.exists() { - return json!({ - "status": "unavailable", - "owner": "Bifrost", - "tool": advertisement_tool, - "note": "Bifrost provider advertisement tool was not found; Epiphany cannot infer outside-world bridge readiness locally.", - "privateStateExposed": false, - }); - } - - let output = Command::new("node") - .arg(&advertisement_tool) - .arg("print-surface") - .current_dir(&bifrost_root) - .output(); - let Ok(output) = output else { - return json!({ - "status": "unavailable", - "owner": "Bifrost", - "tool": advertisement_tool, - "note": "Failed to invoke Bifrost provider advertisement tool.", - "privateStateExposed": false, - }); - }; - if !output.status.success() { - return json!({ - "status": "unavailable", - "owner": "Bifrost", - "tool": advertisement_tool, - "note": format!("Bifrost provider advertisement failed: {}", String::from_utf8_lossy(&output.stderr)), - "privateStateExposed": false, - }); - } - - let parsed: Value = match serde_json::from_slice(&output.stdout) { - Ok(value) => value, - Err(error) => { - return json!({ - "status": "unavailable", - "owner": "Bifrost", - "tool": advertisement_tool, - "note": format!("Bifrost provider advertisement returned invalid JSON: {error}"), - "privateStateExposed": false, - }); - } - }; - let bridge = &parsed["stats"]["bridge"]; - let surfaces = bridge["surfaces"] - .as_array() - .cloned() - .unwrap_or_default() - .into_iter() - .map(|surface| { - let provider_ready = surface["ready"].as_bool().unwrap_or(false); - let prepared = surface["prepared"].as_bool().unwrap_or(false); - json!({ - "id": surface["id"].clone(), - "label": surface["label"].clone(), - "status": if provider_ready { "provider-ready" } else if prepared { "prepared" } else { "missing" }, - "providerReady": provider_ready, - "prepared": prepared, - "authority": surface["authority"].clone(), - "credentialSource": surface["credentialSource"].clone(), - "note": surface["note"].clone(), - }) - }) - .collect::>(); - let ready_count = surfaces - .iter() - .filter(|surface| surface["providerReady"].as_bool().unwrap_or(false)) - .count(); - let prepared_count = surfaces - .iter() - .filter(|surface| { - surface["prepared"].as_bool().unwrap_or(false) - && !surface["providerReady"].as_bool().unwrap_or(false) - }) - .count(); - json!({ - "status": if bridge["ready"].as_bool().unwrap_or(false) { "provider-ready" } else if bridge["prepared"].as_bool().unwrap_or(false) { "prepared" } else { "unavailable" }, - "owner": "Bifrost", - "authority": "Bifrost owns outside-world crossing gates, bridge receipts, and readiness projection; Heimdall owns provider OAuth, account links, and capability truth; Epiphany consumes this as read-only bridge sight.", - "source": "Bifrost provider advertisement print-surface", - "tool": advertisement_tool, - "generatedAt": parsed["stats"]["generatedAt"].clone(), - "providerReady": bridge["ready"].clone(), - "prepared": bridge["prepared"].clone(), - "providerReadySurfaceCount": ready_count, - "preparedSurfaceCount": prepared_count, - "surfaceCount": surfaces.len(), - "surfaces": surfaces, - "privateStateExposed": false, - }) -} - fn native_role_result( state: Option<&EpiphanyThreadState>, runtime_store: &Path, @@ -1244,7 +1137,6 @@ pub fn render_status(status: &Value) -> String { let coordinator = &status["coordinator"]; let heartbeat = &status["heartbeat"]; let persona = &status["persona"]; - let bifrost_bridge = &status["bifrostBridge"]; let planning_response = &status["planning"]; let planning_summary = &planning_response["summary"]; let checkpoint = &scene["investigationCheckpoint"]; @@ -1321,16 +1213,6 @@ pub fn render_status(status: &Value) -> String { "- artifact path: {}", maybe(&latest_persona["path"], "none") ), - format!( - "- Bifrost bridge: {} ({}/{})", - maybe(&bifrost_bridge["status"], "unavailable"), - maybe(&bifrost_bridge["providerReadySurfaceCount"], "0"), - maybe(&bifrost_bridge["surfaceCount"], "0") - ), - format!( - "- bridge surfaces: {}", - bifrost_bridge_surface_text(bifrost_bridge) - ), String::new(), "Planning".to_string(), format!( @@ -1669,23 +1551,3 @@ fn list_text(value: &Value, fallback: &str) -> String { } items.iter().map(text).collect::>().join(", ") } - -fn bifrost_bridge_surface_text(value: &Value) -> String { - let Some(items) = value["surfaces"].as_array() else { - return "none".to_string(); - }; - if items.is_empty() { - return "none".to_string(); - } - items - .iter() - .map(|surface| { - format!( - "{}={}", - maybe(&surface["id"], "unknown"), - maybe(&surface["status"], "unknown") - ) - }) - .collect::>() - .join(", ") -} diff --git a/epiphany-core/src/bin/epiphany-persona-bridge-smoke.rs b/epiphany-core/src/bin/epiphany-persona-bridge-smoke.rs deleted file mode 100644 index 636752aa..00000000 --- a/epiphany-core/src/bin/epiphany-persona-bridge-smoke.rs +++ /dev/null @@ -1,297 +0,0 @@ -use anyhow::Context; -use anyhow::Result; -use anyhow::anyhow; -use serde_json::Value; -use serde_json::json; -use std::env; -use std::fs; -use std::path::{Path, PathBuf}; -use std::process::Command; - -const REQUIRED_BINS: &[&str] = &[ - "epiphany-bifrost-bridge-status-smoke", - "epiphany-persona-discord", - "epiphany-persona-reddit", - "epiphany-persona-other", -]; - -fn main() -> Result<()> { - let args = Args::parse()?; - let result = run_smoke(&args)?; - println!("{}", serde_json::to_string_pretty(&result)?); - Ok(()) -} - -#[derive(Debug)] -struct Args { - result: PathBuf, -} - -impl Args { - fn parse() -> Result { - let root = env::current_dir().context("failed to resolve current dir")?; - let mut parsed = Self { - result: root - .join(".epiphany-smoke") - .join("persona-bridge-smoke.json"), - }; - let mut args = env::args().skip(1); - while let Some(arg) = args.next() { - match arg.as_str() { - "--result" => parsed.result = take_path(&mut args, "--result")?, - other => return Err(anyhow!("unknown argument: {other}")), - } - } - Ok(parsed) - } -} - -fn run_smoke(args: &Args) -> Result { - let root = env::current_dir().context("failed to resolve current dir")?; - ensure_bins_built(&root)?; - - let readiness = run_json(&root, "epiphany-bifrost-bridge-status-smoke", &[])?; - let discord = run_json(&root, "epiphany-persona-discord", &["smoke"])?; - let reddit = run_json(&root, "epiphany-persona-reddit", &["smoke"])?; - let other = run_json(&root, "epiphany-persona-other", &["smoke"])?; - - validate_readiness(&readiness)?; - validate_persona_surface( - "discord", - &discord, - "bifrost.discord-post", - "heimdall:discord:", - )?; - validate_persona_surface("reddit", &reddit, "bifrost.reddit-post", "heimdall:reddit:")?; - validate_persona_surface( - "other", - &other, - "bifrost.other-request", - "heimdall:bluesky:", - )?; - require( - other - .pointer("/bridged/bifrostBridgeReceipt/surfaceName") - .and_then(Value::as_str) - == Some("bluesky"), - "future-surface Persona bridge smoke should name the Bifrost target surface", - )?; - - let result = json!({ - "status": "ok", - "readiness": bridge_summary(&readiness), - "surfaces": [ - persona_summary("discord", &discord), - persona_summary("reddit", &reddit), - persona_summary("other", &other), - ], - "privateStateExposed": false, - "note": "Aggregate proof only: Bifrost owns outside-world crossings and receipts; Epiphany owns Persona mouth eligibility and consumes readiness sight.", - }); - write_json(&absolute_path(&args.result)?, &result)?; - Ok(result) -} - -fn run_json(root: &Path, bin_name: &str, args: &[&str]) -> Result { - let output = Command::new(sibling_exe(bin_name)?) - .current_dir(root) - .args(args) - .output() - .with_context(|| format!("failed to run {bin_name}"))?; - if !output.status.success() { - return Err(anyhow!( - "{bin_name} failed: {}{}", - String::from_utf8_lossy(&output.stderr), - String::from_utf8_lossy(&output.stdout) - )); - } - serde_json::from_slice(&output.stdout) - .with_context(|| format!("failed to decode {bin_name} JSON output")) -} - -fn validate_readiness(value: &Value) -> Result<()> { - require( - value.get("status").and_then(Value::as_str) == Some("ok"), - "Bifrost readiness smoke should pass", - )?; - require( - value - .pointer("/bifrostBridge/owner") - .and_then(Value::as_str) - == Some("Bifrost"), - "Bifrost readiness smoke should name Bifrost as owner", - )?; - require( - value - .pointer("/bifrostBridge/privateStateExposed") - .and_then(Value::as_bool) - == Some(false), - "Bifrost readiness smoke should seal private state", - )?; - let surfaces = value - .pointer("/bifrostBridge/surfaces") - .and_then(Value::as_array) - .ok_or_else(|| anyhow!("Bifrost readiness smoke has no surface rows"))?; - require( - surfaces.iter().all(|surface| { - matches!( - surface.get("status").and_then(Value::as_str), - Some("provider-ready" | "prepared" | "missing") - ) - }), - "Bifrost readiness smoke should expose evidence states, not live transport claims", - ) -} - -fn validate_persona_surface( - name: &str, - value: &Value, - expected_transport: &str, - expected_heimdall_prefix: &str, -) -> Result<()> { - require( - value.get("ok").and_then(Value::as_bool) == Some(true), - &format!("{name} Persona smoke should pass"), - )?; - require( - value - .pointer("/missingBridge/blocked") - .and_then(Value::as_str) - == Some("missing-bifrost-bridge"), - &format!("{name} Persona should stop without Bifrost bridge configuration"), - )?; - require( - value - .pointer("/missingCapability/blocked") - .and_then(Value::as_str) - == Some("missing-heimdall-capability-ref"), - &format!("{name} Persona should stop without Heimdall capability proof"), - )?; - require( - value - .pointer("/wrongSurfaceCapability/blocked") - .and_then(Value::as_str) - == Some("wrong-heimdall-capability-surface"), - &format!("{name} Persona should stop wrong-surface Heimdall proof"), - )?; - require( - value.pointer("/bridged/transport").and_then(Value::as_str) == Some(expected_transport), - &format!("{name} Persona should cross only through Bifrost transport"), - )?; - require( - value - .pointer("/bridged/bifrostBridgeReceipt/provenance/bifrostIdentity") - .and_then(Value::as_str) - == Some("epiphany.Persona"), - &format!("{name} Persona bridge receipt should carry Bifrost identity"), - )?; - let heimdall_ref = value - .pointer("/bridged/bifrostBridgeReceipt/provenance/heimdallCapabilityRef") - .and_then(Value::as_str) - .unwrap_or(""); - require( - heimdall_ref.starts_with(expected_heimdall_prefix), - &format!("{name} Persona bridge receipt should carry target-shaped Heimdall proof"), - )?; - require( - value - .pointer("/latestCultMeshSpeechAudit") - .and_then(Value::as_array) - .and_then(|row| row.get(18)) - .and_then(Value::as_bool) - == Some(false), - &format!("{name} Persona speech audit mirror should seal private state"), - ) -} - -fn bridge_summary(value: &Value) -> Value { - json!({ - "status": value.pointer("/bifrostBridge/status"), - "providerReadySurfaceCount": value.pointer("/bifrostBridge/providerReadySurfaceCount"), - "preparedSurfaceCount": value.pointer("/bifrostBridge/preparedSurfaceCount"), - "surfaceCount": value.pointer("/bifrostBridge/surfaceCount"), - "surfaces": value.pointer("/bifrostBridge/surfaces"), - }) -} - -fn persona_summary(name: &str, value: &Value) -> Value { - json!({ - "surface": name, - "transport": value.pointer("/bridged/transport"), - "bifrostIdentity": value.pointer("/bridged/bifrostBridgeReceipt/provenance/bifrostIdentity"), - "heimdallCapabilityRef": value.pointer("/bridged/bifrostBridgeReceipt/provenance/heimdallCapabilityRef"), - "missingBridge": value.pointer("/missingBridge/blocked"), - "missingCapability": value.pointer("/missingCapability/blocked"), - "wrongSurfaceCapability": value.pointer("/wrongSurfaceCapability/blocked"), - "speechAuditPrivateStateExposed": value - .pointer("/latestCultMeshSpeechAudit") - .and_then(Value::as_array) - .and_then(|row| row.get(18)) - .cloned() - .unwrap_or(Value::Null), - }) -} - -fn ensure_bins_built(root: &Path) -> Result<()> { - let mut missing = Vec::new(); - for bin in REQUIRED_BINS { - if !sibling_exe(bin)?.exists() { - missing.push(*bin); - } - } - if missing.is_empty() { - return Ok(()); - } - let mut command = Command::new("cargo"); - command - .current_dir(root) - .arg("build") - .arg("--manifest-path") - .arg(root.join("epiphany-core").join("Cargo.toml")); - for bin in missing { - command.arg("--bin").arg(bin); - } - let status = command - .status() - .context("failed to build Persona bridge smoke dependencies")?; - require( - status.success(), - "failed to build Persona bridge smoke dependencies", - ) -} - -fn sibling_exe(name: &str) -> Result { - let mut exe = env::current_exe().context("failed to resolve current executable")?; - exe.set_file_name(format!("{name}{}", env::consts::EXE_SUFFIX)); - Ok(exe) -} - -fn absolute_path(path: &Path) -> Result { - if path.is_absolute() { - Ok(path.to_path_buf()) - } else { - Ok(env::current_dir()?.join(path)) - } -} - -fn write_json(path: &Path, value: &Value) -> Result<()> { - if let Some(parent) = path.parent() { - fs::create_dir_all(parent)?; - } - fs::write(path, format!("{}\n", serde_json::to_string_pretty(value)?))?; - Ok(()) -} - -fn require(condition: bool, message: &str) -> Result<()> { - if condition { - Ok(()) - } else { - Err(anyhow!("{message}")) - } -} - -fn take_path(args: &mut impl Iterator, name: &str) -> Result { - args.next() - .map(PathBuf::from) - .ok_or_else(|| anyhow!("{name} requires a value")) -} diff --git a/notes/conceptual-substitution-audit-2026-07-12.md b/notes/conceptual-substitution-audit-2026-07-12.md index 0f7c0779..b3fa2eca 100644 --- a/notes/conceptual-substitution-audit-2026-07-12.md +++ b/notes/conceptual-substitution-audit-2026-07-12.md @@ -1497,17 +1497,27 @@ editor executable. The project version is now `pinned`, the editor path is Commands may use resolution to choose what to execute, but only `runStatus` records planned, completed, failed, or blocked execution consequence. -## Provider readiness is not live transport +## Sibling subprocess output is not provider readiness -Epiphany consumed Bifrost's provider readiness boolean and renamed it `live`, -turning credential/capability sight into a transport claim. The projection now -preserves it as `provider-ready`; rows may otherwise be `prepared` or `missing`. -Fields and counts use `providerReady` explicitly. Only a Bifrost transport -receipt may prove publication or delivery. +Epiphany first consumed Bifrost's provider readiness boolean and renamed it +`live`, then tried to repair the substitution by renaming the same value +`provider-ready`. The authority fault survived both names. Native status still +inferred a sibling repository path, found a JavaScript executable, accepted +exit zero and parseable JSON, and promoted caller-visible booleans into global +provider sight without authenticated typed ingest or provider participation. -The bridge smoke also stopped hard-coding an obsolete provider topology. It now -checks the evidence-state vocabulary and private-state seal rather than -asserting that a named surface must remain live forever. +That projection is deleted. Native MVP status no longer invokes the sibling +advertisement tool or emits Bifrost readiness, and both bridge aggregate smokes +and their wrapper presentation are gone. Missing evidence remains unknown. + +Persona mouth receipts are a different organ. For one eligible Discord, +Reddit, or future-surface crossing, the mouth may invoke its configured Bifrost +actuator and bind a validated result to that one speech/request artifact. The +receipt is evidence of that named consequence only. It cannot establish global +provider inventory, liveness, capability, readiness, publication, or future +operability. Each single-mouth smoke tests only its own eligibility, receipt +shape and binding, and private-state sealing; no cross-mouth green aggregate +remains. ## Crossing request is not publication diff --git a/notes/epiphany-current-algorithmic-map.md b/notes/epiphany-current-algorithmic-map.md index 4944e938..b2892b1b 100644 --- a/notes/epiphany-current-algorithmic-map.md +++ b/notes/epiphany-current-algorithmic-map.md @@ -477,7 +477,36 @@ checks in native launch/coordinator code reject renewed Codex route authority. | Hands/Soul loop | Hands receipt tests plus coordinator launch-context tests | | Protocol starvation | source scans, app-server compile, generated-schema equivalence | | Verse privacy/authority | CultMesh/Verse focused smokes and typed receipt readbacks | -| Public crossings | Persona/Bifrost bridge smokes with private-state seals | +| Public crossings | Persona mouth contract smokes: fail-closed eligibility, single-crossing receipt binding, and private-state seals; no provider-readiness projection | + +### Persona mouth / provider-readiness boundary + +Owner: the participating Bifrost/provider boundary owns the consequence of a +public crossing. Epiphany owns only Persona speech eligibility and artifact +binding. + +Inputs: one eligible Discord, Reddit, or named future-surface request plus the +configured actuator coordinates and target-shaped identity/capability +references. + +Outputs: one validated transport/request receipt bound to that one +speech/request artifact. + +Derived state: the receipt is artifact-local evidence of the named consequence. +It does not derive provider inventory, liveness, capability, readiness, +publication, or future operability. Missing evidence remains unknown. + +Forbidden writers: MVP status, wrapper summaries, fixture aggregators, +sibling-path/executable probes, subprocess exit status, parseable JSON, and +caller-supplied booleans cannot write provider readiness. + +Shared paths: Discord, Reddit, and future-surface mouths all use the same +fail-closed eligibility-to-receipt boundary, but each single-mouth smoke proves +only its own crossing. No cross-mouth aggregate remains. + +Deletion line: remove the sibling advertisement subprocess projection, both +aggregate smoke binaries, aggregate output fields, and status/wrapper +presentation. Retain only the scoped mouth consequence receipts. Repo-work map admission is a canonical generation-bound transaction. A map entry names its `RepoWorkModelingRoute` and generation; the runtime spine loads diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index d359041a..e723a44e 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -903,13 +903,6 @@ editor path discovery is `resolved`, and the editor package predicate is named `present`. Operability belongs to the subsequent `runStatus` receipt. The native Unity bridge smoke, 259 library tests, and all-bin check pass. -Bifrost bridge sight no longer upgrades provider readiness to live transport. -Epiphany reports `provider-ready`, `prepared`, or `missing`, with explicit -`providerReady` fields/counts; publication still requires Bifrost receipts. The -native bridge smoke validates evidence vocabulary rather than stale provider -topology and was repaired to the current native status CLI. It passes alongside -259 library tests and all-bin compilation. - The generic Persona Other mouth no longer models accepted Bifrost requests as posts. Recent speech tracks `crossing_recorded` and `same_target_crossing_count`; actual publication still requires an external @@ -1542,3 +1535,37 @@ live operator approval may the real reboot/logon proof run. It must establish the restored tasks and tunnel, a fresh reconciler -> exactly-one-projector chain, launch-correlated provider sight, and admitted semantic queries. Do not infer reboot authority from this scheduler cleanup. + +## Bifrost readiness projection deletion (2026-07-15) + +Epiphany no longer treats a sibling Bifrost path, executable presence, exit +zero, parseable JSON, or caller-supplied readiness booleans as provider sight. +The `epiphany-mvp-status` sibling subprocess projection and its `bifrostBridge` +output are deleted, as are `epiphany-bifrost-bridge-status-smoke`, the aggregate +Persona readiness fields, and wrapper readiness summaries. Missing authenticated +typed provider evidence remains unknown. + +The surviving Persona Discord, Reddit, and future-surface paths are mouths, not +Eyes. Epiphany owns speech eligibility and may invoke a configured Bifrost +actuator for one named crossing. A validated returned receipt is bound only to +that speech/request artifact as evidence of the single consequence; it cannot +establish provider inventory, liveness, capability, readiness, publication, or +future operability. The cross-mouth aggregate is deleted. Each Persona mouth +tests only its own fail-closed eligibility, target-bound receipt shape, and +private-state sealing. + +Authority map: the participating Bifrost/provider boundary owns consequence +truth; one eligible crossing request and configured actuator coordinates are +inputs; one artifact-scoped transport/request receipt is the output; global +readiness is not derived. MVP status, wrapper summaries, cross-mouth aggregators, +sibling-path probes, and caller booleans are forbidden readiness writers. All +three mouths retain the same eligibility-to-receipt boundary without sharing +consequence authority. The deletion line was the sibling readiness projector, +both aggregate smoke binaries, aggregate output fields, and status presentation. + +The deployment next action remains unchanged and permission-bound: do not +reboot without exact live operator approval. With that approval, prove both +scheduled tasks and the tunnel return after logon, establish a fresh reconciler +-> exactly-one-projector chain and launch-correlated heartbeat, then obtain +semantic ranking from packaged Mind and Modeling queries using the explicit +Qdrant and Ollama endpoints. diff --git a/state/ledgers.msgpack b/state/ledgers.msgpack index 41d7db4d4ec4696cf44a3e6d21fbb1f8b24d648e..dc96992a1355455f5515b180bd97abfe801650f1 100644 GIT binary patch delta 639 zcmYL{&x#X45XMc^{ic}A!A zYwv2cA0JlrkE?o3t6HyWUDLX*)i_(#n@>+~efd7<4IXuR!%qL~Ta zIp%3_5+M*8wj=_%vpM;gumnk&M2;!4v%mrpL&{?cSe8pLR8l03842XIFgsN{k(E;%kW&ol{^ z(uRnkpxDV=sy-jkig%%6pOXRrnW3ll#+whk*w`j4yYTGwOJ$GUm;{uiqVOm}1_nEW z5fJ7xb(}QzHs!WCT0j2Qe6T-)f1$Q`M_?-=te%B1=+TOW;pr6e8Rdr;(j%C-R08JJ IUC_V$7k_Hz-~a#s delta 61 zcmeD9DEIKS+y)6oZXZB}M1WMtgkJe8?^Dib3RgJ@ Jm5JSFGXR*`6f*z- diff --git a/state/map.yaml b/state/map.yaml index 443f4264..75445b44 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -83,8 +83,8 @@ active_subgoals: - The GameCult integrated investment dossier at `E:\Projects\gamecult-site\docs\gamecult_integrated_dossier.tex` raises the Mom-ready bar from local demo to diligence-ready loop. Epiphany must be ready to prove Bifrost-first external work: a human/agent work item or topic originates in Bifrost, Epiphany decomposes and executes through bounded roles, maintainers review artifacts, Bifrost records receipts/credit, and operator-safe public evidence can be shown without exporting private worker/operator/agent context. The concrete readiness asks are fresh-repo Epiphany demo, Bifrost work item/topic/agent transport/receipt/ledger demo, compute spend and accepted-artifact metrics, and a security model for secrets, write permissions, and public/private exports. Discord, VoidBot, repo Personas, and ad hoc scripts must not become shadow governance or reward authorities. - Bifrost bridge authority is now clarified, enforced, and pushed to `GameCult/Bifrost` upstream `main` through Bifrost commit `72ffa0d` after the bridge chain `445c279`, `23c02be`, `80a5392`, `19222bd`, `675c475`, `f1f9171`, and `72ffa0d`: Epiphany owns swarm execution, repo Body work, branch-local lanes, memory, evidence, and Persona cognition; Bifrost owns GameCult identity, native Bifrost registration/auth, governed external-world crossings, linked-account association, publication/credit/ledger receipts, patronage meaning, and GitHub/Discord/Reddit/future-public-surface bridge policy; Heimdall owns outside-provider OAuth, token custody, and verifiable capability/account/support claims that Bifrost associates with a Bifrost identity. The old Bifrost dispatch bridge was a transitional VoidBot-era worker queue, not the blessed Epiphany launcher. Local bridge tokens are actuator quarantine, not identity. Hosted Bifrost bridge actions store Bifrost identity, Heimdall capability/account reference, Epiphany run id, lane id, and agent identity; Persona/agent Discord, Reddit, or temporary `Other` outside-world actions are denied unless the Bifrost identity normalizes through Bifrost's native identity law, resolves to a registered `UserAccount.NormalizedBifrostIdentity`, that same account has a linked `HeimdallAccountId`, and named surface references are shaped for the requested target surface. GitHub is hooked as a governed bridge and work substrate: the local bridge CLI opens draft PRs and PR comments only through Bifrost gate/receipts, hosted policy requires target repositories and validates Bifrost request/governance provenance for GitHub actions, and GitHub webhooks sync issues, PRs, and reviews into Bifrost work/review state. Bifrost now has a native identity-provider slice: `POST /auth/bifrost/register` creates a Bifrost-owned account without OAuth, assigns `BifrostIdentity` / `NormalizedBifrostIdentity`, signs in with a Bifrost cookie, and leaves membership at `Authenticated` until invite/approval or Heimdall-backed grants elevate it; that Bifrost identity should be enough for most GameCult services that accept Bifrost trust, while GitHub and Heimdall paths now ensure new accounts also receive a Bifrost identity and Heimdall keeps outside-provider account association/token custody. Bifrost's local bridge CLI now exposes `other-request`, a receipt-only `BridgeTargetSurface.Other` / `BridgeActionKind.Other` crossing for future public worlds: it fails closed without `BIFROST_BRIDGE_BASE_URL` and `BIFROST_BRIDGE_TOKEN`, carries Bifrost identity plus Heimdall capability/account reference and Epiphany provenance into the hosted ledger, and deliberately executes no provider transport until the target surface earns a first-class actuator. Patreon support is hooked as Heimdall-signed patronage intake, not Bifrost-owned OAuth: `POST /heimdall/patron-support/events` verifies Heimdall HMAC, resolves the linked `HeimdallAccountId`, records `ExternalPatronProvider.Patreon` support events, writes patron point transactions, and derives current patron tier snapshots. - Bifrost provider advertisement truth is now synced with the bridge implementation and pushed upstream through Bifrost commits `718ae94` and `fa398ee`: `tools/provider-advertisement.mjs print` names the current bridge action ledger, GitHub webhook work/review sync, and Heimdall patron-support intake endpoints; schemas call bridge action/receipt and patron support current hosted contracts; command boundaries name GitHub draft PR/comment, Discord messages/DMs through the Bifrost gate with Heimdall-linked actor capability, Reddit Persona organizing threads, future-surface `other-request`, and Heimdall-signed Patreon/PayPal support facts; `print-surface` and `print-binding` expose read-only Eve/operator capability sight including `github-bridge`, `github-work-sync`, `discord-bridge`, `reddit-bridge`, `future-surface-bridge`, and `heimdall-patron-support-intake`. Focused Bifrost proof `ProviderAdvertisementTests` passed 2 tests after the Discord/Reddit advertisement hardening, the earlier `ProviderAdvertisementTests|BridgeCliTests` proof passed 32 tests, and the CultCache export path wrote advertisement, operator surface, and interface binding to a temporary witness successfully. - - Bifrost bridge readiness is now explicit instead of collapsed into yes/no incense. Bifrost commit `a474c28` makes `tools/provider-advertisement.mjs print-surface` and `print-binding` expose per-surface bridge readiness rows: GitHub is `live`, Patron is `live` through Heimdall HMAC patron-support intake, `Other` is `live` as receipt-only future-surface request, and Discord/Reddit are `prepared` when local transport credentials are not visible. The operator bridge metric turns `warn` when any prepared surface is missing live actuator credentials, while still preserving Bifrost/Heimdall ownership: Bifrost owns the gate/receipt/readiness projection, Heimdall owns outside-provider account and capability truth, and Epiphany should consume this surface as an oracle rather than guessing from local env. - - Epiphany native status now consumes Bifrost's bridge readiness oracle instead of only documenting it. `epiphany-mvp-status` shells out read-only to `E:\Projects\Bifrost\tools\provider-advertisement.mjs print-surface`, distills `bifrostBridge` into status JSON with per-surface `live`/`prepared` rows, preserves `privateStateExposed=false`, and the local wrapper status line prints the bridge summary beside Persona/coordinator status. `epiphany-bifrost-bridge-status-smoke` is the native runnable guard for that contract: GitHub, Other, and Patron must read `live`, Discord/Reddit may read `live` or `prepared`, and private state must remain sealed. `epiphany-persona-bridge-smoke` is the aggregate proof over bridge sight plus Persona Discord, Reddit, and future-surface mouths: every mouth must block missing Bifrost bridge config, missing Heimdall capability proof, and wrong-surface Heimdall proof before transport, then bridged smoke receipts must carry `epiphany.Persona` plus target-shaped Heimdall refs. `tools/epiphany_local_run.ps1 -Mode persona-bridge` is the operator mouth for the aggregate proof; wrapper artifact `local-20260622-173458-679-5bdb3b04` printed GitHub/Other/Patron live, Discord/Reddit prepared, and Discord/Reddit/Other Persona mouths bridged only through Bifrost with private state sealed. The older app-server-backed `epiphany-mvp-status-smoke` carries the same readiness assertions but currently depends on a missing `codex-app-server.exe`. This is sight only: Epiphany does not read Bifrost secrets, does not execute provider transport, and does not become a bridge authority. + - Bifrost commit `a474c28` historically exposed `print-surface`/`print-binding` readiness-shaped rows. Epiphany has no authenticated typed ingest that could make a sibling workspace path, executable presence, exit zero, parseable JSON, or caller-supplied boolean authoritative provider sight. The former local oracle projection was therefore structurally deleted rather than relabeled: native MVP status no longer shells into the sibling workspace or emits `bifrostBridge`, the standalone bridge-readiness smoke is gone, and the wrapper no longer prints provider-ready counts. Bifrost and Heimdall remain the owners of their runtime capability and account truth; absence of an Epiphany projection means unknown, not unavailable or ready. + - Persona Discord, Reddit, and future-surface mouths retain one narrow consequence path. Epiphany owns speech eligibility and invokes the configured Bifrost actuator for a specific crossing; a validated returned receipt is bound only to that speech/request artifact as evidence of that single attempted consequence. It cannot establish global provider inventory, liveness, capability, readiness, publication, or future operability. The cross-mouth aggregate smoke and wrapper mode are deleted; each mouth proves only its own missing-configuration and capability refusals, target-bound receipt shape, and private-state seal. Formal authority map: owner = the participating Bifrost/provider boundary; inputs = one eligible crossing request plus configured actuator coordinates; output = one scoped transport/request receipt; derived state = artifact-local consequence evidence only; forbidden writers = MVP status, wrapper summaries, fixture aggregators, sibling-path probes, and caller booleans; shared path = all three Persona mouths retain the same fail-closed eligibility/receipt boundary without sharing consequence authority; deletion line = the sibling readiness projector, both aggregate smoke binaries, aggregate output fields, and status/wrapper presentation. - Bifrost future-surface bridge policy is now hosted law, not only Epiphany mouth discipline, and is pushed upstream at Bifrost commit `30e5945`: bridge actions persist `TargetSurfaceName`; `tools/bifrost-bridge.mjs other-request` sends `targetSurfaceName` from `--surface-name`; hosted policy rejects `Other` Persona/agent actions without a named future surface; and the Heimdall capability reference must contain that named surface such as `heimdall:bluesky:*` before Bifrost authorizes the crossing. The provider advertisement now says future-surface requests require named-surface Heimdall capability matching. Focused Bifrost proof `PlatformEndpointsTests|BridgeCliTests|ProviderAdvertisementTests` passed 71 tests, provider print/surface/binding smokes succeeded, and the CultCache advertisement export path wrote then removed a temporary witness successfully. - Epiphany now has a generic Persona outside-world mouth for future surfaces. `epiphany-persona-other` supports `draft`, `request`, `latest`, and `smoke`; records the same parent-side `epiphany.persona_speech_audit.v0`/CultMesh audit as the Discord and Reddit mouths; requires Bifrost identity plus a surface-shaped Heimdall capability/account reference such as `heimdall:bluesky:*`; refuses missing bridge, missing identity, missing Heimdall reference, wrong Heimdall surface, and repeated target saturation before transport; and invokes Bifrost `tools/bifrost-bridge.mjs other-request` with Epiphany run/lane/agent provenance when eligible. MVP status/coordinator Persona action lists now expose `otherWorldPersonaRequest` beside Discord/Reddit public mouth actions, and the local wrapper build list includes the new binary. Verified with `epiphany-persona-other -- smoke`, Discord/Reddit Persona smokes, and focused `cargo check` for the touched status/coordinator/mouth binaries; `epiphany-mvp-status-smoke` could not run because the vendored `codex-app-server.exe` prerequisite was absent and rebuilding `codex-app-server` timed out twice without producing the binary. - The local operator wrapper now has first-class Persona mouth modes for Bifrost-owned outside-world crossings: `persona-discord`, `persona-reddit`, and `persona-other`. These modes invoke the native mouth binaries, write shared `.epiphany-persona` artifacts plus CultMesh speech audits, avoid the Codex app-server compatibility build, and surface compact operator proof rows without moving Discord/Reddit/future-provider authority into Epiphany. Native MVP status and coordinator readback now merge Discord, Reddit, and Other latest Persona artifacts while advertising `discordPersonaPost`, `redditPersonaPost`, and `otherWorldPersonaRequest`. Verified with focused `cargo build` for status/coordinator/Persona mouth binaries, PowerShell parse proof for `tools/epiphany_local_run.ps1`, local draft wrapper runs for all three Persona mouth modes, and `-Mode status` readback showing the advertised actions plus recent shared Persona artifacts. @@ -325,8 +325,7 @@ landed_baseline: - Use `cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-phase6-reorient-smoke` before modifying bounded CRRC reorientation policy behavior. - Use focused app-server/core Rust checks before modifying the bounded reorient-guided worker launch/result/CRRC coordinator surfaces. - Use `cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-mvp-status-smoke` before modifying the MVP operator status view. - - Use `cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-bifrost-bridge-status-smoke` before modifying Bifrost bridge readiness readback. - - Use `cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-persona-bridge-smoke` before modifying Persona outside-world bridge mouth behavior. + - Run the focused `epiphany-persona-discord`, `epiphany-persona-reddit`, and `epiphany-persona-other` binary tests and single-mouth smokes before modifying Persona outside-world bridge behavior. - Use `cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-mvp-coordinator-smoke` before modifying the fixed-lane MVP coordinator endpoint or runner. - Use `cargo test --manifest-path .\epiphany-core\Cargo.toml --lib runtime_spine -- --nocapture` and `cargo build --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-runtime-spine` before modifying native runtime-spine state or CultNet hello emission. - Use focused app-server/core Rust checks before modifying explicit role launch/read-back/acceptance behavior. diff --git a/tools/epiphany_local_run.ps1 b/tools/epiphany_local_run.ps1 index fa1fd67e..0a9f0923 100644 --- a/tools/epiphany_local_run.ps1 +++ b/tools/epiphany_local_run.ps1 @@ -1,5 +1,5 @@ param( - [ValidateSet("status", "plan", "smoke", "run", "mvp", "agent-state-soa", "swarm-status", "swarm-poke-down", "swarm-triage", "cluster-topology", "eve-surfaces", "eve-connect", "collaboration-feedback", "persona-discord", "persona-reddit", "persona-other", "persona-bridge", "daemon-survival-rehearsal", "repo-livefire-closure", "bifrost-publication", "bifrost-public-proof", "bifrost-artifact-acceptance", "bifrost-metrics", "bifrost-ledger", "receipt-directory", "tool-directory", "tool-invoke", "swarm-overview", "repo-persona-intake", "repo-swarm-run", "repo-work-queue-run", "repo-work-public-proof", "repo-work-readiness", "repo-deployment-config-audit", "repo-deployment-runbook", "repo-deployment-aftercare-audit", "repo-work-service-plan", "repo-work-service-runbook", "repo-work-service-launch", "repo-work-service-audit", "service-policy-directory", "service-plan", "service-launch", "service-runbook", "service-tick", "managed-service-task-plan", "managed-service-task-install", "managed-service-task-status", "managed-service-task-start", "managed-service-task-stop", "managed-service-task-uninstall")] + [ValidateSet("status", "plan", "smoke", "run", "mvp", "agent-state-soa", "swarm-status", "swarm-poke-down", "swarm-triage", "cluster-topology", "eve-surfaces", "eve-connect", "collaboration-feedback", "persona-discord", "persona-reddit", "persona-other", "daemon-survival-rehearsal", "repo-livefire-closure", "bifrost-publication", "bifrost-public-proof", "bifrost-artifact-acceptance", "bifrost-metrics", "bifrost-ledger", "receipt-directory", "tool-directory", "tool-invoke", "swarm-overview", "repo-persona-intake", "repo-swarm-run", "repo-work-queue-run", "repo-work-public-proof", "repo-work-readiness", "repo-deployment-config-audit", "repo-deployment-runbook", "repo-deployment-aftercare-audit", "repo-work-service-plan", "repo-work-service-runbook", "repo-work-service-launch", "repo-work-service-audit", "service-policy-directory", "service-plan", "service-launch", "service-runbook", "service-tick", "managed-service-task-plan", "managed-service-task-install", "managed-service-task-status", "managed-service-task-start", "managed-service-task-stop", "managed-service-task-uninstall")] [string]$Mode = "smoke", [string]$Root = (Resolve-Path ".").Path, [string]$Workspace = "", @@ -296,7 +296,6 @@ $heartbeatExe = Join-Path $TargetDir "debug\epiphany-heartbeat-store.exe" $PersonaExe = Join-Path $TargetDir "debug\epiphany-persona-discord.exe" $PersonaRedditExe = Join-Path $TargetDir "debug\epiphany-persona-reddit.exe" $PersonaOtherExe = Join-Path $TargetDir "debug\epiphany-persona-other.exe" -$PersonaBridgeSmokeExe = Join-Path $TargetDir "debug\epiphany-persona-bridge-smoke.exe" $characterLoopExe = Join-Path $TargetDir "debug\epiphany-character-loop.exe" $agentMemoryExe = Join-Path $TargetDir "debug\epiphany-agent-memory-store.exe" $modelProvider = "openai-codex" @@ -363,8 +362,6 @@ if (-not $SkipBuild) { "--bin", "epiphany-persona-discord", "--bin", "epiphany-persona-reddit", "--bin", "epiphany-persona-other", - "--bin", "epiphany-bifrost-bridge-status-smoke", - "--bin", "epiphany-persona-bridge-smoke", "--bin", "epiphany-character-loop", "--bin", "epiphany-agent-memory-store", "--bin", "epiphany-agent-telemetry", @@ -413,9 +410,6 @@ function Format-ServiceExecutionFailedChecks { "${serviceId}::$($_.action)=${observed}:followUp=tools/epiphany_local_run.ps1 -Mode swarm-overview" }) -join "; ") } -if ($Mode -eq "persona-bridge") { - $requiredBinaries += @($PersonaBridgeSmokeExe) -} if (@("plan", "smoke", "run", "mvp") -contains $Mode) { $requiredBinaries += @($codexAppServer, $coordinatorExe) } @@ -882,17 +876,6 @@ if (@("persona-discord", "persona-reddit", "persona-other") -contains $Mode) { } } -if ($Mode -eq "persona-bridge") { - $resultPath = Join-Path $artifactRoot "persona-bridge.stdout.json" - Invoke-Checked ` - -Label "prove Persona outside-world mouths route through Bifrost" ` - -FilePath $PersonaBridgeSmokeExe ` - -Arguments @() ` - -WorkingDirectory $Root ` - -StdoutPath $resultPath ` - -StderrPath (Join-Path $artifactRoot "persona-bridge.stderr.log") -} - if ($Mode -eq "bifrost-publication") { $resultPath = Join-Path $artifactRoot "bifrost-publication.stdout.json" Invoke-Checked ` @@ -1742,11 +1725,7 @@ if ($resultPath -ne "" -and (Test-Path -LiteralPath $resultPath)) { if ($Mode -eq "smoke") { Write-Host "Smoke: cold=$($result.coldAction), pressure=$($result.pressureAction), privateBackendMutationRejected=$($result.directBackendCompletionRejected)" } elseif ($Mode -eq "status") { - $bridgeRows = "none" - if ($null -ne $result.bifrostBridge -and $null -ne $result.bifrostBridge.surfaces -and $result.bifrostBridge.surfaces.Count -gt 0) { - $bridgeRows = (@($result.bifrostBridge.surfaces) | ForEach-Object { "$($_.id)=$($_.status)" }) -join "," - } - Write-Host "Status: thread=$($result.threadId), coordinator=$($result.coordinator.action), crrc=$($result.crrc.recommendation.action), bifrostBridge=$($result.bifrostBridge.status), providerReady=$($result.bifrostBridge.providerReadySurfaceCount)/$($result.bifrostBridge.surfaceCount), bridgeRows=$bridgeRows" + Write-Host "Status: thread=$($result.threadId), coordinator=$($result.coordinator.action), crrc=$($result.crrc.recommendation.action)" } elseif ($Mode -eq "agent-state-soa") { $agentRows = "none" if ($null -ne $result.tuiRows -and $result.tuiRows.Count -gt 0) { @@ -1833,18 +1812,6 @@ if ($resultPath -ne "" -and (Test-Path -LiteralPath $resultPath)) { $bridgeAction = "none" } Write-Host "Persona mouth: mode=$Mode, action=$PersonaMouthAction, decision=$decision, audit=$auditId, target=$target, bridgeAction=$bridgeAction, artifact=$resultPath" - } elseif ($Mode -eq "persona-bridge") { - $surfaceRows = "none" - if ($null -ne $result.surfaces -and $result.surfaces.Count -gt 0) { - $surfaceRows = (($result.surfaces | ForEach-Object { - "$($_.surface):transport=$($_.transport),identity=$($_.bifrostIdentity),heimdall=$($_.heimdallCapabilityRef),private=$($_.speechAuditPrivateStateExposed)" - }) -join "; ") - } - $bridgeRows = "none" - if ($null -ne $result.readiness -and $null -ne $result.readiness.surfaces -and $result.readiness.surfaces.Count -gt 0) { - $bridgeRows = (($result.readiness.surfaces | ForEach-Object { "$($_.id)=$($_.status)" }) -join ",") - } - Write-Host "Persona bridge: status=$($result.status), bridge=$($result.readiness.status), providerReady=$($result.readiness.providerReadySurfaceCount)/$($result.readiness.surfaceCount), bridgeRows=$bridgeRows, mouthRows=$surfaceRows, privateStateExposed=$($result.privateStateExposed), artifact=$resultPath" } elseif ($Mode -eq "bifrost-publication") { Write-Host "Bifrost publication request: status=$($result.status), intent=$($result.intentId), responseOwner=$($result.responseOwner), privateStateExposed=$($result.privateStateExposed)" } elseif ($Mode -eq "bifrost-public-proof") {