| name | claw-r1-agentic-rl-data-middleware |
| description | Step-level data middleware system for agentic RL. Captures multi-turn agent-environment interactions and organizes them as managed data assets. |
| version | 1 |
| created | 2026-06-10T00:00:00.000Z |
| source | arXiv 2606.09138v1 |
| tags | ["agentic-RL","data-middleware","LLM-agent","step-level","data-management"] |
Claw-R1: Step-Level Data Middleware for Agentic RL
Interactive data middleware system that connects heterogeneous agent runtimes with RL training backends, treating agent interaction traces as managed data assets.
Architecture
Gateway Server
class AgentGatewayServer:
def __init__(self, unified_api_entry):
self.api_entry = unified_api_entry
self.step_capture = StepCaptureEngine()
def capture_step(self, request):
prompt_id = request['prompt_id']
response_id = generate_response_id()
step_record = {
'prompt_id': prompt_id,
'response_id': response_id,
'action': request['action'],
'state': request['state'],
'timestamp': time.now()
}
return step_record
Data Pool Organization
class AgentDataPool:
def __init__(self, storage_backend):
self.pool = storage_backend
def organize_step_record(self, step):
record = StepLevelRecord(
prompt_id=step['prompt_id'],
response_id=step['response_id'],
reward=step['reward'],
metadata=step['metadata'],
readiness=compute_readiness(step)
)
self.pool.store(record)
def curate_by_quality(self, quality_threshold):
return self.pool.query(quality > quality_threshold)
def configure_training_batch(self, batch_spec):
curated = self.curate_by_quality(batch_spec['quality'])
return batch(curated, batch_spec['size'])
Interactive Inspection
def inspect_trajectory(data_pool, trajectory_id):
steps = data_pool.get_trajectory(trajectory_id)
for step in steps:
print(f"State: {step.state}")
print(f"Action: {step.action}")
print(f"Reward: {step.reward}")
print(f"Metadata: {step.metadata}")
Key Concepts
- Step-Level Records: Fine-grained capture of each agent-environment interaction
- Managed Data Assets: Treat traces as persistent data, not ephemeral logs
- Quality Curation: Filter data by quality and readiness metrics
- Training-Ready Batches: Configure data for different downstream RL algorithms
When to Use
- Agentic RL training pipelines
- OpenAI-compatible agent runtimes
- Multi-turn conversation agents
- Post-training for LLM agents
Activation Triggers
agentic RL data, step-level middleware, agent trajectory management, Claw-R1, LLM agent training
References