What “however soon” means in a program written in English
On this page
By Jonathan Amit, creator of Cernanto ·
Imagine you’re on the billing team. You answer a support ticket and get on with your day. Two days later the support desk reminds you to answer it. You open the ticket. There’s your reply, right under the question.
Someone on the billing team has already replied. The support desk is about to send a reminder. In Cernanto, the language I created, the words “however soon” in the English source settle what the desk should do.
a response on the ticket counts
whether it was already there when the ticket was read or was recorded
any time after, however soon. The compiler runs Claude Code or Codex to write the TypeScript. Here’s what it made of “however soon.” After the wait returns without an answer, the desk reads the ticket once more before sending the reminder.
const last = await getTicketticket.id
if last !== null && last.responses.length > 0 return base outcome 'response'
await sayteam.channel `Reminder: ticket ticket.id (category) has had no response yet. Subject: ticket.subject`
return base outcome 'reminder' The kept test starts a follow-up, records a response immediately, and checks the messages naming that ticket. The team should see its original notice once and get no reminder. The test writer got the source and the contract in a fresh session. Read the complete released specification and its test cases
The billing test still has a job when the wait changes
A library could give me a function that waits for an answer. I’d still have to maintain the code that decides whether the team gets a reminder. Say the reminder changes from two days to three. Your coding assistant edits the wait and also changes how it recognizes a billing ticket. Its tests pass. The next billing ticket goes to the wrong team. A test worth keeping through that edit is the one that gives the desk a billing ticket and checks who hears about it. It still has a job after the wait changes.
If you keep a CLAUDE.md, or do spec-driven development with Spec Kit or Kiro, you already have a file that survives the chat. I wanted mine to remain the source on every build, with a compiler behind it. When the TypeScript gets a sentence wrong, I read the code to understand the mistake. I clarify the sentence and compile again.
In a literate program I’d write the implementation among the paragraphs for a tool to extract. The TypeScript for this desk is written later. I see a closer relative in model-driven development, where an author can maintain a description and generate an implementation from it. Choosing English for that description leaves me with a particular problem. I have to check how the coding assistant read it this time.
The formal parts are the declarations, the typed contract derived from the code and the executable tests. Uses: gives the session writing the desk the contract for the ticket system without exposing its implementation. Implements: lets a provider declare the interface it fulfills. The compiler checks types, allowed imports and interface coverage. It also runs a determinism scan over the generated code, and the rules of that scan are in the file linked here. The compiler’s checks
A second session writes tests from the source and contract without seeing that code. I can give it cases under ## Tests. The tests run against the deployed desk and its real dependencies unless I name a dependency to mock. If a test fails, a session that can only read judges where the fault is. A repair is told not to loosen a test, and I still read the tests after one. Workers in 0.9 still have no generated test suite.
A case that matters gets a sentence of its own in the source. In the middle of a long paragraph it’s easy for the test writer to miss. Two sessions can share a misreading. A passing suite gives me evidence about a build. It is not a proof of equivalence to English prose.
Changing a desk that was already running
I also added one clause asking the desk to name the order mentioned in a ticket. The compiler amended the existing TypeScript. Four live tests passed in 2 minutes 47 seconds. The walkthrough records both the edit and its later removal. The change and the deploy log
A replacement process reuses the original classification
The program owns the procedure. The model answers particular questions within it. The desk calls cernanto/decision for a category. A procedure that needs a model to write text can call cernanto/llm.
I killed the desk while it was waiting on a ticket. The replacement process got the original classification from the journal my self-hosted runtime keeps. The trace shows one model call. A fresh judgment can vary; recovery reuses a recorded judgment. In #engineering the first post appears once, followed by one reminder. The recorded run
An outside API can receive a write twice if the process dies after the API accepts it and before the runtime records the result. Where a duplicate matters, the receiving API has to honor an idempotency key. A raw fetch runs again on replay. A job keeps no journal and starts over.
Written in its own language
I use the language for the platform itself. The compiler, its parser and the platform’s controller and gateway are agents too, each written in English under cernanto/, with its compiled package beside its source. The compiler compiles its own next version, through the same checks and the same live tests. I wrote the runtime and the command-line client by hand. The compiler’s source
The desk’s package contains its source, TypeScript, tests and typed contract. You own the TypeScript and can take the tests with you. To run the code elsewhere, you’ll have to replace the calls its generated modules make to agents and APIs. The journal and replay belong to the runtime.
Cernanto is free for your own agents, in production and at any scale, on your laptop, your servers or your own cloud account. One use takes a commercial licence: a paid product that offers customers an agent or workflow platform built on it. The licence has the terms. Repository
The test I’d keep through the next edit is the quickest one to set up. Answer while the desk is starting its wait. Then open the billing team’s channel and count how many times someone who already replied got asked to answer.