spreadlab/internal/engine
Justin Visser f21994cc96 engine: bounds and validation for the new forwarding levers
Novelty, HarmAwareness and ProgramEffect each get a 0..1 realism bound,
served in ConfigBounds and enforced in ValidateConfig with field-named
errors (the frontend matches on the JSON name to flag the right control).
Reject/boundary test cases added.
2026-06-18 20:07:02 +02:00
..
bench_test.go engine: benchmark baseline (HolmeKim, RunScenario) 2026-06-10 12:50:53 +02:00
bounds_test.go engine: bounds and validation for the new forwarding levers 2026-06-18 20:07:02 +02:00
cascade.go engine: additive forward probability, behaviour-preserving 2026-06-18 20:03:04 +02:00
cascade_test.go engine: additive forward probability, behaviour-preserving 2026-06-18 20:03:04 +02:00
educate.go engine: education strategies (random vs most-connected) 2026-06-10 12:08:39 +02:00
educate_test.go engine: education strategies (random vs most-connected) 2026-06-10 12:08:39 +02:00
forwardchance_test.go engine: additive forward probability, behaviour-preserving 2026-06-18 20:03:04 +02:00
graph.go api: POST /api/scenario returns result plus graph topology (M3 slice 1) 2026-06-10 15:48:48 +02:00
graph_test.go api: POST /api/scenario returns result plus graph topology (M3 slice 1) 2026-06-10 15:48:48 +02:00
holmekim.go refactor engine: decompose Holme-Kim into builder methods 2026-06-10 12:37:57 +02:00
holmekim_test.go engine: Holme-Kim network generator (powerlaw_cluster_graph port) 2026-06-10 12:05:43 +02:00
rng.go docs engine: state the RNG design decision in rng.go 2026-06-10 13:01:39 +02:00
rng_test.go engine: undirected simple graph with deterministic neighbour order 2026-06-10 11:58:45 +02:00
scenario.go engine: bounds and validation for the new forwarding levers 2026-06-18 20:07:02 +02:00
scenario_test.go engine: Config, scenario runner, golden regression tests; demo CLI 2026-06-10 12:24:47 +02:00