Sheet A-101
AI you can check
The assistant on /ai, from a visitor's question to the reply they read, with the checks it passes on the way.
Request to reply
- 1
Visitor's questionVisitor's browser
Wherever it's switched on, anyone can ask from the chat on /ai, with no sign-in. Earlier answers come back with each question, signed by our server, so nobody can write the assistant's side.
- 2
Kill switchOur server, plain codeGuardrail
The assistant ships switched off. Unless one setting says on, the request is refused before a word of it is read.
- 3
Rate limitsOur server, plain codeGuardrail
Limits per visitor, by a signed cookie, and per network, by the minute and by the day. If the counter can't be read, the request is refused. The limits hold as stated where the site's hosted counter is set up. Without it, each server keeps its own count.
- 4
Size and signaturesOur server, plain code
The question and the whole chat are capped in length, and a chat holds a set number of answers. Every earlier answer must carry our signature, or the request is refused.
- 5
Spend ceilingOur server, plain codeGuardrail
The answer's worst-case cost is set aside against the assistant's day, its month and the whole site's day before the AI is asked. If it won't fit, or the ledger can't be read, nothing runs.
- 6
The model
One call with a cap on the answer's length, sent back whole so the check can read all of it first. It reads this site's own pages and the chat so far.
- 7
Answer checkOur server, plain codeGuardrail
Plain code reads the whole reply before anyone sees it. It looks for prices, days of the week, clock times, promises, numbers or links our pages don't hold, and claims to have booked or sent something, and drops each sentence it finds one in. At most one vetted line is added.
- 8
The replyVisitor's browser
The checked words, signed as the chat's history. When a visitor asks for a call, real open times appear under it, built by code from the booking calendar, or a link to /book when there are none.
Where data lives
- 9
Never stored
What the visitor types. There's no transcript table, and no log line quotes it.
From: Visitor's question
- 10
Postgres (Neon)
One cost row per answer, booked before the call and settled after. It holds no words.
Written by: The model
- 11
Server logs
Which checks fired and how many tokens were used. The text itself never goes in.
Written by: Answer check
- 12
Browser tab only
The chat so far lives in the visitor's open tab and goes back with each question, its answers signed so they can't be rewritten.
Written by: The reply
General notes
- 1. Written and kept by hand from the code, and checked against it on the date in the title block.
- 2. Every label on this sheet is also written out under it.
- 3. It runs only where we've switched it on. Where it's off, /ai shows its real answers from our test runs, labeled as recorded.




