CerebeCerebe Docs
Cerebe Factory

Initialize a Factory tree

Propose an empty installation's Factory tree, obtain an independent review, and approve the exact packet as a person.

A Factory tree gives each Team one mission and one parent. A delivering Team runs its own seats; an orchestrating root coordinates its children. Initializing the tree is an explicit reviewed change.

A root without seats

An orchestrating root with no parent can run without seats. Its charter has roster: [], contextPolicy: {}, and seatPolicy: {}. These fields do not create dormant seats or role instances. Delivering children retain their required rosters and seat policies.

Site-wide decisions remain with the Orchestrator. Site Operations can be delegated to one delivering descendant through the reviewed role configuration and that descendant's charter:

FieldMeaning
A role's seat: "Operations"Binds a factory-scoped seat role to the Operations charter seat.
A class's mechanism: "site-operations"Identifies the Site Operations class. Its applies is every factory, its decided is per factory, and its ownerRoleId names the tagged Operations role.
The descendant's delegatedClassesContains that class's ID and designates the delivering Team that carries Site Operations.

The Operations tag and Site Operations mechanism must be unique. An unknown seat tag, a role of the wrong kind or scope, an owner without the Operations tag, or competing child delegations is refused. Configuration identifies the owner; it does not appoint a holder or grant a principal authority. Actions still require the current authorized Operations seat holder.

The Operations seat tag is part of the role authority floor. Standing delegation permits cannot cover adding or changing that tag.

The root's role view returns empty roster, holders, and instances arrays. Its classOwners entries identify either an Orchestrator owner with { "kind": "orchestrator" } or the delegated role with { "kind": "role", "factoryId": "...", "roleId": "..." }. External owner references do not instantiate a seat at the root. Built-in Site decision class IDs cannot carry the Site Operations mechanism. A custom operational class ID is supported.

A child snapshot reports operationsDestination and alertDestinationFactoryId separately from its actual parent. Sending an Operations alert to the delegated Team does not change the tree's parentage.

Initial bootstrap is separate from later decomposition. General decomposition activation for a root without seats remains unavailable and returns seatless_decomposition_unavailable; the Operations delegation does not bypass that refusal.

Prepare an initial packet

Bootstrap is available only for an empty installation. A prior Factory record, including a retired one, a registry entry, a nonzero tree or registry version, an existing Site policy, or a previous bootstrap receipt prevents application. An existing role configuration is amended with an exact version-and-digest check.

The packet contains these fields:

FieldValue
version1.
proposalIdA preallocated UUID used for the immutable proposal and its later approval receipt.
installationId, siteIdThe installation and Site being initialized.
factoriesThe root first and its delivering child second, each with id, parentId, mode, and the complete charter.
surfacesRegistry entries with id, ownerFactoryId, kind, and the normal kind-specific fields described below.
initialSitePolicyThe complete proposed Site policy. It must include the approval.groups key. Application refuses a packet that still carries the retired settings.review key, before it creates anything.
roleConfigurationexpectedVersion, expectedDigest, and the complete proposed candidate document.

This initial flow accepts one root without seats and one delivering child. Every surface belongs to that child, and exactly one is a session_host. Use key for a session host or work-tracker scope, repository for a repository, and repository plus path for a path prefix. These are the normal registry claim fields; the service derives normalized identities from them.

Charter missions, context policies, budgets, shares, and decision references are part of the reviewed packet. Bootstrap supplies no operational defaults for them. Each charter's approvingDecisionRecord is factory-bootstrap:<proposalId>. That reference is approved only when the person's exact-digest approval commits; creating the proposal grants no authority.

Propose and review over MCP

Use the MCP connection with the installation's normal authentication. The bootstrap tools expose the following inputs:

ToolInputs
cerebe_factory_bootstrap_proposepacket, batonId.
cerebe_factory_bootstrap_readproposalId.
cerebe_factory_bootstrap_reviewproposalId, packetDigest, batonId, verdict, summary. verdict is approve or request_changes.

All three tools also accept an optional installationId selector for callers with multiple installations. Propose normally uses the packet's installation; read and review use the token's default. The verified token must authorize the selected installation.

Propose binds the immutable packet and its digest to the verified caller, installation, Site, and accepted baton row. Read returns that stored proposal for inspection. Neither operation creates the tree or applies the policy.

The reviewer reads the exact packet and submits its digest. Review requires a different live accepted baton row and a different holder credential from the proposer. A supplied reviewer name is not evidence of an independent session. Foreign, closed, or reassigned rows and a changed digest are refused.

Approve and apply as a person

Open /settings/factory-bootstrap/<proposalId> in the Dashboard. Inspect the stored packet, digest, proposed policy, scope, and independent review before approving that exact digest.

Founding approval requires a verified person session with the Site's current org:relay:manage permission. Membership in an approver group proposed by the packet does not authorize its own initial application. Agent credentials cannot substitute for the person approval.

The page reads the proposal through GET /api/v1/fleet/factory/bootstrap/proposals/<proposal_id> and submits POST /api/v1/fleet/factory/bootstrap/proposals/<proposal_id>/approve with { "packetDigest": "<the inspected digest>" }. Both routes retain normal person-session authentication; naming a digest does not grant permission.

Application rechecks the proposal, review, current authority, empty state, and role configuration version and digest. It writes the Site policy, tree, registry, role amendment, and receipt in one transaction. A failed check or write leaves the installation unchanged; concurrent applications have one winner.

An installation with historical Site policy revisions is not empty, even if its current policy row has been removed.

After applying, inspect the stored receipt and current tree. Registering a host surface does not bind an old credential to that host. Complete the ordinary person host-credential enrollment and save the Team's Forge settings before starting work. Bootstrap does not launch a process or enable the general tree-write tools.

On this page