What is proven and what is not
Pick another answerWhat Trestle actually guarantees
If “exactly once” on a slide has burned you before, you want specifics before trusting a library with real business processes. Here is what Trestle proves and where it stops.
- GuaranteeAcross all engines, an attempt at a step starts at most once.
- InvariantThat claim is named among over seventy written invariants.
- SimulatorThe simulator runs several engines over one database, crashes them, fails storage, and checks the invariant every turn.
- Replay scriptAny violation is saved as a script replaying that exact sequence.
- Merge gateEvery later change must pass that script.
What survives a crash
Trestle records each step before work starts, and writes land whole or not at all. Outcomes never change and read back identically, so a crash loses only work since the last save.
What “once” covers
Starting a process, receiving a message, and recording an answer happen once inside Trestle. External steps get the same
actKeyon every attempt, so outside work runs once when that system honours it.Deploys you can inspect
Before you ship new code, Trestle reports how every unfinished run will be handled and follows that plan.
How the engine is tested
Every promised behaviour sits beside its test in one catalogue, run across supported Node and Postgres versions plus Chromium, Firefox, and WebKit.
- Runs are killed before and after each save to check they match uninterrupted ones.
- Faults are planted in the engine to measure what the suite catches.
Your database and access
Trestle is MIT licensed and runs on your database with no vendor server. Nothing is reachable externally until you grant access; API keys stay hashed, and changes are logged.
Where the guarantees stop
- Code touching the network, clock, or randomness outside a step reruns on replay; tests fail on what Trestle detects.
- An outside system ignoring
actKeymay run work twice. - Conditions hidden from the diagram surface when a live run leaves it, and rules bar only declared steps and decisions.
- Known rough edges live in the repository alongside what would settle each.
Your visit is running on Trestle.
This is the real Trestle engine running a live process in your browser tab, not a simulation. Each of the eight topic pages you open answers its question once, showing the path you have taken and the pages you have not opened yet—until you copy npm create @trestlerun to finish it.
Your path so far
npm create @trestlerunYou have opened all eight pages. Copy npm create @trestlerun whenever you are ready to finish the process.
You copied npm create @trestlerun, so this process has finished and recorded your full visit.
Show the code and detailsHide the code and details
export const visit = process({
name: 'visit',
body: async () => {
for (const _lap of Object.keys(CASES)) {
const next = await choice({
name: 'What do you care about?',
party: visitor,
cases: CASES,
});
if (next === START) {
return 'started a project';
}
}
return 'never started a project';
},
});export const visit = process({
name: 'visit',
body: async () => {
for (const _lap of Object.keys(
CASES,
)) {
const next = await choice({
name: 'What do you care about?',
party: visitor,
cases: CASES,
});
if (next === START) {
return 'started a project';
}
}
return 'never started a project';
},
});Your answers and the run are stored only in this browser.
npm create @trestlerun