orbotodocs
Admin guidePlatform

Primer facts

Structured facts about your projects that power the AI agent primer and requirements reports - categories, how agents write facts that are live at once, pinning, history, and where they surface.

Primer facts

The concept

When an AI agent (or a human relying on AI-generated context) starts work on a project, it needs to know things a codebase alone can't always tell it: which package manager to use, that a particular migration step is handwritten rather than generated, what the deployment process actually looks like, or a hard-won gotcha that cost someone a debugging session last month. Writing this down once, in a structured way, is far more reliable than hoping an agent rediscovers it

  • or worse, guesses wrong - every single time.

A primer fact is exactly that: one small, structured piece of project (or workspace) knowledge - a key, a value, and a category - that gets automatically included whenever an agent (or a generated report) asks for a project's primer: its onboarding briefing.

Categories

Every fact belongs to one category, which determines where it renders in the primer and in generated reports:

CategoryWhat belongs here
Tech stackLanguages, frameworks, major dependencies, versions
ConventionsCoding standards, naming rules, commit message format
DeploymentHow and where the project ships, environment specifics
ArchitectureHigh-level structure, module boundaries, key design decisions
IntegrationsExternal services and APIs the project talks to
GotchasHard-won, non-obvious pitfalls worth flagging up front
CommandsExact CLI commands to build, test, run, or deploy
Non-functionalExplicit non-functional requirements - performance, security, data-protection, operational targets
GlossaryProject- or domain-specific terminology and definitions
OtherAnything that doesn't fit the above

Scope: workspace vs. project

A fact is either project-scoped (visible only in that project's primer) or workspace-scoped (visible in every project's primer, automatically). Workspace facts are for things genuinely true everywhere - a company-wide coding convention, a shared deployment platform - not project specifics. Because a workspace fact adds to every project's primer regardless of relevance, the admin UI shows a standing reminder to use this scope sparingly; a fact that only applies to one project belongs there instead.

Source: manual, imported, or agent

Added in v0.236.0 An agent fact is live at once. It appears in every primer without a marker and nobody has to approve it. Each one shows who wrote it, from which agent session and when, and the evidence the agent gave for it. Before 0.236.0, agent facts waited in a review queue as "observed, not verified"; the update left those facts live and unpinned, and the queue is gone.

A fact records where it came from:

  • Manual - a person typed it in directly.
  • Imported - it arrived via a data import from another system.
  • Agent - an AI agent, working on the project, recorded it itself.

An agent writes, a person pins

Added in v0.236.0 A bot account or an agent key records a project fact itself, with the evidence for it:

orboto primer-fact add ACME --category tech_stack --key node --value "Node 22, pnpm 10" --evidence ".nvmrc line 1, package.json engines"
orboto primer-fact history <factId>
orboto primer-fact recent --days 7
  • Evidence is required from an agent: a file and line, a command and its output, a ticket or doc key, up to 600 characters. Without it the call fails with 422 (errors.primer_facts.evidence_required). The evidence goes through the same secret check as the value.
  • Live at once, with provenance. The fact carries its author, its agent session, the time and the evidence in every primer and in the lists below.
  • An agent replaces an unpinned fact. An add under an existing key replaces the fact and keeps the earlier version, which orboto primer-fact history <factId> and Earlier versions in the fact list show. The same value again changes nothing. An agent can also supersede a fact by its id (orboto primer-fact supersede).
  • A pinned fact stays. A person pins a fact (the Pin action, or orboto primer-fact pin <factId>; Unpin and unpin undo it) when it must not change by an agent. An agent that adds a different value under a pinned key changes nothing: the call succeeds with HTTP 202, the agent's value and evidence are filed as a wiki lesson ("Fact mismatch: category/key") in that project's wiki only, never in the Operations wiki, and the agent is told the lesson's key and to continue. A project without a wiki, or an agent that may not edit it, files no lesson and is told so. A person who supersedes a pinned fact keeps the pin. Pinned facts are the ones the older screens called verified.
  • Workspace facts and rules stay with people. A bot account or an agent key gets 403 on a workspace fact (workspace_needs_person), on pin and unpin (pin_needs_person), on an edit in place (update_needs_person) and on a delete (delete_needs_person). The web app shows those actions only to people who may use them.
  • A limit. One agent session writes at most 30 facts and rule candidates per hour; the next one answers 429 (errors.knowledge.agent_write_rate_limited). A write that changes nothing does not count.
  • Every write has an undo. An agent's fact write answers with a receipt, and orboto knowledge undo <code> gives the fact its previous state back. See Knowledge base for agents.

An agent's own personal facts are not project knowledge, so it keeps editing and deleting those itself.

Managing workspace facts (Admin -> Primer facts)

The Workspace facts tab lists every workspace-scoped fact (visible in every project's primer). Filter by category and by pinned state.

  • Add workspace fact - create one directly, choosing its category, key, and value.
  • Edit (pencil icon) - change an existing fact's content.
  • Supersede - replace a fact with a new version while keeping the old one's history rather than silently overwriting it; use this when the old value was genuinely correct at the time but has since changed (a version bump, a process change), so there's still a record of what used to be true. Added in v0.236.0 Superseding a pinned fact keeps the pin.
  • Pin / Unpin - Added in v0.236.0 mark a fact as one an agent never replaces. Before 0.236.0 this action was Verify.
  • Delete - remove it outright, with a confirmation naming the fact's key.

The Workspace facts tab with its category and pin filters

New and changed facts

Added in v0.236.0 The New and changed, 7 days tab lists every fact written or changed in the last seven days, across all projects and the workspace scope, newest first. It replaces the Pending review queue: agent facts are live at once, so there is nothing to approve, and the tab is where you see what agents and people wrote lately. Filter by project (or workspace scope) and category, load more with Load more, and use the same actions as everywhere: Edit, Supersede, Pin, Unpin and Delete. Each row shows the author, the agent session, the evidence and the earlier versions.

The New and changed, 7 days tab: facts agents and people wrote lately, with their project, author, evidence and earlier versions

The same list is orboto primer-fact recent [--days 7] [--limit N] [--cursor C] (needs admin:ai:read; it pages with a cursor and prints more: --cursor C when there is another page). The primer health tile counts the facts changed in the last seven days. GET /admin/primer-facts/pending-review stays for older scripts and always answers an empty list.

Where facts surface

  • The project primer - the structured briefing an AI agent or the MCP/skill surfaces pull when it starts work on a project. Facts render grouped by category, in a fixed display order, with workspace facts merged in alongside that project's own.
  • Generated requirements-style reports - the non-functional and glossary categories specifically exist to feed the matching chapters of orboto's generated requirements specification report, so those categories carry weight beyond just agent context.
  • Personal facts - a related, separate concept: individual users can also record their own personal facts (visible only to them across the projects they work in), which is a different surface from the workspace/project facts this admin page manages.

The manual notes doc and who can read it

Added in v0.214.2 Besides facts, a project's primer can include one manual notes doc: a doc in one of the project's own spaces that you configure under Project settings -> AI primer. Whether its content lands in a given primer depends on who the primer is rendered for:

  • A primer rendered for a person - orboto primer, the MCP tool orboto_get_project_primer, GET /projects/{id}/ai-primer - always uses that person's access. It includes the notes doc only when that person may read it.
  • A primer rendered without a viewer - the weekly regeneration into the project's primer doc, and the primer inside a work-start bundle for a project member - includes the notes doc only when every active project member may read it. The check follows the same layers as opening the doc: super-admin, a public doc, the guest opt-in of the space, membership of a restricted space, the doc:view permission for a project-members space, and then the doc's visibility (workspace, members with doc:edit, or the specific people named on the doc). Deactivated accounts are not counted. One member without access excludes the doc. If a caller who is not a project member (for example an account with admin:users:read) asks for a work-start bundle, that caller gets the primer rendered for their own access instead.

A doc you narrowed on purpose therefore stays in the weekly primer as long as all members still hold access to it, and drops out the moment one member does not.

Seeing an exclusion

An excluded doc is never dropped silently:

  • The primer starts with a line Configured doc excluded from this primer: <doc key> (<reason>, N member(s) without access). The reason is not_found (the stored doc is no longer in a space of this project), space_restriction (members cannot see the space) or doc_visibility (members are not covered by the doc's visibility). The line is not shown to the AI that regenerates the primer and is not kept in AI-generated text, so it disappears on its own once access is fixed.
  • Project settings -> AI primer, the primer doc and the notes doc show a notice with the same doc key, reason and member count.
  • GET and PATCH /projects/{id}/ai-primer/config and POST /projects/{id}/primer/regenerate return an excludedDocs array. Each entry has source (manualNotes), docId, docKey (null for not_found), reason and membersWithoutAccess.
  • Every regeneration that leaves a doc out writes the audit action project.primer_doc_excluded with the primer doc id and the excludedDocs list.

To bring the doc back, widen the doc or space access so every member is covered, or remove the member who lacks it.

When the primer is re-rendered

A change to anything the rule reads queues a regeneration of the affected projects right away instead of waiting for the weekly run:

  • a member added, removed or given another role, including invitation accept and customer or SCIM-driven membership sync;
  • the permission set of a project role or a customer role;
  • the notes doc's visibility, moving it, or deleting it;
  • its space's visibility, guest opt-in or member list, or deleting the space;
  • a member's account being activated or deactivated, or their guest flag changing.

Queued regenerations are debounced per project: at most two jobs per project per minute, and a change made while one is pending is picked up by the next one, so none is dropped. The Force regenerate now button on the primer doc page (POST /projects/{id}/primer/regenerate) runs immediately and is never throttled.

Private milestones in the primer

Added in v0.230.0 A primer names a private milestone - in the list of open milestone keys, in the active and recently closed milestone sections, and in the recent retros the AI draft of a primer section reads - only for a reader who may see it: a super-admin, or a member with the milestone:view_private permission. Public milestones appear for everyone.

  • A primer rendered for a person - orboto primer, the MCP tool orboto_get_project_primer, GET /projects/{id}/ai-primer, the AI drafting of a primer section, and the primer in the start bundle of a work session - names private milestones according to that person's access. Two members can read different primers of the same project. The notes doc follows the rules above, not this one.
  • A primer rendered without a reader - every regeneration into the project's primer doc, the weekly one, the ones queued by an access change and Force regenerate now - names public milestones only, whoever opens the doc later.
  • Stored primers refresh once after the upgrade. After each start of the instance, one job re-renders every project's stored primer, at most once an hour however often the instance restarts. A primer doc that an earlier version wrote with private milestone names is rewritten by that job, without waiting for the weekly run.

Why pinning matters

Added in v0.236.0 An agent recording "the deploy command is X" and being wrong costs real time the next time an agent (or a person) trusts it. Two things keep that cheap since 0.236.0: every agent fact shows its author, session and evidence, so you can judge it at a glance, and every replacement keeps the earlier version, so a wrong value is one Edit or one orboto knowledge undo away from the right one. Pin the facts that must not drift - the production deploy command, a version you hold on purpose - and an agent that disagrees files its value as a wiki lesson for you to read instead of changing the fact.

Troubleshooting

  • A fact I added to one project shows up in every project's primer
    • it was created at workspace scope instead of project scope; edit it (or delete and re-add it under the specific project) to narrow it.
  • An agent keeps recording a value I do not want - Delete removes that fact record, but an agent can record the same thing again in a later session. Correct the fact and Pin it: from then on the agent's disagreement lands as a wiki lesson instead of another fact.
  • A fact I pinned did not change although an agent added a new value - working as intended. The agent got HTTP 202 and filed its value as a wiki lesson named "Fact mismatch: category/key" in the project's wiki. Read it, then edit the fact yourself or leave it.
  • An agent gets 422 errors.primer_facts.evidence_required - a fact from a bot account or an agent key needs --evidence: where the agent saw it, such as a file and line or a command.
  • A category I need isn't in the list - the category set above is fixed; use Other for anything that doesn't fit, or note the gap for your workspace's own conventions rather than trying to force a fit into an unrelated category.
  • An agent gets 403 with delete_needs_person (or update_needs_person, pin_needs_person, workspace_needs_person) - working as intended: an agent records and replaces project facts, and a person decides what stays. Pin, edit or delete the fact yourself, or have the agent record a corrected fact with orboto primer-fact add ... --evidence "...".
  • A private milestone is missing from my primer - working as intended when you lack milestone:view_private: the primer names only the milestones you may see. The weekly primer doc names public milestones only, for everyone.
  • The notes doc is missing from the weekly primer - look for the Configured doc excluded from this primer line or the notice under Project settings -> AI primer; it names the reason and how many members lack access. Fix the access, then wait for the automatic re-render or press Force regenerate now on the primer doc.

On this page