Skip to main content

RSOS Language

DOI License: Apache 2.0 tests

RSOS: an executable spatial-symbolic language for human–AI and AI–AI communication. Whitepaper: R. A. Elu (2026), doi:10.5281/zenodo.24304403 (all versions). Code: Apache 2.0. Software: doi:10.5281/zenodo.24358277 (v0.3.2; all versions: doi:10.5281/zenodo.24317657).

Blind planning: the model names keys, the runtime computes values

For multi-agent workflows that edit shared state. The planner writes the whole task as operations that name keys and relations (INHERIT auth.retries search.retries CAP 8), never values; a deterministic runtime computes every value, hash-checks every agent's copy and heals drift with zero model calls.

Against the most efficient market pattern we could build (A7, pre-registered: one call writes the whole task as JSON Patch, one audit call; the same model, seeds, hash check and audit rule), across 80 tasks of 14 to 224 steps and up to 300 keys: RSOS blind was exact on 80/80, with 0 wrong steps in about 5,800, while the planner never saw a single state value. One-call JSON Patch was exact on 77/80, and all 8 of its failed steps were values it had to compute from changed state (owner transfers, copies of changed values); they stayed wrong although the auditor named the error. RSOS's cost per correct task: 0.79× and 0.91× of JSON Patch at 30 keys and 14 steps, 0.66–0.68× on 56–224 steps, 0.50× at 300 keys (95% CI below 1 in every cell). Against one model call per step (A5): 2.2–2.4 calls instead of 42–43, 0.27–0.35× the cost.

Across Claude models (A8): blind planning was exact on 16/16 in all six cells (Haiku, Sonnet and Opus 5.5 × 14 steps and 300 keys). JSON Patch's failures were one reproducible class: "everything owned by X is now owned by Y" on a 300-key state failed on the same request for Haiku, for Haiku told to track the state, and for Sonnet; Opus tied at 16/16. Telling JSON Patch to track state made it worse (29/32 vs 30/32). Cost per correct task at 300 keys: 0.50× (Haiku), 0.54× (Sonnet); Opus used 0.78× the input and 0.39× the thinking.

Limits: one task family, one model family (Claude: Haiku, Sonnet, Opus 5.5), 16 tasks per cell; JSON Patch lost only 3 of 80 tasks, so the exactness gap is small; the predictions that JSON Patch would collapse on long tasks (P9) and that blind input would stay under 1.5× at 10× the state (P10, 1.53×) failed. The next tests, with predictions fixed in advance, are in NEXT_TESTS.md.

Try to break it. Score any framework on the same 80 tasks with RSOS-StateBench (plain JSONL and a scorer, no harness needed), or re-run A7 on a Claude plan for $0. Every result, confirming or not, is listed.

pip install rsoslang                             # or, from a clone: pip install -e .
claude mcp add rsos -- rsoslang mcp              # or with no install: claude mcp add rsos -- uvx rsoslang mcp
python experiments/a5_runtime_equivalence.py     # from a clone: this runtime replays every measured plan, 32/32 match

MCP: listed in the official MCP Registry as io.github.r-a-elu-architecture/rsos (0.3.1). Works in any MCP client over stdio (Claude Code, Claude Desktop, Cursor, …). Verified on 18 Nov 2026 on Windows 11: pip install rsoslang then claude mcp add → Connected; uvx rsoslang mcp starts with no install step.

Drop it in (Python or MCP) → · StateBench → · Replicate it → · All results, failures included →

A spatial-symbolic programming language for humans and AI. You write a program the way you think it: objects in a scene, placed, touched, pierced, entered, coloured, connected by lines, kept in the rooms of a house. The same program runs in two places:

  • in a machine: an AI agent workflow, a simulation;
  • in a person: a practised mental model, delivered as a timed session of images, words, sounds, scents and vibration codes.

Open the editor → A real 12-module support agent, painted. Put a guest at the head, heart, brain or beside a module, and see the measured effect.

All results (pre-registered, real LLM agents, every failure reported; 56 predictions so far, 34 passed, 22 failed): results page. Newest first: A8 (Haiku, Sonnet and Opus; a stronger JSON Patch), A7b (long tasks and large states), A7a (blind planning vs one-call JSON Patch, above), A5 (one plan vs one call per step), A4 (hidden drift becomes wrong answers for an anchor protocol without a hash check: 0/16), A3c (0.141× the channel tokens of a Slipstream-style anchor protocol at zero model calls). Whitepaper v2 (doi:10.5281/zenodo.24320392, 17 Nov) covers A1–A3b and HT1; A3c–A8 are in experiments/ and will be in the next version.

First real-host test (A1, 17 Nov 2026, pre-registered): three LLM agents (planner, worker, checker) on 8 tasks. The RSOS palace protocol used about 7× fewer channel tokens than JSON with full state (2,563 vs 17,311), finished 7/8 tasks exactly correct (JSON 5/8), and caught and healed 24/24 injected drifts with 0 model calls (38 tokens per repair). Summaries + retrieval: 0/8 correct, 24/24 drifts kept. One model family, 8 tasks. Report: experiments/A1_REPORT.md.

Purpose

RSOS grew from one seed: healing, transforming, signalling and evolving. It integrates the whole of human experience, including its shadow, so that what is integrated can be transformed rather than denied. Because its seed is healing, RSOS is used with consent and for the good of the person or system it works with, never to harm or coerce. See RESPONSIBLE_USE.md, GOVERNANCE.md, CONTRIBUTING.md and TRADEMARKS.md.

What makes it different

  • Where you place an operator decides what it does. The same spell corrector placed at a module's head, heart, brain or beside it gives four different results, measured on held-out data.

  • Meanings in three tiers.

    • a fixed core, shared by everyone;
    • declared variations, scoped to a person, host, world or state;
    • meanings left open on purpose, found by search.

    Nothing changes silently.

  • The host decides. Every operation runs on a declared host with its own channels and states. A cue on a channel the host does not have is an error.

  • Safety is in the compiler. Person-facing operations need consent and pass a constitution of seven checks; return to baseline is always available.

  • Every result is reproducible. Pre-registered experiments, seeds, result hashes; negatives published with positives.

Quick start

pip install -e .
python -m rsoslang check examples/robot_head.rsl
python -m rsoslang ir examples/sol_remote.rsl
RSOS_CUE_FRAMEWORK=/path/to/RSOS-Multimodal-Cue-Framework python -m rsoslang session examples/healing.rsl
./reproduce.sh

Use it from Claude or any MCP assistant

pip install rsoslang
claude mcp add rsos -- rsoslang mcp              # or: claude mcp add rsos -- uvx rsoslang mcp

Any other MCP client: a stdio server with command rsoslang and argument mcp ({"mcpServers": {"rsos": {"command": "rsoslang", "args": ["mcp"]}}}).

State Runtime tools: rsos_state_new, rsos_state_prompt, rsos_state_apply, rsos_state_sync, rsos_state_get (see STATE.md). Language tools: rsos_statements, rsos_check, rsos_compile, rsos_session, rsos_paint_workflow, rsos_apply_gestures, rsos_paint_graph. Person-facing sessions need the cue framework (RSOS_CUE_FRAMEWORK=/path/to/RSOS-Multimodal-Cue-Framework).

Results

Every pre-registered test, the ones that failed included, on the results page; the failure map is experiments/FAILURES_MAP.md; the next tests are in NEXT_TESTS.md. Earlier simulation and code results: results/BUILD_REPORT.md.

Licence

Apache 2.0. Research and development software; not a medical device.

Metadata

Release files for rsoslang 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rsoslang 0.4.0
File Size Uploaded Provenance Actions
rsoslang-0.4.0.tar.gz 101.3 kB Without provenance Details for rsoslang-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rsoslang 0.4.0
File Interpreter ABI Platform Actions
rsoslang-0.4.0-py3-none-any.whl Python 3 none any Details for rsoslang-0.4.0-py3-none-any.whl

Total release size: 198.6 kB

Release files / rsoslang-0.4.0.tar.gz

Download URL rsoslang-0.4.0.tar.gz
Size 101.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b8b104f7587ce01e3dfe31b5db7e29c7f406cf9608d30d3e67bca2615b1bf8e8
BLAKE2b-256 checksum
How to use checksums
4c7ec98147a4d6b41a3dfa2d10351b35817766127a76459fbfa0520abe173371
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15

Release files / rsoslang-0.4.0-py3-none-any.whl

Download URL rsoslang-0.4.0-py3-none-any.whl
Size 97.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7c966c4392173dd810fc806b13032164383b1ab0bac1bbd4afd3a44e05d23877
BLAKE2b-256 checksum
How to use checksums
d57ba942bd0ef75768db0475b3fdd8300ca53458b973261ce8ebc3f487a295a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.15

Security for rsoslang 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page