Draconyx

Changelog

What changed

Changes to the Draconyx language, its specification and its toolchain, newest first.

Draconyx is pre-release, so there are no version numbers yet. Each entry is dated by the day its changes landed on the main line of the spec and the compiler. Commands carry today's name, drx, in every entry, including those before 18 October 2026, when the language took its name.

November 2026

One LLVM back end; drx publish, tune and replay; cluster substrate and Merged values

  • Native code

    The spec now names one code generator, LLVM: dev and test builds run it without the optimizer, release and proof with it. The tier contract binds the release optimizer, so a release build prints, byte for byte, what a dev build of the same program prints and exits with the same status. Float arithmetic is IEEE 754 binary64 at every tier with no fast-math, and the only law-driven rewrites are a catalogue of three over folds (split fold, strided accumulation, parallel reduction), each consuming only exact laws at or above the target's minimum mode.

  • Toolchain

    drx publish is new. A path dependency is AX0202, and a missing version, or one below the minimum that the changes to the public surface since the last published bundle force, is AX0203. The package must also match its lock, check, and pass verification at release. --dry-run <dir> writes the bundle (package card, compiled summaries, surface and trust records, source) into a local registry directory, and a package card over its budget is published whole with the warning AX0204.

  • Toolchain

    drx tune enumerates an @autotune block's search space in source order and decides every law gate before measuring: a candidate whose gate fails is reported with its code, such as AX0701, and never runs. The fastest measured candidate is written as a _pinned schedule, with a [[schedule]] row in an existing draconyx.lock, while drx bench runs the same search and writes nothing. drx run --record <dir> records a run's service traffic and a hash of every training step, and drx replay re-runs the program from that recording alone, up to a given step, and reports the first step whose hash differs.

  • Syntax

    A module that activates a dialect with use extension now parses that dialect's forms where they are written. Each dialect is checked when it loads, and so are the dialects one module activates against each other, under eight new codes from AX0901 to AX0908, such as two dialects reserving one keyword (AX0907). drx gen schema writes a PostgreSQL database's tables as a checked-in module of Query table declarations. A column outside its type map is AX0826, and --check reports drift as AX0827.

  • Agent daemon

    Several clients can now reach one workspace daemon at once, each on its own connection, and initialize gives each a client identity. A fork's one writer is the client that created it. A write, drop-fork or merge-fork from any other client is the new error kind fork-writer-held, and asking for an identity another live connection holds is client-identity-held.

  • Standard library

    Every binary now carries a cluster substrate: SWIM membership with gossip, failure detection decided by majority, joining through one seed address, and 256 shards rebalanced on every join and leave. The [deploy] key cluster switches it on, cluster_seed and cluster_listen give its addresses, and the environment can override each. std.dist gains Merged<T>, a replicated Mergeable value whose writes and reads are local on either side of a partition and whose replicas converge through T's own merge once the partition heals.

  • Safety

    Each [native] library's [permissions] row is now checked by the library's mode. An in_process library whose row is missing or is a list is AX0830, with an edit that writes "unbounded", and "unbounded" on any other row is AX0831. A sandboxed or isolated library with no row is budgeted to nothing.

  • Types

    An explicit from whose argument already has the target type is now the identity conversion and needs no conversion function. A from into a type with no conversion from the argument's type is now one AX0420 naming the missing conformance, such as From<Int>, instead of AX1001 beside AX1007. Pytree is now derived structurally: a struct, tuple, List or Array through which a tensor is reachable is one, so the standard library's tree walks and checkpoint functions carry their Pytree bounds.

Cloning a type parameter's value needs a Clone bound

  • Types

    clone x on a value of a type parameter now needs where T: Clone. Without the bound it is AX0420 at the operand ("type parameter T has no Clone bound"). Before, it checked clean and an instantiation could copy a type with no Clone.

Generators with yield; naming rules enforced; a pinned solver discharges laws

  • Syntax

    A function declared -> Generator<T> now gives its values one at a time with yield, and for walks the generator a call returns. The call runs none of the body: each step runs it to the next yield. yield is a reserved word; a yield outside a generator is AX0452, and a generator body that gives back any value other than another generator is AX0453.

  • Syntax

    The compiler now checks naming rules as errors. Types and constructors are UpperCamel, and every value name, consts included, is lower_snake (AX1201). No type may take the name of a prelude type (AX1216), and a function's leading word must keep its promise: an is_ function returns Bool, and an into_ function takes its first parameter with take (AX1205). The standard constants are now int_min and int_max.

  • Types

    some C is removed: written in a type it is AX0296, and a function returns its named type instead, so std's iterators are named types such as Chars. any C now appears only inside data and as a result whose type is decided at run time. A parameter of type any C is AX0434, and an any C result that always returns one type gets the warning AX0435.

  • Laws

    At the release and proof targets, a solver pinned in the toolchain now discharges each proven law that its own proof does not close, and a law it cannot prove fails the build (AX0711). At those targets drx check now also asks a solver to prove each refinement the checker left open, reporting AX1057 for one it cannot prove, and dev and test builds check such refinements at run time. A law's proof: block is now checked: a goal left open is AX0722, and a proof that is not total, such as one that appeals to its own law, is AX0745 to AX0748.

  • Safety

    The manifest's [permissions] table is now enforced. A dependency that reaches a permission its row does not grant is AX0507, and grants narrow along the dependency graph, because a package passes on only what it holds. The new drx add writes a dependency's row and asks which permissions to grant, and drx run now gives main a sandboxed System by default, whose Network records and refuses every request; --live gives it the full powerbox.

  • Toolchain

    The new drx lock writes draconyx.lock, which pins the toolchain and every path dependency by hash; an input that no longer matches it is AX0822, and a release or proof build then builds nothing. The compiler now checks the manifest's edition (AX0212 for an unknown one), and drx migrate --edition moves a package between editions. A package can order its modules in [[layer]] tables in draconyx.toml, where a reference up a layer is AX0817, and a module under an internal/ folder can be reached only from inside its parent's subtree (AX0281).

  • Agent daemon

    The agent daemon now serves rename-def, which rewrites every reference to a definition in one transaction. It also serves why-conformance and why-not, which use recorded witnesses to explain why a type does or does not conform to an abstraction. callees, call-path and provenance answer questions that otherwise mean reading one definition after another, search and outline now cover the standard library and dependencies, and a put-def now adds, in the same write, the plain use line its definition needs when exactly one import fits.

  • Types

    The standard tensor operations, such as matmul, the reductions and transpose, now check shapes at each call: a matmul whose inner axes disagree is AX1001, naming the axis and both extents, and each result carries its computed shape on to the next operation. A ? axis now stands for an extent known only at run time, and the checker types as_static as opening it to a fixed size.

Consts computed at build time; match arms narrow; remote enforced; drx fix

  • Types

    A const initializer is now evaluated once, at build time, and may call only pure functions: one that reaches a service, a permission, an extern or a trust global is AX0442. One that traps is AX0443, one that exceeds the evaluation quota AX0444, one the build cannot evaluate AX0445, and consts that read each other AX0446. The spec now defines these rules in a Constants paragraph.

  • Types

    A match arm on a variant with named fields may now name just the variant (Refunded ->). Inside it, the matched value is narrowed to that variant, so its fields are read with . (payment.amount). Reading another variant's field, or reading after a write to the value, is AX1002. A match over a call whose arms read payload fields is the new AX0450, with an edit that names the value first.

  • Safety

    remote is now enforced: a field read on a remote value is AX0447, a remote T used where a plain T is expected is AX0448, and share or watch of a remote value is AX0308. The value a sandboxed or isolated foreign call returns is now tainted, like network input, so it reaches an unmarked position only through endorse (AX1022).

  • Toolchain

    drx fix now applies every suggested edit marked always as one transaction, writing all files or none, and then checks again. A maybe edit is applied only when it is passed back with --edits. More diagnostics now carry edits, and each maybe edit states its consequence: AX0601 adds the missing arms, AX1003 the missing fields, AX0321 offers share, take or clone, and AX1005 and AX1008 write the annotation or label.

  • Laws

    drx build, drx test and drx verify now take --target with dev, test, release, proof or a profile from the manifest's [targets] table; an unknown target is AX0727. dev runs no law, release fails on a failing law, witness or test, and proof also refuses each trust or checked law and each proven law not discharged. The new drx suggest-laws proposes laws for a module's operations and keeps only those that hold on every sample it runs.

  • Agent daemon

    The agent daemon now serves who-conforms, what-conforms, explain, explain-dispatch, suggest-laws and audit-trust. drx audit trust prints the last of these: every trust block, conformance and global, with its rationale, module and hash. The spec now has an appendix that fixes the interface's method names, payload schemas, error kinds and framing.

  • Native code

    An extern "C" function in in_process mode now runs in drx run and in built binaries. The library is opened or linked and called directly, with Int, Float, Bool, Byte and Ptr values crossing the boundary. Any other parameter type, or more than six integer or eight Float parameters, is the new AX0811, which drx run and drx build report before any code runs.

  • Standard library

    graphemes, words, sentences, normalize, to_upper, to_lower and trim now follow Unicode 17.0.0, the same in the interpreter and in native code. Segmentation follows UAX #29, and normalize handles NFC, NFD, NFKC and NFKD. std.text gains is_whitespace, is_xid_start, is_xid_continue and general_category.

Abstraction defaults now fill bare bounds

  • Types

    An abstraction's default type arguments now apply wherever the abstraction is named: in a where bound, a require clause and a when arm, as in a type. Given abstraction Shl<Rhs = Int>, a bare where T: Shl is now where T: Shl<Int>, so value << 1 checks, and a type that shifts by a String meets neither. The spec now says so.

New comment, function and binding forms; failure inferred; lock order checked

  • Syntax

    # now starts a comment, and a """ block is a declaration's documentation: directly under a function's header, first in a type's body, or directly above a const. A block anywhere else is the new AX0439, and an unclosed one is AX0104. The spec now defines both forms.

  • Syntax

    A function can now be declared without def, as find(id: Int) -> User:; declared this way it writes its result type, and a function that gives nothing writes -> None (leaving it out is AX0264). @export and @strict now mark a declaration, one per line above it; in a module that writes @export, an item without it is hidden from other packages, and exporting a function that shows a hidden type is AX0240.

  • Syntax

    Inside a function, the first = on a name not in scope now declares it, without let: count = 0, rate: Float = 0.05. Declaring such a name again in its scope, or shadowing it with another binder, is the new AX1029, and a name declared this way whose value no path reads, such as the typo totl = total + 1, is the new AX0319.

  • Syntax

    Compound assignment (+=, -=, *= and the others) and the statements x++ and x-- now exist; y = x++ is AX0268, and drx fmt now writes x = x + y as x += y. ** is now a power (-x ** 2 is -(x ** 2)), ~x a bitwise NOT, and not in the negated in.

  • Types

    A function can now fail by writing fail value in its body, with nothing about failure in its signature: the checker infers which functions can fail, through function values too. A call that can fail is handled where it is written, by a match with ok and fail arms, or its failure is passed up to the caller; a call that does neither is the new AX1040. drx run and built binaries both run these forms.

  • Concurrency

    A lock is not re-entrant, and the checker now refuses taking a lock again while the same task holds it, directly or through a chain of calls (the new AX1055). Taking two locks in opposite orders anywhere in a program, which can leave two tasks waiting on each other forever, is the new AX1056, and the spec now has a section on lock order. At run time a lock is now held until its guard ends, in drx run and in built binaries.

  • Safety

    Process-global mutable state is now declared with trust global, which replaces trust static (AX0296, with the repair), and only in a module the root manifest lists in proof-allowlist; anywhere else it is the new AX0285. Assigning to a global now runs in drx run and in built binaries. A dependency whose [dependencies] row says trust = false may now hold no trust code at all (AX0807).

  • Standard library

    Console.print and Console.write now cannot fail: output that never reaches its stream, through a broken pipe or a full disk, is lost output, the program runs to its end, and the run exits 1 with a lost-output message. Map and Set now have is_empty and clear; a for loop over a Map, OrdMap or OrdSet now works, borrowing or with take, and a plain for over a Set now borrows instead of asking for a copy.

Taint follows computation; raw pointers stay in trust; law shapes checked

  • Safety

    A value computed from a tainted or secret one now keeps its marker through arithmetic, comparison and logic operators, pattern binders, destructuring and field reads, and a tainted one through string interpolation, so each of these routes is AX1022 or AX1023 where the value meets an unmarked position. Branching on such a value stays legal. endorse and declassify now refuse a view as their value (AX0438), and new to_bytes and to_string overloads keep the marker on the owned copy.

  • Safety

    A raw Ptr<T> can now be created only inside a trust block (AX0721 elsewhere), and neither a Ptr nor a struct holding one is Sendable or Foreign unless a trust conformance vouches for it. A trust conformance of Sendable on a generic type now holds only where its type arguments are Sendable.

  • Standard library

    A live FileSystem now has a root, the package root under drx run and the launch directory for a built binary, and nothing leaves it: host-absolute paths, paths with a .. component and symbolic links that lead out of the root are refused. drx run --fs-root <dir> anchors it elsewhere, and the new FileSystem.kind says what a path names, following links.

  • Laws

    A law's shape is now checked at drx check: a verification mode on a pass_rate law is AX0716, a rate outside (0, 1] AX0717, a bare predicate body without pass_rate AX0718, a rate or tolerance that is not a Float literal AX0719, and a qualifier that disagrees with the body's operator AX0720. Inside a law body a free variable no longer supplies the argument label it spells, so minus(left, right) == minus(right, left) is AX0256 instead of a law that compares a call with itself.

  • Types

    An integer literal outside its type's range, such as an Int outside the signed 64-bit range or a Byte above 255, is now the compile error AX0436; before, it ran as 0 or as an Int. A \u{...} escape naming a surrogate or a value above 10FFFF is now AX0106 in a character literal too, and a map literal with Float keys is refused (AX0421).

  • Types

    A refinement v in 0..4096 over integer-literal bounds now means 0 <= v and v < 4096, so the two spellings are one type with one content hash, and a guard written one way proves the other. Two refinements are now the same type only when the names in their predicates also resolve to the same things, not merely when their text matches.

  • Interpreter

    A run of consecutive statement-level when arms now runs as one cascade, in drx run and in built binaries: the first arm whose test holds runs, and none need hold. Such a statement now discards its arm's value, and a break or continue with no loop around it in the same function is the new AX0430.

  • Toolchain

    Content hashes now cover five parts of a definition they missed: tuple labels, the verb of a for loop or a lambda parameter, a lambda parameter's default, trust def, and a written type the compiler keeps less of, such as @heap Grid<Int, Int>. A closure hash now also moves when a const, a field default, a chosen witness or a standard-library item it reads changes.

Abstractions met by inference; generic functions without type lists; laws decide membership

  • Types

    A type now satisfies an abstraction when functions with its operations exist for it in any module the program uses; extend blocks and the include, !include and asserts clauses are removed (AX0296, with a fix). A function may have the body derived for compare, hash, generate and shrink. Two modules that each supply the same abstraction's operations for one type are AX0422, settled by a [conformances] row in draconyx.toml.

  • Types

    A function now declares no <...> list: a single capital letter in its signature is a type variable, and a single lowercase letter in a size position a size variable. A call writes no type arguments, and a variable nothing fixes by the end of the statement holding the call is AX1025. Axes are passed as labeled arguments, as in softmax(tensor = logits, over = classes).

  • Laws

    A type is now a member of an abstraction only when it has the operations and breaks none of the laws, which the build checks and caches. A bound at a type that breaks a law is AX0432 with the counterexample, a bound at a type with no generator for a law is AX0433, and a function in the package that makes its type break a law is the warning AX0714. Law qualifiers such as Add associative are removed (AX0296); std declares AssociativeAdd and CommutativeAdd instead.

  • Types

    Two overloads of one name whose parameter types are the same and that differ only in their labels, such as area(rect: Rect) beside area(shape: Rect), are now AX1027. A bound now also supplies the operations of the abstractions its abstraction requires, so under where T: HasPerimeter a function can call area.

  • Ownership

    Once a match arm is taken, the scrutinee's borrow now ends at the last use of the arm's binders, so an arm can write the map it looked in. Assigning a whole new value to a borrow parameter, as in counter = counter + 1, now reaches the caller, in drx run and in built binaries.

  • Standard library

    An empty {} now builds a Set where a Set is expected, len takes a Map or a Set, and a Str shows as its text. replace and int_of_text now also take a String, and FileSystem.read_to_string reads a whole file as text. Array now has a generator and a shrinker, so std's Sequence law is checked for it at a fixed size.

  • Agent daemon

    get-def, put-def and delete-def now treat a definition as ending at its own last line, so a write no longer removes the comments or the doc block of the definition below it, and a definition inserted after another lands above that doc block.

  • Toolchain

    A Tree-sitter grammar and a Zed extension now color Draconyx source in the Zed editor.

drx test refuses ownership errors; daemon names the keys it ignored

  • Testing

    drx test and drx verify now refuse a package with ownership errors, as drx run and drx build do, printing the diagnostics as drx check prints them. A refused package now exits 3, so it can be told apart from a failed obligation, and --force runs the obligations anyway.

  • Syntax

    A line that begins with and( or or(, with no space, now starts a new statement calling a function of that name instead of continuing the previous line as a boolean operator. and ( and or ( still continue the line.

  • Agent daemon

    Every daemon answer now ends with ignored, the request keys it did not honour, such as a misspelt key or a value of the wrong type, and initialize now lists every error kind. The new new-def adds a definition to a module.

Agent daemon write lock freed on a crash; takeovers reported

  • Agent daemon

    The workspace write lock is now held by an operating-system lock where the file system supports one, so a crashed daemon's lock is free at once and a running daemon keeps its lock however long it idles. A daemon that has lost the lock now fails its next write with write-lock-lost, and a write that takes a lock over says so in reclaimed_lock.

Keywords renamed to abstraction, require, take and watch; overload families told apart

  • Syntax

    The keywords are now abstraction (was capability), require (was requires), and take and watch for the owning and non-owning verbs (were transfer and observe). An old word where no name can stand is AX0296, with a fix that writes the new one; elsewhere it is an ordinary name. std's take on a list is now remove_at.

  • Types

    Two definitions of one name and label set are now AX0233 unless they answer one operation of an abstraction or service for different types or arguments, as two from(value: HttpError) into two error types do. Each member of such a family now has its own address, so a call runs the member its types select and an Int binding can no longer hold a Float.

  • Laws

    A failing law over Float now reports small, readable counterexamples such as 0.0, 0.0, 1.0: the shrinker tries the simplest candidates first, by a fixed order that puts short decimals before long ones and finite values before infinities and NaN.

User-built standard handles refused; secret values lose Show; consts copied

  • Safety

    The checker now refuses standard handles built by user code: a literal of a standard-library strict type, such as File(descriptor), Task or Sender, is AX0241, and writing a field of System is AX0242. For now, a std.kernel.launch outside a trust block is the new AX0802.

  • Agent daemon

    The resume and package cards are now measured against their token budgets over their own rendered text, not the JSON that carries them, and now return that text. A package card over its budget is served whole and says so (over_cap).

  • Safety

    The checker now denies Show and Serializable to any value that is or holds a secret, such as a List<secret Int>, so interpolating one into a string is AX0420. A strict struct holding a permission at any depth, as in an Option<Network> field, is now AX0510.

  • Ownership

    Every read of a heap const now yields a fresh copy, in drx run and in built binaries, so changing a copy no longer changes the const, and each copy runs its destructor. Writing to a const, or borrowing one exclusively, is the new AX1024.

  • Types

    Capability arguments now count in more places: a type that includes or asserts Conv<Int>, or an any Conv<Int>, no longer meets Conv<Bool>, at check time or in when dispatch. x + true under T: Add<Int> is refused, and when arms differing only in Item = bindings no longer clash.

  • Services

    The checker now follows the services a function value needs through more routes: with and select binders, fields that store it (also inside a List or Option), lambda parameters, loops and when-dispatched returns. A missing provider (AX0501) or an exceeded requires (AX0502) reached that way is now reported.

  • Concurrency

    A field write through a MutexGuard is now checked as a write to the value it protects, so the spec's Mutex example checks; through a ReadGuard, writes and exclusive borrows are refused. The spec's producer/consumer example now hands the producer its Sender, so the channel closes.

  • Formatter

    drx fmt now lays out select, provide locally and syntax-parameterize statements instead of copying them verbatim, aligning select arms as it aligns match arms. Law qualifiers not joined with +, as in Add associative commutative, are now the parse error AX0260; before, only drx fmt rewrote them.

Agent daemon re-reads the workspace; operators consume; values drop at block end

  • Agent daemon

    The agent daemon now re-reads the workspace before every request, so a write whose base predates an edit made outside it is refused as a conflict. Its disk mirror is all or nothing: files are staged first, and a failed rename restores those already replaced.

  • Ownership

    The ownership checker now makes +, -, *, /, ++ and unary - consume heap-backed operands, as the spec requires, so a later use is AX0312. A value still wanted is cloned at the operator: clone greeting ++ name. Copy-class values such as Int are read as before.

  • Ownership

    Owned values are now released at the end of the block that declares them, not of the function, and temporaries at the end of their full expression, on every exit path. Destructors that never ran now do: for transfer arguments, moved match payloads, discarded temporaries and chains over 64 deep.

  • Testing

    drx test and drx verify now fail when an obligation could not be evaluated, unless --allow-unsupported is passed; a law violation fails either way. AX0707 is now titled “coverage shortfall” and names its cause, such as a definition with no body, in the JSON output.

  • Interpreter

    At run time, ==, compare, show and capability operations now use the witness written for the full type. With witnesses for Box<Int> and Box<Bool>, the interpreter and native code used to run the first for every Box. A when arm's associated-type bindings are now part of its test.

  • Types

    A written type with the wrong number of arguments, such as Duo<Int> for struct Duo<A, B>, is now AX0429. An alias fills a left-out parameter from its default, as a struct does: with type Pair<A, B = A> = (A, B), Pair<Int> is (Int, Int).

  • Diagnostics

    A dependency cycle (AX0211) is now reported at the use that enters it or the manifest row that closes it, with the cycle printed; an import whose root is no module or declared dependency (AX0231) names the [dependencies] row to add. A single fault in a core construct, such as a chained comparison, gives one diagnostic.

  • Toolchain

    A redundant parenthesis no longer changes a definition's content hash; most existing hashes changed once as a result. A member of a type-dispatched family is now addressed by its canonical type (@Loud, not @(Loud)), so drx fmt no longer moves its address.

October 2026

Stricter type and borrow checks; two new diagnostic codes

  • Types

    A value lent at an exclusive borrow position now keeps its type arguments exactly: a Box<Cat> can no longer be lent as borrow Box<any Animal>, which let a Dog be written in and crashed drx run. The refusal is AX1001 where the borrow is taken.

  • Types

    A bound now meets a requirement only when the capability arguments agree: where T: Conv<Int> no longer satisfies T: Conv<Bool> (AX0421). Coherence is judged per instance: Box: Conv<Int> and Box: Conv<Float> from two modules no longer clash, while two origins of one instance are AX0422.

  • Types

    Two kinds of silently accepted code are now errors. Explicit type arguments at a call are checked: id<Int>(x = true) is AX1001, too many arguments the new AX0429. A string pattern with an interpolation, which could never match, is the new AX0606.

  • Ownership

    The ownership checker now follows real control flow (return, break, continue, elif, let ... else), so correct code it refused with AX0301 or AX0302 passes. It also keeps the borrows a view or closure carries through copies and constructors; copying a view holding an exclusive borrow is AX0321.

  • Formatter

    Two things drx fmt drops no longer change a program's meaning. A redundant parenthesis no longer affects the checkers or run-time behaviour (parse(s)? could trap where (parse(s))? passed), and a transfer before a fresh temporary is typed, hashed and ownership-checked as the temporary itself.

  • Syntax

    In a type, transfer is now accepted only in a function type's parameter list, as the grammar says; elsewhere it is AX0260. share remote and observe remote are refused in every position, let annotations and parameter qualifiers included (AX0308).

  • Standard library

    Map, Set, OrdMap and OrdSet now find, insert and remove keys through the key type's own eq or compare, in both the interpreter and native code. A key type with its own equality could hold two equal keys and miss a key just stored.

  • Diagnostics

    Three layout and lexical errors now give one diagnostic instead of a cascade: a body at the continuation column is only AX0114, a stray character only the lexer's error, and nesting too deep one AX0270. AX0266 now reads “expected the def body as an indented block”.

Ten new diagnostic codes; formatter, ownership, layout and daemon fixes

  • Formatter

    drx fmt now keeps the parentheses that change what a call means, as in (f)(y, x) or v |> (adder(n = 1)). Dropping them changed what the program computed. It also keeps the parentheses an inline if, match or lambda needs, where it used to refuse the file.

  • Ownership

    let inner = frame.inner over a copy-class struct, tuple or enum now binds a read-only borrow, so a write through inner is AX0304. Borrowing a moved value is AX0312, a borrow T call result passed bare as owned is AX0321 unless T is copy-class, and a record update may now read its base's fields.

  • Types

    The refinement checker now instantiates a predicate by its syntax tree, not its text, closing several false proofs. A capability bound is now met only by a conformance from a module the caller reaches through use, and an alias or default that expands into itself is AX0427.

  • Syntax

    A capability operation is now a signature only: a body or when arms on one is AX0292, as capabilities have no default operations. A def parameter without a type is now AX0264, and an unknown or misplaced annotation, such as @pined for @pinned, is AX0295.

  • Syntax

    After a block opened in an inline form (if c: while k < 3:), the next line now stays outside the if. A line at a when arm's or a lambda body's continuation column is now AX0274 or AX0293, not split off; a when arm's body placed at or left of its arm is AX0294.

  • Syntax

    -> : now also opens a block body on a match or select arm, and on a lambda that is the whole value of a let, assignment or return. g<N + 1>(1) now parses as a generic call, not two comparisons, and a second where clause adds its bounds instead of silently replacing the first.

  • Interpreter

    when A == B -> arms now parse, and the interpreter and native code test equality and const when arms instead of treating them as otherwise. Property tests now draw Bool inputs from Bool's own generator; they were getting Duration values from std.time.

  • Agent daemon

    The agent daemon now loads path dependencies, so its diagnostics and write verdicts match drx check; reads reach a dependency's exported definitions, and writes into one are refused as dependency-read-only. A put-def fragment indented with non-ASCII whitespace is now refused instead of crashing the daemon.

Descriptive names across the spec and the standard library

  • Standard library

    The standard library's parameter labels are now descriptive: 323 were renamed, such as trim(text =), fold(items =, initial =, combine =) and checked_div(dividend =, divisor =), along with some fields, such as System.arguments and Duration.nanoseconds. Calls that need labels use the new names.

  • Spec

    The spec's code examples, laws, signatures and prose now use descriptive snake_case names instead of single letters and cryptic abbreviations. Law variables take role names such as left, middle and right; geometric x/y and re/im stay.

The language takes the name Draconyx; the command is drx

  • Toolchain

    The language takes the name Draconyx, and the command becomes drx (drx check, drx fmt, drx serve, drx explain AXnnnn). Manifests are draconyx.toml, lockfiles draconyx.lock, and environment variables DRACONYX_*. Source files keep .ax and diagnostics keep their AXnnnn codes.

The formatter now checks that it can read back what it writes

  • Formatter

    drx fmt re-parses everything it writes and returns it only if it reads back as the same tree. If it does not, nothing is written and drx fmt exits 1, and put-def answers with the new error kind formatter-defect. The spec now states this rule.

  • Formatter

    drx fmt keeps more of the parentheses and labels that carry meaning: for x in (borrow xs): and (p).x keep their parentheses, and the labels in h ! transfer Moved(y = y, x = x) stay, where dropping them swapped the fields. 0 .. .n is no longer written as the unparsable 0...n.

Formatter keeps literals intact; doc comments found by tokens

  • Formatter

    drx fmt no longer changes what a string says. An interpolated expression that starts with {, such as a map literal, is written { {"k": 1} } instead of fusing into the escaped brace {{, and a multi-line string's continuation lines are no longer re-indented.

  • Agent daemon

    A line inside a multi-line string that begins with // is no longer taken for a doc comment. The compiler, drx fmt and the agent daemon find comments from the lexer's tokens, so get-def serves the whole string and editing the next definition no longer cuts into it.

  • Diagnostics

    In recovery from a malformed generic list, a bare < opens a bracket only after a type name or where an argument begins, so x < 8 no longer swallows the parameters after it. A malformed generic parameter default is now one diagnostic, and later definitions are kept.

Actor handler hashes, conformance instances in impact reports, parser recovery

  • Toolchain

    An actor handler's content hash now covers its body and the definitions it calls. Before, every handler hashed as empty input, so an edit to a handler's body changed no hash.

  • Agent daemon

    Impact reports now tell conformances apart by their capability arguments. If Box goes from Conv<Int> to Conv<Float>, the report shows one conformance revoked and one created; before, it reported nothing. Slices also list each instance under conforms_instances and asserts_instances.

  • Formatter

    drx fmt now prints a cost tier after the whole extent: Box<4..=32 @ Node>, and N + 1 @ Node without parentheses. Before, it wrote the unparsable Box<(4..=32) @ Node>, and every definition after it was lost on the next parse.

  • Diagnostics

    A malformed generic argument, such as Box<(4..=N)>, is now one diagnostic. The parser picks up again at the list's closing >, so the items and definitions after it are no longer lost.

Ownership checker port to Draconyx complete; positional patterns list every field

  • Self-hosting

    The ownership checker port to Draconyx is complete: it matches the reference ownership checker on every move, loan, liveness decision and diagnostic, on all 1,004 test packages, interpreted and compiled with drx build. It is the fifth compiler stage written in Draconyx.

  • Types

    A positional constructor pattern must list every field, using _ for any field it ignores. Too few sub-patterns, or a bare constructor name whose constructor has a payload, is now AX1003; before, the missing fields were silently read as _. A labelled pattern may still leave fields out.

  • Types

    A named type now keeps its ; segments, so Grid<1;2> and Grid<1, 2> give a definition different content hashes; before, the checker flattened them into one. No typing rule reads the segments, so the checker still accepts Grid<1, 2> where Grid<1;2> is expected.

  • Interpreter

    A when T: Conv<Int> dispatch arm now asks its question with the capability's arguments. Before, the first answer for a type and a capability was reused whatever the arguments, so call order could pick the wrong arm, in the interpreter and in native code.

  • Toolchain

    Changing the spacing of a refinement predicate or a const argument (n>0 against n > 0, N+1 against N + 1) no longer changes a definition's content hash. The checker now spells these from the parsed tree, not from the source text.

Content hashes cover meaning; new AX0278 for const expressions

  • Toolchain

    A definition's content hash now covers a when arm by its condition and body, so most reformatting of the arm no longer moves it. It also covers what it used to drop: where-bound capability arguments, explicit type arguments, types written as values, brace-literal contents and comptime code.

  • Agent daemon

    Writing back the canonical text that get-def served no longer shows up in put-def's impact report as signature-changed. The report now compares canonical spellings and the typed signature, so only a real change counts.

  • Formatter

    drx fmt keeps the parentheses in (secret Int) -> Int. It used to drop them, so the result read as secret (Int -> Int). A when arm body with no one-line form is now written as a -> : block.

  • Syntax

    In a capability, a dispatch arm names one definition (when borrow -> name). An otherwise, a constraint or any other body there is now refused with AX0267; before, such an arm passed the check.

  • Syntax

    A stray closing bracket after a dispatch arm no longer hangs drx check and drx fmt. An arm body continued on a deeper line no longer ends the definition early, which made the next arm an error.

  • Diagnostics

    Both sides of a where const proposition are now read as const expressions, so where 2 <= N and where (N + 1) >= 2 are checked instead of crashing the compiler. An operator a const expression does not admit (%, bitwise operators, shifts, a call, a literal-zero divisor) is the new AX0278.

Named arguments enforced; the ownership checker port begins

  • Syntax

    Named arguments are now enforced: at a call of two or more arguments to a function, an operation, an extern or a constructor with named fields, an unlabelled argument is AX0256 unless it is a name equal to the label, bare or module-qualified, as in feed(animal, amount = 3).

  • Formatter

    drx fmt drops a label its argument repeats: animal = animal becomes animal, and cx = borrow cx becomes borrow cx. The content hash does not move. On the self-hosted packages it removed 14,388 labels.

  • Types

    In a single-argument call, a name now selects the overload that declares it as a label; g(b) over g(b: Int) and g(c: Int) used to be an ambiguity error. A label written at a call through a function value is AX0257; such calls bind by position.

  • Self-hosting

    The ownership checker is now being ported to Draconyx. Its first three milestones, covering its inputs, the type model and liveness, agree with the reference ownership checker on all 928 test packages; the port is 1,725 lines of code so far.

  • Syntax

    A when dispatch arm's body may now be any single statement, such as -> return show(x), or a colon-opened block. drx fmt now prints a block body as head -> : with the block beneath; it used to drop the colon, leaving code that no longer parsed.

September 2026

Glob imports, or-patterns, look-only pipelines and filled bracket lists

  • Syntax

    use m.* imports a module's surface bare, ranked below locals, declarations and explicit imports and above the prelude. Two globs bringing different items of one name are AX0253 only where the name is used; globbing a non-module is AX0254. There is no grouped use m.{a, b} form.

  • Syntax

    Or-patterns p1 | p2 work wherever a pattern does, defined by expansion, so evaluation order, guards, exhaustiveness and redundancy follow. Alternatives must bind the same names (AX0255) with the same types (AX0605). The checkers, the formatter, the interpreter and native code support them.

  • Standard library

    Every Iterator is now Iterable, existentials included, so look-only pipelines such as sensors |> iter_ref |> fold(...) check and run, and the list stays usable afterwards. position, contains on a List and join are added.

  • Formatter

    drx fmt now fills a bracketed list that does not fit in 80 columns: items run left to right and wrap at the alignment column, instead of one item per line. Formatting already formatted code changes nothing.

  • Self-hosting

    The Draconyx lexer, parser, resolver and type checker adopted the filled layout and glob imports: their code shrank from 51,598 to 37,166 lines, blank lines and comments not counted, with every name resolving to the same item before and after.

Type checker fixes: patterns, dispatch, services, variance and content hashes

  • Types

    Literal patterns are compared by value, so 0x10 after 16 is a redundant arm (AX0602). Exhaustiveness checking has no depth cap: a match on a very wide tuple now reports exactly the missing case instead of calling every arm redundant.

  • Types

    A refutable pattern where an irrefutable one is required, in a let without else, a for binder, a parameter or a lambda head, is now error AX0601. The help suggests let ... else at a let and a match elsewhere. It used to be accepted silently.

  • Types

    A when arm that can never be selected is now error AX0604: one after otherwise, or after an arm that matches every type it matches and requires nothing it does not already guarantee, together with the declared bound. The spec now defines when one arm implies another.

  • Services

    A function value's service requirements now travel with its type. Calling a closure returned from a function, or taken from a list or an Option, charges its services, as does a call through a capability bound, so a missing provider is reported as AX0501.

  • Agent daemon

    When two functions share a name and labels but differ in the type of their first parameter, each now has its own address, such as m.ping@Loud, which the agent daemon accepts, so one member's service requirements no longer overwrite the other's.

  • Types

    Variance is computed to a fixpoint with no pass cap, so it no longer depends on declaration order, and a parameter nested 26 levels deep, past the old limit of 24, is now seen. A borrow T field is invariant in T; share and observe fields are covariant.

  • Types

    Definite assignment no longer reports AX1019 at a read that cannot be reached, such as code after a loop with no break.

  • Toolchain

    The content hash now covers a let ... else block, default argument values, const constraints and a parameter pattern's constructor. The spec names two hashes, a definition's own and its closure over everything it calls, and both type checkers compute both.

The type checker written in Draconyx; partial moves; edits with consequences

  • Self-hosting

    The type checker is now also written in Draconyx. It agrees with the reference type checker on all 751 test packages, including all 5,228 definition hashes, and on the Draconyx lexer, parser, resolver and its own source.

  • Ownership

    Projecting a field out of a temporary is a read; where an owned copy of a non-copy field is needed it is AX0321, repaired with clone. Moving a field out with transfer x.f is a partial move, refused as the new AX0313 when the type of x declares a destructor.

  • Ownership

    observe handles are now weak in the interpreter and native code: upgrade returns None once the last share handle is gone. That makes the spec's way out of the reference-cycle leak work, since an unreachable share cycle is not reclaimed in this edition.

  • Diagnostics

    Suggested edits on the JSON channel now carry also, further spans applied all or nothing, and consequence, what the edit makes true. AX0312 uses both: when the callee is in the workspace it offers one edit at the call and the parameter, plus a clone repair.

  • Agent daemon

    drx outline and the agent daemon's outline now print an evidence line: the trust blocks a definition contains, the foreign libraries it calls directly with their modes, or unimplemented for a todo() body. The line is omitted when empty.

  • Formatter

    drx fmt now also drops a redundant transfer before an operator result, as it already did before call results and literals: f(transfer (a + b)) becomes f(a + b).

  • Standard library

    The spec's dropout now takes a Key, as dropout(key, x, rate), so its mask is drawn from an explicit key like every other random draw.

Destructors run, let ... else arrives, drx explain covers every code

  • Spec

    After an outside review, the spec names the five layers of a definition: address, contract, reach, evidence and body. It also specifies, though none is built yet, drx audit tcb, which lists everything a build's guarantees rest on, and the agent daemon queries what-rests-on and same-computation.

  • Toolchain

    drx explain AXnnnn is new and answers for every code the toolchain can emit, 121 of them, and a test keeps it complete. drx run and built binaries exit 0 for Ok, 1 for Err, 2 for a trap and 3 for a failure to start, front-end errors included.

  • Native code

    A native binary now carries a serialised program image and no source, so it starts without running the front end. Calls through function values and lambda bodies are compiled, and compiled code enforces the interpreter's step limit.

  • Ownership

    Destructors now run, in the interpreter and in native code: at the end of the owning frame in reverse declaration order, on reassignment, and for a container's elements in index order. A temporary whose field is projected out is dropped, destructor included, at the end of its full expression.

  • Syntax

    let Some(text) = setting else: binds a refutable pattern; the else block must diverge and sees none of the pattern's names. The parser, the checkers, the formatter, the interpreter and native code support it. A match arm that fails part-way now binds nothing.

  • Safety

    secret now has the same barrier as tainted: a secret value in an unmarked position, such as an argument, field, return or collection element, is compile error AX1023. The repairs are marking the position secret or declassify with a stated rationale.

  • Types

    A conformance not decided within the fixed depth of 12 steps is error AX0425, never an acceptance; an asserts clause can no longer supply the conformance it presupposes (AX0423). A nested named-tuple projection like t.b.c, which used to trap at run time, now works.

  • Standard library

    New: push_into for appending to a map of lists, int_of_text for integers in radix 2 to 36, checked subtraction on Byte, and ordering on tuples of ordered values. An inclusive range ending at the largest Int now traps on overflow instead of silently skipping its last element.

Native executables with drx build; the resolver written in Draconyx

  • Native code

    drx build now produces a linked native executable. Across 82 test programs, including the Draconyx lexer, parser and resolver, it matches the interpreter byte for byte on output and exit code. Constructs it does not compile yet are named at build time, AX1101 to AX1104.

  • Self-hosting

    The resolver is now also written in Draconyx: 14,492 lines in nineteen modules, with no trust blocks. It agrees with the reference resolver on all 608 test packages, and resolves the Draconyx parser and its own source exactly as the reference does.

  • Standard library

    New OrdMap and OrdSet keep their keys in order. sort is now guaranteed stable, and the new sort_by and sort_by_key are stable too; checked laws state the stability of both and their agreement with sort.

  • Standard library

    The prelude gains ASCII character predicates, such as is_digit and is_alpha, for both Char and Byte. FileSystem.list now returns each entry's name and kind, and FileSystem gains exists and canonicalize, which returns a path relative to its authority's root and refuses one outside it.

  • Toolchain

    A package may not declare a top-level module named std (AX0252). A dependency can now import only its own modules, std and the packages its own manifest declares, never its dependencies' dependencies; any other root is AX0231.

  • Types

    A tensor type without axes, such as Tensor<F32>, now unifies with every axis-named tensor of its dtype, so the standard library's tensor functions accept shaped tensors but do not yet catch shape errors. Two shaped tensors unify only when axis names, order and sizes agree.

  • Laws

    The spec now states that laws, like witness examples, are hermetic: they are handed no System, so a law cannot read a file, open a socket or consult a clock, and its verdict cannot depend on the world.

  • Ownership

    The spec now says a parameter's ownership mode, the unmarked read-only borrow included, is part of the published signature, and that shared mutable state such as an interner is threaded as a borrow parameter rather than kept in a field.

Taint barrier enforced, faster checking, module cycles allowed, path dependencies

  • Safety

    The type checker now enforces the taint barrier: a tainted T where an unmarked T is expected (argument, field, return, annotated let, provide, collection element) is AX1022, and the error names both repairs. Network.read now returns tainted Bytes.

  • Laws

    A law's free variables must have types the checker can infer, or the law is AX0712 at check time instead of failing mid-test. Variables can be annotated: law name(a: Int) checked:.

  • Toolchain

    Modules in one package may use each other in a cycle; a cycle across packages is AX0211. A path dependency is a separate package with its own manifest and namespace, imported as use dep.module.item.

  • Ownership

    The spec now states that a temporary needs no verb in a consuming position: f(make_engine()); a written transfer stays legal and drx fmt removes it. Inside <...>, borrow T, share T and observe T are types that survive instantiation; transfer there is AX0260.

  • Ownership

    A match binding now borrows read-only unless its arm writes through it, so reading the matched value's siblings inside the arm no longer raises a false conflict.

  • Syntax

    A let without an initialiser must be exactly let x: T: leaving out the type, or destructuring, is refused at the declaration, and reads are checked by definite assignment. The spec now states there is no Enum.Variant form: clashing constructor families go in separate modules.

  • Syntax

    Seven short malformed inputs that sent the parser into an endless loop now end with a diagnostic, and the spec requires the parser to always terminate. The nesting limit of 96 is normative (AX0270), and (x,) is now AX0273.

  • Toolchain

    drx check on the self-hosted parser package fell from more than nine minutes to under three seconds. Whether a type is a view is now computed once per program instead of re-derived at every call site; the language is unchanged.

Char literals, views, integer overflow, named tuples; the parser in Draconyx

  • Ownership

    A for operand is spelled like an argument: unmarked borrows each element, transfer consumes. A borrow argument no longer blocks later arguments from reading the same value. Newly refused: moving a value a provide still serves, and binding or returning a view of a temporary (AX0310).

  • Syntax

    'x' is a Char literal; '' is AX0110, and '\'' is the apostrophe. New lexical errors: a stray carriage return (AX0111), a letter glued to a number such as 1u8 (AX0112), a bracket still open at end of file (AX0113), a block at a continuation column (AX0114).

  • Types

    The spec now pins down Int arithmetic, which the interpreter already followed: +, - and * panic on overflow, with wrapping_* and checked_* alternatives; / and % truncate toward zero; a == (a / b) * b + a % b is a checked law.

  • Types

    Named tuples work end to end: (mean = m, sd = s) literals, by-name patterns in any order, and .mean access; mixing named and positional components is AX0273. Tuples of Arbitrary types are Arbitrary, so a law can range over pairs.

  • Standard library

    The library gains read-only borrowed views over a new Sequence capability: View<S>, BytesView and Str. Also new: sum, byte and character conversions, push_byte and Console.write. A qualified std name the library does not declare is now an error at check time.

  • Interpreter

    drx run passes the arguments after -- to main as System.args and reaches real files through FileSystem, which drx test and drx verify refuse. Console input and arguments are now typed tainted String, not yet enforced by the checker. A tail call across a provide runs in constant stack.

  • Formatter

    The canonical form now has a normative width of 80 columns. An and/or chain that does not fit breaks before every operator, and over-long if, while, match and for heads now wrap as well.

  • Self-hosting

    The parser is now also written in Draconyx: 9,765 lines, using the Draconyx lexer as a dependency. It builds the same tree as the reference parser, node for node, on all 1,018 test inputs and on its own source.

Spec split into 31 sections; the first compiler; the lexer in Draconyx

  • Spec

    The specification is split into 31 sections and grows from 302 to 432 pages. New: GPU kernels, with std.kernel and a FlashAttention example; std.ai, where model access is a permission derived from Network; pass-rate laws; witness example clauses; and editions, which freeze grammar, keywords and diagnostic codes together.

  • Safety

    The spec now specifies tainted: model completions, console input and network reads are born tainted at their library signatures, a tainted value may not fill a prompt's instruction slot, and endorse with a written rationale is the only way out.

  • Ownership

    Function types spell ownership as a def does: (T) -> U borrows read-only, (transfer T) -> U consumes and (borrow T) -> U borrows exclusively. The spec also says operators consume heap-backed operands, as their capability operations do, so clone a + b keeps a.

  • Toolchain

    The first compiler lands, written in Rust: lexer, parser, resolver, type and ownership checkers, interpreter, canonical formatter, and a standard library generated from the spec. Diagnostics carry AX codes and spans, as text or JSON. Its commands include check, fmt, outline, get-def, test, verify and run.

  • Services

    The type checker works out which services each function reaches through its callees: one that no enclosing provide supplies is AX0501, naming the call chain, and drx outline prints each definition's uses and needs. A missing match case is AX0601; a redundant arm, AX0602.

  • Agent daemon

    drx serve starts the agent daemon: JSON-RPC 2.0, one request per line, with 20 methods, among them outline, get-def, slice, search, put-def, fork, what-breaks-if, delta-card and resume-card. drx rpc makes a single call.

  • Testing

    drx test runs every obligation a package owes: checked laws as property tests from a fixed seed, with failures shrunk and replayed first next time, conditional and statistical laws, witness examples and _test modules. A todo() body gets UNIMPLEMENTED, not a failure.

  • Self-hosting

    Self-hosting begins: the lexer is rewritten in Draconyx, 2,148 lines with no trust blocks, running on the interpreter. It produces the same tokens as the reference lexer in Rust, byte for byte, on all 678 test inputs, its own source included.

July 2026

The Iteration Budget section; spec examples brought in line with the grammar

  • Spec

    The spec gains a section, The Iteration Budget, that charges each check to one of three loops: edit (type, ownership and safety checks), test (laws) or ship (SMT proofs, optimisation). An answer not yet recomputed is reported as pending, never served stale.

  • Spec

    The spec's illustrative fragments now obey its own grammar: match arms and tooling-directive strings were respelled, and syntax-parameterize gained the production its comment promised, making 102 contextual keywords.

  • Ownership

    The spec's mirror rule now covers an assignment's right-hand side as well as a let's: a bare place there binds a read-only borrow, so handing an owned value on is spelled transfer.

First commit: a 280-page specification; field defaults and keyword classes

  • Spec

    First commit: a 280-page specification, a draft chapter on the agent interface, and two example packages: an online shop and the event-sourcing language extension it is written in.

  • Ownership

    Ownership is spelled with the same verb at the call and in the signature: transfer, borrow, share or observe. An unmarked parameter is a read-only borrow; returns, fields and locals are owned.

  • Syntax

    Modules are the only namespace: there are no methods, and the dot never calls anything. There is no pub: functions are visible across their package, export lines declare what other packages may call, and functions overload by name plus label set.

  • Types

    The spec now gives struct fields defaults, evaluated afresh at each construction that omits them, so seen: List<Int> = empty() gives every value its own list. A default may not read a sibling field; adding a defaulted field is a minor version bump.

  • Safety

    The spec now lets a module's _test companion construct its strict types, in test builds only. Deserialising, Arbitrary and other generated construction of a strict struct must be written in its module, through its validating constructor. A permission holding another permission is a compile error.

  • Types

    Purity is inferred, not declared: a refinement predicate may call only functions the compiler infers pure, by the same judgement comptime bodies use, and trust pure vouches for the deterministic intrinsics at the bottom of the library.

  • Syntax

    Every keyword is now classified: 32 reserved words that can never be identifiers, and 101 contextual keywords that are keywords only where the grammar quotes them. A new appendix lists each keyword with a one-line account of what it does.

  • Laws

    Laws are implicitly quantified over their free variables, with no quantifier syntax, and a law may now stand alone at module level as well as inside a capability or extend block.

Stay tuned

The dragon is hatching. Be first to know when Draconyx launches, and hear about every new feature the moment it lands. Updates only, straight from the source. One click to leave.

We send a confirmation link first. Nothing arrives until you click it.

Get in early

Want in early? For design discussion, collaboration, or to train or evaluate models on Draconyx, email us.