Skip to content
MITHRIL

MITHRIL ENTERPRISE · ONTOLOGY-NATIVE PROGRAMMING

The program is a graph. The boundary is executable.

Write .mith and .mithril as compact typed S-expressions. Mithril lowers them—and compatible JSON-LD—to one canonical RDF Dataset, then Kotoba and Amu enforce the admitted execution boundary.

Rendered live in your browser by kami-engine

Semantics before syntax

Mithril does not ask a model to write source text. Programs name typed ontology identifiers, or a decision model selects only from an OWL/SPARQL-discovered finite set; the compiler either derives an admitted execution plan or refuses.

TYPED FORM

.mith = .mithril = semantic S-expression

The canonical surface is application/vnd.mithril.form. Compatible JSON-LD lowers to the same RDF Dataset and graph identity.

CLOSED ONTOLOGY

No invented identifiers

OWL describes relations, SHACL constrains inputs, SPARQL selects graph facts, and a finite catalog binds effects and implementations.

DENY BY DEFAULT

No ambient authority

OaK revalidates ontology, transaction, Execution IR, capability and implementation identity before Kotoba permits an effect.

The language stack

Mithril Form is the compact implementation notation; JSON-LD is its RDF interchange projection. Every execution responsibility remains explicit and independently testable.

Mithril v1 is closed-domain ontology composition, not arbitrary program generation.
Stage Representation Executor
Source .mith / .mithril Typed Kotoba-shaped form; compatible JSON-LD input
Meaning Expanded RDF Dataset JSON-LD API + RDF canonicalization
Inference OWL 2 RL General rule closure over supplied triples
Validation SHACL plan Fail-closed bounded executable subset
Query SPARQL algebra Real graph query engine connection
Execution OaK Execution IR State, Transaction, Capability, CausalLink, Effect, Implementation
Runtime Kotoba / Amu / Wasm Typed effects, admission, content-addressed definitions

From graph to effect

A suffix never grants authority. Each stage derives a narrower representation and pins the identity it consumed.

  1. Lower

    Read one inert typed form or compatible JSON-LD, then lower through the compiler-pinned context into explicit RDF statements.

  2. Canonicalize

    Canonicalize the RDF Dataset and record its SHA-256 semantic digest, independent of JSON key order.

  3. Admit

    Reject unknown goals, roles, identifiers, duplicate choices, invalid confidence and unrecognized fields.

  4. Select

    OWL 2 RL and SPARQL close the handler set; trained OpenJev may return one typed distribution, admitted only above the ontology-authored confidence floor.

  5. Compile

    Emit a typed :oak.transaction/v1; OaK derives the complete Execution IR and checks exact manifest identity.

  6. Run

    Amu compiles Kotoba to Wasm. The host binds only the capability set admitted by the policy and IR.

Executable proof

The public repositories separate source processing, ontology admission and runtime enforcement. Claims stop where the conformance suites stop.

Solutions by boundary

The same one-language boundary, re-stated for four kinds of organisation. These are target patterns for the language, not customer stories: Mithril is new, and no deployed case is claimed.

Government

Sovereign and public-sector compute

Problem
AI-assisted software must pass through procurement and audit chains that assume a human wrote every line, while the systems themselves hold data a state cannot afford to expose.
Approach
The host grants only capabilities admitted as inspectable data before execution, and every artifact resolves to a canonical graph digest. The toolchain runs without a JVM and asks for no ambient network: one pinned, signed release installs on an air-gapped site, and the conformance suite - not a vendor claim - says what the compiler admits.
Proof
  • NIST SSDF (SP 800-218) asks for provenance and release integrity: content-addressed artifacts and admission receipts are that evidence in machine-readable form
  • Air-gapped operation stated and tested by the language itself: the toolchain is JVM-free and artifacts are content-addressed
  • Executable proof on this site: a .mith application and its web library, compiled and served from the public compiler

Finance

Fintech, banking and markets

Problem
Model output reaches customers through release cycles that answer to supervisors, and model risk management (SR 11-7 and its successors) expects documentation and effective challenge - not a vendor's reassurance.
Approach
Every artifact carries its admission receipt: what was compiled, under which policy, with which capabilities. Compliance evidence becomes a query over data the build already produced - model inventory and challenge material generated with the artifact, not reassembled after an incident.
Proof
  • Kotobase: durable, content-addressed storage for artifacts and receipts - the evidence chain outlives the release
  • Per-artifact compliance exports (SBOM, admission receipts) are the Mithril enterprise distribution's stated scope
  • The receipts this site's own graph agent stores by CID are the same mechanism, public

Defense

Defense and dual-use programs

Problem
Edge and classified programs run software that must not phone home, under supply-chain rules that quietly assume connectivity - and generated code inherits whatever the host can reach.
Approach
The execution boundary is fixed at compile time: a program that cannot hold ambient authority needs no perimeter to keep it honest. Offline operation is a property of the toolchain (JVM-free, content-addressed), and provenance is cryptographic - each binary resolves to a reproducible source and toolchain identity.
Proof
  • Deny-by-default admission: OaK revalidates ontology, transaction, Execution IR, capability and implementation identity before any effect
  • The air-gap FAQ on this site: nothing phones home; a pinned toolchain and a private registry are all an offline site needs
  • Amu: the JVM-free compiler/runtime beneath the language, built for verified compilation

Cybersecurity

Cybersecurity and critical infrastructure

Problem
Generated code inherits the network, filesystem and secrets of whatever host runs it - the assumption every breach replays - while defenders must reason over vulnerability data that arrives faster than audits.
Approach
Deny by default is the admission rule, not a hardening add-on: effects are typed and checked before they run. The post-quantum floor (hybrid X25519 + ML-KEM-768, ML-DSA-65) ships as machine-readable coverage, so KEV and CVE feeds become the start of an evidence query, not the boundary itself.
Proof
  • Published post-quantum coverage data at kotoba-lang.org (machine-readable, as deployed)
  • OaK kernel: fail-closed admission before any effect - public source and conformance suites
  • KEV and CVE datasets published at knowledge.kotoba.cloud - the same evidence plane the language's own admission consumes

One language, separate authorities

Execution, durable graph storage and model inference remain distinct surfaces. Mithril does not collapse their authority.

Questions

Are .mith and .mithril different formats?

No. They are aliases for the typed Mithril Form surface. Existing JSON-LD remains accepted and the surface spelling is excluded from semantic identity.

Does JSON-LD execute OWL, SHACL or SPARQL?

No. JSON-LD is the RDF interchange projection. Named reasoner, validator, query and runtime components do the execution.

Can Mithril generate any app without code?

Not arbitrarily. v1 composes a closed catalog of typed goals, queries, views, actions, effects and implementations. New algorithms or identifiers require an admitted implementation.

Where does Kotoba fit?

Mithril uses a Kotoba-shaped semantic/action form. OaK is its ontology kernel, Osaho owns checked executable KIR and DefCID, and Amu orchestrates verified compilation.

Build with Mithril

Use the public compiler, or bring a bounded domain whose ontology, shapes, queries and effects should become executable.

Write to us

Or email support@kotoba-lang.org with the subject “Mithril”.