How evoharnessrl/evoharness-rl works
EvoHarness-RL gives an LLM policy a shared Belief/Progress/Experience workspace and four meta-actions, alongside environment actions, for long-horizon tasks. Its main workflow runs across ALFWorld, WebShop, and WebArena; the README also documents supervised fine-tuning and reinforcement-learning training, including experience-bank consolidation. The graph includes the sampled RL environment manager and key training-runtime modules. Some subsystem links are documented only at product level; unsampled implementation details are not inferred as direct calls.
Main entry points: workspace.py BPE workspace · env_manager.py RL environment manager · fsdp_workers.py FSDP workers · fsdp_checkpoint_manager.py FSDP checkpoints
Components 27
Harness workflow
- BPE workspace
evoharness/workspace.py - Belief state
evoharness/belief.py - Progress plans
evoharness/plan.py - Experience bank
evoharness/experience.py - Episode runner
evoharness/episode.py - Policy prompts
evoharness/prompts.py - Bank consolidation
evoharness/evolver.py
Task environments
- ALFWorld adapter
evoharness/envs/alfworld/env.py - WebShop adapter
evoharness/envs/webshop/env.py - WebArena adapter
evoharness/envs/webarena/env.py
Training workflows
- SFT data prep
evoharness/sft/dataset.py - RL environment manager
evoharness/rl/env_manager.py - RL rewards
evoharness/rl/reward.py - RL training entry
evoharness/rl/train.py
Distributed runtime
- Distributed data protocol
training/verl-agent/verl/protocol.py - Worker dispatch
training/verl-agent/verl/single_controller/base/decorator.py - Distributed worker
training/verl-agent/verl/single_controller/base/worker.py - Model utilities
training/verl-agent/verl/utils/model.py - Device selection
training/verl-agent/verl/utils/device.py - Checkpoint handling
training/verl-agent/verl/utils/checkpoint/checkpoint_manager.py - FSDP checkpoints
training/verl-agent/verl/utils/checkpoint/fsdp_checkpoint_manager.py - Megatron checkpoints
training/verl-agent/verl/utils/checkpoint/megatron_checkpoint_manager.py - Model file access
training/verl-agent/verl/utils/fs.py - FSDP workers
training/verl-agent/verl/workers/fsdp_workers.py - Agent FSDP workers
training/agentgym-rl/AgentGym-RL/verl/workers/agent_fsdp_workers.py - Megatron workers
training/verl-agent/verl/workers/megatron_workers.py
Other components
- LLM policy
Connections 25
- LLM policy → BPE workspace: uses meta-actions
README.md - LLM policy → ALFWorld adapter: acts in
README.md - LLM policy → WebShop adapter: acts in
README.md - LLM policy → WebArena adapter: acts in
README.md - BPE workspace → Belief state: tracks state
README.md - BPE workspace → Progress plans: commits subgoals
README.md - BPE workspace → Experience bank: recalls and notes
README.md - Episode runner → Policy prompts: formats turns
- RL environment manager → Episode runner: manages episodes
evoharness/rl/env_manager.py - RL environment manager → RL rewards: computes bonus
evoharness/rl/env_manager.py - RL environment manager → Experience bank: consolidates evidence
evoharness/rl/env_manager.py - Experience bank → Bank consolidation: consolidates with
- SFT data prep → Policy prompts: uses prompt format
evoharness/sft/dataset.py - RL training entry → RL environment manager: trains through
- Worker dispatch → Distributed data protocol: dispatches data
training/verl-agent/verl/single_controller/base/decorator.py - Distributed worker → Worker dispatch: registers work
training/verl-agent/verl/single_controller/base/worker.py - FSDP workers → Model utilities: builds models
training/verl-agent/verl/workers/fsdp_workers.py - FSDP workers → Device selection: selects device
training/verl-agent/verl/workers/fsdp_workers.py - FSDP workers → FSDP checkpoints: uses checkpoints
training/verl-agent/verl/workers/fsdp_workers.py - Agent FSDP workers → Worker dispatch: uses dispatch
training/agentgym-rl/AgentGym-RL/verl/workers/agent_fsdp_workers.py - Megatron workers → Megatron checkpoints: uses checkpoints
training/verl-agent/verl/workers/megatron_workers.py - FSDP checkpoints → Checkpoint handling: extends manager
training/verl-agent/verl/utils/checkpoint/fsdp_checkpoint_manager.py - FSDP checkpoints → Model file access: uses file helpers
training/verl-agent/verl/utils/checkpoint/fsdp_checkpoint_manager.py - Megatron checkpoints → Checkpoint handling: extends manager
training/verl-agent/verl/utils/checkpoint/megatron_checkpoint_manager.py - Megatron checkpoints → Model file access: uses file helpers
training/verl-agent/verl/utils/checkpoint/megatron_checkpoint_manager.py