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.
.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.
No invented identifiers
OWL describes relations, SHACL constrains inputs, SPARQL selects graph facts, and a finite catalog binds effects and implementations.
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.
| 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.
-
Lower
Read one inert typed form or compatible JSON-LD, then lower through the compiler-pinned context into explicit RDF statements.
-
Canonicalize
Canonicalize the RDF Dataset and record its SHA-256 semantic digest, independent of JSON key order.
-
Admit
Reject unknown goals, roles, identifiers, duplicate choices, invalid confidence and unrecognized fields.
-
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.
-
Compile
Emit a typed :oak.transaction/v1; OaK derives the complete Execution IR and checks exact manifest identity.
-
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.
Mithril compiler
Typed S-expression and JSON-LD frontends, one canonical graph digest, fail-closed catalog and tests.
Web library in .mith
A content-addressed exact router and static response handler, imported and executed by a .mith application.
Runnable .mith application
The JSON-LD source for GET and HEAD /hello, linked to the web library by canonical RDF digest.
OpenJev-selected .mith application
A generated-text-free source whose finite handler choice is discovered by OWL/SPARQL, confidence-gated and sealed into Web IR.
Multi-route OpenJev composition
One model forward fills three typed route holes; every distribution is admitted and the saved Web IR runs without model authority.
Typed call DAG experiment
Router, handler, view and effect candidates form a closed call DAG. The pinned model currently fails its 5,500-point admission floor, so no learned artifact is claimed.
Call DAG web library
The published .mith catalog of router, handler, view and effect implementations.
Mithril Graph
A bounded ontology agent loop collects declared JSON-LD, emits an analysis receipt, and preserves it by CID in Kotobase.
OaK kernel
Ontology-selected transactions, OWL/SPARQL/SHACL adapters and Execution IR runtime.
JSON-LD processor
Pinned-context JSON-LD 1.1 expansion and RDF conversion.
Kotoba and Amu
The typed capability language and JVM-free compiler/runtime beneath Mithril.
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.
Mithril App Studio
Author, compile, test and deploy bounded ontology applications as content-addressed URLs.
MDM / MTD evidence
Review operator-reported mobile security evidence against public DISA rules. No device enforcement or live threat detection is claimed.
Supply-chain security evidence
Review ICT supply-chain risks against DoDI 5200.44, with related SBOM and SASE views. Reported gaps produce local follow-up prompts.
PPAP / device ledger
Review a file sharing plan and reconcile a registered device roster with observed MDM reports. The workflows distinguish unknown evidence from a completed check.
Mithril
The product this edition belongs to (formerly Kotoba Cloud): the build and deployment entry for admitted artifacts.
Kotobase
Durable, content-addressed storage for graphs, artifacts and receipts.
Murakumo
Model inference for finite typed candidate distributions; generated text is not required.
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 usOr email support@kotoba-lang.org with the subject “Mithril”.