From 6ccaf937046970c8d9e0483f5d1b1dfc5b819efd Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Mon, 24 Aug 2026 04:31:46 +0200 Subject: [PATCH] Delete unowned Mind projection helpers --- epiphany-core/src/lib.rs | 1 - epiphany-core/src/persona_social_state.rs | 13 ------------ epiphany-core/src/repository_body_observer.rs | 8 +------- epiphany-core/src/substrate_gate.rs | 20 ------------------- 4 files changed, 1 insertion(+), 41 deletions(-) diff --git a/epiphany-core/src/lib.rs b/epiphany-core/src/lib.rs index 3cdc9dd4..f48668bc 100644 --- a/epiphany-core/src/lib.rs +++ b/epiphany-core/src/lib.rs @@ -350,7 +350,6 @@ pub use substrate_gate::SubstrateGateRepoAccessGrantReceipt; pub use substrate_gate::substrate_gate_coordinator_implementation_grant; pub use substrate_gate::substrate_gate_operation_for_governed_tool; pub use substrate_gate::substrate_gate_repo_access_grant_for_worker; -pub use substrate_gate::substrate_gate_repo_work_planning_grant; pub use surfaces::AdmittedModelDirectionConsiderationContextProjection; pub use surfaces::EpiphanyCoordinatorAction; pub use surfaces::EpiphanyCoordinatorDecision; diff --git a/epiphany-core/src/persona_social_state.rs b/epiphany-core/src/persona_social_state.rs index a2d955a4..23fafeae 100644 --- a/epiphany-core/src/persona_social_state.rs +++ b/epiphany-core/src/persona_social_state.rs @@ -742,19 +742,6 @@ pub fn persona_turn_request_source( crate::EpiphanyMindDocumentVersion::from_envelope("epiphany-persona-social", &envelope) } -pub fn blocked_persona_pressures( - store_path: impl AsRef, -) -> Result> { - let cache = persona_social_cache(store_path)?; - let mut pressures = cache - .get_all::()? - .into_iter() - .map(|document| document.pressure) - .collect::>(); - pressures.sort_by(|left, right| left.quarantine_id.cmp(&right.quarantine_id)); - Ok(pressures) -} - pub fn persona_retention_head( store_path: impl AsRef, ) -> Result> { diff --git a/epiphany-core/src/repository_body_observer.rs b/epiphany-core/src/repository_body_observer.rs index 82e4270d..27fcb370 100644 --- a/epiphany-core/src/repository_body_observer.rs +++ b/epiphany-core/src/repository_body_observer.rs @@ -367,12 +367,6 @@ pub fn admit_repository_body_observation( } } -pub fn current_mind_repository_body_observation( - runtime_store: &Path, -) -> Result> { - Ok(crate::assemble_mind_view(runtime_store)?.repository_body_observation) -} - /// Loads the authenticated current Repository Body basis already persisted for /// a runtime without observing the worktree or advancing the Body generation. pub fn load_current_runtime_repository_body_basis( @@ -1586,7 +1580,7 @@ mod tests { run(d.path(), &["add", "."])?; let observed = observe_runtime_repository_body_basis(&runtime)?; assert_eq!( - current_mind_repository_body_observation(&runtime)?, + crate::assemble_mind_view(&runtime)?.repository_body_observation, Some(observed.clone()) ); let mut mind = crate::runtime_spine_cache(&runtime)?; diff --git a/epiphany-core/src/substrate_gate.rs b/epiphany-core/src/substrate_gate.rs index 7e5feb00..4477c249 100644 --- a/epiphany-core/src/substrate_gate.rs +++ b/epiphany-core/src/substrate_gate.rs @@ -83,26 +83,6 @@ pub fn substrate_gate_operation_for_governed_tool( } } -pub fn substrate_gate_repo_work_planning_grant( - receipt_id: String, - runtime_job_id: String, - granted_paths: Vec, - granted_at: String, -) -> SubstrateGateRepoAccessGrantReceipt { - SubstrateGateRepoAccessGrantReceipt { - schema_version: SUBSTRATE_GATE_REPO_ACCESS_GRANT_RECEIPT_SCHEMA_VERSION.to_string(), - receipt_id, - runtime_job_id, - binding_id: "repo-work-runner".to_string(), - role: "epiphany-hands".to_string(), - authority_scope: "repo.branch_local_work".to_string(), - granted_operations: vec!["read".to_string(), "snapshot".to_string()], - granted_paths, - granted_at, - contract: "Substrate Gate grants read/snapshot access for repo-work planning only; mutation awaits an approved Hands review.".to_string(), - } -} - pub fn substrate_gate_coordinator_implementation_grant( receipt_id: String, runtime_job_id: String,