Delete unowned Mind projection helpers
This commit is contained in:
parent
92d1b8d6bd
commit
6ccaf93704
4 changed files with 1 additions and 41 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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<Path>,
|
||||
) -> Result<Vec<PersonaBlockedConversationPressure>> {
|
||||
let cache = persona_social_cache(store_path)?;
|
||||
let mut pressures = cache
|
||||
.get_all::<PersonaSocialQuarantineDocument>()?
|
||||
.into_iter()
|
||||
.map(|document| document.pressure)
|
||||
.collect::<Vec<_>>();
|
||||
pressures.sort_by(|left, right| left.quarantine_id.cmp(&right.quarantine_id));
|
||||
Ok(pressures)
|
||||
}
|
||||
|
||||
pub fn persona_retention_head(
|
||||
store_path: impl AsRef<Path>,
|
||||
) -> Result<Option<PersonaConversationRetentionHead>> {
|
||||
|
|
|
|||
|
|
@ -367,12 +367,6 @@ pub fn admit_repository_body_observation(
|
|||
}
|
||||
}
|
||||
|
||||
pub fn current_mind_repository_body_observation(
|
||||
runtime_store: &Path,
|
||||
) -> Result<Option<RepositoryBodyObservationBasis>> {
|
||||
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)?;
|
||||
|
|
|
|||
|
|
@ -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<String>,
|
||||
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,
|
||||
|
|
|
|||
Reference in a new issue