Diagnose a stream from chat (experimental)
When an answer in chat is wrong or empty because of how a context stream is described, a super administrator can switch on Diagnose in that conversation and ask why. For as long as the switch is on, each question can use the same tools as Stream setup. It can read the stream's own system directly, with the credential stored on the stream, and say where the gap is.
The assistant is the same one, in the same conversation, so it starts from the question it just got wrong. It sorts the gap into one of four kinds:
- the stream is described wrong;
- the data is in the system but not declared;
- the data is not in the system at all;
- the question needs engine work that no stream description can supply.
For the first two it can propose a corrected description. A proposal changes nothing until an administrator approves it. It is shown under the answer that made it, and you approve it there (Approving a proposal in chat). You can also change the stream in Stream setup or on its Manifest tab.
Who gets the switch
The Diagnose button sits beside the composer. It appears only when all of the following are true:
- you are a super administrator;
- you are not previewing another person (Preview as);
- your own access is not restricted to a reporting line (Scoped viewers);
- the installation runs the stream-setup assistant (
mcps.discoveryMcp.enabled, on by default).
Anyone else never sees it. The server checks the same rules again on every question, so a request that claims to be a diagnose question from anyone else is refused. Nothing a question says can switch it on.
Using it
- Ask your question as usual. If the answer looks wrong, press Diagnose. A note under the composer says it is on, for this conversation only.
- Ask what went wrong, for example "why is the platform team's total zero?".
- Press Diagnose: on to switch it off. A new conversation starts with it off.
Switching it off does not take back what was read. The conversation still holds every diagnose answer and the tool results behind it, so a later ordinary answer in the same conversation can repeat a source row, without a Diagnose tag. For ordinary answers, start a new chat.
Each answer given while it was on carries a Diagnose tag, both live and when you reopen the conversation. Its About these figures note says the answer read the stream's system directly.
Approving a proposal in chat
When the assistant keeps a proposal, a card appears under its answer. The card is read from the stored proposal, not from what the assistant wrote, and it shows:
- the context stream it is for;
- what the proposal says, and what the assistant could not determine;
- what it changes in the stream's stored document, line by line (or, for a change of settings, each setting now and as proposed);
- what approving it does: the same list the Manifest tab shows before a Save (Change a manifest), worked out from the two documents. For a database stream it also shows the check of each stream's SELECT, as Stream setup does. On Postgres, the SELECT runs against the source, read-only, when the card is drawn, and the card shows whether it ran. On Snowflake and Oracle, the card prints each statement and runs it when you press Run the check. For a Snowflake or Oracle query-through stream, the card prints the SQL the proposal carries, and Prism runs the statements built from it only when you press Run the check. Drawing the card again, for example when you reopen the conversation, never runs it.
Approve of a change to the document saves it through the Manifest tab's own Save, with every check that Save makes. It is bound to the list you were shown, so if the card can't read that list, Approve stays off and the card says why. If what approving it does has changed since the card was drawn, nothing is saved: the card shows the new list and asks you again. When approving it has a cost, such as clearing the stream's verification verdicts, the card says so and asks you to confirm with Approve anyway. You can approve before running the check. On a stream that is on, Save runs it before it writes anything, and if its result changes what approving does, nothing is saved and the card asks you to run the check before you decide again.
Save can do three things with an approved change, and the card says which:
- It takes effect at once, and the stream stays on.
- It waits for the next copy. A change to what a copied stream reads or lands is saved but not yet in effect: until the next copy finishes, the stream answers from the manifest it had, and then it switches (Change a manifest, Job 1b). If that copy fails, the change is withdrawn and the stream keeps the manifest it had.
- The stream is switched off.
While a change waits, Save is refused, and so is Approve: the card shows why.
Only your click approves a proposal. Nothing the assistant writes, and nothing a question says, can.
Dismiss hides the card in this browser and records nothing. Show it again brings it back.
After you approve, your next question in this conversation, from the same browser tab, is told what happened to the stream, so the assistant reads its document again rather than relying on what it said earlier. Prism writes that line from what the source registry holds, not from the page.
When you reopen the conversation, each card shows where it stands now: approved (in effect, waiting for the next copy, or on a stream that is now off), dismissed, or still waiting for your decision. A proposal made before the stream was edited again can no longer be approved; ask for a new one. A change withdrawn because its copy failed leaves the card waiting for your decision again.
What to know before you switch it on
- It reads the source system, not the stream's copy. A row quoted in a diagnose answer may not be in what Prism answers from. The disclosure settings that govern ordinary answers do not apply to the sample rows these tools return.
- What it quotes is kept like any answer. The conversation, and so any sample rows quoted in it, can be read by you and by every super administrator through the answer archive (Your answers). Feedback on the answer, and a PDF exported from it, carry it too.
- It costs Router tokens like any question, plus the reads.
- With viewer scoping off, the App's check is the only one. With viewer scoping on, the stream-setup assistant's tools also check that each call comes from a super administrator's diagnose question, and refuse any other. Without it they have no verified viewer to check, and they rely on the App binding them to diagnose questions alone.
When the switch refuses
A diagnose question is refused, with a reason, rather than answered without the tools. That happens when the rules above no longer hold (for example, your role changed) or when the installation's runner is too old to bind the tools to one question.
Switching it off for everyone
Set mcps.discoveryMcp.enabled: false and upgrade. The switch goes with the
Stream setup page.