lume

19 — AI-native north star: intent as source, the compiler as an oracle

Lume was created so an AI can author correct software faster, easier, and more cheaply. The phased roadmap (ownership, effects, concurrency, verification) makes Lume an excellent language; this note records the north star beyond that — the five moves that make Lume not “one more language an AI uses” but the first language where the AI programs at the level of intent and the machine guarantees correctness. Each is tied to a concrete foothold already in the plan, so this is a direction, not a wish list.

1. (Flagship — Shipped ✅, Issue #259) Intent is the source; code is a proven cache

You author the spec — examples + properties + contracts + types + effects — and the implementation is synthesised and maintained by the machine and proven to satisfy the spec. Change the requirement and the code regenerates, correct by construction. The author works on what; the compiler guarantees the how. It is “vibe coding” with a proof instead of a hope.

2. The compiler answers questions (an oracle with witnesses)

Beyond diagnostics, a model can ask and get a structured (JSON) answer:

The compiler does the formal heavy lifting; the AI does the creative part. Programming becomes a dialogue. Foothold: lcaas + lume agent (E1b) is the query surface; extend it from “check/compile/fill” to “witness/repair/impact”.

3. Semantic edits only — the AST patch is the unit of change

A model never edits text; every change is a typed AST transform the compiler validates. Two consequences: syntax errors become impossible, and merges are semantic (meaning-level, not text-level, so there are no spurious conflicts). Foothold: lume agent already transforms source trees “never raw text edits” (P-evolve); elevate AST-patches to the canonical, only edit channel, and make lume fmt + content-addressing give every edit a stable semantic identity.

4. Deterministic time-travel by default

Every run is reproducible with built-in record-replay, so a failure is a replayable, bisectable artifact, not a guess. The AI debugs by querying history (“which call first made this value negative?”) rather than re-running blind. Foothold: Phase 3 Track S already targets deterministic logical-time replay for concurrency; generalise it to all effects (tie to P14 effects + the prob/io boundaries) so any execution can be recorded and replayed.

5. Provenance of everything

Any value can answer “why am I this?” — a first-class query over its derivation (which inputs, which decisions, which AI/prob source). For an AI maintaining a system, explainability is built in, not bolted on. Foothold: this is A3 (provenance/uncertainty in the type) generalised from “AI-origin” to full data/decision lineage, composed with the effect and contract systems.

The bet

If Lume has #1 (intent as proven source) + #2 (the compiler as an oracle) + A3 (provenance), it is the first language where the AI operates at the level of intent and the machine guarantees the code matches — correctness by construction instead of by testing. That is the leap no existing language offers, and it is the reason Lume is worth building AI-first from the ground up rather than retrofitting AI onto a human-first language.

Status: All five Intent-as-Source pillars (§1–§5) are shipped and tested in CI (#178, #195, #198). What is implemented lives in compiler/stage1/lume/06b_phase3.src, compiler/stage1/lcaas.src, compiler/stage1/levolve.src, compiler/stage1/intent_oracle_ok.src, and evolve/proposals/0002_intent_oracle/proposal.bundle: