Governed Memory
Governed Memory gives an Agent long-term memory that survives across conversations. Each turn it recalls durable memory items (constraints, decisions, preferences, patterns) by tag into the agent’s context, and records the turn so a background curation pass can distil new items from it. You find it on the node picker’s AI shelf.
Connect the node’s Memory output handle to the agent’s Memory handle. Where Chat Thread remembers what was said in one conversation, Governed Memory remembers what the workspace has learned: typed, reviewable items that any agent recalling the same tags shares.
Configuration
Section titled “Configuration”

| Field | Type | Default | Description |
|---|---|---|---|
Which memories this agent uses (tags) | string ✦ (required) | — | Which memories this agent looks at. A memory is used when it carries ANY of these tags, so adding tags widens what the agent can see, never narrows it. |
When replies are saved to learn from (writePolicy) | one of every_turn, queued, event_triggered, manual (optional) |
every_turn |
When a reply is saved for the agent to learn from later. Saving costs nothing at the time; what is saved is reviewed before it becomes a rule. |
Let the agent save a lesson when it learns one (allowRecord) | boolean (optional) | false |
Let the agent record a lesson deliberately, instead of relying on the turn being curated into one. Turns are recorded either way, on the schedule set above. |
Learn from messages sent in from outside (learnFromInbound) | boolean (optional) | false |
Curate turns from messages sent in from outside — a webhook, an email, a chat message, a portal form. Off, because that text is written by whoever sent it. |
Match learned notes against (query) | string ✦ (optional) | — | Advanced. What the learned notes are matched against. Leave empty and the message being answered is used, which is almost always what you want. |
Sorts of memory to use (kinds) | string ✦ (optional) | — | Limit this to certain sorts of memory. Left empty, rules of every sort are used, and learned notes of every sort except plain facts. |
Maximum rules to include (limit) | integer ✦ (optional) | — | How many standing rules to include, at most. Rules are the memories a person has confirmed; they are added to every reply regardless of what it is about. |
Learned notes to add (learnedLimit) | integer ✦ (optional) | — | How many previously learned notes to add on top, when they look relevant to the message being answered. Empty or 0 means none — replies then follow confirmed rules only, which is the default. |
Let the agent search this memory when it needs to (allowRecall) | boolean (optional) | false |
Let the agent search this memory itself when it needs to, instead of only receiving what the tags above surfaced. This memory is read before every answer either way. |
Keep memories about specific things separate (entities) | list (optional) | — | The things a memory can be about — a customer, a company, a ticket. A memory about one of them is only read back for that same one; anything generally true stays available everywhere. |
Kind of thing (entities[].namespace) | string (optional) | — | A short name for what this identifies — for example customer, company or ticket. |
Its id (entities[].value) | string ✦ (optional) | — | Where to read its id for the run in progress. |
When it applies (entities[].appliesWhen) | string (optional) | — | When a memory counts as being about this. Left empty, only memories that clearly name it are tagged. |
Keep others out (entities[].scopeRecall) | boolean (optional) | true |
Also use this to keep other things of this kind out of what the agent reads. |
Every memory is about it (entities[].everyMemory) | boolean (optional) | false |
Tag everything learned in the run with it, not only what the curator judges to be about it. With Keep others out on, what the agent learns in one person’s conversation then stays theirs. |
Forget unreviewed facts after (days) (unreviewedFactDays) | integer ✦ (optional) | — | Forget learned facts nobody reviewed after this many days. Facts are often the state of something at the time — what was switched on, what existed — and go stale. A fact someone keeps is never forgotten. |
Sorts of note to learn (learnKinds) | string ✦ (optional) | — | Which sorts of note it learns by itself from a conversation. Left empty, every sort. |
Send lessons about Publicus itself for platform review (nominatePlatformLessons) | boolean (optional) | false |
Send lessons about how Publicus itself works (a node, an expression, a platform limit) to the Publicus team for review, so every workspace can learn them, instead of asking this workspace to review them. |
Brief to read on every reply (brief) | string ✦ (optional) | — | Give the agent a brief to read before every reply: one document your team keeps, with the map of what exists, your rules and anything it must always know. Name it with a tag; the brief kept under that tag is read whole, first, every time. |
Skills the agent can read (skills) | string ✦ (optional) | — | Give the agent skills: written procedures for kinds of work, listed by name on every reply and read in full only when a task calls for one. Name them with a tag. |
Fields marked ✦ accept expressions.
tags is the primary filter and doubles as the node’s scope: with no tags nothing is recalled, and what the node records is tagged the same way, so the node recalls what it writes.
What the agent gets
Section titled “What the agent gets”The node runs no step of its own and emits no output. It works inside the agent’s turn:
- Before the call it recalls up to
limitstanding rules (10 by default) matching the tags, optionally filtered by Sorts of memory to use (kinds), which sits under Advanced with Match learned notes against (query). Rules are the items reviewed as fit to steer behaviour, and they are not matched against the message, because a rule holds whatever the turn is about. Each item arrives labelled by its kind, for example[constraint] Refunds above 100 euros need manager sign-off. Learned notes nobody has reviewed are added only when you setlearnedLimit, and only those that match thequerytext (the message being answered unless you set one). The rest stays reachable through the on-demand recall tool. - After the reply it records the turn as a memory episode, according to the
writePolicy. A background curation pass distils episodes into durable memory items, and an identical turn seen again within the deduplication window is recorded once. You review, promote, and prune the resulting items on the Memory screen; see Memory review.
writePolicy decides when that record happens: every_turn writes the episode as the turn runs, queued hands it to a background job, and manual recalls without ever recording. event_triggered records nothing today, so choose manual when you mean never record.
The node also hands the agent memory verbs as tools, through the same Memory handle connection:
-
allowRecalloffersrecall_memory: look items up on demand, beyond the capped automatic recall. It searches only what this node reads: memories carrying itstags, and, whenentitieskeep memories about specific things apart, only the ones about whoever the agent is serving now or about no one in particular. Tags the agent passes narrow that to a topic and never reach further. -
allowRecordoffersrecord_lesson: deliberately write a lesson, tagged with this node’stags, the ones it recalls by. Whentagsis an expression, the lesson gets no tag from it, because the value is only known while a run is in progress. -
skillsoffersread_skill: the agent sees the skills’ names on every reply and reads one in full when a task calls for it. Naming skills is enough; there is no toggle. -
brieftogether withallowRecordofferspropose_brief: the agent suggests a new version of its brief, for example after you tell it a new standing rule. Nothing changes until a person keeps the proposal on the Memory screen (see Memory review), and the agent says where it is waiting.

read_skill and propose_brief need a literal tag. A tag written as an expression is only known while a run is in progress, so the node offers neither tool for it.
Recall and read_skill are reads and never stop for approval. record_lesson and propose_brief write to workspace memory without asking, but an agent running in Read-only mode is not offered them.
Memories about one person, customer, or ticket
Section titled “Memories about one person, customer, or ticket”entities declares what a memory can be about. Each row names a kind of thing (for example user) and where its id comes from in the run (for example the sender id your trigger provides). A row works on both sides of the node:
- Reading. With Keep others out (
scopeRecall) on, a memory about one of them is read back only while the agent serves that same one. A memory about no one in particular is read for everybody. - Writing. The curator decides per memory whether it is about this one or generally true, and tags only the first kind. A general lesson, such as how long returns are accepted, stays available to every customer.
When one agent serves several colleagues and what each tells it should stay theirs, turn on Every memory is about it (everyMemory) on the row. Everything learned in a person’s conversations is then tagged with their id, including lessons the agent records with record_lesson, and is read back only for them. This matters because personal details often read as general: without it, “I am off on Friday” can be filed for everybody. Knowledge everyone shares then comes from what people write or confirm, such as the brief and the rules kept on the Memory screen.
A run whose id is empty, such as a scheduled run or a message whose sender the trigger does not name, serves nobody. It reads only memories about no one, and with Every memory is about it on it learns nothing, because there is nobody to keep the memory for.
When curation checks a new memory for duplicates and contradictions, it compares it only with memories the same people can read. One person’s conversation never drops or replaces another person’s memory.
Example
Section titled “Example”The Smoke / Governed memory — policy recall template wires a Governed Memory node to a support agent’s Memory handle with:
tags:["policy","refund","contact"]limit:10
The agent’s system message tells it to honour any policy in its memory context. Once the workspace holds reviewed items under those tags, every run of the agent answers with the current refund policy without the flow restating it anywhere.
Limitations
Section titled “Limitations”- No tags, no recall: the tags list is the primary filter, not an optional refinement.
- Automatic recall is capped and ranked, so a specific older fact may not surface on its own. Turn on
allowRecallfor an agent that needs to go looking. - New knowledge does not steer the agent the moment a turn ends. Episodes pass through curation and review first; see Memory review.
Related
Section titled “Related”- Chat Thread is the transcript memory for the conversation at hand.
- Enforce stops a flow branch that contradicts a stored memory constraint.
- Memory explains the memory layers end to end.
- Memory review covers governing what is stored.