WorkLensDocs
    Studio
    guide

    Custom packs

    Writing a pack of your own — the manifest every pack shares, provenance, tokens, and the agent loop that drafts one when a run is missing it.

    Last updated 2026-09-13 · Generated from get_recipe_schema (pack_authoring) · Markdown

    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.

    validate_recipemissing_packs
    plan_packshow many values
    Draft packyou or your agent
    register_pack / --pack
    WorkLens supplies the shape, the requirement and the validation; the values come from you.

    pack_manifest

    • name — string (required) — kebab-case, e.g. 'jp-locale'
    • version — string (required) — semver, start at 1.0.0
    • owner — string (optional) — who maintains it
    • provides — string[] (required) — the exact tokens this pack satisfies, e.g. ['locale:jp.names']. These must match the recipe's manifest.requires entries character for character, or the resolver will not find them.

    pack_provenance

    • method — string — 'ai-drafted' | 'sourced' | 'bundled'
    • drafted_by — string (optional) — the model or person that wrote it
    • drafted_at — string (optional) — ISO date
    • reviewed_by — string|null — null is the honest default. Do not fill this in on your own behalf.
    • basis — string (optional) — what the contents were derived from, plainly
    • caveats — string[] (optional) — what you know is shaky. Say it here rather than nowhere: "postcodes were not checked against the postal authority" is far more useful than silence.

    A minimal locale pack

    {
      "pack_manifest": {
        "name": "nz-locale",
        "version": "1.0.0",
        "owner": "you",
        "provides": [
          "locale:nz.surnames"
        ]
      },
      "pack_provenance": {
        "method": "ai-drafted",
        "drafted_by": "your agent",
        "drafted_at": "2026-09-13",
        "reviewed_by": null,
        "basis": "General knowledge; not a published register."
      },
      "datasets": {
        "surnames": {
          "columns": [
            "surname"
          ],
          "rows": [
            [
              "Smith"
            ],
            [
              "Wilson"
            ],
            [
              "Tane"
            ]
          ]
        }
      }
    }

    node packages/sdk-node/bin/worklens.js generate recipe.wl.json --pack nz-locale.json

    Common questions

    Who writes the values?

    You, or your own agent, never WorkLens. The engine states what a recipe requires and how many distinct values each field needs; the pack content is yours to draft and review, and the receipt carries the pack’s provenance so a reader knows what the data rests on.

    Who vouches for a pack?

    Its provenance and its hash. pack_provenance records who drafted it, when, on what basis and who reviewed it; the SHA-256 in every receipt proves the contents have not changed since. WorkLens does not sign packs — if your organisation needs a signature, your CI signs the pack file with its own identity.