Skip to content

Commit 054d939

Browse files
fluffy314cursoragent
authored andcommitted
fix(autoresearch): preserve typed representation verdicts
Keep host-generated representation continuations substantive enough for the supervisor report gate so successful state transitions are not mislabeled as evaluation failures. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent e78e636 commit 054d939

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

scripts/agent_gan_repl.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7946,7 +7946,10 @@ def build_autoresearch_verdict(
79467946
)
79477947
)
79487948
frontier = (
7949-
target.statement if target is not None else
7949+
(
7950+
f"Continue unresolved target {target.obligation_id}: "
7951+
f"{target.statement}"
7952+
) if target is not None else
79507953
"Construct a concrete smaller proof obligation."
79517954
)
79527955
return {

tests/inference_engine/bridge/test_agent_gan_repl.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4315,12 +4315,16 @@ class Candidate:
43154315
assert verdict["outcome"] == "DECOMPOSED"
43164316
assert verdict["created_obligation_ids"] == ["RH-C2-child"]
43174317
ledger.obligations[1].decomposition_certificate_hash = ""
4318-
assert build_autoresearch_verdict(
4318+
inconclusive = build_autoresearch_verdict(
43194319
Candidate,
43204320
ledger,
43214321
{"RH-C2": "UNRESOLVED"},
43224322
[ledger.obligations[1]],
4323-
)["outcome"] == "INCONCLUSIVE"
4323+
)
4324+
assert inconclusive["outcome"] == "INCONCLUSIVE"
4325+
assert inconclusive["new_frontier"] == (
4326+
"Continue unresolved target RH-C2: Prove zero convergence."
4327+
)
43244328

43254329

43264330
def test_critic_leaf_table_cannot_bypass_certificate():

0 commit comments

Comments
 (0)