ashlar

design

ashlar is built for a world in which agentic AI writes code, and humans set the boundaries it must keep. those boundaries live in the code itself, where a check can hold them, not in terms of use, which bind only the honest. here is each decision that makes this so, where it came from, and where ashlar differs.

augmented intelligence

for us, AI stands for augmented intelligence, not an artificial intelligence that stands on its own. AI agents write the code; the human stays at the centre, setting the boundaries the code must keep, and the agents multiply what one person can build and check. ashlar makes this structural rather than a promise: the door admits only code that keeps those boundaries. the idea is old, from man-computer symbiosis (1960) and augmenting human intellect (1962). amplification is our aim, not a proven law: a 2024 review of 106 studies found that people and AI together can do worse than the better of the two alone.

what it is built to make impossible

code that crosses a boundary is not warned about: it is never admitted. one example, checked against the compiler when this page was published: hand the door a program that runs whatever arrives on its command line, and it refuses it, in its own words: untrusted-sourced value reaches the trusted operation.

the decisions

known by content, not by name

every definition is known by the BLAKE3 hash of its body and its type. names are metadata over those hashes: they serve people and entry points, and play no part in what a definition is or does.

influenced by Unison, which stores code by its content and treats names as metadata. where ashlar differs: Unison serves a human who reads code and resolves an ambiguous name; ashlar's author is an AI agent, so it keeps content addressing and names as metadata, and leaves out branches, scratch files and resolving a name when it is used.

one door, one canonical way

code enters only as structured data, through one door that runs nine checks on every definition and refuses it with a reason. a second definition under a name already taken is refused: a change goes through an amend, never beside it.

influenced by eBPF and Simplicity, whose programs come from constrained or automated authors and are checked before they run. where ashlar differs: their checkers guard a host against one program; ashlar's door guards the store itself, so every definition it holds has passed.

where a value comes from is part of its type

every value carries a label of where it came from, inferred with no annotation. a value from an untrusted source cannot reach a trusted operation: the door refuses the definition that tries.

influenced by Flow Caml, from the information flow inference for ML by Simonet and Pottier (POPL 2002). where ashlar differs: labels are inferred inside a definition and frozen at its boundary; a definition in the store is a boundary, so its type is the contract its callers rely on.

programs that end

no program should run forever. this is decided and not yet built: today a definition may still recurse without a bound.

influenced by total functional programming as Turner describes it, and divergence as a tracked effect in Koka (arXiv 1406.2061). where ashlar differs: total by default, and a definition that must run without a bound declares it and must be granted it; ending bounds what a program computes, not what it may reach, which is the job of its type.

names in full words

every name is spelled in full words from a vocabulary the store holds, and the door refuses an abbreviation. the law is a record in the store, read at the door.

influenced by a controlled study of how identifier names affect code models (arXiv 2508.06414). where ashlar differs: that study found precise names beat both meaningless and verbose ones, so ashlar asks for full words, not long names.

the compiler rebuilds itself

the compiler rebuilds itself byte for byte from the definitions it is shipped with, and the rebuilt compiler rebuilds itself again.

influenced by reproducible builds, as Debian and NixOS practise them. where ashlar differs: determinism shows that everyone gets the same binary, not that the binary matches its source; and so far the rebuild is shown on one kind of machine, not across many.

the compiler is not trusted

no one should have to trust the compiler: a compiler that reproduces itself would reproduce a hidden backdoor too. how to close this trust root is open.

influenced by reflections on trusting trust by Thompson (1984), and diverse double-compiling by Wheeler (2005). where ashlar differs: ashlar aims at two pillars together: machine-checked proofs that reach the bytes the compiler emits, and reproducibility anyone can re-run; neither is closed today.

what is not proven

a decision the design record holds open is marked open above.

negative trust

every decision here follows one principle: trust nothing you cannot check. trust says what that means for you, and what you must still trust.