{
  "$comment": "Generated by scripts/gen-docs.mjs from apps/website/content/docs. Do not hand-edit.",
  "site": "https://theworklens.com",
  "groups": [
    {
      "id": "getting-started",
      "label": "Getting started",
      "sections": [
        "getting-started"
      ]
    },
    {
      "id": "build",
      "label": "Build data",
      "sections": [
        "recipes",
        "generate",
        "packs"
      ]
    },
    {
      "id": "trust",
      "label": "Trust",
      "sections": [
        "validate",
        "proof"
      ]
    },
    {
      "id": "developers",
      "label": "Developers",
      "sections": [
        "mcp",
        "cli",
        "sdk"
      ]
    },
    {
      "id": "learn",
      "label": "Learn",
      "sections": [
        "examples",
        "guides"
      ]
    },
    {
      "id": "reference",
      "label": "Reference",
      "sections": [
        "reference"
      ]
    }
  ],
  "pages": [
    {
      "id": "best-practices",
      "title": "Best practices",
      "summary": "When an agent asks for the recipe schema, it also receives 21 rules: what to confirm before generating, how to declare a foreign key, what a scalar column is, why entity names must be unique. They are written for a model, but they are the same mistakes a person makes. The 6 marked critical come first.",
      "answer_summary": "Critical rules: FIELDS ARE SCALAR COLUMNS. Never emit an object or array field. A reference to another entity is a scalar id field with ref; a one-to-many… | FOREIGN KEYS NEED BOTH: ref: \"Parent.field\" on the child field AND a matching relationships[] entry (without one, a warning: no line is… | CROSS-FIELD RULES GO IN entities[].constraints, never on a field. \"end after start\" is a constraint, not a field property. | NEVER PUT REAL VALUES IN A RECIPE. It describes shape — names, types, ranges, rules. No sample data, ever. | THE RECIPE COMES FROM THE CODE, NOT FROM HABIT. With repository access, run the task_discovery.procedure sweep: note what the code DOES… | RESTATE BEFORE GENERATING. validate_recipe returns a declaration — the recipe in plain English. Show it to the user and get confirmation…",
      "url": "https://theworklens.com/docs/guides/best-practices",
      "markdown": "https://theworklens.com/docs/guides/best-practices.md",
      "section": "guides",
      "group": "learn",
      "type": "guide",
      "audience": [
        "developer",
        "qa",
        "ai-agent"
      ],
      "keywords": [
        "best practices",
        "rules",
        "guidelines",
        "foreign key",
        "scalar",
        "unique names",
        "validate first",
        "confirm before generate"
      ],
      "concepts": [
        "Recipe",
        "Rules",
        "Relationships",
        "Validation"
      ],
      "questions": [],
      "related": [
        "recipe-schema",
        "recipe-reference",
        "data-validation",
        "mcp-resources"
      ],
      "last_updated": "2026-09-13"
    },
    {
      "id": "cli-check",
      "title": "Check",
      "summary": "worklens check <recipe.wl.json> proves a recipe carries no data: it scans the file for values that look real — an actual TFN, an email, a name in an example — and exits non-zero if it finds any. Run it before a recipe leaves your machine. Validation of the recipe’s structure is a different question, answered by validate_recipe over MCP or by the studio.",
      "answer_summary": "node packages/sdk-node/bin/worklens.js check recipe.wl.json exits 0 when the recipe is data-free and non-zero with findings when it is not. There is no validate or verify command: structure is validate_recipe (MCP) or the studio; receipts are checked at /verify.",
      "url": "https://theworklens.com/docs/cli/check",
      "markdown": "https://theworklens.com/docs/cli/check.md",
      "section": "cli",
      "group": "developers",
      "type": "guide",
      "audience": [
        "developer",
        "qa",
        "compliance"
      ],
      "keywords": [
        "cli",
        "worklens check",
        "check",
        "data-free",
        "leak",
        "pii in recipe",
        "pre-commit",
        "validate",
        "verify"
      ],
      "concepts": [
        "CLI",
        "Check",
        "Data-free recipe",
        "Leaks"
      ],
      "questions": [
        "There is no validate or verify command — what do I use?",
        "Can I run it in CI?"
      ],
      "related": [
        "cli-generate",
        "cli-prove",
        "data-validation"
      ],
      "last_updated": "2026-09-13"
    },
    {
      "id": "cli-flags",
      "title": "Configuration",
      "summary": "The CLI has no config file. Everything is a flag on the command, which is what makes a CI run reproducible: the recipe plus the exact flags is the whole input. Packs are process-local, so a CI job passes --pack on every run; row counts declared in the recipe win over --rows; and a seed on the command pins the output.",
      "answer_summary": "CLI options: --pack FILE, --rows N, --seed N, --scenario S, --format F, --root E, --slice N, -o FILE, --out-dir DIR, --no-gitignore. There is no configuration file; flags on the command are the complete input to a run.",
      "url": "https://theworklens.com/docs/cli/configuration",
      "markdown": "https://theworklens.com/docs/cli/configuration.md",
      "section": "cli",
      "group": "developers",
      "type": "reference",
      "audience": [
        "developer",
        "platform"
      ],
      "keywords": [
        "configuration",
        "options",
        "flags",
        "cli flags",
        "--seed",
        "--rows",
        "--pack",
        "--format",
        "--scenario",
        "--out-dir",
        "--slice",
        "--root",
        "no config file"
      ],
      "concepts": [
        "CLI",
        "Options",
        "Flags",
        "Seed",
        "Output formats"
      ],
      "questions": [
        "Is there a config file or environment variable?"
      ],
      "related": [
        "cli-generate",
        "cli-prove",
        "cli-packs"
      ],
      "last_updated": "2026-09-13"
    },
    {
      "id": "cli-generate",
      "title": "Generate",
      "summary": "worklens generate <recipe.wl.json> [opts] turns a recipe into data, locally. With no options it writes CSV to stdout with the recipe’s row counts; --format picks json, sql or nested, -o writes a file, --seed pins the bytes, --scenario picks a named condition and --slice pulls a referential subset. The same recipe and seed give the same bytes on every machine.",
      "answer_summary": "node packages/sdk-node/bin/worklens.js generate recipe.wl.json --seed 42 --format json -o data.json. Options: --pack, --rows, --seed, --scenario, --format, --root, --slice, -o, --out-dir, --no-gitignore.",
      "url": "https://theworklens.com/docs/cli/generate",
      "markdown": "https://theworklens.com/docs/cli/generate.md",
      "section": "cli",
      "group": "developers",
      "type": "guide",
      "audience": [
        "developer",
        "qa",
        "platform"
      ],
      "keywords": [
        "cli",
        "worklens generate",
        "generate",
        "csv",
        "json",
        "sql",
        "nested",
        "--seed",
        "--format",
        "--slice",
        "--rows",
        "stdout"
      ],
      "concepts": [
        "CLI",
        "Generate",
        "Output formats",
        "Seed"
      ],
      "questions": [
        "Why does --rows not change my row counts?",
        "How do I get a small, consistent subset?"
      ],
      "related": [
        "cli-installation",
        "cli-flags",
        "determinism",
        "output-formats"
      ],
      "last_updated": "2026-09-13"
    },
    {
      "id": "cli-installation",
      "title": "Installation",
      "summary": "The CLI lives in packages/sdk-node and ships its engine as WebAssembly, so there is nothing to compile; it needs Node.js 18 or newer.",
      "answer_summary": "Clone the repository, ensure Node.js 18+, and run node packages/sdk-node/bin/worklens.js. There is no build step; the engine is bundled as WebAssembly. The package is not published to npm yet, so npx worklens does not work today.",
      "url": "https://theworklens.com/docs/cli/installation",
      "markdown": "https://theworklens.com/docs/cli/installation.md",
      "section": "cli",
      "group": "developers",
      "type": "guide",
      "audience": [
        "developer",
        "platform"
      ],
      "keywords": [
        "install",
        "installation",
        "setup",
        "node",
        "npm",
        "npx",
        "cli",
        "requirements",
        "checkout",
        "repository"
      ],
      "concepts": [
        "CLI",
        "Node.js",
        "Installation"
      ],
      "questions": [
        "Why is it not on npm?",
        "Windows, macOS, Linux?"
      ],
      "related": [
        "cli-generate",
        "cli-flags",
        "sdk-libraries"
      ],
      "last_updated": "2026-09-14"
    },
    {
      "id": "cli-packs",
      "title": "Packs on the command line",
      "summary": "load a pack before generating; repeatable. Packs are process-local, so CI must pass them on every run — commit the pack next to the recipe and repeat the flag. Nothing ships with WorkLens, so a recipe that needs a pack needs the pack file on the command; the run fails with the missing token otherwise. Keep the pack next to the recipe, commit both, and repeat the flag in CI.",
      "answer_summary": "node packages/sdk-node/bin/worklens.js generate recipe.wl.json --pack ./packs/my-locale.json — repeatable, one --pack per file. Packs are process-local, so every run, including CI, passes the flag again. Nothing is bundled — no locale and no domain recipe; every pack a run uses is one you pass or your AI assistant registers.",
      "url": "https://theworklens.com/docs/cli/packs",
      "markdown": "https://theworklens.com/docs/cli/packs.md",
      "section": "cli",
      "group": "developers",
      "type": "guide",
      "audience": [
        "developer",
        "platform"
      ],
      "keywords": [
        "cli",
        "--pack",
        "pack",
        "packs",
        "locale pack",
        "domain pack",
        "ci",
        "missing pack",
        "manifest.requires"
      ],
      "concepts": [
        "CLI",
        "Packs",
        "Locale pack",
        "Domain pack"
      ],
      "questions": [
        "The run says a pack is missing — what now?"
      ],
      "related": [
        "packs-locale",
        "packs-domain",
        "packs-custom",
        "cli-generate"
      ],
      "last_updated": "2026-09-13"
    },
    {
      "id": "cli-prove",
      "title": "Prove & bundle",
      "summary": "worklens prove <recipe.wl.json> [opts] writes the proof for a recipe as JSON: realism, privacy, independent verification and a tamper-evident receipt. worklens bundle <recipe.wl.json> [opts] is the one most people want — a run folder with the data, a copy of the recipe, proof.json and proof.html, a manifest, and a .gitignore for the data so the recipe is what gets committed. Both accept every generate option.",
      "answer_summary": "node packages/sdk-node/bin/worklens.js bundle recipe.wl.json --seed 42 --out-dir my-run writes my-run/ with data, recipe.wl.json, proof.json, proof.html and manifest.json. node packages/sdk-node/bin/worklens.js prove recipe.wl.json writes only the proof JSON.",
      "url": "https://theworklens.com/docs/cli/prove",
      "markdown": "https://theworklens.com/docs/cli/prove.md",
      "section": "cli",
      "group": "developers",
      "type": "guide",
      "audience": [
        "developer",
        "qa",
        "platform",
        "compliance"
      ],
      "keywords": [
        "cli",
        "worklens prove",
        "worklens bundle",
        "prove",
        "bundle",
        "proof.json",
        "proof.html",
        "manifest",
        "evidence",
        "receipt",
        "--out-dir"
      ],
      "concepts": [
        "CLI",
        "Prove",
        "Bundle",
        "Receipt",
        "Evidence bundle"
      ],
      "questions": [
        "Which command gives me everything in one go?",
        "How do I check a proof later?"
      ],
      "related": [
        "cli-generate",
        "proof-receipts",
        "cli-flags"
      ],
      "last_updated": "2026-09-13"
    },
    {
      "id": "cli",
      "title": "CLI",
      "summary": "Use WorkLens directly from your terminal.",
      "answer_summary": "One script, six commands: derive reads a file into a recipe; check proves a recipe is data-free; generate, prove and bundle run it. Everything happens locally and every flag is on the command, which is what makes a CI run reproducible.",
      "url": "https://theworklens.com/docs/cli",
      "markdown": "https://theworklens.com/docs/cli.md",
      "section": "cli",
      "group": "developers",
      "type": "overview",
      "audience": [
        "developer",
        "qa",
        "platform",
        "compliance",
        "ai-agent"
      ],
      "keywords": [
        "cli",
        "command line",
        "terminal",
        "worklens",
        "generate",
        "check",
        "prove",
        "bundle",
        "ci"
      ],
      "concepts": [
        "CLI",
        "Commands"
      ],
      "questions": [],
      "related": [
        "cli-installation",
        "cli-flags",
        "sdk"
      ],
      "last_updated": "2026-09-14"
    },
    {
      "id": "core-concepts",
      "title": "Core concepts",
      "summary": "Everything in WorkLens is one of a small number of things; knowing these nine makes every other page short.",
      "answer_summary": "Recipe: the JSON file declaring what to make. Entity: a table. Field: a column with a type. Relationship: a foreign key between entities. Rule: a condition rows must satisfy. Scenario: a named variant of the recipe. Pack: local names, formats and identifiers for a country or industry. Seed: the number that makes a run reproducible. Receipt: the record of what was generated and checked.",
      "url": "https://theworklens.com/docs/getting-started/core-concepts",
      "markdown": "https://theworklens.com/docs/getting-started/core-concepts.md",
      "section": "getting-started",
      "group": "getting-started",
      "type": "concept",
      "audience": [
        "developer",
        "qa",
        "platform",
        "compliance",
        "ai-agent"
      ],
      "keywords": [
        "concepts",
        "glossary",
        "recipe",
        "entity",
        "field",
        "relationship",
        "rule",
        "scenario",
        "pack",
        "seed",
        "receipt",
        "lock file",
        "terminology"
      ],
      "concepts": [
        "Recipe",
        "Entity",
        "Field",
        "Relationship",
        "Rule",
        "Scenario",
        "Pack",
        "Seed",
        "Receipt"
      ],
      "questions": [],
      "related": [
        "recipe-schema",
        "recipe-reference",
        "determinism",
        "proof-receipts"
      ],
      "last_updated": "2026-09-14"
    },
    {
      "id": "data-validation",
      "title": "How validation works",
      "summary": "Validation happens twice: the recipe before a run, and the data after it.",
      "answer_summary": "WorkLens validates the recipe before generating (structure, satisfiability, a one-row dry run, and a list of declared-but-not-executed requirements) and validates the data after generating (formulas, checksums, ranges, allowed values, uniqueness), reporting each check with counts in the proof report.",
      "url": "https://theworklens.com/docs/validate/how-it-works",
      "markdown": "https://theworklens.com/docs/validate/how-it-works.md",
      "section": "validate",
      "group": "trust",
      "type": "concept",
      "audience": [
        "developer",
        "qa",
        "ai-agent"
      ],
      "keywords": [
        "validation",
        "validate",
        "check",
        "validate_recipe",
        "data-free",
        "dry run",
        "declared not executed",
        "realism checks",
        "quality"
      ],
      "concepts": [
        "Validation",
        "Recipe",
        "Receipt",
        "Realism"
      ],
      "questions": [
        "Where do I run the recipe check?"
      ],
      "related": [
        "proof-receipts",
        "best-practices",
        "troubleshooting",
        "mcp-tools"
      ],
      "last_updated": "2026-09-14"
    },
    {
      "id": "determinism",
      "title": "Seeds & determinism",
      "summary": "A recipe carries a seed, and running it again produces byte-identical output on any machine, because the engine is the same WebAssembly wherever it runs.",
      "answer_summary": "WorkLens is deterministic: the same recipe with the same seed produces the same bytes on any machine. The output changes only if the recipe, the seed or the engine version changes; the receipt records all three so a file can be traced to what produced it.",
      "url": "https://theworklens.com/docs/generate/seeds",
      "markdown": "https://theworklens.com/docs/generate/seeds.md",
      "section": "generate",
      "group": "build",
      "type": "concept",
      "audience": [
        "developer",
        "qa",
        "platform",
        "ai-agent"
      ],
      "keywords": [
        "determinism",
        "deterministic",
        "reproducible",
        "repeatable",
        "seed",
        "same bytes",
        "byte-identical",
        "identical",
        "ci",
        "flaky"
      ],
      "concepts": [
        "Determinism",
        "Seed",
        "Engine version",
        "Receipt"
      ],
      "questions": [
        "Is it the same on macOS, Windows and Linux?",
        "What if I want different data?"
      ],
      "related": [
        "proof-receipts",
        "core-concepts",
        "cli-flags"
      ],
      "last_updated": "2026-09-14"
    },
    {
      "id": "docs-home",
      "title": "WorkLens Docs",
      "summary": "Generate deterministic synthetic test data locally, with proof.",
      "answer_summary": "WorkLens turns a recipe — a JSON file declaring tables, fields, rules and relationships — into deterministic synthetic test data on your own machine, and writes a receipt stating what was asked for and what was made. The same recipe and seed produce the same bytes on any machine.",
      "url": "https://theworklens.com/docs",
      "markdown": "https://theworklens.com/docs/index.md",
      "section": "getting-started",
      "group": "getting-started",
      "type": "home",
      "audience": [
        "developer",
        "qa",
        "platform",
        "compliance",
        "ai-agent"
      ],
      "keywords": [
        "docs",
        "documentation",
        "overview",
        "synthetic data",
        "test data",
        "recipe",
        "receipt",
        "deterministic",
        "local-first",
        "llms.txt"
      ],
      "concepts": [
        "Recipe",
        "Deterministic generation",
        "Receipt",
        "MCP",
        "CLI"
      ],
      "questions": [
        "Does WorkLens send my files to a server?",
        "Can WorkLens generate the same data again?",
        "Does WorkLens prove my application is correct?"
      ],
      "related": [
        "getting-started",
        "recipes",
        "mcp"
      ],
      "last_updated": "2026-09-14"
    },
    {
      "id": "example-homepage-demo",
      "title": "Homepage demo",
      "summary": "Homepage demo — two linked tables. 2 tables (Customer, Order), 18 rows as declared, 1 relationship, 0 scenarios. Seed 20260912, so running it reproduces exactly the data described here.",
      "answer_summary": "examples/homepage-demo.wl.json: 2 tables, 1 relationships, 0 scenarios, seed 20260912. Uses constraints, derive, max, min, ref, relationships, rows, seed, shape, type, unique, values, weights, weights_when. Run: node packages/sdk-node/bin/worklens.js bundle examples/homepage-demo.wl.json --out-dir run.",
      "url": "https://theworklens.com/docs/examples/homepage-demo",
      "markdown": "https://theworklens.com/docs/examples/homepage-demo.md",
      "section": "examples",
      "group": "learn",
      "type": "example",
      "audience": [
        "developer",
        "qa",
        "ai-agent"
      ],
      "keywords": [
        "example",
        "sample recipe",
        "homepage-demo",
        "customer",
        "order",
        "starter"
      ],
      "concepts": [
        "Example",
        "Recipe",
        "Starter"
      ],
      "questions": [],
      "related": [
        "examples",
        "cli-prove",
        "example-insurance-group",
        "example-vehicle-rental"
      ],
      "last_updated": "2026-09-13"
    },
    {
      "id": "example-insurance-group",
      "title": "Suncorp-shaped general insurance group",
      "summary": "Suncorp-shaped general insurance group. 20 tables (Intermediary, Quote, Policy, PolicyParty, InsuredRisk, CommercialPolicy, CatastropheEvent, PropertyClaim, SupplierWorkOrder, MotorClaim, …), 109,400 rows as declared, 23 relationships, 8 scenarios. Seed 20260826, so running it reproduces exactly the data described here.",
      "answer_summary": "examples/insurance-group.wl.json: 20 tables, 23 relationships, 8 scenarios, seed 20260826. Uses column, constraints, derive, max, min, params_when, pattern, ref, relationships, rows, scenarios, seed, sensitivity, shape, table, type, type_def, unique, values, weights, weights_when. Run: node packages/sdk-node/bin/worklens.js bundle examples/insurance-group.wl.json --out-dir run.",
      "url": "https://theworklens.com/docs/examples/insurance-group",
      "markdown": "https://theworklens.com/docs/examples/insurance-group.md",
      "section": "examples",
      "group": "learn",
      "type": "example",
      "audience": [
        "developer",
        "qa",
        "ai-agent"
      ],
      "keywords": [
        "example",
        "sample recipe",
        "insurance-group",
        "intermediary",
        "quote",
        "policy",
        "policyparty",
        "insuredrisk",
        "commercialpolicy",
        "catastropheevent",
        "propertyclaim",
        "supplierworkorder",
        "motorclaim",
        "thirdpartymatter",
        "recoveryaction",
        "advanced"
      ],
      "concepts": [
        "Example",
        "Recipe",
        "Advanced"
      ],
      "questions": [],
      "related": [
        "examples",
        "cli-prove",
        "example-homepage-demo",
        "example-vehicle-rental"
      ],
      "last_updated": "2026-09-13"
    },
    {
      "id": "example-vehicle-rental",
      "title": "vehicle-rental",
      "summary": "vehicle-rental. A worked, COMMENTED example of the recipe language at medium complexity. Every _-prefixed key in this file is a comment: the engine does not execute them, validate_recipe records them in declared_not_executed, and they are the only supported way to annotate a recipe. There is no note key. 4 tables (Branch, Vehicle, Customer, Hire), 662 rows as declared, 5 relationships, 8 scenarios. Seed 20260901, so running it reproduces exactly the data described here.",
      "answer_summary": "examples/vehicle-rental.wl.json: 4 tables, 5 relationships, 8 scenarios, seed 20260901. Uses after, aggregate, column, constraints, derive, fanout, flow, from, max, min, month_weights, no_overlap, nullable, params_when, pattern, present_when, ref, relationships, role, rollup, rows, scenarios, scope, seed, sensitivity, shape, table, tree, type, type_def, unique, values, weights, weights_when. Run: node packages/sdk-node/bin/worklens.js bundle examples/vehicle-rental.wl.json --out-dir run.",
      "url": "https://theworklens.com/docs/examples/vehicle-rental",
      "markdown": "https://theworklens.com/docs/examples/vehicle-rental.md",
      "section": "examples",
      "group": "learn",
      "type": "example",
      "audience": [
        "developer",
        "qa",
        "ai-agent"
      ],
      "keywords": [
        "example",
        "sample recipe",
        "vehicle-rental",
        "branch",
        "vehicle",
        "customer",
        "hire",
        "intermediate"
      ],
      "concepts": [
        "Example",
        "Recipe",
        "Intermediate"
      ],
      "questions": [],
      "related": [
        "examples",
        "cli-prove",
        "example-homepage-demo",
        "example-insurance-group"
      ],
      "last_updated": "2026-09-13"
    },
    {
      "id": "example-whole-company",
      "title": "Northwind Supply Co",
      "summary": "Northwind Supply Co — a whole company. 8 tables (Office, Employee, Customer, Supplier, Product, Order, OrderLine, Invoice), 20,861 rows as declared, 10 relationships, 6 scenarios. Seed 20260826, so running it reproduces exactly the data described here.",
      "answer_summary": "examples/whole-company.wl.json: 8 tables, 10 relationships, 6 scenarios, seed 20260826. Uses column, constraints, derive, max, min, params_when, pattern, ref, relationships, rows, scenarios, scope, seed, sensitivity, shape, table, type, type_def, unique, values, weights, weights_when. Run: node packages/sdk-node/bin/worklens.js bundle examples/whole-company.wl.json --out-dir run.",
      "url": "https://theworklens.com/docs/examples/whole-company",
      "markdown": "https://theworklens.com/docs/examples/whole-company.md",
      "section": "examples",
      "group": "learn",
      "type": "example",
      "audience": [
        "developer",
        "qa",
        "ai-agent"
      ],
      "keywords": [
        "example",
        "sample recipe",
        "whole-company",
        "office",
        "employee",
        "customer",
        "supplier",
        "product",
        "order",
        "orderline",
        "invoice",
        "intermediate"
      ],
      "concepts": [
        "Example",
        "Recipe",
        "Intermediate"
      ],
      "questions": [],
      "related": [
        "examples",
        "cli-prove",
        "example-homepage-demo",
        "example-insurance-group"
      ],
      "last_updated": "2026-09-13"
    },
    {
      "id": "examples",
      "title": "Examples",
      "summary": "See how real requirements become WorkLens recipes.",
      "answer_summary": "Each example is a complete recipe from the repository, with its own seed, so running it reproduces exactly the data described. From two linked tables to a general insurer across twenty; every page lists the tables, links, scenarios and capabilities the recipe uses, and the one command that runs it.",
      "url": "https://theworklens.com/docs/examples",
      "markdown": "https://theworklens.com/docs/examples.md",
      "section": "examples",
      "group": "learn",
      "type": "overview",
      "audience": [
        "developer",
        "qa",
        "platform",
        "compliance",
        "ai-agent"
      ],
      "keywords": [
        "examples",
        "sample recipes",
        "templates",
        "insurance",
        "vehicle rental",
        "company",
        "starter"
      ],
      "concepts": [
        "Examples",
        "Recipe",
        "Templates"
      ],
      "questions": [],
      "related": [
        "recipes",
        "quickstart",
        "cli-prove"
      ],
      "last_updated": "2026-09-14"
    },
    {
      "id": "faq",
      "title": "FAQ",
      "summary": "Short answers to the questions that come up before anything else, each pointing at the page that goes deeper.",
      "answer_summary": "Files do not leave the device through the generation data path. Same recipe and seed reproduce the same bytes. The receipt proves the data matched the recipe, not that your code is correct. WorkLens is not open source, though the recipe format is an open specification. Australian packs are bundled today. The studio generates up to 1,000,000 rows per run. No account is needed.",
      "url": "https://theworklens.com/docs/guides/faq",
      "markdown": "https://theworklens.com/docs/guides/faq.md",
      "section": "guides",
      "group": "learn",
      "type": "guide",
      "audience": [
        "developer",
        "qa",
        "platform",
        "compliance",
        "ai-agent"
      ],
      "keywords": [
        "faq",
        "questions",
        "upload",
        "privacy",
        "open source",
        "account",
        "rows",
        "limits",
        "countries",
        "packs",
        "repeat"
      ],
      "concepts": [
        "FAQ"
      ],
      "questions": [
        "Does WorkLens send my files to a server?",
        "Can it generate the same data again?",
        "Does the receipt prove my application is correct?",
        "Is WorkLens open source?",
        "Which countries are supported?",
        "How much data can one run make?",
        "Do I need an account?"
      ],
      "related": [
        "introduction",
        "determinism",
        "proof-receipts",
        "troubleshooting"
      ],
      "last_updated": "2026-09-14"
    },
    {
      "id": "generate",
      "title": "Generate",
      "summary": "Turn a validated recipe into deterministic synthetic data.",
      "answer_summary": "Generation takes a recipe and a seed and writes rows that obey every declaration, identically on every machine. The seed makes it repeatable; the format flag decides CSV, JSON, SQL, nested or fixed-width. The studio generates up to 1,000,000 rows per run.",
      "url": "https://theworklens.com/docs/generate",
      "markdown": "https://theworklens.com/docs/generate.md",
      "section": "generate",
      "group": "build",
      "type": "overview",
      "audience": [
        "developer",
        "qa",
        "platform",
        "compliance",
        "ai-agent"
      ],
      "keywords": [
        "generate",
        "generation",
        "seed",
        "output",
        "formats",
        "csv",
        "json",
        "sql",
        "rows"
      ],
      "concepts": [
        "Generate",
        "Seed",
        "Output formats"
      ],
      "questions": [],
      "related": [
        "determinism",
        "cli-generate",
        "proof"
      ],
      "last_updated": "2026-09-14"
    },
    {
      "id": "getting-started",
      "title": "Getting Started",
      "summary": "Go from zero to synthetic data in about 5 minutes.",
      "answer_summary": "Open the studio (no install) or run the CLI from a checkout, load or draft a recipe, press Generate, and keep the data with its receipt. The pages in this section take each step in turn.",
      "url": "https://theworklens.com/docs/getting-started",
      "markdown": "https://theworklens.com/docs/getting-started.md",
      "section": "getting-started",
      "group": "getting-started",
      "type": "overview",
      "audience": [
        "developer",
        "qa",
        "platform",
        "compliance",
        "ai-agent"
      ],
      "keywords": [
        "getting started",
        "start",
        "quickstart",
        "install",
        "first dataset",
        "introduction",
        "tutorial"
      ],
      "concepts": [
        "Getting started",
        "Studio",
        "Recipe",
        "Generate"
      ],
      "questions": [],
      "related": [
        "recipes",
        "cli",
        "mcp"
      ],
      "last_updated": "2026-09-14"
    },
    {
      "id": "guides",
      "title": "Guides",
      "summary": "Rules worth following, worked use cases, and answers.",
      "answer_summary": "Short guides that sit beside the reference: the rules the engine gives an agent before it drafts, the situations the product is built for, and the questions that come up before anything else.",
      "url": "https://theworklens.com/docs/guides",
      "markdown": "https://theworklens.com/docs/guides.md",
      "section": "guides",
      "group": "learn",
      "type": "overview",
      "audience": [
        "developer",
        "qa",
        "platform",
        "compliance",
        "ai-agent"
      ],
      "keywords": [
        "guides",
        "best practices",
        "use cases",
        "faq",
        "how to"
      ],
      "concepts": [
        "Guides"
      ],
      "questions": [],
      "related": [
        "best-practices",
        "faq",
        "validate"
      ],
      "last_updated": "2026-09-14"
    },
    {
      "id": "how-worklens-works",
      "title": "How WorkLens works",
      "summary": "Everything WorkLens can read, what it does with it, and what comes out. Each source is read for its shape — tables, columns, rules, relationships — never as the values to copy. The engine writes new data that obeys that shape, and a receipt saying what it did.",
      "answer_summary": "WorkLens reads the shape of what you already have — an API description, a data model, a database design, data rules, code checks and types, or a sample file — into a recipe plus packs, generates linked data locally from that recipe, and writes it out with a receipt. Running the same recipe and seed again reproduces the same bytes.",
      "url": "https://theworklens.com/docs/getting-started/how-it-works",
      "markdown": "https://theworklens.com/docs/getting-started/how-it-works.md",
      "section": "getting-started",
      "group": "getting-started",
      "type": "concept",
      "audience": [
        "developer",
        "qa",
        "platform",
        "compliance",
        "ai-agent"
      ],
      "keywords": [
        "flow",
        "how it works",
        "sources",
        "adapters",
        "openapi",
        "prisma",
        "sql",
        "json schema",
        "zod",
        "typescript",
        "csv",
        "xlsx",
        "recipe",
        "packs",
        "generate",
        "reuse",
        "receipt",
        "lock file"
      ],
      "concepts": [
        "Recipe",
        "Packs",
        "Deterministic generation",
        "Receipt",
        "Rerun guarantee"
      ],
      "questions": [
        "Does the engine copy values from my sample file?",
        "What if my source does not say enough to build a full recipe?"
      ],
      "related": [
        "introduction",
        "recipes"
      ],
      "last_updated": "2026-09-13"
    },
    {
      "id": "introduction",
      "title": "What is WorkLens?",
      "summary": "WorkLens is local-first infrastructure for creating deterministic synthetic test data from declarative recipes, and for producing evidence describing how that data was generated.",
      "answer_summary": "WorkLens generates deterministic synthetic test data from a JSON recipe, locally, and writes a receipt for each run. It is used from a browser studio, a command line, a Node.js library, or an AI assistant over MCP. It is not open source: the recipe format is an open specification, the engine is closed.",
      "url": "https://theworklens.com/docs/getting-started/what-is-worklens",
      "markdown": "https://theworklens.com/docs/getting-started/what-is-worklens.md",
      "section": "getting-started",
      "group": "getting-started",
      "type": "concept",
      "audience": [
        "developer",
        "qa",
        "platform",
        "compliance",
        "ai-agent"
      ],
      "keywords": [
        "introduction",
        "what is worklens",
        "overview",
        "synthetic data",
        "test data",
        "recipe",
        "receipt",
        "local",
        "deterministic"
      ],
      "concepts": [
        "Recipe",
        "Deterministic generation",
        "Receipt",
        "Local-first"
      ],
      "questions": [
        "Is WorkLens open source?",
        "Do I need to install anything to try it?"
      ],
      "related": [
        "how-worklens-works",
        "quickstart",
        "core-concepts"
      ],
      "last_updated": "2026-09-14"
    },
    {
      "id": "mcp-examples",
      "title": "Usage examples",
      "summary": "Every tool contract ships with worked requests. These are the primary examples, one per tool, exactly as an MCP client would send them. Long inputs are truncated for the page; the full files sit beside each tool’s schema in the repository.",
      "answer_summary": "Each WorkLens MCP tool has a published example request and response. Send the request shape shown for a tool; the response shape is in its output schema.",
      "url": "https://theworklens.com/docs/mcp/examples",
      "markdown": "https://theworklens.com/docs/mcp/examples.md",
      "section": "mcp",
      "group": "developers",
      "type": "example",
      "audience": [
        "developer",
        "ai-agent"
      ],
      "keywords": [
        "mcp examples",
        "example request",
        "tool call",
        "json",
        "agent",
        "usage"
      ],
      "concepts": [
        "MCP",
        "Tools",
        "Requests"
      ],
      "questions": [],
      "related": [
        "mcp-tools",
        "mcp-overview"
      ],
      "last_updated": "2026-09-13"
    },
    {
      "id": "mcp-overview",
      "title": "Setup",
      "summary": "Press Connect to AI in the studio and follow the steps for your assistant; or add one config entry for a desktop client; or add the hosted connector to a web assistant. Desktop clients run everything locally; the hosted connector serves the recipe tools only.",
      "answer_summary": "WorkLens has an MCP server. Desktop clients (Claude Desktop, Cursor, VS Code, Claude Code, Gemini CLI) run it locally with one JSON entry, one deep link or `claude mcp add`; web assistants (ChatGPT, Claude.ai) attach the hosted connector at mcp.theworklens.com, which serves the recipe tools only — the schema, the validator, the planner. The studio's Connect to AI panel gives the steps for each. The agent drafts and validates recipes; generation happens on your machine and the agent sees metadata, not rows.",
      "url": "https://theworklens.com/docs/mcp/setup",
      "markdown": "https://theworklens.com/docs/mcp/setup.md",
      "section": "mcp",
      "group": "developers",
      "type": "guide",
      "audience": [
        "developer",
        "ai-agent",
        "platform"
      ],
      "keywords": [
        "chatgpt",
        "claude code",
        "claude desktop",
        "config",
        "connect",
        "connect to ai",
        "cursor",
        "gemini",
        "hosted connector",
        "http",
        "install",
        "last-run",
        "mcp",
        "mcpServers",
        "remote",
        "resume",
        "setup",
        "vs code"
      ],
      "concepts": [
        "MCP",
        "Setup",
        "Agents",
        "Local-first"
      ],
      "questions": [
        "Does the AI see my data?",
        "Which assistants work?",
        "Can I use it from ChatGPT or Claude on the web?",
        "What does the hosted connector see?"
      ],
      "related": [
        "mcp-tools",
        "mcp-examples",
        "cli-installation",
        "mcp-resources"
      ],
      "last_updated": "2026-09-28"
    },
    {
      "id": "mcp-resources",
      "title": "Resources & prompts",
      "summary": "Besides tools, the server publishes 6 resources under worklens://guide/ — the drafting core, the advanced constructs, the repo-reading procedure, the scenario playbook, pack authoring and a worked example — and 3 prompts. A client that lists resources sees them; reading one returns the same text get_recipe_schema serves for that section.",
      "answer_summary": "MCP resources: worklens://guide/core, worklens://guide/advanced_constructs, worklens://guide/task_discovery, worklens://guide/scenario_playbook, worklens://guide/pack_authoring, worklens://guide/worked_example, worklens://last-run. Prompts: draft-recipe, draft-from-repo, check-before-generating.",
      "url": "https://theworklens.com/docs/mcp/resources",
      "markdown": "https://theworklens.com/docs/mcp/resources.md",
      "section": "mcp",
      "group": "developers",
      "type": "reference",
      "audience": [
        "developer",
        "ai-agent"
      ],
      "keywords": [
        "mcp resources",
        "resources",
        "prompts",
        "worklens://guide",
        "guide",
        "playbook",
        "pack authoring",
        "task discovery"
      ],
      "concepts": [
        "MCP",
        "Resources",
        "Prompts",
        "Guides"
      ],
      "questions": [],
      "related": [
        "mcp-tools",
        "mcp-overview",
        "best-practices"
      ],
      "last_updated": "2026-09-13"
    },
    {
      "id": "mcp-tool-analyse-openapi",
      "title": "analyse_openapi",
      "summary": "Analyse an OpenAPI 3.x / Swagger 2.0 spec (JSON string) and preview what a WorkLens import would produce: object entities with field counts and ref lists, inlined value-types, and cross-entity foreign keys. Use before recommending an import. Standalone entities are marked defaultSelected:false so a checklist can offer them as opt-ins. Convert YAML to JSON first.",
      "answer_summary": "analyse_openapi: Analyse an OpenAPI 3.x / Swagger 2.0 spec (JSON string) and preview what a WorkLens import would produce: object entities with field counts and ref lists, inlined value-types, and cross-entity foreign keys. Use before recommending an import. Standalone entities are marked defaultSelected:false so a checklist can offer them as opt-ins. Convert YAML to JSON first. Inputs: spec_json (required).",
      "url": "https://theworklens.com/docs/mcp/tools/analyse-openapi",
      "markdown": "https://theworklens.com/docs/mcp/tools/analyse-openapi.md",
      "section": "mcp",
      "group": "developers",
      "type": "tool",
      "audience": [
        "developer",
        "ai-agent"
      ],
      "keywords": [
        "mcp",
        "tool",
        "analyse_openapi",
        "analyse openapi",
        "spec_json"
      ],
      "concepts": [
        "MCP",
        "Tool",
        "Draft a recipe"
      ],
      "questions": [],
      "related": [
        "mcp-tools",
        "mcp-tool-get-recipe-schema",
        "mcp-tool-derive-graph"
      ],
      "last_updated": "2026-09-13"
    },
    {
      "id": "mcp-tool-check-privacy",
      "title": "check_privacy",
      "summary": "Answer both privacy questions together: privacy scores the OUTPUT (re-identification risk, k-anonymity), leaks scores the RECIPE ITSELF (a real value pasted in as an enum, default or pattern). A recipe can leak while its output scores safe, and that combination is the one worth catching. Neither reads a real source file.",
      "answer_summary": "check_privacy: Answer both privacy questions together: privacy scores the OUTPUT (re-identification risk, k-anonymity), leaks scores the RECIPE ITSELF (a real value pasted in as an enum, default or pattern). A recipe can leak while its output scores safe, and that combination is the one worth catching. Neither reads a real source file. Inputs: graph_json (required), n_rows, seed, scenario.",
      "url": "https://theworklens.com/docs/mcp/tools/check-privacy",
      "markdown": "https://theworklens.com/docs/mcp/tools/check-privacy.md",
      "section": "mcp",
      "group": "developers",
      "type": "tool",
      "audience": [
        "developer",
        "ai-agent"
      ],
      "keywords": [
        "mcp",
        "tool",
        "check_privacy",
        "check privacy",
        "graph_json",
        "n_rows",
        "seed",
        "scenario"
      ],
      "concepts": [
        "MCP",
        "Tool",
        "Prove"
      ],
      "questions": [],
      "related": [
        "mcp-tools",
        "mcp-tool-prove-recipe",
        "mcp-tool-verify-world",
        "mcp-tool-score-realism"
      ],
      "last_updated": "2026-09-13"
    },
    {
      "id": "mcp-tool-derive-graph",
      "title": "derive_graph",
      "summary": "Infer a data-free recipe (entity types, relationships) from a real sample file. Pass the file as base64. Use before generating relationship-preserving synthetic data.",
      "answer_summary": "derive_graph: Infer a data-free recipe (entity types, relationships) from a real sample file. Pass the file as base64. Use before generating relationship-preserving synthetic data. Inputs: file_base64 (required), format.",
      "url": "https://theworklens.com/docs/mcp/tools/derive-graph",
      "markdown": "https://theworklens.com/docs/mcp/tools/derive-graph.md",
      "section": "mcp",
      "group": "developers",
      "type": "tool",
      "audience": [
        "developer",
        "ai-agent"
      ],
      "keywords": [
        "mcp",
        "tool",
        "derive_graph",
        "derive graph",
        "file_base64",
        "format"
      ],
      "concepts": [
        "MCP",
        "Tool",
        "Draft a recipe"
      ],
      "questions": [],
      "related": [
        "mcp-tools",
        "mcp-tool-get-recipe-schema",
        "mcp-tool-analyse-openapi"
      ],
      "last_updated": "2026-09-13"
    },
    {
      "id": "mcp-tool-generate-from-graph",
      "title": "generate_from_graph",
      "summary": "Generate every entity from a recipe with cross-entity foreign-key integrity. Use with a recipe validate_recipe accepts (yours, or one from derive_graph). By default one CSV per table is WRITTEN LOCALLY (./worklens-output, or $WORKLENS_OUT_DIR) and you receive row counts, all proof receipts (constraints/flows/distributions/aggregates/unique/defects…) and file handles with SHA-256 — not the bulk rows. Report the receipts to the user; point them at the files.",
      "answer_summary": "generate_from_graph: Generate every entity from a recipe with cross-entity foreign-key integrity. Use with a recipe validate_recipe accepts (yours, or one from derive_graph). By default one CSV per table is WRITTEN LOCALLY (./worklens-output, or $WORKLENS_OUT_DIR) and you receive row counts, all proof receipts (constraints/flows/distributions/aggregates/unique/defects…) and file handles with SHA-256 — not the bulk rows. Report the receipts to the user; point them at the files. Inputs: graph_json (required), n_rows, seed, scenario, recipe_path, return_mode.",
      "url": "https://theworklens.com/docs/mcp/tools/generate-from-graph",
      "markdown": "https://theworklens.com/docs/mcp/tools/generate-from-graph.md",
      "section": "mcp",
      "group": "developers",
      "type": "tool",
      "audience": [
        "developer",
        "ai-agent"
      ],
      "keywords": [
        "mcp",
        "tool",
        "generate_from_graph",
        "generate from graph",
        "graph_json",
        "n_rows",
        "seed",
        "scenario",
        "recipe_path",
        "return_mode"
      ],
      "concepts": [
        "MCP",
        "Tool",
        "Generate"
      ],
      "questions": [],
      "related": [
        "mcp-tools",
        "mcp-tool-generate-synthetic-data"
      ],
      "last_updated": "2026-09-13"
    },
    {
      "id": "mcp-tool-generate-synthetic-data",
      "title": "generate_synthetic_data",
      "summary": "Generate realistic synthetic data from a recipe JSON. A recipe with several tables generates every table and replies like generate_from_graph (tables[] plus a note). No real data involved. Deterministic when a seed is given. By default the CSV is WRITTEN LOCALLY (./worklens-output, or $WORKLENS_OUT_DIR) and you receive counts, receipts and a file handle with its SHA-256 — not the bulk rows. Use return_mode to change that.",
      "answer_summary": "generate_synthetic_data: Generate realistic synthetic data from a recipe JSON. A recipe with several tables generates every table and replies like generate_from_graph (tables[] plus a note). No real data involved. Deterministic when a seed is given. By default the CSV is WRITTEN LOCALLY (./worklens-output, or $WORKLENS_OUT_DIR) and you receive counts, receipts and a file handle with its SHA-256 — not the bulk rows. Use return_mode to change that. Inputs: schema (required), n_rows, scenario, seed, recipe_path, return_mode.",
      "url": "https://theworklens.com/docs/mcp/tools/generate-synthetic-data",
      "markdown": "https://theworklens.com/docs/mcp/tools/generate-synthetic-data.md",
      "section": "mcp",
      "group": "developers",
      "type": "tool",
      "audience": [
        "developer",
        "ai-agent"
      ],
      "keywords": [
        "mcp",
        "tool",
        "generate_synthetic_data",
        "generate synthetic data",
        "schema",
        "n_rows",
        "scenario",
        "seed",
        "recipe_path",
        "return_mode"
      ],
      "concepts": [
        "MCP",
        "Tool",
        "Generate"
      ],
      "questions": [],
      "related": [
        "mcp-tools",
        "mcp-tool-generate-from-graph"
      ],
      "last_updated": "2026-09-13"
    },
    {
      "id": "mcp-tool-get-recipe-schema",
      "title": "get_recipe_schema",
      "summary": "The recipe (GraphModel) authoring guide: JSON shape, every engine field type, FK conventions, rules and a working example. Call this FIRST, WITH A plan of what you are about to build (output csv or fixed, the constructs you expect, region, whether you are reading a repository): the reply then carries exactly what that build needs before your first draft, and says where the recipe JSON Schema is (sections [\"json_schema\"]). Then validate_recipe, then generate_from_graph. Without a plan you get the drafting core, with heavier chapters as stubs naming the call that fetches them.",
      "answer_summary": "get_recipe_schema: The recipe (GraphModel) authoring guide: JSON shape, every engine field type, FK conventions, rules and a working example. Call this FIRST, WITH A plan of what you are about to build (output csv or fixed, the constructs you expect, region, whether you are reading a repository): the reply then carries exactly what that build needs before your first draft, and says where the recipe JSON Schema is (sections [\"json_schema\"]). Then validate_recipe, then generate_from_graph. Without a plan you get the drafting core, with heavier chapters as stubs naming the call that fetches them. Inputs: plan, sections.",
      "url": "https://theworklens.com/docs/mcp/tools/get-recipe-schema",
      "markdown": "https://theworklens.com/docs/mcp/tools/get-recipe-schema.md",
      "section": "mcp",
      "group": "developers",
      "type": "tool",
      "audience": [
        "developer",
        "ai-agent"
      ],
      "keywords": [
        "mcp",
        "tool",
        "get_recipe_schema",
        "get recipe schema",
        "plan",
        "sections"
      ],
      "concepts": [
        "MCP",
        "Tool",
        "Draft a recipe"
      ],
      "questions": [],
      "related": [
        "mcp-tools",
        "mcp-tool-derive-graph",
        "mcp-tool-analyse-openapi"
      ],
      "last_updated": "2026-09-13"
    },
    {
      "id": "mcp-tool-plan-packs",
      "title": "plan_packs",
      "summary": "Turn a recipe into a pack requirement plan — and read the shelf off it: which packs are needed, which of those a pack on this machine already resolves (name, version, who reviewed it, expiry, SHA-256), which fields each satisfies, how many distinct values each must supply, and the fields that need no pack because the engine computes them. Call AFTER validate_recipe and BEFORE drafting a pack — it replaces guessing at size. It gives CAPACITY, not SHAPE: whether a name and a gender must agree is your judgement. Read coverage and unsatisfiable before trusting the plan.",
      "answer_summary": "plan_packs: Turn a recipe into a pack requirement plan — and read the shelf off it: which packs are needed, which of those a pack on this machine already resolves (name, version, who reviewed it, expiry, SHA-256), which fields each satisfies, how many distinct values each must supply, and the fields that need no pack because the engine computes them. Call AFTER validate_recipe and BEFORE drafting a pack — it replaces guessing at size. It gives CAPACITY, not SHAPE: whether a name and a gender must agree is your judgement. Read coverage and unsatisfiable before trusting the plan. Inputs: graph_json (required), run_date.",
      "url": "https://theworklens.com/docs/mcp/tools/plan-packs",
      "markdown": "https://theworklens.com/docs/mcp/tools/plan-packs.md",
      "section": "mcp",
      "group": "developers",
      "type": "tool",
      "audience": [
        "developer",
        "ai-agent"
      ],
      "keywords": [
        "mcp",
        "tool",
        "plan_packs",
        "plan packs",
        "graph_json",
        "run_date"
      ],
      "concepts": [
        "MCP",
        "Tool",
        "Packs"
      ],
      "questions": [],
      "related": [
        "mcp-tools",
        "mcp-tool-register-pack"
      ],
      "last_updated": "2026-09-13"
    },
    {
      "id": "mcp-tool-prove-recipe",
      "title": "prove_recipe",
      "summary": "Return the full proof for a recipe as DATA (schema worklens.proof.v2): consistency, privacy, independent property verification and a tamper-evident receipt, under one top-level passed. Use when you need the proof itself rather than the file handle the generate tools return. Read verification before realism — it is what an implementation that did NOT generate the values made of them.",
      "answer_summary": "prove_recipe: Return the full proof for a recipe as DATA (schema worklens.proof.v2): consistency, privacy, independent property verification and a tamper-evident receipt, under one top-level passed. Use when you need the proof itself rather than the file handle the generate tools return. Read verification before realism — it is what an implementation that did NOT generate the values made of them. Inputs: graph_json (required), n_rows, seed, scenario.",
      "url": "https://theworklens.com/docs/mcp/tools/prove-recipe",
      "markdown": "https://theworklens.com/docs/mcp/tools/prove-recipe.md",
      "section": "mcp",
      "group": "developers",
      "type": "tool",
      "audience": [
        "developer",
        "ai-agent"
      ],
      "keywords": [
        "mcp",
        "tool",
        "prove_recipe",
        "prove recipe",
        "graph_json",
        "n_rows",
        "seed",
        "scenario"
      ],
      "concepts": [
        "MCP",
        "Tool",
        "Prove"
      ],
      "questions": [],
      "related": [
        "mcp-tools",
        "mcp-tool-verify-world",
        "mcp-tool-score-realism",
        "mcp-tool-check-privacy"
      ],
      "last_updated": "2026-09-13"
    },
    {
      "id": "mcp-tool-register-pack",
      "title": "register_pack",
      "summary": "Hand a pack you drafted back to the engine so generation can use it — a locale pack (datasets for a region) or a rule fragment (one type_def or one skeleton_def, then referenced from recipes as \"sha256:<hash>\"); the engine reads the kind from the shape. This CLOSES the loop validate_recipe opens: when it reports missing_packs, draft the pack using the pack_authoring shape from get_recipe_schema, call this, then generate_from_graph — the user should never create, edit or upload a pack file. Returns the SHA-256 and the pin (name@sha256) to write into manifest.pack in the recipe, so every run uses exactly this pack. A pack declares data and never carries code: one that does is refused. DO NOT invent data you do not know: an unsure checksum rule or byte layout should be asked for, not guessed. Declare honestly in pack_provenance — it is carried onto every receipt.",
      "answer_summary": "register_pack: Hand a pack you drafted back to the engine so generation can use it — a locale pack (datasets for a region) or a rule fragment (one type_def or one skeleton_def, then referenced from recipes as \"sha256:<hash>\"); the engine reads the kind from the shape. This CLOSES the loop validate_recipe opens: when it reports missing_packs, draft the pack using the pack_authoring shape from get_recipe_schema, call this, then generate_from_graph — the user should never create, edit or upload a pack file. Returns the SHA-256 and the pin (name@sha256) to write into manifest.pack in the recipe, so every run uses exactly this pack. A pack declares data and never carries code: one that does is refused. DO NOT invent data you do not know: an unsure checksum rule or byte layout should be asked for, not guessed. Declare honestly in pack_provenance — it is carried onto every receipt. Inputs:…",
      "url": "https://theworklens.com/docs/mcp/tools/register-pack",
      "markdown": "https://theworklens.com/docs/mcp/tools/register-pack.md",
      "section": "mcp",
      "group": "developers",
      "type": "tool",
      "audience": [
        "developer",
        "ai-agent"
      ],
      "keywords": [
        "mcp",
        "tool",
        "register_pack",
        "register pack",
        "pack_json",
        "persist"
      ],
      "concepts": [
        "MCP",
        "Tool",
        "Packs"
      ],
      "questions": [],
      "related": [
        "mcp-tools",
        "mcp-tool-plan-packs"
      ],
      "last_updated": "2026-09-13"
    },
    {
      "id": "mcp-tool-sample-world",
      "title": "sample_world",
      "summary": "Generate a SMALL world (120 rows) and report what to check BEFORE paying for a large run. Catches what every other check passes: a declaration that is well-formed, satisfiable, and still constrains nothing. Findings are things to CHECK, not failures; clean: true says so explicitly. Call after validate_recipe, before generate_from_graph.",
      "answer_summary": "sample_world: Generate a SMALL world (120 rows) and report what to check BEFORE paying for a large run. Catches what every other check passes: a declaration that is well-formed, satisfiable, and still constrains nothing. Findings are things to CHECK, not failures; clean: true says so explicitly. Call after validate_recipe, before generate_from_graph. Inputs: graph_json (required), seed, scenario.",
      "url": "https://theworklens.com/docs/mcp/tools/sample-world",
      "markdown": "https://theworklens.com/docs/mcp/tools/sample-world.md",
      "section": "mcp",
      "group": "developers",
      "type": "tool",
      "audience": [
        "developer",
        "ai-agent"
      ],
      "keywords": [
        "mcp",
        "tool",
        "sample_world",
        "sample world",
        "graph_json",
        "seed",
        "scenario"
      ],
      "concepts": [
        "MCP",
        "Tool",
        "Validate before generating"
      ],
      "questions": [],
      "related": [
        "mcp-tools",
        "mcp-tool-validate-recipe"
      ],
      "last_updated": "2026-09-13"
    },
    {
      "id": "mcp-tool-score-realism",
      "title": "score_realism",
      "summary": "Does the generated data have the shape of a REAL sample? Compares column kinds, blank rates, variety and magnitudes, never values. Pass the sample's path on this machine, not its contents. Whether the data follows its recipe is prove_recipe.",
      "answer_summary": "score_realism: Does the generated data have the shape of a REAL sample? Compares column kinds, blank rates, variety and magnitudes, never values. Pass the sample's path on this machine, not its contents. Whether the data follows its recipe is prove_recipe. Inputs: schema (required), original_path (required), entity, n_rows, seed, scenario.",
      "url": "https://theworklens.com/docs/mcp/tools/score-realism",
      "markdown": "https://theworklens.com/docs/mcp/tools/score-realism.md",
      "section": "mcp",
      "group": "developers",
      "type": "tool",
      "audience": [
        "developer",
        "ai-agent"
      ],
      "keywords": [
        "mcp",
        "tool",
        "score_realism",
        "score realism",
        "schema",
        "original_path",
        "entity",
        "n_rows",
        "seed",
        "scenario"
      ],
      "concepts": [
        "MCP",
        "Tool",
        "Prove"
      ],
      "questions": [],
      "related": [
        "mcp-tools",
        "mcp-tool-prove-recipe",
        "mcp-tool-verify-world",
        "mcp-tool-check-privacy"
      ],
      "last_updated": "2026-09-13"
    },
    {
      "id": "mcp-tool-validate-recipe",
      "title": "validate_recipe",
      "summary": "Validate an agent-drafted recipe before generating: structural checks, then a 1-row engine dry-run, then manifest.requires[] against the packs registered on this machine. Returns { valid, next_step, errors, warnings, findings, redirections, missing_packs, engine_check }; findings holds every error and warning, each with a stable kind. Follow next_step verbatim — it says whether to re-draft, surface missing packs, or proceed to generate_from_graph. Pass depth:\"preflight\" to fold plan_packs and sample_world into this one call. When the recipe parses, studio says how the user can see it drawn — tables, links, rules — in the WorkLens studio; offer studio.how to the user once. Nothing is uploaded. A saved recipe: pass path, not its text.",
      "answer_summary": "validate_recipe: Validate an agent-drafted recipe before generating: structural checks, then a 1-row engine dry-run, then manifest.requires[] against the packs registered on this machine. Returns { valid, next_step, errors, warnings, findings, redirections, missing_packs, engine_check }; findings holds every error and warning, each with a stable kind. Follow next_step verbatim — it says whether to re-draft, surface missing packs, or proceed to generate_from_graph. Pass depth:\"preflight\" to fold plan_packs and sample_world into this one call. When the recipe parses, studio says how the user can see it drawn — tables, links, rules — in the WorkLens studio; offer studio.how to the user once. Nothing is uploaded. A saved recipe: pass path, not its text. Inputs: coverage, depth, graph_json, path.",
      "url": "https://theworklens.com/docs/mcp/tools/validate-recipe",
      "markdown": "https://theworklens.com/docs/mcp/tools/validate-recipe.md",
      "section": "mcp",
      "group": "developers",
      "type": "tool",
      "audience": [
        "developer",
        "ai-agent"
      ],
      "keywords": [
        "mcp",
        "tool",
        "validate_recipe",
        "validate recipe",
        "coverage",
        "depth",
        "graph_json",
        "path"
      ],
      "concepts": [
        "MCP",
        "Tool",
        "Validate before generating"
      ],
      "questions": [],
      "related": [
        "mcp-tools",
        "mcp-tool-sample-world"
      ],
      "last_updated": "2026-09-13"
    },
    {
      "id": "mcp-tool-verify-world",
      "title": "verify_world",
      "summary": "Check that a company file and the job files pointing at it still agree. Each job file is validated ALONE, so the two facts it cannot know go unchecked: how many rows a borrowed entity has, and which company (seed) this is. Get the seed wrong and every key still resolves — against different people — and both runs report clean. Reads recipes only, never rows, so it is safe in CI. Use on files written before the world key existed; files that USE world/borrows cannot drift.",
      "answer_summary": "verify_world: Check that a company file and the job files pointing at it still agree. Each job file is validated ALONE, so the two facts it cannot know go unchecked: how many rows a borrowed entity has, and which company (seed) this is. Get the seed wrong and every key still resolves — against different people — and both runs report clean. Reads recipes only, never rows, so it is safe in CI. Use on files written before the world key existed; files that USE world/borrows cannot drift. Inputs: world_json (required), flow_json (required).",
      "url": "https://theworklens.com/docs/mcp/tools/verify-world",
      "markdown": "https://theworklens.com/docs/mcp/tools/verify-world.md",
      "section": "mcp",
      "group": "developers",
      "type": "tool",
      "audience": [
        "developer",
        "ai-agent"
      ],
      "keywords": [
        "mcp",
        "tool",
        "verify_world",
        "verify world",
        "world_json",
        "flow_json"
      ],
      "concepts": [
        "MCP",
        "Tool",
        "Prove"
      ],
      "questions": [],
      "related": [
        "mcp-tools",
        "mcp-tool-prove-recipe",
        "mcp-tool-score-realism",
        "mcp-tool-check-privacy"
      ],
      "last_updated": "2026-09-13"
    },
    {
      "id": "mcp-tools",
      "title": "Tool directory",
      "summary": "The MCP server exposes 13 tools. An agent drafts a recipe from what it can read, validates it, plans the packs it needs, generates, and proves the result — each step is a tool, and each tool’s contract (input schema, output schema, worked request and response) is published in the repository. This directory is generated from those contracts, so it is exactly what a connected client sees.",
      "answer_summary": "WorkLens MCP tools: Draft a recipe: get_recipe_schema, derive_graph, analyse_openapi. Validate before generating: validate_recipe, sample_world. Packs: plan_packs, register_pack. Generate: generate_from_graph, generate_synthetic_data. Prove: prove_recipe, verify_world, score_realism, check_privacy.",
      "url": "https://theworklens.com/docs/mcp/tools",
      "markdown": "https://theworklens.com/docs/mcp/tools.md",
      "section": "mcp",
      "group": "developers",
      "type": "reference",
      "audience": [
        "developer",
        "ai-agent"
      ],
      "keywords": [
        "mcp",
        "tools",
        "tool list",
        "tool directory",
        "get recipe schema",
        "derive graph",
        "analyse openapi",
        "validate recipe",
        "plan packs",
        "register pack",
        "generate from graph",
        "generate synthetic data",
        "score realism",
        "verify world",
        "sample world",
        "prove recipe",
        "check privacy"
      ],
      "concepts": [
        "MCP",
        "Tools",
        "Recipe",
        "Validation",
        "Receipt"
      ],
      "questions": [
        "Which tool do I call first?",
        "Is this list the same as what my client shows?"
      ],
      "related": [
        "mcp-overview",
        "mcp-examples",
        "mcp-resources"
      ],
      "last_updated": "2026-09-13"
    },
    {
      "id": "mcp",
      "title": "AI + WorkLens MCP",
      "summary": "Turn an AI request into deterministic test data.",
      "answer_summary": "The MCP server exposes the engine to any assistant that speaks the Model Context Protocol. The agent reads your repository, drafts a recipe, validates it, resolves packs, generates and proves — as tool calls. Responses are metadata-first: counts, receipts and file paths, not the generated rows.",
      "url": "https://theworklens.com/docs/mcp",
      "markdown": "https://theworklens.com/docs/mcp.md",
      "section": "mcp",
      "group": "developers",
      "type": "overview",
      "audience": [
        "developer",
        "qa",
        "platform",
        "compliance",
        "ai-agent"
      ],
      "keywords": [
        "mcp",
        "model context protocol",
        "ai",
        "agent",
        "claude",
        "cursor",
        "chatgpt",
        "gemini",
        "tools",
        "setup"
      ],
      "concepts": [
        "MCP",
        "Agents",
        "Tools"
      ],
      "questions": [],
      "related": [
        "mcp-overview",
        "mcp-tools",
        "sdk"
      ],
      "last_updated": "2026-09-14"
    },
    {
      "id": "output-formats",
      "title": "Output formats",
      "summary": "The same rows can be written as CSV, JSON, SQL or a nested document from a root entity; a recipe that declares a fixed-width layout writes byte-positional records.",
      "answer_summary": "Formats: --format csv | json | sql | nested on the CLI (generate, prove, bundle); exportFixedWidth in the SDK for recipes with output.format \"fixed\"; generateNested and generateSlice for a document or a referential slice from a root entity.",
      "url": "https://theworklens.com/docs/generate/output-formats",
      "markdown": "https://theworklens.com/docs/generate/output-formats.md",
      "section": "generate",
      "group": "build",
      "type": "reference",
      "audience": [
        "developer",
        "platform"
      ],
      "keywords": [
        "output",
        "formats",
        "csv",
        "json",
        "sql",
        "nested",
        "fixed-width",
        "fixed width",
        "slice",
        "export"
      ],
      "concepts": [
        "Output formats",
        "CSV",
        "JSON",
        "SQL",
        "Fixed-width"
      ],
      "questions": [],
      "related": [
        "cli-generate",
        "cli-flags",
        "sdk-overview"
      ],
      "last_updated": "2026-09-14"
    },
    {
      "id": "packs-custom",
      "title": "Custom packs",
      "summary": "validate_recipe returned missing_packs. Every entry there is a token the recipe requires and no registered pack supplies. Draft the pack, show it to the user for approval, and have them save it next to the recipe — the next run resolves cleanly. Never drop the requirement to make the error disappear, and never substitute a pack that happens to be close.",
      "answer_summary": "A pack is a JSON file with pack_manifest {name, version, provides[]} and, expected, pack_provenance {method, drafted_by, drafted_at, reviewed_by, basis}. provides must match the recipe’s manifest.requires character for character. Load it with --pack on the CLI or register_pack over MCP.",
      "url": "https://theworklens.com/docs/packs/custom",
      "markdown": "https://theworklens.com/docs/packs/custom.md",
      "section": "packs",
      "group": "build",
      "type": "guide",
      "audience": [
        "developer",
        "ai-agent",
        "compliance"
      ],
      "keywords": [
        "custom pack",
        "pack authoring",
        "pack_manifest",
        "provides",
        "requires",
        "provenance",
        "register_pack",
        "plan_packs",
        "missing_packs",
        "new region"
      ],
      "concepts": [
        "Custom pack",
        "Manifest",
        "Provenance",
        "Tokens",
        "register_pack"
      ],
      "questions": [
        "Who writes the values?",
        "Who vouches for a pack?"
      ],
      "related": [
        "packs-locale",
        "packs-domain",
        "mcp-tool-register-pack",
        "mcp-tool-plan-packs"
      ],
      "last_updated": "2026-09-13"
    },
    {
      "id": "packs-domain",
      "title": "Domain recipes",
      "summary": "A domain recipe — invoicing, payroll, banking, insurance, anywhere in the world — describes your tables, their fields and your business arithmetic: tax, contributions, surcharges. WorkLens ships none, because those rules are yours to state and keep current. Your AI assistant drafts the recipe from a prompt through the MCP server (get_recipe_schema, validate_recipe), and the engine generates exactly what it declares. The repository keeps worked Australian examples (au-banking, au-insurance, au-invoice, au-payroll, au-super) in examples/packs/domains/ to read and copy; no tool loads one by name.",
      "answer_summary": "No built-in domain recipes. Ask your AI assistant to draft one through MCP: get_recipe_schema, then validate_recipe, then generate_from_graph. Worked examples: au-banking, au-insurance, au-invoice, au-payroll, au-super, in examples/packs/domains/ — pass one as the recipe JSON itself, never by id.",
      "url": "https://theworklens.com/docs/packs/domain",
      "markdown": "https://theworklens.com/docs/packs/domain.md",
      "section": "packs",
      "group": "build",
      "type": "reference",
      "audience": [
        "developer",
        "qa",
        "ai-agent"
      ],
      "keywords": [
        "domain",
        "domain recipe",
        "domain pack",
        "vertical",
        "invoice",
        "payroll",
        "banking",
        "insurance",
        "superannuation",
        "examples",
        "ai assistant",
        "mcp",
        "prompt"
      ],
      "concepts": [
        "Domain recipe",
        "Vertical",
        "AI assistant",
        "Examples"
      ],
      "questions": [
        "Where did the built-in invoice, payroll, banking and insurance packs go?"
      ],
      "related": [
        "packs-locale",
        "packs-custom",
        "recipe-schema"
      ],
      "last_updated": "2026-09-13"
    },
    {
      "id": "packs-locale",
      "title": "Locale packs",
      "summary": "A locale pack supplies the real-world value lists a region needs: given names, surnames, company names, streets, suburbs with matching postcodes and states, bank branch codes. A field asks for one with role (e.g. person.surnames) or table + column for a whole agreeing row. WorkLens works globally and ships no locale pack: the recipe names its region, and a pack for that region is registered — by your AI assistant through MCP (register_pack) or with --pack on the CLI. Until one is, the run is refused before it starts (missing_packs) and names each column that needs the pack. Example packs (AU, GB, IN, NZ) sit in examples/packs/ to read and copy.",
      "answer_summary": "No locale pack ships. Set the recipe's region and register a pack for it: register_pack over MCP, --pack on the CLI, or the studio's pack drop. Examples: examples/packs/au.json provides locale:au.names, locale:au.surnames, locale:au.companies, locale:au.streets, locale:au.suburbs, locale:au.bsb, locale:au.phones; examples/packs/gb.json provides locale:gb.bsb, locale:gb.companies, locale:gb.counties, locale:gb.gendered_names, locale:gb.names, locale:gb.phones, locale:gb.streets, locale:gb.suburbs, locale:gb.surnames; examples/packs/in.json provides locale:in.bsb, locale:in.companies, locale:in.gendered_names, locale:in.languages, locale:in.names, locale:in.phones, locale:in.states, locale:in.streets, locale:in.suburbs, locale:in.surnames; examples/packs/nz.json provides locale:nz.bsb, locale:nz.companies, locale:nz.gendered_names, locale:nz.medical_specialties, locale:nz.names,…",
      "url": "https://theworklens.com/docs/packs/locale",
      "markdown": "https://theworklens.com/docs/packs/locale.md",
      "section": "packs",
      "group": "build",
      "type": "reference",
      "audience": [
        "developer",
        "qa",
        "ai-agent"
      ],
      "keywords": [
        "locale",
        "locale pack",
        "region",
        "names",
        "surnames",
        "suburbs",
        "postcodes",
        "bsb",
        "companies",
        "provides",
        "tokens",
        "global",
        "register_pack",
        "examples"
      ],
      "concepts": [
        "Locale pack",
        "Region",
        "Names",
        "Addresses",
        "Tokens"
      ],
      "questions": [
        "Is WorkLens Australia-only?",
        "Why was my run refused with missing_packs?",
        "How do suburb, state and postcode stay consistent?"
      ],
      "related": [
        "packs-domain",
        "packs-custom",
        "recipes-fields",
        "cli-packs"
      ],
      "last_updated": "2026-09-13"
    },
    {
      "id": "packs",
      "title": "Packs",
      "summary": "The local values and industry vocabularies a recipe can require.",
      "answer_summary": "A pack supplies what a recipe refers to by token: a country’s names and identifier rules (a locale pack) or an industry’s categories and templates (a domain pack). The engine bundles an Australian locale and four domain packs; anything else is a pack you or your agent supply, and the resolver tells you which are missing.",
      "url": "https://theworklens.com/docs/packs",
      "markdown": "https://theworklens.com/docs/packs.md",
      "section": "packs",
      "group": "build",
      "type": "overview",
      "audience": [
        "developer",
        "qa",
        "platform",
        "compliance",
        "ai-agent"
      ],
      "keywords": [
        "packs",
        "pack",
        "locale",
        "domain",
        "custom pack",
        "register_pack",
        "plan_packs",
        "missing_packs",
        "tokens"
      ],
      "concepts": [
        "Packs",
        "Locale",
        "Domain",
        "Tokens"
      ],
      "questions": [],
      "related": [
        "recipes",
        "cli-packs",
        "validate"
      ],
      "last_updated": "2026-09-14"
    },
    {
      "id": "proof-receipts",
      "title": "Receipts",
      "summary": "Every run can write a proof report: whether it passed, the checks behind that, a privacy score, and a receipt block carrying the content hash and engine version.",
      "answer_summary": "A WorkLens proof report (schema worklens.proof.v1) has: passed; realism (overall score and per-check results); privacy (risk, safety, k-anonymity); verification counts; and receipt (SHA-256 content hash, input hash, engine version, tamper_evident). It proves the generated data matched the recipe, not that your code is correct.",
      "url": "https://theworklens.com/docs/proof/receipts",
      "markdown": "https://theworklens.com/docs/proof/receipts.md",
      "section": "proof",
      "group": "trust",
      "type": "reference",
      "audience": [
        "developer",
        "qa",
        "compliance",
        "ai-agent"
      ],
      "keywords": [
        "receipt",
        "proof",
        "proof report",
        "evidence",
        "audit",
        "content hash",
        "sha256",
        "tamper-evident",
        "realism",
        "privacy",
        "verify",
        "signing"
      ],
      "concepts": [
        "Receipt",
        "Proof report",
        "Content hash",
        "Realism",
        "Privacy score"
      ],
      "questions": [
        "How do I check a receipt someone sends me?",
        "What does the realism score mean?"
      ],
      "related": [
        "determinism",
        "data-validation",
        "cli-prove"
      ],
      "last_updated": "2026-09-14"
    },
    {
      "id": "proof",
      "title": "Proof",
      "summary": "Know what WorkLens generated and prove it later.",
      "answer_summary": "WorkLens creates evidence bundles and verifiable receipts for deterministic runs. A receipt records whether the run passed, the checks behind that, and a content hash that changes if the data does. Every receipt also carries the hashes of the recipe, the packs and the engine it was made from; anyone can recompute them later, offline. WorkLens does not sign receipts — if you need a signature, your CI signs the receipt’s hash with its own identity.",
      "url": "https://theworklens.com/docs/proof",
      "markdown": "https://theworklens.com/docs/proof.md",
      "section": "proof",
      "group": "trust",
      "type": "overview",
      "audience": [
        "developer",
        "qa",
        "platform",
        "compliance",
        "ai-agent"
      ],
      "keywords": [
        "proof",
        "receipt",
        "evidence",
        "evidence bundle",
        "verify",
        "signing",
        "lock file",
        "content hash",
        "tamper-evident"
      ],
      "concepts": [
        "Proof",
        "Receipt",
        "Evidence bundle",
        "Verification"
      ],
      "questions": [],
      "related": [
        "determinism",
        "cli-prove",
        "validate"
      ],
      "last_updated": "2026-09-14"
    },
    {
      "id": "quickstart",
      "title": "Quickstart",
      "summary": "The fastest route is the studio: no account, nothing installed, nothing uploaded.",
      "answer_summary": "Open the studio at /synthesize, choose Try samples and pick one, press Generate, and download the data with its receipt. Save the recipe file into your repository to rerun it anywhere for identical output.",
      "url": "https://theworklens.com/docs/getting-started/quickstart",
      "markdown": "https://theworklens.com/docs/getting-started/quickstart.md",
      "section": "getting-started",
      "group": "getting-started",
      "type": "guide",
      "audience": [
        "developer",
        "qa"
      ],
      "keywords": [
        "quickstart",
        "getting started",
        "first dataset",
        "studio",
        "samples",
        "generate",
        "download",
        "tutorial",
        "start"
      ],
      "concepts": [
        "Studio",
        "Samples",
        "Generate",
        "Receipt"
      ],
      "questions": [
        "Can I bring my own schema or file instead of a sample?",
        "How large a run is possible?"
      ],
      "related": [
        "introduction",
        "examples",
        "cli-generate",
        "mcp-overview"
      ],
      "last_updated": "2026-09-14"
    },
    {
      "id": "recipe-schema",
      "title": "Recipe schema",
      "summary": "A recipe is one JSON file with 13 top-level keys. Entities hold fields, fields have a type, relationships and scenarios sit at the top. This page is generated from the same schema the MCP server hands an agent (contract v3), so it cannot describe an engine that no longer exists.",
      "answer_summary": "A WorkLens recipe has these top-level keys: $schema, version, project, region, manifest, run_date, categories, seed, discovery, entities, relationships, scenarios, output. Field types and per-key rules are on Fields & types; the engine’s supported and unsupported features are listed below.",
      "url": "https://theworklens.com/docs/reference/recipe-schema",
      "markdown": "https://theworklens.com/docs/reference/recipe-schema.md",
      "section": "reference",
      "group": "reference",
      "type": "reference",
      "audience": [
        "developer",
        "ai-agent"
      ],
      "keywords": [
        "schema",
        "recipe schema",
        "top-level keys",
        "json schema",
        "wl.json",
        "supported features",
        "unsupported",
        "contract"
      ],
      "concepts": [
        "Recipe",
        "Schema",
        "Top-level keys",
        "Supported features"
      ],
      "questions": [
        "What is the smallest recipe that works?"
      ],
      "related": [
        "recipe-reference",
        "recipes-fields",
        "recipes-entities",
        "best-practices"
      ],
      "last_updated": "2026-09-13"
    },
    {
      "id": "recipes-derived-fields",
      "title": "Derived fields",
      "summary": "Three keys compute a column instead of drawing it. derive is arithmetic over the same row — with comparisons, if/else and and / or / not — (functions: abs, add_months, ceil, date, day, floor, max, min, mod, month, noise, round, weekday, year) or, for identifiers that encode the row, a string grammar (alnum, concat, consonants, digits, lower, pad, part, slice, upper, vowels). On a target typed date or a number, a date is a whole number of days, so a due date or a length of stay is one formula. aggregate totals a child table (avg, count, max, mean, min, sum) and rollup totals up a tree or graph. The receipt re-checks every formula, so a derived column that disagrees with its inputs is reported.",
      "answer_summary": "derive: \"premium * 0.1\" computes from the same row; aggregate: \"sum(LineItem.amount)\" totals a child table; rollup: \"sum(cost)\" totals up a hierarchy. Numeric functions: abs, add_months, ceil, date, day, floor, max, min, mod, month, noise, round, weekday, year. Operators: + - * / == != < <= > >= ? : and or not && || ! .. Aggregates: avg, count, max, mean, min, sum. A date-typed target with derive \"issued_on + 30\" is a date; an int-typed target with \"discharged_on - admitted_on\" is a number of days.",
      "url": "https://theworklens.com/docs/recipes/derived-fields",
      "markdown": "https://theworklens.com/docs/recipes/derived-fields.md",
      "section": "recipes",
      "group": "build",
      "type": "concept",
      "audience": [
        "developer",
        "qa",
        "ai-agent"
      ],
      "keywords": [
        "derive",
        "derived",
        "formula",
        "calculated",
        "aggregate",
        "sum",
        "count",
        "rollup",
        "hierarchy",
        "total",
        "string derive",
        "concat",
        "date arithmetic",
        "due date",
        "duration",
        "add_months",
        "weekday",
        "and or not",
        "round"
      ],
      "concepts": [
        "Derived field",
        "Formula",
        "Aggregate",
        "Rollup"
      ],
      "questions": [
        "Does the order of derived fields matter?",
        "Can a derive work out a date or a duration?",
        "Can derive build a text identifier?"
      ],
      "related": [
        "recipes-fields",
        "recipes-relationships",
        "proof-receipts"
      ],
      "last_updated": "2026-09-13"
    },
    {
      "id": "recipes-entities",
      "title": "Entities",
      "summary": "An entity is one table. It has a name, a row count, a list of fields, and optionally a construct that shapes whole rows at once: a constraint across columns, a flow through statuses, a tree, or a graph. The engine builds parents before children, so a table that others point at is always generated first.",
      "answer_summary": "A recipe entity has these keys: constraints, fields, flow, graph, name, no_overlap, rows, tree. name and fields are required; rows sets the count; constraints, flow, tree, graph and no_overlap are table-level constructs.",
      "url": "https://theworklens.com/docs/recipes/entities",
      "markdown": "https://theworklens.com/docs/recipes/entities.md",
      "section": "recipes",
      "group": "build",
      "type": "concept",
      "audience": [
        "developer",
        "qa",
        "ai-agent"
      ],
      "keywords": [
        "entity",
        "entities",
        "table",
        "tables",
        "rows",
        "row count",
        "constraints",
        "flow",
        "tree",
        "graph",
        "no_overlap"
      ],
      "concepts": [
        "Entity",
        "Table",
        "Rows",
        "Constraints"
      ],
      "questions": [
        "Do I have to set rows on every table?",
        "What order are tables generated in?"
      ],
      "related": [
        "recipes-fields",
        "recipes-relationships",
        "recipe-schema"
      ],
      "last_updated": "2026-09-13"
    },
    {
      "id": "recipes-fields",
      "title": "Fields & types",
      "summary": "A field is a column. Its type decides what kind of value appears; the other keys decide where values come from (a pack, a pattern, a fixed list), how they mix, what must hold, and how the column is labelled. The engine implements 20 types. An identifier with a check digit is declared on the field (type_def: digits, weights, modulus), and every value passes that arithmetic — so a system that rejects one has found a real bug.",
      "answer_summary": "Field types: person.fullName, company.name, internet.email, phone, au.mobile, date, datetime, int, float, finance.amount, enum, finance.card, bool, internet.url, id, bank.account, address.full, text, row, pool. Value keys: type, type_def, role, pool, pattern, values, generate, table, column. Label keys: sensitivity, category, note.",
      "url": "https://theworklens.com/docs/recipes/fields",
      "markdown": "https://theworklens.com/docs/recipes/fields.md",
      "section": "recipes",
      "group": "build",
      "type": "reference",
      "audience": [
        "developer",
        "qa",
        "ai-agent"
      ],
      "keywords": [
        "field",
        "fields",
        "type",
        "types",
        "field types",
        "pattern",
        "pool",
        "role",
        "values",
        "enum",
        "type_def",
        "checksum",
        "sensitivity",
        "unique",
        "nullable"
      ],
      "concepts": [
        "Field",
        "Field types",
        "Pattern",
        "Pool",
        "Sensitivity"
      ],
      "questions": [
        "Which type should I use for an identifier?",
        "What happens with a type the engine does not know?",
        "Why is a key I set being ignored?"
      ],
      "related": [
        "recipes-entities",
        "recipes-rules",
        "recipe-schema",
        "packs-locale"
      ],
      "last_updated": "2026-09-13"
    },
    {
      "id": "recipes-relationships",
      "title": "Relationships",
      "summary": "A relationship is a field that points at a real row in another table. ref names the target as Table.column; scope keeps parent and child agreeing on a shared column; fanout decides whether children spread evenly across parents or a few parents own most. The engine builds parents first, so every reference resolves. The relationship kinds a recipe can declare are after, aggregate, fk, polymorphic, unique.",
      "answer_summary": "Declare a foreign key with ref: \"Parent.id\" on the child field. Add scope: \"state\" to make the parent agree on a column, and fanout (even, exact, flat, long_tail, one_to_one, power_law, steep, uniform) to shape how children spread. Relationship kinds: after, aggregate, fk, polymorphic, unique.",
      "url": "https://theworklens.com/docs/recipes/relationships",
      "markdown": "https://theworklens.com/docs/recipes/relationships.md",
      "section": "recipes",
      "group": "build",
      "type": "concept",
      "audience": [
        "developer",
        "qa",
        "ai-agent"
      ],
      "keywords": [
        "relationship",
        "relationships",
        "ref",
        "foreign key",
        "fk",
        "scope",
        "fanout",
        "tree",
        "graph",
        "polymorphic",
        "parent",
        "child",
        "referential integrity"
      ],
      "concepts": [
        "Relationship",
        "Foreign key",
        "Scope",
        "Fanout",
        "Tree",
        "Graph"
      ],
      "questions": [
        "Can a child point at a parent in a different state?",
        "How do I make a few parents own most children?"
      ],
      "related": [
        "recipes-entities",
        "recipes-rules",
        "recipes-derived-fields"
      ],
      "last_updated": "2026-09-13"
    },
    {
      "id": "recipes-rules",
      "title": "Rules & constraints",
      "summary": "Rules are the keys the engine enforces rather than merely draws from. On a field: unique, nullable, min, max, after and present_when. On a table: constraints across columns, and a flow that keeps a status and its dates in order. Rows that fail a constraint are re-rolled, and the receipt reports how often, so a rule that never fires is visible rather than assumed.",
      "answer_summary": "Field rules: unique, nullable, min, max, after, present_when, expect. Table rules: constraints, flow. seed is the recipe-level rule that pins the output.",
      "url": "https://theworklens.com/docs/recipes/rules",
      "markdown": "https://theworklens.com/docs/recipes/rules.md",
      "section": "recipes",
      "group": "build",
      "type": "concept",
      "audience": [
        "developer",
        "qa",
        "ai-agent"
      ],
      "keywords": [
        "rules",
        "constraints",
        "unique",
        "nullable",
        "min",
        "max",
        "after",
        "present_when",
        "expect",
        "flow",
        "business rules",
        "validation"
      ],
      "concepts": [
        "Rules",
        "Constraints",
        "Uniqueness",
        "Ranges",
        "Flow"
      ],
      "questions": [
        "A rule of mine never fires — is that a problem?",
        "How do I write a rule across two columns?"
      ],
      "related": [
        "recipes-fields",
        "recipes-relationships",
        "data-validation",
        "proof-receipts"
      ],
      "last_updated": "2026-09-13"
    },
    {
      "id": "recipes-scenarios",
      "title": "Scenarios",
      "summary": "A scenario is a named set of rates on the recipe: null_rate, broken_fk_rate, duplicate_rate, typo_rate and the rest. Pick the name at generation time and the same recipe yields clean data, sparse data, or data with exactly the defects a test needs. The engine’s playbook lists 21 archetypes in 3 groups — everyday, tricky-but-valid, broken-on-purpose — each with what it produces, why a test wants it, and what the proof then shows.",
      "answer_summary": "Scenario keys: break_scopes, broken_fk_rate, business_rule_violation_rate, compliance_violation_rate, date_anomaly_rate, defects, distribution_drift_rate, duplicate_rate, invalid_format_rate, migration_anomaly_rate, mode, name, null_rate, outlier_magnitude, outlier_rate, rows, typo_rate. Planted defect kinds: backdate, blank, broken_fk, invalid, miscalc, overlap. Select one with --scenario on the CLI or the scenario argument on an MCP generate tool.",
      "url": "https://theworklens.com/docs/recipes/scenarios",
      "markdown": "https://theworklens.com/docs/recipes/scenarios.md",
      "section": "recipes",
      "group": "build",
      "type": "concept",
      "audience": [
        "developer",
        "qa",
        "ai-agent"
      ],
      "keywords": [
        "scenario",
        "scenarios",
        "null rate",
        "orphans",
        "broken_fk",
        "duplicates",
        "typos",
        "outliers",
        "defects",
        "chaos",
        "boundary",
        "volume",
        "edge cases"
      ],
      "concepts": [
        "Scenario",
        "Defects",
        "Null rate",
        "Orphans",
        "Duplicates",
        "Chaos"
      ],
      "questions": [
        "How do I plant one specific bad row every run?",
        "Where do I pick the scenario?"
      ],
      "related": [
        "recipes-rules",
        "cli-generate",
        "data-validation",
        "troubleshooting"
      ],
      "last_updated": "2026-09-13"
    },
    {
      "id": "recipes",
      "title": "Recipes",
      "summary": "A recipe describes what data WorkLens should generate.",
      "answer_summary": "A recipe is one JSON file: entities (tables) with fields (typed columns), links between them, and rules that must hold. The engine reads it, writes data that obeys it, and records what it did. This section covers each building block on its own page.",
      "url": "https://theworklens.com/docs/recipes",
      "markdown": "https://theworklens.com/docs/recipes.md",
      "section": "recipes",
      "group": "build",
      "type": "overview",
      "audience": [
        "developer",
        "qa",
        "platform",
        "compliance",
        "ai-agent"
      ],
      "keywords": [
        "recipes",
        "recipe",
        "wl.json",
        "entities",
        "fields",
        "relationships",
        "rules",
        "scenarios",
        "derived"
      ],
      "concepts": [
        "Recipe",
        "Entities",
        "Fields",
        "Relationships",
        "Rules",
        "Scenarios"
      ],
      "questions": [],
      "related": [
        "recipe-schema",
        "recipe-reference",
        "examples"
      ],
      "last_updated": "2026-09-14"
    },
    {
      "id": "recipe-reference",
      "title": "Recipe keys",
      "summary": "A recipe is a JSON file describing what you want made. This is the full list of things it can say, in six groups: what goes in a cell, how values spread across rows, columns worked out from others, links between tables, conditions that must hold, and labels that only the receipt reads. Anything a recipe declares that the engine cannot honour is reported in the run receipt rather than silently ignored.",
      "answer_summary": "A recipe key is one thing a recipe can say about a field, a table or a run — its type, its range, how it links to another table, a rule it must satisfy. The reference lists every key the engine honours with a plain-English line each. A build check fails when the engine gains a key this list does not describe, so the list cannot fall behind the software.",
      "url": "https://theworklens.com/docs/reference/recipe-keys",
      "markdown": "https://theworklens.com/docs/reference/recipe-keys.md",
      "section": "reference",
      "group": "reference",
      "type": "reference",
      "audience": [
        "developer",
        "qa",
        "ai-agent"
      ],
      "keywords": [
        "recipe",
        "reference",
        "schema",
        "keys",
        "wl.json",
        "field type",
        "ref",
        "aggregate",
        "derive",
        "constraints",
        "weights",
        "scenarios",
        "unique",
        "min",
        "max"
      ],
      "concepts": [
        "Recipe",
        "Fields",
        "Relationships",
        "Rules",
        "Scenarios",
        "Receipt"
      ],
      "questions": [
        "What happens if my recipe declares something the engine cannot do?",
        "Is this the same list the studio uses?"
      ],
      "related": [
        "recipe-schema",
        "recipes"
      ],
      "last_updated": "2026-09-13"
    },
    {
      "id": "reference",
      "title": "Reference",
      "summary": "Find exact WorkLens syntax, APIs and configuration.",
      "answer_summary": "The dense pages: every key a recipe can declare, the schema’s top-level keys and supported features, and every SDK function — each generated from, or guarded against, the code it describes. CLI options are on the CLI section’s Configuration page.",
      "url": "https://theworklens.com/docs/reference",
      "markdown": "https://theworklens.com/docs/reference.md",
      "section": "reference",
      "group": "reference",
      "type": "overview",
      "audience": [
        "developer",
        "qa",
        "platform",
        "compliance",
        "ai-agent"
      ],
      "keywords": [
        "reference",
        "syntax",
        "schema",
        "keys",
        "field types",
        "api",
        "flags",
        "sdk api"
      ],
      "concepts": [
        "Reference"
      ],
      "questions": [],
      "related": [
        "recipe-reference",
        "recipe-schema",
        "cli-flags"
      ],
      "last_updated": "2026-09-14"
    },
    {
      "id": "sdk-examples",
      "title": "Examples",
      "summary": "These are the calls the website’s own build makes to put real generated rows on the homepage, so they are known to run.",
      "answer_summary": "const wl = require(\"./packages/sdk-node\"); const recipe = JSON.parse(fs.readFileSync(\"examples/homepage-demo.wl.json\")); const run = wl.generateAll(recipe, { seed: recipe.seed }); const proof = wl.prove(recipe, { seed: recipe.seed }); proof.passed and proof.receipt.content_hash are the result.",
      "url": "https://theworklens.com/docs/sdk/examples",
      "markdown": "https://theworklens.com/docs/sdk/examples.md",
      "section": "sdk",
      "group": "developers",
      "type": "example",
      "audience": [
        "developer"
      ],
      "keywords": [
        "sdk examples",
        "code",
        "snippet",
        "generateAll",
        "prove",
        "node script",
        "sample",
        "usage"
      ],
      "concepts": [
        "SDK",
        "Generate",
        "Prove",
        "Determinism"
      ],
      "questions": [],
      "related": [
        "sdk-overview",
        "determinism",
        "proof-receipts"
      ],
      "last_updated": "2026-09-14"
    },
    {
      "id": "sdk-libraries",
      "title": "Runtimes",
      "summary": "One engine, three packagings: the Node.js library is the SDK, the MCP server wraps it, and the studio runs the same WebAssembly in the browser.",
      "answer_summary": "WorkLens ships a Node.js SDK (CommonJS, Node 18+, WebAssembly engine bundled). The MCP server wraps that SDK, and the browser studio runs the same engine directly. No other language bindings exist today.",
      "url": "https://theworklens.com/docs/sdk/runtimes",
      "markdown": "https://theworklens.com/docs/sdk/runtimes.md",
      "section": "sdk",
      "group": "developers",
      "type": "reference",
      "audience": [
        "developer",
        "platform"
      ],
      "keywords": [
        "runtimes",
        "libraries",
        "languages",
        "node",
        "browser",
        "wasm",
        "bindings",
        "runtime",
        "support"
      ],
      "concepts": [
        "SDK",
        "Node.js",
        "WebAssembly",
        "MCP"
      ],
      "questions": [],
      "related": [
        "sdk-overview",
        "sdk-examples",
        "mcp-overview"
      ],
      "last_updated": "2026-09-14"
    },
    {
      "id": "sdk-overview",
      "title": "SDK API",
      "summary": "The Node.js SDK is the same engine the CLI and the MCP server use, as a CommonJS module; the WebAssembly instantiates synchronously when it is required, so every call is an ordinary synchronous function.",
      "answer_summary": "require(\"worklens\") gives synchronous functions over the engine: generate and generateAll produce tables from a recipe; prove produces the proof report; scoreRealism, privacyScore and sampleWorld inspect a recipe; deriveGraph reads a file into a recipe; exportFixedWidth, generateSlice and generateNested shape the output.",
      "url": "https://theworklens.com/docs/reference/sdk-api",
      "markdown": "https://theworklens.com/docs/reference/sdk-api.md",
      "section": "reference",
      "group": "reference",
      "type": "reference",
      "audience": [
        "developer",
        "platform"
      ],
      "keywords": [
        "sdk",
        "api",
        "node",
        "nodejs",
        "library",
        "require",
        "generateAll",
        "prove",
        "functions",
        "wasm"
      ],
      "concepts": [
        "SDK",
        "Node.js",
        "Generate",
        "Prove"
      ],
      "questions": [
        "Is it asynchronous?",
        "What shape do tables come back in?"
      ],
      "related": [
        "sdk-examples",
        "sdk-libraries",
        "cli-generate"
      ],
      "last_updated": "2026-09-17"
    },
    {
      "id": "sdk",
      "title": "SDK",
      "summary": "Embed WorkLens generation directly in your application.",
      "answer_summary": "The Node.js SDK is the engine as a library: require it, hand it a recipe, get tables and a proof back. The WebAssembly engine loads when the module is required, so every call is synchronous and in-process. It is what the CLI and the MCP server are built on.",
      "url": "https://theworklens.com/docs/sdk",
      "markdown": "https://theworklens.com/docs/sdk.md",
      "section": "sdk",
      "group": "developers",
      "type": "overview",
      "audience": [
        "developer",
        "qa",
        "platform",
        "compliance",
        "ai-agent"
      ],
      "keywords": [
        "sdk",
        "node",
        "library",
        "require",
        "generateAll",
        "prove",
        "wasm",
        "api"
      ],
      "concepts": [
        "SDK",
        "Node.js",
        "WebAssembly"
      ],
      "questions": [],
      "related": [
        "sdk-overview",
        "sdk-examples",
        "cli"
      ],
      "last_updated": "2026-09-14"
    },
    {
      "id": "troubleshooting",
      "title": "Limitations",
      "summary": "When a recipe asks for something the engine does not do, the answer is here: what the limit is, why it exists, and the route that gets you the same outcome. The list is generated from the engine's own contract and a build check fails if a limit is lifted without this page changing, so nothing here is out of date.",
      "answer_summary": "WorkLens will not do these 9 things: A row for every status change; Two files that have to reconcile against each other; A reading per interval, with a trend; Accented or non-English characters in a fixed-width file; Amounts with more than two decimal places; A network that loops back on itself; Text long enough to force a truncation; Local number or date formats — a decimal comma, thousands separators; A rule that reads a column belonging to a different table. Each has a documented alternative.",
      "url": "https://theworklens.com/docs/validate/limitations",
      "markdown": "https://theworklens.com/docs/validate/limitations.md",
      "section": "validate",
      "group": "trust",
      "type": "troubleshooting",
      "audience": [
        "developer",
        "qa",
        "ai-agent"
      ],
      "keywords": [
        "troubleshooting",
        "not supported",
        "limits",
        "cannot",
        "workaround",
        "instead",
        "error",
        "why"
      ],
      "concepts": [
        "Limits",
        "Recipe",
        "Receipt"
      ],
      "questions": [
        "How do I know a limit applies to my recipe?"
      ],
      "related": [
        "best-practices",
        "recipe-reference",
        "data-validation"
      ],
      "last_updated": "2026-09-13"
    },
    {
      "id": "use-cases",
      "title": "Use cases",
      "summary": "The solution pages walk through the situations WorkLens is built for, each ending in a recipe you can open and a receipt for the run it shows.",
      "answer_summary": "WorkLens use cases: test data for engineering and QA; synthetic data for AI training without real customers; evidence for regulated environments such as APRA CPS 234; Australian healthcare data; cross-border data; a test-scenario platform; and a whole synthetic company.",
      "url": "https://theworklens.com/docs/guides/use-cases",
      "markdown": "https://theworklens.com/docs/guides/use-cases.md",
      "section": "guides",
      "group": "learn",
      "type": "guide",
      "audience": [
        "developer",
        "qa",
        "platform",
        "compliance",
        "ai-agent"
      ],
      "keywords": [
        "use cases",
        "solutions",
        "test data",
        "ai training",
        "apra",
        "cps 234",
        "healthcare",
        "cross-border",
        "synthetic company",
        "examples"
      ],
      "concepts": [
        "Use cases",
        "Solutions",
        "Recipe",
        "Receipt"
      ],
      "questions": [],
      "related": [
        "examples",
        "introduction",
        "proof-receipts"
      ],
      "last_updated": "2026-09-14"
    },
    {
      "id": "validate",
      "title": "Validate",
      "summary": "Find problems before generating data.",
      "answer_summary": "Validation checks the recipe before a single row is written — its structure, whether its rules can be satisfied at all, a one-row dry run, and a ledger of anything declared that the engine will not execute — and then checks the data after the run. The result is either valid, or errors named precisely enough to fix.",
      "url": "https://theworklens.com/docs/validate",
      "markdown": "https://theworklens.com/docs/validate.md",
      "section": "validate",
      "group": "trust",
      "type": "overview",
      "audience": [
        "developer",
        "qa",
        "platform",
        "compliance",
        "ai-agent"
      ],
      "keywords": [
        "validate",
        "validation",
        "validate_recipe",
        "check",
        "errors",
        "limitations",
        "declared not executed",
        "coverage"
      ],
      "concepts": [
        "Validation",
        "Errors",
        "Limitations"
      ],
      "questions": [],
      "related": [
        "data-validation",
        "troubleshooting",
        "best-practices"
      ],
      "last_updated": "2026-09-14"
    }
  ]
}
