From e905dcd97694047604ec039222b72b1cc9f1590f Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Tue, 25 Aug 2026 02:35:56 +0200 Subject: [PATCH] Inline canonical brake surfaces --- epiphany-core/src/cultmesh_integration.rs | 22 +++++++++------------- epiphany-core/src/lib.rs | 4 ++-- 2 files changed, 11 insertions(+), 15 deletions(-) diff --git a/epiphany-core/src/cultmesh_integration.rs b/epiphany-core/src/cultmesh_integration.rs index a91efbd6..290b1177 100644 --- a/epiphany-core/src/cultmesh_integration.rs +++ b/epiphany-core/src/cultmesh_integration.rs @@ -66,18 +66,6 @@ pub fn open_epiphany_cultmesh_node( ) } -pub fn canonical_epiphany_swarm_brake_protected_surfaces() -> Vec { - vec![ - "resident.self".to_string(), - "coordinator.run".to_string(), - "persona.public_speech".to_string(), - "hands.consequence".to_string(), - "atlas.publish".to_string(), - "atlas.project".to_string(), - "atlas.impact_ingress".to_string(), - ] -} - pub fn default_epiphany_cultmesh_swarm_brake( generated_at_utc: impl Into, ) -> EpiphanyCultMeshSwarmBrakeEntry { @@ -90,7 +78,15 @@ pub fn default_epiphany_cultmesh_swarm_brake( .to_string(), operator_agent_id: EPIPHANY_CANONICAL_SWARM_BRAKE_OWNER.to_string(), affected_clusters: Vec::new(), - protected_surfaces: canonical_epiphany_swarm_brake_protected_surfaces(), + protected_surfaces: vec![ + "resident.self".into(), + "coordinator.run".into(), + "persona.public_speech".into(), + "hands.consequence".into(), + "atlas.publish".into(), + "atlas.project".into(), + "atlas.impact_ingress".into(), + ], created_at_utc: generated_at_utc.into(), expires_at_utc: None, private_state_exposed: false, diff --git a/epiphany-core/src/lib.rs b/epiphany-core/src/lib.rs index da909b9e..825c272d 100644 --- a/epiphany-core/src/lib.rs +++ b/epiphany-core/src/lib.rs @@ -92,8 +92,8 @@ pub use cultmesh_integration::EPIPHANY_CANONICAL_SWARM_BRAKE_OWNER; pub use cultmesh_integration::{ EPIPHANY_CULTMESH_SWARM_BRAKE_KEY, EPIPHANY_CULTMESH_SWARM_BRAKE_SCHEMA_VERSION, EPIPHANY_CULTMESH_SWARM_BRAKE_TYPE, EpiphanyCultMeshDocuments, EpiphanyCultMeshSwarmBrakeEntry, - canonical_epiphany_swarm_brake_protected_surfaces, default_epiphany_cultmesh_swarm_brake, - engage_epiphany_cultmesh_swarm_brake, load_epiphany_cultmesh_swarm_brake, + default_epiphany_cultmesh_swarm_brake, engage_epiphany_cultmesh_swarm_brake, + load_epiphany_cultmesh_swarm_brake, open_epiphany_cultmesh_node, release_epiphany_cultmesh_swarm_brake, write_epiphany_cultmesh_swarm_brake, };