Should a sale save itself, or should a repository or a database save it? A class-based language makes every function answer a second question on top of which module it goes in: which object owns it. C++, Java and even Rust, through its impl blocks, ask it. Draconyx keeps structure in types and behaviour in free functions whose calls name every argument, so no argument is the owner and the question does not come up.
Errors are data. Not prose.
Every checker emits one Diagnostic value: a stable AXnnnn code, byte-precise spans, an explanation, and suggested edits. Each edit carries an applicability (always or maybe), can carry also spans that apply all-or-nothing across files, and, where the checker knows it, a consequence: the fact about the program that the edit makes true.
When a name, a label or a field doesn't resolve, the spec's “hallucination contract” requires ranked candidates to come back as maybe edits. A model repairs from data instead of parsing prose. drx explain answers for every code the toolchain can emit, and a test enforces it.
Ships today: the JSON channel, the ownership checker's two-file edits with consequences, ranked candidates (by fit at the use site, then edit distance, then import cost) for unknown names, labels and fields, explain for all 262 catalogued codes.
Elsewhere: rustc's JSON has applicability but no per-edit consequence, and many diagnostics have no code. CPython's “Did you mean” is prose. Go's compiler errors carry neither codes nor edits; fixes come from gopls.
Spec references
25-tooling:8-45, 25-tooling:84-123, 25-tooling:188-210, 26-agent-interface:620-645
$ drx check pkg --json
{"code": "AX0234", "severity": "error",
"message": "unresolved name `add_amount`",
"primary_span": {"file": "src/money.ax", "start": [9,5], "end": [9,15],
"bytes": [192,202]},
"secondary_spans": [],
"explanation": "a name resolves lexically: enclosing bindings, ...",
"suggested_edits": [{"span": {..., "bytes": [192,202]},
"replacement": "add_amounts", "applicability": "maybe",
"description": "replace `add_amount` with `add_amounts`",
"consequence": "`add_amounts` names the def `pkg.money.add_amounts`"}],
"help": ["did you mean `add_amounts`?"]}