Admin

Projects and keys

This page describes the planned account model for the hosted service (organizations, projects, API keys, members and roles) and how the control plane and data plane divide the work.

Status

This is the hosted design. None of it is built yet. The local prototype has no accounts, keys or roles: a project is a data folder on your machine, selected with --data <dir>. Names and shapes on this page may change.

Hierarchy

The planned hierarchy follows the organization, project and key model common to developer platforms.

Level What it holds
Organization Members, billing, usage, deployment and region, and the audit log of admin actions
Project Sources, configuration, prompts, golden sets, eval runs, the scorecard and labels for one body of data
API key Access to one project
  • Every organization has a default project that cannot be deleted, so a new account can ask a question without setting anything up.
  • A project is the unit the API addresses. Every resource path starts with it: /v1/projects/acme/ask.
  • Which answer path runs, the adapters, and the freshness targets are project settings.

API keys

Keys are scoped to a project. The planned console lets an admin create a key, see it once, set an expiry, rotate it and revoke it. A key is sent as a bearer token:

sh
curl https://api.groundwork.dev/v1/projects/acme/ask \
  -H "Authorization: Bearer $GW_KEY" \
  -d '{ "question": "Which carriers raised dental premiums in 2025?" }'

The SDKs read the project from their options:

ts
import { groundwork } from "@groundwork/sdk";

const gw = groundwork({ project: "acme" });
py
from groundwork import Groundwork

gw = Groundwork(project="acme")

How the SDKs pick up the key (an environment variable or an option) is not decided. Only key hashes are stored, in the control plane.

Members and roles

Members belong to the organization and are given a role per project. The planned roles:

Role Can
Viewer Ask questions, read answers, evals and the scorecard
Labeler Everything a viewer can, plus grade, tag and propose labels in the review queue
Approver Accept labels, which turns them into agreed golden rows and canonical values
Admin Manage sources, settings, keys and members

Sign-in is planned as magic link or OIDC, with SSO for the enterprise tier.

Control plane and data plane

The hosted service splits into two planes, the way some evaluation platforms split their hybrid deployments.

Control plane. Always run by us. It holds:

  • accounts, members, roles and key hashes,
  • billing and metering,
  • source configuration and scheduling,
  • the setup flow,
  • the eval workspace and history, the prompt editor and sweep results,
  • signed configuration bundles for the data plane.

It stores names, counts, timings, costs and scores. It never stores documents, chunks, vectors or facts.

Data plane. Runs wherever the customer's depth says: a dedicated account of ours, or the customer's own AWS account. It holds:

  • source adapters and their cursors,
  • the record log and the stage cache,
  • parsed text, chunks, vectors and the graph,
  • golden rows that contain content, and labels,
  • the query API.

The same images run in our accounts and in theirs.

Two rules follow from the split:

  • The browser reads content from the data plane directly, with a short-lived token the control plane issues, so content never passes through our servers.
  • The data plane keeps serving if the control plane is down, on its last configuration.

Deployment depths

Depth Where data lives
Managed A dedicated AWS account of ours per customer. Ships first
Connected The customer's sources stay put; the data plane runs in a dedicated account of ours with read-only access
Customer cloud The data plane runs entirely in the customer's AWS account, installed from a Terraform module or CloudFormation stack

An organization and its projects look the same at every depth. What changes is where each project's data plane runs.

  • Concepts for projects, sources and run ids.
  • Audit in the API reference for the per-answer ledger.
  • Quickstart for the local path that runs today.