| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Use --depth 1 when cloning repositories to prevent agents from accessing git history and exploiting it to retrieve original function implementations that were stripped out. This addresses a reward hacking vulnerability where agents can use git log/diff/show commands to find and copy original implementations instead of writing them from scratch. For Commit0Spec, also fetch the specific env_setup_commit with --depth 1 before resetting to it, since shallow clone only gets the default branch tip. Co-authored-by: openhands <openhands@all-hands.dev>
The shallow clone only fetches the latest commit, but the setup scripts need access to both env_setup_commit (reference_commit) and base_commit for the git reset operations. - Commit0Spec: Fetch both env_setup_commit and base_commit before removing remote - SWEBenchSpec: Fetch base_commit needed for eval script reset Co-authored-by: openhands <openhands@all-hands.dev>
Modal requires authentication tokens that aren't available to fork PRs. Using the local Docker backend allows CI to run without Modal credentials. Co-authored-by: openhands <openhands@all-hands.dev>
| Back | FazBrowse Home | New Git URL |
Summary
Use --depth 1 when cloning repositories to prevent agents from accessing git history and exploiting it to retrieve original function implementations.
Fixes #113