WIP lot V : le tampon câblé dans le serveur (migration 0010, simulation, discard-simulation), tests en cours de reprise — repris tel quel après la coupure du 02/11

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Yvv
2026-11-03 05:22:24 +01:00
co-authored by Claude Opus 5.5
parent ee37c3b4d5
commit 4b81a2e909
16 changed files with 1503 additions and 213 deletions
+8 -1
View File
@@ -1,6 +1,13 @@
//! libreDecision server — entry point. Everything else lives in the library.
//!
//! `ld-server discard-simulation [--apply]` is the act « supprime » that ends the
//! simulation of the vote (ADR 0012): never run by the server itself.
#[tokio::main]
async fn main() -> anyhow::Result<()> {
ld_server::run().await
let args: Vec<String> = std::env::args().skip(1).collect();
match args.first().map(String::as_str) {
Some("discard-simulation") => ld_server::simulation::run_cli(args.iter().any(|a| a == "--apply")).await,
_ => ld_server::run().await,
}
}