Delete duplicate Persona and tool receipt cargo

This commit is contained in:
Meta Vens 2026-08-24 06:03:28 +02:00
commit 2a435eb5ab
6 changed files with 10 additions and 20 deletions

View file

@ -11,7 +11,7 @@ use sha2::{Digest, Sha256};
use crate::{EpiphanyMindDocumentVersion, runtime_spine_cache};
pub const MIND_SCHEMA_EPOCH: &str = "epiphany.mind.epoch.v9";
pub const MIND_SCHEMA_EPOCH: &str = "epiphany.mind.epoch.v10";
pub const MIND_OBJECTIVE_KEY: &str = "objective";
pub const MIND_FOCUS_KEY: &str = "focus";
pub const MIND_MODE_KEY: &str = "mode";
@ -138,7 +138,7 @@ pub struct EpiphanyMindEvidenceDocument {
#[derive(Clone, Debug, PartialEq, DatabaseEntry)]
#[cultcache(
type = "epiphany.mind.persona_memory.v1",
type = "epiphany.mind.persona_memory.v2",
schema = "EpiphanyMindPersonaMemoryDocument"
)]
pub struct EpiphanyMindPersonaMemoryDocument {
@ -155,12 +155,8 @@ pub struct EpiphanyMindPersonaMemoryDocument {
#[cultcache(key = 5)]
pub confidence: f64,
#[cultcache(key = 6)]
pub linked_event_ids: Vec<String>,
#[cultcache(key = 7)]
pub linked_relationship_id: Option<String>,
#[cultcache(key = 8)]
pub effect_document_id: String,
#[cultcache(key = 9)]
#[cultcache(key = 7)]
pub decision_context_id: String,
}

View file

@ -1110,8 +1110,6 @@ pub(crate) fn admit_persona_state_notes(
summary: summary.clone(),
salience: 0.7,
confidence: confidence.unwrap_or(0.7),
linked_event_ids: vec![document.document_id.clone()],
linked_relationship_id: None,
effect_document_id: document.document_id.clone(),
decision_context_id: document.decision_context_id.clone(),
};

View file

@ -85,7 +85,7 @@ pub const COORDINATOR_RUN_RECEIPT_TYPE: &str = "epiphany.coordinator_run_receipt
pub const RUNTIME_IDENTITY_KEY: &str = "self";
pub const RUNTIME_SWARM_BINDING_KEY: &str = "runtime-swarm-binding";
pub const RUNTIME_SWARM_BINDING_SCHEMA_VERSION: &str = "epiphany.runtime.swarm_binding.v1";
pub const RUNTIME_SPINE_SCHEMA_VERSION: &str = "epiphany.runtime_spine.v25";
pub const RUNTIME_SPINE_SCHEMA_VERSION: &str = "epiphany.runtime_spine.v26";
pub const EPIPHANY_RUNTIME_ROOT_SESSION_ID: &str = "epiphany-main";
pub const RUNTIME_MODEL_EXECUTION_BINDING_SCHEMA_VERSION: &str =
"epiphany.runtime.model_execution_binding.v0";

View file

@ -1,7 +1,7 @@
use cultcache_rs::DatabaseEntry;
pub const TOOL_ADAPTER_INVOCATION_INTENT_SCHEMA_ID: &str = "epiphany.tool_invocation_intent.v0";
pub const TOOL_ADAPTER_INVOCATION_RECEIPT_SCHEMA_ID: &str = "epiphany.tool_invocation_receipt.v0";
pub const TOOL_ADAPTER_INVOCATION_RECEIPT_SCHEMA_ID: &str = "epiphany.tool_invocation_receipt.v1";
pub const EPIPHANY_TOOL_RUNTIME_ADAPTER_ID: &str = "epiphany-tools";
pub fn tool_invocation_intent_key(intent_id: &str) -> String {
@ -102,7 +102,7 @@ impl EpiphanyToolInvocationIntent {
#[derive(Debug, Clone, PartialEq, Eq, DatabaseEntry)]
#[cultcache(
type = "epiphany.tool_invocation_receipt.v0",
type = "epiphany.tool_invocation_receipt.v1",
schema = "EpiphanyToolInvocationReceipt"
)]
pub struct EpiphanyToolInvocationReceipt {
@ -126,8 +126,6 @@ pub struct EpiphanyToolInvocationReceipt {
pub result_json: Option<String>,
#[cultcache(key = 9, default)]
pub error: Option<String>,
#[cultcache(key = 10, default)]
pub sealed_raw_result_ref: Option<String>,
}
impl EpiphanyToolInvocationReceipt {
@ -151,7 +149,6 @@ impl EpiphanyToolInvocationReceipt {
completed_at: completed_at.into(),
result_json: None,
error: None,
sealed_raw_result_ref: None,
}
}
}

View file

@ -15,7 +15,7 @@
"completed_at"
],
"properties": {
"schema_id": { "const": "epiphany.tool_invocation_receipt.v0" },
"schema_id": { "const": "epiphany.tool_invocation_receipt.v1" },
"receipt_id": { "type": "string" },
"intent_id": { "type": "string" },
"adapter": { "type": "string" },
@ -24,8 +24,7 @@
"status": { "type": "string" },
"completed_at": { "type": "string", "format": "date-time" },
"result_json": { "type": ["string", "null"] },
"error": { "type": ["string", "null"] },
"sealed_raw_result_ref": { "type": ["string", "null"] }
"error": { "type": ["string", "null"] }
},
"additionalProperties": false
}

View file

@ -150,8 +150,8 @@
"wireContracts": [
"cultnet.schema.v0"
],
"schemaVersion": "epiphany.tool_invocation_receipt.v0",
"documentType": "epiphany.tool_invocation_receipt.v0",
"schemaVersion": "epiphany.tool_invocation_receipt.v1",
"documentType": "epiphany.tool_invocation_receipt.v1",
"title": "Epiphany Tool Invocation Receipt",
"path": "epiphany.tool-invocation-receipt.schema.json"
},