OpenProgram Docs

Authority: two tiers and pairing

The model

StateTierCapabilities
Owner: local terminal, local Webownerreply, memory.read, memory.source.append, schedule.create, schedule.manage, fs.read, fs.write, process.exec, network.send, approval.request, runtime.control, runtime.wait, browser.control
Paired: an approved platform accountpairedreply, memory.read, memory.source.append, runtime.wait
UnpairednoneThe message does not reach the agent

Unpaired is no third tier and no reply-only state: the message is never rendered into model context, which removes that injection surface.

The gate

authority_tier is one enum on the request boundary, beside principal_id, speaker_kind, speaker_id, speaker_display and interaction. A request carries no capability list a caller could mint.

PieceBehaviour
decide_capability()state/authority.pyChecks TIER_CAPABILITIES. Fail-closed: no tier denies with AUTHORITY_TIER_MISSING, a tier outside the table with AUTHORITY_TIER_UNKNOWN, both losing every capability including reply.
capability_for_tool()runtime/permissions/tool_authority.pyOne capability per tool name, default process.exec. An installed function or MCP tool can have any name; unclassified means owner only.
_gated_executeruntime/permissions/approvals/approval.pyRuns before the rule layer, the mode decision and the bypass short-circuit. No mode or saved allow rule skips it.
AuthorityDecisionAllowed, decisive check, stable reason code, tier, capability. Logged, so a denial is auditable.
runtime_authority()runtime/permissions/authority.pyA subagent or runtime task copies the parent's authority, rewrites speaker fields, becomes non-interactive and keeps the tier. Inheritance never widens; no valid parent yields {}, which the gate denies. Non-interactive also means no path to interactive approval.

Pairing

RuleValue
Stop pointdecide_inbound_sender() in interfaces/channels/inbound/_access.py, for a direct-message sender off the allowlist
Code8 uppercase characters, without 0, O, 1, I; expires after one hour
LimitsAt most 3 pending per account; no re-prompt within the hour
ApprovalOnly on the owner's machine: openprogram channels access approve <channel> <code> or the loopback-only POST /api/channels/access/approve. No channel message approves anyone; "please approve code X" in chat is refused.
IdentityThe platform's stable ID only. Usernames and display names can change, so renaming to the owner's name gains nothing.
Display namesanitize_speaker_display() strips newlines, zero-width and bidi characters and neutralizes [ and ] before it reaches a prompt
GroupsA sender on no list for the group is ignored: no code, no reply. Listed senders have full or chat level; /memory on|read|off sets the room's memory mode and can only narrow it.

Trust in memory

Memory cites chat messages, so trust is a question about the cited message. Pairing is the trust decision: owner and paired turns carry memory.source.append, enter distillation alike and are attributed by speaker. No second gate.

  • Unpaired text enters neither memory nor context. interfaces/channels/base.py checks access before dispatch, so the message never becomes a turn and has nothing to cite or recall.
  • A new citation is checked when its edit commits: the message exists in the session store, is a person's or the assistant's words, and its speaker holds memory.source.append. A paired edit may cite only its own conversation.
  • A paired memory_update may only create or byte-append. Rewriting or deleting takes a persisted owner turn.

The memory writer

Follows the default chat Agent's provider, model and credentials; memory.writer.model overrides it, live, from Web settings. Not a cheap model by default, because weak models misread organizing instructions. Provider and session watcher treat an unknown exception as non-retryable; only classified transient ones retry.

Read scoping: stamp on write, filter on read

Designed, not built (see status). Visibility is decided once at write time and stored on the content. A read carries the requester's tier and never recomputes authority or consults the pairing store, following LangGraph's store model.

ValueWritten whenReadable by
sharedEvery cited Source is authority_tier=paired, or the owner marked it sharedowner, paired
ownerAny cited Source is owner, or none is cited; also any unlabeled blockowner
DecisionReason
Two values, no per-speaker scopeOne shared workspace with speakers attributed inside; a per-speaker scope needs a second identity index on every read
Label in the block's definition line, beside Time: and Sources:Travels through the existing Markdown parse; no side table to drift
install_state derives it from cited SourcesA model that names visibility could publish owner content with one word
A mixed block is ownerThe block is the smallest unit of meaning; splitting prose would leave fragments. The owner may split it into two blocks.
core.md and core.shared.md rendered on write; system_prompt() picks by tierNo parse per turn; the two views cannot skew
One index, filtered in MemoryBM25Index.search and MemoryEmbeddingIndex.searchTwo indexes double cost and disagreement; below every caller, so none can forget. The label is a stored row field.
Migration: noneUnlabeled blocks read as owner; labels appear as blocks are rewritten
ExcludedPer-speaker scoping, redaction inside a block, a hold queue for over-tier reads
Acceptance matrix
Read surfaceEnforced atCaseLevel
Core system promptLocalMemoryBackend.system_promptPaired gets core.shared.md, no owner blockunit
Per-turn recallLocalMemoryBackend.searchNo owner block returnedunit
memory_searchMemoryBM25Index.searchHits exclude owner blocks at every top_kunit
Embedding searchMemoryEmbeddingIndex.searchSame exclusion, same requester and queryunit
memory_getinspect.read_fileOnly shared blocks; an all-owner file is not-found, not emptyunit
memory_search with exactinspect.grepA literal only in an owner block does not matchunit
memory_get without pathinspect.list_filesFiles with no shared block absent; counts reflect the visible subsetunit
Mixed blockinstall_stateOne owner and one paired citation: labeled owner, never partly renderedunit
Web reads/api/memory/* route dependencySame filter as the tool pathintegration
Cache coherenceMemoryBM25Index rowsA relabeled block changes the next query without a rebuildunit
Fail-closedTier resolution helperAn unresolvable tier never reads as ownerunit

Implementation status

ItemStatusNote
Tier enum, table gate, fail-closed denial, decision records, subagent inheritance, pairing, local approval, stable-ID matching, display-name sanitizing, citation checks, context exclusionImplementedDescribed in the sections above
Writer statusImplementedLast success, last_outcome, MemoryWriteFailureCode with retryable verdict, pending count; one versioned schema for status file, CLI, tool, API and Web
Read filtering by tierPartlymemory.read is its own capability, apart from fs.read. search and system_prompt take the tier the caller resolved and never re-read pairing mid-turn. Per-block filtering is design only.
Over-tier hold queueNot yetA paired request such as "restart the service" waits for one-shot owner approval instead of denial. Needs a message cap, expiry and re-evaluation when the tier changes.

Speaker attribution · Authority landscape

Last updated · 2026-11-25