Skip to content

AI with your own model

Tenax can ask a language model why a backup failed. The model is always yours: an OpenAI-compatible API (OpenAI, Azure OpenAI, DeepSeek, Ollama, vLLM, llama.cpp, LiteLLM) or Anthropic's API. Tenax ships no model and calls no service of its own. Without an AIProvider, no AI feature runs and nothing leaves the cluster.

Every answer cites the evidence it rests on, and Tenax checks that each cited item really was collected. A model only explains and proposes: Tenax never applies what it answers.

Turn it on

The tenax-ai component is off by default. Store the API key in a Secret in Tenax's namespace (key apiKey) and give its name to the chart. The component may read those Secrets and no others.

kubectl -n tenax-system create secret generic tenax-ai-openai --from-literal=apiKey="$OPENAI_API_KEY"
helm upgrade tenax oci://ghcr.io/republic-global/charts/tenax -n tenax-system --reuse-values \
  --set ai.enabled=true --set 'ai.credentialSecrets={tenax-ai-openai}'

No model at hand? Turn on ai.enabled alone and run a small model inside the cluster: it needs no key and nothing leaves the cluster.

tenax-ai holds no S3, database or encryption credentials. It reads Tenax objects, the mover Jobs and their pods, logs and events, and it writes only the status of AIRun and AIProvider objects.

Add a provider

apiVersion: tenax.run/v1alpha1
kind: AIProvider
metadata:
  name: openai
spec:
  type: openai
  baseURL: https://api.openai.com/v1
  credentialsSecret: tenax-ai-openai
  default: true
  models:
    - name: gpt-4.1-mini
      role: fast
      price: { input: "0.40", cachedInput: "0.10", output: "1.60" }   # per million tokens
  budget:
    tokensPerDay: 500000
    costPerMonth: "20"
    requestsPerMinute: 30

A model server you already run (Ollama, vLLM, llama.cpp) needs no key:

apiVersion: tenax.run/v1alpha1
kind: AIProvider
metadata:
  name: local
spec:
  type: openai
  baseURL: http://ollama.ollama.svc:11434/v1
  jsonMode: object
  default: true
  models:
    - name: llama3.1:8b

You can also add providers in the console (AI → Add a provider) or with the CLI (tenax ai add), without Git: see Live providers.

For Anthropic, use type: anthropic (the base URL defaults to https://api.anthropic.com). For Azure OpenAI, set authHeader: api-key.

Field What it does
default The provider serves every feature that no other provider names.
features Routes named features to this provider, with a priority (lower is tried first).
fallback The provider is asked last, for every feature (see Routing and fallback).
local Tenax runs the model inside the cluster (see Run a model in the cluster).
models fast models extract and classify, smart models synthesise; one model does both.
price Per million tokens, in your bill's currency. Used for cost estimates and the monthly budget.
budget Tokens per day, cost per month, requests per minute. A call that would exceed one is refused.
dataPolicy The most the provider may receive: metadata (the default) or maskedPreviews.
tier Caps the tier shown for the provider: you can lower the one the doctor measured, never raise it. Like the measured tier, it is advice and never keeps a feature off the provider.

Run a model in the cluster

Without a model of your own, Tenax can run a small open model on your nodes' CPUs with Ollama. Open AI → Add a provider → In this cluster, pick a model and the page shows every object it will create, with its CPU, memory and disk, before anything is created. From the CLI:

tenax ai models                                  # the catalog, with what each model needs
tenax ai add local granite4:tiny-h --wait 30m    # download, start, follow until ready
tenax ai add local mistral:7b --memory 6Gi       # any Ollama model; give its memory
tenax ai add local granite4:tiny-h --dry-run     # print the AIProvider to commit to Git instead

The catalog lists small instruct models that call tools, smallest first, each the newest of its size and measured on 4 CPUs without a GPU (see Local models):

Model Download CPU Memory Answering Explains a backup failure Pick
granite4:1b-h 1.5 GiB 2 3 GiB 10.4 tokens/s 90 s Lightest
granite4:micro 2.0 GiB 2 3.5 GiB 4.1 tokens/s 128 s
ministral-3:3b 2.8 GiB 2 5 GiB 3.2 tokens/s 167 s
qwen3:4b-instruct 2.3 GiB 2 5 GiB 2.6 tokens/s 242 s
granite4:tiny-h 3.9 GiB 2 6 GiB 12.9 tokens/s 64 s Recommended
ministral-3:8b 5.6 GiB 4 9 GiB 2.1 tokens/s 257 s Best answers

All of them reach tier 3. They do not think (a reasoning model spends its output on thinking and is slow on CPUs), and Tenax asks every local model not to (reasoning_effort: none), so a model added by name answers directly.

Memory covers the weights, the context (8192 tokens by default) and the server's buffers; it is requested and limited alike, so a node never runs out under the model. CPU is requested without a limit, so the server may use idle cores. On CPUs an answer takes one to four minutes; a GPU makes it seconds.

The provider is the only object you create; the controller keeps the rest, all owned by the provider, so removing it removes them. By default the model lives on the node's disk and nothing depends on a storage class:

Object What it does
Deployment tenax-llm-<name> One pod: its init container downloads the model into an emptyDir on the node's disk (the pod requests that much disk, so it lands on a node with room), then the server serves it
Service tenax-llm-<name> The endpoint tenax-ai calls
NetworkPolicy tenax-llm-<name> Only tenax-ai may connect to the server, and the server has no egress
NetworkPolicy tenax-llm-<name>-egress Lets the pod reach the internet while it downloads; removed once the server is ready

A new pod (after a restart or on another node) downloads the model again: a few minutes for the catalog's models. To download it once, keep it on a volume: name a storage class (spec.local.storageClass, or the chart's ai.local.storageClass for every model). The class must exist; the console and the CLI offer the cluster's classes, and a missing one is refused rather than left Pending. Then a PersistentVolumeClaim tenax-llm-<name> holds the model and a Job tenax-llm-<name>-pull-… downloads it once, within ai.local.pullTimeout, as the only pod with internet access; the server has no egress at all.

The server reaches the internet only while it downloads. To let it reach the internet while it serves too, turn on Let the model server reach the internet in the console (--internet in the CLI, spec.local.internet: true): the egress policy then stays. Ollama's cloud features stay off either way.

The pods run as a non-root user on a read-only root filesystem, without a service account token and with Ollama's cloud features off. The provider's status follows the download (Downloading with a percentage), the start and Ready; once ready, it serves the features it is routed to, and Tenax runs the doctor on it to show its tier. A failed download says why (an unknown model name, a registry it cannot reach) and the console offers to retry it.

apiVersion: tenax.run/v1alpha1
kind: AIProvider
metadata:
  name: local-granite4-tiny-h
spec:
  type: openai
  default: true
  models:
    - name: granite4:tiny-h
      contextWindow: 8192
  local:
    model: granite4:tiny-h
    # resources, storage, storageClass, internet, contextLength, nodeSelector and tolerations are optional

Chart settings (ai.local): enabled (on with ai.enabled), maxServers (3: each server reserves its memory), image, storageClass (empty: the node's disk), pullTimeout, and for clusters behind a proxy proxy, noProxy and caBundleConfigMap. NetworkPolicies need a network plugin that enforces them; without one, the server is still reachable only inside the cluster.

Routing and fallback

Each provider serves one of:

  • Every feature (default): every feature no other provider names.
  • Some features (features): only the ones it names, by priority (lower is asked first).
  • Fallback (fallback): every feature, asked last.

A feature goes to the providers that name it, then to the default ones, then to the fallback ones. The next one is asked when a provider cannot be reached (a local server that is down), refuses its key or does not know the model, is over budget or rate-limited, or answers with JSON that stays invalid after its one repair. A provider's tier plays no part, and a provider the doctor has not measured yet serves too; only a data policy narrower than the feature's (metadata for a feature that sends masked previews) skips a provider. A small local model in front of a larger one is a common setup:

tenax ai add local granite4:tiny-h --serves all
tenax ai add endpoint https://api.openai.com/v1 --model gpt-4.1-mini --secret tenax-ai-openai --serves fallback
tenax ai route openai --serves features --features ask=1,security-posture=1

Live providers

Providers added in the console or with tenax ai add are live: they are not in Git, and the console and the CLI can change what they serve (Change on the providers page, or tenax ai route) and remove them (tenax ai remove). Providers from Git or kubectl show managed in Git and are changed there, or Git would undo the change. To move a live provider to Git, commit the AIProvider the console shows when you add it (or tenax ai add … --dry-run). Adding, changing and removing providers needs the restorer-admin role and is audited.

Add an AI provider offers Anthropic, OpenAI, Google Gemini, DeepSeek and Mistral already filled in (the official base URL, how the key is sent and current models, with a field for any other model), any OpenAI- or Anthropic-compatible endpoint by URL, and models in the cluster. The API key can be typed on the page: Tenax keeps it in the Secret tenax-ai-<provider> (tenax-ai-custom for an endpoint of your own) in its namespace, labelled as managed by Tenax and owned by the providers that use it, so it goes with the last of them; it is never shown again, logged or audited. The chart's ai.consoleKeys lists those Secrets: tenax-api may update only them and tenax-ai may read them ([] turns typing keys off). Keys kept in Git with SOPS or External Secrets stay in Secrets listed in ai.credentialSecrets and are picked under Use an existing Secret; the console never changes a Secret it did not make.

The doctor

Models differ in what they can do reliably. When a provider is created or changed, Tenax measures its tier with a few tiny calls:

Tier Test
T0 Plain text
T1 JSON that matches a schema
T2 One tool call
T3 Uses a tool's result in a second turn

The tier is advice: a hint of what the model handles reliably, never a condition. Which provider serves which feature is only your routing, and a provider that was never measured serves too. As a guide, the workflows that answer in JSON (explaining a backup failure, triage, posture, drill report, forecast) work best with T1 or better, and Ask and the assistant, which call tools, with T2 or better. Run the doctor again at any time:

tenax ai doctor          # every provider
tenax ai doctor local    # one provider
tenax ai providers       # tier, status, tokens today, cost this month

Why did this backup fail?

tenax ai explain shop/orders-20261021-030000

Tenax collects the evidence itself: the backup's status and conditions, the target, the mover Job, its pods' container states and exit codes, the related events, and the tail of the newest pod's log. It masks passwords, tokens, URL credentials and age keys first, and it keeps the evidence within a fixed token budget. The model answers with a verdict (explained or inconclusive), a one-line summary, up to four findings and a proposed fix. Each finding cites evidence IDs such as pod/backup-nightly-7-abcde or log/backup-nightly-7-abcde/42. If an answer cites an ID that does not exist, it is sent back once for repair and otherwise rejected.

A backup that did not fail costs nothing: Tenax says so without calling a model.

The command creates an AIRun object and waits for it. You can also create runs with kubectl, so your RBAC on airuns decides who may ask:

apiVersion: tenax.run/v1alpha1
kind: AIRun
metadata:
  generateName: explain-
  namespace: shop
spec:
  workflow: backup-failure
  backup: orders-20261021-030000
tenax ai runs -A                    # workflow, outcome, tokens and cost
tenax ai show shop/explain-x7k2p    # answer, findings and the evidence they cite

A run survives restarts: after each step its state is written into the AIRun's status, and a new runner continues from the last finished step without repeating the calls already made.

In the console

When the API can read AIProvider objects, the console's sidebar has an AI page. Without a provider, the page says that AI is off and how to turn it on.

  • Overview and Providers: each provider's type, models, routing (default and named features), measured tier as a hint (T0 to T3, not probed or unreachable), status, tokens today and cost this month against its budget, and the time of the last probe. Run doctor (role operator) probes every provider, or one.
  • Runs: every AIRun the API can see, with its workflow, subject, phase, verdict, tokens and cost. A run's page shows the verdict, the summary, each finding with the evidence it cites, the proposed fix, the usage and the providers that answered. It refreshes while the run is in progress.
  • Explain with AI: the page of a failed backup run (Activity, then the run's name) offers this button to operators when a provider serves the feature (one that names it, the default or a fallback); otherwise the page says that no AI provider serves backup-failure explanations yet and links to the AI page. It creates the same AIRun as tenax ai explain.
  • Ask AI to triage: each incident card in a target's History offers this button to operators when a provider serves triage (one that names it, the default or a fallback). It creates the same AIRun as tenax ai triage; the card then links the newest run with its verdict. The run's page shows the proposed rule and the backtest Tenax computed.
  • Apply the rule (role restorer, as for resolving an incident): on a triage run's page, with a reason that is recorded on the rule; a rule the backtest marked unsafe needs the extra checkbox. The target's History lists its detector rules (who applied each, when, why, from which run) with Remove.
  • Reports (role operator): the overview starts a Security posture, a Restore-drill report and a Capacity forecast, for every target or, for the last two, one namespace. A target's page has AI drill report for that target. A principal scoped to some orgs or projects gets only the one-target drill report, since the others look at many targets.

Every workflow can also be started through the REST API: POST /api/v1/ai/runs with {"workflow": "capacity-forecast", "namespace": "shop"} (or backup-failure with namespace and backup, anomaly-triage with target and incident, security-posture, restore-drill with an optional namespace or target, ask with question and followUp, doctor with an optional provider). GET /api/v1/ai/runs and GET /api/v1/ai/runs/{ns}/{name} read runs and their results; POST /api/v1/ai/runs/{ns}/{name}/apply-rule, GET /api/v1/targets/{ns}/{name}/rules and POST /api/v1/targets/{ns}/{name}/rules/{id}/remove manage detector rules. Each operation needs the same role as in the console. Creating an AIRun with kubectl or Git works too.

Evidence and answers are always shown as plain text: links, markup and images inside them are never rendered. The console may read providers and runs, create runs and apply the rules people approve; it never changes a run's status.

The assistant

Since 0.16, every console page has a bar at the top: Search or ask Tenax… (Ctrl+K, or ⌘K on a Mac). Type to find pages, settings, database and volume targets, sandboxes, backup runs and backups by ID; Enter opens the selected suggestion. With nothing selected, or on the last row Ask Tenax, Enter asks the assistant, and its answer appears as it is written in a panel docked on the right (a sheet over the page on small screens). The panel stays open as you move between pages.

The assistant knows which page you are on: a question asked on a backup run's page comes with that run's status and, when it failed, its latest log lines; on a target's page, with that target. It then reads what it needs, as you:

  • any read of the REST API your role allows (targets, backups, windows, history, incidents, runs, restores, sandboxes, volumes, settings, AI runs);
  • the latest log lines of a backup or restore run;
  • Tenax's own pods and recent warning events.

It sees what you could open in the console, nothing more: never credentials, database rows, file contents or previews. Each read appears in the answer as it happens.

It also works the console for you. It can open the page that answers your question, point at the row or chart that matters with a highlight and a note, type into a page's search or filter fields, switch tabs, give a guided tour of a page (Next, Back, Done), and paint a view made for your question (a chart, a timeline, a diagram that explains a concept) in a sandboxed frame with no network and no access to the console. Pin keeps a view at the top of the panel and Full size opens it over the page. With reduced motion, the same steps happen without animation.

The assistant never changes anything by itself. When a change would help (back up now, verify, a restore, a sandbox, pin a backup, resolve an incident…), it offers a card with the exact operation: method, path and body. Run sends exactly that operation, as you, through the same API route, role check and audit as the console's own buttons; nothing the model writes afterwards can change it. A card can be run only by the person it was shown to, only within 10 minutes, and only if their role allows the operation (the assistant does not offer what your role cannot run).

Conversations

Conversations are kept in a backup store (Helm value ai.assistant.store; by default the first store by name), under tenax/assistant/v1/, one folder per user, every object encrypted to the store's catalog key. Each one gets a title from its first answer, which you can rename; the list shows the newest first and loads older ones as you scroll, and scrolling up in a conversation loads its earlier turns. Delete removes a conversation and everything stored for it. Without a catalog key the assistant still answers, but keeps no history.

Long conversations stay quick: once the turns since the last summary pass a budget, the assistant writes a summary of them, and later answers start from that summary and the turns after it. Every turn stays stored and visible.

Turn it on

The assistant needs ai.enabled and a provider that serves the feature assistant (one that names it, the default or a fallback). It calls tools over several rounds, so it works best with a model the doctor measured at tier 2 or better. It is on by default (ai.assistant.enabled); tenax-api sends its model calls to tenax-ai, which keeps the provider keys and budgets, on a port only tenax-api's ServiceAccount may call. Its usage is counted under the feature assistant.

Triage an anomaly

A planned mass change (a weekly cleanup, a migration) opens an anomaly incident just as a bad deploy does. Tenax can ask the model which of the two it was and, for a change that recurs, propose a detector rule that keeps it quiet next time:

tenax incidents shop/orders                    # find the incident ID
tenax ai triage shop/orders 20261025T030000Z

tenax-ai has no store credentials, so the controller collects what the run needs from the store: the incident's signals, the rollouts and Jobs that started just before it, its weekday and hour, the target's baseline and rules, its past incidents with how people resolved them (intended or not, and why), and how often its tables had deletes this large. The model answers intended, suspicious or unknown, with findings that cite evidence IDs such as signal/1, context/1 or past/20261018T030000Z.

For an intended pattern the model proposes one rule:

Kind Effect
ignore-window Hides one kind of signal (mass-delete, truncate, schema-change, rows-drop) inside a recurring window: a cron start, a duration of at most 24 hours and a time zone.
threshold A table's mass-delete thresholds become 2 to 100 times higher.
table-role high-churn: mass deletes and truncates are the table's normal life. append-only and ledger make a table stricter instead; you can set them yourself.

Drops and the sign of data being encrypted (compression-drop) are never hidden, and a hidden signal never teaches the baseline that such deletes are normal.

Code, not the model, then backtests the rule: it replays the target's stored change history with and without the rule, counts the strong and weak signals the rule would have hidden, weakened or added, and names the past incidents they belonged to. A rule that would have hidden a signal of an incident resolved as not intended is marked unsafe.

Verdict:   intended
Rule:      ignore-window-3f2a9c1e: ignore mass-delete on app.public.sessions for 1h0m0s from "0 3 * * 0" (UTC)
Backtest:  504 segments and 3 backups replayed: 3 strong and 0 weak signals hidden, 0 weakened, 0 added
           this incident: 1 of 1 signals hidden or weakened
           incident 20261011T030000Z (intended): 1 signals hidden or weakened

The run applies nothing. A person applies the rule, and the rule records who applied it, why, the run and the backtest:

tenax ai rules apply shop/triage-x7k2p --reason "weekly session cleanup, confirmed with the shop team"
tenax ai rules shop/orders                     # the rules, who applied them and why
tenax ai rules remove shop/orders ignore-window-3f2a9c1e

A rule the backtest marked unsafe is refused without --force, by the command and by the API server. Applying a rule needs patch on the target; closing the incident is still tenax incidents resolve. In the console, a restorer applies it from the run's page and removes it from the target's History.

To triage every new incident automatically, set ai.autoTriage: true in the chart. It is off by default because each run costs tokens, and the runs still only propose.

Security posture

tenax ai posture

In the console: AI → Reports → Security posture (role operator).

Code runs the checks; the model only ranks them, groups those with one cause, explains why each matters and proposes a change in plain text. Each check has a severity that code assigns (critical, high, medium, low), and a finding takes the highest severity of the checks it cites. Every critical and high check must be covered by a finding, or the answer goes back for its one repair.

Check Severity
A store without age recipients critical
Bucket versioning off; a store over plain http outside the cluster high
A target's database user is a superuser or has ALL PRIVILEGES or SUPER (from the newest backup's probe) high
A database server whose release series gets no more security fixes high
Sandbox exposure through a load balancer without expose.service.sourceRanges, or through Cloudflare without an Access policy, and every sandbox exposed that way high
An AI provider that receives its API key over plain http high
A store whose catalog key is also its data key (a catalog recipient that is an age recipient, or both identities in one Secret) high
The console published, or its Service a load balancer or node port, without a login (auth.provider: none: it refuses every request there) medium
Object lock off, scrubbing off, no catalog key medium
Other extra privileges of the database user (createrole, createdb, bypassrls, write privileges) medium
A server older than the first patched release of its series medium
A credentials Secret without the secretPrefix, or an empty secretPrefix medium
An AI provider with dataPolicy: maskedPreviews medium
A target whose database is reached at a public IP address medium
Row previews without any masked column low

The supported releases come from a list built into Tenax (it never looks them up online), updated with each release. The bucket's versioning and object lock, and what the database user may do, live where only the controller can look: it collects them into the run's input, as it does for triage. A clean installation costs nothing: the run says so without calling a model.

The run looks at the whole installation, so it runs in Tenax's namespace, and it changes nothing.

Recommendations

Every check comes with a recommendation written in Tenax's code, not by the model: what to change and where (a chart value, a field of a Tenax resource, a database grant or the server itself), when it applies, a snippet to adapt (a Helm value, an SQL statement or a command, with the objects' names filled in and the values to supply in angle brackets) and a link to the page that explains it. The console shows them under each finding, in your language, with a button that copies the snippet; the API returns them with each finding and in the result's recommendations; tenax ai show -o yaml shows them under status.result.recommendations. The model receives them with the evidence and may tailor and order them, but its proposed change never replaces them.

Recommendations stay generic: for a database server that is out of support or behind on patches, they say to move to a supported series or to the latest minor release of its series and to read the release notes for the security fixes; they never name vulnerabilities or versions beyond Tenax's built-in list.

Restore drill report card

tenax ai drill-report                 # every target (the run lives in Tenax's namespace)
tenax ai drill-report shop            # the targets of one namespace
tenax ai drill-report shop/orders     # one target

In the console: AI → Reports → Restore-drill report (every target, or a namespace), or AI drill report on a target's page.

For each target, code measures five objectives from the verification restores, the policy's objectives and the catalog's verification and scrub tags, and computes a score out of 100 and a grade (A from 90, B from 80, C from 70, D from 60, F below):

Objective Points Met when
rpo 25 (10 when the policy sets no RPO) the newest restorable point is younger than the RPO
rto 25 (10 when the policy sets no RTO) the last passed verification restore took no longer than the RTO
verified-recently 25 a verification passed within maxVerifiedAge (8 days when unset)
last-verification 15 the last verification passed
integrity 10 (5 when nothing was scrubbed yet) backups were scrubbed and none failed or is quarantined

A target that was never verified always gets an F. The model receives the cards as evidence and writes only the summary and the recommendations, worst targets first; it cannot change a grade. The run stores the cards in status.result.grades (grade, score, each objective's status, points, measured value and objective in seconds), so the console can draw them.

Capacity forecast

tenax ai forecast          # every store (the run lives in Tenax's namespace)
tenax ai forecast shop     # the targets of one namespace

In the console: AI → Reports → Capacity forecast (every target, or a namespace).

From the catalog, code fits two trends per target: the stored size of its full backups over time, and its change stream's bytes per day. Each is fitted linearly and exponentially, and the fit with the smaller error is kept (the linear one on a tie); fewer than three points give a flat trend. Assuming the retention keeps as many backups and stream days as today, code forecasts each target and each store at 30, 90 and 180 days with a 95% band, and, when a store sets spec.quota (for example quota: 2Ti; Tenax enforces nothing), the day the forecast reaches it and the earliest day the band does.

The model receives these numbers and the tables with the most net inserted rows in the newest segments, and explains what drives the growth and what could be done; it cannot change a number. The result's forecasts hold, per store and for the ten fastest-growing targets, the observed points, the forecast points with their bands, the model of the fit, its error and the quota dates.

Ask Tenax

tenax ai ask "How far back can I restore shop/orders?"
tenax ai ask --namespace shop "Which targets missed their RPO?"

The model answers a question with a few read-only tools that Tenax implements: list_targets (targets and their health), backup_history, restore_window, incidents and objective_status. It may call several at once, in up to three rounds and at most six calls per run. Each result becomes evidence with an ID such as c2/window, and a fresh prompt then asks for the answer, which must cite those IDs (one repair, then the run fails). The verdict is answered, inconclusive when the tools do not settle it, or refused when the question asks to change something.

An unknown tool, a target outside the run's scope and calls beyond the limit are refused and listed in the result's toolCalls, with the evidence each call produced. Without --namespace the run is created in Tenax's namespace and sees every target; with it, only that namespace's. Ask works best with a provider of tier 2 or better: each round is one model turn that may call tools, and tool results come back as evidence in a new prompt, not as a multi-turn tool conversation, so a tier 3 model has no advantage here.

In the console, ask from the AI page; an answer's page offers Ask a follow-up.

Conversations

A follow-up continues a conversation: tenax ai ask --follow-up <run> "And shop/carts?", or the follow-up box under an answer. The model sees the last four questions and the summaries of their answers (at most 3,000 characters, the oldest dropped first), never their evidence, and its tools look again, so the new answer rests on fresh evidence. A question asked without a follow-up starts a new conversation. The other workflows (explain, triage, posture, drill report, forecast) always start fresh: each answer rests only on the evidence collected for it, so an earlier answer can neither go stale in it nor sway it. Conversations are the ask runs themselves, linked by spec.followUp and the label tenax.run/thread; nothing else is stored.

The Observatory

Since 0.12, the Observatory draws AI answers, the providers and the fleet as 3D scenes you can turn, zoom and click. Every position, size, colour and number comes from Tenax's own data; a model may only suggest which view to show, which evidence is at the heart of the answer, what to emphasise and short captions, and Tenax keeps only what names evidence the run collected (marked view suggested by the model).

  • Fleet galaxy (the AI overview, full screen under AI → Observatory, or View as galaxy on the overview): stores are suns; targets orbit them, further out the older their last good backup, sized by stored bytes and coloured by health; sandboxes are moons, open incidents red flares, AI runs comets. It needs no model.
  • Provider reactors (the AI overview and doctor runs): rings T0 to T3 lit up to the measured tier, and arcs for tokens today and cost this month against the budgets.
  • Each run's page has its workflow's scene, and a Star map of its findings and evidence:
  • Why did this backup fail? Time tunnel: the target's backups as rings, the restorable window as a glow, incidents as red bands, the failure and the cited evidence at their times. A failed backup run's page shows it too.
  • Anomaly triage Change landscape: each table's changed rows over time as pillars of light (red where deletes dominate), the incident as a red slab, past incidents, the proposed rule's ignore windows, and its backtest before and after.
  • Security posture Shield: the installation in a sphere of force, each finding a breach glowing by severity.
  • Restore drill Report card orbits: one orbit per grade, a moon per target sized by its backups and coloured by its grade, a satellite per objective.
  • Capacity forecast Event horizon: observed sizes and the forecast as light trails, the 95% band as a nebula, the quota as a red horizon.
  • Ask Tenax Tool path: the question, the tool calls in order and what each returned, lighting up in turn.

Click an object to see what it is and to highlight its rows on the page; hover a row to find its object. With the view focused, the arrow keys orbit, + and - zoom, [ and ] step through the objects and Enter opens one. Present plays a full-screen tour with captions. Every view also exists as a static picture and as an Explore list, so it works without JavaScript or WebGL, and it stays still when your system asks for reduced motion.

Model canvas

A provider with spec.creative: true (off by default) may also write its own visualization of each answer: HTML, SVG and JavaScript of at most 64 KiB, stored in the run. The console runs it only in a sandboxed frame with no network, no cookies and no access to the console, feeds it the run's own result, and labels it model-generated visualization below the scene Tenax computes. Turning creative off hides existing canvases too. Enable creative only for a model you trust: model-written code runs in the viewer's browser, and although Tenax minimises the data it receives, filters obvious attempts to leave the frame and removes a frame that navigates, a determined canvas could still send its (code-computed, non-sensitive) data to a website.

Usage and cost

Every call is counted. Each provider's status shows its tokens today and its estimated cost this month, and the metrics break both down:

Metric Labels
tenax_ai_tokens_total provider, model, feature, kind (input, cached_input, output)
tenax_ai_cost_total provider, model, feature
tenax_ai_requests_total provider, model, feature, outcome
tenax_ai_runs_total workflow, phase

Budgets are enforced before a call is sent, and the counters survive restarts through the provider's status.

What a model receives

With the default metadata policy: object names, phases, conditions, counts, exit codes, events and log lines, always masked. The model never receives row data, backup contents, credentials or encryption keys. The prompt tells the model to treat all evidence as data, never as instructions, and the code checks every answer against a schema before it is stored.