Skip to main content

Finding an answer again

Every answer Prism gives is kept, and every answer has a link. Weeks later, the person who acted on one can produce the question, the answer, and the record of where its figures came from — without having kept the tab open or exported a PDF at the time.

This page is about what that means for what your installation stores and who can read it. It is worth reading before somebody asks.

For a reader​

Your answers in the header opens your own history, newest first. Each entry is a question, when it was asked, and any marks worth seeing at a glance:

MarkWhat it means
no data looked upThe answer made no tool calls and none had been made earlier in that conversation. Whatever figures it states, nothing fetched them.
figures from earlierNo lookups on this turn, but there were lookups earlier in the same conversation.
lookups unknownNo lookups on this turn, and no record of the conversation around it — usually a turn from before a restart.
cut offThe answer stopped part way.
failedThe turn errored before it finished.
no recordThe turn ended before its provenance record was built. What it looked up is not known — and this is exactly the turn worth reporting.
still answeringPrism is still working on this question. The answer appears here when it is done. If Prism is restarted first, the mark goes at once. After a crash or a killed pod, it goes about a minute after the question's time limit.

Opening one shows the answer as it was given, with its tables and charts, and the provenance footer already unfolded. Copy link gives you an address that keeps working: paste it into a ticket, a message, or a decision record. The same button is on every answer in the chat, so you can take the link at the moment you decide the answer matters.

Export PDF produces the same document the chat produces, dated when the answer was given rather than when you exported it. It opens your browser's print dialog. Choose Save as PDF (Save to PDF in Firefox) as the destination, because the dialog may default to a printer; on iPhone and iPad, choose Share in that dialog, then Save to Files (Safari's own Share button saves the chat page instead). Turn off the browser's headers and footers to leave out the date, the page's address and the page numbers.

What you are looking at, and what you are not​

An archived answer is replayed from what was stored, not re-asked. It is what Prism said at the time. It is not a fresh answer, and nothing on the page has been re-checked against today's data — the figures may since have changed, and that is the point of keeping the original.

For an administrator​

What is stored, and where​

Every turn already went into your datapond's app_events table: the question, the answer, the provenance record, timing, and any error. That has been true since long before this feature — what is new is that it can now be read back. Nothing about what is collected changed. The provenance record has since gained the agent's working text: everything it wrote before its last lookup, kept whole and shown under an answer as How I got this. It is in the same row as the turn, so app.retentionDays prunes it with the turn. A feedback report copies the whole provenance record when it is filed, so the report holds that text too; the report is pruned by the date it was filed, and the feedback export includes it.

The row also keeps the full arguments of each tool call the agent made for the turn. The provenance record shows the first 300 characters of each call's arguments. The full copy is in a column of its own, tool_call_args. Prism keeps at most 8 KB for one call and 128 KB for one turn. Only the person who asked the question can read the full copy back, and no page shows it yet. A super admin reading that person's turn sees the first 300 characters, as before. The PDF and the feedback export do not include the full copy. app.retentionDays prunes it with the turn. Erasing a person deletes it with their turns.

Resetting and removing a person treat the full copy as they treat the question and the answer in the same row:

  1. Reset. Prism empties the full copy on the person's turns. Under email sign-in those are the turns filed under the address. Under a sign-in proxy (Entra, IAP) those are the turns filed under the permanent sign-in ids that the Reset retires and that no other person holds.
  2. Remove, under email sign-in. Prism empties the full copy on the turns filed under the address. A turn filed under a permanent sign-in id stays as it is, with its full copy.
  3. Remove, under a sign-in proxy. Prism leaves the person's turns in place, with the question, the answer and the full copy. If you add the person again, they read their own turns again.

To delete a person's turns and everything in them, use Erase.

An operator with access to the datapond can read the column. So can a super admin or an app admin who saves a manifest with SQL in a directory field or a dataset, because that SQL can read every table. All three could already read the question and the answer in the same row that way.

While a turn starts, its question also waits in the ask_tickets table, so that the address of the answer's stream does not carry it.

It is your database. There is no outbound connection and no Tetrate endpoint involved, exactly as with feedback.

What the log line carries​

The app also prints one JSON line per event (each turn, visit and refusal) on its standard output, for your log pipeline. By default that line carries no question text and no email address:

FieldWhat it is
question_charsthe question's length
question_hasha 12-character pseudonym for the question, the same for the same question
user_hasha 12-character pseudonym for the person (their address, or their sign-in subject), the same on every line
turn_idthe turn, which finds the question and the person in app_events

A turn whose reader left before it finished prints two lines with the same turn_id: one when the reader left, and one when the turn ended. The second carries replaces_line: true. To count turns, skip the lines that carry it. To read one turn, take its last line.

The pseudonyms are keyed with the installation's own secret, so they cannot be worked out from a guess outside it; rotating that secret changes them. The access line the app prints for each request leaves out the query string.

To put the question text and the addresses back on the event line (question and user), and query strings back on the access line, set app.logQuestions: true (unquoted) and upgrade.

The audit log's own line names who did what, by design. And a sentence the event line quotes from an answer (retrieval_claim, history_denial) can name a person; only an address in it is replaced. tool_text_instruction on the same line is only true: the sentence it stands for stays on the stored answer.

Who can read what​

  • A reader sees their own turns and no others. The scope is applied in the query, not in the page.
  • A link to somebody else's answer returns "no such answer" — the same response as an id that never existed. That is deliberate: a "not allowed" would confirm that a colleague asked a question with that id.
  • A super admin sees every turn on the installation, and the page says so rather than leaving it ambiguous. This is the same tier that already reads every reported answer in the feedback queue.

Under an identity provider (iap / easyauth) "a reader" means one signed-in person. Where several people share one credential — the internal API key, if your install has one — their turns are one undifferentiated history, because there is nothing finer to separate them by.

Usage: who has used Prism, and how much​

Admin → Usage (/admin/usage, super admin only) reads the same app_events table and shows, for the last 7 days, 30 days or all time:

  • One row per person: everyone in App users, including people who have never come, plus anyone your identity provider let in who is not listed there. Each row has visits, questions, errors, refused questions (too long, or over the rate limit), feedback given, the first visit and the last activity, and a link to that person's answers.
  • Totals and a daily chart of questions and active people. The chart's days are UTC days.
  • Download CSV of the per-person table.

Activity is matched to an App users entry by the sign-in id linked to that entry, and by the earlier ids Prism recorded for it. Prism records one in a single case: when a user stored under their UPN is moved automatically to their Entra object id on their first sign-in with a verified token (Upgrading an install that used the headers). Those earlier ids follow the link when you move link to another entry. A person whose activity is under any other earlier id has that activity on a row of its own, with the same email, outside App users. That includes a person you unlink and who is then linked again under a new id: an unlink records nothing, because it cannot tell the same person under a new id from someone new.

Activity recorded under a sign-in id is never matched by email to an entry with a linked sign-in. So an address given to someone new does not show its previous holder's activity on the new holder's row: that activity is its own row. Activity recorded with no sign-in id (older rows) is matched by email, and so is all activity for an entry with no linked sign-in. On such an entry, an address given to someone new still shows its previous holder's activity.

One case is not covered. If a UPN is given to someone new before its entry's first verified sign-in, that entry is moved to the new holder's object id. The new holder then has the previous holder's role and data scope, and their activity under that UPN.

A row of its own for someone's earlier id can count as a second active person in the totals and the daily chart.

After upgrading: Prism recorded no earlier ids before this release. For every entry with a linked sign-in, activity under any id other than the current one, including the UPN of a user moved to their object id before the upgrade, appears as a separate row with the same email, outside App users, and can count as a second active person.

A visit is a load of the chat page. It is the sign of use every identity mode records; a sign-in itself is not stored. Opening a dashboard, the Dashboards page or the Chat page is not a visit. So a person who only opens a shared dashboard link, and never loads the chat, has tile runs but no visit, and this page does not count them. A question asked while an administrator previews someone counts for nobody: not for the person being previewed, and not for the administrator, whose row shows it separately as a preview.

The page names people. It is for your administrators to see how your own staff use your own installation, and every super admin sees every person, whatever their own view restriction.

"Part of this answer could not be checked automatically"​

An answer sometimes carries an amber note above its figures saying that some results were too long to keep a full copy of, so the figures taken from them could not be checked.

It is a statement about Prism's record, never about the answer. The agent received every result whole. What the note reports is that the copy kept beside the answer holds only the beginning of one, so the automatic check that reads figures back against their source had nothing to read them against for that part.

How much of each result is kept is agentRunner.tracePayloadMax — 100,000 characters by default, which clears a normal page of rows with room to spare. If you see the note on most answers rather than on unusual ones, that value has been lowered, or an entry in agentRunner.extraEnv is overriding it: below about 13,000 characters a single page of pull requests no longer fits, and the note stops distinguishing the answers that deserve it.

Raising it costs the size of the app_events and run_events rows and nothing else — it does not change what the agent reads, so it cannot change an answer. The one thing it will not fix is a genuinely enormous result; there the note is correct and the remedy is the one it suggests, which is to ask for less at a time.

What it costs you to keep​

By default nothing is pruned: the history goes back to the day you installed Prism and grows by a row per question. See Limits for what that means for the volume, and for the self test line that watches it.

To keep less, set app.retentionDays to a number of days. Once a day the app then deletes:

  • every question and answer older than that, with the email of whoever asked it, and the rest of the app's own telemetry in the same table: visits, refused questions, refused sign-in links and the other events the troubleshooting pages send you to app_events for, so look before the period runs out;
  • every feedback report filed longer ago than that, with its attachments (a later click on the same report does not restart its clock);
  • every client note older than that: a browser's own note on an answer it showed, which can carry the title and labels of a chart it refused to draw.

Admin → Usage then counts over the history that is kept: its All button reads "All kept (N days)", its first-visit column is the first visit kept, a person with no visit in that period is shown as having none kept rather than as never having visited, and a 7- or 30-day window longer than the period says that its earlier days are zero because they were deleted. Each deletion is recorded in the audit log as app_retention_pruned, with how many rows went and never what they said. A deleted answer's permalink stops working.

What it does not delete:

  • The agent runner's own copy of each conversation. The runner keeps every conversation's messages and runs in its own tables, and has no way yet to delete them by age. They go only when a person is removed under email sign-in, or with Delete runner conversations (see When someone leaves in the install guide); deactivating or resetting a person does not delete them. Keeping them is deliberate: a runner conversation and its transcript are kept until an administrator deletes them. Prism itself never deletes one, including when it stops offering to continue it, so a script that asks every question in a new conversation leaves one runner conversation per question.
  • Saved prompts, which people keep on purpose.
  • Sign-in sightings (identity_sessions): one row for each person a sign-in proxy has signed in, keyed by the proxy's subject (an email address under some identity providers), and for each API key's method, route and client address, with when it was first and last seen.
  • The audit log, which has its own setting, audit.retentionDays.
  • Log lines and backups, which are kept wherever your logs and backups go.

How long a conversation can be continued. A person can continue any conversation they opened in the chat page, with the agent reading the earlier turns: Prism keeps its link to every one, unless the viewer's data scope changes or an administrator resets them. A conversation a script started, named or not, is different. Once it has had no question for 24 hours, or is no longer among that user's 1,000 most recent scripted conversations, Prism can drop its link the next time it records a new conversation for that user, and the conversation may then no longer be continued. A conversation a script named with session already stops being continued 15 minutes after its last question (see Test prompts). The runner still keeps the conversation and its transcript.

A prune bounds the database's growth; it does not shrink the volume. See Limits.

Erase a person's data​

When someone who has left asks for their questions and answers to be deleted, use Erase history on App users: see Erase a person's history.

  1. Deactivate them on App users, so they cannot sign in.
  2. Delete the agent runner's copy. On App users, use Delete runner conversations with the sign-in id Prism knew them by and their address, as When someone leaves in the install guide describes. A conversation whose question was still running is kept, and the page says so: run it again once that question has ended. What it deletes cannot be recovered.
  3. Erase their history with erase history on their deactivated row, before any reset: their questions and answers, feedback reports and their attachments, saved prompts and browser notes. It deletes only what Prism can show was theirs: under email sign-in, what their own signed-in requests wrote from this release on; under a sign-in proxy, what was recorded under an id that is never reused. It previews what it will delete and what it will leave, with why, before it deletes anything. Where it refuses (a sign-in proxy that gives a username, say), or for what it leaves, app.retentionDays prunes everyone's history older than the period you set. See Erase a person's history.
  4. Erase their identity evidence. On App users, use Erase identity evidence with their address, and choose whether to erase the logins it was seen with. This deletes the address-to-login pairs Prism harvested from their commits and profile, and no later walk records them again: see Erasing one person's evidence.

What an erasure does not reach:

  • Their name, login or address inside other people's questions and answers. Someone else asking about them is that person's history.
  • What your context streams hold about them: their pull requests, issues, directory row and the rest. That is your source systems' data, and the next walk reads it again. The addresses harvested from their commits and profile are the exception: step 4 erases them for good.
  • The audit log. It is append-only and refuses a delete. It holds no question or answer text; audit.retentionDays ages it out.
  • Their App users row, which under a sign-in proxy is what keeps them out.
  • Their address on anything they did as an administrator.
  • Log lines and backups, wherever your logs and backups are kept.
  • The agent runner's copy, until step 2 has run, and any conversation it kept because its question was still running. It all stays when step 2 is refused because the address changed hands.
  • Under email sign-in, anything written before this release, or by a sign-in made before it. Those rows carry no record of which sign-in wrote them, so Erase does not reach them. app.retentionDays prunes them.
  • What Erase leaves, and says it leaves: rows under their address with no record of which sign-in wrote them (everything from before this release under email sign-in, and anything someone else wrote about them), rows another holder of the address wrote, and rows from before or after the time their address was theirs alone.

If your install has no datapond​

Then there is no history to read, and the archive says so rather than showing an empty list — "nothing is kept here" and "you have asked nothing" are different sentences, and only one of them sends somebody hunting for an answer they are sure they got. An answer on screen can still be exported as a PDF.