Skip to content

fix(treesearch): prevent search.py from moving static datasets#50

Open
Oversear13 wants to merge 1 commit into
ISG-Siegen:developfrom
Oversear13:PullRequest
Open

fix(treesearch): prevent search.py from moving static datasets#50
Oversear13 wants to merge 1 commit into
ISG-Siegen:developfrom
Oversear13:PullRequest

Conversation

@Oversear13
Copy link
Copy Markdown

Summary

Introduces an extension-based blacklist filter in search.py to prevent static datasets from being destructively moved to node checkpoints during tree-search iterations, significantly reducing disk-space overhead and pipeline crashes.

Problem

In the current state of AutoRecLab, the exec_node method indiscriminately collects all files within the workspace and uses shutil.move() to transfer them into the current node's checkpoint directory. This catches agent-generated artifacts (like plots or results), but datasets (e.g., u.data, .csv, .zip files) as well.

This automated moving behavior causes severe architectural issues:

Pipeline Disruption (FileNotFoundError): Once a dataset is moved to a checkpoint during the first iteration, it is missing from the workspace root in subsequent iterations, causing follow-up runs to crash.

Massive Memory Overhead: If users rely on automated loaders to bypass the missing files, the framework forces redownloads and recanonicalizations for every single node, duplicating gigabytes of data across countless hash-named checkpoint folders and triggering No space left on device errors eventually.

Dirty Git Tree: Moving local files constantly flags the datasets as "deleted" or "untracked" in the user's repository state.

Solution

We modified the file aggregation phase in search.py by introducing a robust extension-based filter (ignored_extensions).

Input vs. Output Separation: The framework now explicitly ignores typical dataset formats (.csv, .data, .tsv, .zip, .gz) when collecting files from both the workspace root and the working/ subdirectory.

Non-Destructive Execution: Static inputs safely persist in the workspace across all iterations, allowing the user to copy datasets once into the directory without them being wiped out.

Storage Optimization: Only true agent-generated artifacts (such as evaluation summaries or logs) are moved to the checkpoint folder, keeping the disk usage minimal and the Git tree clean.

@Oversear13 Oversear13 changed the title Pull Request prevent Moving of Datasets fix(treesearch): prevent search.py from moving static datasets May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant