Add aggregate Persona bridge smoke
This commit is contained in:
parent
842babf06c
commit
9287bf3d65
4 changed files with 308 additions and 1 deletions
305
epiphany-core/src/bin/epiphany-persona-bridge-smoke.rs
Normal file
305
epiphany-core/src/bin/epiphany-persona-bridge-smoke.rs
Normal file
|
|
@ -0,0 +1,305 @@
|
|||
use anyhow::anyhow;
|
||||
use anyhow::Context;
|
||||
use anyhow::Result;
|
||||
use serde_json::json;
|
||||
use serde_json::Value;
|
||||
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<Self> {
|
||||
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<Value> {
|
||||
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<Value> {
|
||||
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",
|
||||
)?;
|
||||
require(
|
||||
surface_is(value, "github", &["live"])
|
||||
&& surface_is(value, "other", &["live"])
|
||||
&& surface_is(value, "patron", &["live"])
|
||||
&& surface_is(value, "discord", &["live", "prepared"])
|
||||
&& surface_is(value, "reddit", &["live", "prepared"]),
|
||||
"Bifrost readiness smoke should expose governed bridge surfaces",
|
||||
)
|
||||
}
|
||||
|
||||
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"),
|
||||
"readySurfaceCount": value.pointer("/bifrostBridge/readySurfaceCount"),
|
||||
"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 surface_is(value: &Value, id: &str, allowed: &[&str]) -> bool {
|
||||
value
|
||||
.pointer("/bifrostBridge/surfaces")
|
||||
.and_then(Value::as_array)
|
||||
.and_then(|surfaces| {
|
||||
surfaces
|
||||
.iter()
|
||||
.find(|surface| surface.get("id").and_then(Value::as_str) == Some(id))
|
||||
})
|
||||
.and_then(|surface| surface.get("status").and_then(Value::as_str))
|
||||
.is_some_and(|status| allowed.contains(&status))
|
||||
}
|
||||
|
||||
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<PathBuf> {
|
||||
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<PathBuf> {
|
||||
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<Item = String>, name: &str) -> Result<PathBuf> {
|
||||
args.next()
|
||||
.map(PathBuf::from)
|
||||
.ok_or_else(|| anyhow!("{name} requires a value"))
|
||||
}
|
||||
|
|
@ -42,6 +42,7 @@ remembers doctrine; the branch remembers the blade.
|
|||
- Bifrost commit `30e5945` strengthens the future-surface bridge law: hosted bridge actions now persist `TargetSurfaceName`, `other-request` sends it from `--surface-name`, and Bifrost rejects `Other` Persona/agent actions unless the request names the future surface and the Heimdall capability reference matches it, such as `heimdall:bluesky:*`. This makes Epiphany's generic Persona mouth a client-side purity seal over server-side law instead of a trust assumption. Verified with focused `PlatformEndpointsTests|BridgeCliTests|ProviderAdvertisementTests` passing 71 tests, provider print/surface/binding smokes, and a temporary CultCache advertisement export/readback path.
|
||||
- Bifrost commit `a474c28` exposes bridge surface readiness instead of a collapsed bridge yes/no. `tools/provider-advertisement.mjs print-surface` and `print-binding` now report per-surface rows: GitHub `live`, Patron `live` through Heimdall HMAC patron-support intake, Other `live` as receipt-only future-surface request, and Discord/Reddit `prepared` when local actuator credentials are not visible. The bridge metric warns when any prepared surface is not live, so Epiphany can treat Bifrost as the bridge oracle without guessing from its own environment. Verified with `DOTNET_ROLL_FORWARD=Major dotnet test tests\Bifrost.Web.Tests\Bifrost.Web.Tests.csproj --filter "FullyQualifiedName~ProviderAdvertisementTests"`: 2 passed, plus direct provider print/surface/binding smokes.
|
||||
- Epiphany native status now reads that Bifrost bridge oracle directly. `epiphany-mvp-status` invokes Bifrost's provider advertisement `print-surface` read-only, exposes `bifrostBridge` in native/Codex status JSON, and the local wrapper `-Mode status` prints `bifrostBridge=<status>`, ready counts, and compact per-surface rows. `epiphany-bifrost-bridge-status-smoke` is the runnable native guard: GitHub, Other, and Patron must read `live`; Discord/Reddit may read `live` or `prepared`; `privateStateExposed` must stay false. Verified with focused cargo build and direct native smoke readback showing `status=prepared`, `ready=3/5`, `prepared=2`, `private=false`, `github=live`, `discord=prepared`, `reddit=prepared`, `other=live`, and `patron=live`. The older app-server-backed `epiphany-mvp-status-smoke` carries the same assertions but still requires `codex-app-server.exe`; it currently fails before status validation because that binary is missing from `C:\Users\Meta\.cargo-target-codex\debug`.
|
||||
- `epiphany-persona-bridge-smoke` is the one-command outside-world bridge proof. It runs the bridge readiness smoke plus Discord, Reddit, and Other Persona mouth smokes, then verifies that each public mouth blocks missing Bifrost bridge config, missing Heimdall capability proof, and wrong-surface Heimdall proof before transport. Successful bridged smoke rows must carry `epiphany.Persona`, target-shaped Heimdall refs (`heimdall:discord:*`, `heimdall:reddit:*`, or named future surface such as `heimdall:bluesky:*`), Bifrost transport names, and speech-audit `privateStateExposed=false`. Latest proof passed with readiness `prepared`, `ready=3/5`, Discord/Reddit `prepared`, GitHub/Other/Patron `live`, and all three Persona mouth routes bridged only through Bifrost.
|
||||
- Persona public mouth crossings now fail closed on missing or wrong-surface authority cargo before any Bifrost CLI invocation. `epiphany-persona-discord post` and `epiphany-persona-reddit post` require a Bifrost identity plus a Heimdall-backed `heimdall:discord:*` or `heimdall:reddit:*` capability/account reference, write blocked candidate artifacts with `missing-bifrost-identity`, `missing-heimdall-capability-ref`, or `wrong-heimdall-capability-surface`, and smokes prove the bridged path still carries identity, run/lane/agent, source, authority, and surface-shaped Heimdall provenance. Verified sequentially with `cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-persona-discord -- smoke` and `cargo run --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-persona-reddit -- smoke`.
|
||||
- Epiphany now has the matching generic Persona mouth for future Bifrost surfaces. `epiphany-persona-other` supports `draft`, `request`, `latest`, and `smoke`; records the same parent-side `epiphany.persona_speech_audit.v0` and CultMesh audit as the Discord/Reddit mouths; requires Bifrost identity plus a target-shaped Heimdall reference such as `heimdall:bluesky:*`; refuses missing bridge, missing identity, missing Heimdall reference, wrong-surface authority cargo, and repeated target saturation before transport; and invokes Bifrost `tools/bifrost-bridge.mjs other-request` with Epiphany run/lane/agent provenance when eligible. Native MVP status/coordinator Persona action lists expose `otherWorldPersonaRequest` beside Discord/Reddit, 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 binaries. `epiphany-mvp-status-smoke` could not run because the vendored `codex-app-server.exe` prerequisite was absent; rebuilding `codex-app-server` timed out twice without producing the binary.
|
||||
- The local operator wrapper now exposes the advertised Persona outside-world mouth actions directly: `-Mode persona-discord`, `-Mode persona-reddit`, and `-Mode persona-other`. These modes call the native mouth binaries, write shared `.epiphany-persona` artifacts plus CultMesh speech audits, skip the Codex app-server compatibility build, and leave Bifrost/Heimdall as the crossing authority. Native status/coordinator readback now merges Discord, Reddit, and Other latest Persona artifacts instead of advertising Reddit while only reading Discord/Other. Verified with focused `cargo build --manifest-path .\epiphany-core\Cargo.toml --bin epiphany-mvp-status --bin epiphany-mvp-coordinator --bin epiphany-persona-discord --bin epiphany-persona-reddit --bin epiphany-persona-other`, PowerShell parser proof for `tools/epiphany_local_run.ps1`, draft wrapper runs for all three modes, and `-Mode status` readback showing `personaBubble,characterTurn,discordPersonaPost,redditPersonaPost,otherWorldPersonaRequest` plus recent shared Persona artifacts.
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -83,7 +83,7 @@ active_subgoals:
|
|||
- 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 at Bifrost commit `718ae94`: `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, 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`, `future-surface-bridge`, and `heimdall-patron-support-intake`. Focused Bifrost proof `ProviderAdvertisementTests|BridgeCliTests` 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. The older app-server-backed `epiphany-mvp-status-smoke` carries the same 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.
|
||||
- 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. 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 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.
|
||||
|
|
@ -323,6 +323,7 @@ landed_baseline:
|
|||
- 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.
|
||||
- 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.
|
||||
|
|
|
|||
Reference in a new issue