fix(m80-p1): fail loudly on unclassified journal kinds

This commit is contained in:
2026-09-19 00:22:30 +08:00
parent 8447d4b1e9
commit 17c4bf03fb
+5
View File
@@ -75,6 +75,11 @@ static func run(seed: String, formation: Array, recruits: Array, enemy_ids: Arra
var result := simulation.run()
var report := _beat_report(result.journal)
var selected := _select_beats(report.beats)
if not report.unknown_names.is_empty():
# Runtime surfacing: the attempt harness treats errors as a failed run, so
# a new unclassified journal kind cannot ship silently. `beat_diagnostics`
# stays out of the battle state because that state is hash/receipt-bound.
push_error("M80-P1 bridge: unclassified journal kinds %s are dropped, not coerced" % str(report.unknown_names))
return {
"ok": true,
"outcome": String(result.outcome),