Intent becomes source: the next generation of programming languages

On this page

Programming languages advance by changing what programmers must maintain. Symbolic instructions let an assembler calculate addresses. Higher-level languages let compilers choose machine instructions. Managed runtimes took responsibility for memory.

Models now write code from prose. When a model translates a procedure from English into code, which form does the programmer edit the next time a requirement changes? Turning that translation into a programming language requires intent that survives the conversation, generated code that faces explicit checks, and a runtime with consistent execution rules.

Cernanto makes intent the maintained source of a program. A source states a procedure in English, structured by a program type, declared dependencies, and interfaces. A model translates it into TypeScript, a compiler verifies the result against deterministic checks and independent tests, and a durable runtime executes it. The author keeps the specification and can recompile it as models improve.

What makes a new rung

The history of programming languages branches, but a recurring pattern runs through it: a responsibility moves from the programmer into the language, translator, or runtime.

Transition Responsibility delegated
Machine code to assembly Encoding instructions and resolving symbolic addresses
Assembly to languages such as FORTRAN and C Translating higher-level operations into machine instructions
Whole-program reasoning to modules and interfaces Managing implementation boundaries and separate compilation
Manual memory management to managed runtimes Reclaiming memory through garbage collection
Languages such as Python and TypeScript Expressing work with less ceremony; checking more assumptions before JavaScript runs
Code written by hand to a maintained source in English Writing the implementation, and recovering a procedure after a failure

Two conditions make such a delegation hold. The source of truth stays above the translation: when behavior changes, the programmer edits the source, and the translator produces the implementation again. The translation earns enough trust that programmers can usually work at that higher level. Compilers have bugs, but their language rules and accumulated validation make that delegation practical.

A higher level still leaves the author to decide what the program should do. If a reply arrives just as a reminder falls due, the author decides whether the reminder goes out, and a test against a live service cannot supply that rule if the author leaves it out. Earlier specification languages and automatic programming tools met the same demand: precision has to come from somewhere. Writing a specification precise enough to resolve conflicting requirements is programming.

The next rung therefore needs more than a model that writes code.

AI opened the way, but left two gaps

Vibe coding makes conversation an effective way to create software: an author describes a result, sees an implementation, and refines it. The first gap opens after that. The decisions behind the code end up scattered across chat histories and partially maintained documents, so the next change starts from the implementation and has someone reconstruct the intent. When the specification is discarded, the situation resembles editing emitted assembly after losing the higher-level source.

A better model inherits that gap: it can improve the existing code, and the original intent is not there to recompile. Keeping specifications beside code helps; keeping them authoritative through every subsequent compile is the stronger commitment.

Large systems add to it. A coding model can overlook an existing module, duplicate a rule, or change code without understanding its dependencies. A larger context window helps it find what exists. A dependency boundary settles which modules a unit should know about in the first place.

Instruction-driven agents keep the English intent and leave the second gap. A model interprets their markdown on each run; Cernanto compiles the procedure once, before it runs, and .cern.md says so the way .ts says typed. When a model chooses the next action, tool selection, ordering, and interpretation vary unless the workflow constrains those choices, and repeating work after a failure can produce a different decision. Routine steps that run this way inherit the model’s availability, latency, and token costs.

Both approaches can add tests, constraints, and durable execution. Cernanto makes them the rule of a language and its platform: keep the source, compile the procedure, and call AI where the procedure needs a judgment.

The design document that compiles

A Cernanto source is a markdown file, <id>.cern.md. Its prose describes behavior; a Type: line states its kind; Uses: names dependencies; Implements: declares a shared interface the program fulfills. An optional ## Tests section tells the test writer what the prose cannot. This markdown compiles.

Here is a task from the examples, up to its tests:

Cernanto · examples/workflows/support-follow-up.cern.md
  1. # Support follow-up
  2.  
  3. Uses:
  4.  
  5. - examples/sandbox/crm
  6. - cernanto/decision
  7. - file:support-follow-up/teams.json
  8. - interfaces/chat
  9. - cernanto/config
  10.  
  11. Follow up on a new support ticket, given its id: tell the team that
  12. handles it, and remind that team once when nobody responds in time.
  13. Read the ticket and classify its message
  14. as billing, technical or account access. When the message does not say
  15. which, post it to the triage channel for a person to sort, and stop
  16. there. Otherwise record the category and the team on the ticket, tell
  17. the team assigned to that category on its channel, and wait for a
  18. person to respond on the ticket; a response on the ticket counts
  19. whether it was already there when the ticket was read or was recorded
  20. any time after, however soon. The teams by category and their channels
  21. are in the teams file. If nobody responds within the response
  22. window, send the team one reminder on the same channel.
  23. Answer the category, the team and its channel, and how it ended: a
  24. response, a reminder, or triage.
  25.  
  26. Tell the teams on the plane's chat provider, with the sandbox chat, `examples/sandbox/chat`, as the fallback when the plane binds none. The response window is the minutes
  27. given with the request, else the minutes the configuration names under
  28. `response-window-minutes`, else two days.

Full source

When the timing rule changes, the author edits the procedure and compiles again; the generated TypeScript stays inspectable for diagnosis. Here is what the compile made of “however soon”:

TypeScript · code/index.ts
const last = await getTicket(ticket.id);
if (last !== null && last.responses.length > 0) return { ...base, outcome: 'response' };

await say(team.channel, `Reminder: ticket ${ticket.id} (${category}) has had no response yet. Subject: ${ticket.subject}`);
return { ...base, outcome: 'reminder' };

Specifications outlive models. A later model has the same source to implement and the same contracts to meet. The test of continuity is whether implementations of that source from two different models pass the same retained tests. Improvement must be demonstrated, and the opportunity to recompile exists because the source was kept.

Knowledge accumulates in the specification, its contracts, and its retained tests. A .cern package carries them beside the implementation: the source, the TypeScript, the tests, the contract and npm’s lock, with the model that wrote the code and the moment its tests passed. Installing a package moves those same bytes with their identity intact.

The boundaries are part of the language

The prose body is flexible; the surrounding structure makes the design decisions explicit: what owns memory, what may be reused, which dependencies a unit compiles against, and which contracts implementations share.

Program types define how work lives

Type: When
task the default, with no line: each call its own world, scaling out and to zero
service it keeps its own state between calls, or a call waits for another
worker nobody calls it; it runs on its own time
job one live run, started over on a failure, nothing in it recorded
module it runs inside the agents that use it
interface a contract alone that other agents implement

Each support follow-up is an independent task, so waiting on one request does not block another. A service keeps memory: what it remembers survives crashes and restarts of the same version, and what must survive a new version belongs in an agent that owns storage.

Small units make large systems manageable

Uses: supplies the static dependency structure of a compile. One specification and the contracts of the dependencies it names form the model’s unit of separate compilation, with their implementations hidden: Parnas’s information hiding, enforced in the model’s compilation context. Import checks hold the generated code to what the source names, so reuse is an explicit architectural decision, and each unit is understood through the obligations of its neighbors.

System complexity remains, yet no coding session needs to reconstruct the entire codebase. Interface bindings also connect programs at run time, so the graph a compile reads is not the complete graph of calls.

Interfaces let implementations evolve separately

An interface states a common surface and its meaning. An implementor declares Implements:, and the compiler checks that its declarations cover the contract. Consumers compile against that contract, and the platform binds the implementor at run time.

The support follow-up tells its teams through a chat interface. The company’s own chat service and the Slack example both implement it, so switching providers changes the binding while the workflow keeps the same contract. A provider introduced a month later serves the existing workflow with no new coding session for it. A contract that stays compatible leaves the agents that use it as they are; one that breaks recompiles them.

The platform acts as a linker and loader: it composes separately compiled modules into processes and resolves calls to services across them. The author expresses a call; the platform supplies its placement, transport, and trace.

A referee checks the translation

The model proposes an implementation. The compiler applies deterministic gates for types, supported structure, imports, and interface coverage, and its workspace and trusted checks must account for untrusted model inputs, including dependency documentation. A separate session then writes the tests: it sees the specification and the contract, and never the implementation. The tests exercise the deployed program and its real dependencies, unless the source’s Tests section lists, under Mocks:, a dependency whose real action the tests must not cause; a mocked dependency is weaker evidence than a live one. A failure returns to the session at fault for a repair.

In this recorded compile of the DeepWiki example, a test asked the real server about a repository it has no wiki for, and the code had assumed there would be an answer to read:

A compile that caught a mistake and repaired it
05:40:05  connectors/deepwiki  verify       FAIL says the documentation does not answer when DeepWiki holds none for the repository: Cannot read properties of undefined (reading 'split')  16s
05:40:05  connectors/deepwiki  triage       who is at fault
05:40:27  connectors/deepwiki  triage       ok the code  22s
05:40:27  connectors/deepwiki  fix code     the live tests fail
05:40:37  connectors/deepwiki  fix code     fixed the live tests fail  10s
05:40:38  connectors/deepwiki  check code   ok entry, tsc, determinism, type-verify  1s
05:40:58  connectors/deepwiki  verify       ok 2 tests passed  16s

Retained tests give later compiles an established set of obligations. This borrows the idea behind translation validation: assess each translation instead of assuming the generator is correct. Here, the evidence is structural checks and tested behavior. It is not a proof of equivalence to English prose. Two sessions can share a misunderstanding. Workers currently have no generated test suite, and interfaces are exercised through their implementors.

Existing software remains usable

Dependencies also include npm packages, MCP tools, OpenAPI operations, and files containing prompts, templates, and data. The compiler creates typed MCP and OpenAPI bindings deterministically, with no model in that step. Cernanto therefore composes existing capabilities, and new procedures written in its own source form join them one at a time.

Predictable procedures with AI inside them

The program owns the procedure. The model answers particular questions within it. This inversion of control applies the Hollywood principle: the compiled procedure decides when to call the model.

In the support example, the model’s part ends with classification. Routing, waiting for a reply, and checking the reminder deadline all run as code, and an inconclusive classification has an explicit path to human triage.

A judgment is a callable capability with inputs and a typed result: a condition, category, number, date, or text answer. The supplied context is its evidence, and search or another dependency supplies current outside facts when the question needs them. The interface makes an inconclusive result something the procedure handles. It cannot guarantee that a model recognizes every uncertainty or answers correctly.

The judgment is also a recorded effect. A fresh judgment can vary; recovery reuses a recorded judgment. Once an execution has recorded a classification, a replay receives that classification instead of asking the model to reinterpret the ticket. The program acts consistently on a decision even when producing it requires a probabilistic model.

AI has three distinct roles: generating implementations, helping write independent tests, and answering bounded questions during execution. A program whose execution and dependencies require no AI operation runs without a model.

The runtime owns recovery from partial failure in the way a managed runtime owns memory reclamation: it takes recurring machinery out of each application. Beneath ordinary TypeScript it journals calls to other agents, OpenAPI and MCP operations, timers and judgments, and after a process restart it reconstructs progress and resumes a wait for next week. Traces expose calls, effects, judgments, and failures: the author’s evidence for diagnosing behavior and revising the source.

On replay the journal answers each effect it holds. A fetch written straight into an agent bypasses the journal and runs again. If a crash falls between a successful external write and the recording of its result, the retry can duplicate it; reusing a stable idempotency key lets a supporting API deduplicate the retry. Completing an outstanding call still depends on the availability of the service it calls.

Vibe coding survives, one level up

The author still opens a coding assistant and talks. The assistant drafts the procedure, proposes modules and dependencies, interprets a failed test, or reads a trace. What the conversation maintains is the source.

For the support workflow, the author says, “Account-access requests need a reminder after two hours, but the others can wait two days.” The assistant revises the prose, and a compile edits the existing TypeScript and the affected tests. The new timing rule stays in the source for the next change.

A compile edits the existing implementation when the specification changes; a recompile writes a fresh implementation from the source when the translator improves. A recompile is an explicit choice, made program by program and assessed against the contracts and the retained tests. A more capable model can still introduce a regression in behavior those tests leave uncovered.

A compile costs time and tokens, and a breaking contract change recompiles the agents that use it.

The next wave starts with business logic

The ingredients now fit together: models generate substantial implementations, typed ecosystems supply existing capabilities, automated checks assess results, and durable runtimes preserve execution. Cernanto makes their combination the normal programming model.

The compiler compiles its next version from its own specifications, through the same checks and the same live tests. Its parser, the platform’s controller and gateway, the trace reader and the agents that keep the packages, the settings and the sign-ins are specified in Cernanto too, each under cernanto/ with its compiled package beside its source. Parsing, planning a compile, verification, and deployment control exercise the language on the machinery that compiles and runs it. This self-hosting is evidence of expressiveness and sustained use: the authors depend on the programming model they offer others. The runtime, the package format and the command-line client remain handwritten parts of its foundation. Read the compiler’s own source.

The natural starting point is the business logic layer, programs that act: services, integrations, workflows, schedulers, and data movement. SQL’s focus on data and COBOL’s focus on business processing show how much a language accomplishes by serving a large domain well. Kernels, games, and numerics place different demands on control and validation; extending the approach means earning trust in each domain.

A language and a platform

Cernanto’s two ambitions reinforce each other. The language aims to be a common way to express and maintain agent applications; the platform, a common way to package, connect, deploy, observe, and recover them. Together they cover a program’s life from intent to operation.

Becoming the next Python or TypeScript means becoming a language people routinely choose for their work. Cernanto begins with business procedures: it moves the author’s working level up to maintained intent and uses TypeScript and its ecosystem for the implementation, so adoption grows one procedure at a time through existing libraries and integrations. Broader use takes an ecosystem of reusable components, useful tooling, and trust earned through maintenance.

Becoming the common platform for agents means establishing a shared operating model for agent applications. Cernanto’s platform is that model in one piece: one host program on each machine runs the agents as plain processes, a journal gives every agent durable execution, and the same package runs on a laptop and on your own servers. What is distinctive is the connection between what a program means and how it is compiled and operated.

A broadly useful platform also needs to connect agents made elsewhere. Interoperability has a boundary: connecting an external agent does not make its internal decisions predictable. Cernanto’s execution guarantees extend only to programs and effects that follow its runtime rules. The practical path is to make a useful class of applications easier to maintain and operate, then earn wider adoption through that experience.

Earning the next rung

Progress has to be measured through real programs and their evolution. The decisive evidence is a complete application lifecycle: an outside team writes something useful, makes substantial requirement changes, replaces a dependency, tries a recompile with another model, and recovers from failures. If the team can do that primarily through specifications, with less total effort and comparable or better reliability than a strong coding-assistant workflow, the higher level has earned its place.

The next wave pays off when each improvement in how implementations are generated benefits a body of software whose intent is still intact. That is Cernanto’s proposition: the source outlives the model, the architecture outlives an implementation, and the procedure remains understandable to its author.

Keep the conversation. Keep the source. Let the machine compile what comes next.