Store shared task sources and materialize Harbor tasks locally

#3
by edbeeching HF Staff - opened
Hugging Face Agent Swarms Research org
•
edited Nov 4

The Hub currently stores 6,481 generated task files that duplicate runtime, oracle, verifier, and build files across 270 scenarios. This PR keeps the shared sources and original scenarios once, with a compact catalog, and materializes standalone Harbor tasks locally when needed.

File count: 6,786 → 308 (95.5% fewer files). No published image registry is required. The generated task directory still contains its complete build context; Docker/Podman builds images locally.

Changes:

  • Remove the generated tasks/ tree from the Hub. Preserve all 270 original scenarios and shared source files.
  • Add catalog.json with stable task IDs, difficulty, source paths, and scenario hashes.
  • Default the existing generator to ignored generated/tasks/; support its existing --task-ids, --pilot, and --output-dir options.
  • Update publishing to exclude generated outputs and remove legacy task copies.
  • Update Harbor/OpenEnv instructions, the corpus-test path, and regression tests.

Compatibility change: direct harbor run --repo ... discovery and tasks/**-only downloads no longer work on this layout. Download a pinned source snapshot, run uv run agentescape-port --task-ids ..., then pass generated/tasks to Harbor/OpenEnv. Harbor 0.25.0 copies only the selected task and rejects links outside it, so cross-task symlinks or sibling build contexts are not a compatible shortcut. Shepherd's current Hub downloader needs a separate materialization integration before adopting this revision. Existing pinned releases remain unchanged.

Validation:

  • Generated all 270 tasks locally. All 6,481 output files match the previously validated evidence-fix candidate, except derived image tags (the generator source hash changes).
  • Twelve tests passed, including actual Harbor task-tree copying into isolated directories for difficulties 5 and 25, scenario/catalog integrity, and publisher exclusions.
  • The equivalent difficulty-25 generated runtime passed the earlier real Podman/Harbor smoke (job 343033): board read/write, evidence collection, separate verifier, cleanup. No new inference calls or full 270-task runtime rerun are claimed.

This PR also retains the one-line /evidence generator fix from PR #2. If this compact-layout PR is merged, it supersedes #2: do not merge #2 afterward, because its generated-file updates would reintroduce expanded task files. Both PRs are left open for your review; main and Shepherd's revision pins are untouched.

Hugging Face Agent Swarms Research org

Validated the pinned PR in a real Harbor Oracle trial on Slurm (job 343147): reward 1.0, 79 actions, all 25 nodes visited. Board identity/post/read and verifier evidence collection passed. Merging following owner authorization. Generated validation report files were removed; evidence is recorded here instead.

edbeeching changed pull request status to merged

Sign up or log in to comment