diff --git a/epiphany-core/src/mind_documents.rs b/epiphany-core/src/mind_documents.rs index e03a8974..3167cbe1 100644 --- a/epiphany-core/src/mind_documents.rs +++ b/epiphany-core/src/mind_documents.rs @@ -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, - #[cultcache(key = 7)] - pub linked_relationship_id: Option, - #[cultcache(key = 8)] pub effect_document_id: String, - #[cultcache(key = 9)] + #[cultcache(key = 7)] pub decision_context_id: String, } diff --git a/epiphany-core/src/persona_conversation.rs b/epiphany-core/src/persona_conversation.rs index dc317ace..08a93780 100644 --- a/epiphany-core/src/persona_conversation.rs +++ b/epiphany-core/src/persona_conversation.rs @@ -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(), }; diff --git a/epiphany-core/src/runtime_spine.rs b/epiphany-core/src/runtime_spine.rs index 1048320b..bf12654d 100644 --- a/epiphany-core/src/runtime_spine.rs +++ b/epiphany-core/src/runtime_spine.rs @@ -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"; diff --git a/epiphany-tool-adapter/src/lib.rs b/epiphany-tool-adapter/src/lib.rs index 7dcdbf4d..bf3dcf7b 100644 --- a/epiphany-tool-adapter/src/lib.rs +++ b/epiphany-tool-adapter/src/lib.rs @@ -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, #[cultcache(key = 9, default)] pub error: Option, - #[cultcache(key = 10, default)] - pub sealed_raw_result_ref: Option, } impl EpiphanyToolInvocationReceipt { @@ -151,7 +149,6 @@ impl EpiphanyToolInvocationReceipt { completed_at: completed_at.into(), result_json: None, error: None, - sealed_raw_result_ref: None, } } } diff --git a/schemas/cultnet/epiphany.tool-invocation-receipt.schema.json b/schemas/cultnet/epiphany.tool-invocation-receipt.schema.json index d079959b..0470eb72 100644 --- a/schemas/cultnet/epiphany.tool-invocation-receipt.schema.json +++ b/schemas/cultnet/epiphany.tool-invocation-receipt.schema.json @@ -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 } diff --git a/schemas/cultnet/index.json b/schemas/cultnet/index.json index 32eae154..c8e70ac9 100644 --- a/schemas/cultnet/index.json +++ b/schemas/cultnet/index.json @@ -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" },