diff --git a/epiphany-core/src/current_work.rs b/epiphany-core/src/current_work.rs index c952c553..5f240fea 100644 --- a/epiphany-core/src/current_work.rs +++ b/epiphany-core/src/current_work.rs @@ -3807,8 +3807,6 @@ mod tests { session_id: "body-failed-model-session".into(), role: "openai-model".into(), created_at: "2026-08-17T00:00:02.100Z".into(), - summary: "Bound Body inference.".into(), - artifact_refs: Vec::new(), }, &failed_native, "2026-08-17T00:00:02.100Z", @@ -4837,8 +4835,6 @@ mod tests { session_id: "verification-model-session".into(), role: "openai-model".into(), created_at: "2026-08-17T00:00:14.750Z".into(), - summary: "Bound Verification inference.".into(), - artifact_refs: Vec::new(), }, &verification_native, "2026-08-17T00:00:14.750Z", @@ -5523,8 +5519,6 @@ mod tests { session_id: "planning-model-session".into(), role: "openai-model".into(), created_at: "2026-08-17T00:00:21.750Z".into(), - summary: "Bound Planning inference.".into(), - artifact_refs: Vec::new(), }, &planning_native, "2026-08-17T00:00:21.750Z", @@ -5666,8 +5660,6 @@ mod tests { session_id: "plan-mind-model-session".into(), role: "openai-model".into(), created_at: "2026-08-17T00:00:22.250Z".into(), - summary: "Bound plan Mind inference.".into(), - artifact_refs: Vec::new(), }, &mind_native, "2026-08-17T00:00:22.250Z", diff --git a/epiphany-core/src/reasoning_context.rs b/epiphany-core/src/reasoning_context.rs index 70f70241..6ff640e2 100644 --- a/epiphany-core/src/reasoning_context.rs +++ b/epiphany-core/src/reasoning_context.rs @@ -2262,8 +2262,6 @@ mod tests { session_id: "session-1".into(), role: "model-adapter".into(), created_at: "2026-08-17T00:00:01Z".into(), - summary: "Initial model request".into(), - artifact_refs: Vec::new(), }, &initial_native, "2026-08-17T00:00:01Z", @@ -2324,8 +2322,6 @@ mod tests { session_id: "session-1".into(), role: "model-adapter".into(), created_at: "2026-08-17T00:00:04Z".into(), - summary: "Terminal model request".into(), - artifact_refs: Vec::new(), }, &terminal_native, "2026-08-17T00:00:04Z", @@ -2415,8 +2411,6 @@ mod tests { session_id: "failed-pass-session".into(), role: "model-adapter".into(), created_at: "2026-08-18T00:00:01Z".into(), - summary: "Run the model pass".into(), - artifact_refs: Vec::new(), }, &native, "2026-08-18T00:00:01Z", @@ -2655,8 +2649,6 @@ mod tests { session_id: "session-1".into(), role: "model-adapter".into(), created_at: "2026-08-14T00:00:01Z".into(), - summary: "Test terminal request publication".into(), - artifact_refs: Vec::new(), }, &native, "2026-08-14T00:00:01Z", diff --git a/epiphany-core/src/reorientation_work.rs b/epiphany-core/src/reorientation_work.rs index 24d3b009..0f9e020f 100644 --- a/epiphany-core/src/reorientation_work.rs +++ b/epiphany-core/src/reorientation_work.rs @@ -1008,8 +1008,6 @@ mod tests { session_id: "reorientation-model-session".into(), role: "openai-model".into(), created_at: "2026-08-18T10:00:03Z".into(), - summary: "Bound reorientation inference".into(), - artifact_refs: Vec::new(), }, &native, "2026-08-18T10:00:03Z", @@ -1142,8 +1140,6 @@ mod tests { session_id: "failed-reorientation-model-session".into(), role: "openai-model".into(), created_at: "2026-08-18T10:00:10Z".into(), - summary: "Bound failing inference".into(), - artifact_refs: Vec::new(), }, &failed_native, "2026-08-18T10:00:10Z", diff --git a/epiphany-core/src/runtime_spine.rs b/epiphany-core/src/runtime_spine.rs index 20949330..eac820bf 100644 --- a/epiphany-core/src/runtime_spine.rs +++ b/epiphany-core/src/runtime_spine.rs @@ -88,7 +88,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.v20"; +pub const RUNTIME_SPINE_SCHEMA_VERSION: &str = "epiphany.runtime_spine.v21"; 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"; @@ -160,8 +160,6 @@ pub struct EpiphanyRuntimeSession { pub updated_at: String, #[cultcache(key = 6, default)] pub coordinator_note: String, - #[cultcache(key = 7, default)] - pub metadata: BTreeMap, } #[derive(Clone, Debug, PartialEq, DatabaseEntry)] @@ -181,12 +179,6 @@ pub struct EpiphanyRuntimeJob { pub created_at: String, #[cultcache(key = 6)] pub updated_at: String, - #[cultcache(key = 7, default)] - pub summary: String, - #[cultcache(key = 8, default)] - pub artifact_refs: Vec, - #[cultcache(key = 9, default)] - pub metadata: BTreeMap, } #[derive(Clone, Debug, PartialEq, Eq, DatabaseEntry)] @@ -761,8 +753,6 @@ pub struct RuntimeSpineJobOptions { pub session_id: String, pub role: String, pub created_at: String, - pub summary: String, - pub artifact_refs: Vec, } #[derive(Clone, Debug, PartialEq, Eq)] @@ -1082,7 +1072,6 @@ pub fn create_runtime_session( created_at: options.created_at.clone(), updated_at: options.created_at, coordinator_note: options.coordinator_note, - metadata: BTreeMap::new(), }; cache.put(&options.session_id, &session)?; Ok(session) @@ -1119,7 +1108,6 @@ pub fn ensure_runtime_session( created_at: options.created_at.clone(), updated_at: options.created_at, coordinator_note: options.coordinator_note, - metadata: BTreeMap::new(), }; cache.put(&options.session_id, &session)?; Ok(session) @@ -1309,7 +1297,6 @@ pub fn terminalize_model_pass_failure_session( if model_job_is_live { model_job.status = EpiphanyRuntimeJobStatus::Failed; model_job.updated_at = options.failed_at.clone(); - model_job.summary = options.summary.clone(); let model_result = EpiphanyRuntimeJobResult { schema_version: RUNTIME_SPINE_SCHEMA_VERSION.to_string(), result_id: format!("result-model-pass-failure-{}", failure.failure_id), @@ -1413,9 +1400,6 @@ pub fn create_runtime_job( status: EpiphanyRuntimeJobStatus::Queued, created_at: options.created_at.clone(), updated_at: options.created_at.clone(), - summary: options.summary, - artifact_refs: options.artifact_refs, - metadata: BTreeMap::new(), }; cache.put(&options.job_id, &job)?; Ok(job) @@ -1523,7 +1507,6 @@ pub fn open_runtime_model_execution( created_at: session_options.created_at.clone(), updated_at: session_options.created_at.clone(), coordinator_note: session_options.coordinator_note.clone(), - metadata: BTreeMap::new(), }); if matches!( session.status, @@ -1551,9 +1534,6 @@ pub fn open_runtime_model_execution( status: EpiphanyRuntimeJobStatus::Queued, created_at: job_options.created_at.clone(), updated_at: job_options.created_at.clone(), - summary: job_options.summary, - artifact_refs: job_options.artifact_refs, - metadata: BTreeMap::new(), }; let binding_id = model_request.request_id.clone(); if cache @@ -2549,7 +2529,6 @@ pub fn prepare_runtime_spine_heartbeat_job( created_at: options.created_at.clone(), updated_at: options.created_at.clone(), coordinator_note: options.coordinator_note, - metadata: BTreeMap::new(), }, }; if cache.get::(&options.job_id)?.is_some() { @@ -2572,12 +2551,6 @@ pub fn prepare_runtime_spine_heartbeat_job( status: EpiphanyRuntimeJobStatus::Queued, created_at: options.created_at.clone(), updated_at: options.created_at.clone(), - summary: format!( - "Heartbeat activation queued for binding {} with authority {}.", - options.binding_id, options.authority_scope - ), - artifact_refs: Vec::new(), - metadata: BTreeMap::new(), }; let request = EpiphanyRuntimeWorkerLaunchRequest { schema_version: RUNTIME_WORKER_LAUNCH_REQUEST_SCHEMA_VERSION.to_string(), @@ -3934,7 +3907,6 @@ fn commit_runtime_worker_process_death( let summary = "Runtime Continuity proved the exact worker process terminal before a structured outcome was admitted.".to_string(); job.status = EpiphanyRuntimeJobStatus::Failed; job.updated_at = terminal_at.to_string(); - job.summary = summary.clone(); let result = EpiphanyRuntimeJobResult { schema_version: RUNTIME_SPINE_SCHEMA_VERSION.to_string(), result_id: format!("result-worker-death-{job_id}"), @@ -9212,7 +9184,6 @@ pub fn open_coordinator_run( updated_at: started_at.to_string(), coordinator_note: "Coordinator owns native runtime receipts before process exit." .to_string(), - metadata: BTreeMap::new(), }; let snapshot = cache.snapshot_envelopes(); let replacements = vec![cache.prepare_entry(session_id, &session)?.0]; @@ -9497,8 +9468,6 @@ pub fn complete_runtime_job( let terminal_status = terminal_status_for_verdict(&options.verdict); job.status = terminal_status; job.updated_at = options.completed_at.clone(); - job.summary = options.summary.clone(); - job.artifact_refs = merge_refs(&job.artifact_refs, &options.artifact_refs); let result = EpiphanyRuntimeJobResult { schema_version: RUNTIME_SPINE_SCHEMA_VERSION.to_string(), result_id: options.result_id.clone(), @@ -9661,16 +9630,6 @@ fn terminal_status_for_verdict(verdict: &str) -> EpiphanyRuntimeJobStatus { } } -fn merge_refs(existing: &[String], incoming: &[String]) -> Vec { - let mut merged = existing.to_vec(); - for item in incoming { - if !merged.contains(item) { - merged.push(item.clone()); - } - } - merged -} - #[cfg(test)] pub(crate) mod tests { use super::*; diff --git a/epiphany-openai-runtime/src/bin/epiphany-openai-runtime.rs b/epiphany-openai-runtime/src/bin/epiphany-openai-runtime.rs index 0791f100..797cf4a1 100644 --- a/epiphany-openai-runtime/src/bin/epiphany-openai-runtime.rs +++ b/epiphany-openai-runtime/src/bin/epiphany-openai-runtime.rs @@ -1433,8 +1433,6 @@ mod tests { session_id: session_id.clone(), role: OPENAI_RUNTIME_ROLE.to_string(), created_at: chrono::Utc::now().to_rfc3339(), - summary: "Pending tool fixture.".to_string(), - artifact_refs: Vec::new(), }, &model_request, &chrono::Utc::now().to_rfc3339(), @@ -1696,8 +1694,6 @@ mod tests { session_id: "openai-runtime-error".into(), role: OPENAI_RUNTIME_ROLE.into(), created_at: now(), - summary: "provider admitted request".into(), - artifact_refs: Vec::new(), }, &request, &now(), diff --git a/epiphany-openai-runtime/src/lib.rs b/epiphany-openai-runtime/src/lib.rs index a0b065fb..96b393a7 100644 --- a/epiphany-openai-runtime/src/lib.rs +++ b/epiphany-openai-runtime/src/lib.rs @@ -167,8 +167,6 @@ async fn run_openai_model_turn_bound( session_id: options.session_id.clone(), role: OPENAI_RUNTIME_ROLE.to_string(), created_at: now(), - summary: format!("OpenAI model request {}", request.request_id), - artifact_refs: Vec::new(), }, &model_request, &now(), @@ -3528,8 +3526,6 @@ mod tests { session_id: options.session_id.clone(), role: OPENAI_RUNTIME_ROLE.to_string(), created_at: now(), - summary: "test job".to_string(), - artifact_refs: Vec::new(), }, &native_request, &now(), @@ -3641,8 +3637,6 @@ mod tests { session_id: "openai-worker-session-modeling-checkpoint-worker".into(), role: "openai-model-adapter".into(), created_at: "2026-08-14T00:00:00Z".into(), - summary: "Execute the Modeling request.".into(), - artifact_refs: Vec::new(), }, &model_request, "2026-08-14T00:00:00Z", @@ -4024,8 +4018,6 @@ mod tests { session_id: options.session_id.clone(), role: OPENAI_RUNTIME_ROLE.to_string(), created_at: now(), - summary: "tool test job".to_string(), - artifact_refs: Vec::new(), }, &native_request, &now(), diff --git a/epiphany-openai-runtime/src/persona_executor.rs b/epiphany-openai-runtime/src/persona_executor.rs index bcb707ff..ef2c13e1 100644 --- a/epiphany-openai-runtime/src/persona_executor.rs +++ b/epiphany-openai-runtime/src/persona_executor.rs @@ -703,8 +703,6 @@ mod tests { session_id: format!("persona-turn-{turn_id}"), role: "openai-model-adapter".into(), created_at: "2026-08-14T00:00:00Z".into(), - summary: format!("Run Persona {stage} test stage"), - artifact_refs: Vec::new(), }, &request, "2026-08-14T00:00:00Z", diff --git a/epiphany-tool-mcp-runtime/src/main.rs b/epiphany-tool-mcp-runtime/src/main.rs index 11392a04..5237d6d6 100644 --- a/epiphany-tool-mcp-runtime/src/main.rs +++ b/epiphany-tool-mcp-runtime/src/main.rs @@ -285,8 +285,6 @@ mod tests { session_id: "native-tool-session".into(), role: "tool-runtime".into(), created_at: "2026-08-10T01:00:02Z".into(), - summary: "Owned native tool execution.".into(), - artifact_refs: Vec::new(), }, )?; epiphany_core::put_runtime_tool_execution_intent( @@ -372,8 +370,6 @@ mod tests { session_id: "state-tool-session".into(), role: "tool-runtime".into(), created_at: "2026-08-11T00:00:01Z".into(), - summary: "Observe resident state.".into(), - artifact_refs: vec![], }, )?; epiphany_core::put_runtime_tool_execution_intent( diff --git a/schemas/cultnet/epiphany.runtime.job.schema.json b/schemas/cultnet/epiphany.runtime.job.schema.json index d706f4c3..92509000 100644 --- a/schemas/cultnet/epiphany.runtime.job.schema.json +++ b/schemas/cultnet/epiphany.runtime.job.schema.json @@ -4,7 +4,7 @@ "title": "Epiphany Runtime Job", "description": "Native runtime-spine job state.", "type": "object", - "additionalProperties": true, + "additionalProperties": false, "properties": { "schemaVersion": { "type": "string" @@ -26,19 +26,6 @@ }, "updatedAt": { "type": "string" - }, - "summary": { - "type": "string" - }, - "artifactRefs": { - "type": "array", - "items": { - "type": "string" - } - }, - "metadata": { - "type": "object", - "additionalProperties": true } }, "required": [ diff --git a/schemas/cultnet/epiphany.runtime.session.schema.json b/schemas/cultnet/epiphany.runtime.session.schema.json index 05fe8987..c569faa4 100644 --- a/schemas/cultnet/epiphany.runtime.session.schema.json +++ b/schemas/cultnet/epiphany.runtime.session.schema.json @@ -4,7 +4,7 @@ "title": "Epiphany Runtime Session", "description": "Native runtime-spine session state.", "type": "object", - "additionalProperties": true, + "additionalProperties": false, "properties": { "schemaVersion": { "type": "string" @@ -26,10 +26,6 @@ }, "coordinatorNote": { "type": "string" - }, - "metadata": { - "type": "object", - "additionalProperties": true } }, "required": [ @@ -38,6 +34,7 @@ "objective", "status", "createdAt", - "updatedAt" + "updatedAt", + "coordinatorNote" ] } diff --git a/schemas/cultnet/index.json b/schemas/cultnet/index.json index 8c970c99..af94f78b 100644 --- a/schemas/cultnet/index.json +++ b/schemas/cultnet/index.json @@ -18,7 +18,7 @@ "wireContracts": [ "cultnet.schema.v0" ], - "schemaVersion": "epiphany.runtime_spine.v0", + "schemaVersion": "epiphany.runtime_spine.v1", "documentType": "epiphany.runtime.session", "title": "Epiphany Runtime Session", "path": "epiphany.runtime.session.schema.json" @@ -62,7 +62,7 @@ "wireContracts": [ "cultnet.schema.v0" ], - "schemaVersion": "epiphany.runtime_spine.v0", + "schemaVersion": "epiphany.runtime_spine.v1", "documentType": "epiphany.runtime.job", "title": "Epiphany Runtime Job", "path": "epiphany.runtime.job.schema.json"