SWE-agent takes a GitHub issue and tries to automatically fix it, using your LM of choice. It can also be employed for offensive cybersecurity or competitive coding challenges. [NeurIPS 2024]
Reject all exit statuses by default, not just exit_cost
Kilian Liereteec1f99e420f
diff --git a/sweagent/agent/reviewer.py b/sweagent/agent/reviewer.pyindex 49007978..04f687c2 100644--- a/sweagent/agent/reviewer.py+++ b/sweagent/agent/reviewer.py@@ -124,9 +124,9 @@ class ReviewerConfig(FrozenSerializable):system_template: strinstance_template: str- #: If a submission autosubmits because of total cost, it will be automatically- #: rejected- reject_exit_cost: bool = True+ #: If a submission autosubmits because of total cost or a similar exit status,+ #: it will be desk rejected+ reject_exit_status: bool = True#: Filter the following actions from the trajectorytraj_filter: list[str] = field(default_factory=list)#: Filter outputs from the following actions from the trajectory@@ -240,8 +240,8 @@ class Reviewer(AbstractReviewer):if not exit_status:answer = "No exit status in submission, will reject."accept = False- elif self._config.reject_exit_cost and "exit_cost" in exit_status:- answer = "Submission rejected because of exit cost."+ elif self._config.reject_exit_status and exit_status.strip() != "submitted":+ answer = f"Submission desk-rejected because of exit status {exit_status!r}."accept = Falseelse:messages = self.format_messages(instance, submission)