Skip to content

Blog

What Ciaren's Flow Assistant Sends, Stores and Can Change

Six questions to ask before you enable an AI assistant in a data tool, answered for Ciaren: provider data, keys, server tools, review, budgets and gaps.

About this post

Published
Reading time
7 min
Author
Ciaren team

Topics: flow-assistant, security, local-first, privacy

If you approve tools for a data team, an AI assistant raises the same questions every time: what leaves the machine, where the key lives, what the model can do on the server, and what stops a mistake or a runaway bill. For Ciaren's Flow assistant, the short answers are: your request text and a coarse description of the flow go to the provider you chose, rows and files stay on the server, the key lives in the OS keychain, the model can only propose edits to an allowlist of node types, and nothing is saved until a person approves it. The assistant is off until someone adds a key.

Below are six questions in the order we would ask them about someone else's product, with the answers and the gaps.

1. What does the provider receive?

Every request includes the text you typed. Beyond that, a Build request sends:

  • the node catalog: node types, categories, port names and short descriptions;
  • the canvas as node types and connections, with temporary references such as n0 for nodes and d0 for datasets, but no node labels and no current settings;
  • for each dataset column the model asks about, a reference such as c0, a coarse type, and profile figures: the row count, null fraction, distinct count and whether the column is unique;
  • the column types that the checks report for each node.

Files, rows, sample values, filenames, dataset IDs, connection details, node labels, scripts, full configurations, raw logs and error traces stay on the server. Column names are sent only when the user opts in for one request with Include column names in this request, or types a name in the request text. When the panel shows a reply, the references are translated back to the names the user sees in the editor.

The provider still receives something, and the request text is free text. If someone pastes a customer's email address into it, that address goes to the provider. The guide asks users to keep credentials and confidential values out of requests. Ciaren cannot enforce that.

2. Where is the API key, and who can use it?

A key added on Connections → Assistant API keys goes into the OS keychain of the computer that runs Ciaren: Windows Credential Manager, macOS Keychain or Secret Service. The database stores only the key's name, provider, model, effort and state, and Ciaren never shows a saved key again. On a machine without a supported keychain, such as a container, the button is disabled and an operator supplies the key through an environment variable or a read-only secret file instead.

Each provider has its own fixed HTTPS destination. Choosing or typing a model never changes the host. OpenAI requests use the Responses API with storage disabled. Retention and charges otherwise depend on the provider and your account with them.

Anyone who can use the Ciaren server can run the assistant with the key in use, on the key owner's bill. Settings and credentials belong to one server instance, so separate trust boundaries need separate instances, data directories and secret sources.

3. What can the model do on the server?

The model calls tools that run inside the Ciaren server: read a dataset's schema and profile, look up node settings, preview a node on placeholder rows, propose an edit, validate, and end the turn. It has no shell, no generic network or file access, no repository access and no way to generate arbitrary code. Ciaren runs no MCP listener for it, because the tools already run in process with the editor's checks, and a second transport would add a second credential and authorization boundary without adding abilities.

Every edit passes an allowlist of node types and settings before anything runs. The assistant never writes Python Transform nodes, database or cloud storage connectors, or plugin nodes, and cannot change credentials or file paths. Expression nodes accept only column references, numbers, quoted text, comparison and arithmetic operators and a short list of math functions, checked on the server. Model settings stay within documented bounds, for example at most 500 trees. On an existing flow, nodes of other types stay locked: the assistant can neither edit them nor connect to them.

The checks it runs before showing a proposal use placeholder rows. Each input keeps its column names, types, row count up to 200 and null and distinct-value shape, but every value is generated. That is why a check can confirm types and wiring but cannot answer a question about your real values.

4. What has to happen before a change takes effect?

A proposal is held in memory for three minutes and changes nothing. Only Apply and save writes it, as a new flow revision, and only Run executes the flow. The assistant cannot run a pipeline. The editor shows a change only after the server has validated its operations, and a draft it could not finish checking carries a note saying so.

Saves are checked against the revision the proposal was built on. If someone else saved the flow in between, or the input dataset version changed, the proposal is refused and a new one is needed.

Confirmed changes are listed per flow in Assistant → Activity, with node types, ports and the before and after of supported settings. The entries do not contain the proposal, the request text, provider responses, key material, rows or full graph snapshots. A change can be reversed from there as a new revision, and the reversal checks the project, revision, settings and inputs again before it writes.

5. What stops a runaway bill?

Several limits apply on the server, whatever the client does:

  • Each process allows a set number of provider calls per rolling hour (CIAREN_ASSISTANT_TURNS_PER_HOUR, 60 by default). A turn reserves its calls when it starts and returns the unused ones when it ends. Cancelling a turn does not return its reservation.
  • CIAREN_ASSISTANT_TOKENS_PER_HOUR adds an optional token cap on top.
  • Requests use zero automatic retries, so a provider error does not quietly repeat a paid call.
  • Every reply shows the provider calls and tokens it used, so a user sees the cost of each request as it happens.

None of these is a currency limit. For that, use a key with a spending limit set in the provider's console. We recommend one for any shared installation.

6. What does it not protect against?

The assistant key is protected from flow code only in part. The server removes the CIAREN_ASSISTANT_*_API_KEY variables from its own environment at startup and from run workers. A Python Transform node still runs with the server's privileges and can read the key wherever it is stored: server memory, a mounted secret file or the OS keychain. On a shared installation, only trusted users should be able to edit flows.

Access to the assistant follows the installation's existing server authentication. Activity records that a change came from the assistant and was confirmed, but it does not attribute the change to a named person. If you need per-user audit, that has to come from your own authentication layer and logs. Configure reverse proxies and monitoring to leave request bodies and authorization headers out of their logs.

Where this leaves the local-first promise

Ciaren's core runs on your machine. The assistant is the one feature that sends data to a third party, so it is optional, off by default and uses a provider you pick and pay for directly. With it off, nothing in the editor contacts a model. Check these details against your own deployment before you turn the assistant on for a team. The Flow assistant guide lists exactly what leaves the server, and the local-first trust model covers the rest of the installation.

Keep reading