Skip to content
pleach
Reference

When a check fails

What you see when your code breaks a Pleach rule, what it means, and the fix — the lookup an agent can read straight from an error to the change.

Pleach's runtime names the rule you broke. This page maps what you see to what it means and the fix, so an agent, or a human, can go from the error to the change.

For what Pleach's own CI checks, see Release checks.

You added a graph node

What you seeWhat it means → fix
Registration refuses the node: registers new node "<name>" without declaring subscribes or writes — refusing to register itThe node has no channel declaration. Declare metadata: { subscribes: [...], writes: [...] }. Empty arrays are valid. See the new-node checklist.
plugin node "<name>" declares stage "<stage>" but that name is a CORE nodeYour node shadows a core node at a different stage. Rename your node.
unknown node "<name>" from validateNodeStageForAuditThe node has no stage. Declare stageId on the node's metadata. See Extending Pleach.

A node can't reach across the lattice directly. Write a state field that the next stage's nodes subscribe to. See the lattice rule. Recovery and post-synthesis shaping belong in a post-turn stream filter, not a graph node: synthesize is a singleton stage.

You added an event type

What you seeWhat it means → fix
A new event type's payload is stored as writtenList its free-text payload paths in scrubbableFields on the event definition, and pass the same plugins to the writer. See Declaring scrubbable fields.

You want a new audit field

The AuditableCall columns are locked. Don't add one. Use the pluginPayloads slot instead: see the locked row.

Your plugin won't register

What you seeWhat it means → fix
PluginValidationErrorThe plugin's shape is wrong, or a factory threw when constructed. The error's report names the hook. See Plugin contract.

Your scenario battery fails

npx @pleach/core dev --plugin … --scenarios … --assert … exits non-zero on a failed expectation and prints a per-scenario report. See the CLI reference.

Reading the loop

The error is the correction signal. An agent extending the runtime runs the check, reads the named fact (a stage or a channel declaration), applies it, and re-runs. That loop is the point of agent-driven self-extension.

Where to go next