# Managing Specifications

A **specification** is the category-driven form of [guidance](../reference/specifications.md): a scenario description shared by every generated case, plus categories of variation whose weighted labels shape the mix of cases produced. This page covers the Library of reusable specifications; the other form of guidance, a seed of example requests, is documented in [More Like This](../reference/more-like-this.md).

## Creating a Specification

1. Navigate to **Specifications** in the sidebar.
2. Click the **Create** button.
3. Provide a **Name** and **Description** for the specification.
4. Select the **Corpus Type** — either `docs` (for RAG benchmarks) or `tools` (for tool-calling benchmarks). This determines which corpora the specification can be used with.
5. Use the editor to define your scenario description and categories (see below).
6. Click **Save** to create the specification.

## Specification Editor

The specification editor lets you define the scenario and categories that control benchmark generation:

- **Scenario description** — describe the overall context that holds for *every* generated case.
- **Categories** — add an axis of variation, with labels naming the alternatives along it and probabilities setting how often each is drawn.
- **Validation** — the editor checks for structural errors and schema compliance before saving.
- **Inline error messages** help identify and fix issues.

## Library Browser

The library browser lets you explore pre-built category templates that can be used as building blocks for your specification:

- Browse available templates organized by category.
- Click a template to preview its contents.
- Insert a template into your specification as a starting point, then customize it to your needs.

## Editing Existing Specifications

You can update the name, description, and content of an existing specification by opening it from the list view and making your changes.

## Deleting a Specification

Open the specification detail view and click **Delete** to remove it.

- Users can delete specifications in **Ready** or **Failed** status.
- Example specifications (pre-loaded samples) cannot be deleted.

## Viewing a Benchmark's Applied Guidance

Each benchmark snapshots the guidance it was generated against. To view that snapshot:

1. Open a benchmark from the **Benchmarks** list.
2. In the **Guidance** field on the detail page, click **View specification**. (For a benchmark generated from seed examples the link reads **View seed** instead, and the page is titled **Seed Details**.)
3. The read-only viewer shows that guidance exactly as it was at generation time: the scenario description together with the categories, labels, and percentages for a specification, or with the seed examples for a seed-backed benchmark.

From a specification snapshot you can click **Save to Library** to re-export it as a Library specification. If a Library spec with the same name already exists, you'll be prompted to either pick a different name or overwrite the existing one. Overwriting only updates the template for future use; previously generated benchmarks keep their own snapshots untouched.

Either page also offers **Use in New Benchmark**, which starts a new benchmark from this guidance and the same corpus. It is the same action as **Generate Similar** on the Benchmark Detail page (see [Benchmarks](benchmarks.md)).

## Creating a Benchmark from a Specification

The Benchmark Create wizard takes the specification YAML inline:

- Start a new benchmark and edit the YAML directly in the editor, or
- Click **Load saved spec** in the editor to seed the YAML from a Library spec, then customize from there.

Whatever YAML you submit is snapshotted onto the new benchmark row. Editing or deleting Library specs after the benchmark is created does not affect the snapshot.