WorkLensDocs
    Studio
    concept

    Core concepts

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

    Last updated 2026-09-14 · Markdown

    Summary

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

    Recipeentities · fields · links · rules
    Seedmakes it repeatable
    Runlocally
    Receiptwhat 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.