Creation schema
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, generated from
packages/domain/src/registry.ts. - The tests that keep the registry complete: the registry section of the executable checks.
- 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. - Shaping before anything is saved: shaping.
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_availableinpackages/rules/src/tools.ts. - Data in
packages/domain, logic inpackages/rules. The registry is plainas constdata.plan_problems,abilities_availableandplan_readinessare inpackages/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.
offeredis built and usable by the generator,builtis built and not offered, with a reason, andplannedis not built. The generator names aplannedentry as the reason a request cannot be met, sounsupportedis checked against the registry. - Triggers are their own list.
scheduleis one kind of trigger. The plan hasschedule, 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,filesandwebare one tool, so a factory member'sallowed_toolsis a list of tool names. - Readiness uses the same conditions as the run: a sandbox host
set, a network (
openorgateway), a saved connection. The browser receives states, not the instance settings behind them. needsis 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/checksmay 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_inputisplannedin 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:webfor the hosts, if the pages are named.needs:http_servicewith aservicehint for email; readiness says no such connection exists.needs:files, to keep yesterday's prices in/workfor 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.