Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
docs: add "shared and global files" how-to (PR-6)
Jose Ramirezc523359e1069
diff --git a/README.md b/README.mdindex 9f9e4b8eb..27fedc5b6 100644--- a/README.md+++ b/README.md@@ -84,7 +84,8 @@ each pillar links to its depth.- **Files** — `SharedFileSystem` team workspaces (read-only to agents) and abrokered, audited `GlobalFileSystem` drive. →[gfs-controller/README.md](gfs-controller/README.md),- [docs/crds/sharedfilesystem.md](docs/crds/sharedfilesystem.md)+ [docs/crds/sharedfilesystem.md](docs/crds/sharedfilesystem.md),+ [shared & global files how-to](docs/how-to/shared-and-global-files.md)- **Cost & governance** — token budgets per scope with block/warn decisions(opt-in via `CLERUM_BUDGETS_ENABLED`), usage and LLM-price accounting,`WorkflowRecipePolicy`, and a connector-image allowlist. →diff --git a/docs/README.md b/docs/README.mdindex 892f7cab4..282b65bef 100644--- a/docs/README.md+++ b/docs/README.md@@ -54,6 +54,7 @@ Use this index for long-form docs.| [Track usage & set budgets](how-to/token-budgets-and-usage.md) | Enable budgets, scope, block vs warn || [Connect to the registry](how-to/connect-to-registry.md) | Self-hosted registry connect flow || [Publish a plugin](how-to/publish-plugin-to-registry.md) | Publish under your org with an `efrk_` key |+| [Shared & global files](how-to/shared-and-global-files.md) | Team workspaces (SFS) and the brokered drive (GFS) || [Minikube full stack](deploy/minikube.md) | Local Kubernetes platform || [Production notes](deploy/production.md) | Checklist and in-repo deploy assets || [WorkflowRecipes operations](deploy/workflow-recipes-guide.md) | Recipe ops, RBAC, debugging |diff --git a/docs/crds/globalfilesystem.md b/docs/crds/globalfilesystem.mdindex 62bf86842..32bec6e62 100644--- a/docs/crds/globalfilesystem.md+++ b/docs/crds/globalfilesystem.md@@ -33,4 +33,5 @@ declares intent, not full pod specs.## Related- [CRD index](README.md)+- [Shared & global files how-to](../how-to/shared-and-global-files.md) — SFS vs GFS, and when to use each- [gfs-controller](../../gfs-controller/) (service tree)diff --git a/docs/crds/sharedfilesystem.md b/docs/crds/sharedfilesystem.mdindex 4edeb2f5d..83454a5a2 100644--- a/docs/crds/sharedfilesystem.md+++ b/docs/crds/sharedfilesystem.md@@ -41,4 +41,5 @@ Working sample:## Related- [CRD index](README.md)+- [Shared & global files how-to](../how-to/shared-and-global-files.md) — create an SFS, attach it to a Context, upload- [workspace-files-controller](../../workspace-files-controller/) (service tree)diff --git a/docs/get-started/learning-path.md b/docs/get-started/learning-path.mdindex 75dc3005f..1fdf21e86 100644--- a/docs/get-started/learning-path.md+++ b/docs/get-started/learning-path.md@@ -36,6 +36,7 @@ NetworkPolicies matter.4. [Track usage & set budgets](../how-to/token-budgets-and-usage.md) — meter and cap what agents spend5. [WorkflowRecipe CRD reference](../crds/workflowrecipe.md) if you need multi-workload recipes6. Self-host the registry: [connect](../how-to/connect-to-registry.md), then [publish a plugin](../how-to/publish-plugin-to-registry.md)+7. Give agents files: [shared & global files](../how-to/shared-and-global-files.md)**Success looks like:** Control UI up, a Host responding, an approval orconnector path exercised.diff --git a/docs/how-to/shared-and-global-files.md b/docs/how-to/shared-and-global-files.mdnew file mode 100644index 000000000..5f464f5db--- /dev/null+++ b/docs/how-to/shared-and-global-files.md@@ -0,0 +1,88 @@+# How to: shared and global files++evenfire has two ways to give agents files, with different trust models:++- **SharedFileSystem (SFS)** — a per-team workspace. Humans and admins write to+ it; agents in a Context that mounts it get it **read-only**.+- **GlobalFileSystem (GFS)** — a brokered, audited drive. Nothing mounts the+ volume except the broker; every read and write goes through an API that+ authorizes per operation and audits the decision.++## SharedFileSystem — a read-only team workspace++### 1. Create the workspace++Apply a `SharedFileSystem` (or use **Control UI → Shared Files → New**):++```yaml+apiVersion: clerum.io/v1alpha1+kind: SharedFileSystem+metadata:+ name: team-mission+ namespace: mcp-host+spec:+ size: 20Gi+```++`host-context-controller` provisions the PVC and a per-SFS+`workspace-files-controller` that serves the write API. The default PVC is+`ReadWriteOnce` (single-node); for multi-node, set a `ReadWriteMany`+StorageClass via `spec.accessModes`.++### 2. Attach it to a Context++A Context mounts SFSes read-only, by name and path+(`spec.sharedFileSystems`):++```yaml+spec:+ sharedFileSystems:+ - name: team-mission+ mountPath: /shared/mission+```++`mountPath` values must be unique within a Context, and each SFS must already+exist in the `mcp-host` namespace. Every agent (`Host`) using this Context now+sees the workspace read-only at that path.++### 3. Put files in it++Humans and admins write through the workspace API: in Control UI, open the+Shared Filesystem and upload — the request is proxied through control-api to the+per-SFS controller. Agents **cannot** write: their mount is read-only, so an+agent reads the files with its file tools but never mutates them.++## GlobalFileSystem — a brokered, audited drive++A `GlobalFileSystem` is a drive that **no agent, UI, or service mounts** — only+its broker (`gfs-controller`) touches the volume. Everyone else goes through an+HTTP API, and that indirection is the point:++- **Authorized per operation.** Every request is checked against a Postgres+ permission store, deny-by-default, on every call; the bearer token is an+ upper bound on authority, never a grant. An absent resource and an+ unauthorized one are indistinguishable (both `403`).+- **Audited.** Every decision — allow, deny, or error — is written to an+ append-only audit log before the operation is served; no operation runs+ un-audited.+- **Addressed by URI.** Files are named `gfs://<drive>/<resource>` and resolved+ through the API; an agent that holds a grant reads (and, where granted,+ writes) through the broker.++Create one with a `GlobalFileSystem` CRD and manage access from Control UI's+Global Files area. For the full API, the writer/reader roles, and the+authorization chain, see [`gfs-controller`](../../gfs-controller/README.md) and+the [GlobalFileSystem CRD](../crds/globalfilesystem.md).++## Which one?++- Reach for **SharedFileSystem** when a team needs a simple bundle of reference+ files, mounted read-only into the agent.+- Reach for **GlobalFileSystem** when access must be brokered and audited per+ operation, with no volume mounted into the agent at all.++## Related++- [SharedFileSystem CRD](../crds/sharedfilesystem.md) · [GlobalFileSystem CRD](../crds/globalfilesystem.md)+- [Context CRD](../crds/context.md) — how an agent's Context mounts an SFS+- [workspace-files-controller](../../workspace-files-controller/README.md) · [gfs-controller](../../gfs-controller/README.md)diff --git a/docs/llms.txt b/docs/llms.txtindex 2d1e766ce..ffd5a84cb 100644--- a/docs/llms.txt+++ b/docs/llms.txt@@ -37,6 +37,7 @@- Track usage & set token budgets: how-to/token-budgets-and-usage.md- Connect a self-hosted deployment to the registry: how-to/connect-to-registry.md- Publish a plugin to the registry (efrk_ org key): how-to/publish-plugin-to-registry.md+- Shared & global files (SFS team workspace + brokered GFS drive): how-to/shared-and-global-files.md- Minikube full stack: deploy/minikube.md- Production checklist: deploy/production.md- WorkflowRecipes ops: deploy/workflow-recipes-guide.md