Gate Persona mouth crossings on Bifrost authority
This commit is contained in:
parent
b502fecfd0
commit
50b62a0ab5
8 changed files with 201 additions and 34 deletions
|
|
@ -1,12 +1,12 @@
|
|||
use anyhow::anyhow;
|
||||
use anyhow::Context;
|
||||
use anyhow::Result;
|
||||
use anyhow::anyhow;
|
||||
use chrono::SecondsFormat;
|
||||
use epiphany_core::load_latest_epiphany_cultmesh_persona_speech_audit;
|
||||
use epiphany_core::write_epiphany_cultmesh_persona_speech_audit;
|
||||
use epiphany_core::EpiphanyCultMeshPersonaSpeechAuditEntry;
|
||||
use epiphany_core::EPIPHANY_CULTMESH_LOCAL_AREA_VERSE_ID;
|
||||
use epiphany_core::EPIPHANY_CULTMESH_PERSONA_SPEECH_AUDIT_SCHEMA_VERSION;
|
||||
use epiphany_core::EpiphanyCultMeshPersonaSpeechAuditEntry;
|
||||
use epiphany_core::load_latest_epiphany_cultmesh_persona_speech_audit;
|
||||
use epiphany_core::write_epiphany_cultmesh_persona_speech_audit;
|
||||
use serde_json::Value;
|
||||
use std::cmp::Reverse;
|
||||
use std::env;
|
||||
|
|
@ -288,10 +288,46 @@ fn run_post(
|
|||
"speechAudit": audit,
|
||||
}));
|
||||
};
|
||||
let Some(bifrost_identity) = required_bifrost_identity(config) else {
|
||||
let path = write_draft(
|
||||
content,
|
||||
config,
|
||||
artifact_dir,
|
||||
"blocked",
|
||||
"missing Bifrost identity for public Persona crossing",
|
||||
Some(&audit),
|
||||
)?;
|
||||
return Ok(serde_json::json!({
|
||||
"ok": false,
|
||||
"posted": false,
|
||||
"blocked": "missing-bifrost-identity",
|
||||
"draftPath": path,
|
||||
"speechAudit": audit,
|
||||
}));
|
||||
};
|
||||
let Some(heimdall_capability_ref) = required_heimdall_capability_ref(config) else {
|
||||
let path = write_draft(
|
||||
content,
|
||||
config,
|
||||
artifact_dir,
|
||||
"blocked",
|
||||
"missing Heimdall-backed capability/account reference for public Persona crossing",
|
||||
Some(&audit),
|
||||
)?;
|
||||
return Ok(serde_json::json!({
|
||||
"ok": false,
|
||||
"posted": false,
|
||||
"blocked": "missing-heimdall-capability-ref",
|
||||
"draftPath": path,
|
||||
"speechAudit": audit,
|
||||
}));
|
||||
};
|
||||
let persona = resolve_persona(config, persona_name, persona_avatar_url)?;
|
||||
let posted = post_bifrost_discord_message(
|
||||
&bridge_cli_path,
|
||||
config,
|
||||
&bifrost_identity,
|
||||
&heimdall_capability_ref,
|
||||
&configured_channel_id,
|
||||
content.trim(),
|
||||
reply_to_message_id.as_deref(),
|
||||
|
|
@ -523,6 +559,8 @@ fn resolve_persona(
|
|||
fn post_bifrost_discord_message(
|
||||
bridge_cli_path: &Path,
|
||||
config: &PersonaConfig,
|
||||
bifrost_identity: &str,
|
||||
heimdall_capability_ref: &str,
|
||||
channel_id: &str,
|
||||
content: &str,
|
||||
reply_to_message_id: Option<&str>,
|
||||
|
|
@ -534,12 +572,7 @@ fn post_bifrost_discord_message(
|
|||
command.arg("discord-post");
|
||||
command.arg("--channel-id").arg(channel_id);
|
||||
command.arg("--content").arg(content);
|
||||
command.arg("--identity").arg(
|
||||
config
|
||||
.bifrost_identity
|
||||
.as_deref()
|
||||
.unwrap_or("epiphany.Persona"),
|
||||
);
|
||||
command.arg("--identity").arg(bifrost_identity);
|
||||
command.arg("--source-kind").arg(
|
||||
config
|
||||
.bifrost_source_kind
|
||||
|
|
@ -557,6 +590,9 @@ fn post_bifrost_discord_message(
|
|||
command
|
||||
.arg("--epiphany-agent-identity")
|
||||
.arg("epiphany.Persona");
|
||||
command
|
||||
.arg("--heimdall-capability-ref")
|
||||
.arg(heimdall_capability_ref);
|
||||
if let Some(run_id) = env::var("EPIPHANY_RUN_ID")
|
||||
.ok()
|
||||
.map(|value| value.trim().to_string())
|
||||
|
|
@ -564,11 +600,6 @@ fn post_bifrost_discord_message(
|
|||
{
|
||||
command.arg("--epiphany-run-id").arg(run_id);
|
||||
}
|
||||
if let Some(ref_name) = &config.heimdall_capability_ref_env {
|
||||
if let Some(value) = env_value(ref_name) {
|
||||
command.arg("--heimdall-capability-ref").arg(value);
|
||||
}
|
||||
}
|
||||
if let Some(message_id) = reply_to_message_id {
|
||||
command.arg("--reply-to-message-id").arg(message_id);
|
||||
}
|
||||
|
|
@ -671,9 +702,13 @@ console.log(JSON.stringify({
|
|||
.with_context(|| format!("failed to write {}", fake_bridge.display()))?;
|
||||
let mut bridge_config = config.clone();
|
||||
bridge_config.bifrost_bridge_cli_path = Some(fake_bridge);
|
||||
let mut missing_capability_config = bridge_config.clone();
|
||||
missing_capability_config.heimdall_capability_ref_env =
|
||||
Some("HEIMDALL_CAPABILITY_REF_MISSING_FOR_SMOKE".to_string());
|
||||
unsafe {
|
||||
env::remove_var("EPIPHANY_PERSONA_AQUARIUM_CHANNEL_ID_TEST");
|
||||
env::set_var("HEIMDALL_CAPABILITY_REF_TEST", "heimdall-capability-smoke");
|
||||
env::remove_var("HEIMDALL_CAPABILITY_REF_MISSING_FOR_SMOKE");
|
||||
env::set_var("EPIPHANY_RUN_ID", "epiphany-run-smoke");
|
||||
}
|
||||
let draft = run_draft(
|
||||
|
|
@ -719,6 +754,17 @@ console.log(JSON.stringify({
|
|||
None,
|
||||
None,
|
||||
)?;
|
||||
let missing_capability = run_post(
|
||||
"Persona should not cross Discord without Heimdall capability proof.",
|
||||
&missing_capability_config,
|
||||
&temp_dir,
|
||||
&cultmesh_store,
|
||||
runtime_id,
|
||||
Some("123".to_string()),
|
||||
None,
|
||||
None,
|
||||
None,
|
||||
)?;
|
||||
let bridged = run_post(
|
||||
"Persona crosses to Discord only through Bifrost.",
|
||||
&bridge_config,
|
||||
|
|
@ -788,6 +834,8 @@ console.log(JSON.stringify({
|
|||
&& blocked["blocked"] == "missing-channel-id"
|
||||
&& missing_bridge["ok"] == false
|
||||
&& missing_bridge["blocked"] == "missing-bifrost-bridge"
|
||||
&& missing_capability["ok"] == false
|
||||
&& missing_capability["blocked"] == "missing-heimdall-capability-ref"
|
||||
&& bridged["ok"] == true
|
||||
&& bridged["transport"] == "bifrost.discord-post"
|
||||
&& bridged["bifrostBridgeReceipt"]["provenance"]["bifrostIdentity"] == "epiphany.Persona"
|
||||
|
|
@ -813,6 +861,7 @@ console.log(JSON.stringify({
|
|||
"bubble": bubble,
|
||||
"blocked": blocked,
|
||||
"missingBridge": missing_bridge,
|
||||
"missingCapability": missing_capability,
|
||||
"bridged": bridged,
|
||||
"wrongChannel": wrong,
|
||||
"repeatedSpeech": repeated,
|
||||
|
|
@ -1108,6 +1157,34 @@ fn bifrost_bridge_cli_path(config: &PersonaConfig) -> Option<PathBuf> {
|
|||
})
|
||||
}
|
||||
|
||||
fn required_bifrost_identity(config: &PersonaConfig) -> Option<String> {
|
||||
trim_optional(config.bifrost_identity.clone()).or_else(|| {
|
||||
env::var("BIFROST_IDENTITY")
|
||||
.ok()
|
||||
.map(|value| value.trim().to_string())
|
||||
.filter(|value| !value.is_empty())
|
||||
})
|
||||
}
|
||||
|
||||
fn required_heimdall_capability_ref(config: &PersonaConfig) -> Option<String> {
|
||||
config
|
||||
.heimdall_capability_ref_env
|
||||
.as_ref()
|
||||
.and_then(env_value)
|
||||
.or_else(|| {
|
||||
env::var("HEIMDALL_CAPABILITY_REF")
|
||||
.ok()
|
||||
.map(|value| value.trim().to_string())
|
||||
.filter(|value| !value.is_empty())
|
||||
})
|
||||
.or_else(|| {
|
||||
env::var("BIFROST_HEIMDALL_CAPABILITY_REF")
|
||||
.ok()
|
||||
.map(|value| value.trim().to_string())
|
||||
.filter(|value| !value.is_empty())
|
||||
})
|
||||
}
|
||||
|
||||
fn env_value(name: &String) -> Option<String> {
|
||||
env::var(name)
|
||||
.ok()
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
use anyhow::anyhow;
|
||||
use anyhow::Context;
|
||||
use anyhow::Result;
|
||||
use anyhow::anyhow;
|
||||
use chrono::SecondsFormat;
|
||||
use epiphany_core::load_latest_epiphany_cultmesh_persona_speech_audit;
|
||||
use epiphany_core::write_epiphany_cultmesh_persona_speech_audit;
|
||||
use epiphany_core::EpiphanyCultMeshPersonaSpeechAuditEntry;
|
||||
use epiphany_core::EPIPHANY_CULTMESH_LOCAL_AREA_VERSE_ID;
|
||||
use epiphany_core::EPIPHANY_CULTMESH_PERSONA_SPEECH_AUDIT_SCHEMA_VERSION;
|
||||
use epiphany_core::EpiphanyCultMeshPersonaSpeechAuditEntry;
|
||||
use epiphany_core::load_latest_epiphany_cultmesh_persona_speech_audit;
|
||||
use epiphany_core::write_epiphany_cultmesh_persona_speech_audit;
|
||||
use serde_json::Value;
|
||||
use std::cmp::Reverse;
|
||||
use std::env;
|
||||
|
|
@ -267,9 +267,49 @@ fn run_post(
|
|||
"speechAudit": audit,
|
||||
}));
|
||||
};
|
||||
let Some(bifrost_identity) = required_bifrost_identity(config) else {
|
||||
let path = write_post_artifact(
|
||||
title,
|
||||
content,
|
||||
config,
|
||||
artifact_dir,
|
||||
"blocked",
|
||||
"missing Bifrost identity for public Persona crossing",
|
||||
Some(&audit),
|
||||
None,
|
||||
)?;
|
||||
return Ok(serde_json::json!({
|
||||
"ok": false,
|
||||
"posted": false,
|
||||
"blocked": "missing-bifrost-identity",
|
||||
"draftPath": path,
|
||||
"speechAudit": audit,
|
||||
}));
|
||||
};
|
||||
let Some(heimdall_capability_ref) = required_heimdall_capability_ref(config) else {
|
||||
let path = write_post_artifact(
|
||||
title,
|
||||
content,
|
||||
config,
|
||||
artifact_dir,
|
||||
"blocked",
|
||||
"missing Heimdall-backed capability/account reference for public Persona crossing",
|
||||
Some(&audit),
|
||||
None,
|
||||
)?;
|
||||
return Ok(serde_json::json!({
|
||||
"ok": false,
|
||||
"posted": false,
|
||||
"blocked": "missing-heimdall-capability-ref",
|
||||
"draftPath": path,
|
||||
"speechAudit": audit,
|
||||
}));
|
||||
};
|
||||
let receipt = post_bifrost_reddit_thread(
|
||||
&bridge_cli_path,
|
||||
config,
|
||||
&bifrost_identity,
|
||||
&heimdall_capability_ref,
|
||||
&target_subreddit,
|
||||
title,
|
||||
content,
|
||||
|
|
@ -304,6 +344,8 @@ fn run_post(
|
|||
fn post_bifrost_reddit_thread(
|
||||
bridge_cli_path: &Path,
|
||||
config: &PersonaRedditConfig,
|
||||
bifrost_identity: &str,
|
||||
heimdall_capability_ref: &str,
|
||||
subreddit: &str,
|
||||
title: &str,
|
||||
content: &str,
|
||||
|
|
@ -331,12 +373,7 @@ fn post_bifrost_reddit_thread(
|
|||
if let Some(flair_id) = persona_flair_id {
|
||||
command.arg("--persona-flair-id").arg(flair_id);
|
||||
}
|
||||
command.arg("--identity").arg(
|
||||
config
|
||||
.bifrost_identity
|
||||
.as_deref()
|
||||
.unwrap_or("epiphany.Persona"),
|
||||
);
|
||||
command.arg("--identity").arg(bifrost_identity);
|
||||
command.arg("--source-kind").arg(
|
||||
config
|
||||
.bifrost_source_kind
|
||||
|
|
@ -354,6 +391,9 @@ fn post_bifrost_reddit_thread(
|
|||
command
|
||||
.arg("--epiphany-agent-identity")
|
||||
.arg("epiphany.Persona");
|
||||
command
|
||||
.arg("--heimdall-capability-ref")
|
||||
.arg(heimdall_capability_ref);
|
||||
if let Some(run_id) = env::var("EPIPHANY_RUN_ID")
|
||||
.ok()
|
||||
.map(|value| value.trim().to_string())
|
||||
|
|
@ -361,11 +401,6 @@ fn post_bifrost_reddit_thread(
|
|||
{
|
||||
command.arg("--epiphany-run-id").arg(run_id);
|
||||
}
|
||||
if let Some(ref_name) = &config.heimdall_capability_ref_env {
|
||||
if let Some(value) = env_value(ref_name) {
|
||||
command.arg("--heimdall-capability-ref").arg(value);
|
||||
}
|
||||
}
|
||||
|
||||
let output = command.output().with_context(|| {
|
||||
format!(
|
||||
|
|
@ -549,8 +584,13 @@ console.log(JSON.stringify({
|
|||
bifrost_bridge_cli_path: None,
|
||||
..config.clone()
|
||||
};
|
||||
let missing_capability_config = PersonaRedditConfig {
|
||||
heimdall_capability_ref_env: Some("HEIMDALL_CAPABILITY_REF_MISSING_FOR_SMOKE".to_string()),
|
||||
..config.clone()
|
||||
};
|
||||
unsafe {
|
||||
env::set_var("HEIMDALL_CAPABILITY_REF_TEST", "heimdall-reddit-smoke");
|
||||
env::remove_var("HEIMDALL_CAPABILITY_REF_MISSING_FOR_SMOKE");
|
||||
env::set_var("EPIPHANY_RUN_ID", "epiphany-run-reddit-smoke");
|
||||
}
|
||||
let draft = run_draft(
|
||||
|
|
@ -575,6 +615,18 @@ console.log(JSON.stringify({
|
|||
None,
|
||||
None,
|
||||
)?;
|
||||
let missing_capability = run_post(
|
||||
"Epiphany missing Heimdall capability",
|
||||
"Persona should not reach Reddit without Heimdall-backed capability proof.",
|
||||
&missing_capability_config,
|
||||
&temp_dir,
|
||||
&cultmesh_store,
|
||||
runtime_id,
|
||||
None,
|
||||
None,
|
||||
None,
|
||||
None,
|
||||
)?;
|
||||
let bridged = run_post(
|
||||
"Epiphany crosses through Bifrost",
|
||||
"Persona posts to Reddit only through the Bifrost bridge.",
|
||||
|
|
@ -634,6 +686,8 @@ console.log(JSON.stringify({
|
|||
let ok = draft["ok"] == true
|
||||
&& missing_bridge["ok"] == false
|
||||
&& missing_bridge["blocked"] == "missing-bifrost-bridge"
|
||||
&& missing_capability["ok"] == false
|
||||
&& missing_capability["blocked"] == "missing-heimdall-capability-ref"
|
||||
&& bridged["ok"] == true
|
||||
&& bridged["transport"] == "bifrost.reddit-post"
|
||||
&& bridged["bifrostBridgeReceipt"]["provenance"]["bifrostIdentity"] == "epiphany.Persona"
|
||||
|
|
@ -650,6 +704,7 @@ console.log(JSON.stringify({
|
|||
"ok": ok,
|
||||
"draft": draft,
|
||||
"missingBridge": missing_bridge,
|
||||
"missingCapability": missing_capability,
|
||||
"bridged": bridged,
|
||||
"repeatedSpeech": repeated,
|
||||
"latestCultMeshSpeechAudit": latest_cultmesh_audit,
|
||||
|
|
@ -849,6 +904,39 @@ fn bifrost_bridge_cli_path(config: &PersonaRedditConfig) -> Option<PathBuf> {
|
|||
})
|
||||
}
|
||||
|
||||
fn required_bifrost_identity(config: &PersonaRedditConfig) -> Option<String> {
|
||||
config
|
||||
.bifrost_identity
|
||||
.clone()
|
||||
.map(|value| value.trim().to_string())
|
||||
.filter(|value| !value.is_empty())
|
||||
.or_else(|| {
|
||||
env::var("BIFROST_IDENTITY")
|
||||
.ok()
|
||||
.map(|value| value.trim().to_string())
|
||||
.filter(|value| !value.is_empty())
|
||||
})
|
||||
}
|
||||
|
||||
fn required_heimdall_capability_ref(config: &PersonaRedditConfig) -> Option<String> {
|
||||
config
|
||||
.heimdall_capability_ref_env
|
||||
.as_ref()
|
||||
.and_then(env_value)
|
||||
.or_else(|| {
|
||||
env::var("HEIMDALL_CAPABILITY_REF")
|
||||
.ok()
|
||||
.map(|value| value.trim().to_string())
|
||||
.filter(|value| !value.is_empty())
|
||||
})
|
||||
.or_else(|| {
|
||||
env::var("BIFROST_HEIMDALL_CAPABILITY_REF")
|
||||
.ok()
|
||||
.map(|value| value.trim().to_string())
|
||||
.filter(|value| !value.is_empty())
|
||||
})
|
||||
}
|
||||
|
||||
fn bifrost_node_executable() -> String {
|
||||
env::var("EPIPHANY_BIFROST_NODE")
|
||||
.ok()
|
||||
|
|
|
|||
|
|
@ -39,6 +39,7 @@ remembers doctrine; the branch remembers the blade.
|
|||
- Fresh scar from the receipt proof dogfood: `epiphany-model-runtime run-worker --auto-tools` must preserve Soul's right to follow a real evidence trail, but distinguish it from stalled repetition using typed tool intent fingerprints. Repeated identical pending tool sets seal as `tool-loop-stalled`; exhausting the explicit hard ceiling still seals as `tool-round-limit`. A failed or completed-but-unreviewable role result is a real lane result and must stop for review; once reviewed through a typed `roleFailureReview` supersession receipt, Self may relaunch the lane instead of manually clearing stale state. Complete Hands receipt triplets (`hands-patch-*`, `hands-command-*`, `hands-commit-*`) are implementation evidence for coverage, so Soul does not have to separately cite the accepted Modeling evidence id when it has verified the Hands chain routed to it through the typed work-loop packet. Soul accepted the bounded proof for commit `ce20529e`, Modeling initially completed without a reviewable `statePatch`, and run `local-20260613-204521` proved the repair: the unreviewable result was superseded, Modeling relaunched with the role schema carried in the model request, Mind accepted the map patch, and only then did Self emit a new Hands gate. `epiphany-hands-action` must resolve commit receipts through `git rev-parse --verify` before storing them, because an almost-correct SHA poisoned Soul's `git show` proof and made the receipt chain untrustworthy.
|
||||
- The investment dossier readiness target is now explicit: `E:\Projects\gamecult-site\docs\gamecult_integrated_dossier.tex` expects Epiphany to be part of a Bifrost-first labor loop, not only a local Mom demo. The external proof bar is: Bifrost owns topics/work items/dispatch packets/receipts/credit/reward pressure; Epiphany executes bounded work; maintainers review artifacts; public/operator evidence records scope, consent, roles, model spend, review load, artifacts, accepted/rejected outcome, memory lessons, and case-study permission; and private worker/operator/agent context stays sealed. Diligence also asks for a live fresh-repo Epiphany demo, Bifrost work item/topic/agent transport/receipt/ledger demo, CultMesh status, VoidBot/Discord swarm demo, compute/output metrics, and security model for secrets/write permissions/public-private exports.
|
||||
- Bifrost's identity-provider slice is now live on Bifrost branch `codex/bifrost-bridge-gate-receipts` at commit `23c02be`: `POST /auth/bifrost/register` creates a Bifrost-owned identity without OAuth, signs in with the Bifrost cookie, leaves membership at `Authenticated`, and records `BifrostIdentity` / `NormalizedBifrostIdentity` on `UserAccount`. GitHub and Heimdall sign-in paths now ensure new accounts also get a Bifrost identity; Heimdall still owns outside-provider OAuth, token custody, grants, and capability/account claims. Verified with `DOTNET_ROLL_FORWARD=Major dotnet test tests\Bifrost.Web.Tests\Bifrost.Web.Tests.csproj --filter "FullyQualifiedName~PlatformEndpointsTests|FullyQualifiedName~BridgeCliTests|FullyQualifiedName~MemberConsoleTests"`: 62 passed.
|
||||
- Persona public mouth crossings now fail closed on missing authority cargo before any Bifrost CLI invocation. `epiphany-persona-discord post` and `epiphany-persona-reddit post` require a Bifrost identity plus Heimdall-backed capability/account reference, write blocked candidate artifacts with `missing-bifrost-identity` or `missing-heimdall-capability-ref`, and smokes prove the bridged path still carries identity, run/lane/agent, source, authority, and 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`.
|
||||
- This Codex operator's own roadmap/todo posture has been retuned for this scale target, with the Epiphany Imagination specialist as an optional sub-agent rail rather than the whole point. `notes/epiphany-investor-readiness-roadmap.md` now says: make the local Mom MVP a repeatable proof bundle; build the Bifrost-first external-work bridge; add compute/review/accepted-artifact accounting; keep fresh-repo operation repeatable without supervisor contamination; keep public/operator-safe exports sealed; and treat angel capital as fuel for capacity, not command authority. The Imagination specialist prompt was also updated so investor-scale Objective Drafts must name Bifrost provenance, bounded Epiphany proof, maintainer review, receipts/ledger evidence, compute/output metrics, public/private export safety, consent, and legal/security gates.
|
||||
- Local operator status runs now write typed CultMesh operator witnesses into `.epiphany-run/cultmesh/local-verse.ccmp`: `epiphany-operator-run` records the run intent before acting, `epiphany-operator-snapshot` distills the operator-safe MVP status artifact, and `epiphany-operator-run` records the completion receipt after success. The final `local-verse-context.json` is queried after those witnesses exist, so the operator read path sees latest run intent, snapshot, and receipt from the same local Verse vessel instead of treating separate JSON artifacts or side stores as truth.
|
||||
- `epiphany-operator-snapshot from-status` also mirrors the latest native status `tools.invocations[]` row into the same local Verse as `epiphany.cultmesh.daemon_tool_invocation_intent.v0`, plus `epiphany.cultmesh.daemon_tool_invocation_receipt.v0` when runtime-spine has a receipt id. Runtime-spine remains the tool lifecycle owner and raw MCP JSON stays quarantined behind `epiphany.tool_invocation_intent.v0` / `epiphany.tool_invocation_receipt.v0`; the local Verse mirror is operator-safe routing/readback.
|
||||
|
|
|
|||
|
|
@ -49,7 +49,8 @@ license to rerun personality initialization whenever the repo mood changes.
|
|||
Persona's public mouth is a Bifrost crossing, not local OAuth improvisation.
|
||||
`state/persona-discord.toml` confines Discord speech to #aquarium and
|
||||
`state/persona-reddit.toml` confines Reddit organizing posts to the configured
|
||||
subreddit. If a channel, subreddit, bridge path, or authority reference is
|
||||
subreddit. If a channel, subreddit, bridge path, Bifrost identity, or
|
||||
Heimdall-backed capability/account reference is
|
||||
missing, Persona writes candidate artifacts through the native draft commands
|
||||
instead of posting. The public mouth does not invent new pulpits.
|
||||
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -107,7 +107,7 @@ active_subgoals:
|
|||
- The local wrapper now has an explicit repo-local Verse readback target for Gjallar/swarm-triage. `tools/epiphany_local_run.ps1` accepts `-LocalVerseStore` and `-LocalVerseRuntimeId`; operator intent/receipt documents still write to the operator store, while `gjallar` and `swarm-triage` read compact repo-work map rows from the requested store/runtime. Wrapper proofs `local-20260621-011151-541-70056545` and `local-20260621-011207-755-d65e5c7e` aimed at `.epiphany-smoke\repo-planning-brief-family-20260620-235939\repo-body\.epiphany\local-verse.ccmp` with runtime `repo-planning-brief-family-smoke` and printed real `REPO-WORK-MAP`, `REPO-WORK-MAP-SEMANTIC`, family/path/branch/stage/gate rows with `privateStateExposed=false`. This is sight targeting only; the wrapper does not register repo-work schemas, reinterpret rows, or gain operator, Mind, Bifrost, Idunn, scheduler, publication, deployment, or service authority.
|
||||
- Gjallar/swarm-overview now projects typed repo-work overview history into the compact global sight report, Persona's public Eve surface lowers the same queue for peers, and Self has a first runnable queue surface over it. `epiphany-work overview` now also emits `epiphany.repo_work_intake_consensus_readback.v0` plus a compact `CONSENSUS` TUI row from the accept/plan receipt chain, so agents can see Persona/public feedback ids, Imagination consensus receipt route, public/candidate ref counts, model-authored safe family, and authority denials without opening private payloads. `epiphany-verse-query gjallar` reads all `epiphany.cultmesh.repo_work_overview.v0` event documents from local Verse, excludes the `latest` mirror, preserves latest scalar fields, emits multi-item `repoWorkOverviewRows`/TUI rows, and publishes bounded priority 35-39 non-mutating `repo-work-overview` action rows with `owner=Gjallar`, `hostedBody=repo-work`, `authorityGate=repo.work.overview`, `mutatesState=false`, `requiresElevatedAuthority=false`, proof-bundle refs, current gate/blocker/next-safe-move, and `privateStateExposed=false`. `epiphany-verse-query eve-surfaces`, `connect-eve`, and globally invokable Persona `eve-connect` tool readbacks expose compact `REPO-WORK-PEER` rows with item, gate, blocker, next safe move, branch, publication/sync state, and private seal for the public Persona surface only. `epiphany-work queue-run` selects current-repo rows at `ready-to-run`, `ready-to-adopt`, or `ready-to-execute`, delegates action to `tick`, refreshes overview after real advancement, and writes `epiphany.repo_work_queue_run_receipt.v0`; wrapper mode `tools/epiphany_local_run.ps1 -Mode repo-work-queue-run` exposes the same surface. Disposable proofs `.epiphany-smoke\gjallar-repo-work-queue-20260620-012027`, `.epiphany-smoke\eve-repo-work-queue-20260620-013322`, `.epiphany-smoke\queue-run-20260620-014314`, wrapper artifact `local-20260620-014627-174-aada0241`, and consensus readback smoke `.epiphany-smoke\repo-consensus-brief-family-20260621-005433` show queue sight, public Eve lowering, direct queue-run advancement, wrapper dry-run, and Persona-to-Imagination consensus readback without publication, merge, service lifecycle mutation, elevation, cross-repo mutation, or private-state exposure.
|
||||
- Agent memory lifecycle now has a first typed v0 operation surface in `epiphany-core::agent_memory`: `AgentMemoryLifecycleOperation` can revise, retire, crystallize, prune, and merge bounded memory records after role/agent review, and `epiphany-agent-memory-store review-lifecycle|apply-lifecycle` exposes the path at the operator edge. This closes the first explicit lifecycle-operation slice from the swarm-readiness gate; it does not yet make sleep silently mutate identity or project truth.
|
||||
- Persona public speech now has a parent-side eligibility receipt at the public mouth edge. `epiphany.persona_speech_audit.v0` records action kind, content fingerprint, opening/topic keys, recent-window counts, repeated opening/topic counts, target saturation, and allow/block reasons. `epiphany-persona-discord post` and `epiphany-persona-reddit post` block repeated or saturated public openings before Bifrost transport work; draft and bubble paths still emit audit receipts for operator inspection. Bifrost owns Discord/Reddit crossing identity, bridge policy, and receipts; Heimdall owns outside-provider OAuth/token custody and supplies capability/account references for Bifrost identities. The compatibility JSON artifact remains for display, but the durable witness is now `epiphany.cultmesh.persona_speech_audit.v0` in CultMesh with latest-key projection through local Verse context. Local MVP Persona bubbles now write that durable witness to `.epiphany-run/cultmesh/local-verse.ccmp`, not a separate mouth-side store. This is posting-edge policy, not a Persona prompt wish.
|
||||
- Persona public speech now has a parent-side eligibility receipt at the public mouth edge. `epiphany.persona_speech_audit.v0` records action kind, content fingerprint, opening/topic keys, recent-window counts, repeated opening/topic counts, target saturation, and allow/block reasons. `epiphany-persona-discord post` and `epiphany-persona-reddit post` block repeated or saturated public openings before Bifrost transport work; they also now fail closed before invoking Bifrost if the configured Bifrost identity or Heimdall-backed capability/account reference is missing, writing candidate artifacts instead of relying on the bridge to reject malformed authority cargo. Draft and bubble paths still emit audit receipts for operator inspection. Bifrost owns Discord/Reddit crossing identity, bridge policy, and receipts; Heimdall owns outside-provider OAuth/token custody and supplies capability/account references for Bifrost identities. The compatibility JSON artifact remains for display, but the durable witness is now `epiphany.cultmesh.persona_speech_audit.v0` in CultMesh with latest-key projection through local Verse context. Local MVP Persona bubbles now write that durable witness to `.epiphany-run/cultmesh/local-verse.ccmp`, not a separate mouth-side store. This is posting-edge policy, not a Persona prompt wish.
|
||||
- Grow the VoidBot repo-Persona pattern into Epiphany's product direction: each Epiphany owns one or more repos, has one or more Personas, and exposes project-native conversation through Aquarium, Discord, voice/WebRTC, stream surfaces, CLI, and CultNet clients so humans can talk to projects instead of pre-authoring complete implementation briefs. Persona is special because Imagination acts as Projector, turning typed state into narrative context before the Persona thinks, and Mind acts as Interpreter, turning natural Persona output into reviewed state/side-effect intents after the Persona thinks.
|
||||
- Make Mind the gateway between thought and state. The state is the Mind: sub-agent outputs are worker thoughts, not authority. Role/reorient findings, statePatch, selfPatch, observations, evidence, receipts, scratch, and checkpoints must route through Mind review before durable state changes, using the VoidBot Persona Interpreter pattern as the starting membrane. Mind gateway reviews and Mind state-commit receipts are now typed runtime-spine documents for role/reorient acceptance; the review is persisted before state admission, and the commit receipt records the resulting durable revision after admission.
|
||||
- Use `notes/mind-cultnet-contracts.md` as the authority map for Mind's CultNet contract surface. CultMesh Verse placement is part of the contract: `epiphany-internal` carries private thought/proposal/review/commit/rejection flow, `gamecult-local` carries trusted operator-safe sharing without private-state authority, and `epiphany-global` carries public thought weather plus adoption receipts only.
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ policy = [
|
|||
"Persona may post only in #aquarium.",
|
||||
"If the #aquarium channel id is missing, Persona writes candidate chat artifacts instead of posting.",
|
||||
"When a Persona has a persona name/avatar, it asks Bifrost to cross into Discord through the bridge; Epiphany does not own Discord tokens or webhook execution.",
|
||||
"Bifrost identity plus a Heimdall-backed capability/account reference should appear in bridge receipts for blessed crossings.",
|
||||
"Bifrost identity plus a Heimdall-backed capability/account reference must appear in bridge receipts for blessed crossings.",
|
||||
"Persona must not DM, moderate, escalate, or substitute another channel.",
|
||||
"Persona translates agent thought-weather; it does not leak raw transcripts, private notes, or sealed artifacts.",
|
||||
]
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ heimdall_capability_ref_env = "HEIMDALL_CAPABILITY_REF"
|
|||
policy = [
|
||||
"Persona may create Reddit organizing posts only through Bifrost reddit-post.",
|
||||
"The subreddit is a public organizing surface, not a vote ledger.",
|
||||
"Bifrost identity plus a Heimdall-backed capability/account reference should appear in bridge receipts for blessed crossings.",
|
||||
"Bifrost identity plus a Heimdall-backed capability/account reference must appear in bridge receipts for blessed crossings.",
|
||||
"Persona flair identifies presentation voice; it does not grant authority or voting weight.",
|
||||
"Persona must not expose raw transcripts, private notes, sealed artifacts, or local Verse state.",
|
||||
]
|
||||
|
|
|
|||
Reference in a new issue