Skip to main content
AILANG logo

AILANG World

Unix made everything a file. World makes everything a typed state transition.

A semantic operating environment whose transactions are AILANG programs: agents propose, a verifier checks, and only verified, authorized changes commit.

Pre-1.05 of 7 release clauses met. The two left measure World against the status quo: a non-inferiority floor for resident agents, and provenance answers timed against log archaeology.See the roadmap

How it works

The kernel is an immutable world graph. State changes only through transitions: pure AILANG functions, checked before they run. Every effect passes through a capability-checked broker, and MCP and A2A are the native boundary.

  1. 1

    Propose

    An agent proposes a change as an AILANG program. It never writes to the world directly.

  2. 2

    Verify

    Types and Z3 contracts are checked before anything runs. Unverified proposals stop here.

  3. 3

    Commit

    Verified, authorized, budgeted proposals commit to an append-only, content-addressed log.

  4. 4

    Replay

    A pure transition plus its recorded effect results rebuilds any past state bit-for-bit.

MCP native, session scoped

An agent connects to the daemon's /mcp/ endpoint with a minted session. It sees only the tools whose effects that session holds a grant for.

The call result carries the tool's output plus the world block: the effect records it produced and the plan that ran. Resolve any record by its content address.

Connect an agent
mcp: tools/list
# List the tools this session may call (MCP over the local daemon)
curl -s -H "Authorization: Bearer $(cat /tmp/se-session)" \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' \
  http://127.0.0.1:7644/mcp/

# Call one: a brokered effect, one committed log entry
curl -s -H "Authorization: Bearer $(cat /tmp/se-session)" \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call",
       "params":{"name":"ailang-read","arguments":{"path":"hello.ail"}}}' \
  http://127.0.0.1:7644/mcp/

The underlying OS executes bytes. World executes intent.