From 17c4bf03fb8ef1e3243c8e1c6be29b95f77a158f Mon Sep 17 00:00:00 2001 From: wusumac <736139669@qq.com> Date: Sat, 19 Sep 2026 00:22:30 +0800 Subject: [PATCH] fix(m80-p1): fail loudly on unclassified journal kinds --- runtime/entry/battle_sim_bridge.gd | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/runtime/entry/battle_sim_bridge.gd b/runtime/entry/battle_sim_bridge.gd index 389df6ce..499aeda9 100644 --- a/runtime/entry/battle_sim_bridge.gd +++ b/runtime/entry/battle_sim_bridge.gd @@ -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),