Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
docs: fix accuracy findings from deep review of UI-surfaces docs
Jose Ramirezf828f02f5e3d
diff --git a/README.md b/README.mdindex 0c0a6b0a6..9c6700854 100644--- a/README.md+++ b/README.md@@ -45,12 +45,14 @@ each pillar links to its depth.desktop, and workspace files, plus artifact generation, persistent memory, andhuman-in-the-loop approvals on the risky calls. →[mcp-host/README.md](mcp-host/README.md)-- **Console & client** — the two human surfaces. A **Control UI** console where+- **Console & client** — the two surfaces you work in day to day. A **Control UI** console whereadmins govern the fleet: token usage by team, model, agent, and desktop user;budgets and model prices; per-tool approval overrides; connector egresspolicy; a trust-rated connector registry. And an Electron **Desktop App**where people actually use the agents: chat, a live tool-call view, in-chat- approvals, and artifacts — no Telegram bot and no curl required. →+ approvals, and artifacts — no Telegram bot and no curl required. (A third,+ smaller **Profile UI** is where invited members accept an invite and set a+ password on the way in.) →[docs/surfaces/README.md](docs/surfaces/README.md)- **Connectors (MCP)** — governed MCP servers with per-`Context` allowlistsenforced by NetworkPolicy (not convention); any stdio tool plugs in throughdiff --git a/docs/faq.md b/docs/faq.mdindex c959c0637..15fffdc26 100644--- a/docs/faq.md+++ b/docs/faq.md@@ -74,8 +74,9 @@ matrix: [Which surface is for me?](surfaces/README.md#which-surface-is-for-me).No, for day-2 operations: agents, connectors, channels, and approvals all haveControl UI screens, and each one writes the same CRD you would otherwiseapply by hand. Budgets and the registry are Control UI screens too, but-they are **not** CRD-backed — both live in control-api's own store (Postgres-and the registry catalog), reachable through the Control UI or its API, not+they are **not** CRD-backed: budgets live in control-api's own Postgres, while+the registry catalog lives in a separate registry service that control-api+calls over HTTP (`CLERUM_REGISTRY_URL`). Neither is reachable with`kubectl apply`. Yes, for install and for GitOps — bootstrapping theplatform is still `make` and `kubectl`. See[Quickstart](get-started/quickstart.md) and [Production notes](deploy/production.md).diff --git a/docs/surfaces/README.md b/docs/surfaces/README.mdindex b7f9f4353..ffeadc49b 100644--- a/docs/surfaces/README.md+++ b/docs/surfaces/README.md@@ -48,8 +48,9 @@ access token, and the app can only reach `rpc-proxy` with it (source:reaches `control-api` and nothing else, and every dashboard page sits behindan admin login — it is not an open dashboard (source: `control-ui/README.md`§ Authentication). Neither surface can act as the other: an end user's-Desktop App session cannot reach CRDs, secrets, or usage data, and an admin's-Control UI session cannot invoke agents through `rpc-proxy`.+Desktop App session cannot reach secrets, cost records, or the admin control+plane — its only CRD read is the access-checked `WorkflowRecipe` passthrough —+and an admin's Control UI session cannot invoke agents through `rpc-proxy`.## Where the surfaces are not the answerdiff --git a/docs/surfaces/control-ui.md b/docs/surfaces/control-ui.mdindex 456d3f876..6ec9baf09 100644--- a/docs/surfaces/control-ui.md+++ b/docs/surfaces/control-ui.md@@ -34,13 +34,16 @@ five steps live together.2. **Cap it** — `TokenBudgetTable` (`/cost/token-budgets`) and`LlmPriceTable` (`/cost/llm-prices`): per-1M-token model prices (input,output, cache read/write) and budgets with a scope, a period, and a- progress bar against the limit. Budgets are cost control and fail- open — they are **not** a security boundary. A budget can be set to- `warn` (observation only, never denies) or `block` (denies new tasks once- over the limit), but even a `block` budget's check is fail-open: if the- check itself cannot run — a broken lookup, a transport error — the task is- waved through rather than stopped, so a denial always reflects a real- budget verdict, never an infrastructure hiccup.+ progress bar against the limit. Budgets are cost control and are **not** a+ security boundary. A budget can be set to `warn` (observation only, never+ denies) or `block` (denies new tasks once over the limit). The cross-service+ call is fail-open: if mcp-host cannot reach control-api's budget check — a+ timeout, a transport error, a non-200 — the task is waved through rather+ than stopped (`mcp-host/src/budget/budgetClient.ts`). Inside control-api the+ choice is the opposite and deliberate: a `block` budget whose spend cannot+ be computed denies the task (`budget_eval_error`) rather than silently+ bypass the cap (`control-api/src/services/budgets/check.ts`), while a `warn`+ budget that errors is skipped entirely.3. **Gate it** — `HostApprovalSection` (`components/HostApprovalSection`), onthe host detail page. A per-tool approval editor with three settings —@@ -48,8 +51,11 @@ five steps live together.loosens a tool whose built-in default is Required (for example, setting`shell_exec` or `http_request` to Skip). Approvals are default-on for MCPtools; native tools carry per-tool overrides, and the safe default per- native tool is baked into `mcp-host` — most default to Skip, but- `http_request` and `shell_exec` default to Required. See+ native tool is baked into `mcp-host`. Of the always-on native tools the+ editor lists, only `http_request` and `shell_exec` default to Required and+ the rest to Skip; conditionally-registered tools carry their own defaults+ (`cron_manage` and the desktop `browser_open` / `browser_navigate` tools+ also default to Required). See[Configure approvals](../how-to/configure-approvals.md).@@ -93,8 +99,11 @@ Sidebar destinations map to canonical App Router routes(`components/Sidebar/constants.tsx`). Every route either writes a `clerum.io`custom resource directly or manages a control-api-owned resource that isn't aCRD (registry entries, publisher credentials, users/teams, secrets, outputs,-cost records, settings). See the [CRD reference](../crds/README.md) for the-full schema of each resource.+cost records, global-file resources and grants, settings). See the+[CRD reference](../crds/README.md) for the full schema of each resource. One+caveat to the heading: the `GlobalFileSystem` CRD itself is applied out of band+(kustomize), and the Global Files screen only manages the brokered gfs+resources and grants inside it — it never writes that CR.| Sidebar label | Route | CRD / control-api resource || ------------------ | --------------------------------------------------------- | ---------------------------------------------- |@@ -102,7 +111,7 @@ full schema of each resource.| Connectors | `/mcp-servers` | `McpServer` || Plugins | `/workflow-recipes` | `WorkflowRecipe` || Shared Files | `/shared-filesystems` | `SharedFileSystem` |-| Global Files | `/gfs` | `GlobalFileSystem` |+| Global Files | `/gfs` | gfs resources & grants (non-CRD) || Marketplace | `/registry` | registry (non-CRD) || Publisher | `/publisher` | publisher (non-CRD) || External Channels | `/communication-channels` | `CommunicationChannel` |@@ -116,13 +125,19 @@ full schema of each resource.Secret **values are write-only from the UI**: the Secrets screen lets anadmin create or replace a value, but never displays one back.+The **Publisher** entry appears in the sidebar only when publishing is enabled+for the org (`isPublisherEnabled`, `components/Sidebar/index.tsx`); it is hidden+otherwise.+## How it is wiredThe browser only ever calls same-origin `/control-api/*`. A Next.js routehandler (`app/control-api/[...path]/route.ts`) proxies those requestsserver-side to `CONTROL_API_INTERNAL_URL`, stripping hop-by-hop headers, with-a 30 s upstream timeout. The browser never holds a `control-api` credential-or knows its internal address.+a 30 s upstream timeout. The browser never holds a `control-api` bearer token+and never learns its internal address — the admin session is an HttpOnly+cookie that page JavaScript cannot read, forwarded upstream by the route+handler.```mermaidflowchart LRdiff --git a/docs/surfaces/desktop-app.md b/docs/surfaces/desktop-app.mdindex a4407121e..28a1eea82 100644--- a/docs/surfaces/desktop-app.md+++ b/docs/surfaces/desktop-app.md@@ -6,10 +6,12 @@ a person who is not the platform admin actually drives an agent, with noTelegram bot and no curl in sight. It authenticates through`external-rest-api`, obtains short-lived scoped RPC tokens, and doeseverything else — messages, activity, approvals, sandbox UIs — through-`rpc-proxy`. It **never holds a `control-api` token**: the desktop app cannot-read a CRD, a secret, or a cost record, no matter who is signed in. See [UI-Surfaces](README.md) for how the three consoles divide the platform, and the-[Control UI](control-ui.md) for the admin side of that split.+`rpc-proxy`. It **never holds a `control-api` token**: no secrets, no cost+records, no admin control plane, no matter who is signed in. The one+control-plane resource an end user reads is the `WorkflowRecipe` their user or+team is authorized for, and only through `external-rest-api`'s access-checked+passthrough. See [UI Surfaces](README.md) for how the three consoles divide the+platform, and the [Control UI](control-ui.md) for the admin side of that split.## The daily loop@@ -44,7 +46,7 @@ Surfaces](README.md) for how the three consoles divide the platform, and thereasoning / chain-of-thought content, and it is **read-only** — it isnever used to submit messages, only to observe what is already running.- + *Dev cluster, demo tenant.*6. **Approve the gated call.** When a tool call needs a human decision, the@@ -126,10 +128,12 @@ npm run app # desktop app onlynpm run ui # Control UI, Desktop App, and Profile UI together```-Both commands reuse the same Makefile port-forward targets-(`make minikube-pf-desktop` → control-api on `:8090`, external-rest-api on-`:8091`, rpc-proxy on `:8094`), wait for the ports to become reachable, start+Both commands port-forward the same three services — control-api on `:8090`,+external-rest-api on `:8091`, rpc-proxy on `:8094` — via the+`minikube-pf-control-api`, `minikube-pf-external-api`, and+`minikube-pf-rpc-proxy` targets, wait for the ports to become reachable, startthe frontend process, and tear every port-forward down together on exit.+(`make minikube-pf-desktop` starts the same three forwards standalone.)## Ship it to your users@@ -156,11 +160,22 @@ runs `npm run build` first, via the forge `prePackage` hook):| `make:linux:x64` | linux | x64 || `make:linux:arm64` | linux | arm64 |-Every packaged build needs to be pointed at the services it will talk to at-runtime, the same three variables `desktop-app/README.md` documents for-local development: `EXTERNAL_REST_API_BASE_URL`, `RPC_PROXY_BASE_URL`, and-`MEMBER_REGISTRATION_SERVICE_BASE_URL` — the last has **no working default**;-left unset, it silently falls back to the placeholder `https://example.com`.+You ship **one** packaged app, not a build per customer. A packaged build does+**not** read `EXTERNAL_REST_API_BASE_URL` or `RPC_PROXY_BASE_URL` from the+environment — those apply only to unpackaged dev runs, since+`desktop-app/src/config.ts` gates them behind `!app.isPackaged`. Instead, each+user points the installed app at whatever instance they want — your hosted+service, a teammate's, or local `make`-forwarded services — from the app's own+**Environment** screen: name it, paste the External REST API URL, Save. The RPC+proxy address follows from that environment; there is no second URL to enter.+Environments can also be pre-seeded for a fleet through Profile UI's+`evenfire://desktop-environment` deep link or a `CLERUM_DESKTOP_CONFIG_PATH`+config file.++Two variables **do** apply to a packaged build, read from the environment or+the bundled `.env.prod`: `MEMBER_REGISTRATION_SERVICE_BASE_URL` — which has+**no working default**, so left unset it silently falls back to the placeholder+`https://example.com` — and `REQUEST_TIMEOUT_MS`.Code signing, notarization, and auto-update are **not covered here** — thatwork is deferred, and this page does not say whether the produced artifactsdiff --git a/docs/surfaces/profile-ui.md b/docs/surfaces/profile-ui.mdindex a7b177ba0..722b416a5 100644--- a/docs/surfaces/profile-ui.md+++ b/docs/surfaces/profile-ui.md@@ -20,8 +20,9 @@ Surfaces](README.md) for how the three consoles divide the platform.GET /api/v1/invitations/token/:token` before it renders.3. **They accept it**, then **set a password** on the same screen: theinvitation token, email, invitation id, and new password all go to- `external-rest-api POST /api/v1/invitations/password`; the temporary- invitation session never leaves the server.+ `external-rest-api POST /api/v1/invitations/password`; the invitation+ session token is never returned in the response body or exposed to page+ JavaScript — external-rest-api sets it as an HttpOnly cookie.4. **Profile UI offers a Download Evenfire link** — not an automatichandoff. The member installs the [Desktop App](desktop-app.md)themselves.