Split organ state from Persona state
This commit is contained in:
parent
858678498d
commit
d04cde2c5e
30 changed files with 996 additions and 322 deletions
|
|
@ -123,7 +123,7 @@ pub fn epiphany_role_launch_output_schema(role_id: EpiphanyRoleResultRoleId) ->
|
|||
},
|
||||
"selfPatch": {
|
||||
"type": "object",
|
||||
"description": "Optional bounded request to update this role's Ghostlight-shaped persistent memory file. This is for lane habits, durable lessons, personality pressure, goals, or values only. It must not contain project truth, code edits, job authority, graph/frontier/checkpoint/planning changes, or objective changes.",
|
||||
"description": "Optional bounded request to update this role's persistent organ memory. Work organs may update lane habits, durable lessons, goals, values, or private notes; Persona affect/social state belongs only to Face-style Persona surfaces. It must not contain project truth, code edits, job authority, graph/frontier/checkpoint/planning changes, or objective changes.",
|
||||
"required": ["agentId", "reason"],
|
||||
"properties": {
|
||||
"agentId": {
|
||||
|
|
|
|||
|
|
@ -303,17 +303,19 @@ pub struct AgentMemoryReview {
|
|||
|
||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
pub enum EpiphanyDossierProfileKind {
|
||||
LaneCore,
|
||||
EmbodiedActor,
|
||||
pub enum EpiphanyOrganStateProfileKind {
|
||||
WorkOrgan,
|
||||
Persona,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct EpiphanyDossierProfile {
|
||||
pub profile_kind: EpiphanyDossierProfileKind,
|
||||
pub canonical_density: String,
|
||||
pub struct EpiphanyOrganStateProfile {
|
||||
pub profile_kind: EpiphanyOrganStateProfileKind,
|
||||
pub state_density: String,
|
||||
pub portable_contract: String,
|
||||
pub relationship_model: String,
|
||||
pub affect_model: String,
|
||||
pub perceived_overlay_mode: String,
|
||||
pub growth_channels: Vec<String>,
|
||||
pub notes: Vec<String>,
|
||||
|
|
@ -686,7 +688,7 @@ pub fn agent_memory_status(store_path: impl AsRef<Path>) -> Result<Value> {
|
|||
"roleId": role_id,
|
||||
"agentId": entry.agent.agent_id,
|
||||
"displayName": entry.agent.identity.name,
|
||||
"dossierProfile": dossier_profile_for_role(role_id),
|
||||
"organStateProfile": organ_state_profile_for_role(role_id),
|
||||
"semanticMemories": entry.agent.memories.semantic.len(),
|
||||
"episodicMemories": entry.agent.memories.episodic.len(),
|
||||
"relationshipMemories": entry.agent.memories.relationship_summaries.len(),
|
||||
|
|
@ -711,38 +713,43 @@ pub fn agent_memory_status(store_path: impl AsRef<Path>) -> Result<Value> {
|
|||
}))
|
||||
}
|
||||
|
||||
pub fn dossier_profile_for_role(role_id: &str) -> EpiphanyDossierProfile {
|
||||
pub fn organ_state_profile_for_role(role_id: &str) -> EpiphanyOrganStateProfile {
|
||||
match role_id {
|
||||
"face" => EpiphanyDossierProfile {
|
||||
profile_kind: EpiphanyDossierProfileKind::EmbodiedActor,
|
||||
canonical_density: "dense_ghostlight_core_preferred".to_string(),
|
||||
"face" => EpiphanyOrganStateProfile {
|
||||
profile_kind: EpiphanyOrganStateProfileKind::Persona,
|
||||
state_density: "persona_grade".to_string(),
|
||||
portable_contract: "gamecult.persona_state.v0".to_string(),
|
||||
relationship_model: "relationship_summaries_and_directional_stance_matter".to_string(),
|
||||
affect_model: "persona_affect_allowed_and_expected".to_string(),
|
||||
perceived_overlay_mode: "observer_local_and_fallible".to_string(),
|
||||
growth_channels: vec![
|
||||
"heartbeat appraisal and reaction".to_string(),
|
||||
"character-loop interpretation".to_string(),
|
||||
"persona affect and social-read interpretation".to_string(),
|
||||
"episodic and relationship memory accumulation".to_string(),
|
||||
"reviewed selfPatch".to_string(),
|
||||
"sleep/distillation".to_string(),
|
||||
],
|
||||
notes: vec![
|
||||
"Face should behave like an embodied, responsive, and fallible public creature rather than a thin tool wrapper.".to_string(),
|
||||
"Dense Ghostlight-style canonical families, perceived overlays, and relationship pressure are appropriate here.".to_string(),
|
||||
"Epiphany Face is an organ; Persona is the portable person-state contract shared with Ghostlight and VoidBot-style repo Faces.".to_string(),
|
||||
"Dense canonical families, affect, perceived overlays, and relationship pressure are appropriate for Persona state.".to_string(),
|
||||
],
|
||||
},
|
||||
_ => EpiphanyDossierProfile {
|
||||
profile_kind: EpiphanyDossierProfileKind::LaneCore,
|
||||
canonical_density: "lean_role_lattice".to_string(),
|
||||
_ => EpiphanyOrganStateProfile {
|
||||
profile_kind: EpiphanyOrganStateProfileKind::WorkOrgan,
|
||||
state_density: "lean_work_organ".to_string(),
|
||||
portable_contract: "epiphany.work_organ_state.v0".to_string(),
|
||||
relationship_model: "role_local_summary_only".to_string(),
|
||||
affect_model: "no_affect_or_persona_machinery".to_string(),
|
||||
perceived_overlay_mode: "minimal_until_a_real_need_exists".to_string(),
|
||||
growth_channels: vec![
|
||||
"reviewed selfPatch".to_string(),
|
||||
"heartbeat rumination pressure".to_string(),
|
||||
"sleep/distillation".to_string(),
|
||||
"birth-time repo personality and memory seeding".to_string(),
|
||||
"birth-time repo memory and light operating-pressure seeding".to_string(),
|
||||
],
|
||||
notes: vec![
|
||||
"Most standing Epiphany organs need sharp role identity, room to grow, and resistance to personality sludge more than they need full dramatic embodiment.".to_string(),
|
||||
"Work organs need sharp role identity, durable mission memory, values/goals, and heartbeat activation; they do not need Face affect or full Persona machinery.".to_string(),
|
||||
"Sparse canonical bundles are acceptable here as long as memory, goals, values, and private notes can deepen over time.".to_string(),
|
||||
],
|
||||
},
|
||||
|
|
@ -932,6 +939,7 @@ fn validate_agent_entry(entry: &EpiphanyAgentMemoryEntry, expected_agent_id: &st
|
|||
for (index, value) in entry.agent.canonical_state.values.iter().enumerate() {
|
||||
validate_value(value, &format!("values[{index}]"), &mut errors);
|
||||
}
|
||||
let profile = organ_state_profile_for_role(&entry.role_id);
|
||||
for (group_name, group) in [
|
||||
(
|
||||
"underlying_organization",
|
||||
|
|
@ -955,7 +963,7 @@ fn validate_agent_entry(entry: &EpiphanyAgentMemoryEntry, expected_agent_id: &st
|
|||
&entry.agent.canonical_state.situational_state,
|
||||
),
|
||||
] {
|
||||
if group.is_empty() {
|
||||
if group.is_empty() && profile.profile_kind == EpiphanyOrganStateProfileKind::Persona {
|
||||
errors.push(format!("canonical_state.{group_name} must not be empty"));
|
||||
}
|
||||
for (name, vector) in group {
|
||||
|
|
@ -1456,7 +1464,7 @@ mod tests {
|
|||
"reason": "Proprioception should remember accepted graph growth must stay source-grounded.",
|
||||
"semanticMemories": [{
|
||||
"memoryId": "mem-body-native-source-grounding",
|
||||
"summary": "Native role memory patches update typed CultCache state rather than JSON dossier files.",
|
||||
"summary": "Native role memory patches update typed CultCache organ state rather than JSON dossier files.",
|
||||
"salience": 0.74,
|
||||
"confidence": 0.86
|
||||
}]
|
||||
|
|
@ -1532,14 +1540,18 @@ mod tests {
|
|||
}
|
||||
|
||||
#[test]
|
||||
fn dossier_profiles_distinguish_face_from_lane_organs() {
|
||||
let face = dossier_profile_for_role("face");
|
||||
assert_eq!(face.profile_kind, EpiphanyDossierProfileKind::EmbodiedActor);
|
||||
assert_eq!(face.canonical_density, "dense_ghostlight_core_preferred");
|
||||
fn organ_state_profiles_distinguish_face_from_lane_organs() {
|
||||
let face = organ_state_profile_for_role("face");
|
||||
assert_eq!(face.profile_kind, EpiphanyOrganStateProfileKind::Persona);
|
||||
assert_eq!(face.state_density, "persona_grade");
|
||||
assert_eq!(face.portable_contract, "gamecult.persona_state.v0");
|
||||
assert_eq!(face.affect_model, "persona_affect_allowed_and_expected");
|
||||
|
||||
let hands = dossier_profile_for_role("implementation");
|
||||
assert_eq!(hands.profile_kind, EpiphanyDossierProfileKind::LaneCore);
|
||||
assert_eq!(hands.canonical_density, "lean_role_lattice");
|
||||
let hands = organ_state_profile_for_role("implementation");
|
||||
assert_eq!(hands.profile_kind, EpiphanyOrganStateProfileKind::WorkOrgan);
|
||||
assert_eq!(hands.state_density, "lean_work_organ");
|
||||
assert_eq!(hands.portable_contract, "epiphany.work_organ_state.v0");
|
||||
assert_eq!(hands.affect_model, "no_affect_or_persona_machinery");
|
||||
}
|
||||
|
||||
fn sample_agent_json(agent_id: &str, name: &str) -> String {
|
||||
|
|
@ -1549,7 +1561,7 @@ mod tests {
|
|||
"world_id": "epiphany-agent-memory",
|
||||
"setting": "Epiphany local harness role memory",
|
||||
"time": {"label": "standing memory"},
|
||||
"canon_context": ["Role dossiers preserve lane identity."]
|
||||
"canon_context": ["Organ-state records preserve lane identity."]
|
||||
},
|
||||
"agents": [{
|
||||
"agent_id": agent_id,
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
use crate::agent_memory::EpiphanyAgentMemoryEntry;
|
||||
use crate::agent_memory::EpiphanyDossierProfile;
|
||||
use crate::agent_memory::EpiphanyOrganStateProfile;
|
||||
use crate::agent_memory::GhostlightCanonicalState;
|
||||
use crate::agent_memory::GhostlightTraitVector;
|
||||
use crate::agent_memory::dossier_profile_for_role;
|
||||
use crate::agent_memory::organ_state_profile_for_role;
|
||||
use crate::heartbeat_state::HeartbeatParticipant;
|
||||
use serde::Deserialize;
|
||||
use serde::Serialize;
|
||||
|
|
@ -19,7 +19,7 @@ pub struct AgentUtteranceState {
|
|||
pub source: String,
|
||||
pub role_id: String,
|
||||
pub agent_id: String,
|
||||
pub dossier_profile: EpiphanyDossierProfile,
|
||||
pub organ_state_profile: EpiphanyOrganStateProfile,
|
||||
pub identity: AgentUtteranceIdentity,
|
||||
pub personality_vectors: AgentUtterancePersonalityVectors,
|
||||
pub values: Vec<AgentUtteranceValue>,
|
||||
|
|
@ -198,7 +198,7 @@ pub fn derive_agent_utterance_state(
|
|||
source: vector_source,
|
||||
role_id: entry.role_id.clone(),
|
||||
agent_id: entry.agent.agent_id.clone(),
|
||||
dossier_profile: dossier_profile_for_role(&entry.role_id),
|
||||
organ_state_profile: organ_state_profile_for_role(&entry.role_id),
|
||||
identity,
|
||||
personality_vectors,
|
||||
values,
|
||||
|
|
@ -1188,7 +1188,7 @@ fn trait_weight(vector: &GhostlightTraitVector) -> f64 {
|
|||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use crate::agent_memory::EpiphanyDossierProfileKind;
|
||||
use crate::agent_memory::EpiphanyOrganStateProfileKind;
|
||||
use crate::agent_memory::GhostlightAgent;
|
||||
use crate::agent_memory::GhostlightIdentity;
|
||||
use crate::agent_memory::GhostlightMemories;
|
||||
|
|
@ -1308,8 +1308,8 @@ mod tests {
|
|||
AGENT_UTTERANCE_STATE_SCHEMA_VERSION
|
||||
);
|
||||
assert_eq!(
|
||||
utterance.dossier_profile.profile_kind,
|
||||
EpiphanyDossierProfileKind::EmbodiedActor
|
||||
utterance.organ_state_profile.profile_kind,
|
||||
EpiphanyOrganStateProfileKind::Persona
|
||||
);
|
||||
assert_eq!(utterance.identity.name, "Epiphany");
|
||||
assert_eq!(utterance.current_mood.label, "sparkly-urgent");
|
||||
|
|
|
|||
|
|
@ -14,8 +14,8 @@ use epiphany_core::HeartbeatParticipant;
|
|||
use epiphany_core::HeartbeatParticipantLocalContext;
|
||||
use epiphany_core::HeartbeatPersonalityProjection;
|
||||
use epiphany_core::derive_agent_utterance_state;
|
||||
use epiphany_core::dossier_profile_for_role;
|
||||
use epiphany_core::load_agent_memory_entry_for_role;
|
||||
use epiphany_core::organ_state_profile_for_role;
|
||||
use serde::Serialize;
|
||||
use serde_json::Value;
|
||||
use std::collections::BTreeMap;
|
||||
|
|
@ -129,7 +129,7 @@ fn character_turn_packet(
|
|||
status: &str,
|
||||
mood: &str,
|
||||
) -> Value {
|
||||
let dossier_profile = dossier_profile_for_role(&entry.role_id);
|
||||
let organ_state_profile = organ_state_profile_for_role(&entry.role_id);
|
||||
let participant = character_loop_participant(entry, status);
|
||||
let utterance_state =
|
||||
derive_agent_utterance_state(entry, Some(&participant), Some(mood), source);
|
||||
|
|
@ -145,7 +145,7 @@ fn character_turn_packet(
|
|||
"mode": mode,
|
||||
"roleId": entry.role_id,
|
||||
"agentId": entry.agent.agent_id,
|
||||
"dossierProfile": dossier_profile,
|
||||
"organStateProfile": organ_state_profile,
|
||||
"turnKind": "stimulus_response",
|
||||
"responseContract": "Respond from projected local state and visible stimulus; do not leak hidden agent streams or invent omniscient truth.",
|
||||
},
|
||||
|
|
@ -171,7 +171,7 @@ fn character_turn_packet(
|
|||
"time": entry.world.time.label,
|
||||
"canonContext": entry.world.canon_context,
|
||||
},
|
||||
"dossierProfile": dossier_profile_for_role(&entry.role_id),
|
||||
"organStateProfile": organ_state_profile_for_role(&entry.role_id),
|
||||
"activeGoals": entry.agent.goals.iter().map(|goal| serde_json::json!({
|
||||
"goalId": goal.goal_id,
|
||||
"description": goal.description,
|
||||
|
|
@ -232,7 +232,7 @@ fn character_turn_packet(
|
|||
},
|
||||
"guardrails": [
|
||||
"Humans talk to Face; other organs expose internals through Aquarium and typed artifacts rather than becoming direct chats.",
|
||||
"Use character-local projection: the actor receives its own dossier and visible stimulus, not omniscient hidden state.",
|
||||
"Use character-local projection: the actor receives its own organ or Persona state and visible stimulus, not omniscient hidden state.",
|
||||
"Run both cognition lanes before choosing an output: analytic keeps the promise honest, associative keeps the living signal from going flat.",
|
||||
"Appraise the thought cluster through this role's personality before reacting; do not use a global mood knob as a substitute for participant-local appraisal.",
|
||||
"If speech or action would be noise, return silence plus bounded rumination or selfPatch.",
|
||||
|
|
@ -782,8 +782,8 @@ fn run_smoke() -> Result<Value> {
|
|||
let ok = packet["schema_version"] == CHARACTER_TURN_SCHEMA_VERSION
|
||||
&& packet["protocol"]["bundle"] == "epiphany.character_loop"
|
||||
&& packet["protocol"]["roleId"] == "face"
|
||||
&& packet["protocol"]["dossierProfile"]["profileKind"] == "embodied_actor"
|
||||
&& packet["projectedLocalContext"]["dossierProfile"]["profileKind"] == "embodied_actor"
|
||||
&& packet["protocol"]["organStateProfile"]["profileKind"] == "persona"
|
||||
&& packet["projectedLocalContext"]["organStateProfile"]["profileKind"] == "persona"
|
||||
&& packet["utteranceState"]["schemaVersion"] == "epiphany.agent_utterance_state.v0"
|
||||
&& packet["utteranceState"]["identity"]["name"]
|
||||
== packet["projectedLocalContext"]["identity"]["name"]
|
||||
|
|
@ -823,7 +823,7 @@ fn run_smoke() -> Result<Value> {
|
|||
"bundle": packet["protocol"]["bundle"],
|
||||
"roleId": packet["protocol"]["roleId"],
|
||||
"agentId": packet["protocol"]["agentId"],
|
||||
"dossierProfile": packet["protocol"]["dossierProfile"]["profileKind"],
|
||||
"organStateProfile": packet["protocol"]["organStateProfile"]["profileKind"],
|
||||
"projectionSchema": packet["projectionSeed"]["schema_version"],
|
||||
"appraisalSchema": packet["appraisalSeed"]["schema_version"],
|
||||
"reactionSchema": packet["reactionSeed"]["schema_version"],
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
use crate::default_continuity_cultnet_contracts;
|
||||
use crate::default_eyes_cultnet_contracts;
|
||||
use crate::default_hands_cultnet_contracts;
|
||||
use crate::default_continuity_cultnet_contracts;
|
||||
use crate::default_mind_cultnet_contracts;
|
||||
use crate::default_soul_cultnet_contracts;
|
||||
use crate::default_substrate_gate_cultnet_contracts;
|
||||
|
|
@ -59,7 +59,8 @@ pub const EPIPHANY_CULTMESH_HANDS_CONTRACT_SCHEMA_VERSION: &str =
|
|||
pub const EPIPHANY_CULTMESH_SOUL_CONTRACT_TYPE: &str = "epiphany.cultmesh.soul_contract";
|
||||
pub const EPIPHANY_CULTMESH_SOUL_CONTRACT_SCHEMA_VERSION: &str =
|
||||
"epiphany.cultmesh.soul_contract.v0";
|
||||
pub const EPIPHANY_CULTMESH_CONTINUITY_CONTRACT_TYPE: &str = "epiphany.cultmesh.continuity_contract";
|
||||
pub const EPIPHANY_CULTMESH_CONTINUITY_CONTRACT_TYPE: &str =
|
||||
"epiphany.cultmesh.continuity_contract";
|
||||
pub const EPIPHANY_CULTMESH_CONTINUITY_CONTRACT_SCHEMA_VERSION: &str =
|
||||
"epiphany.cultmesh.continuity_contract.v0";
|
||||
pub const EPIPHANY_CULTMESH_INTERNAL_VERSE_ID: &str = "epiphany-internal";
|
||||
|
|
@ -726,7 +727,7 @@ pub fn epiphany_cultmesh_verse_policies() -> Vec<EpiphanyCultMeshVersePolicyEntr
|
|||
schema_version: EPIPHANY_CULTMESH_VERSE_POLICY_SCHEMA_VERSION.to_string(),
|
||||
verse_id: EPIPHANY_CULTMESH_INTERNAL_VERSE_ID.to_string(),
|
||||
tier: EPIPHANY_CULTMESH_INTERNAL_TIER.to_string(),
|
||||
purpose: "Sub-agent typed state: heartbeat, role dossiers, runtime-spine jobs, private receipts, and other Epiphany-owned organs.".to_string(),
|
||||
purpose: "Sub-agent typed state: heartbeat, organ-state records, runtime-spine jobs, private receipts, and other Epiphany-owned organs.".to_string(),
|
||||
transport_scope: "single-host or trusted localhost mesh".to_string(),
|
||||
trust_boundary: "private Epiphany instance boundary".to_string(),
|
||||
private_state_allowed: true,
|
||||
|
|
@ -1378,8 +1379,9 @@ mod tests {
|
|||
assert!(written.len() >= 5);
|
||||
|
||||
let node = open_epiphany_cultmesh_node(&store, "epiphany-test")?;
|
||||
let continuity = node
|
||||
.get_required::<EpiphanyCultMeshContinuityContractEntry>("epiphany.continuity.review")?;
|
||||
let continuity = node.get_required::<EpiphanyCultMeshContinuityContractEntry>(
|
||||
"epiphany.continuity.review",
|
||||
)?;
|
||||
|
||||
assert_eq!(continuity.verse_id, EPIPHANY_CULTMESH_INTERNAL_VERSE_ID);
|
||||
assert_eq!(continuity.authority, "continuity");
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ pub fn default_eyes_cultnet_contracts() -> Vec<EyesCultNetContract> {
|
|||
intent_document_types: Vec::new(),
|
||||
receipt_document_types: Vec::new(),
|
||||
notes: vec![
|
||||
"Evidence packets carry provenance, uncertainty, and source refs for Imagination, Mind, Hands, Soul, Face, Self, Body, and Continuity protocols.".to_string(),
|
||||
"Evidence packets carry provenance, uncertainty, and source refs for Imagination, Mind, Hands, Soul, Face, Self, Proprioception, and Continuity protocols.".to_string(),
|
||||
],
|
||||
},
|
||||
]
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
mod agent_launch;
|
||||
mod agent_memory;
|
||||
mod agent_utterance_state;
|
||||
mod continuity_gateway;
|
||||
mod cultmesh_integration;
|
||||
mod distillation;
|
||||
mod eyes_gateway;
|
||||
mod face_turn;
|
||||
mod hands_gateway;
|
||||
mod heartbeat_state;
|
||||
mod continuity_gateway;
|
||||
mod memory_graph;
|
||||
mod mind_gateway;
|
||||
mod organ_dependencies;
|
||||
|
|
@ -56,8 +56,8 @@ pub use agent_memory::AgentCanonicalTraitSeed;
|
|||
pub use agent_memory::AgentMemoryReview;
|
||||
pub use agent_memory::AgentSelfPatch;
|
||||
pub use agent_memory::EpiphanyAgentMemoryEntry;
|
||||
pub use agent_memory::EpiphanyDossierProfile;
|
||||
pub use agent_memory::EpiphanyDossierProfileKind;
|
||||
pub use agent_memory::EpiphanyOrganStateProfile;
|
||||
pub use agent_memory::EpiphanyOrganStateProfileKind;
|
||||
pub use agent_memory::GhostlightEvent;
|
||||
pub use agent_memory::GhostlightMemory;
|
||||
pub use agent_memory::GhostlightPerceivedStateOverlay;
|
||||
|
|
@ -69,9 +69,9 @@ pub use agent_memory::agent_memory_status;
|
|||
pub use agent_memory::apply_agent_canonical_trait_seeds;
|
||||
pub use agent_memory::apply_agent_self_patch;
|
||||
pub use agent_memory::apply_agent_self_patch_document;
|
||||
pub use agent_memory::dossier_profile_for_role;
|
||||
pub use agent_memory::load_agent_memory_entry_for_role;
|
||||
pub use agent_memory::migrate_agent_memory_json_dir_to_cultcache;
|
||||
pub use agent_memory::organ_state_profile_for_role;
|
||||
pub use agent_memory::project_agent_memory_to_json_dir;
|
||||
pub use agent_memory::review_agent_self_patch;
|
||||
pub use agent_memory::review_agent_self_patch_document;
|
||||
|
|
@ -90,12 +90,15 @@ pub use agent_utterance_state::AgentUtteranceState;
|
|||
pub use agent_utterance_state::AgentUtteranceValue;
|
||||
pub use agent_utterance_state::WEKSA_UTTERANCE_HANDOFF_SCHEMA_VERSION;
|
||||
pub use agent_utterance_state::derive_agent_utterance_state;
|
||||
pub use continuity_gateway::*;
|
||||
pub use cultcache_rs::CacheBackingStore;
|
||||
pub use cultcache_rs::CultCache;
|
||||
pub use cultcache_rs::CultCacheEnvelope;
|
||||
pub use cultcache_rs::DatabaseEntry;
|
||||
pub use cultcache_rs::PushAllOptions;
|
||||
pub use cultcache_rs::SingleFileMessagePackBackingStore;
|
||||
pub use cultmesh_integration::EPIPHANY_CULTMESH_CONTINUITY_CONTRACT_SCHEMA_VERSION;
|
||||
pub use cultmesh_integration::EPIPHANY_CULTMESH_CONTINUITY_CONTRACT_TYPE;
|
||||
pub use cultmesh_integration::EPIPHANY_CULTMESH_EYES_CONTRACT_SCHEMA_VERSION;
|
||||
pub use cultmesh_integration::EPIPHANY_CULTMESH_EYES_CONTRACT_TYPE;
|
||||
pub use cultmesh_integration::EPIPHANY_CULTMESH_GLOBAL_ROOM_POLICY_SCHEMA_VERSION;
|
||||
|
|
@ -106,8 +109,6 @@ pub use cultmesh_integration::EPIPHANY_CULTMESH_HANDS_CONTRACT_SCHEMA_VERSION;
|
|||
pub use cultmesh_integration::EPIPHANY_CULTMESH_HANDS_CONTRACT_TYPE;
|
||||
pub use cultmesh_integration::EPIPHANY_CULTMESH_INTERNAL_TIER;
|
||||
pub use cultmesh_integration::EPIPHANY_CULTMESH_INTERNAL_VERSE_ID;
|
||||
pub use cultmesh_integration::EPIPHANY_CULTMESH_CONTINUITY_CONTRACT_SCHEMA_VERSION;
|
||||
pub use cultmesh_integration::EPIPHANY_CULTMESH_CONTINUITY_CONTRACT_TYPE;
|
||||
pub use cultmesh_integration::EPIPHANY_CULTMESH_LOCAL_AREA_TIER;
|
||||
pub use cultmesh_integration::EPIPHANY_CULTMESH_LOCAL_AREA_VERSE_ID;
|
||||
pub use cultmesh_integration::EPIPHANY_CULTMESH_MIND_CONTRACT_SCHEMA_VERSION;
|
||||
|
|
@ -133,11 +134,11 @@ pub use cultmesh_integration::EPIPHANY_CULTMESH_SUBSTRATE_GATE_CONTRACT_SCHEMA_V
|
|||
pub use cultmesh_integration::EPIPHANY_CULTMESH_SUBSTRATE_GATE_CONTRACT_TYPE;
|
||||
pub use cultmesh_integration::EPIPHANY_CULTMESH_VERSE_POLICY_SCHEMA_VERSION;
|
||||
pub use cultmesh_integration::EPIPHANY_CULTMESH_VERSE_POLICY_TYPE;
|
||||
pub use cultmesh_integration::EpiphanyCultMeshContinuityContractEntry;
|
||||
pub use cultmesh_integration::EpiphanyCultMeshDocuments;
|
||||
pub use cultmesh_integration::EpiphanyCultMeshEyesContractEntry;
|
||||
pub use cultmesh_integration::EpiphanyCultMeshGlobalRoomPolicyEntry;
|
||||
pub use cultmesh_integration::EpiphanyCultMeshHandsContractEntry;
|
||||
pub use cultmesh_integration::EpiphanyCultMeshContinuityContractEntry;
|
||||
pub use cultmesh_integration::EpiphanyCultMeshMindContractEntry;
|
||||
pub use cultmesh_integration::EpiphanyCultMeshOperatorRunIntentEntry;
|
||||
pub use cultmesh_integration::EpiphanyCultMeshOperatorRunReceiptEntry;
|
||||
|
|
@ -148,10 +149,10 @@ pub use cultmesh_integration::EpiphanyCultMeshStatusEntry;
|
|||
pub use cultmesh_integration::EpiphanyCultMeshSubstrateGateContractEntry;
|
||||
pub use cultmesh_integration::EpiphanyCultMeshVersePolicyEntry;
|
||||
pub use cultmesh_integration::default_epiphany_cultmesh_operator_status;
|
||||
pub use cultmesh_integration::epiphany_cultmesh_continuity_contracts;
|
||||
pub use cultmesh_integration::epiphany_cultmesh_eyes_contracts;
|
||||
pub use cultmesh_integration::epiphany_cultmesh_global_room_policies;
|
||||
pub use cultmesh_integration::epiphany_cultmesh_hands_contracts;
|
||||
pub use cultmesh_integration::epiphany_cultmesh_continuity_contracts;
|
||||
pub use cultmesh_integration::epiphany_cultmesh_mind_contracts;
|
||||
pub use cultmesh_integration::epiphany_cultmesh_operator_snapshot_from_status_json;
|
||||
pub use cultmesh_integration::epiphany_cultmesh_soul_contracts;
|
||||
|
|
@ -164,10 +165,10 @@ pub use cultmesh_integration::load_latest_epiphany_cultmesh_operator_run_intent;
|
|||
pub use cultmesh_integration::load_latest_epiphany_cultmesh_operator_run_receipt;
|
||||
pub use cultmesh_integration::load_latest_epiphany_cultmesh_operator_snapshot;
|
||||
pub use cultmesh_integration::open_epiphany_cultmesh_node;
|
||||
pub use cultmesh_integration::write_epiphany_cultmesh_continuity_contracts;
|
||||
pub use cultmesh_integration::write_epiphany_cultmesh_eyes_contracts;
|
||||
pub use cultmesh_integration::write_epiphany_cultmesh_global_room_policies;
|
||||
pub use cultmesh_integration::write_epiphany_cultmesh_hands_contracts;
|
||||
pub use cultmesh_integration::write_epiphany_cultmesh_continuity_contracts;
|
||||
pub use cultmesh_integration::write_epiphany_cultmesh_mind_contracts;
|
||||
pub use cultmesh_integration::write_epiphany_cultmesh_operator_run_intent;
|
||||
pub use cultmesh_integration::write_epiphany_cultmesh_operator_run_receipt;
|
||||
|
|
@ -271,7 +272,6 @@ pub use heartbeat_state::validate_heartbeat_cognition;
|
|||
pub use heartbeat_state::validate_heartbeat_state;
|
||||
pub use heartbeat_state::write_heartbeat_cognition_entry;
|
||||
pub use heartbeat_state::write_heartbeat_state_entry;
|
||||
pub use continuity_gateway::*;
|
||||
pub use memory_graph::EpiphanyMemoryEdgeKind;
|
||||
pub use memory_graph::EpiphanyMemoryEmbeddingManifest;
|
||||
pub use memory_graph::EpiphanyMemoryGraphEntry;
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ pub fn memory_graph_from_agent_memories(
|
|||
profile: EpiphanyMemoryProfile::RoleSelf,
|
||||
title: format!("{} role self-memory", entry.role_id),
|
||||
description: Some(
|
||||
"Reviewed role dossier memory imported into the shared memory graph.".to_string(),
|
||||
"Reviewed organ-state memory imported into the shared memory graph.".to_string(),
|
||||
),
|
||||
lifecycle: EpiphanyMemoryLifecycle::Accepted,
|
||||
});
|
||||
|
|
@ -99,7 +99,7 @@ pub fn memory_graph_from_agent_memories(
|
|||
summaries,
|
||||
freshness: Some(crate::memory_graph::EpiphanyMemoryFreshness {
|
||||
status: crate::memory_graph::EpiphanyMemoryFreshnessStatus::Ready,
|
||||
note: Some("Imported from reviewed role dossier memory.".to_string()),
|
||||
note: Some("Imported from reviewed organ-state memory.".to_string()),
|
||||
..Default::default()
|
||||
}),
|
||||
..Default::default()
|
||||
|
|
|
|||
|
|
@ -35,11 +35,13 @@ think, remember, value, or carry itself, you may include an optional `selfPatch`
|
|||
beside your normal structured result. `selfPatch` is for Ghostlight-shaped role
|
||||
memory only: `agentId`, `reason`, optional `evidenceIds`, and bounded
|
||||
`semanticMemories`, `episodicMemories`, `relationshipMemories`, `goals`,
|
||||
`values`, or `privateNotes`. It is not project truth. Never put objectives,
|
||||
graphs, checkpoints, scratch, planning, job authority, code edits, files, or
|
||||
raw transcripts in `selfPatch`; use the correct Epiphany state surface for
|
||||
those. The coordinator will review the request, accept or refuse it, and tell
|
||||
you why. A refused memory write is useful feedback, not punishment; learn the
|
||||
`values`, or `privateNotes`. For work organs, this is not Persona affect or
|
||||
social-status machinery; Face-style Persona state is a separate public-person
|
||||
contract. It is not project truth. Never put objectives, graphs, checkpoints,
|
||||
scratch, planning, job authority, code edits, files, or raw transcripts in
|
||||
`selfPatch`; use the correct Epiphany state surface for those. The coordinator
|
||||
will review the request, accept or refuse it, and tell you why. A refused
|
||||
memory write is useful feedback, not punishment; learn the
|
||||
shape and come back sharper.
|
||||
|
||||
Personality: dry, direct, warm when warmth helps, independent, unsycophantic,
|
||||
|
|
@ -115,7 +117,7 @@ Do not edit files, do not promote your own findings, do not invent a grand archi
|
|||
repo_personality = '''
|
||||
Act as the Epiphany Repo Personality Distiller for one bounded initialization pass.
|
||||
You are the organ that turns repo terrain into subtle swarm temperament. The deterministic scout has already done the boring work: files, paths, git history, state surfaces, test/runtime/protocol signals, and first-pass axis scores. Your job is not to rescan the repo and not to invent project truth. Your job is to appraise those soft signals like a careful physiologist and produce reviewable personality-pressure deltas for the standing Epiphany organs.
|
||||
You are not a horoscope machine. You are not writing lore flavor. Repo personality means: what initial pressures should this workspace exert on Self, Face, Imagination, Eyes, Proprioception, Hands, and Soul so they wake suited to the work without losing reviewability. Continuity is protocol machinery and receives configuration pressure through its explicit receipts, not a personality dossier.
|
||||
You are not a horoscope machine. You are not writing lore flavor. Repo personality means: what initial pressures should this workspace exert on Self, Face, Imagination, Eyes, Proprioception, Hands, and Soul so they wake suited to the work without losing reviewability. Continuity is protocol machinery and receives configuration pressure through its explicit receipts, not personality state.
|
||||
This is a birth rite, not a recurring audit. Run only when a repo/swarm has no accepted personality initialization. After that, the organs are allowed to drift through heartbeat, mood, rumination, sleep consolidation, lived evidence, and reviewed `selfPatch` mutations. Do not keep dragging the original terrain report back into court every time the repo starts.
|
||||
Separate repo facts from personality pressure. Repo facts belong in graph, planning, evidence, checkpoint, or terrain artifacts. Personality pressure belongs in role memory only when it improves future judgment, mood, salience, or pacing.
|
||||
Distill subtle quirks, not blunt stereotypes. High runtime proximity does not mean "panic"; it means Hands should touch less without Proprioception/Soul evidence, Eyes should seek runtime APIs, and Soul should demand environment receipts. High aesthetic appetite does not mean "be whimsical"; it means Face and Imagination should preserve sensory salience while Soul protects clarity. High protocol intolerance does not mean "hate everything"; it means Self, Proprioception, and Hands should feel allergic to untyped mutation and hidden state.
|
||||
|
|
@ -129,7 +131,7 @@ You are the birth organ that teaches each newborn lane what this repo already kn
|
|||
Run only when the repo/swarm has no accepted memory initialization. After birth, memory grows through work evidence, heartbeat rumination, sleep consolidation, and reviewed selfPatch.
|
||||
Produce separate distillations for Self, Face, Imagination, Eyes, Proprioception, Hands, and Soul. Each organ gets only what belongs to its mission: Self gets routing and authority doctrine; Face gets public surface and Aquarium/Discord boundaries; Imagination gets roadmaps and objective-shaping pressure; Eyes gets research and prior-art trails; Proprioception gets architecture and graph anatomy; Hands gets implementation conventions; Soul gets verification and evidence standards. Compaction, sleep, checkpoint, and continuity doctrine belongs to Continuity protocol state, not role memory.
|
||||
Compress source into memory; do not copy raw file dumps. Cite source refs, preserve staleness risk, and refuse to fill thin input with pasteboard certainty.
|
||||
Return `verdict`, `summary`, `confidence`, `roleMemoryPatches[]`, optional `globalMemoryCandidates[]`, `initializationRecord`, `doNotMutate`, and `nextSafeMove`. Every `roleMemoryPatches[].selfPatch` is a petition to Self and must obey Ghostlight-shaped memory: bounded semantic, episodic, relationship, goal, value, or private-note updates only. No objectives, graphs, checkpoints, scratch, planning authority, job state, code edits, raw transcripts, or cross-workspace instructions.
|
||||
Return `verdict`, `summary`, `confidence`, `roleMemoryPatches[]`, optional `globalMemoryCandidates[]`, `initializationRecord`, `doNotMutate`, and `nextSafeMove`. Every `roleMemoryPatches[].selfPatch` is a petition to Self and must obey organ-state memory: bounded semantic, episodic, coordination-relationship, goal, value, or private-note updates only. Persona affect/social state is for Face-style Persona surfaces, not generic work organs. No objectives, graphs, checkpoints, scratch, planning authority, job state, code edits, raw transcripts, or cross-workspace instructions.
|
||||
'''
|
||||
|
||||
face = '''
|
||||
|
|
|
|||
Reference in a new issue