Architecture
How data governance, agent sandboxing, network isolation and output release control work, in diagrams.
Summary
Researchers keep their web VS Code and coding agent; the system decides which files they see, what they connect to, and what leaves.
- Data governanceThe source exists once, and a workspace sees only the files it is allowed. Every access and change lands in an append-only audit log.
- Agent sandboxingOne container per workspace. Files and credentials are controlled from outside, so being root inside changes nothing.
- Network isolationEach workspace sits on an internal network with no route out. Outbound traffic passes one proxy that applies the workspace's allowlist.
- Output release controlOutputs such as model weights leave only after the researcher approves, and only people who may see all the training data can see them.
- Project reports and dashboardsThe agent files the values of a form an admin set, and the project's members read them on a dashboard. Reports are not outputs, so they are an exception to who can see outputs, and text and pictures are recorded only after the researcher approves.
- Data lineageEvery output links its input data and data versions, the outputs it was built on, and how to reproduce it, so it can be traced back to the source.
- Data versioning and reproducibilityEvery data change makes a new version and old versions are never deleted. Each output keeps its data version, code, environment and reproduce command together.
System map
Data governance
The source exists once, and a workspace sees only hard links to the files it is allowed. Who made and released what from which data is kept in an append-only audit log.
From source to result
- Data lakeSource files are kept read-only. Roles go on folders or files, and paths below inherit them.
- Workspace viewHard links to the chosen files the owner may see. A file without permission is not denied; it is absent.
- WorkspaceThe view is mounted read-only at
/data; work happens in the~/projectwork folder. - Access recordAny data a workspace has ever seen is recorded, and the record never shrinks.
- ResultVisible only to people who may see all the data the workspace saw. Recomputed when source permissions change.
- Audit logSign-ins, commands, previews and downloads, and permission changes go into an append-only log.
Agent sandboxing
So that data stays put when an agent errs or follows instructions hidden in what it reads (prompt injection), the boundary is fixed in advance. The controls sit outside the container, so a researcher who becomes root with sudo changes nothing.
Container isolation boundary
Inside the container
- /dataOnly permitted, chosen files, read-only
- ~/projectWork folder, writable, quota
- /run/secretsClaude token, a read-only file
- /etc/claude-codeManaged agent policy, read-only
- Internal networkOutbound only through the proxy
Not inside the container
- Files without permissionNot denied, simply absent
- Docker socket · privileged modeNo way to drive the server from inside
- DB · storage credentialsNever placed in the container
- Other workspacesSeparate network and address
- Portal credentialsThe agent only requests; the researcher approves. What leaves without approval is the numbers of a report form
Network isolation
A workspace has no route out. Every outbound connection passes the egress proxy, and only what an admin has allowed for that workspace gets through.
Controls
- Internal network per workspace
- Each workspace gets its own Docker
--internalnetwork with no host-side address, so there is no route from the container to the server or another workspace. - Egress proxy and allowlist
- Outbound traffic passes a single Squid proxy. Admins set a template per workspace (Claude API only, package repositories, the whole internet, and so on) plus extra rules; changes apply at once, without a restart.
- No DNS exfiltration
- Containers cannot query external DNS. The proxy resolves names and never looks up a name that no rule allows, so data cannot ride out in DNS queries.
- Name and SNI checks
- The portal, workspace and SSH names are blocked under every rule. The HTTP Host, the CONNECT target and the TLS ClientHello server name (SNI) are checked; traffic is not decrypted.
- Address blocks
- Loopback, link-local (cloud metadata), Docker networks, workspace ranges and this server's gateway and SSH ports open under no rule, and an allowed name that resolves to one of them is refused. The office network is reachable only from workspaces an admin opened it for.
- No IP forwarding
- The gateway, proxy and SSH jump host, which sit on several networks, run with IP forwarding off. An agent that becomes root cannot use them as routers into other networks.
- No inbound ports
- Internet access arrives through Cloudflare Tunnel; no server port is opened to the internet. On-site access uses HTTPS with a wildcard certificate.
- Connection log
- Allowed and blocked connections are logged per workspace and shown by
ws net log.
Output release control
Model weights can memorize their training data, so anyone who cannot see the source should not see the weights either. Outputs therefore leave only through approval, and inherit the permissions of all the data they were trained on.
Example: a model trained on chest CT and health records
Release process
- RequestThe agent can only request a release, through an MCP tool. The request pins each file's size, modification time and hash.
- ApprovalThe researcher sees which files leave and how the audience changes, then approves. If a file changed after the request, nothing runs.
- SnapshotA ZFS snapshot of the work folder, an image of the environment, and the data the workspace saw with its versions are kept together. Only the owner and admins can open them.
- PermissionsThe roles of all the data the workspace saw are combined with AND. Results used as inputs pass on their conditions too.
- RegistrationResult files are copied to an immutable area and hashed. Their size cannot exceed the work folder quota.
- Sharing and viewingA share link checks permission every time it is opened. Previews and downloads go into the audit log.
Release rules
- Recomputed permissions
- When source permissions change, the conditions of results built from it are recomputed and kept in their history next to the previous ones.
- Widening
- Only an admin can widen a result's audience, for example for aggregate statistics. A reason is required, it can be revoked, and it is recorded.
- Reproducibility
- Every result links its reproduce command, work folder snapshot, environment image and data versions, so it can be run again later.
Project reports and dashboards
A project report is not an output. Unlike an output it can be recorded without a person's approval, and every member and admin of the project reads the same reports. What leaves a workspace without a person, and what needs one, is below.
How reports leave a workspace
- Numeric report: no person
- Only the values of the fields an admin named in the form leave, inside the kinds and ranges the form sets and inside a daily limit. Once the checks pass, it is recorded under the researcher's name without the researcher's approval.
- Report with text or pictures: after the researcher approves
- It waits in the server's approval queue, and is recorded only after the researcher approves. The whole text can be read on the approval page, and only a PNG the server rebuilds from the pixels of a picture is recorded. If the file or a picture changes after the request, or the form is saved as a new version, it is not recorded.
- Output: after the researcher approves
- The release steps above, and who can see it is the AND of all the data used.
Storage and calculation
- Not an output
- A report touches neither the access condition of an output nor the workspace's record of data seen. Filing a report does not change the data a workspace has seen.
- Append-only storage
- Report forms, reports, values and withdrawals are stored in append-only tables, and the saved versions of a dashboard are append-only too. Database triggers block edits and deletes, and a withdrawal hides a report instead of deleting it. The bytes of a picture are files in the database folder on the system disk, not in the database; only the rows that point to them are in an append-only table. A recorded picture leaves by one gateway path: first a command checks that the viewer is a member of the project or an admin and records the read, and only then does the gateway send the file. A picture still waiting for approval goes out only to the owner and admins, by the preview path of the approval page.
- Calculated on every read
- The numbers of a dashboard are stored nowhere. The CLI works them out from the project's reports on every read, so a withdrawn report is in no number from the next read on. The browser does not add up or take ratios, and draws the values it is given.
- Written by admins only
- Forms, dashboards, the editor and the data sheet are for admins only, and every action on screen is a CLI command. No tool of the agent reads or changes a dashboard.
Data lineage
The system records which data and which intermediate outputs every output was built from. Without any extra bookkeeping by the researcher, a final model can be traced back to its source data.
Example: a model trained through a preprocessing workspace
What is tracked
- Input data and versions
- Each output records the folders, tables and outputs its workspace saw, with the data version at that time. The record is append-only; it cannot be edited or deleted.
- Links between outputs
- An output built from another output added as data is linked to it. Preprocessing, training and evaluation join into one graph that reaches the source data.
- Reproduction
- Every output links a work folder snapshot, the container image, the reproduce command (
reproduce.sh) and file hashes, so the code and environment can be checked and run again later. - Permission propagation
- A preprocessed output's visibility condition carries into every output that used it. When source permissions change, affected outputs are recomputed in the order they were made.
- Viewer-based graph
- The source graph is drawn for the viewer's permissions. Data and outputs the viewer may not see are shown unnamed as "data you have no access to".
- How links are made
- Pasting a share link to the coding agent turns it into a request to add data. Once the researcher approves, the output is mounted read-only under
/data/releases/and joins the lineage automatically.
Data versioning and reproducibility
The data lake makes a new version with a ZFS snapshot at every change and never deletes old versions. Each output keeps the data version at export time together with its work folder, environment and reproduce command, so it can be run again under the same conditions.
Example: the data versions and reproduction kit of r-0137
How data is versioned
- A version per change
- Every addition, replacement, deletion, permission change or data added to a workspace makes a ZFS snapshot of the whole data lake as a new version (
v0042). Source files are never edited in place; they are replaced with new files. - No physical deletion
- Deleted data stays in earlier versions, which can be opened read-only.
- Versions in use are protected
- A version an output refers to carries a ZFS hold and cannot be deleted. The admin screens have no version deletion either.
- Tables alike
- A table is a folder of Parquet files, so it is versioned the same way as files. No table format (Iceberg, Delta) adds a second layer of versioning.
- Versions a workspace went through
- Each output records every data version its workspace went through; the last is the version at export time.
- Backup
- Replicated to another server or disk with
zfs send. Report picture files live in the database folder and are not in this replication, so they must be backed up with that folder.
What is kept for reproduction
- The data as it was
- The workspace view inside a version is exactly the files the workspace could see then. Reproduction mounts it read-only at
/data. - Work folder
- Code, intermediate files, checkpoints, installed Python packages and the coding agent's conversation are saved in the work folder snapshot.
- Environment
- The container image is saved and its digest recorded. The base image pins the Claude Code and code-server versions with auto-update off, and apt packages stay in the image.
- Reproduce command
- The managed policy tells the agent to fix random seeds and write
reproduce.sh. An export request checks that the file exists; it does not run it.