Skip to content

Knowledge and decisions

Last updated November 5, 2026

On this page

Knowledge is what the company has written down for people and agents to reuse: a policy, a fact about a customer, a decision and its reason. Each piece is an entry. Every entry says who wrote it, when, how sure they were and what it rests on, so a reader can judge it. When an agent writes an entry for others to read, it usually waits for a person to accept it first.

This page covers shared knowledge, decisions logged in threads, and the private memory agents keep after their runs. How runs use knowledge as memory (role cores, remembered records, lessons learned overnight, and the check after an answer) is on Memory. The steps use the demo company (see Quickstart). What is not possible yet is listed at the end.

Words used on this page#

Word Meaning
Entry One piece of knowledge, shown as a card.
Scope Who an entry is for: Private (one person), Team (one team), Org (everyone in the company) or Partner.
Quarantined Waiting for a person to accept or reject it. Agents do not read quarantined entries.
Contested Two accepted entries that disagree. Agents read neither until a person settles it.
Evidence What an entry rests on: a thread, a decision, a run or a record.
Topics Words an entry is looked up by, such as refunds, billing.
Developer mode A workspace setting that lets you give an agent an exact plan with Explicit plan. See Asking agents.

Three kinds of memory#

Shared knowledge Decisions Agent memory
What it is An entry for a team, the whole company or partners A decision logged in a thread, with its reason A note an agent wrote after a finished run, before lessons replaced the notes (below)
Who writes it People, agents, the Distiller, the nightly memory job (as proposals) Thread owners and approvers The agent, automatically, only while the memory jobs are off
Who reads it Its scope: team members, everyone, partners Everyone, as an org entry; the thread itself only its participants The person the run acted for, and agents working for that person
Checked by a person When an agent proposes it for a team, the company or partners, unless it is sure and cites evidence (below) No: a person made it Never
Expires No, unless an expiry was set; a proposal from the nightly job after 90 days unreviewed No After 90 days
Where you see it Knowledge, Governance, Knowledge tab The thread, and Knowledge, Decisions tab Knowledge, Agent memory tab

What an entry shows#

The card on the Knowledge page shows:

Part Meaning
Text The knowledge itself.
Status Quarantined, Accepted, Contested, Rejected or Expired. Only accepted entries are read by agents.
Scope Private, Team, Org or Partner.
Kind Framework, SOP, Enablement, Decision, Glossary or Fact. An entry with no kind shows as Fact.
Confidence 0 to 100: how sure the writer was.
by Who wrote it, and who an agent wrote it for: "by Support Agent for Maya Patel".
topics The words it is looked up by.
evidence A link to each source you may open, restricted source for one you may not, source removed when the record was purged.

How knowledge gets in#

Written by agents#

An agent writes knowledge when its plan includes a remember step. What happens first depends on how the agent was started:

  • You asked it (in a conversation or a thread, alone or together with other agents, or through a repeat), or it acts for nobody: the entry is private to the person whose work it is, whatever scope the plan names, and accepted at once. It carries the kind of data the run read and where it came from. An ask's answer never becomes team or company knowledge on its own, so what one agent read for you cannot reach your team through another agent's memory.
  • Work handed to it (a task assigned to it, a mention in a thread, a schedule, webhook or record change of its app) while it acts for someone: the scope the plan names, as below.
An agent handed work writes Result
Private scope (for the person it acts for) Accepted at once.
Team, org or partner scope, confidence below 90 or no evidence Quarantined until a person decides.
Team, org or partner scope, confidence 90 or more and evidence attached Accepted at once, without review.
Anything citing captured context (emails, chats) Always quarantined, however sure it is.

A team entry belongs to the team of the person the agent acts for: a Support Agent run for Maya writes for the Support team. An entry is raised to the most sensitive data class of what it cites, and an agent's entry also to the most sensitive data the run had read.

Written by the Distiller#

If your company uses context capture, the Distiller reads each team's week once every seven days and proposes team knowledge: a Decision entry for each decision taken in the team's threads, Framework, SOP and Enablement entries from the artifacts of the team's Context thread, and an insight when the same rejection reason comes up twice. Everything it proposes is quarantined at confidence 70 and owned by the team. See Context capture.

The demo company has no context sources set up, so there is no Context thread and the Distiller proposes nothing until an admin adds a source.

Written by people#

A person's own entry is accepted at once, in any scope, unless it cites captured context:

  • Governance, Knowledge tab, Remember something saves an org entry at confidence 100. Any signed-in person can use it.
  • Log decision in a thread (see Log a decision).

Team, private and partner entries can only be written through the API (see For developers), and team entries only for your own team: Alice in Sales writing for the Support team is refused with "team:support is not a team of alice".

Who may decide#

Accept and Reject on the Knowledge page appear only on entries you may decide. The server checks the same rule.

Entry scope Who may accept or reject it
Private Its owner only.
Team A member or the lead of that team who can open every piece of its evidence, or an admin.
Org, Partner Any person.

Agents never decide knowledge.

In the demo, Maya (Support lead), Tom (Support) and Ada (admin) may decide the Support team's entries. Alice and Fiona do not see them at all, and the server refuses them: "policy denied knowledge.accept: fiona is neither a member nor the lead of team:support". Tom is refused an entry whose evidence is a thread he is not in: "policy denied knowledge.accept: tom may not read the evidence thread:...".

When an entry goes into quarantine, an inbox item reaches whoever of these may decide it: the team's lead (team entries), the agent's escalation contact and anyone with the data owner role. In the demo, for a Support Agent entry that is Maya. Tom may decide a team entry but is not told.

Try it in the demo#

The steps below run in order and build on each other. Steps that make an agent do something specific use developer mode, because without a model key the demo runs the stub planner, which does not write or recall knowledge on its own (see Asking agents). With a real model, the agent chooses these steps itself.

Log a decision#

  1. Sign in as Maya. Open Threads and choose New thread. Goal: "Refund policy for double charges". Under Participants tick Tom Becker and Support Agent. Choose Create. The thread opens, with you as owner.
  2. Choose Log decision (in the message box's + menu). The Log a decision sheet opens.
  3. Decision: "Refund double charges in full without asking for proof". Why: "The billing log already shows both charges". Topics: refunds, billing. Choose Log decision. The note "Decision logged" appears, the decision card appears in the conversation, and Details lists it under Decisions.

The decision is now also an accepted org entry: "Decision: Refund double charges in full without asking for proof. Rationale: The billing log already shows both charges", confidence 100, topics refunds, billing, decision, with the thread and the decision as evidence. See Decisions in threads.

See an agent recall it#

Asking the Support Agent "A customer was charged twice. Do we ask for proof before refunding?" without a model returns a table of open tickets, not the decision. To see a recall, give the plan yourself.

  1. In the same thread, add ?dev=1 to the address and reload. An Explicit plan appears in the message box's + menu.

  2. Put the chip on Support Agent (@ Ask an agent, or type @Sup and pick it) and choose +, Explicit plan. A second box opens in the message box.

  3. Write "Check our decisions on refunds" in the message box and paste this into the second box:

    json
    {"ops":[
      {"op":"recall","topics":["refunds"],"bind":"k"},
      {"op":"post","kind":"text","body":"Found {{k.length}}. First: {{k.0.content}}"},
      {"op":"output","value":"$k"}
    ]}
    
  4. Choose Send. The Support Agent posts "Found 1. First: Decision: Refund double charges in full without asking for proof. Rationale: The billing log already shows both charges". Its run card then shows each entry it read as a table, and ends with "Done".

Recall matches any topic that contains the word you ask for, so refund finds refunds. It returns only accepted, unexpired entries the person the agent acts for may see, best topic match first, then highest confidence. Quarantined, contested and rejected entries are never returned.

Have an agent propose knowledge#

Still in the thread, with developer mode on and Support Agent picked:

  1. Message: "Note the Northwind double charge". Plan:

    json
    {"ops":[
      {"op":"remember","scope":"team","content":"Northwind was double charged in September; refunded in full","topics":["refunds","northwind"],"confidence":70},
      {"op":"output","value":"noted"}
    ]}
    

    Choose Send. The agent replies "noted". Because you asked it, the entry is private to you and accepted at once, although the plan named the team: Knowledge, Facts shows it as Private, "by Support Agent for Maya Patel".

To see a team entry wait for review, hand the agent the same work as a task instead of asking it. The New task form on Work has no place for a plan, so use the API with Maya's printed API token (in $MAYA):

  1. Create the task:

    sh
    curl -s http://127.0.0.1:8080/api/tasks \
      -H "Authorization: Bearer $MAYA" -H 'content-type: application/json' \
      -d '{"title":"Note the Northwind double charge","assign_to":"support-agent",
           "inputs":{"plan":{"ops":[
             {"op":"remember","scope":"team","content":"Northwind was double charged in September; refunded in full","topics":["refunds","northwind"],"confidence":70},
             {"op":"output","value":"noted"}]}}}'
    

    Within half a minute the server runs it, and Work shows the task Done. The entry is quarantined for the Support team (confidence below 90, no evidence), and Maya gets an inbox item for it.

  2. A task whose plan writes {"op":"remember","scope":"org","content":"Refunds over 100.00 always need an admin","topics":["refunds","fact:refund-approver"],"confidence":95,"evidence":["thread:<thread id>"]}, with <thread id> replaced by the id at the end of the thread's address, is accepted at once with no review: confidence 95 and evidence attached.

Accept or reject quarantined knowledge#

  1. As Maya, open Inbox. Under Unread you see "Knowledge awaiting review (team): " followed by the entry's id. Clicking it opens Governance, Knowledge tab, where the entry waits under Quarantined (see Governance, Knowledge tab).
  2. Or open Knowledge from the sidebar. It opens on All. At the top, Waiting for a decision shows a count and the Northwind entry: Quarantined, Team, Fact, "confidence 70", "by Support Agent for Maya Patel", "topics refunds, northwind", with Accept and Reject.
  3. Read the entry and open its evidence links if it has any.
  4. Choose Accept. The note "Accepted" appears. The entry leaves the waiting list and shows under Facts as Accepted. Agents can read it from now on.
  5. To try Reject, have the agent propose another entry the same way and choose Reject on it. There is no confirmation. The note "Rejected" appears and the entry disappears from the page. It is kept as Rejected, but no screen lists rejected entries.

Governance, Knowledge tab offers the same decision under Quarantined. It shows Accept and Reject on every quarantined entry you can see, even one you may not decide; the server then refuses with the "policy denied" message above.

Contest an entry#

Two accepted entries are contested when they are in the same scope, share a topic that starts with fact: and say different things. Entries without a fact: topic are never compared.

  1. Sign in as Ada. Open Governance and choose the Knowledge tab. Under Accepted knowledge you can see is "Refunds over 100.00 always need an admin", from step 3 of the previous section.
  2. Choose Remember something. Under What should the organisation remember? write "Refunds over 100.00 need the support lead, not an admin". Under Topics write refunds, fact:refund-approver. Choose Save. The note says "Saved to org memory".
  3. A Contested heading appears above Accepted knowledge you can see, with both entries marked Contested, each with Keep this one and Reject.

No one gets an inbox item when a contest starts this way, and the note after saving does not mention it. Check for a Contested list after saving an entry with a fact: topic.

Settle a contest#

On Knowledge the Contested section ("Two accepted entries disagree; a person decides which stands.") shows Accept and Reject. On Governance, Knowledge tab the same buttons read Keep this one and Reject. Who may use them follows Who may decide.

  1. Choose Keep this one on "Refunds over 100.00 need the support lead, not an admin". The note says "Kept"; the entry moves to Accepted knowledge you can see.
  2. The other entry is still Contested: Keep this one does not reject it. Choose Reject on it.

If you accept the other one instead of rejecting it, the two clash again and both return to Contested. You (the person who accepted) get an inbox item: "Knowledge conflicts with an accepted entry; resolve the contest". Rejecting one of them then leaves the other Contested too; accept it again to settle.

Decisions in threads#

In a thread, owners and approvers see Log decision; contributors do not.

Field What to write
Decision The decision itself. Required.
Why The reason.
Topics Comma separated. Agents look decisions up by these, so add them.

The decision appears in the thread and in its Details (see Threads). At the same moment it becomes an accepted org entry, "Decision: . Rationale: ", at confidence 100, with your topics plus decision and with the thread and the decision as evidence. No one needs to accept it.

Because it is an org entry, everyone in the company can read it, even people who cannot open the thread. In the demo, Alice sees Maya's refund decision under Facts with both evidence links shown as restricted source.

On the Knowledge page a logged decision shows in two places:

  • The Decisions tab lists, under Decisions in threads, the decisions of threads you can see, newest first, each linking to its thread. Alice sees none for Maya's thread.
  • The org entry itself is listed under Facts, not under Decisions, because it carries the topic decision rather than a kind. So the Decisions tab says "No accepted decision entries." right above the Decisions in threads list.

A decision cannot be edited or withdrawn, and neither can its entry.

An agent can log a decision too (the decide step), only in a thread where it is an approver. In a run you asked, its entry is private to you, like its other knowledge; an agent that combines or leads an ask to several agents may not log decisions at all.

Agent memory#

Lessons learned overnight have replaced the run notes below: while lessons load into runs (the default) and the nightly job has a budget, no note is written after a run, and the nightly job reads the day's runs instead and writes each person's lessons, with the runs as evidence (see What we've learned: lessons). Your lessons are on Profile → Memory → What I've learned, where you can correct or forget them. Notes written before stay on the Agent memory tab until they expire, and a company that turns the jobs off gets them again.

When the jobs are off, after every finished run the agent writes one private note: "Finished '' () for Maya Patel." followed by a short account of the result, such as "1 result", with the run as evidence. It is kept for 90 days. Notes are the raw log: they never load into a run's memory block.

  • Whose it is. The note belongs to the person the run acted for, not to the agent. Any agent working for Maya can recall Maya's notes: in the demo, a Knowledge-base writer run for Maya with a recall on the topic episodic returned the notes the Support Agent wrote for her. Tom does not see them.
  • Where you see it. Knowledge, Agent memory tab: "What agents noted after their runs for you, kept for their own recall for 90 days. Not company knowledge and not checked by anyone." Each card shows agent memory, its expiry date, "by Support Agent" and the task as evidence. The other tabs leave the notes out.
  • How it differs from knowledge. No one reviews it, it never reaches a team or the company, it expires, and the Knowledge page shows no confidence for it.

Agents of the context app (the Curator, the Distiller) write no memory, and neither does the Coordinator, nor any run that combines answers, leads an ask to several agents or answers another agent's question (see Asking several agents together).

Expiry and validity#

An entry can carry an expiry date. Once it passes, the entry no longer shows in lists and agents no longer read it; it is then marked Expired. Agent memory, lessons nobody confirmed and the nightly job's unreviewed proposals expire after 90 days; a shared entry expires when its expiry is set, which today only the kernel does. There is no way to give an entry an expiry from the screen or the API.

An entry may also have a valid from and a valid to date. When a person corrects a lesson, or a check or the nightly job shows it is no longer true, the old entry is not changed: it gets a valid-to date, stays in the history, and the new one is added with its evidence. Recall reads only entries valid now. A superseded entry is stored as Expired, so an older server never reads it as current; screens show it as "Superseded by ...". Recall also reads at most 20 entries by default (100 at most), found by their topics.

The Knowledge page#

Part What it does
Tabs All, then Frameworks, SOPs, Enablement, Decisions, Glossary, Facts, and Agent memory. All shows every kind except agent memory.
Function picker Every function, one per function (support, sales and so on), or No function. Narrows to entries with that function topic; inside each kind, entries are grouped by function.
Waiting for a decision Quarantined entries you can see, with Accept and Reject when you may decide. A lesson the nightly job proposed for your team or the company from your own work shows here too, with Withdraw (it asks first): your team's lead or an admin decides it, and you may only take it back (Agent memory).
Contested Contested entries you can see, with Accept and Reject when you may decide.
SOPs Also lists Agents' playbooks, linking to each agent.
Decisions Also lists Decisions in threads.
Glossary Also lists the synonyms of the collections you may read.

You see private entries that are yours, team entries of your teams and of teams you lead, and every org and partner entry. Admins see every team's entries.

Governance, Knowledge tab#

The Knowledge tab on Governance is the review view:

  • Remember something: save an org entry (see Written by people).
  • Quarantined: entries waiting for a decision, with Accept and Reject, or "Nothing in quarantine."
  • Contested: shown only when there are some, with Keep this one and Reject.
  • Accepted knowledge you can see: every accepted entry, including your agent memory. Cards here show "by Support Agent" without who it acted for, and evidence as raw references (thread:...) rather than titles.

Not possible yet#

  • Seeing or restoring a rejected entry from the screen.
  • Editing an accepted entry. Write a new one; give both the same fact: topic if the old one should be contested.
  • Setting an expiry on shared knowledge from the screen or the API.
  • Writing team, private or partner knowledge from the screen (API only).
  • Opening the entry itself from its "Knowledge awaiting review" inbox item: it opens the Governance Knowledge tab, and the item names the entry by its id.
  • Writing an agent's entry for a team or the company from an ask: what you ask an agent to remember stays private to you.
  • Being told when a contest starts from a person's new entry.
  • Requiring review of an agent's high-confidence, evidenced shared entry.
  • Editing or withdrawing a decision.

For developers#

API#

All under /api, with Authorization: Bearer <token>: an API token you issue on your profile (see People, tokens and access).

Method and path Body or query Notes
GET /knowledge status, kind, fn, topics (comma separated, substring match) Entries the caller may see; status defaults to accepted (also quarantined, contested, rejected, expired). Each entry has evidence_refs (ref, title, restricted, removed), may_decide and may_withdraw (a nightly team or company proposal from the caller's own work, still waiting: withdrawing is POST /knowledge/:id/reject). Paged, newest first.
POST /knowledge { scope, content, topics?, confidence? (80), evidence?, team? } scope: private, team, org, partner. A person's entry is accepted at once; the reply's status is contested if it clashed. 422 "team:support is not a team of alice" when team is not the caller's.
GET /knowledge/quarantine { quarantined, contested } the caller may see.
POST /knowledge/:id/accept 403 denied when the caller may not decide it.
POST /knowledge/:id/reject Same rule.
GET /decisions Decisions in threads the caller may see.
POST /threads/:id/decide { statement, rationale, topics? } Owners and approvers; also writes the org entry. Others get 409 "lacks the Approver role".
POST /threads/:id/ask { agent, text, plan? } plan is an explicit plan, as in developer mode. An ask's remember and decide are private to the person.
POST /tasks { title, assign_to, inputs?: { plan } } A task for an agent, run at the next tick; its remember keeps the scope the plan names.

Plan operations (see docs/plans.md in the repository): remember (scope, content, topics, confidence, evidence, team), recall (topics, bind), search (finds accepted knowledge too) and decide (thread approvers only).

Events#

On the Events page, under Knowledge: knowledge_proposed, knowledge_accepted, knowledge_rejected and knowledge_contested (only when accepting an entry starts a clash). A logged decision emits decision_logged, under Threads.

CLI#

In the demo the state file is orchkernel-demo/state.db.

sh
ok brain --state orchkernel-demo/state.db --as maya quarantine          # entries waiting
ok brain --state orchkernel-demo/state.db --as maya recall refunds,billing
ok brain --state orchkernel-demo/state.db --as maya accept <id>
ok brain --state orchkernel-demo/state.db --as maya reject-knowledge <id>