Support multi-step tasks with simulated user

Open
#4,463 0 comments 22 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
15/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python

Research direction

Start by finding where the error 'User-agent bridge trials are not supported for multi-step tasks' is raised, then read the multi-step task flow around it. Related #4426 covers saving outputs at stage boundaries, so check how it handles state between steps. Done would mean a multi-step trial runs a user-agent loop per step, grades each step on the live environment, and carries conversation and workspace forward; this is design work, so confirm scope with maintainers first.

Written by the indexing model from the issue text.

Description

Today this fails with "User-agent bridge trials are not supported for multi-step tasks."

What we'd want:

  • in each step the user agent and the target go back and forth, starting from that step's instruction
  • the step ends when the user agent says it's done (or at the step timeout)
  • Harbor runs that step's tests on the live environment and records the step reward like it does now
  • the conversation and workspace carry over to the next step for both agents
  • a step can set its own user persona

Why: we want to grade parts of a conversation as they happen, on the environment as it is at that point. It also lets the target ask a question mid-step and get an answer before that step is graded. #4426 gets part of the way by saving output files at stage boundaries, but it doesn't run tests on the live environment.

related: #4426, #2564, #4391

Dominant language
Python
Stars
5.6k
Forks
1.9k
Avg merge
1d 17h
Merged PRs (30d)
156

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from harbor-framework/harbor

All issues in harbor-framework/harbor

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.