Skip to content

Commit 24894ad

Browse files
fluffy314cursoragent
authored andcommitted
fix(autoresearch): resume certified RH contract
Bind the runtime wrapper candidate during tournament launch so stale stagnation telemetry cannot replace the selected target-bound plan. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent de7ba5f commit 24894ad

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

scripts/launch_rh_strategy_tournament.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,13 @@ def main() -> int:
304304
# proposition. The selected helper target hash lives in the Research
305305
# Contract and must not overwrite this protected root cache.
306306
checkpoint.proposition_hash = RH_ROOT_HASH
307+
# Bind the runtime wrapper candidate so the supervisor resumes the
308+
# certified Research Contract instead of treating legacy stagnation
309+
# telemetry as a request for an unrelated Strategy rewrite.
310+
runtime_candidate = project_root / "autoresearch" / "candidate.py"
311+
checkpoint.candidate_sha256 = hashlib.sha256(
312+
runtime_candidate.read_bytes()
313+
).hexdigest()
307314
checkpoint.proof_plan_id = selected.plan_id
308315
checkpoint.proof_plan_hash = selected.content_hash
309316
checkpoint.executable_plan_node_id = selected.lemma_graph[0].lemma_id

0 commit comments

Comments
 (0)