Fluid
Fluid, Fontana's workflow language model
How a plain-English description of a workflow step becomes checked Formula, and why the workflow then executes without the model.
Technical whitepaper
Iain Craig · November 2026
Executive summary
Fluid is Fontana's language model for workflow authoring. It is fine-tuned for a single task: given a plain-English description of one data operation and the schema of the table it applies to, it returns that operation as a statement in Formula, the language Fontana's workflows execute. Each statement it returns is parsed and type-checked against the table before it is presented, and a statement that fails is returned to the model with the checker's message. A person accepts the result, and the accepted statement is saved to the workflow. Subsequent runs execute that statement and make no call to a model.
A general-purpose language model produces prose or free-form code. Fluid produces statements in one small, statically checked language, which an engineer can read, compare between versions, and audit. A request contains the sentence and the names and types of the columns involved, and it contains no rows. The model runs on Amazon Bedrock in your own AWS account, on an inference provider you approve, or on your own hardware.
Output is executable Formula
Fluid returns a statement the workflow engine can execute. Fontana then derives the English sentence for that statement, and that sentence is what the author reviews.
Every candidate is checked
A candidate passes through the same checker the editor applies to hand-written formulas. A failure is returned to the model with the checker's message, for up to five attempts.
A request contains the schema only
The request holds the sentence and the column names and types. Rows, files, and conversations are not included.
Runs are independent of the model
Fluid assists authoring. Once a statement is saved, every run executes the saved file, and its result does not depend on a model.
The sections that follow describe what Fluid writes, what a request contains, how a candidate is checked and repaired, how the model is trained and evaluated, and where a workspace may run it.
Introduction
General-purpose language models describe a data process well and produce one less dependably. Asked to build a reconciliation, such a model returns a plausible description, or a script that works on the data it was shown. An operational process has further requirements. It must behave identically on the next file, refer only to columns the table actually has, and leave a definition a reviewer can inspect line by line.
A second difficulty is specific to specialised languages. A general model has no knowledge of a language such as Formula unless the grammar and the function catalogue are supplied with every request. That enlarges each request, raises its cost and latency, and still leaves the model able to produce a function that does not exist.
Fluid addresses both difficulties. It is a small model fine-tuned on Formula, so knowledge of the language resides in the model's weights and requests stay short. Its output is treated as a proposal: the checker that validates a hand-written formula validates every statement Fluid returns, and only a statement that passes is presented as valid.
Where Fluid sits
Fontana is an AI platform with three parts. The Knowledge Graph holds what an organisation knows. The Agent Harness is the runtime in which AI agents work. Workspaces is where a team builds workflows, which are data processes that run again whenever their data changes. Each step of a workflow is written in Formula, a small language in which every statement has an equivalent English sentence. Fluid allows a person who does not write Formula to author a step in it.
Fluid is one of two routes from a sentence to a statement. A sentence already in the wording Fontana itself generates is converted deterministically, with no model call. That route, and the language, are described in the Formula whitepaper. This paper covers the other route, in which the sentence is in the author's own wording.
Who this paper is for
This paper is written for architects, engineers, and the risk and security teams who assess a model before it is used in a process: what it receives, what it returns, how its output is validated, what it was trained on, and where a request is processed. It assumes no prior knowledge of Fontana.
How this paper is organised
The paper first describes what Fluid writes and what a single request contains. It then follows a candidate through checking, repair, and review, and explains why subsequent runs require no model. The remaining sections cover use by agents, training and evaluation, deployment options, and the controls that apply.
Key terms
These terms recur throughout the paper.
| Term | Meaning |
|---|---|
| Fluid | Fontana's own language model, fine-tuned for a single task: translating a plain-English description of a data operation into Formula. |
| Formula | The language in which a workflow step is written. Every statement has an equivalent English sentence. The Formula whitepaper describes the language. |
| Statement | One line of Formula, such as setting a column, keeping some rows, or colouring a cell. |
| Workflow | A data process defined as a graph of steps that moves data from a source to an outcome. Each step is a short file of Formula statements. |
| Process | The editor action that converts edited sentences into Formula statements and presents each change for review. |
| Checker | The static check the Formula editor applies to every formula. It rejects text the grammar does not allow, a column the table does not have, and a value of the wrong type. |
| Candidate | A statement Fluid has returned that the checker has not yet accepted. |
| Confidence | The probability the model assigned to the exact statement it returned. |
| Fine-tuning | Training an existing model further for one task, here with low-rank adapters (LoRA): small trained layers added to a base model. |
| Vault | The workspace's store for keys and passwords. A request to Fluid uses credentials held there. |
| Workspace | An organisation's Fontana environment: its people, workflows, models, and secrets. |
| Agent | An AI that works on a person's behalf in Fontana. Agents can build workflows, and can request individual statements from Fluid. |
What Fluid writes
The workflow editor presents each statement of a step as an English sentence. When an author edits a sentence or adds one, the Process action converts each changed sentence to a statement. A sentence in the author's own wording is sent to Fluid, which returns the corresponding Formula statement.
The example below shows one exchange in full. The author's sentence is informal. Fluid returns a statement. Fontana then derives its own sentence from that statement, in fixed wording, so the text presented for approval describes exactly what will execute.
# The author's sentence
Make Account ID red if Company valuation is above 130 million.
# The statement Fluid returned, after the check
if(prop("Company valuation") > 130_000_000, setStyle("Account ID", "text_color", "red"))
# The sentence Fontana derives from that statement
If `Company valuation` > 130,000,000, then colour the text of `Account ID` 'red'.
Fluid writes two kinds of formula. Each is checked against the data that kind of formula can read.
| Kind | What it is | Checked against |
|---|---|---|
| A step statement | One statement of a workflow step: set a column, filter rows, look a value up, raise an exception, style a cell. | The columns that reach the statement, and the named tables the step reads. |
| A view formula | The conditional formatting of a table view, which determines how values are displayed to a viewer. | The view's fields, and which of them hold options. |
- One sentence produces one statement. A step of ten statements results in ten independent requests, and each result is checked separately.
- Unchanged sentences keep their existing statements. Fluid is not asked to rewrite parts of a step that were not edited.
- A column referred to loosely, such as Fund for a column named Fund Name, is resolved to the single column the reference matches.
- A line beginning with # is a comment. It is preserved in the file and is never converted.
What a request contains
An assessment of a model begins with the data it receives. A request to Fluid is small, because the model requires the schema of a table and has no use for its contents.
What is sent
| Part | Contents |
|---|---|
| The sentence | The text of the one statement that was added or changed. |
| Column names and types | The name and type of each column that reaches the statement, and of each named table the step reads. |
| Function names | The catalogue of Formula function names with which Fluid was trained. |
| The kind of formula | A step statement or a view formula. |
| On a repair only | Fluid's previous candidate and the checker's message about it. |
What is not sent
| Excluded | Reason |
|---|---|
| Rows and cell values | The request is built from the table's schema. The table's contents are not read. |
| Files | No input file, output file, or document is attached. |
| A conversation | A conversion has no chat thread and no agent turn behind it. |
| Knowledge Graph content | A conversion neither searches nor attaches the organisation's documents. |
Because the language is encoded in the model's weights, a request includes no language reference, and the response is a single statement. Requests are therefore small enough to issue one for each sentence.
Column names can themselves be sensitive, and they are part of the request. This is one reason the choice of where Fluid runs rests with the organisation. See Where Fluid runs.
Check and repair
Fluid's output is validated mechanically before it is presented. Each response is a candidate. It is parsed, and then checked against the columns and types that reach the statement, by the checker the editor applies to formulas written by hand.
| The checker rejects | For example |
|---|---|
| Text the language does not allow | A missing bracket, or a keyword in the wrong position. |
| Unknown names | A column that does not exist, or a function that does not exist. |
| Wrong types | Text where a number is expected, or a different type written into an existing column. |
| Misplaced statements | A grouping inside a condition, or a value read before it is written. |
| Styles the engine does not support | A style key or an icon the workflow engine would refuse at run time. |
The repair loop
- A candidate that fails is returned to Fluid together with the checker's message, which identifies the fault. Repairs of this form are part of Fluid's training data, so the message is an input the model has learned to act on.
- The loop allows up to five attempts: the first candidate and up to four repairs.
- Faults that can be resolved deterministically are resolved without the model. A loosely named column is matched to the one column it fits before any repair is requested.
- If no candidate passes, none is presented as valid. The author is shown the last candidate with its errors.
- A request for a kind of formula on which Fluid was not trained is refused before the model is called.
The checker is no more permissive than the workflow engine. It accepts only the styles and references the engine can resolve at run time, so a statement that passes the check is one the engine accepts when the step executes.
Docs:Errors and limits
Review and acceptance
A statement is saved only when a person accepts it. After conversion, each changed sentence is shown with the statement it resolved to, expressed both as an English sentence and as a change to the formula, and it remains pending until the author decides.
| Outcome | What is presented | Available decisions |
|---|---|---|
| A candidate passes the check | The change to the formula, the sentence Fontana derives from it, and Fluid's confidence. | Accept, reject, or edit. |
| No candidate passes | The last candidate, with the checker's errors. | Correct the sentence or the formula, then accept. |
| The sentence was already in Fontana's wording | The statement, at 100%. Fluid was not called. | Accept, reject, or edit. |
Two independent signals
Confidence comes from the model. It is the probability the model assigned to the exact statement it returned, and it indicates how certain the model was of that output. The check comes from the engine and establishes whether the statement can execute on this table. The two are independent: a high confidence does not carry a statement past the check, and a statement that passes the check is valid at any confidence.
Neither signal establishes that the statement does what the author intended. That judgement belongs to the author, which is why the result is presented as a sentence derived from the statement. Approval does not require the ability to read Formula.
Execution without the model
An accepted statement is written to the step's file, a versioned text file stored beside the workflow. That file is what the workflow engine executes. Fluid takes no part in a run.
- Identical input produces identical output on every run, because a run executes statements and consults no model.
- Executing a statement that Fluid wrote neither calls Fluid nor waits for it to load.
- A reviewer who reads the file, or its sentences, sees everything the step does. There is no prompt to audit.
- If Fluid is unavailable, existing workflows continue to run, and sentences in Fontana's own wording continue to convert.
The Workflow Engine whitepaper describes how that file is fingerprinted, executed, and traced to its sources.
Docs:Workflows
Fluid and agents
A Fontana agent can build a workflow from a conversation. The work divides between two models: the agent's own model plans the workflow, and Fluid writes individual statements.
- The agent's model decides which steps the process requires, their order, and how they connect.
- For a single, well-specified operation over known columns, the agent can request the statement from Fluid through the
formula_writetool, passing a description and the columns with their types. - The tool returns a statement that has already passed the checker, together with the number of attempts taken.
- When Fluid returns no checked statement, the agent writes the formula itself and validates it with the same checker.
An agent's changes are applied to a draft that a person accepts. The Agent Harness whitepaper describes agents, their tools, and approvals.
Training and evaluation
Fluid is produced by fine-tuning an existing base model on Formula. The training material is derived from the language's own grammar, parser, and checker, so every example is one the engine has verified. Training runs on Amazon SageMaker, and the resulting model is the one a workspace calls.
| Input | Purpose |
|---|---|
| The Formula grammar | Every rule the parser accepts, so the model learns the language the engine executes. |
| The parser and the checker | The engine's own. A training example is admitted only if it passes the check applied to a formula in the editor. |
| Sentences and examples | Plain English paired with the statements it corresponds to. This includes the sentences Fontana itself derives from a formula, and wording written by people. |
| Verified programs | Programs that were parsed, checked, and executed before they were admitted to training. |
| Repairs | A formula that fails, the checker's message, and the corrected formula. From these the model learns to act on the message it receives during a repair. |
From training material to a release
- Generated, then verified. A generator produces training examples from the grammar across many table schemas. A formula that does not parse and pass the check is excluded.
- Fine-tuned with LoRA. Low-rank adapters are small trained layers added to a base model. They are merged into the base model before release, so a deployment runs a single model.
- Trained on Fontana's own sentences. Fontana can derive the English sentence for any formula. Those sentences form part of the training material, together with wording written by people, so the model learns both the canonical form and informal phrasing.
- Evaluated on held-out structure. The evaluation set withholds entire table schemas and entire kinds of operation, so a result reflects inputs the model was not trained on. A test guards that separation and fails if an evaluation case is reachable from the training set.
- Served as evaluated. A workspace sends requests in the form the evaluation used, with the same function catalogue. A release updates both together.
Customer documents and workflows are not training material. Fontana does not train models on your data. A request to Fluid is a model call made under your own credentials and recorded like any other, and it is not added to a training set.
Where Fluid runs
Fluid is a single model that can be deployed in three ways. The workspace's approved-models list determines which of them a workspace may use.
| Deployment | Description |
|---|---|
| Amazon Bedrock in your AWS account | Fluid is imported into your own AWS account as a custom model. Fontana calls it with the AWS credentials held in your Vault. The model, and everything sent to it, stays in your account. |
| An approved provider | Any inference endpoint you approve, including one you host yourself, called through a gateway with a key held in your Vault. |
| Your own hardware | Fluid runs inside your network, beside the workspace. A complete workflow can be authored with nothing sent to an external model. |
In your AWS account
- The imported model is identified by a resource in your account. That identifier is workspace configuration, set in the same way as the model of any agent.
- Each request is signed with the AWS credentials held in your Vault, resolved for the person who initiated the conversion.
- Fontana operates no shared Fluid service through which customer sentences pass.
Model loading
A model that has not been used for some time is unloaded. The next conversion waits while it loads, which can take about two minutes, and the editor reports progress during that time. After a call, Fontana keeps the model loaded for 30 minutes, so a continuous working session incurs the loading delay once.
Governance
Fluid is subject to the same controls as every other model a workspace may call. It appears on the approved-models list, and no separate access path exists for it.
- Credentials. The key belongs to the organisation and is held in its Vault. Fontana maintains no shared model account for these calls.
- Authenticated use. A conversion is an action of a signed-in person and is rate limited for each person, as other AI actions are.
- Cost attribution. Every call to Fluid, including each repair, writes a row to the cost center against the person who made it.
- Spending caps. The caps that apply to that person are checked before the call is made.
- Zero Data Retention. It applies where the provider offers it, through the gateway settings the organisation configures.
- Approval. A statement enters a workflow only when a person accepts it, and the change is recorded in the file's history.
Bounds
The limits within which Fluid operates are listed below.
| Limit | Value |
|---|---|
| Attempts for one sentence | Five: the first candidate, then up to four repairs. |
| Kinds of formula | Step statements and view formulas. |
| Confidence of a direct conversion | 100%. No model is called. |
| Kept loaded after its last use | 30 minutes |
| First call after the model has unloaded | About two minutes, with progress reported in the editor. |
| Calls during a workflow run | None |
Fluid performs best on the kinds of statement represented in its training. For wording outside that range it may not produce a statement that passes the check. In that case the editor presents the last candidate with its errors, and the statement can be written directly in the same editor.
Conclusion
Fluid allows a person to describe a workflow step in their own words and obtain that step in Formula. Responsibility is divided among three parties: the model proposes a statement, the checker determines whether the engine can execute it, and the author determines whether it expresses the intended rule. The saved file is the lasting result.
This division keeps the model's role narrow. The model is small, receives a table's schema and none of its contents, and runs where the organisation decides. The workflow it helps to author can be read, executed, and audited with no further model call.
The Formula whitepaper describes the language Fluid writes, including the sentences that convert without a model.
Further reading
Docs
- Write formulas in FlowThe editor in which sentences are converted and reviewed
- Errors and limitsWhat the checker reports
- ModelsThe approved-models list that includes Fluid
- GatewaysHow a model call leaves the workspace
- Bring Your Own KeyThe credentials with which Fluid is called
- Cost centerThe cost row each call writes
Whitepapers
- The Fontana Knowledge GraphHow documents become a graph an agent can search and cite.
- The Fontana Agent HarnessHow an agent keeps working on a task, across turns, tools, and models.
- The Fontana Workflow EngineHow a workflow runs, and what a run leaves behind.
- The Fontana Formula LanguageHow a step is a file of statements you can read as English.
- Fluid, Fontana's workflow language modelHow plain English becomes checked Formula.