Layer 3 · capability
knowledge
What an agent is given before it acts: instructions, skills, memory entries, context files and concepts. A concept is a named practice an agent applies, such as "test first" or "a default proceeds". An item is published for a scope (every agent its owner runs, an organization or a repository) with a rank among the items of its scope and kind, revised as its content changes, and withdrawn when it no longer applies. An item may name the one principal who revises it, take no revision from a sub-agent session, and need the owner's approval of the exact new content; the caller states who revises, from which kind of session, and the digest the approval named. Content is held as a digest and a length, never as text.
Depends on
Used by
- agent · layer 4 · 4 references
Entities
KnowledgeItem
One item of knowledge for one scope. Published until withdrawn; a revision keeps the identity.
Identified by knowledge_id (KnowledgeId).
| field | type | meaning |
|---|---|---|
kind | KnowledgeKind | |
name | Name | |
scope | KnowledgeScope | |
repository | optional string | The repository the item applies to; present exactly when the scope is Repository. |
content | Content | |
revision | integer | 1 at publication, one more at each revision. |
rank | integer | Among items of one scope and kind, a higher rank is read first and wins where two say different things. 0 when publication named none. |
editor | optional PrincipalId | The one principal who may revise the item; absent, any author. |
main_thread_only | boolean | A sub-agent session may not revise the item; a session's main thread may. |
needs_approval | boolean | A revision needs the owner's approval of that exact content. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Relations:
editorreferences Principal of principal (one, byeditor)
Always holds: revision >= 1, rank >= 0.
Lifecycle of KnowledgeItem
Withdrawn.Commands
PublishKnowledge
Publish knowledge.
Called by: Knowledge author.
| field | type |
|---|---|
knowledge_id | KnowledgeId |
kind | KnowledgeKind |
name | Name |
scope | KnowledgeScope |
repository | optional string |
content | Content |
rank | optional integer |
editor | optional PrincipalId |
main_thread_only | optional boolean |
needs_approval | optional boolean |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
repository-missing refused | scope == Repository and not (defined(repository)) | Scope: The scope names a repository and the request gave none. |
negative-rank refused | defined(rank) and rank < 0 | Negative: The rank is below 0. |
published | otherwise | creates a KnowledgeItem in Published; emits Knowledge |
More columns: swipe horizontally, or focus the table and use the arrow keys.
ReviseKnowledge
Revise knowledge.
Called by: Knowledge author.
| field | type | meaning |
|---|---|---|
knowledge_id | KnowledgeId | |
content | Content | |
editor | PrincipalId | The principal of the revising session. |
by_sub_agent | boolean | The revising session's role is agentic., as the harness that calls states it. |
approved_digest | optional string | The content digest the owner's approval named; absent, no approval. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
no-such-item refused | no such KnowledgeItem | Knowledge: No item has this identity. |
not-the-editor refused | defined(editor) and editor != input. | Not: The item names its editor, and the revising principal is another. |
sub-agent-not-main-thread refused | main_ | Sub: The item is revised only from a session's main thread, and the revising session is a sub-agent. |
approval-not-of-this-change refused | needs_ | Approval: The item needs the owner's approval of the new content, and no approval was named or the one named approved other content. |
revised | otherwise | moves the KnowledgeItem Published → Published; emits Knowledge |
wrong-state refused | the KnowledgeItem is in a state that does not allow it | Knowledge: The item is not in a state this command acts from; it was withdrawn. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
WithdrawKnowledge
Withdraw knowledge.
Called by: Knowledge author.
| field | type |
|---|---|
knowledge_id | KnowledgeId |
More columns: swipe horizontally, or focus the table and use the arrow keys.
| outcome | when | result |
|---|---|---|
withdrawn | otherwise | moves the KnowledgeItem Published → Withdrawn; emits Knowledge |
wrong-state refused | the KnowledgeItem is in a state that does not allow it | Knowledge: The item is not in a state this command acts from; it was withdrawn. |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Events
| event | fields | emitted by |
|---|---|---|
KnowledgePublished | knowledge_ KnowledgeId, kind KnowledgeKind, name Name, scope KnowledgeScope, repository optional string, content Content | Publish |
KnowledgeRevised | knowledge_ KnowledgeId, content Content | Revise |
KnowledgeWithdrawn | knowledge_ KnowledgeId | Withdraw |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Views
| view | rows | fields |
|---|---|---|
KnowledgeKnowledge | each KnowledgeItem | knowledge_ KnowledgeId, kind KnowledgeKind, name Name, scope KnowledgeScope, repository optional string, content Content, revision integer, rank integer, editor optional PrincipalId, main_ boolean, needs_ boolean, state State |
PublishedConceptsPublished concepts | each KnowledgeItem with kind == Concept and state == Published | knowledge_ KnowledgeId, name Name, scope KnowledgeScope |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Types
| type | is | values or fields |
|---|---|---|
KnowledgeKindWhat an item is. An Instruction tells an agent what to do, a Skill is a procedure it may load, Memory is what it kept from earlier work, a ContextFile is a file read into its context, a Concept is a named practice it applies. | one of | Instruction, Skill, Memory, Context, Concept |
KnowledgeScopeWhom an item applies to. UserGlobal applies to every agent its owner runs, in every organization and repository, above Organization. Organization applies to every agent of the organization, Repository to agents working in one repository. What one agent is given is listed by its revision in agentic.agent. | one of | User, Organization, Repository |
More columns: swipe horizontally, or focus the table and use the arrow keys.
KPIs
2 KPIs from the KPI catalogue. A gate must be zero for a variant of an architecture to count.
Correctness
| KPI | unit | better | gate | status |
|---|---|---|---|---|
stale_entries_openKnowledge entries that describe code that has changed since and were not revised. How: Published entries with a cited path that received a PathWritten after the entry's last KnowledgePublished or KnowledgeRevised, and no revision since. A stale line is corrected, not deleted. | count | lower | – | planned source: research/2611.09802 |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Quality
| KPI | unit | better | gate | status |
|---|---|---|---|---|
precedence_followed_shareShare of conflicts between a written rule and the code in which the agent followed the rule. How: In probe tasks where an instruction and the code disagree, runs that followed the instruction divided by probe runs. Run per model, because wording is tested per model. | share | higher | – | planned source: research/2610.30571 |
More columns: swipe horizontally, or focus the table and use the arrow keys.
Settings
The settings a part of this block carries in an architecture document. agenticspec sim check refuses any other setting (setting_unknown) and a value outside its type (setting_invalid), and a part that lacks a setting marked required in the default column; the contract copies a setting into the ports it narrows. The last rows of each table are the settings every part takes. What no setting here types (a file, a path, an audience, the use of a model) goes into the part's notes, a map with free keys and values that the check takes as written and nothing reads.
A part knowledge:
| setting | type | unit | default | contract | what |
|---|---|---|---|---|---|
kind | string | What the knowledge is. | |||
count | integer of at least 1 | 1 | How many copies of the part run. | ||
per | part | One copy of the part for each copy of the named part. | |||
notes | notes | Free notes on the part, a map with keys and values of any kind: what no setting of its block types. The check takes any map; the simulator, the search and the contract never read it. |
More columns: swipe horizontally, or focus the table and use the arrow keys.