Organization governance and governed knowledge
Lore separates who governs an organization from who may read or use its knowledge.
Account
└── Organization
├── Governance, roles, quotas, audit
├── Territories
│ └── Sources → extraction → immutable product revisions
├── Meshes (workspaces in Lore)
│ └── Witans (projects in Lore) → selected Mesh-approved products
└── InfrastructureFirst run
After signup, create an organization or accept a recipient-bound invitation. The creator becomes its first owner atomically. The organization home then gives two independent starting actions:
- Create a territory to own sources, extraction, policy, and publication.
- Create a Mesh to own collaboration, approvals from the Atlas (the organization catalog in Lore), and Witans.
They meet only when a Mesh owner binds an exact product revision that its audience already permits. A Witan can then select a bounded subset of those Mesh-bound revisions. The user interface never treats drawing a connection or moving a card as an authority grant.
Roles and membership
Organization role templates are fixed in v1 and materialize granular permission bindings. API responses include every effective permission and its source role.
| Role | Organization authority |
|---|---|
| Owner | Governance, owner, admin and infrastructure-operator assignment, policy, quotas, audit, agents, ordinary resources, infrastructure |
| Admin | Members, roles other than owner, admin and infrastructure operator, quotas, audit, agents, ordinary resources |
| Territory Creator | Create a territory and become its owner |
Mesh Creator (workspace_creator) |
Create a Mesh (workspace) and become its owner |
| Infrastructure Operator | Provision, suspend, and inspect operations without knowledge access |
| Member | Membership plus policy-filtered catalog discovery |
Territories, workspaces, and projects have separate owner, editor, and
viewer memberships. Organization ownership does not create any of those
memberships. A project member must remain an active member of its parent
workspace. Database guards prevent removal of the last active owner at every
scope.
Every principal has an immutable kind, human or agent. An agent principal
can be a workspace or project editor or viewer, but never an owner, an
organization role holder or a territory member, and it cannot sign in. Agents
count as project members, so the consumption-audience rule below covers them
too.
Owners and admins register agents. Each agent belongs to one organization and names a sponsor: an active human member who answers for it. Changing the sponsor or re-enabling an agent needs an active human sponsor; disabling an agent never does. A disabled agent is left out of membership pickers and cannot be added to a workspace or project, though it can still be removed. Owners and admins manage agents under Agents in Settings: register one with a sponsor, change its sponsor, and disable or enable it. A sponsor may run a project task on behalf of their agent; it needs both principals' current authority (ADR-0128).
An organization membership may have an end date (ADR-0129). Member managers set, change or remove it for people, and agent managers for agents. After it, the member's credentials stop working and nothing new can be granted to them; removing their existing roles and memberships still works, and removing the end date restores them. Owners never have an end date, no one changes their own, and an expiring manager cannot set an end later than their own or invite anyone past it.
A workspace membership may have an end date too, and project access ends with it (ADR-0131). Workspace owners set it when adding a member or later, and renew or remove it; owners never have one, and it cannot be later than the member's organization end. After it, the member loses the workspace, its projects, its catalog and its model egress, and is granted nothing new there. A lapsed member stays listed, with the project memberships that must be removed first and the project owners who can remove them; until then they still count in each project's consumption-audience rule.
A project membership may have its own end date (ADR-0132), never later than the member's workspace and organization ends; access ends at the earliest of the three. Only project owners set it, when adding a member or later, and renew or remove it; workspace owners who do not own the project and organization admins cannot. Owners never have one. Removing the end leaves access bounded by the workspace and organization ends, and renewing a lapsed workspace membership restores project access up to the project's own end. A lapsed project member stays listed, still blocks their workspace removal and still counts in the consumption-audience rule until a project owner removes them. A project owner sets an agent's project end; its sponsor's does not cap it.
A territory membership may have its own end date (ADR-0134), never later than the member's organization end; access ends at the earlier of the two. Whoever manages the territory's members sets, renews or removes it: in a sealed territory only its owners, in an organization-governed territory also organization policy managers. No one changes their own end, and owners never have one. While a member's territory access has lapsed they lose its sources, annotations, publishing and product listing; products they published earlier stay. A territory owner can renew or remove them.
A person's product audience may have an end date (ADR-0135); a workspace's or an agent's never does. Whoever may revoke the audience sets or shortens it; only a territory owner extends or removes it, on the same row, also after it has lapsed. No one changes their own. A lapsed discovery row hides the product from that person's Atlas; a lapsed consumption row stops every Witan that relied on it, settlement included, until it is renewed or the person leaves the Witan. Territory managers see the end and a lapsed label; Meshes and Witans see only that the product is no longer consumable.
An admin or infrastructure-operator role may have its own end date (ADR-0136), never later than the member's organization end; other roles never end. Only an owner sets it, when granting the role or later, and renews, shortens or removes it; no one changes their own. Settings shows each role as "until" a date, "Lapsed", or "Ends with organization access". A lapsed role grants nothing but stays listed until an owner renews or removes it. While a second owner must approve these grants, a grant may name an end and the approval applies it exactly; to extend or remove an end, remove the role and grant it again. A request whose end has passed or outlasts the member's access can only be rejected. Members never grant themselves roles unless they are owners, and an admin whose role ends invites or sets access ends only up to their own role end.
An organization with at least three owners can require a second owner to approve owner changes (ADR-0130). Turning this on or off is itself approved. While it is on, granting or removing an owner files a request that another eligible owner approves under Waiting for approval in Settings; the change takes effect when approved, and the proposer may withdraw it. An owner being removed may approve their own removal. Two owners always remain while approval is on.
Membership administration follows the same separation. A sealed territory's owners alone can list or change its members. An organization-governed territory also permits organization policy managers. Workspace owners administer workspace members, and project owners administer project members. Adding a project member requires that principal's active parent-workspace membership; removing a workspace member is refused while active project memberships remain. Every change is idempotent and append-only audited.
Resource membership forms resolve exact IDs through a minimal active-member directory instead of asking operators to paste UUIDs. The directory exposes only email, principal ID and kind, never roles or permissions; project candidate lists are further limited to active members of the parent workspace. The console shows an agent as an agent rather than by its reserved handle, never offers one for a territory, and never offers it the owner role.
Organization principals with organization.policy.manage (the fixed owner role
in v1) may publish a reviewed organization-policy revision that limits which
modes can be selected for future territories. Updates use an idempotency key and
expected revision, and the Settings UI always requires at least one allowed
mode. Policy changes never rewrite an existing territory: its selected privacy
mode remains immutable. All active organization members may read the current
policy so the creation UI can explain why a mode is unavailable.
Resource owners may archive and restore territories, workspaces, and projects through idempotent, expected-revision commands. Archived resources remain visible to their members but are excluded from active catalog, binding, context, and execution authorization. A workspace cannot be archived while it has an active project, and a project cannot be restored beneath an archived workspace. Restoration never changes a territory's privacy mode or an immutable product revision. Every transition is append-only audited.
Owners may grant or remove every fixed organization role. Admins may grant or
remove every role except owner, admin and infrastructure operator; anyone may
remove their own admin or infrastructure-operator role. Only an owner changes
the end date of a member who holds either role. While an organization requires
it (ADR-0130), granting admin or infrastructure operator needs a second owner's
approval, who is neither the proposer nor the person receiving the role, and
such a member's end date can be shortened but not extended or cleared, nor can
the end date of a member a pending grant names. An infrastructure operator
without member management sees no member list in the console; they remove
their own role through the API (POST /organizations/{organization_id}/members/{principal_id}/roles with their own
principal as principal_id and a body of request_id,
role: "infrastructure_operator" and active: false). Each change
records its reviewer and an append-only audit event; an idempotency key
prevents an ambiguous retry from applying a different change. Owners and admins
with membership-management permission may issue or revoke recipient-bound
invitations. Issuance takes an optional request_id: a retry of the same
request by the same inviter returns the original invitation_id, its
expires_at, state (pending, accepted, revoked, expired, or
blocked when the inviter's role now ends before the membership, so acceptance
would be refused) and replayed: true, never the secret, which is shown
once only; the same request id with another recipient or membership end is a
conflict (409). A lost secret is replaced by revoking the invitation and
issuing a new one. Several pending invitations to one recipient stay allowed.
Quota changes are revision-checked and may not reduce a limit
below current use.
Territory privacy
Creation requires one explicit, permanent mode:
- Sealed — only territory owners can revise access and publication policy. Organization owners cannot read content, change its policy, or grant themselves access.
- Organization-governed — territory owners and organization principals with policy-management permission can append policy revisions.
A policy revision is attributed to the principal who submits it (stored as
reviewed_by); there is no separate reviewer step. The policy document is
kept for audit only: no policy engine evaluates it. Access is decided by
memberships, roles, audiences, and bindings.
Organization policy can restrict modes for future territories but never rewrites an existing choice. Policy revisions are append-only. Revocation blocks future authorization; it does not claim previously released data was erased. There is no break-glass path in v1.
Source bytes and credentials stay exclusively with domain-owned workers. Organization owners and infrastructure operators may receive quotas, storage usage, worker health, and sanitized job state for sealed territories, but not filenames, schemas, records, prompts, results, credentials, or unpublished product metadata.
Publication and catalog use
A territory owner or editor publishes an immutable product revision with provenance and two independent audience lists. A product belongs to the territory of its first revision: later revisions must be published into that same territory, and both the service and a database trigger refuse a revision filed under another territory.
- Discovery reveals only the product name, description, revision, and territory identifier. It never returns the stored execution descriptor or provenance; territory owner/editor inspection is a separate permission.
- Consumption controls who may bind and use that exact revision.
A metadata-only descriptor can be cataloged and bound, but it is never
executable. An executable descriptor must carry the versioned
lore/catalog-execution-v1 contract and an exact, digest-valid product revision
for the territory_<id> domain of the product's territory. The control plane
validates that identity at publication and again at every execution check, and
stores the canonical re-serialization of the validated execution block (unknown
keys are refused), never the caller's spelling. Only a territory owner may
publish a revision carrying execution: it names a source, and its publication
history permanently blocks that source's purge. Editors publish metadata-only
revisions; an editor's executable revision is denied.
A first-class project binding of such a revision is the executable grant.
One database decision (OrganizationStore::project_consumption_decision, and
the restricted runtime function
lore_management.project_consumption_authority in
deploy/federation/project-authority.sql, which mirrors it) checks the live
access and session, enabled organization/membership/principal, active project
and workspace membership, the exact active project and workspace bindings, that
no project/workspace/territory is archived, and the shared-context audience
rule: every active project member, not only the caller, must be covered by
an unrevoked consumption audience, through the project's workspace or their own
principal. Adding an uncovered member or revoking any member's audience stops
consumption for the whole project. The runtime function also routes to the
territory's single running, non-removed worker; none or several refuse.
The worker holds no manager-written product copy. The control plane sends the
exact catalog product revision with the invocation; the request commitment in
the signed delegation binds it, and the signed project scope pins its digest.
The territory worker serves it only if the revision's own digest equals that
pinned digest, it names the worker's territory, the requested limit is within
its bound, no owner-local revocation marker exists, and the referenced
extraction evidence on the worker's disk still matches its checksums (extraction
already required an owner-approved, active mapping). A territory owner obtains
the digest-bearing revision with the territory source publication_preview
action, which verifies the mapping and evidence and writes nothing.
Making a product executable from the console
On a territory page, Published products offers two publication kinds:
Atlas entry only — not executable (name/description descriptor) and
Executable in Witans. The executable path is for territory owners only
(publication_preview is an owner source action and publication refuses an
editor's executable revision); editors can still publish metadata-only revisions. The owner picks a source on a running worker, a
succeeded extraction of its current active, owner-approved mapping, the published
fields (from that mapping) and a 1–100 row limit, plus the audiences. The console
sends the unsigned revision with an empty digest (the audience field is the
sorted consumption audience) to publication_preview; the worker returns it with
its digest. The console publishes revision N+1 (or 1) with descriptor
{name, description, execution: {schema_version: "lore/catalog-execution-v1", domain_id: "territory_<id>", product: <preview product verbatim>}}. It never
computes a digest, and refuses a preview that differs from its request or a form
edited after the preview. The control plane still checks the descriptor with
CatalogExecution::valid_for. The product list labels every revision with its
kind. The revision becomes usable only when a workspace and then a project bind it.
V1 audiences name exact principals or exact workspaces in the same organization. A workspace owner may bind a pre-authorized exact revision. A project owner or editor may bind only the same exact revision already active on the parent workspace. Authorization rechecks organization access, all relevant memberships, archived state, audience, revision, binding, and revocation before release. Cross-boundary failures use a generic not-found response.
Workspace approvals and project selections are revision-checked records. They may be deactivated or replaced with a newer immutable product revision, but a workspace approval cannot change while an active project selection depends on it. Owners therefore release a product child-first: deactivate project selections, then deactivate or replace the workspace approval, then select the new workspace-approved revision in projects. Stale expected revisions fail without overwriting a concurrent change.
The territory page lists only products owned by a territory in which the actor is an owner or editor. Its current form can register metadata and a provenance reference, publish the next immutable revision, and show exact audiences. Audience revocation is idempotent, audited, and database-enforced as forward-only. Workspace pages list active and inactive approvals and allow owners to approve, deactivate, or replace discoverable exact revisions. Project pages list workspace-approved revisions and allow project owners or editors to select, deactivate, or replace only revisions for which current consumption authority still exists. Bound-product listings likewise return only name and description when discovery is current. Missing discovery authority withholds even that display metadata rather than borrowing it from an earlier view.
The territory page also projects its optional domain worker. A territory owner
or editor may register, map, validate, and manually extract a source; only an
owner may approve and activate its mapping. A viewer may inspect authorized
source state without mutating it. The manager rechecks first-class territory
membership before dispatch and again before releasing a worker response. A
worker's exact territory_id binding selects the authorization boundary but
never grants membership. Credentials, source bytes, previews, mappings, and
extraction artifacts remain inside the worker.