Skip to main content

W8-RL Overview

W8-RL is a rollout framework for web-agent RL, distributed with Ray. It uses a real browser (WootzApp) to produce ChromiumRL visual and semantic rewards. It runs in Docker only.

W8-RL offers three ways in, all on the same EnvActor core:

  • SkyRL (BaseTextEnv interface, Ray-backed)
  • OpenEnv (HTTP via Ray Serve + FastAPI)
  • Tinker (token-based RL training via Tinker Cookbook)

All paths share the same execution core:

Task container -> EnvActor -> emulator browser -> ChromiumRL signals -> reward bundle
Docker-only execution

Everything must run in Docker. Do not run Python or tests on the host. Use the provided scripts or docker compose run.

For a quick start, see Getting Started.

Tested with​

  • Ray 2.40.0
  • Docker 24+

W8-RL Differentiators​

What W8-RL does well:

CapabilityW8-RL ApproachBenefit
Async rolloutsFairScheduler with no synchronization barriersNo GPU idle time from slow rollouts
Queue schedulingPer-environment OperationDispatcher with separate queues by operation typeHandles long-tail latency; navigation can't block screenshots
Batch collectionTimeout OR batch_size triggersSmooth GPU use without CPU spikes
CDP resilience8-state connection machine with automatic reconnectionSurvives flaky browser connections
Browser isolationFull emulator pool with per-rollout isolationNo cross-talk between parallel rollouts
ChromiumRL signalsPaint time, CLS, LCP, FCP from browser internalsRewards that see performance as well as looks
GPU pipeliningscreenshot_queue_size=4 streams observationsOverlaps screenshot capture with inference
GRPO groupingK trajectories per task with relative advantageLower variance within task groups

Long-Tail Latency Handling​

Browser runs have long-tail latency. Some rollouts take far longer than others while GPUs sit idle. W8-RL handles this in three ways:

  1. Per-task timeout: stuck rollouts get killed.
  2. Non-blocking threads: while one rollout hangs, other threads use the GPU.
  3. Intervention only when needed: a person steps in only when all threads finish while a few hang, or when one thread runs far too long.

Improvement Roadmap​

Planned work:

GapPriorityApproachStatus
Difficulty-aware horizonsHighmax_steps = 10 * ceil(difficulty/3) based on rubric fact countImplemented
Action repetition detectionHighPerceptual hash (imagehash.phash); terminate after 3 consecutive repeatsImplemented
Rubric-based evaluationMediumLLM-generated fact groups with partial credit scoringImplemented
Episode memoryMediumRay Actor-based KV store for cross-step information synthesisPlanned
Task decompositionDeferredGenerate subtasks from fact group subsets for denser rewardsResearch
Task scale expansionDeferredAggregate benchmarks + synthetic generation (target: 100K+ tasks)Research

Difficulty Classification​

Tasks are grouped by fact count, the number of criteria in the rubric:

tasks/difficulty/
├── 1/ # Trivial (1 fact, max 10 steps)
├── 2-3/ # Easy (max 10 steps)
├── 4-6/ # Medium (max 20 steps)
└── 7+/ # Hard (max 30 steps)

This allows glob-based sharding (tasks/difficulty/[1-3]/**/*.json) and sets the step budget per tier.

Next Steps​