# Creation schema

> The registry of what Werker can do, and the plan the generator fills in when it defines work.

Source: https://werker.cloud/docs/engineering/creation-schema (updated 2026-12-02)

The registry lists every part Werker has; the plan is what the
generator fills in when it defines work.

- The list of parts, with the status and reason of each:
  [Registry](registry.md), generated from
  `packages/domain/src/registry.ts`.
- The tests that keep the registry complete:
  [the registry section of the executable checks](guardrails.md#the-registry).
- How the generator fills in and saves a plan (`schedule`, `needs`,
  `unsupported`, the brief), and the Plan card on the run page:
  [Agents, workflows and factories](agents-workflows-factories.md).
- Shaping before anything is saved: [shaping](ui.md#shaping-on-new).

## How it works

- **One registry.** What describes the platform to a model or a person
  is derived from it. What a run can do is answered by one rule,
  `abilities_available` in `packages/rules/src/tools.ts`.
- **Data in `packages/domain`, logic in `packages/rules`.** The
  registry is plain `as const` data. `plan_problems`,
  `abilities_available` and `plan_readiness` are in `packages/rules`.
- **No shared input shape.** Each consumer builds its own from the
  registry's id lists. The web workflow form names agents by id, the
  generator by name.
- **Every entry has a status.** `offered` is built and usable by the
  generator, `built` is built and not offered, with a reason, and
  `planned` is not built. The generator names a `planned` entry as the
  reason a request cannot be met, so `unsupported` is checked against
  the registry.
- **Triggers are their own list.** `schedule` is one kind of trigger.
  The plan has `schedule`, saved on the run and on the item it
  created.
- **New plan fields are optional**, so a generation already in flight
  can still replay.
- **Abilities are not permissions.** `shell`, `files` and `web` are
  one tool, so a factory member's `allowed_tools` is a list of tool
  names.
- **Readiness uses the same conditions as the run:** a sandbox host
  set, a network (`open` or `gateway`), a saved connection. The
  browser receives states, not the instance settings behind them.
- **`needs` is a forecast.** The generator cannot see what an MCP
  server or an HTTP API offers.
- **A schedule and its needs belong to the workflow.** A plan with a
  schedule that reuses a saved agent is saved as a one-step workflow.
- **Factory member agents are not offered for reuse.**
- **The registry check is in package tests and two import rules**, as
  `tools/checks` may not import `@werkerai/domain`
  (`tools/checks/policy.ts`).
- **No standing input.** An answer is kept only in that run's `pause`,
  so a scheduled run asks again. `standing_input` is `planned` in the
  registry.

## Worked example

"Every morning, check five competitor pricing pages, compare with my
rates and email me what changed."

- `schedule`: every day at 09:00 in the viewer's time zone.
- `needs`: `web` for the hosts, if the pages are named.
- `needs`: `http_service` with a `service` hint for email; readiness
  says no such connection exists.
- `needs`: `files`, to keep yesterday's prices in `/work` for the next
  run.
- `unsupported`: `standing_input` (the five pages and the rates, if
  not given).

## Limits

- The registry checks show that a feature is listed, not that the
  generator is offered it; [Registry](registry.md) shows "built, not
  offered".
- Not caught: a new global from a library upgrade, an environment
  flag, or a change in behaviour that adds no table, column, tool,
  adapter or capability.
