The IDL
The surface is one file, idl/axiom.idl in the Axiom repository. The host's dispatch, the import list
a mod is checked against, the C header a mod compiles against, the other language bindings and the
capability reference are all generated from it, so none of them can drift from
another. A mod author reads it and never writes it.
A capability
A capability is a question about a game, answered by a pack, or a primitive about a process, answered by the backend. A mod calls both the same way and cannot tell which is which.
entity.transform@1 { audience: mod requires entity.query@1 transform(id: EntityId) -> Result<Transform>; bulk transforms(ids: [EntityId]) -> [Result<Transform>]; position(id: EntityId) -> Result<Vec3>; bulk positions(ids: [EntityId]) -> [Result<Vec3>]; writes set_position(id: EntityId, position: Vec3) -> Result<>; writable() -> bool; moved { entity: EntityId, from: Vec3, to: Vec3 } StaleHandle; ReadOnly; }
The name carries its major. A change that would break a mod built against @1 is a new capability,
@2, and a mod names the one it was built for.
What a capability can say
Why no call takes an address
Packs only, and the reason is the sandbox rather than a policy. A call that took or returned a game address would hand a mod a place in the process, and the host cannot check what a mod does with one. So the generator refuses a mod-visible call that names an address or a pointer, and the calls that do, such as memory.read and symbols, are for packs.
A mod that wants to hook a function names it, and hook@1 resolves the name through the pack. Two mods on one function is then ordinary rather than a collision, because the core owns the detour.
What comes out
The generator also refuses a shape the lowering cannot carry. It found two as soon as it checked:
a table's column names, which became the [str] lowering, and a list of rows each holding a list
of cells, which became ui.overlay@1.set taking its cells flat with a column count.