Members-only deployments
A members-only deployment is the public graph's code run for one organisation: private material held at labels, people who act under permissions an administrator grants, and the organisation's own systems and files in front of its agents. This page is for the administrator deciding whether to run one, or running one.
One setting makes a deployment members-only: READS=members, which the self-hosting package sets for you. Left at open, its starting value, nothing on this page applies and none of its code runs.
Who is served
Nothing is served to anyone who is not signed in. One hook authenticates every request before its route runs, so a route added in a later release is closed without anyone remembering to close it. People sign in through the organisation's identity provider (OpenID Connect). There is no anonymous read, and no keyless development identity in any environment.
- A member is an account with at least one live permission. What a member may do is the sum of their permissions.
- An account that has signed in and holds nothing is shown only who it is and what it holds, so it can be told it has no access yet and see the identity an administrator will know it by.
- A request with no credential, or with a key that acts for no person, answers
401 SIGN_IN_REQUIRED. A signed-in account with no permission answers403 NOT_A_MEMBER. That holds for an address that does not exist, too. - Reachable without being a member: the health check, the endpoints an MCP client signs in through (it needs them before it holds a credential), the routes that check their own credential (the operator key, Stripe's webhook), and the web app's call that creates an account when a person signs in.
Labels
Every row of the graph carries a label saying who may read it: a node, a judgment, a source and every passage taken from it, an agent run and each step of its log, a mandate, a conversation with the Assistant. Three always exist: public holds the public graph’s own material, as the mirror brings it in; published holds what the organization released outside; and members holds the organization’s own material that every member reads, where work that names no other label is done. Anyone may read the first two, and nothing is filed at either by a person or an agent. An administrator defines more on /admin/labels, and says which labels each one reads: a reader cleared for restricted that reads internal also reads everything internal reads. Labels have no order; the reads are the only relation between them.
A person's clearance is what every member reads (public, published and members), each label a read permission names, and every label those read. Where a deployment holds more than one label, the database itself holds each request's queries to its clearance, so a bug in a route cannot widen what is read. Defining the first label takes about ten seconds while the database turns this on.
Labels also govern what leaves the machine. A model provider or outside service is sent the public graph’s own material, at public, and nothing at any other label until it is cleared for that label (members and published start cleared for each provider set up, and can be unticked): by a holder of clear_providers on /admin/labels, or, where the deployment fixes it in its settings, by PROVIDER_LABELS. A run whose model's provider is not cleared for its label is refused before anything is sent. A node can carry a judgment at each label: an internal assessment of a public claim sits beside the public one and is read only by those cleared for it.
Permissions
Six permissions, each granted on its own, to an account or to a group the identity provider names. One person may hold several, and nothing in the code decides who should hold which.
| Permission | Held | Lets its holder | Never lets anyone |
|---|---|---|---|
direct | Open a mandate and shape it with its Grantmaker, approve its plan, ask a mandate's Correspondent for an update, add sources (among them sets of files they upload), state the organisation's own view on a node, release a node's page to readers who do not read its label, end a standing release, hold a page that has not been released, send the pages a release outside has released to the public graph, and write the words a node is proposed there in. Adopt a request from the public graph. Unless the deployment names another permission for it (PUBLIC_ACTS_BY), act on the public graph in the organisation's name | Edit an assessment or a run's log | |
consent (stored as release) | for one party | Act at a gate on what rests on that party's material: consent, approve, remove a passage from, hold or delay each part of a page or other item going to readers who do not read its label; set the gate for that party's material; consent to the words a node is proposed to the public graph in. For the organisation's own material, send an agent's report, as redacted, to Minerval's maintainers | Edit what the agents wrote, or consent for another party |
fund | Put owls behind work: fund a drafted mandate, add to a mandate or a funded job, back a mandate, and order or fund work on a node or a request | Decide what the work concludes. A Grantmaker can decline a mandate | |
read | at one label | Read what the agents wrote at that label and at the labels it reads | Change anything the agents wrote |
read_sources | at one label | Open the sources themselves at that label, not only what the agents wrote from them | Change a source. A later edit is a new source |
administer | Grant and remove permissions, define labels and which reads which, add parties, say whose material a source is, save the redaction policy of a boundary, sign the statement that registers the deployment's key on the public graph, connect the deployment to the organisation's systems and pick which of their tools agents are offered, register a directory on the deployment's disk as a file set, set up the General mandate, create owls where the deployment creates its own, read and send the usage reports | Act under a permission they have not also been granted, or change who may do what without a log entry | |
clear_providers | Choose, for each label besides public, which model providers and outside services may be sent the text of work at it, on /admin/labels, where the deployment’s settings do not fix that | Read at a label they have not been granted, or clear a provider where the settings fix the clearance |
Every administrative write needs a signed-in session as well as the permission, so a leaked key, an access token, or an agent acting on text it read can never widen what anyone may read or consent to. For the same reason those writes are not MCP tools; the matching reads are (list_permission_grants, list_parties, list_labels). An MCP client or the Assistant is not offered a tool whose route needs a permission its account lacks, and is told which. Taking money back (withdrawing from a mandate, cancelling a grant, job or order) needs no permission, and neither do proposing, contributing or appealing.
A grant to a group reaches every account whose latest sign-in carried that group. A sign-in vouches for its groups for SIGN_IN_VALID_HOURS (12 by default), after which the person signs in again. Grants are never deleted: removing one marks it with who removed it and when, and the log of every grant, removal and administrative act is open to every member on the Activity log (/admin/activity). The last live grant of administer cannot be removed.
The first administrator. Set FIRST_ADMINISTRATOR to your sign-in identity (oidc:<subject>). Your first sign-in, while the deployment has never had an administrator, grants you every permission, at every label and for every party that exists. It works once. If a deployment loses all its administrators, POST /operator/administrators with the operator key grants administer again, and nothing else.
The label a request works at
Reading is held to a clearance. Writing needs one label, and the database lets a request add a row only at the label it works at. Where a deployment has only public, nothing here is asked. Where it has more, every request that writes gets its label in one of two ways, and a missing label is never read as public:
- From the row it is about. A contribution, an appeal, an order, funding, a message in an existing conversation: each writes at the label of the row it concerns. A person who may not read that row is told it does not exist.
- From the person, when they start something new. A source, a proposed node, a granting conversation, a conversation with the Assistant, an API key: the request names
label, among the labels the person may read. There is no default.GET /labels/minelists the choices with who reads each.
Work on a node that already exists (POST /claims/:claim_id/order, /contribute, /decompose, and stating a view) takes an optional label: name one you hold that reads the node's label, and the work and its result are at that label, beside the node's own judgment.
Keys, tokens and the Assistant work at one fixed label, because an agent holds them. An API key's label is named when it is made, an OAuth client's when it is approved, and an Assistant conversation's when it starts. A request made with one reads what that label reads (within the person's clearance), files what it starts at that label with no parameter, and may change a row only at that same label. So an agent cannot choose where something is filed, or read at one label and write at another, whatever text it has read. A key made before the deployment had a second label works at public. A signed-in session has no label of its own, so /mcp takes a key or a token, never a session.
| Code | Status | When |
|---|---|---|
LABEL_REQUIRED | 400 | Something new, and no label named. The answer lists the labels you may name |
LABEL_NOT_READABLE | 403 | A label you may not read, in the same words whether or not it exists |
LABEL_DOES_NOT_READ | 400 | Work on a node at a label that does not read the node's label |
LABEL_FIXED | 400 | A key or token named a label other than its own |
LABEL_MISMATCH | 409 | A key or token tried to change a row at another label |
CREDENTIAL_LABEL_NOT_READABLE | 403 | A key or token whose label its owner may no longer read |
Opening raw sources
read at a label covers what the agents wrote there: nodes, assessments, each recorded passage, an examination's findings. read_sources opens the sources themselves, and is granted label by label: a grant at one label does not open the sources of a label it reads. public sources are open to every member. Where a person lacks it, the text is withheld and a notice names the permission and the label:
| Where | Without read_sources |
|---|---|
GET /sources/:source_id/document (get_source_document) | Each segment without its text or heading (text_withheld). Structure, length and the passages the agents recorded are served |
GET /sources/:source_id/examinations (get_source_examinations) | Each finding without the heading of its segment (headings_withheld). The finding itself is served |
GET /runs/:run_id/steps and one step | The parts of a step that hold a source's text are replaced by the notice; the rest of the step and its hash are served |
Read-only SQL returns no source text at all. What the permission does not protect: a passage an agent quoted from a source is readable by anyone who reads its label, and an agent's own run reads what its label reads, sources included.
Connections
A connection points the deployment at an MCP server over one of the organisation's systems (a warehouse, a wiki, a ticket system), so the agents that weigh evidence can read it where it lives. An administrator adds it at a label they read, names whose system it is and what that party stands to gain or lose, and picks which of the server's tools agents are offered.
- The credential is never stored or shown. The connection names an environment variable starting
CONNECTION_, read at the moment of each call. - Who gets it. The Claim Steward, the Question Steward, and the Researcher when a Steward launched it or it takes up a request, in runs whose label reads the connection's. A mandate's Lookouts may read through it but keep nothing.
- What a call becomes. Each result is stored whole with its hash and time. A result is not a source until the agent keeps it (
keep_reading), which gives it an address to cite. A call is never retried, and is not charged to the run's budget. - Limits the administrator sets: a timeout per call (120 seconds unless set, 5 to 900) and an optional rate across all runs.
Administrators add and manage connections at /admin/connections, under Material in the sidebar. docs/connections.md has the rest.
File sets
A file set brings in files too large or too raw to be a document: a data export, logs, evaluation transcripts, a repository. Every file is hashed when it is added, a set is closed once filled and never changes, and agents explore it in a sandbox with no network, listing, searching and running their own analysis. The scripts and outputs an assessment rests on are kept with it.
- Upload a set (up to
FILE_SET_UPLOAD_MAX_BYTES, 10 GiB unless set) withdirect. - Register a directory already on the deployment's disk with
administer, because whoever registers it decides what label those files get. Nothing is copied. - Either way the set is added at a label the person may read, and is offered to the same three roles as a connection, in runs whose label reads the set's. They get
run_command,open_output,keep_analysisandkeep_file. - Sandbox time is charged to the run's budget at
SANDBOX_HOUR_COST_MICRO_USD(50,000, that is $0.05 an hour, unless set), and the run is told the rate.
docs/file-sets.md has the sandbox, its limits, and what a kept analysis records.
Owls a deployment creates for itself
On the public graph owls are bought. A deployment that pays its own model providers sets OWLS=created: its owls are the organisation's own unit for budgeting its agents' work, one owl for one dollar of metered cost at the prices it is configured with. They are not bought, and never convert to or from owls on the public graph.
- It needs
READS=members, refuses to start beside a Stripe key, and removes the purchase routes. - An administrator creates owls from a signed-in session (
POST /owls/created, or Budget at/admin/budget) into an account's balance or straight into a mandate's budget. Each act is logged with the amount, the recipient and a note. - There is no cap: a ceiling here would be a number nobody chose. In its place,
get_created_owls(GET /owls/created) shows every member how much has been created, by whom, into what, and what the deployment's runs have spent. - No signup or monthly grant is given in any members-only deployment unless it sets one, and with
OWLS=createdneither can be set. - A model the price catalog does not price needs a price in
MODEL_PRICES; withOWLS=createda call to an unpriced model is refused before anything is sent.
No agent work runs except by allocation, so each label whose upkeep and audits are to be paid for needs its own General mandate, set up by an administrator from a signed-in session (Budget, /admin/budget; list_standing_mandates reads it). The administrator sets its pace, the most owls it may commit in a rolling day; where owls are created, its budget is created with it, and where they are sold it is funded from a balance like any mandate.
Between the deployment and the public graph
A members-only deployment can keep a read-only mirror of the public graph, publish redacted pages back to it under a registered signing key, and act there in the organisation's name through the organisation's own account. On the metered price (PUBLIC_GRAPH_PRICE=metered, the starting value) it sends Minerval one figure a day for billing, the owls its runs spent, and never what the work was for. The figure goes privately under the organisation's account and is not published; on the flat price nothing is reported; the Usage tab of Budget (/admin/budget?tab=usage) shows what has been and will be sent. docs/accounts.md, "Members-only deployments" has every route and page.