Zing 论坛

正文

CompanyOS:训练AI代理应对真实企业混乱的强化学习环境

本文深入解析CompanyOS项目,这是一个专为Meta PyTorch OpenEnv Hackathon开发的强化学习环境,模拟真实企业系统的混乱与复杂性,让AI代理学习在TicketDesk、DataHub和ApprovalFlow三个互相关联的应用中完成多步骤企业工作流。

强化学习AI代理企业工作流OpenEnvMetaPyTorchLLM训练多应用系统因果推理基准测试
发布时间 2026/04/26 18:42最近活动 2026/04/26 18:59预计阅读 6 分钟
CompanyOS:训练AI代理应对真实企业混乱的强化学习环境
1

章节 01

CompanyOS: A Reinforcement Learning Environment for Training AI Agents in Realistic Enterprise Chaos

CompanyOS is a reinforcement learning environment developed for the Meta PyTorch OpenEnv Hackathon, simulating the chaos and complexity of real enterprise systems. It enables AI agents to learn multi-step workflows across three interconnected applications (TicketDesk, DataHub, ApprovalFlow). Unlike existing benchmarks, it focuses on testing agents in complete, messy workflows similar to real-world scenarios, aiming to be a controlled, reproducible benchmark for enterprise reasoning.

2

章节 02

Background: The Real-World Dilemma of Enterprise AI Agents

Enterprise AI agents often fail not due to lack of intelligence but because real systems are chaotic, inconsistent, and interdependent. Examples include tickets with missing priorities, expired compliance data, OOO approvers, random approval rejections, and irreversible actions with penalties. Existing RL benchmarks test agents on clean, isolated tasks, which don't reflect real enterprise chaos—this gap is what CompanyOS addresses.

3

章节 03

Project Design & Core Components

CompanyOS is an OpenEnv-compliant RL environment with three core apps:

  • TicketDesk: Simulates Jira-like ticket management with intentional chaos (missing priority/status/assignee, blocked tickets).
  • DataHub: Stores business metrics with stale data (e.g., expired vendor compliance scores) requiring refresh.
  • ApprovalFlow: Handles approvals with OOO approvers, random rejections, and required field checks. Its design philosophy solves real system issues: clean resets between episodes, no rate limits, adjustable chaos levels, and rewards causal reasoning over pattern matching.
4

章节 04

Evidence: Agent Learning Flow & Reward System

A typical vendor onboarding task involves steps like setting ticket priority, verifying tickets, refreshing stale data, routing to OOO approver delegates, and submitting approvals. The reward system uses shaped rewards (e.g., +1.0 for setting priority, +1.5 for verifying tickets) plus a large termination reward (15.0 for success). Random agents average -2.04 with ~2% success rate due to incorrect tool order or ignoring warnings.

5

章节 05

Technical Implementation & Usage

Tech stack includes OpenEnv-core (RL framework), FastAPI (API server), Docker (containerization), HuggingFace Spaces (hosting), Unsloth (LLM fine-tuning), and Qwen2.5-1.5B-Instruct (base model). Usage is simple: 5 lines of code to reset the environment and execute actions. Key endpoints include /reset, /step, /render, etc.

6

章节 06

Comparison with Existing Benchmarks

CompanyOS stands out from benchmarks like WebArena (single system), WorkArena (vendor-locked), AgentBench (no partial observability), ToolBench (no state), and ALFWorld (non-enterprise). Its unique value: multi-system causal reasoning, data quality as a core challenge, and being open/reproducible (free public REST API).

7

章节 07

Training & Evaluation Process

Training uses Unsloth + HF TRL for GRPO optimization. Progress has three stages: stopping invalid tool calls, learning correct app routing for subtasks, and mastering full workflows (including stale data and OOO routing). Random baselines are available to measure pre-training performance.

8

章节 08

Limitations, Future Directions & Conclusion

Current limitations: uses small Qwen2.5-1.5B model (may limit complex reasoning). Future directions: larger models, multi-modal observations (screenshots), more complex scenarios (cross-department collaboration), and integration with other RL frameworks. Conclusion: CompanyOS is an innovative benchmark for training robust AI agents that can handle real enterprise chaos, providing value for teams developing enterprise AI solutions.