Documentation version: v0.1.6. We describe a feature as current only when it is supported by repository source, shipped templates, and tests.
1. Project Positioning
PhyAgentOS provides an Agent and an execution runtime for embodied-intelligence tasks. We separate natural-language planning from physical execution into two control planes:
- Track A (Agent) handles messages, context, model calls, tools, memory, and task planning.
- Track B (Runtime) handles Session scheduling, compatibility checks, Target/Policy execution, state writeback, and artifacts.
- The two planes exchange targets, capabilities, and execution state through Markdown + YAML workspace protocols.
This boundary does not hide hardware differences. It confines them to Targets, Adapters, Policy Clients, and Runtime Contracts so the Agent can depend on a stable Session protocol.
2. Current Architecture
CLI / Channels / Cron / Heartbeat
│
▼
AgentLoop + Tools
│ append pending session
▼
TARGETS.md + SKILLRUNTIME.md + SESSIONS.md
│
▼
WatchdogSupervisor
│ claim → preflight
▼
SessionRunner
│
┌───────┴────────┐
▼ ▼
PolicySkillRuntime BuiltinSkillRuntime
│ │
└──── TargetSessionHandle ────┐
▼
local/remote RolloutTargetAn actual Session follows this path:
SessionSchedulerselects a dependency-ready pending Session fromSESSIONS.md.SessionRegistryatomically claims it and advances it topreflight_checking.RuntimeCompatibilityPreflightvalidates references, endpoints, runtime registration, adapters, contracts, sensors, and action contracts.SessionRunnercallsbuild,configure_session,start_session, andresetin order.- A Skill Runtime can observe, execute action chunks, refresh the environment, or call constrained Target tools only through
TargetSessionHandle. - The Watchdog writes the episode, history, and final state. With semantic verification enabled, the Session enters
awaiting_verification.
3. File Protocol
| File | Writer | Current responsibility |
|---|---|---|
RUNTIME.md | RuntimeWorkspaceManager | Generated instructions for creating Sessions; not runtime state |
TARGETS.md | User/developer; enable overrides may apply at startup | Target registry, endpoints, adapters, and config references |
SKILLRUNTIME.md | User/developer | Skill Runtime registry, policies/adapters, and I/O contracts |
SESSIONS.md | Agent + Watchdog + Verifier | Session queue, state, result, and verification metadata |
ENVIRONMENT.md | Runtime/Perception | Target snapshots, objects, scene relations, and perception runs |
LESSONS.md | Runtime/Verifier | Auditable failures and semantic-verification lessons |
Sensor, Perception, and Runtime Contract data lives in external YAML so device calibration, models, and action constraints are not embedded in Markdown registries.
4. Implemented Capabilities
4.1 Agent Control Plane
paos onboard,paos agent,paos gateway,paos status, and OAuth provider login.- CLI, 11 Channel implementations, Cron, Heartbeat, MCP, built-in tools, and background subagents.
- File-based context, JSONL sessions, token-window consolidation, and long-term memory.
- Optional
SessionVerifier: semantic verification from final RGB and runtime history, with success/failure/replan verdicts and evidence-retention policies.
4.2 Runtime Execution Plane
- Session state machine, atomic claims, dependency/priority scheduling, timeouts, and failure writeback.
PolicySkillRuntimeandBuiltinSkillRuntimeexecution backends.- Target/Policy adapters, explicit action bridges, and strict AdapterPlan construction.
- msgpack-over-WebSocket remote Target protocol with an isomorphic lifecycle for local Targets.
- Target-configured Perception, Environment v2 reconciliation, and episode artifacts.
4.3 Registered Runtimes
| Type | Registered implementation |
|---|---|
| Local Target | DummySimTargetRuntime |
| Remote Target | RemoteTargetProxy, LiberoRemoteTargetProxy, IsaacSimRemoteTargetProxy, Behavior1KRemoteTargetProxy |
| Skill Runtime | OpenPISkillRuntime, CommandSimSkillRuntime |
| Policy Client | Dummy, OpenPI/PolicyWS, BEHAVIOR-1K WebSocket |
| Target Adapter | Dummy, LIBERO, Isaac Sim, BEHAVIOR-1K |
| Action Bridge | bridge://safety_clamp |
The shipped templates cover Dummy, LIBERO, PiperGo2/Merom Isaac Sim, and BEHAVIOR-1K targets. The schema accepts four Target kinds—game, debug, simulation, and real_robot—but the default v0.1.6 registrations and templates primarily cover simulation. Schema support alone does not imply an available backend.
5. v0.1.6 Scope
We define the current public scope as follows:
- Session-Centered Runtime replaces the former Driver-Centered
hal/,BaseDriver, andhal_watchdog.pypath. Historical examples may remain in the repository, but they are not the current installable Runtime API. - No
real_robotTarget Runtime is currently registered. The complete target-side safety loop and operator-override requirements from HAL v3 remain future work. - Preflight requires constrained tool exposure for real-robot Targets, but it does not yet enforce every
operator_override_required, SafetyGuard, and online-health requirement. - Some shipped Isaac Sim skills currently use
strict_environment_contract: false; HAL v3 defines convergence totrueas the target design. - Goal Graph, Session Compiler, fallback chains, a general CompositeTarget, and complete multi-Target orchestration are not implemented yet.
- Fleet configuration currently provides shared/instance workspace topology and context resolution; it is not yet a complete multi-robot execution orchestrator.
6. Future Design Direction
The following items come from PhyAgentOS HAL v3.md and remain target design:
- Converge every Skill Runtime on a strict Environment Contract and remove non-strict template exceptions.
- Complete real-robot target-side SafetyGuard, workspace bounds, operator override, and healthcheck gates.
- Add agent-interactive Builtin Runtimes, constrained Target Tool manifests, and real-robot runtimes.
- Implement Goal Graph, Session Compiler, long/short-horizon decomposition, and explicit failure escalation.
- Expand deterministic observation/action bridge chains while prohibiting implicit truncation, padding, and representation casts.
- Build multi-Target, multi-Skill Runtime, and long-horizon Fleet orchestration on the shared Session protocol.
We promote these items to current-capability documentation only after their schemas, preflight checks, runtime implementations, and tests form an end-to-end path.
7. Repository Structure
PhyAgentOS/
├── PhyAgentOS/agent/ # AgentLoop, context, memory, tools, verifier
├── PhyAgentOS/channels/ # Message channels
├── PhyAgentOS/config/ # Configuration schemas and loading
├── PhyAgentOS/runtime/
│ ├── watchdog/ # Scheduling, claims, state, results
│ ├── sessions/ # SessionRunner, TargetSessionHandle
│ ├── targets/ # Local/remote RolloutTargets
│ ├── skillruntime/ # Policy/builtin runtimes
│ ├── adapters/ # Target/policy adapters and bridges
│ ├── policy/ # Policy clients/servers
│ ├── perception/ # Perception plans and EnvironmentWriter
│ ├── communication/ # Envelopes, msgpack, TargetWS
│ └── schemas/ # Runtime Pydantic schemas
├── PhyAgentOS/templates/ # Workspace and runtime templates
├── rollout/ # Isaac Sim rollout service
├── b1k_integration/ # BEHAVIOR-1K integration
├── scripts/ # Initialization, Watchdog, and E2E tools
└── tests/ # Unit and runtime testsArchitecture Diagrams
- Agent Architecture: 中文 · English
- Benchmarking Architecture: 中文 · English
- SessionVerifier Architecture: 中文 · English
