fix(k1): admit start after reopened standby

This commit is contained in:
DCCONSTRUCTIONS
2026-08-14 15:50:03 +03:00
parent 606cbbfae2
commit 9ef115d3b4
2 changed files with 35 additions and 3 deletions
@@ -2142,6 +2142,30 @@ def test_ready_prepared_stop_reset_reopen_accepts_fresh_ready(
settled
)
successor = ledger.prepare(
operation_id=NEXT_START_OPERATION,
parent_operation_id=STOP_OPERATION,
acquisition_id="acquisition-after-reset-fresh-ready",
action="start",
identity=IDENTITY,
connection=fresh_connection,
compatibility_profile_id="xgrids-k1-v0.6.0",
payload_sha256="8" * 64,
baseline_status=_status(
"ready",
connection=fresh_connection,
observed_at="2026-08-14T11:11:01.000Z",
),
)
assert successor.revision == settled.revision + 1
assert successor.action == "start"
assert successor.stage == "prepared"
assert successor.parent_operation_id == STOP_OPERATION
assert successor.reconciliations[-1].reconciliation_id == (
"prepared-stop-ready-reset-fresh-ready"
)
def test_scenario_reset_retires_effective_active_prepared_stop_classification(
tmp_path: Path,