> ## Documentation Index
> Fetch the complete documentation index at: https://docs.infercrane.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Data (design)

> One place for the evaluation and training sets your proofs and trained models use, with their licences, retention, and lineage. The text stays in your account; InferCrane keeps manifests only. Partly built.

# Data

Data is where you see every evaluation and training set: what it is, where it lives, its licence,
when it expires, and which proofs and models used it. You can delete any of them, and the models
built from them are listed so nothing trained on deleted data goes unnoticed. The text of a set
stays in your account. InferCrane keeps a manifest: names, counts, digests, licence, and dates.

> [!WARNING]
>
> This page is partly built. Licences below were read from the datasets' Hugging Face cards on
> 2026-11-26. A card is the publisher's statement, not a legal review.

| Part | State |
| - | - |
| The manifest and its checks (`internal/dataset`), for your own content | Built |
| A task set from your own traffic, with a held-out split and an overlap check: [Evals from your own traffic](https://docs.infercrane.com/features/evals-from-your-traffic.md) | Built |
| Registering, listing, inspecting, and deleting sets by manifest (`/api/v1/datasets`, `infercrane data`) | Built |
| Capture from an endpoint, retention enforced by the agent, deletion receipts, open datasets with reviewed licences, the open dataset catalog file and its download job, the screen | Planned |

## Two rules

* **Never scrape.** A set comes from your own traffic or files, or (planned) from a dataset its
  publisher released under a licence. InferCrane does not crawl websites, forums, or another
  service's outputs. The planned catalog review also asks whether a dataset was itself collected
  that way; no catalog entry has a verdict yet.
* **Your content stays in your account.** Captures, prompt sets, pairs, and graded sets built from
  your traffic live on your volume, in your bucket, or beside your agent. Jobs in your cluster read
  them. The control plane and the hosted dashboard never receive their text.

## Kinds of set

| Kind | Holds | Used for |
| - | - | - |
| `capture` | Prompts sampled from an endpoint after capture was turned on | Raw material for the sets below |
| `prompt_set` | Prompts | Training (the current model answers them) and held-out checks |
| `pairs_set` | Prompts with answers to learn | Training |
| `graded_eval_set` | Prompts with the answers that count as right | Evaluation only: the gate of a proof |
| `task_set` | Items with one gold number or letter | Evaluation only |

A graded set or task set is never trained on. The manifest check refuses `training` for both.

## The manifest

```json theme={"theme":"css-variables"}
{
  "schema": "infercrane.dev/dataset/v1",
  "name": "support-chat-prompts",
  "version": "2026-11-26",
  "kind": "prompt_set",
  "source": "traffic_capture",
  "uses": ["training"],
  "location": {"kind": "customer-bucket", "uri": "s3://acme-ml/infercrane/support-chat/2026-11-26"},
  "content_digest": "sha256:…",
  "records": 9000,
  "bytes": 18874368,
  "license": {"spdx": "LicenseRef-Customer-Owned"},
  "authorship": {"written_by": "people"},
  "consent": {"endpoint": "support-chat", "capture_id": "cap-01", "turned_on_at": "2026-11-01T09:00:00Z", "sample_rate": 0.01},
  "created_at": "2026-11-26T09:00:00Z",
  "expires_at": "2027-02-24T09:00:00Z",
  "derived_from": ["sha256:…"]
}
```

`dataset.DecodeManifest` refuses unknown fields and anything over 64 KiB, and no field is free text:

* `schema`, `kind`, `source`, `uses`, `location.kind`, and `authorship.written_by` take fixed values,
  and `license.spdx` is `LicenseRef-Customer-Owned`.
* `name`, `version`, `consent.endpoint`, `consent.capture_id`, and each generator's `model` and
  `terms` are identifiers of at most 64 characters (128 for a model): letters, digits, and `._-`,
  with `+` in terms and `/` or `:` in a model name.
* `location.uri` is a path in its kind's form, at most 512 characters of letters, digits, and
  `._-/`; `location.revision` is a 40-character commit.
* `content_digest` and the `derived_from` list (at most 16) are sha256 digests.
* `records`, `bytes`, and `consent.sample_rate` are numbers; `training_allowed` is true or false.
* `created_at`, `expires_at`, and `consent.turned_on_at` are times.

| Field | Rule |
| - | - |
| `location.kind` | `customer-volume` (`pvc://NAMESPACE/CLAIM/PATH`), `customer-bucket` (`s3://` or `gs://`), `agent-local` (`local:NAME`, the agent's local eval sets), or `hugging-face` (your repository, `OWNER/NAME` pinned to a 40-character commit) |
| `content_digest` | The sha256 of the set's bytes as stored; it names the set in proofs and reports |
| `license.spdx` | `LicenseRef-Customer-Owned`: only your own content is registered today |
| `authorship` | Who wrote the text: `people`, `models`, `mixed`, or `unknown`, and each generating model with its terms |
| `consent` | Captures and sets derived from them: the endpoint, the capture, when it was turned on, and the sample rate |
| `expires_at` | Required for your content (see [Retention](#retention)) |
| `derived_from` | The digests of the sets this one was cut from, so deletion can follow them |

### Who wrote the content

Text written by a model carries that model's terms:

* A set written by a closed API's model (terms `closed-api`) may train only when **you** record
  that your agreement allows it (`training_allowed` on that generator). InferCrane never makes that
  call for you.
* Text from a model with an open licence names that licence's identifier. Checking that the licence
  allows training on the model's answers comes with the reviewed licences (planned).

### Open datasets (planned)

Registering an open dataset needs a reviewed reading of its licence: what it allows for training and
for evaluation, quoting the clause that says so. That review is not part of this release, so the
manifest check accepts your own content only (`traffic_capture` or `customer_file`) and refuses
`open_dataset`.

## Capture from your traffic (planned)

Capture is the one designed for [trained drafts](https://docs.infercrane.com/features/trained-drafts.md#capture-from-an-endpoint-designed-not-built):
off by default, turned on per endpoint by an operator, only on an endpoint an InferCrane agent
serves in your cluster, prompts only (never answers, headers, keys, user IDs, or addresses), a 1%
sample by default, at most 50,000 records or 2 GiB a capture, written by the agent's data plane to a
volume or bucket you name. Right-sizing adds three things:

* **Scope by API key.** The operator may list the API keys whose requests are sampled, for example
  only an internal application's key. Requests from other keys are never captured.
* **Skipped content.** Requests with images, audio, or tool results are skipped and counted.
* **Optional redaction in your account.** A pattern pass (email addresses, phone numbers, card-like
  numbers) rewrites matches before a record is written and reports how many it changed. It is
  never described as removing all personal data.

The control plane sees capture on or off, counts, bytes, the oldest record's age, the skipped and
redacted counts, and a digest of the record IDs. No text.

## Retention

A manifest of your own content must name its expiry, and the checks refuse one beyond its limit
(built). The limit counts from the creation time the manifest states. The control plane refuses a
creation time more than 5 minutes after its own clock and an expiry already past, so a manifest
dated in the future cannot extend the limit; one dated in the past only shortens it. Deleting a registration and registering the set again starts a new window from the new
registration. Deleting expired files is planned for the agent; until then they are yours to delete.

A plan or run that names a registered set by its digest is refused once that set has expired
(`quality_eval_set_expired`), and when the set is registered for training only
(`quality_eval_set_training_only`): a set that trains a model never proves it. A migration or a model
change also needs graded answers, so a registered set of a kind without them (a capture, a prompt
set, or a pairs set) is refused for those (`quality_eval_set_not_graded`). The plan API, the run API
and Stay optimized's planner make the same check; a Stay optimized policy whose set is refused makes
no run, and its decision says why. When the registry cannot be read, the decision says whether the
set holds is not known, no run is made, and the next check tries again on the same changes. The digest is read trimmed and in lower case, and anything else
than `sha256:` and 64 hex characters is refused (`invalid_quality_eval_set`). A digest that is not
registered is checked by its upload alone, as before. The set is checked once, when the plan or run
is made: a run made before its set expired still reads, and a retried create of it returns it.

An expired registration keeps its first manifest and expiry, so registering the set again alone does
not renew it: delete the registration (`infercrane data delete DIGEST`), then register it again with
a new expiry.

| What | Default | Limit |
| - | - | - |
| A capture | 14 days | 30 days; the agent deletes expired records every hour |
| A set cut from a capture | the capture's expiry | an explicit date up to 365 days from creation, set by an operator and kept in the audit log |
| A set from a file you own | none: you set it | 365 days from creation, then renew or delete |
| A training job's working copy (prompts, teacher answers) | deleted when the job ends | — |
| An open dataset's copy | none | follows its licence |

A model or adapter trained on a set will be listed under that set (planned), whether it was trained
here or imported with the set's digest in its provenance. Deleting the set marks each such
model **trained on deleted data** and asks the operator to keep or delete it. A trained model
cannot be made to forget one record, so the choice is the operator's, and the dashboard shows it
until it is made.

## Deletion

Deleting a set's registration is built (`infercrane data delete`); the set's files are yours, and
you delete them where they live. For a set whose text was uploaded to InferCrane
(`stored_by_infercrane`), `infercrane data delete --with-upload DIGEST`
(`DELETE /api/v1/datasets/{digest}?with_upload=true`) removes the registration and the uploaded copy
in one transaction. It answers with what it removed and how many runs awaiting approval, runs in
progress, and Stay optimized policies still name the set; those wait until the set is uploaded again.
A finished Proof keeps its verdict, but the set's text is gone from InferCrane. A set without an
uploaded copy is refused (`dataset_upload_not_found`) and nothing is deleted. Only `true` and `false`
are accepted for `with_upload`. Without the option the copy stays until
`infercrane evaluation set delete DIGEST`. The rest is planned:

* **A set, a capture, or every capture of an endpoint:** the agent deletes the files with its own
  identity and returns a receipt: counts, the digests of what was deleted, and the time. The
  receipt is kept in the audit log. Turning capture off deletes that endpoint's records within an
  hour.
* **A person's records** (for an erasure request): a search runs in your cluster on text you give
  it, never sent to InferCrane, and returns record IDs and counts. You then delete those records,
  and every set derived from them is cut again or deleted.
* **Versioned buckets:** deleting an object leaves earlier versions. The agent reads the bucket's
  versioning setting and reports it; when it is on, you must also expire earlier versions. When the
  agent cannot read the setting, it says so; it is never assumed off.

## Splits and integrity

For sets cut from your traffic, the build does all three (built):

* **Time split.** Training sets come from traffic up to a date; proof sets from traffic after it.
* **Duplicates.** Exact duplicates (by normalized-text hash) are removed before a split.
* **Overlap.** Requests whose user-visible words (system prompts left out) are an item's, share a run
  of 13 words with one, or hold a whole item of 4 to 12 words are removed from the training side.
  Counts only. Not found: an item asked again in other words, an item of 3 words or fewer inside a
  longer request, a short request that is only part of a longer item, and an item's text inside
  another request's system prompt.

For a model trained on other data, its training sets will be compared with the proof set the same
way before the proof (planned): any exact overlap, or near overlap above 1% of the proof set, makes
the proof UNKNOWN.

* **Fingerprints.** A set is named by `content_digest`; a training report names the sets it read by
  their digests, as the draft report's `dataset_fingerprint` does.

## Open dataset catalog (planned)

Each entry is reviewed before anyone can use it: the licence on the card and in the licence text,
who wrote the content and that model's terms, personal data, commercial use, gating terms, and a
pinned commit. A download job in your account copies a pinned commit into your storage.

Candidates, read from their cards on 2026-11-26. Which uses each licence allows is decided with the
reviewed licences (planned), quoting the clause that allows it; nothing here is a verdict yet:

| Dataset | Commit | Card licence | Written by |
| - | - | - | - |
| `OpenAssistant/oasst1` | `fdf72ae0827c` | Apache-2.0 | people |
| `OpenAssistant/oasst2` | `179dd21fc551` | Apache-2.0 | people |
| `openai/gsm8k` | `740312add88f` | MIT | people |
| `cais/mmlu` | `c30699e8356d` | MIT | people |
| `google/IFEval` | `966cd89545d6` | Apache-2.0 | people |
| `openai/openai_humaneval` | `7dce6050a7d6` | MIT | people |
| `TIGER-Lab/MMLU-Pro` | `b189ec765aa7` | MIT | mixed: options added by a closed API's model |
| `databricks/databricks-dolly-15k` | `bdd27f4d94b9` | CC-BY-SA-3.0 | people |
| `HuggingFaceH4/ultrachat_200k` | `8049631c405a` | MIT | a closed API's model |
| `Open-Orca/SlimOrca` | `ce9ed009ef32` | MIT | a closed API's model |
| `allenai/tulu-3-sft-mixture` | `b14afda60f1b` | ODC-BY-1.0 | mixed; subsets carry their own licences |
| `gorilla-llm/Berkeley-Function-Calling-Leaderboard` | `61fc0608cfd8` | Apache-2.0 | not read |
| `glaiveai/glaive-function-calling-v2` | `e7f4b6456019` | Apache-2.0 | models, not named on the card |
| `Salesforce/xlam-function-calling-60k` | `26d14ebfe18b` | CC-BY-4.0 | models; gated by an agreement |
| `nvidia/Nemotron-Post-Training-Dataset-v2` | `5c89e01dd720` | CC-BY-4.0 | models; gated by an agreement |
| `HuggingFaceTB/smoltalk` | `5feaf2fd3ffc` | none in the card's metadata | not read |
| `HuggingFaceH4/MATH-500` | `6e4ed1a2a79a` | none in the card's metadata | people |
| `allenai/WildChat-1M` | `7d6490e46228` | ODC-BY-1.0 | real users' chats with a closed API |
| `lmsys/lmsys-chat-1m` | `200748d9d3cd` | none; gated by an agreement | real users' chats |
| `anon8231489123/ShareGPT_Vicuna_unfiltered` | `192ab2185289` | Apache-2.0 on the card | conversations collected from a closed API's share pages |
| `teknium/OpenHermes-2.5` | `b82037821055` | none on the card | models |
| `tatsu-lab/alpaca` | `dce01c9b08f8` | CC-BY-NC-4.0 | a closed API's model |
| `HuggingFaceH4/no_robots` | `e6f9a4ac5c37` | CC-BY-NC-4.0 | people |

Commits are shortened here; the catalog will pin the full 40 characters. A gated dataset's agreement is
accepted by you, never by InferCrane.

## What the control plane stores

The `datasets` table (built) holds one registration per tenant and content digest: the name, kind,
record count, the validated manifest and its digest without its dates, the expiry, who registered
it, and when. Registering the same set rebuilt with new dates returns the first registration;
registering another manifest for the same content is refused rather than replacing the first. A
run references a set by its content digest.

Eval sets uploaded with `infercrane evaluation set upload` are the exception: their text is stored
in InferCrane's database (`quality_eval_sets`) because the control plane's check sends them. A
registration says so (`stored_by_infercrane`), and a set kept beside your agent needs no upload for
a run on your own cluster.

## The screen (planned)

One job per screen, little text:

* **Data:** a list of sets with kind, where it lives, records, licence, expiry, and how many proofs
  and models used it. A capture switch per endpoint, with what it stores in one sentence and a
  confirmation.
* **One set:** its manifest in plain words, what used it, and Delete.
* **Advanced:** digests, fingerprints, consent details, and deletion receipts.

The hosted dashboard never shows a set's text. Looking at samples happens in your cluster (the
CLI against your agent), never in a browser page served by InferCrane.

## What is unknown

* Whether a pattern redaction pass is enough for your obligations; it is a tool, not a guarantee.
* How share-alike licences apply to model weights.
* Whether a set of a given size is enough for a given workload.
* Gated datasets' agreements, read per dataset at review.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.