Skip to main content

Set up a stream with the assistant (experimental)

Stream setup is experimental in 0.16.0. An assistant reads a context stream you have already registered, asks you whatever it cannot work out, and proposes how the stream should be set up. A proposal changes nothing until an administrator approves it. The assistant can be wrong: read each proposal before you approve it, and ask the stream's verification questions once it has run.

It is on by default. Only a super administrator can open it, from Admin → Stream setup (experimental). The chat gets its tools only on a super administrator's diagnose question (Diagnose a stream from chat).

What it can do​

The page offers three modes. It picks the right one from how the stream was registered.

ModeForWhat the assistant proposes
Customise a recipea stream registered from one of Prism's recipes that leaves settings open: today GitHub, GitLab and Jiravalues for those settings only: which organisations, groups or projects to cover, how far back to start, which Jira fields hold story points
Describe from scratcha query-through stream (Snowflake, Oracle) registered with a starting documenta complete document: its tables and views, a few sample rows, which date columns actually move. It asks you about look-alike tables instead of choosing one.
Edit its documenta query-through, snapshot or mirror stream you registered under a name of your ownthe stream's document back, whole, with the changes you asked for: a different SELECT, a column added or renamed, a field's meaning written down. It keeps the stream's name, kind, connection and every request it makes exactly as they are.

Not available yet: describing a mirror or snapshot stream from scratch. Edit its document instead: the assistant starts from the document the stream has, so register it first, as in Copy a Postgres table or view. A stream that keeps the name of a recipe Prism ships (github, jira, gitlab) and a file stream cannot be edited here; the page marks them "cannot be edited here".

The database and file recipes (the Snowflake, Clarity and Postgres ones, and the people file) leave nothing open to a session: every setting they declare says where the data is, who signs in or how the session is set up, and those are yours. You enter them when you register the stream. After that, only a Postgres stream's session settings can change, on its Manifest tab (Copy a Postgres table or view). A query-through stream registered from one of them opens in Describe from scratch instead, a snapshot or mirror stream in Edit its document, and the page marks the people file "nothing to customise".

Before you start​

  1. Register the stream first, with its credential. The assistant only works on a registered stream, using the credential stored on it. It never asks you for a host, a login or a password, and it cannot reach any host but the one you registered.
  2. Open Admin → Stream setup (experimental), pick the stream, and say what you want in your own words, for example "we only care about the platform teams' projects".

The assistant runs on your Agent Router like the chat does, so a session costs Router tokens. Each turn has a fixed allowance of requests and of data read from your system.

Approving a proposal​

A proposal shows what would change against the stream as it is now: the changed settings for a customise proposal, or a line-by-line difference for a document. Nothing is written until you press Approve.

  • A customise approval writes those settings and nothing else. The stream keeps its document, its credential and its state. Its verification answers are reset, because its figures now cover something else, so ask the questions again once it has run. A proposal that sets the values the stream already has is refused rather than approved.

  • A document proposal shows what approving it does before you can approve it: the same list of consequences the Manifest tab shows before Save, under the same headings, with every changed SELECT printed in full, before and after, and marked ⚠ for your attention. Beside it is the check of the proposal's SELECT statements:

    • On a Postgres stream, Prism runs each SELECT against your system when it shows the card, inside a read-only transaction, and shows whether each ran.
    • On a Snowflake or Oracle stream, Prism does not run them when it shows the card: it prints each statement exactly as it would run, and runs them when you press Run the check. Snowflake has no read-only session, and Oracle's read-only transaction can be left by a function declared AUTONOMOUS_TRANSACTION, so on those the stream login's grants are the only limit on what a statement does.
    • On a Snowflake or Oracle query-through stream, the check is Test's. When the assistant proposes a change, and when the card is shown, Prism only compiles the statements built from the proposal's SQL. The card prints each dataset's source and each field's and metric's SQL as the assistant wrote it. Prism runs the statements, at WHERE 1=0, when you press Run the check, or when Save runs Test on a stream that is on.

    You can approve without running the check. On a stream that is on, Save runs it before it writes anything. If its result changes what approving does, nothing is written, and the card asks you to run the check before you decide again. A statement the assistant wrote can read any table the stream's login can read, including ones the stream did not read before. Approve applies exactly the list you were shown. If the list can't be worked out or drawn, Approve stays off and the card says why. A page left open across an upgrade asks you to reload it.

  • A document approval goes through the Manifest tab's own apply, with the same checks and the same outcome, which the approval repeats: a change to the model needs probing, approving and enabling again, like any edited manifest; a change only to how the stream is labelled keeps its state.

  • A proposal made before the stream changed is refused. If someone edited the stream's settings or document after the assistant proposed, approval says so and writes nothing. Ask the assistant again.

  • A proposal can't move the stream to another host, change who it signs in as, or change what kind of stream it is.

Switching it off​

Set mcps.discoveryMcp.enabled: false in your values and upgrade. The assistant's pod, the Stream setup page and the chat's Diagnose switch all go, and nothing else changes. The image is discovery-mcp: mirror it with the others, as Installing Prism lists.