Skip to content

Commit 568c326

Browse files
fluffy314cursoragent
authored andcommitted
fix(autoresearch): type operator contract unblock
Use the guarded blocked-exit event protocol when an authorized Strategy redirect reopens the validated RH contract. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 5938b31 commit 568c326

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

scripts/launch_rh_strategy_tournament.py

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
from pathlib import Path
1212

1313
from autoresearch.prefill.orchestration_state import (
14+
BlockedEventType,
15+
BlockedExitEvent,
1416
ProofState,
17+
apply_blocked_exit_event,
1518
load_checkpoint,
1619
persist_validated_artifact,
1720
save_checkpoint,
@@ -226,9 +229,16 @@ def main() -> int:
226229
),
227230
)
228231
if checkpoint.proof_state == ProofState.BLOCKED:
229-
checkpoint.transition(
230-
ProofState.STRATEGY_TOURNAMENT,
231-
"operator-strategy-redirect:resume-certified-contract",
232+
apply_blocked_exit_event(
233+
checkpoint,
234+
BlockedExitEvent(
235+
event_id=event_id + ":blocked-exit",
236+
event_type=BlockedEventType.NEW_STRATEGY_TRIGGER.value,
237+
reason="operator-strategy-redirect:resume-certified-contract",
238+
target_state=ProofState.STRATEGY_TOURNAMENT.value,
239+
reset_role=ProofState.STRATEGY_TOURNAMENT.value,
240+
metadata={"strategy_trigger": event_id},
241+
),
232242
)
233243
elif context_changed:
234244
checkpoint.transition(

0 commit comments

Comments
 (0)