Skip to content
Search docs
Search the docs and jump to the section
Sign in

Creation schema

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

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 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.
This page as markdown apps/site/src/content/docs/engineering/creation-schema.md