Conversation
Member
|
Would this produce features that are too similar to the original feature limiting the diversity of training tasks? |
Collaborator
Author
|
Yeah that is a possibilty. Potential directions: (1) We could play with the prompt where we first get a stronger model (Gemini3 Pro) to come up with ideas which promote diversity, conflict-ability and compatibility. And then we pass that to this flow. (2) Another direction we can go is using repo to automate new repo setup and generate tasks on those |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Feature: Automated Benchmark Data Generation Pipeline
Description
This PR introduces an automated pipeline for generating new benchmark features using AI agents. The pipeline creates features that intentionally conflict with existing features during git merge, enabling evaluation of AI agents' ability to resolve merge conflicts.
Features
mini_swe_agentto implement new features in sandboxed environmentsUsage
Pipeline Flow
Key Implementation Details
1. Reliable Feature Description Extraction
The agent writes feature descriptions to
.feature_description.mdin the repo, which gets captured in the git diff. This avoids unreliable conversation parsing.2. Selective Test Execution
Only runs newly added test functions, avoiding false failures from pre-existing test issues:
3. Git Merge Conflict Detection
Creates real git branches and attempts merges to detect actual conflicts:
4. Rich Conflict Information
Returns feature titles alongside conflict IDs for better reporting:
{ "conflicts": [1, 2], "conflicts_info": [ {"id": 1, "title": "Faster Parquet Streaming + Filters"}, {"id": 2, "title": "Support for Sorting During Streaming"} ] }Files Modified
src/cooperbench/generation/prompt.pysrc/cooperbench/generation/generator.py.feature_description.mdextraction,conflicts_infosupportsrc/cooperbench/generation/validator.pysrc/cooperbench/generation/splitter.pysrc/cooperbench/generation/__main__.pyOutput Structure
Result Schema
{ "success": true, "feature_md": "**Title**: Row Group Selection...", "feature_patch": "diff --git ...", "tests_patch": "diff --git ...", "conflicts": [1, 2], "conflicts_info": [ { "id": 1, "title": "Faster Parquet Streaming + Filters", "conflict_diff": "--- file.py ---\n<<<<<<< HEAD\n...\n=======\n...\n>>>>>>> __existing_1" }, { "id": 2, "title": "Support for Sorting During Streaming", "conflict_diff": "--- file.py ---\n<<<<<<< HEAD\n...\n=======\n...\n>>>>>>> __existing_2" } ], "errors": [], "agent_cost": 0.047, "agent_steps": 11, "duration_seconds": 72.3, "tests_passed": true, "tests_output": "===== 1 passed in 0.30s =====", "validation_run": true }Testing
Validated with
huggingface_datasets_task/task7309: