Skip to content
lynxby

Start here

How a question becomes a cited answer

Five steps from the browser to the ledger, and what each one refuses so the answer can be checked afterwards.

A search box hides a lot of decisions. These are the five that matter when someone asks why the assistant said something.

1. We know who is asking

Your browser is signed in to one organisation. That choice decides which rows the rest of the request may read. It is not a filter a developer can forget; the tenant scope sits in the data layer, so a query without an organisation returns nothing.

2. The door opens for one organisation only

Each organisation has its own encryption key, derived from the application key. It decrypts only what that organisation may read, including the vault that holds redacted values. A leaked database without the app key and the tenant key is ciphertext.

3. The search stays at home

The question is cleaned up (the framing is dropped, not the meaning), then searched in Postgres. Hybrid search combines keyword and semantic results, and the audience filter runs before either ranking. A document limited to a group you are not in never takes a result slot.

4. Tools ask permission

If the answer needs a connector, the call leaves through a guard that refuses private and link-local addresses. Credentials are resolved by name from the vault. A write action needs a person's approval before it is sent.

5. Everything is written down

The prompt that was sent, the route and provider that answered, the tokens, the cost and any tool result are written before the answer is returned. Each row is chained to the one before it, so an edited or deleted row breaks verification.

What the person sees

The answer carries its citations. Open one to see the passage, the document around it and a signed preview that expires after five minutes. A citation to a restricted source resolves for a member of that group and is absent for everyone else.

What you can check later

Open Audit to filter by model, tool, session or date. Export the same view as CSV. Run php artisan audit:verify to recompute the chain. The point is not that the platform logs a lot; it is that you can answer the question after the fact without asking us.

Related: the audit ledger, search, permissions.

Want to see this on your own documents?

Contact us

Search all guides