CrossSWE-Bench / scripts /reusable_support /validation_policy.py
Silin-Chen's picture
CrossSWE-Bench: current 171-instance release
0e239c6
Raw History Blame Contribute Delete
467 Bytes
"""User-authorized acceptance policy; never mutate frozen contracts."""
def endpoint_plan(contract, repository_keys):
keys = list(repository_keys)
if not keys or len(keys) != len(set(keys)) or any(not key for key in keys):
raise ValueError('Repository identities must be nonempty and unique')
return [{'world': name, 'repeat': 1, 'fixed': {key: fixed for key in keys}}
for name, fixed in [('all_buggy', False), ('all_fixed', True)]]