fix(m80-p1): fail loudly on unclassified journal kinds
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user