Watch
1
0
Fork
You've already forked souveraine
0

feat(federation): Phase 1 transport — signed event streams between instances

SensorEvent gets reply_to for directed routing. FederationConfig gains
peers (url + pubkey + subscriptions). New src/server/federation/ module
with SignedEvent (Ed25519 sign/verify) and FederationBridge (per-peer
outbound WS tasks with echo-safe seed_id filter and backoff reconnect).
Inbound /v1/federation/events handler verifies signatures before bus
injection. Bridge spawned in server::run() when federation.enabled.
This commit is contained in:
Fimeg 2026-05-15 13:45:09 -04:00
commit 4b9c5e2031
16 changed files with 1034 additions and 10 deletions

View file

@ -673,6 +673,7 @@ pub async fn execute_memory_command_with_context(
urgency: 0.1,
payload: None,
seed_id: None,
reply_to: None,
});
}
Ok(format!("Wrote memory file: {}", path))
@ -688,6 +689,7 @@ pub async fn execute_memory_command_with_context(
urgency: 0.1,
payload: None,
seed_id: None,
reply_to: None,
});
}
Ok(format!("Appended to memory file: {}", path))
@ -754,6 +756,7 @@ pub async fn execute_memory_command_with_context(
urgency: 0.2,
payload: None,
seed_id: None,
reply_to: None,
});
}
Ok(format!("Deleted memory file: {}", path))