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 release 0.2.0: doi:10.5281/zenodo.24317658.

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 (A7a, pre-registered: one call writes the whole task as JSON Patch, one audit call, the same model, seeds, hash check and audit rule), RSOS matched or beat it on every measured axis: 32/32 exact vs 31/32, 0.79–0.91× its cost per correct task (95% CI below 1 on both task sets), about 2 calls per task for both, while the planner never saw a single state value. The market pattern's one failure was a step whose values depend on earlier steps; it stayed wrong after three attempts although the auditor named the error each time. Against one model call per step (A5): 2.2–2.4 calls instead of 42–43, 0.27–0.35× the cost, 12 s instead of ~100 s.

Limits: one task family (30 keys, 14 requests), one model family (Claude Haiku 5.5), 32 tasks per arm; margins at this scale are small. The next tests, with predictions fixed in advance, are in NEXT_TESTS.md.

Try to break it. Score any framework on the same 32 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

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.

Results (17 Nov 2026, pre-registered, real LLM agents; whitepaper v2: doi:10.5281/zenodo.24320392): a protocol designed by the RSOS White Dragon engine (A3b) used 0.55× the BPE channel tokens of a Slipstream-style anchor protocol while keeping every copy of the shared state true in 16/16 tasks (anchor protocol 0/16) and healing every injected drift without a model call. The White Dragon also redesigned a weak agent system, cutting errors by 63% (A2). Of 27 predictions on real hosts, 18 passed and 9 failed; all are reported.

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

{"mcpServers": {"rsos-language": {"command": "python", "args": ["-m", "rsoslang.mcp_server"],
  "env": {"RSOS_CUE_FRAMEWORK": "/path/to/RSOS-Multimodal-Cue-Framework"}}}}

The tools are rsos_statements, rsos_check, rsos_compile, rsos_session, rsos_paint_workflow, rsos_apply_gestures and rsos_paint_graph.

Results

See results/BUILD_REPORT.md. It covers every pre-registered test, the ones that failed included.

Licence

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

Metadata

Release files for rsoslang 0.3.1

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.3.1
File Size Uploaded Provenance Actions
rsoslang-0.3.1.tar.gz 95.9 kB Without provenance Details for rsoslang-0.3.1.tar.gz

Built distribution (wheel)

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

Total release size: 187.0 kB

Release files / rsoslang-0.3.1.tar.gz

Download URL rsoslang-0.3.1.tar.gz
Size 95.9 kB
Tags Source
SHA-256 checksum
How to use checksums
fd380e850e24b2a23690c3209029353f25c02d4a444670f2a0b4c29ad62149c1
BLAKE2b-256 checksum
How to use checksums
2cb239115d4151b01efb495f72bd6244ff2f9c0a9411f38f2f9493c73ce2f4b6
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.3.1-py3-none-any.whl

Download URL rsoslang-0.3.1-py3-none-any.whl
Size 91.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3786cfbc08ad49059825faf1522ec95803d8cc2576b1ed3258b3a9a9acb592e1
BLAKE2b-256 checksum
How to use checksums
6caa2e31ea522726ee869bd3b2baa59a80d42e0c633dfcba466162993b115859
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.3.1

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