Skip to main content

OpenRAL World Action Model layer — WorldModel Protocol + Rollout schema (CLAUDE.md §6.3)

Project description

openral-wam

OpenRAL World Action Model (WAM) layer — WorldModel Protocol + Rollout schema + NullWorldModel stub.

Scaffold status (2026-05-18). This package ships the Protocol surface only: WorldModel, Rollout, and a NullWorldModel stub for plumbing tests. Concrete adapters (Cosmos Predict, UnifoLM-WMA-0, IRASim) land in v0.3+ per CLAUDE.md §6.3. Those concrete generative WAM adapters ship as separate downstream packages in the private OpenRAL Pro monorepo — this public package stays the Protocol/contract surface.

Layer

CLAUDE.md §6.1 Layer 5 — generative simulator used by the planning loop for mental simulation (gating action chunks), failure anticipation, and replanning.

Three integration patterns (CLAUDE.md §6.3)

  1. Mental simulation (gating) — sample N short rollouts before committing an action chunk. Threshold via Rollout.confidence.
  2. Failure anticipation — continuous predicted-vs-observed discrepancy detector. The WorldStateAggregator and the WAM share a trace span; divergence raises a FailureTrigger.
  3. Replanning loop — propose alternative subgoals as visual prompts; the reasoner re-prompts with the predicted-but-failed trajectory as context.

All three consume the same surface — WorldModel.rollout(...)Rollout — so the Protocol is sufficient for v0.2.

Public surface

from openral_wam import WorldModel, Rollout, NullWorldModel
  • WorldModel — structural Protocol every WAM adapter satisfies.
  • Rollout — Pydantic v2 schema for the predicted trajectory.
  • NullWorldModel — identity stub returning the input state for horizon steps.

ADRs

  • Pydantic v2 preferred over @dataclass for schemas/configs.
  • CLAUDE.md §6.3 — the canonical write-up of the three integration patterns; a dedicated ADR will follow when the first concrete adapter lands.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openral_wam-0.1.0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file openral_wam-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: openral_wam-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for openral_wam-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c929c8590b5f1db72fd60170cdc4ad9ad18a57cbc952e6ede8b7aaf1730b451f
MD5 f55b61da756ae8cdba93d4fadbd9b77d
BLAKE2b-256 a6cae2e39f8e656239ccb56e744984071d377ba1ae70024b70183c8a0c9ae1fc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page