Kobayashi Maru
README.md
km.tests.scenario
Headless harness for km.scenario (no scene needed): require("km.tests.scenario").run({ sweep = 250 }) returns { passed, failed, total, failures, endings, sweepEndings, honestMax, report }.
Covers: card costs (beam 40–60 / 1 min with shields down, scan 1 min, request_orders 3 min, stall), six officer reports with distinct and conflicting advice, refusal and forced overrule at low trust, 18 scripted runs reaching all 14 KM.ENDINGS ids plus cheated_and_lost and too_late, marks that cite night choices and log entries, every named honest path ending in loss with cruisers spawned, the four-edit full rescue (381/381, changed_conditions, confess true/false changing honesty), each edit breaking its matching rule, and a randomized honest sweep that never rescues all 381 and always ends.