# Core concepts

> The nine words the rest of the docs assume: recipe, entity, field, relationship, rule, scenario, pack, seed and receipt.

Section: Getting Started · Type: concept · Last updated: 2026-09-14

Everything in WorkLens is one of a small number of things; knowing these nine makes every other page short.

## The picture

Recipe (entities · fields · links · rules) → Seed (makes it repeatable) → Run (locally) → Receipt (what was made)

## The nine

- Recipe — one JSON file (.wl.json) with ten top-level keys: project, region, seed, entities, relationships, scenarios, output and a few more. It is data-free by design; the check command proves it.
- Entity — a table. It declares how many rows it wants and which fields it has.
- Field — a column with a type. Plain types (int, float, date, enum), and identifiers with a check digit: finance.card, or one the recipe declares in type_def (digits, weights, modulus) so every value passes that arithmetic.
- Relationship — a foreign key from a child field to a parent field. The engine orders generation so every key points at a row that exists.
- Rule — a condition on a row (a constraint, a range, a conditional weight, a uniqueness requirement). Enforced while rows are written, and recorded in the receipt.
- Scenario — a named variant of the same recipe: a clean run, a sparse one, one with planted defects. A test suite asks for a scenario by name.
- Pack — local names, addresses, formats and identifier rules for a country or industry. The engine bundles an Australian locale and four domain packs; the values in a pack come from you or your agent, WorkLens supplies the shape and the validation.
- Seed — the number that makes generation deterministic. Same recipe and seed, same bytes, on any machine.
- Receipt — the proof report written with every run: whether it passed, the realism and privacy checks, and a content hash that changes if the data does.

> **And the lock file** — A run from the studio also writes a lock file recording the recipe hash, the pack hashes, the seed and the engine version. Committed next to the recipe, it lets anyone recreate the run exactly and lets a reviewer see which packs produced the values.

## Related

- [Recipe schema](https://theworklens.com/docs/reference/recipe-schema): The 13 top-level keys of a recipe, the minimal example, and what the engine supports and does not — from the schema it serves to agents.
- [Recipe keys](https://theworklens.com/docs/reference/recipe-keys): Every key a WorkLens recipe can declare, grouped the way the engine groups them, with a plain-English line for each.
- [Seeds & determinism](https://theworklens.com/docs/generate/seeds): Same recipe, same seed, same bytes — on any machine. What that guarantee covers, and the three things that change the output.
- [Receipts](https://theworklens.com/docs/proof/receipts): What a run’s proof report contains, field by field, with a real one — and the line between what it proves and what it does not.

_← Previous: [Quickstart](https://theworklens.com/docs/getting-started/quickstart) · Next: [Recipes](https://theworklens.com/docs/recipes) →_

_Canonical: https://theworklens.com/docs/getting-started/core-concepts · This copy: https://theworklens.com/docs/getting-started/core-concepts.md_
