Enforce
Enforce checks a proposed action against the active constraints and decisions in your workspace’s governed memory. It writes the verdict to its output so the flow can branch on it, and can hard-stop the run outright. Place it ahead of an irreversible step you want memory to protect. You find it on the node picker’s AI shelf.
Handles
Section titled “Handles”The input handle accepts the upstream node’s output; the output handle emits the verdict as JSON.
Configuration
Section titled “Configuration”

| Field | Type | Default | Description |
|---|---|---|---|
Proposed action (proposedAction) | string ✦ (required) | — | The action or text to evaluate against governed memory constraints and decisions. |
Tags (tags) | string ✦ (required) | — | JSON array of tags that narrows which memory items are enforced, e.g. [“ai”,“security”]; an empty array evaluates all active items. |
Fail on block (failOnBlock) | boolean ✦ (optional) | false |
When enabled, a ‘block’ decision hard-stops the flow with an error instead of just recording the result for downstream branching. So does a check that could not be made. |
Fields marked ✦ accept expressions.
Try this node — run it once against your own workspace, with your credentials, without building a flow first.
What can block
Section titled “What can block”Only Constraint and Decision memory items are enforced, and only when you have confirmed them (or imported them as trusted). An unreviewed item an agent extracted on its own informs recall but never blocks a run. Curate the items on the Memory screen: see Memory review.
When nothing matches, because the workspace has no confirmed constraints yet or because the tags filter excludes them all, the node returns allow with empty reasons and calls no model.
Output
Section titled “Output”{ "decision": "allow", "reasons": [], "violatedItemIds": [], "failed": false}decision is allow, warn, or block; reasons explains the verdict and violatedItemIds names the memory items the action contradicts. With failOnBlock enabled, a block verdict fails the run immediately instead of handing the result downstream.
A platform-configured model makes the judgement. When the evaluation itself errors, what happens depends on failOnBlock:
- On: the action is stopped, not let through. The step is retried a few times, and if the model still cannot be reached, the run fails.
- Off: the decision is
allow,failedistrueand the failure is recorded inreasons, so the flow carries on. Branch on$prev->failedif a check that could not be made should stop the branch too.
Example
Section titled “Example”The template “Smoke / Governed memory — enforce gate” (browse it under Templates) feeds the run’s input into an Enforce node. The proposed action comes from the start data:
{{ $start->action }}Its tags field narrows enforcement to items tagged ["policy","refund"]. Wire a Conditional Exit after it to stop the branch when $prev->decision is block, or enable failOnBlock to let the node fail the run itself.


Limitations
Section titled “Limitations”- With
failOnBlockoff, a check that could not be made lets the action through, markedfailed. For an action that must never slip through unreviewed, turnfailOnBlockon, or pair the flow with human approval instead of relying on this gate alone.
Related
Section titled “Related”- Governed Memory: the memory node that records and recalls the durable items this node enforces.
- Memory: how enforcement fits the memory layers.
- Memory review: confirm the constraints that may block.
- Conditional Exit: branch on the decision.