spreadlab/internal/engine
Justin Visser a0635544d9 engine: additive forward probability, behaviour-preserving
Forwarding was a single global ForwardProb; make it a per-student
composite (Config.ForwardChance): baseline propensity raised by the
fake's Novelty, lowered by ambient HarmAwareness, and scaled down for an
educated student by ProgramEffect (1 = today's hard block). RunCascade
now takes a precomputed per-student []float64 chance and has no education
special case. Defaults are behaviour-neutral, so the 82/58/6 golden
tests are unchanged; the model is tuned in a later slice.
2026-06-18 20:03:04 +02:00
..
bench_test.go engine: benchmark baseline (HolmeKim, RunScenario) 2026-06-10 12:50:53 +02:00
bounds_test.go engine: realistic config bounds, enforced and served 2026-06-11 15:54:07 +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: additive forward probability, behaviour-preserving 2026-06-18 20:03:04 +02:00
scenario_test.go engine: Config, scenario runner, golden regression tests; demo CLI 2026-06-10 12:24:47 +02:00