Skip to content

Pass sample_idx to swe_agent_function - #58

Merged
odp merged 1 commit into
prodfrom
pass-sample-idx
Jun 30, 2026
Merged

Pass sample_idx to swe_agent_function#58
odp merged 1 commit into
prodfrom
pass-sample-idx

Conversation

@odp

@odp odp commented Jun 30, 2026

Copy link
Copy Markdown

Harbor server workers each maintained their own local sample_idx counter, so multi-process runs could produce duplicate artifact IDs like <instance_id>_90 across workers. This could overwrite or conflate trajectory files, S3 paths, viewer records, and dashboard lookups.

Fix: propagate Miles Sample.index as an explicit sample_idx field in the /run request and use that in Harbor instead of generating a worker-local index; remove the unused DashboardState._trial_counter.

Pairs with https://github.com/LLM360/RL360/pull/432

@odp
odp requested a review from a team June 30, 2026 00:07
@odp
odp merged commit bccea3e into prod Jun 30, 2026
4 checks passed
@odp
odp deleted the pass-sample-idx branch June 30, 2026 00:34
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.

3 participants