Development

SHIP Language

Secure Heterogeneous Inference Programming—translating natural language to verifiable bytecode.

Why SHIP Is Necessary

SHIP bridges the gap between model inference and actionable outcomes—asset transfers, agent interactions, smart contract invocations. It's essential for expressing, verifying, and governing the intent of sovereign AI agents.

The Problem with Raw LLM Outputs

LLMs can generate text resembling executable logic, but they're non-deterministic and lack formal guarantees about structure, safety, or correctness. Using raw outputs for bytecode generation introduces serious issues.
Unpredictability

Hallucinations, unsafe constructs

Unbounded execution

DoS risks

No proof anchoring

Verification impossible

Opaque intent

Implicit goals

Design Principles

Determinism

Static bounds, known gas/memory

Verifiability

Tensor Commit proofs

Traceability

Tied to agent context

Composability

Staged, delegated, templated

Execution Flow

1

Inference

Agent runs model, generates output

2

Compilation

NL→SHIP via fine-tuned agent, then SHIP→bounded opcodes

3

Verification

Tensor Commit proves inference integrity, bytecode validated

4

Execution

Program submitted to runtime

Example Use Case

A sovereign agent runs a summarization model. The summary contains a trigger like "Pay 10 $THE to agent_xyz for document processing".

Without SHIP

Text parsed directly into bytecode, causing potential execution unaligned with agent's intention.

With SHIP

example.ship
let payment = Transfer {
  recipient: agent_xyz,
  amount: 10 THE
};
commit(payment);

Integration with AIVM

SHIP compiles to AIVM opcodes, executed via AGENT_TICK() or MODEL_INFER().

Each construct maps to safe primitives: TLOAD, TCUSTOM, STATE_EXPORT, TRANSFER_TOKEN.

Tensor Commits link inference outputs to on-chain outcomes.

Documentation