pub struct DaemonOrchestrator {
pub active_cells: Arc<Mutex<Vec<WorkerCell>>>,
pub isolate_a_tx: Option<Sender<NQuin>>,
pub isolate_b_rx: Option<Receiver<NQuin>>,
pub dnssec_trusted_anchors: HashMap<String, [u8; 32]>,
pub wireguard_interface_name: String,
pub wireguard_local_port: u16,
pub local_permission: CompiledPermission,
pub principal_did: u64,
pub guardian_did: Option<u64>,
}Expand description
Primary Orchestrator tracking Fractal Shards
Fields§
§active_cells: Arc<Mutex<Vec<WorkerCell>>>§isolate_a_tx: Option<Sender<NQuin>>§isolate_b_rx: Option<Receiver<NQuin>>§dnssec_trusted_anchors: HashMap<String, [u8; 32]>§wireguard_interface_name: String§wireguard_local_port: u16§local_permission: CompiledPermission§principal_did: u64§guardian_did: Option<u64>Implementations§
Source§impl DaemonOrchestrator
impl DaemonOrchestrator
Sourcepub fn configure_permissions(
&mut self,
permission: CompiledPermission,
principal_did: u64,
guardian_did: Option<u64>,
)
pub fn configure_permissions( &mut self, permission: CompiledPermission, principal_did: u64, guardian_did: Option<u64>, )
Configure local permissions, principal DID, and guardian DID.
Sourcepub fn configure_dnssec_anchors(&mut self, anchors: HashMap<String, [u8; 32]>)
pub fn configure_dnssec_anchors(&mut self, anchors: HashMap<String, [u8; 32]>)
Configure DNSSEC trusted anchors
Sourcepub fn configure_wireguard(&mut self, interface_name: String, local_port: u16)
pub fn configure_wireguard(&mut self, interface_name: String, local_port: u16)
Configure WireGuard interface settings
Sourcepub fn init_worker_cells_infrastructure(&self)
pub fn init_worker_cells_infrastructure(&self)
Initialize all worker cells with DNSSEC and WireGuard capabilities
Sourcepub fn bootstrap_peer_connection(
&self,
cell_id: usize,
domain: &str,
endpoint_ip: IpAddr,
endpoint_port: u16,
) -> Result<u64, &'static str>
pub fn bootstrap_peer_connection( &self, cell_id: usize, domain: &str, endpoint_ip: IpAddr, endpoint_port: u16, ) -> Result<u64, &'static str>
Bootstrap a SocialWebNet peer connection for a specific worker cell.
Resolves the peer via DNSSEC, verifies routing constraints, then registers the WireGuard peer inside the named worker cell.
Sourcepub fn spawn_fractal_shard(&self, cell_id: usize)
pub fn spawn_fractal_shard(&self, cell_id: usize)
Registers a WorkerCell for cell_id.
Sourcepub fn delegate_dense_algebra(&self, cell_id: usize)
pub fn delegate_dense_algebra(&self, cell_id: usize)
Scaffold: spawns a real thread but runs a hardcoded 2×2 identity contraction and discards the result — plumbing demo, not real delegation.
Bootstrap SocialWebNet tunnel using DNSSEC CBOR-LD resolution
Sourcepub fn spawn_neuro_symbolic_isolates(&mut self)
pub fn spawn_neuro_symbolic_isolates(&mut self)
Spawns the Cellular Isolate Model (Isolate A and Isolate B) for Neuro-Symbolic integration.
Sourcepub fn create_wireguard_interface(&self) -> Result<(), &'static str>
pub fn create_wireguard_interface(&self) -> Result<(), &'static str>
Create WireGuard interface
Sourcepub fn get_active_peers(&self) -> Result<Vec<(u64, String)>, &'static str>
pub fn get_active_peers(&self) -> Result<Vec<(u64, String)>, &'static str>
Get active WireGuard peers
Sourcepub fn compute_agent_priority(
&self,
windowed_faults: u32,
usury_event: bool,
) -> u64
pub fn compute_agent_priority( &self, windowed_faults: u32, usury_event: bool, ) -> u64
Compute dynamic priority for an agent given recent fault count and usury status.
Sourcepub fn rank_agent_candidates(candidates: &mut [AgentComputeCandidate])
pub fn rank_agent_candidates(candidates: &mut [AgentComputeCandidate])
Sort agent candidates by compute priority in descending order (highest priority first). Quarantined agents (priority 0) are ordered to the end.
Sourcepub fn route_agent_task(candidates: &[AgentComputeCandidate]) -> Option<u64>
pub fn route_agent_task(candidates: &[AgentComputeCandidate]) -> Option<u64>
Route compute task to the candidate with highest non-zero priority.
Returns Some(agent_did_hash) of the chosen agent, or None if all are quarantined (priority 0).
Auto Trait Implementations§
impl Freeze for DaemonOrchestrator
impl RefUnwindSafe for DaemonOrchestrator
impl Send for DaemonOrchestrator
impl Sync for DaemonOrchestrator
impl Unpin for DaemonOrchestrator
impl UnsafeUnpin for DaemonOrchestrator
impl UnwindSafe for DaemonOrchestrator
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more