Rules that must never be broken
Pick another answerRules that hold on every path
If you answer for what must never happen, policy documents are not enough. In Trestle, each step declares its kind of work in business terms, and rules govern those kinds rather than code.
before
No claim is paid before a person approves it.
never
A support process never issues a wire transfer.
at most
A refund is issued at most once per run.
apart
The person who requested a payment cannot approve it.
Exceptions go through the rule owner
Every rule has an owner, and enforcement holds whether a person or an AI agent decides. The owner can let one barred step through once, and that exception is recorded.
Outside credentials follow the rules too
A step receives an outside credential only if it declares that kind of work and the rules allow it. No other step gets the key.
Pause a process without a deploy
You can stop a single step, a process, or the whole deployment without shipping code. Time spent stopped does not count against deadlines.
Access stays closed until you open it
A server reachable from outside refuses to start without authentication. Access uses seven scopes, such as reading, answering, and operating. API keys are stored only as hashes; they expire and rotate by letting old and new keys overlap.
Every requested change is recorded
The audit log records each requested change with who asked, how it arrived, and what was answered. Once written, no one can alter it.
What still stays with you
- Rules apply only to work a process declares, so a step’s label rests on its author. Binding outside credentials to those declarations closes that gap.
- Trestle is not a compliance certification and does not replace reviewing the process.
- The check inspects paths declared in code; conditions outside the diagram are caught when a run leaves it.
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